diff --git a/CHANGES.md b/CHANGES.md index 58d312f1726..5fd84f7e361 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,22 @@ # Changes +## [0.106.0](https://github.com/googleapis/google-api-go-client/compare/v0.105.0...v0.106.0) (2023-01-04) + + +### Features + +* **all:** Auto-regenerate discovery clients ([#1784](https://github.com/googleapis/google-api-go-client/issues/1784)) ([a7f08e2](https://github.com/googleapis/google-api-go-client/commit/a7f08e2d1f5d4590ae0c6d66077f012bd18b5464)) +* **all:** Auto-regenerate discovery clients ([#1788](https://github.com/googleapis/google-api-go-client/issues/1788)) ([9fb35f5](https://github.com/googleapis/google-api-go-client/commit/9fb35f5f5db837dc8aba5b742b63e1a837621f75)) +* **all:** Auto-regenerate discovery clients ([#1790](https://github.com/googleapis/google-api-go-client/issues/1790)) ([7bd17b3](https://github.com/googleapis/google-api-go-client/commit/7bd17b38d39db0700ee20e5078cd4b7c8c3d3acb)) +* **all:** Auto-regenerate discovery clients ([#1794](https://github.com/googleapis/google-api-go-client/issues/1794)) ([3944e86](https://github.com/googleapis/google-api-go-client/commit/3944e86684b39e05e27a17e66ed54873433c6ad4)) +* **idtoken:** Add support for impersonated_service_account creds type ([#1792](https://github.com/googleapis/google-api-go-client/issues/1792)) ([f6dec99](https://github.com/googleapis/google-api-go-client/commit/f6dec99d014cc508d0374b666f2c325534a30bea)), refs [#873](https://github.com/googleapis/google-api-go-client/issues/873) +* **option/internaloption:** Add new EmbeddableAdapter option ([#1787](https://github.com/googleapis/google-api-go-client/issues/1787)) ([1569e5b](https://github.com/googleapis/google-api-go-client/commit/1569e5b294ad150050319c108bfbcade2180351b)) + + +### Bug Fixes + +* **idtoken:** Configure validator constructor to use no authentication ([#1789](https://github.com/googleapis/google-api-go-client/issues/1789)) ([b35900a](https://github.com/googleapis/google-api-go-client/commit/b35900aff148bb8446ca7e15ed0beb50d749d6c7)), refs [#1682](https://github.com/googleapis/google-api-go-client/issues/1682) + ## [0.105.0](https://github.com/googleapis/google-api-go-client/compare/v0.104.0...v0.105.0) (2022-12-14) diff --git a/accessapproval/v1/accessapproval-api.json b/accessapproval/v1/accessapproval-api.json index 1e1631c3b0e..3353635326a 100644 --- a/accessapproval/v1/accessapproval-api.json +++ b/accessapproval/v1/accessapproval-api.json @@ -913,7 +913,7 @@ } } }, - "revision": "20220902", + "revision": "20221209", "rootUrl": "https://accessapproval.googleapis.com/", "schemas": { "AccessApprovalServiceAccount": { @@ -1140,7 +1140,7 @@ "id": "EnrolledService", "properties": { "cloudProduct": { - "description": "The product for which Access Approval will be enrolled. Allowed values are listed below (case-sensitive): * all * GA * App Engine * BigQuery * Cloud Bigtable * Cloud Key Management Service * Compute Engine * Cloud Dataflow * Cloud Dataproc * Cloud DLP * Cloud EKM * Cloud HSM * Cloud Identity and Access Management * Cloud Logging * Cloud Pub/Sub * Cloud Spanner * Cloud SQL * Cloud Storage * Google Kubernetes Engine * Organization Policy Serivice * Persistent Disk * Resource Manager * Secret Manager * Speaker ID Note: These values are supported as input for legacy purposes, but will not be returned from the API. * all * ga-only * appengine.googleapis.com * bigquery.googleapis.com * bigtable.googleapis.com * container.googleapis.com * cloudkms.googleapis.com * cloudresourcemanager.googleapis.com * cloudsql.googleapis.com * compute.googleapis.com * dataflow.googleapis.com * dataproc.googleapis.com * dlp.googleapis.com * iam.googleapis.com * logging.googleapis.com * orgpolicy.googleapis.com * pubsub.googleapis.com * spanner.googleapis.com * secretmanager.googleapis.com * speakerid.googleapis.com * storage.googleapis.com Calls to UpdateAccessApprovalSettings using 'all' or any of the XXX.googleapis.com will be translated to the associated product name ('all', 'App Engine', etc.). Note: 'all' will enroll the resource in all products supported at both 'GA' and 'Preview' levels. More information about levels of support is available at https://cloud.google.com/access-approval/docs/supported-services", + "description": "The product for which Access Approval will be enrolled. Allowed values are listed below (case-sensitive): * all * GA * App Engine . * Artifact Registry * BigQuery * Cloud Bigtable * Cloud Key Management Service * Compute Engine * Cloud Dataflow * Cloud Dataproc * Cloud DLP * Cloud EKM * Cloud HSM * Cloud Identity and Access Management * Cloud Logging * Cloud Pub/Sub * Cloud Spanner * Cloud SQL * Cloud Storage * Google Kubernetes Engine * Organization Policy Serivice * Persistent Disk * Resource Manager * Secret Manager * Speaker ID Note: These values are supported as input for legacy purposes, but will not be returned from the API. * all * ga-only * appengine.googleapis.com * artifactregistry.googleapis.com * bigquery.googleapis.com * bigtable.googleapis.com * container.googleapis.com * cloudkms.googleapis.com * cloudresourcemanager.googleapis.com * cloudsql.googleapis.com * compute.googleapis.com * dataflow.googleapis.com * dataproc.googleapis.com * dlp.googleapis.com * iam.googleapis.com * logging.googleapis.com * orgpolicy.googleapis.com * pubsub.googleapis.com * spanner.googleapis.com * secretmanager.googleapis.com * speakerid.googleapis.com * storage.googleapis.com Calls to UpdateAccessApprovalSettings using 'all' or any of the XXX.googleapis.com will be translated to the associated product name ('all', 'App Engine', etc.). Note: 'all' will enroll the resource in all products supported at both 'GA' and 'Preview' levels. More information about levels of support is available at https://cloud.google.com/access-approval/docs/supported-services", "type": "string" }, "enrollmentLevel": { diff --git a/accessapproval/v1/accessapproval-gen.go b/accessapproval/v1/accessapproval-gen.go index ce9b36b1693..c6958cb15bc 100644 --- a/accessapproval/v1/accessapproval-gen.go +++ b/accessapproval/v1/accessapproval-gen.go @@ -626,14 +626,15 @@ type Empty struct { type EnrolledService struct { // CloudProduct: The product for which Access Approval will be enrolled. // Allowed values are listed below (case-sensitive): * all * GA * App - // Engine * BigQuery * Cloud Bigtable * Cloud Key Management Service * - // Compute Engine * Cloud Dataflow * Cloud Dataproc * Cloud DLP * Cloud - // EKM * Cloud HSM * Cloud Identity and Access Management * Cloud - // Logging * Cloud Pub/Sub * Cloud Spanner * Cloud SQL * Cloud Storage * - // Google Kubernetes Engine * Organization Policy Serivice * Persistent - // Disk * Resource Manager * Secret Manager * Speaker ID Note: These - // values are supported as input for legacy purposes, but will not be - // returned from the API. * all * ga-only * appengine.googleapis.com * + // Engine . * Artifact Registry * BigQuery * Cloud Bigtable * Cloud Key + // Management Service * Compute Engine * Cloud Dataflow * Cloud Dataproc + // * Cloud DLP * Cloud EKM * Cloud HSM * Cloud Identity and Access + // Management * Cloud Logging * Cloud Pub/Sub * Cloud Spanner * Cloud + // SQL * Cloud Storage * Google Kubernetes Engine * Organization Policy + // Serivice * Persistent Disk * Resource Manager * Secret Manager * + // Speaker ID Note: These values are supported as input for legacy + // purposes, but will not be returned from the API. * all * ga-only * + // appengine.googleapis.com * artifactregistry.googleapis.com * // bigquery.googleapis.com * bigtable.googleapis.com * // container.googleapis.com * cloudkms.googleapis.com * // cloudresourcemanager.googleapis.com * cloudsql.googleapis.com * diff --git a/accesscontextmanager/v1/accesscontextmanager-api.json b/accesscontextmanager/v1/accesscontextmanager-api.json index 94116a8b89b..55f5fa9f6c4 100644 --- a/accesscontextmanager/v1/accesscontextmanager-api.json +++ b/accesscontextmanager/v1/accesscontextmanager-api.json @@ -565,6 +565,158 @@ } } }, + "authorizedOrgsDescs": { + "methods": { + "create": { + "description": "Creates a authorized orgs desc. The long-running operation from this RPC has a successful status after the authorized orgs desc propagates to long-lasting storage. If a authorized orgs desc contains errors, an error response is returned for the first error encountered. The name of this `AuthorizedOrgsDesc` will be assigned during creation.", + "flatPath": "v1/accessPolicies/{accessPoliciesId}/authorizedOrgsDescs", + "httpMethod": "POST", + "id": "accesscontextmanager.accessPolicies.authorizedOrgsDescs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Resource name for the access policy which owns this Authorized Orgs Desc. Format: `accessPolicies/{policy_id}`", + "location": "path", + "pattern": "^accessPolicies/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/authorizedOrgsDescs", + "request": { + "$ref": "AuthorizedOrgsDesc" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a authorized orgs desc based on the resource name. The long-running operation from this RPC has a successful status after the authorized orgs desc is removed from long-lasting storage.", + "flatPath": "v1/accessPolicies/{accessPoliciesId}/authorizedOrgsDescs/{authorizedOrgsDescsId}", + "httpMethod": "DELETE", + "id": "accesscontextmanager.accessPolicies.authorizedOrgsDescs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name for the Authorized Orgs Desc. Format: `accessPolicies/{policy_id}/authorizedOrgsDesc/{authorized_orgs_desc_id}`", + "location": "path", + "pattern": "^accessPolicies/[^/]+/authorizedOrgsDescs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a authorized orgs desc based on the resource name.", + "flatPath": "v1/accessPolicies/{accessPoliciesId}/authorizedOrgsDescs/{authorizedOrgsDescsId}", + "httpMethod": "GET", + "id": "accesscontextmanager.accessPolicies.authorizedOrgsDescs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name for the Authorized Orgs Desc. Format: `accessPolicies/{policy_id}/authorizedOrgsDescs/{authorized_orgs_descs_id}`", + "location": "path", + "pattern": "^accessPolicies/[^/]+/authorizedOrgsDescs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "AuthorizedOrgsDesc" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all authorized orgs descs for an access policy.", + "flatPath": "v1/accessPolicies/{accessPoliciesId}/authorizedOrgsDescs", + "httpMethod": "GET", + "id": "accesscontextmanager.accessPolicies.authorizedOrgsDescs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Number of Authorized Orgs Descs to include in the list. Default 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Next page token for the next batch of Authorized Orgs Desc instances. Defaults to the first page of results.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Resource name for the access policy to list Authorized Orgs Desc from. Format: `accessPolicies/{policy_id}`", + "location": "path", + "pattern": "^accessPolicies/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/authorizedOrgsDescs", + "response": { + "$ref": "ListAuthorizedOrgsDescsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a authorized orgs desc. The long-running operation from this RPC has a successful status after the authorized orgs desc propagates to long-lasting storage. If a authorized orgs desc contains errors, an error response is returned for the first error encountered. Only the organization list in `AuthorizedOrgsDesc` can be updated. The name, authorization_type, asset_type and authorization_direction cannot be updated.", + "flatPath": "v1/accessPolicies/{accessPoliciesId}/authorizedOrgsDescs/{authorizedOrgsDescsId}", + "httpMethod": "PATCH", + "id": "accesscontextmanager.accessPolicies.authorizedOrgsDescs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Assigned by the server during creation. The last segment has an arbitrary length and has only URI unreserved characters (as defined by [RFC 3986 Section 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be specified by the client during creation. Example: \"accessPolicies/122256/authorizedOrgs/b3-BhcX_Ud5N\"", + "location": "path", + "pattern": "^accessPolicies/[^/]+/authorizedOrgsDescs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. Mask to control which fields get updated. Must be non-empty.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "AuthorizedOrgsDesc" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "servicePerimeters": { "methods": { "commit": { @@ -1083,7 +1235,7 @@ } } }, - "revision": "20221205", + "revision": "20221213", "rootUrl": "https://accesscontextmanager.googleapis.com/", "schemas": { "AccessContextManagerOperationMetadata": { @@ -1215,6 +1367,64 @@ }, "type": "object" }, + "AuthorizedOrgsDesc": { + "description": "`AuthorizedOrgsDesc` is a resource that contains a list of organizations for a authorization type and asset type and its authorization direction.", + "id": "AuthorizedOrgsDesc", + "properties": { + "assetType": { + "description": "The asset type of this authorized orgs desc. e.g. device, credential strength.", + "enum": [ + "ASSET_TYPE_UNSPECIFIED", + "ASSET_TYPE_DEVICE", + "ASSET_TYPE_CREDENTIAL_STRENGTH" + ], + "enumDescriptions": [ + "No asset type specified.", + "Device asset type.", + "credential strength asset type." + ], + "type": "string" + }, + "authorizationDirection": { + "description": "Authorization direction of this authorization relationship. i.e. Whether to allow specified orgs to evaluate this org's traffic, or allow specified orgs' traffic to be evaluated by this org. Orgs specified as `AUTHORIZATION_DIRECTION_TO` in this AuthorizedOrgsDesc[com.google.identity.accesscontextmanager.v1.AuthorizedOrgsDesc] must also specify this org as the `AUTHORIZATION_DIRECTION_FROM` in their own AuthorizedOrgsDesc in order for this relationship to take effect. Orgs specified as `AUTHORIZATION_DIRECTION_FROM` in this AuthorizedOrgsDesc[com.google.identity.accesscontextmanager.v1.AuthorizedOrgsDesc] must also specify this org as the `AUTHORIZATION_DIRECTION_TO` in their own AuthorizedOrgsDesc in order for this relationship to take effect.", + "enum": [ + "AUTHORIZATION_DIRECTION_UNSPECIFIED", + "AUTHORIZATION_DIRECTION_TO", + "AUTHORIZATION_DIRECTION_FROM" + ], + "enumDescriptions": [ + "No direction specified.", + "Specified orgs will evaluate traffic.", + "Specified orgs' traffic will be evaluated." + ], + "type": "string" + }, + "authorizationType": { + "description": "The authorization type of this authorized orgs desc. e.g.authorization, troubleshooting or logging.", + "enum": [ + "AUTHORIZATION_TYPE_UNSPECIFIED", + "AUTHORIZATION_TYPE_TRUST" + ], + "enumDescriptions": [ + "No authorization type specified.", + "This authorization relationship is \"trust\"." + ], + "type": "string" + }, + "name": { + "description": "Assigned by the server during creation. The last segment has an arbitrary length and has only URI unreserved characters (as defined by [RFC 3986 Section 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be specified by the client during creation. Example: \"accessPolicies/122256/authorizedOrgs/b3-BhcX_Ud5N\"", + "type": "string" + }, + "orgs": { + "description": "The list of organization ids in this AuthorizedOrgsDesc.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "BasicLevel": { "description": "`BasicLevel` is an `AccessLevel` using a set of recommended features.", "id": "BasicLevel", @@ -1689,6 +1899,24 @@ }, "type": "object" }, + "ListAuthorizedOrgsDescsResponse": { + "description": "A response to `ListAuthorizedOrgsDescsRequest`.", + "id": "ListAuthorizedOrgsDescsResponse", + "properties": { + "authorizedOrgsDescs": { + "description": "List of the Authorized Orgs Desc instances.", + "items": { + "$ref": "AuthorizedOrgsDesc" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The pagination token to retrieve the next page of results. If the value is empty, no further results remain.", + "type": "string" + } + }, + "type": "object" + }, "ListGcpUserAccessBindingsResponse": { "description": "Response of ListGcpUserAccessBindings.", "id": "ListGcpUserAccessBindingsResponse", diff --git a/accesscontextmanager/v1/accesscontextmanager-gen.go b/accesscontextmanager/v1/accesscontextmanager-gen.go index 62f7b37e616..d0ac4070b37 100644 --- a/accesscontextmanager/v1/accesscontextmanager-gen.go +++ b/accesscontextmanager/v1/accesscontextmanager-gen.go @@ -146,6 +146,7 @@ func (s *Service) userAgent() string { func NewAccessPoliciesService(s *Service) *AccessPoliciesService { rs := &AccessPoliciesService{s: s} rs.AccessLevels = NewAccessPoliciesAccessLevelsService(s) + rs.AuthorizedOrgsDescs = NewAccessPoliciesAuthorizedOrgsDescsService(s) rs.ServicePerimeters = NewAccessPoliciesServicePerimetersService(s) return rs } @@ -155,6 +156,8 @@ type AccessPoliciesService struct { AccessLevels *AccessPoliciesAccessLevelsService + AuthorizedOrgsDescs *AccessPoliciesAuthorizedOrgsDescsService + ServicePerimeters *AccessPoliciesServicePerimetersService } @@ -167,6 +170,15 @@ type AccessPoliciesAccessLevelsService struct { s *Service } +func NewAccessPoliciesAuthorizedOrgsDescsService(s *Service) *AccessPoliciesAuthorizedOrgsDescsService { + rs := &AccessPoliciesAuthorizedOrgsDescsService{s: s} + return rs +} + +type AccessPoliciesAuthorizedOrgsDescsService struct { + s *Service +} + func NewAccessPoliciesServicePerimetersService(s *Service) *AccessPoliciesServicePerimetersService { rs := &AccessPoliciesServicePerimetersService{s: s} return rs @@ -466,6 +478,88 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AuthorizedOrgsDesc: `AuthorizedOrgsDesc` is a resource that contains +// a list of organizations for a authorization type and asset type and +// its authorization direction. +type AuthorizedOrgsDesc struct { + // AssetType: The asset type of this authorized orgs desc. e.g. device, + // credential strength. + // + // Possible values: + // "ASSET_TYPE_UNSPECIFIED" - No asset type specified. + // "ASSET_TYPE_DEVICE" - Device asset type. + // "ASSET_TYPE_CREDENTIAL_STRENGTH" - credential strength asset type. + AssetType string `json:"assetType,omitempty"` + + // AuthorizationDirection: Authorization direction of this authorization + // relationship. i.e. Whether to allow specified orgs to evaluate this + // org's traffic, or allow specified orgs' traffic to be evaluated by + // this org. Orgs specified as `AUTHORIZATION_DIRECTION_TO` in this + // AuthorizedOrgsDesc[com.google.identity.accesscontextmanager.v1.Authori + // zedOrgsDesc] must also specify this org as the + // `AUTHORIZATION_DIRECTION_FROM` in their own AuthorizedOrgsDesc in + // order for this relationship to take effect. Orgs specified as + // `AUTHORIZATION_DIRECTION_FROM` in this + // AuthorizedOrgsDesc[com.google.identity.accesscontextmanager.v1.Authori + // zedOrgsDesc] must also specify this org as the + // `AUTHORIZATION_DIRECTION_TO` in their own AuthorizedOrgsDesc in order + // for this relationship to take effect. + // + // Possible values: + // "AUTHORIZATION_DIRECTION_UNSPECIFIED" - No direction specified. + // "AUTHORIZATION_DIRECTION_TO" - Specified orgs will evaluate + // traffic. + // "AUTHORIZATION_DIRECTION_FROM" - Specified orgs' traffic will be + // evaluated. + AuthorizationDirection string `json:"authorizationDirection,omitempty"` + + // AuthorizationType: The authorization type of this authorized orgs + // desc. e.g.authorization, troubleshooting or logging. + // + // Possible values: + // "AUTHORIZATION_TYPE_UNSPECIFIED" - No authorization type specified. + // "AUTHORIZATION_TYPE_TRUST" - This authorization relationship is + // "trust". + AuthorizationType string `json:"authorizationType,omitempty"` + + // Name: Assigned by the server during creation. The last segment has an + // arbitrary length and has only URI unreserved characters (as defined + // by RFC 3986 Section 2.3 + // (https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be + // specified by the client during creation. Example: + // "accessPolicies/122256/authorizedOrgs/b3-BhcX_Ud5N" + Name string `json:"name,omitempty"` + + // Orgs: The list of organization ids in this AuthorizedOrgsDesc. + Orgs []string `json:"orgs,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AssetType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AssetType") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AuthorizedOrgsDesc) MarshalJSON() ([]byte, error) { + type NoMethod AuthorizedOrgsDesc + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // BasicLevel: `BasicLevel` is an `AccessLevel` using a set of // recommended features. type BasicLevel struct { @@ -1442,6 +1536,44 @@ func (s *ListAccessPoliciesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListAuthorizedOrgsDescsResponse: A response to +// `ListAuthorizedOrgsDescsRequest`. +type ListAuthorizedOrgsDescsResponse struct { + // AuthorizedOrgsDescs: List of the Authorized Orgs Desc instances. + AuthorizedOrgsDescs []*AuthorizedOrgsDesc `json:"authorizedOrgsDescs,omitempty"` + + // NextPageToken: The pagination token to retrieve the next page of + // results. If the value is empty, no further results remain. + 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. "AuthorizedOrgsDescs") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AuthorizedOrgsDescs") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ListAuthorizedOrgsDescsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListAuthorizedOrgsDescsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListGcpUserAccessBindingsResponse: Response of // ListGcpUserAccessBindings. type ListGcpUserAccessBindingsResponse struct { @@ -4657,6 +4789,798 @@ func (c *AccessPoliciesAccessLevelsTestIamPermissionsCall) Do(opts ...googleapi. } +// method id "accesscontextmanager.accessPolicies.authorizedOrgsDescs.create": + +type AccessPoliciesAuthorizedOrgsDescsCreateCall struct { + s *Service + parent string + authorizedorgsdesc *AuthorizedOrgsDesc + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a authorized orgs desc. The long-running operation +// from this RPC has a successful status after the authorized orgs desc +// propagates to long-lasting storage. If a authorized orgs desc +// contains errors, an error response is returned for the first error +// encountered. The name of this `AuthorizedOrgsDesc` will be assigned +// during creation. +// +// - parent: Resource name for the access policy which owns this +// Authorized Orgs Desc. Format: `accessPolicies/{policy_id}`. +func (r *AccessPoliciesAuthorizedOrgsDescsService) Create(parent string, authorizedorgsdesc *AuthorizedOrgsDesc) *AccessPoliciesAuthorizedOrgsDescsCreateCall { + c := &AccessPoliciesAuthorizedOrgsDescsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.authorizedorgsdesc = authorizedorgsdesc + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *AccessPoliciesAuthorizedOrgsDescsCreateCall) Fields(s ...googleapi.Field) *AccessPoliciesAuthorizedOrgsDescsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *AccessPoliciesAuthorizedOrgsDescsCreateCall) Context(ctx context.Context) *AccessPoliciesAuthorizedOrgsDescsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *AccessPoliciesAuthorizedOrgsDescsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccessPoliciesAuthorizedOrgsDescsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.authorizedorgsdesc) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/authorizedOrgsDescs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "accesscontextmanager.accessPolicies.authorizedOrgsDescs.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *AccessPoliciesAuthorizedOrgsDescsCreateCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a authorized orgs desc. The long-running operation from this RPC has a successful status after the authorized orgs desc propagates to long-lasting storage. If a authorized orgs desc contains errors, an error response is returned for the first error encountered. The name of this `AuthorizedOrgsDesc` will be assigned during creation.", + // "flatPath": "v1/accessPolicies/{accessPoliciesId}/authorizedOrgsDescs", + // "httpMethod": "POST", + // "id": "accesscontextmanager.accessPolicies.authorizedOrgsDescs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Resource name for the access policy which owns this Authorized Orgs Desc. Format: `accessPolicies/{policy_id}`", + // "location": "path", + // "pattern": "^accessPolicies/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/authorizedOrgsDescs", + // "request": { + // "$ref": "AuthorizedOrgsDesc" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "accesscontextmanager.accessPolicies.authorizedOrgsDescs.delete": + +type AccessPoliciesAuthorizedOrgsDescsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a authorized orgs desc based on the resource name. +// The long-running operation from this RPC has a successful status +// after the authorized orgs desc is removed from long-lasting storage. +// +// - name: Resource name for the Authorized Orgs Desc. Format: +// `accessPolicies/{policy_id}/authorizedOrgsDesc/{authorized_orgs_desc +// _id}`. +func (r *AccessPoliciesAuthorizedOrgsDescsService) Delete(name string) *AccessPoliciesAuthorizedOrgsDescsDeleteCall { + c := &AccessPoliciesAuthorizedOrgsDescsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *AccessPoliciesAuthorizedOrgsDescsDeleteCall) Fields(s ...googleapi.Field) *AccessPoliciesAuthorizedOrgsDescsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *AccessPoliciesAuthorizedOrgsDescsDeleteCall) Context(ctx context.Context) *AccessPoliciesAuthorizedOrgsDescsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *AccessPoliciesAuthorizedOrgsDescsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccessPoliciesAuthorizedOrgsDescsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "accesscontextmanager.accessPolicies.authorizedOrgsDescs.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *AccessPoliciesAuthorizedOrgsDescsDeleteCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a authorized orgs desc based on the resource name. The long-running operation from this RPC has a successful status after the authorized orgs desc is removed from long-lasting storage.", + // "flatPath": "v1/accessPolicies/{accessPoliciesId}/authorizedOrgsDescs/{authorizedOrgsDescsId}", + // "httpMethod": "DELETE", + // "id": "accesscontextmanager.accessPolicies.authorizedOrgsDescs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Resource name for the Authorized Orgs Desc. Format: `accessPolicies/{policy_id}/authorizedOrgsDesc/{authorized_orgs_desc_id}`", + // "location": "path", + // "pattern": "^accessPolicies/[^/]+/authorizedOrgsDescs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "accesscontextmanager.accessPolicies.authorizedOrgsDescs.get": + +type AccessPoliciesAuthorizedOrgsDescsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a authorized orgs desc based on the resource name. +// +// - name: Resource name for the Authorized Orgs Desc. Format: +// `accessPolicies/{policy_id}/authorizedOrgsDescs/{authorized_orgs_des +// cs_id}`. +func (r *AccessPoliciesAuthorizedOrgsDescsService) Get(name string) *AccessPoliciesAuthorizedOrgsDescsGetCall { + c := &AccessPoliciesAuthorizedOrgsDescsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *AccessPoliciesAuthorizedOrgsDescsGetCall) Fields(s ...googleapi.Field) *AccessPoliciesAuthorizedOrgsDescsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *AccessPoliciesAuthorizedOrgsDescsGetCall) IfNoneMatch(entityTag string) *AccessPoliciesAuthorizedOrgsDescsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *AccessPoliciesAuthorizedOrgsDescsGetCall) Context(ctx context.Context) *AccessPoliciesAuthorizedOrgsDescsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *AccessPoliciesAuthorizedOrgsDescsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccessPoliciesAuthorizedOrgsDescsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "accesscontextmanager.accessPolicies.authorizedOrgsDescs.get" call. +// Exactly one of *AuthorizedOrgsDesc or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *AuthorizedOrgsDesc.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 *AccessPoliciesAuthorizedOrgsDescsGetCall) Do(opts ...googleapi.CallOption) (*AuthorizedOrgsDesc, 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 := &AuthorizedOrgsDesc{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a authorized orgs desc based on the resource name.", + // "flatPath": "v1/accessPolicies/{accessPoliciesId}/authorizedOrgsDescs/{authorizedOrgsDescsId}", + // "httpMethod": "GET", + // "id": "accesscontextmanager.accessPolicies.authorizedOrgsDescs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Resource name for the Authorized Orgs Desc. Format: `accessPolicies/{policy_id}/authorizedOrgsDescs/{authorized_orgs_descs_id}`", + // "location": "path", + // "pattern": "^accessPolicies/[^/]+/authorizedOrgsDescs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "AuthorizedOrgsDesc" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "accesscontextmanager.accessPolicies.authorizedOrgsDescs.list": + +type AccessPoliciesAuthorizedOrgsDescsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all authorized orgs descs for an access policy. +// +// - parent: Resource name for the access policy to list Authorized Orgs +// Desc from. Format: `accessPolicies/{policy_id}`. +func (r *AccessPoliciesAuthorizedOrgsDescsService) List(parent string) *AccessPoliciesAuthorizedOrgsDescsListCall { + c := &AccessPoliciesAuthorizedOrgsDescsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Number of Authorized +// Orgs Descs to include in the list. Default 100. +func (c *AccessPoliciesAuthorizedOrgsDescsListCall) PageSize(pageSize int64) *AccessPoliciesAuthorizedOrgsDescsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Next page token +// for the next batch of Authorized Orgs Desc instances. Defaults to the +// first page of results. +func (c *AccessPoliciesAuthorizedOrgsDescsListCall) PageToken(pageToken string) *AccessPoliciesAuthorizedOrgsDescsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *AccessPoliciesAuthorizedOrgsDescsListCall) Fields(s ...googleapi.Field) *AccessPoliciesAuthorizedOrgsDescsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *AccessPoliciesAuthorizedOrgsDescsListCall) IfNoneMatch(entityTag string) *AccessPoliciesAuthorizedOrgsDescsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *AccessPoliciesAuthorizedOrgsDescsListCall) Context(ctx context.Context) *AccessPoliciesAuthorizedOrgsDescsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *AccessPoliciesAuthorizedOrgsDescsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccessPoliciesAuthorizedOrgsDescsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/authorizedOrgsDescs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "accesscontextmanager.accessPolicies.authorizedOrgsDescs.list" call. +// Exactly one of *ListAuthorizedOrgsDescsResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListAuthorizedOrgsDescsResponse.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 *AccessPoliciesAuthorizedOrgsDescsListCall) Do(opts ...googleapi.CallOption) (*ListAuthorizedOrgsDescsResponse, 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 := &ListAuthorizedOrgsDescsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists all authorized orgs descs for an access policy.", + // "flatPath": "v1/accessPolicies/{accessPoliciesId}/authorizedOrgsDescs", + // "httpMethod": "GET", + // "id": "accesscontextmanager.accessPolicies.authorizedOrgsDescs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Number of Authorized Orgs Descs to include in the list. Default 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Next page token for the next batch of Authorized Orgs Desc instances. Defaults to the first page of results.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Resource name for the access policy to list Authorized Orgs Desc from. Format: `accessPolicies/{policy_id}`", + // "location": "path", + // "pattern": "^accessPolicies/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/authorizedOrgsDescs", + // "response": { + // "$ref": "ListAuthorizedOrgsDescsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *AccessPoliciesAuthorizedOrgsDescsListCall) Pages(ctx context.Context, f func(*ListAuthorizedOrgsDescsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "accesscontextmanager.accessPolicies.authorizedOrgsDescs.patch": + +type AccessPoliciesAuthorizedOrgsDescsPatchCall struct { + s *Service + name string + authorizedorgsdesc *AuthorizedOrgsDesc + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a authorized orgs desc. The long-running operation +// from this RPC has a successful status after the authorized orgs desc +// propagates to long-lasting storage. If a authorized orgs desc +// contains errors, an error response is returned for the first error +// encountered. Only the organization list in `AuthorizedOrgsDesc` can +// be updated. The name, authorization_type, asset_type and +// authorization_direction cannot be updated. +// +// - name: Assigned by the server during creation. The last segment has +// an arbitrary length and has only URI unreserved characters (as +// defined by RFC 3986 Section 2.3 +// (https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be +// specified by the client during creation. Example: +// "accessPolicies/122256/authorizedOrgs/b3-BhcX_Ud5N". +func (r *AccessPoliciesAuthorizedOrgsDescsService) Patch(name string, authorizedorgsdesc *AuthorizedOrgsDesc) *AccessPoliciesAuthorizedOrgsDescsPatchCall { + c := &AccessPoliciesAuthorizedOrgsDescsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.authorizedorgsdesc = authorizedorgsdesc + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Mask +// to control which fields get updated. Must be non-empty. +func (c *AccessPoliciesAuthorizedOrgsDescsPatchCall) UpdateMask(updateMask string) *AccessPoliciesAuthorizedOrgsDescsPatchCall { + 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 information. +func (c *AccessPoliciesAuthorizedOrgsDescsPatchCall) Fields(s ...googleapi.Field) *AccessPoliciesAuthorizedOrgsDescsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *AccessPoliciesAuthorizedOrgsDescsPatchCall) Context(ctx context.Context) *AccessPoliciesAuthorizedOrgsDescsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *AccessPoliciesAuthorizedOrgsDescsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccessPoliciesAuthorizedOrgsDescsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.authorizedorgsdesc) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "accesscontextmanager.accessPolicies.authorizedOrgsDescs.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *AccessPoliciesAuthorizedOrgsDescsPatchCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a authorized orgs desc. The long-running operation from this RPC has a successful status after the authorized orgs desc propagates to long-lasting storage. If a authorized orgs desc contains errors, an error response is returned for the first error encountered. Only the organization list in `AuthorizedOrgsDesc` can be updated. The name, authorization_type, asset_type and authorization_direction cannot be updated.", + // "flatPath": "v1/accessPolicies/{accessPoliciesId}/authorizedOrgsDescs/{authorizedOrgsDescsId}", + // "httpMethod": "PATCH", + // "id": "accesscontextmanager.accessPolicies.authorizedOrgsDescs.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Assigned by the server during creation. The last segment has an arbitrary length and has only URI unreserved characters (as defined by [RFC 3986 Section 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be specified by the client during creation. Example: \"accessPolicies/122256/authorizedOrgs/b3-BhcX_Ud5N\"", + // "location": "path", + // "pattern": "^accessPolicies/[^/]+/authorizedOrgsDescs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. Mask to control which fields get updated. Must be non-empty.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "AuthorizedOrgsDesc" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "accesscontextmanager.accessPolicies.servicePerimeters.commit": type AccessPoliciesServicePerimetersCommitCall struct { diff --git a/alertcenter/v1beta1/alertcenter-api.json b/alertcenter/v1beta1/alertcenter-api.json index 33ea57001f0..f7aa260332a 100644 --- a/alertcenter/v1beta1/alertcenter-api.json +++ b/alertcenter/v1beta1/alertcenter-api.json @@ -423,7 +423,7 @@ } } }, - "revision": "20221017", + "revision": "20221219", "rootUrl": "https://alertcenter.googleapis.com/", "schemas": { "AbuseDetected": { @@ -768,7 +768,7 @@ "id": "ApnsCertificateExpirationInfo", "properties": { "appleId": { - "description": "The Apple ID used for the certificate, may be blank if admins did not enter it.", + "description": "The Apple ID used for the certificate may be blank if admins didn't enter it.", "type": "string" }, "expirationTime": { @@ -1606,7 +1606,8 @@ "DRIVE_WARN_ON_EXTERNAL_SHARING", "ALERT", "RULE_ACTIVATE", - "RULE_DEACTIVATE" + "RULE_DEACTIVATE", + "DELETE_WEBPROTECT_EVIDENCE" ], "enumDescriptions": [ "Action type is unspecified.", @@ -1614,7 +1615,8 @@ "Show a warning message when sharing a file externally.", "Send alert.", "Activate Rule Action", - "Deactivate Rule Action" + "Deactivate Rule Action", + "Chrome actions Delete web protect evidence file" ], "type": "string" }, @@ -1648,7 +1650,8 @@ "DRIVE_WARN_ON_EXTERNAL_SHARING", "ALERT", "RULE_ACTIVATE", - "RULE_DEACTIVATE" + "RULE_DEACTIVATE", + "DELETE_WEBPROTECT_EVIDENCE" ], "enumDescriptions": [ "Action type is unspecified.", @@ -1656,7 +1659,8 @@ "Show a warning message when sharing a file externally.", "Send alert.", "Activate Rule Action", - "Deactivate Rule Action" + "Deactivate Rule Action", + "Chrome actions Delete web protect evidence file" ], "type": "string" }, @@ -1866,6 +1870,73 @@ }, "type": "object" }, + "TransferError": { + "description": "Details for an invalid transfer or forward.", + "id": "TransferError", + "properties": { + "email": { + "description": "User's email address. This may be unavailable if the entity was deleted.", + "type": "string" + }, + "entityType": { + "description": "Type of entity being transferred to. For ring group members, this should always be USER.", + "enum": [ + "TRANSFER_ENTITY_TYPE_UNSPECIFIED", + "TRANSFER_AUTO_ATTENDANT", + "TRANSFER_RING_GROUP", + "TRANSFER_USER" + ], + "enumDescriptions": [ + "Entity type wasn't set.", + "Transfer to auto attendant.", + "Transfer to ring group.", + "Transfer to user." + ], + "type": "string" + }, + "id": { + "description": "Ring group or auto attendant ID. Not set for users.", + "type": "string" + }, + "invalidReason": { + "description": "Reason for the error.", + "enum": [ + "TRANSFER_INVALID_REASON_UNSPECIFIED", + "TRANSFER_TARGET_DELETED", + "UNLICENSED", + "SUSPENDED", + "NO_PHONE_NUMBER" + ], + "enumDescriptions": [ + "Reason wasn't specified.", + "The transfer target can't be found—most likely it was deleted.", + "The user's Google Voice license was removed.", + "The user's Google Workspace account was suspended.", + "The transfer target no longer has a phone number. This reason should become deprecated once we support numberless transfer." + ], + "type": "string" + }, + "name": { + "description": "User's full name, or the ring group / auto attendant name. This may be unavailable if the entity was deleted.", + "type": "string" + } + }, + "type": "object" + }, + "TransferMisconfiguration": { + "description": "Error related to transferring or forwarding a phone call.", + "id": "TransferMisconfiguration", + "properties": { + "errors": { + "description": "Details for each invalid transfer or forward.", + "items": { + "$ref": "TransferError" + }, + "type": "array" + } + }, + "type": "object" + }, "UndeleteAlertRequest": { "description": "A request to undelete a specific alert that was marked for deletion.", "id": "UndeleteAlertRequest", @@ -1917,6 +1988,86 @@ } }, "type": "object" + }, + "VoiceMisconfiguration": { + "description": "An alert triggered when Google Voice configuration becomes invalid, generally due to an external entity being modified or deleted.", + "id": "VoiceMisconfiguration", + "properties": { + "entityName": { + "description": "Name of the entity whose configuration is now invalid.", + "type": "string" + }, + "entityType": { + "description": "Type of the entity whose configuration is now invalid.", + "enum": [ + "ENTITY_TYPE_UNSPECIFIED", + "AUTO_ATTENDANT", + "RING_GROUP" + ], + "enumDescriptions": [ + "Entity type wasn't set.", + "Invalid auto attendant.", + "Invalid ring group." + ], + "type": "string" + }, + "fixUri": { + "description": "Link that the admin can follow to fix the issue.", + "type": "string" + }, + "membersMisconfiguration": { + "$ref": "TransferMisconfiguration", + "description": "Issue(s) with members of a ring group." + }, + "transferMisconfiguration": { + "$ref": "TransferMisconfiguration", + "description": "Issue(s) with transferring or forwarding to an external entity." + }, + "voicemailMisconfiguration": { + "$ref": "VoicemailMisconfiguration", + "description": "Issue(s) with sending to voicemail." + } + }, + "type": "object" + }, + "VoicemailMisconfiguration": { + "description": "Issue(s) with sending to voicemail.", + "id": "VoicemailMisconfiguration", + "properties": { + "errors": { + "description": "Issue(s) with voicemail recipients.", + "items": { + "$ref": "VoicemailRecipientError" + }, + "type": "array" + } + }, + "type": "object" + }, + "VoicemailRecipientError": { + "description": "Issue(s) with a voicemail recipient.", + "id": "VoicemailRecipientError", + "properties": { + "email": { + "description": "Email address of the invalid recipient. This may be unavailable if the recipient was deleted.", + "type": "string" + }, + "invalidReason": { + "description": "Reason for the error.", + "enum": [ + "EMAIL_INVALID_REASON_UNSPECIFIED", + "OUT_OF_QUOTA", + "RECIPIENT_DELETED" + ], + "enumDescriptions": [ + "Reason wasn't specified.", + "User can't receive emails due to insufficient quota.", + "All recipients were deleted." + ], + "type": "string" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/alertcenter/v1beta1/alertcenter-gen.go b/alertcenter/v1beta1/alertcenter-gen.go index 90569e9eb78..62c3b8b48c6 100644 --- a/alertcenter/v1beta1/alertcenter-gen.go +++ b/alertcenter/v1beta1/alertcenter-gen.go @@ -641,8 +641,8 @@ func (s *AlertMetadata) MarshalJSON() ([]byte, error) { // ApnsCertificateExpirationInfo: The explanation message associated // with ApnsCertificationExpiring and ApnsCertificationExpired alerts. type ApnsCertificateExpirationInfo struct { - // AppleId: The Apple ID used for the certificate, may be blank if - // admins did not enter it. + // AppleId: The Apple ID used for the certificate may be blank if admins + // didn't enter it. AppleId string `json:"appleId,omitempty"` // ExpirationTime: The expiration date of the APNS Certificate. @@ -2085,6 +2085,8 @@ type RuleViolationInfo struct { // "ALERT" - Send alert. // "RULE_ACTIVATE" - Activate Rule Action // "RULE_DEACTIVATE" - Deactivate Rule Action + // "DELETE_WEBPROTECT_EVIDENCE" - Chrome actions Delete web protect + // evidence file SuppressedActionTypes []string `json:"suppressedActionTypes,omitempty"` // Trigger: Trigger of the rule. @@ -2108,6 +2110,8 @@ type RuleViolationInfo struct { // "ALERT" - Send alert. // "RULE_ACTIVATE" - Activate Rule Action // "RULE_DEACTIVATE" - Deactivate Rule Action + // "DELETE_WEBPROTECT_EVIDENCE" - Chrome actions Delete web protect + // evidence file TriggeredActionTypes []string `json:"triggeredActionTypes,omitempty"` // TriggeringUserEmail: Email of the user who caused the violation. @@ -2509,6 +2513,94 @@ func (s *SuspiciousActivitySecurityDetail) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TransferError: Details for an invalid transfer or forward. +type TransferError struct { + // Email: User's email address. This may be unavailable if the entity + // was deleted. + Email string `json:"email,omitempty"` + + // EntityType: Type of entity being transferred to. For ring group + // members, this should always be USER. + // + // Possible values: + // "TRANSFER_ENTITY_TYPE_UNSPECIFIED" - Entity type wasn't set. + // "TRANSFER_AUTO_ATTENDANT" - Transfer to auto attendant. + // "TRANSFER_RING_GROUP" - Transfer to ring group. + // "TRANSFER_USER" - Transfer to user. + EntityType string `json:"entityType,omitempty"` + + // Id: Ring group or auto attendant ID. Not set for users. + Id string `json:"id,omitempty"` + + // InvalidReason: Reason for the error. + // + // Possible values: + // "TRANSFER_INVALID_REASON_UNSPECIFIED" - Reason wasn't specified. + // "TRANSFER_TARGET_DELETED" - The transfer target can't be + // found—most likely it was deleted. + // "UNLICENSED" - The user's Google Voice license was removed. + // "SUSPENDED" - The user's Google Workspace account was suspended. + // "NO_PHONE_NUMBER" - The transfer target no longer has a phone + // number. This reason should become deprecated once we support + // numberless transfer. + InvalidReason string `json:"invalidReason,omitempty"` + + // Name: User's full name, or the ring group / auto attendant name. This + // may be unavailable if the entity was deleted. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Email") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Email") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TransferError) MarshalJSON() ([]byte, error) { + type NoMethod TransferError + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TransferMisconfiguration: Error related to transferring or forwarding +// a phone call. +type TransferMisconfiguration struct { + // Errors: Details for each invalid transfer or forward. + Errors []*TransferError `json:"errors,omitempty"` + + // 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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Errors") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TransferMisconfiguration) MarshalJSON() ([]byte, error) { + type NoMethod TransferMisconfiguration + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // UndeleteAlertRequest: A request to undelete a specific alert that was // marked for deletion. type UndeleteAlertRequest struct { @@ -2633,6 +2725,123 @@ func (s *UserDefinedDetectorInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// VoiceMisconfiguration: An alert triggered when Google Voice +// configuration becomes invalid, generally due to an external entity +// being modified or deleted. +type VoiceMisconfiguration struct { + // EntityName: Name of the entity whose configuration is now invalid. + EntityName string `json:"entityName,omitempty"` + + // EntityType: Type of the entity whose configuration is now invalid. + // + // Possible values: + // "ENTITY_TYPE_UNSPECIFIED" - Entity type wasn't set. + // "AUTO_ATTENDANT" - Invalid auto attendant. + // "RING_GROUP" - Invalid ring group. + EntityType string `json:"entityType,omitempty"` + + // FixUri: Link that the admin can follow to fix the issue. + FixUri string `json:"fixUri,omitempty"` + + // MembersMisconfiguration: Issue(s) with members of a ring group. + MembersMisconfiguration *TransferMisconfiguration `json:"membersMisconfiguration,omitempty"` + + // TransferMisconfiguration: Issue(s) with transferring or forwarding to + // an external entity. + TransferMisconfiguration *TransferMisconfiguration `json:"transferMisconfiguration,omitempty"` + + // VoicemailMisconfiguration: Issue(s) with sending to voicemail. + VoicemailMisconfiguration *VoicemailMisconfiguration `json:"voicemailMisconfiguration,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EntityName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EntityName") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *VoiceMisconfiguration) MarshalJSON() ([]byte, error) { + type NoMethod VoiceMisconfiguration + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// VoicemailMisconfiguration: Issue(s) with sending to voicemail. +type VoicemailMisconfiguration struct { + // Errors: Issue(s) with voicemail recipients. + Errors []*VoicemailRecipientError `json:"errors,omitempty"` + + // 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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Errors") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *VoicemailMisconfiguration) MarshalJSON() ([]byte, error) { + type NoMethod VoicemailMisconfiguration + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// VoicemailRecipientError: Issue(s) with a voicemail recipient. +type VoicemailRecipientError struct { + // Email: Email address of the invalid recipient. This may be + // unavailable if the recipient was deleted. + Email string `json:"email,omitempty"` + + // InvalidReason: Reason for the error. + // + // Possible values: + // "EMAIL_INVALID_REASON_UNSPECIFIED" - Reason wasn't specified. + // "OUT_OF_QUOTA" - User can't receive emails due to insufficient + // quota. + // "RECIPIENT_DELETED" - All recipients were deleted. + InvalidReason string `json:"invalidReason,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Email") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Email") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *VoicemailRecipientError) MarshalJSON() ([]byte, error) { + type NoMethod VoicemailRecipientError + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // method id "alertcenter.alerts.batchDelete": type AlertsBatchDeleteCall struct { diff --git a/analyticsdata/v1beta/analyticsdata-api.json b/analyticsdata/v1beta/analyticsdata-api.json index b70a81281a2..ca68f5f6889 100644 --- a/analyticsdata/v1beta/analyticsdata-api.json +++ b/analyticsdata/v1beta/analyticsdata-api.json @@ -178,7 +178,7 @@ ], "parameters": { "property": { - "description": "A Google Analytics GA4 property identifier whose events are tracked. To learn more, see [where to find your Property ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). `property` should be the same value as in your `runReport` request. Example: properties/1234 Set the Property ID to 0 for compatibility checking on dimensions and metrics common to all properties. In this special mode, this method will not return custom dimensions and metrics.", + "description": "A Google Analytics GA4 property identifier whose events are tracked. To learn more, see [where to find your Property ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). `property` should be the same value as in your `runReport` request. Example: properties/1234", "location": "path", "pattern": "^properties/[^/]+$", "required": true, @@ -313,7 +313,7 @@ } } }, - "revision": "20220904", + "revision": "20221210", "rootUrl": "https://analyticsdata.googleapis.com/", "schemas": { "ActiveMetricRestriction": { diff --git a/analyticsdata/v1beta/analyticsdata-gen.go b/analyticsdata/v1beta/analyticsdata-gen.go index 9501f7e6a44..29b9a3d1377 100644 --- a/analyticsdata/v1beta/analyticsdata-gen.go +++ b/analyticsdata/v1beta/analyticsdata-gen.go @@ -3034,10 +3034,7 @@ type PropertiesCheckCompatibilityCall struct { // are tracked. To learn more, see where to find your Property ID // (https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). // `property` should be the same value as in your `runReport` request. -// Example: properties/1234 Set the Property ID to 0 for compatibility -// checking on dimensions and metrics common to all properties. In -// this special mode, this method will not return custom dimensions -// and metrics. +// Example: properties/1234. func (r *PropertiesService) CheckCompatibility(propertyid string, checkcompatibilityrequest *CheckCompatibilityRequest) *PropertiesCheckCompatibilityCall { c := &PropertiesCheckCompatibilityCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.propertyid = propertyid @@ -3145,7 +3142,7 @@ func (c *PropertiesCheckCompatibilityCall) Do(opts ...googleapi.CallOption) (*Ch // ], // "parameters": { // "property": { - // "description": "A Google Analytics GA4 property identifier whose events are tracked. To learn more, see [where to find your Property ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). `property` should be the same value as in your `runReport` request. Example: properties/1234 Set the Property ID to 0 for compatibility checking on dimensions and metrics common to all properties. In this special mode, this method will not return custom dimensions and metrics.", + // "description": "A Google Analytics GA4 property identifier whose events are tracked. To learn more, see [where to find your Property ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). `property` should be the same value as in your `runReport` request. Example: properties/1234", // "location": "path", // "pattern": "^properties/[^/]+$", // "required": true, diff --git a/androidenterprise/v1/androidenterprise-api.json b/androidenterprise/v1/androidenterprise-api.json index ed333f45c07..fe2571382fe 100644 --- a/androidenterprise/v1/androidenterprise-api.json +++ b/androidenterprise/v1/androidenterprise-api.json @@ -383,6 +383,45 @@ "https://www.googleapis.com/auth/androidenterprise" ] }, + "createEnrollmentToken": { + "description": "Returns a token for device enrollment. The DPC can encode this token within the QR/NFC/zero-touch enrollment payload or fetch it before calling the on-device API to authenticate the user. The token can be generated for each device or reused across multiple devices.", + "flatPath": "androidenterprise/v1/enterprises/{enterpriseId}/createEnrollmentToken", + "httpMethod": "POST", + "id": "androidenterprise.enterprises.createEnrollmentToken", + "parameterOrder": [ + "enterpriseId" + ], + "parameters": { + "deviceType": { + "description": "Whether it’s a dedicated device or a knowledge worker device.", + "enum": [ + "unknown", + "dedicatedDevice", + "knowledgeWorker" + ], + "enumDescriptions": [ + "This value is unused", + "This device is a dedicated device.", + "This device is required to have an authenticated user." + ], + "location": "query", + "type": "string" + }, + "enterpriseId": { + "description": "The ID of the enterprise.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "androidenterprise/v1/enterprises/{enterpriseId}/createEnrollmentToken", + "response": { + "$ref": "CreateEnrollmentTokenResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidenterprise" + ] + }, "createWebToken": { "description": "Returns a unique token to access an embeddable UI. To generate a web UI, pass the generated token into the managed Google Play javascript API. Each token may only be used to start one UI session. See the javascript API documentation for further information.", "flatPath": "androidenterprise/v1/enterprises/{enterpriseId}/createWebToken", @@ -575,7 +614,7 @@ "parameterOrder": [], "parameters": { "requestMode": { - "description": "The request mode for pulling notifications. Specifying waitForNotifications will cause the request to block and wait until one or more notifications are present, or return an empty notification list if no notifications are present after some time. Speciying returnImmediately will cause the request to immediately return the pending notifications, or an empty list if no notifications are present. If omitted, defaults to waitForNotifications.", + "description": "The request mode for pulling notifications. Specifying waitForNotifications will cause the request to block and wait until one or more notifications are present, or return an empty notification list if no notifications are present after some time. Specifying returnImmediately will cause the request to immediately return the pending notifications, or an empty list if no notifications are present. If omitted, defaults to waitForNotifications.", "enum": [ "waitForNotifications", "returnImmediately" @@ -2610,7 +2649,7 @@ } } }, - "revision": "20221020", + "revision": "20221214", "rootUrl": "https://androidenterprise.googleapis.com/", "schemas": { "Administrator": { @@ -3099,6 +3138,17 @@ }, "type": "object" }, + "CreateEnrollmentTokenResponse": { + "description": "Response message for create enrollment token.", + "id": "CreateEnrollmentTokenResponse", + "properties": { + "enrollmentToken": { + "description": "Enrollment token.", + "type": "string" + } + }, + "type": "object" + }, "Device": { "description": "A Devices resource represents a mobile device managed by the EMM and belonging to a specific enterprise user.", "id": "Device", diff --git a/androidenterprise/v1/androidenterprise-gen.go b/androidenterprise/v1/androidenterprise-gen.go index 101a4c5b824..83fcdbe020c 100644 --- a/androidenterprise/v1/androidenterprise-gen.go +++ b/androidenterprise/v1/androidenterprise-gen.go @@ -1143,6 +1143,40 @@ func (s *ConfigurationVariables) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CreateEnrollmentTokenResponse: Response message for create enrollment +// token. +type CreateEnrollmentTokenResponse struct { + // EnrollmentToken: Enrollment token. + EnrollmentToken string `json:"enrollmentToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "EnrollmentToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EnrollmentToken") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CreateEnrollmentTokenResponse) MarshalJSON() ([]byte, error) { + type NoMethod CreateEnrollmentTokenResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Device: A Devices resource represents a mobile device managed by the // EMM and belonging to a specific enterprise user. type Device struct { @@ -5351,6 +5385,171 @@ func (c *EnterprisesCompleteSignupCall) Do(opts ...googleapi.CallOption) (*Enter } +// method id "androidenterprise.enterprises.createEnrollmentToken": + +type EnterprisesCreateEnrollmentTokenCall struct { + s *Service + enterpriseId string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// CreateEnrollmentToken: Returns a token for device enrollment. The DPC +// can encode this token within the QR/NFC/zero-touch enrollment payload +// or fetch it before calling the on-device API to authenticate the +// user. The token can be generated for each device or reused across +// multiple devices. +// +// - enterpriseId: The ID of the enterprise. +func (r *EnterprisesService) CreateEnrollmentToken(enterpriseId string) *EnterprisesCreateEnrollmentTokenCall { + c := &EnterprisesCreateEnrollmentTokenCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.enterpriseId = enterpriseId + return c +} + +// DeviceType sets the optional parameter "deviceType": Whether it’s a +// dedicated device or a knowledge worker device. +// +// Possible values: +// +// "unknown" - This value is unused +// "dedicatedDevice" - This device is a dedicated device. +// "knowledgeWorker" - This device is required to have an +// +// authenticated user. +func (c *EnterprisesCreateEnrollmentTokenCall) DeviceType(deviceType string) *EnterprisesCreateEnrollmentTokenCall { + c.urlParams_.Set("deviceType", deviceType) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *EnterprisesCreateEnrollmentTokenCall) Fields(s ...googleapi.Field) *EnterprisesCreateEnrollmentTokenCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *EnterprisesCreateEnrollmentTokenCall) Context(ctx context.Context) *EnterprisesCreateEnrollmentTokenCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *EnterprisesCreateEnrollmentTokenCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *EnterprisesCreateEnrollmentTokenCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "androidenterprise/v1/enterprises/{enterpriseId}/createEnrollmentToken") + 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{ + "enterpriseId": c.enterpriseId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "androidenterprise.enterprises.createEnrollmentToken" call. +// Exactly one of *CreateEnrollmentTokenResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *CreateEnrollmentTokenResponse.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 *EnterprisesCreateEnrollmentTokenCall) Do(opts ...googleapi.CallOption) (*CreateEnrollmentTokenResponse, 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 := &CreateEnrollmentTokenResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns a token for device enrollment. The DPC can encode this token within the QR/NFC/zero-touch enrollment payload or fetch it before calling the on-device API to authenticate the user. The token can be generated for each device or reused across multiple devices.", + // "flatPath": "androidenterprise/v1/enterprises/{enterpriseId}/createEnrollmentToken", + // "httpMethod": "POST", + // "id": "androidenterprise.enterprises.createEnrollmentToken", + // "parameterOrder": [ + // "enterpriseId" + // ], + // "parameters": { + // "deviceType": { + // "description": "Whether it’s a dedicated device or a knowledge worker device.", + // "enum": [ + // "unknown", + // "dedicatedDevice", + // "knowledgeWorker" + // ], + // "enumDescriptions": [ + // "This value is unused", + // "This device is a dedicated device.", + // "This device is required to have an authenticated user." + // ], + // "location": "query", + // "type": "string" + // }, + // "enterpriseId": { + // "description": "The ID of the enterprise.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "androidenterprise/v1/enterprises/{enterpriseId}/createEnrollmentToken", + // "response": { + // "$ref": "CreateEnrollmentTokenResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/androidenterprise" + // ] + // } + +} + // method id "androidenterprise.enterprises.createWebToken": type EnterprisesCreateWebTokenCall struct { @@ -6424,7 +6623,7 @@ func (r *EnterprisesService) PullNotificationSet() *EnterprisesPullNotificationS // mode for pulling notifications. Specifying waitForNotifications will // cause the request to block and wait until one or more notifications // are present, or return an empty notification list if no notifications -// are present after some time. Speciying returnImmediately will cause +// are present after some time. Specifying returnImmediately will cause // the request to immediately return the pending notifications, or an // empty list if no notifications are present. If omitted, defaults to // waitForNotifications. @@ -6533,7 +6732,7 @@ func (c *EnterprisesPullNotificationSetCall) Do(opts ...googleapi.CallOption) (* // "parameterOrder": [], // "parameters": { // "requestMode": { - // "description": "The request mode for pulling notifications. Specifying waitForNotifications will cause the request to block and wait until one or more notifications are present, or return an empty notification list if no notifications are present after some time. Speciying returnImmediately will cause the request to immediately return the pending notifications, or an empty list if no notifications are present. If omitted, defaults to waitForNotifications.", + // "description": "The request mode for pulling notifications. Specifying waitForNotifications will cause the request to block and wait until one or more notifications are present, or return an empty notification list if no notifications are present after some time. Specifying returnImmediately will cause the request to immediately return the pending notifications, or an empty list if no notifications are present. If omitted, defaults to waitForNotifications.", // "enum": [ // "waitForNotifications", // "returnImmediately" diff --git a/api-list.json b/api-list.json index 4fea36cac29..20b5b8446c7 100644 --- a/api-list.json +++ b/api-list.json @@ -1729,6 +1729,21 @@ "documentationLink": "https://cloud.google.com/apigee/docs/api-platform/connectors/about-connectors", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "contactcenteraiplatform:v1alpha1", + "name": "contactcenteraiplatform", + "version": "v1alpha1", + "title": "Contact Center AI Platform API", + "description": "", + "discoveryRestUrl": "https://contactcenteraiplatform.googleapis.com/$discovery/rest?version=v1alpha1", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/solutions/contact-center-ai-platform", + "preferred": true + }, { "kind": "discovery#directoryItem", "id": "contactcenterinsights:v1", @@ -1909,6 +1924,21 @@ "documentationLink": "https://cloud.google.com/dataflow", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "dataform:v1beta1", + "name": "dataform", + "version": "v1beta1", + "title": "Dataform API", + "description": "", + "discoveryRestUrl": "https://dataform.googleapis.com/$discovery/rest?version=v1beta1", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/dataform/docs", + "preferred": true + }, { "kind": "discovery#directoryItem", "id": "datafusion:v1beta1", @@ -2787,7 +2817,7 @@ "name": "firebasedatabase", "version": "v1beta", "title": "Firebase Realtime Database API", - "description": "The Firebase Realtime Database Management API enables programmatic provisioning and management of Realtime Database instances.", + "description": "The Firebase Realtime Database API enables programmatic provisioning and management of Realtime Database instances.", "discoveryRestUrl": "https://firebasedatabase.googleapis.com/$discovery/rest?version=v1beta", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", @@ -3469,6 +3499,21 @@ "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/application-integration", + "preferred": false + }, + { + "kind": "discovery#directoryItem", + "id": "integrations:v1", + "name": "integrations", + "version": "v1", + "title": "Application Integration API", + "description": "", + "discoveryRestUrl": "https://integrations.googleapis.com/$discovery/rest?version=v1", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/application-integration", "preferred": true }, { @@ -4348,7 +4393,7 @@ "name": "playintegrity", "version": "v1", "title": "Google Play Integrity API", - "description": "Play Integrity", + "description": "The Play Integrity API helps you check that you're interacting with your genuine app on a genuine Android device powered by Google Play services. The Play Integrity API has replaced SafetyNet Attestation and Android Device Verification.", "discoveryRestUrl": "https://playintegrity.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", @@ -5974,7 +6019,7 @@ "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "https://g3doc.corp.google.com/company/teams/compute-fe/index.md?cl=head", + "documentationLink": "https://cloud.google.com/workload-manager/docs", "preferred": true }, { diff --git a/apigee/v1/apigee-api.json b/apigee/v1/apigee-api.json index ed523746dbd..762f680c7a5 100644 --- a/apigee/v1/apigee-api.json +++ b/apigee/v1/apigee-api.json @@ -3262,6 +3262,46 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "getDeployedIngressConfig": { + "description": "Gets the deployed ingress configuration for an environment group.", + "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/deployedIngressConfig", + "httpMethod": "GET", + "id": "apigee.organizations.envgroups.getDeployedIngressConfig", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the deployed configuration for the environment group in the following format: 'organizations/{org}/envgroups/{envgroup}/deployedIngressConfig'.", + "location": "path", + "pattern": "^organizations/[^/]+/envgroups/[^/]+/deployedIngressConfig$", + "required": true, + "type": "string" + }, + "view": { + "description": "When set to FULL, additional details about the specific deployments receiving traffic will be included in the IngressConfig response's RoutingRules.", + "enum": [ + "INGRESS_CONFIG_VIEW_UNSPECIFIED", + "BASIC", + "FULL" + ], + "enumDescriptions": [ + "The default/unset value. The API will default to the BASIC view.", + "Include all ingress config data necessary for the runtime to configure ingress, but no more. Routing rules will include only basepath and destination environment. This the default value.", + "Include all ingress config data, including internal debug info for each routing rule such as the proxy claiming a particular basepath and when the routing rule first appeared in the env group." + ], + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudApigeeV1EnvironmentGroupConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "Lists all environment groups.", "flatPath": "v1/organizations/{organizationsId}/envgroups", @@ -8634,7 +8674,7 @@ } } }, - "revision": "20221110", + "revision": "20221213", "rootUrl": "https://apigee.googleapis.com/", "schemas": { "EdgeConfigstoreBundleBadBundle": { @@ -10466,7 +10506,7 @@ "type": "object" }, "GoogleCloudApigeeV1DeploymentConfig": { - "description": "NEXT ID: 9", + "description": "NEXT ID: 11", "id": "GoogleCloudApigeeV1DeploymentConfig", "properties": { "attributes": { @@ -10480,6 +10520,20 @@ "description": "Base path where the application will be hosted. Defaults to \"/\".", "type": "string" }, + "deploymentGroups": { + "description": "The list of deployment groups in which this proxy should be deployed. Not currently populated for shared flows.", + "items": { + "type": "string" + }, + "type": "array" + }, + "endpoints": { + "additionalProperties": { + "type": "string" + }, + "description": "A mapping from basepaths to proxy endpoint names in this proxy. Not populated for shared flows.", + "type": "object" + }, "location": { "description": "Location of the API proxy bundle as a URI.", "type": "string" @@ -10503,6 +10557,26 @@ }, "type": "object" }, + "GoogleCloudApigeeV1DeploymentGroupConfig": { + "description": "DeploymentGroupConfig represents a deployment group that should be present in a particular environment.", + "id": "GoogleCloudApigeeV1DeploymentGroupConfig", + "properties": { + "name": { + "description": "Name of the deployment group in the following format: `organizations/{org}/environments/{env}/deploymentGroups/{group}`.", + "type": "string" + }, + "revisionId": { + "description": "Revision number which can be used by the runtime to detect if the deployment group has changed between two versions.", + "format": "int64", + "type": "string" + }, + "uid": { + "description": "Unique ID. The ID will only change if the deployment group is deleted and recreated.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudApigeeV1Developer": { "id": "GoogleCloudApigeeV1Developer", "properties": { @@ -10887,6 +10961,24 @@ }, "type": "object" }, + "GoogleCloudApigeeV1EndpointChainingRule": { + "description": "EndpointChainingRule specifies the proxies contained in a particular deployment group, so that other deployment groups can find them in chaining calls.", + "id": "GoogleCloudApigeeV1EndpointChainingRule", + "properties": { + "deploymentGroup": { + "description": "The deployment group to target for cross-shard chaining calls to these proxies.", + "type": "string" + }, + "proxyIds": { + "description": "List of proxy ids which may be found in the given deployment group.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudApigeeV1EntityMetadata": { "description": "Metadata common to many entities in this API.", "id": "GoogleCloudApigeeV1EntityMetadata", @@ -11020,6 +11112,13 @@ "$ref": "GoogleCloudApigeeV1DebugMask", "description": "Debug mask that applies to all deployments in the environment." }, + "deploymentGroups": { + "description": "List of deployment groups in the environment.", + "items": { + "$ref": "GoogleCloudApigeeV1DeploymentGroupConfig" + }, + "type": "array" + }, "deployments": { "description": "List of deployments in the environment.", "items": { @@ -11027,6 +11126,11 @@ }, "type": "array" }, + "envScopedRevisionId": { + "description": "Revision ID for environment-scoped resources (e.g. target servers, keystores) in this config. This ID will increment any time a resource not scoped to a deployment group changes.", + "format": "int64", + "type": "string" + }, "featureFlags": { "additionalProperties": { "type": "string" @@ -11189,6 +11293,13 @@ "description": "EnvironmentGroupConfig is a revisioned snapshot of an EnvironmentGroup and its associated routing rules.", "id": "GoogleCloudApigeeV1EnvironmentGroupConfig", "properties": { + "endpointChainingRules": { + "description": "A list of proxies in each deployment group for proxy chaining calls.", + "items": { + "$ref": "GoogleCloudApigeeV1EndpointChainingRule" + }, + "type": "array" + }, "hostnames": { "description": "Host names for the environment group.", "items": { @@ -11196,6 +11307,10 @@ }, "type": "array" }, + "location": { + "description": "When this message appears in the top-level IngressConfig, this field will be populated in lieu of the inlined routing_rules and hostnames fields. Some URL for downloading the full EnvironmentGroupConfig for this group.", + "type": "string" + }, "name": { "description": "Name of the environment group in the following format: `organizations/{org}/envgroups/{envgroup}`.", "type": "string" @@ -13740,15 +13855,26 @@ "description": "URI path prefix used to route to the specified environment. May contain one or more wildcards. For example, path segments consisting of a single `*` character will match any string.", "type": "string" }, + "deploymentGroup": { + "description": "Name of a deployment group in an environment bound to the environment group in the following format: `organizations/{org}/environment/{env}/deploymentGroups/{group}` Only one of environment or deployment_group will be set.", + "type": "string" + }, "envGroupRevision": { "description": "The env group config revision_id when this rule was added or last updated. This value is set when the rule is created and will only update if the the environment_id changes. It is used to determine if the runtime is up to date with respect to this rule. This field is omitted from the IngressConfig unless the GetDeployedIngressConfig API is called with view=FULL.", "format": "int64", "type": "string" }, "environment": { - "description": "Name of an environment bound to the environment group in the following format: `organizations/{org}/environments/{env}`.", + "description": "Name of an environment bound to the environment group in the following format: `organizations/{org}/environments/{env}`. Only one of environment or deployment_group will be set.", "type": "string" }, + "otherTargets": { + "description": "Conflicting targets, which will be resource names specifying either deployment groups or environments.", + "items": { + "type": "string" + }, + "type": "array" + }, "receiver": { "description": "The resource name of the proxy revision that is receiving this basepath in the following format: `organizations/{org}/apis/{api}/revisions/{rev}`. This field is omitted from the IngressConfig unless the GetDeployedIngressConfig API is called with view=FULL.", "type": "string" @@ -14677,7 +14803,7 @@ "type": "object" }, "GoogleCloudApigeeV1TargetServer": { - "description": "TargetServer configuration. TargetServers are used to decouple a proxy's TargetEndpoint HTTPTargetConnections from concrete URLs for backend services.", + "description": "TargetServer configuration. TargetServers are used to decouple a proxy TargetEndpoint HTTPTargetConnections from concrete URLs for backend services.", "id": "GoogleCloudApigeeV1TargetServer", "properties": { "description": { diff --git a/apigee/v1/apigee-gen.go b/apigee/v1/apigee-gen.go index 2667ac43a4b..636080be87d 100644 --- a/apigee/v1/apigee-gen.go +++ b/apigee/v1/apigee-gen.go @@ -3852,7 +3852,7 @@ func (s *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment) MarshalJSON return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudApigeeV1DeploymentConfig: NEXT ID: 9 +// GoogleCloudApigeeV1DeploymentConfig: NEXT ID: 11 type GoogleCloudApigeeV1DeploymentConfig struct { // Attributes: Additional key-value metadata for the deployment. Attributes map[string]string `json:"attributes,omitempty"` @@ -3861,6 +3861,14 @@ type GoogleCloudApigeeV1DeploymentConfig struct { // "/". BasePath string `json:"basePath,omitempty"` + // DeploymentGroups: The list of deployment groups in which this proxy + // should be deployed. Not currently populated for shared flows. + DeploymentGroups []string `json:"deploymentGroups,omitempty"` + + // Endpoints: A mapping from basepaths to proxy endpoint names in this + // proxy. Not populated for shared flows. + Endpoints map[string]string `json:"endpoints,omitempty"` + // Location: Location of the API proxy bundle as a URI. Location string `json:"location,omitempty"` @@ -3904,6 +3912,45 @@ func (s *GoogleCloudApigeeV1DeploymentConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudApigeeV1DeploymentGroupConfig: DeploymentGroupConfig +// represents a deployment group that should be present in a particular +// environment. +type GoogleCloudApigeeV1DeploymentGroupConfig struct { + // Name: Name of the deployment group in the following format: + // `organizations/{org}/environments/{env}/deploymentGroups/{group}`. + Name string `json:"name,omitempty"` + + // RevisionId: Revision number which can be used by the runtime to + // detect if the deployment group has changed between two versions. + RevisionId int64 `json:"revisionId,omitempty,string"` + + // Uid: Unique ID. The ID will only change if the deployment group is + // deleted and recreated. + Uid string `json:"uid,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudApigeeV1DeploymentGroupConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1DeploymentGroupConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type GoogleCloudApigeeV1Developer struct { // AccessType: Access type. AccessType string `json:"accessType,omitempty"` @@ -4402,6 +4449,42 @@ func (s *GoogleCloudApigeeV1EndpointAttachment) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudApigeeV1EndpointChainingRule: EndpointChainingRule +// specifies the proxies contained in a particular deployment group, so +// that other deployment groups can find them in chaining calls. +type GoogleCloudApigeeV1EndpointChainingRule struct { + // DeploymentGroup: The deployment group to target for cross-shard + // chaining calls to these proxies. + DeploymentGroup string `json:"deploymentGroup,omitempty"` + + // ProxyIds: List of proxy ids which may be found in the given + // deployment group. + ProxyIds []string `json:"proxyIds,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DeploymentGroup") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DeploymentGroup") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudApigeeV1EndpointChainingRule) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1EndpointChainingRule + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudApigeeV1EntityMetadata: Metadata common to many entities // in this API. type GoogleCloudApigeeV1EntityMetadata struct { @@ -4566,9 +4649,18 @@ type GoogleCloudApigeeV1EnvironmentConfig struct { // environment. DebugMask *GoogleCloudApigeeV1DebugMask `json:"debugMask,omitempty"` + // DeploymentGroups: List of deployment groups in the environment. + DeploymentGroups []*GoogleCloudApigeeV1DeploymentGroupConfig `json:"deploymentGroups,omitempty"` + // Deployments: List of deployments in the environment. Deployments []*GoogleCloudApigeeV1DeploymentConfig `json:"deployments,omitempty"` + // EnvScopedRevisionId: Revision ID for environment-scoped resources + // (e.g. target servers, keystores) in this config. This ID will + // increment any time a resource not scoped to a deployment group + // changes. + EnvScopedRevisionId int64 `json:"envScopedRevisionId,omitempty,string"` + // FeatureFlags: Feature flags inherited from the organization and // environment. FeatureFlags map[string]string `json:"featureFlags,omitempty"` @@ -4758,9 +4850,19 @@ func (s *GoogleCloudApigeeV1EnvironmentGroupAttachment) MarshalJSON() ([]byte, e // a revisioned snapshot of an EnvironmentGroup and its associated // routing rules. type GoogleCloudApigeeV1EnvironmentGroupConfig struct { + // EndpointChainingRules: A list of proxies in each deployment group for + // proxy chaining calls. + EndpointChainingRules []*GoogleCloudApigeeV1EndpointChainingRule `json:"endpointChainingRules,omitempty"` + // Hostnames: Host names for the environment group. Hostnames []string `json:"hostnames,omitempty"` + // Location: When this message appears in the top-level IngressConfig, + // this field will be populated in lieu of the inlined routing_rules and + // hostnames fields. Some URL for downloading the full + // EnvironmentGroupConfig for this group. + Location string `json:"location,omitempty"` + // Name: Name of the environment group in the following format: // `organizations/{org}/envgroups/{envgroup}`. Name string `json:"name,omitempty"` @@ -4779,20 +4881,26 @@ type GoogleCloudApigeeV1EnvironmentGroupConfig struct { // change if the environment group is deleted and recreated. Uid string `json:"uid,omitempty"` - // ForceSendFields is a list of field names (e.g. "Hostnames") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "EndpointChainingRules") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Hostnames") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndpointChainingRules") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -9063,6 +9171,12 @@ type GoogleCloudApigeeV1RoutingRule struct { // consisting of a single `*` character will match any string. Basepath string `json:"basepath,omitempty"` + // DeploymentGroup: Name of a deployment group in an environment bound + // to the environment group in the following format: + // `organizations/{org}/environment/{env}/deploymentGroups/{group}` Only + // one of environment or deployment_group will be set. + DeploymentGroup string `json:"deploymentGroup,omitempty"` + // EnvGroupRevision: The env group config revision_id when this rule was // added or last updated. This value is set when the rule is created and // will only update if the the environment_id changes. It is used to @@ -9072,9 +9186,14 @@ type GoogleCloudApigeeV1RoutingRule struct { EnvGroupRevision int64 `json:"envGroupRevision,omitempty,string"` // Environment: Name of an environment bound to the environment group in - // the following format: `organizations/{org}/environments/{env}`. + // the following format: `organizations/{org}/environments/{env}`. Only + // one of environment or deployment_group will be set. Environment string `json:"environment,omitempty"` + // OtherTargets: Conflicting targets, which will be resource names + // specifying either deployment groups or environments. + OtherTargets []string `json:"otherTargets,omitempty"` + // Receiver: The resource name of the proxy revision that is receiving // this basepath in the following format: // `organizations/{org}/apis/{api}/revisions/{rev}`. This field is @@ -10581,7 +10700,7 @@ func (s *GoogleCloudApigeeV1SyncAuthorization) MarshalJSON() ([]byte, error) { } // GoogleCloudApigeeV1TargetServer: TargetServer configuration. -// TargetServers are used to decouple a proxy's TargetEndpoint +// TargetServers are used to decouple a proxy TargetEndpoint // HTTPTargetConnections from concrete URLs for backend services. type GoogleCloudApigeeV1TargetServer struct { // Description: Optional. A human-readable description of this @@ -28020,6 +28139,196 @@ func (c *OrganizationsEnvgroupsGetCall) Do(opts ...googleapi.CallOption) (*Googl } +// method id "apigee.organizations.envgroups.getDeployedIngressConfig": + +type OrganizationsEnvgroupsGetDeployedIngressConfigCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetDeployedIngressConfig: Gets the deployed ingress configuration for +// an environment group. +// +// - name: Name of the deployed configuration for the environment group +// in the following format: +// 'organizations/{org}/envgroups/{envgroup}/deployedIngressConfig'. +func (r *OrganizationsEnvgroupsService) GetDeployedIngressConfig(name string) *OrganizationsEnvgroupsGetDeployedIngressConfigCall { + c := &OrganizationsEnvgroupsGetDeployedIngressConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// View sets the optional parameter "view": When set to FULL, additional +// details about the specific deployments receiving traffic will be +// included in the IngressConfig response's RoutingRules. +// +// Possible values: +// +// "INGRESS_CONFIG_VIEW_UNSPECIFIED" - The default/unset value. The +// +// API will default to the BASIC view. +// +// "BASIC" - Include all ingress config data necessary for the runtime +// +// to configure ingress, but no more. Routing rules will include only +// basepath and destination environment. This the default value. +// +// "FULL" - Include all ingress config data, including internal debug +// +// info for each routing rule such as the proxy claiming a particular +// basepath and when the routing rule first appeared in the env group. +func (c *OrganizationsEnvgroupsGetDeployedIngressConfigCall) View(view string) *OrganizationsEnvgroupsGetDeployedIngressConfigCall { + c.urlParams_.Set("view", view) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsEnvgroupsGetDeployedIngressConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsGetDeployedIngressConfigCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsEnvgroupsGetDeployedIngressConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsGetDeployedIngressConfigCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsEnvgroupsGetDeployedIngressConfigCall) Context(ctx context.Context) *OrganizationsEnvgroupsGetDeployedIngressConfigCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsEnvgroupsGetDeployedIngressConfigCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsEnvgroupsGetDeployedIngressConfigCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apigee.organizations.envgroups.getDeployedIngressConfig" call. +// Exactly one of *GoogleCloudApigeeV1EnvironmentGroupConfig or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudApigeeV1EnvironmentGroupConfig.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 *OrganizationsEnvgroupsGetDeployedIngressConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentGroupConfig, 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 := &GoogleCloudApigeeV1EnvironmentGroupConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the deployed ingress configuration for an environment group.", + // "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/deployedIngressConfig", + // "httpMethod": "GET", + // "id": "apigee.organizations.envgroups.getDeployedIngressConfig", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the deployed configuration for the environment group in the following format: 'organizations/{org}/envgroups/{envgroup}/deployedIngressConfig'.", + // "location": "path", + // "pattern": "^organizations/[^/]+/envgroups/[^/]+/deployedIngressConfig$", + // "required": true, + // "type": "string" + // }, + // "view": { + // "description": "When set to FULL, additional details about the specific deployments receiving traffic will be included in the IngressConfig response's RoutingRules.", + // "enum": [ + // "INGRESS_CONFIG_VIEW_UNSPECIFIED", + // "BASIC", + // "FULL" + // ], + // "enumDescriptions": [ + // "The default/unset value. The API will default to the BASIC view.", + // "Include all ingress config data necessary for the runtime to configure ingress, but no more. Routing rules will include only basepath and destination environment. This the default value.", + // "Include all ingress config data, including internal debug info for each routing rule such as the proxy claiming a particular basepath and when the routing rule first appeared in the env group." + // ], + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudApigeeV1EnvironmentGroupConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "apigee.organizations.envgroups.list": type OrganizationsEnvgroupsListCall struct { diff --git a/batch/v1/batch-api.json b/batch/v1/batch-api.json index d5a0147b1ea..1177412e20f 100644 --- a/batch/v1/batch-api.json +++ b/batch/v1/batch-api.json @@ -483,97 +483,6 @@ } } }, - "nodes": { - "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}/nodes/{nodesId}:getIamPolicy", - "httpMethod": "GET", - "id": "batch.projects.locations.nodes.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/[^/]+/nodes/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:getIamPolicy", - "response": { - "$ref": "Policy" - }, - "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}/nodes/{nodesId}:setIamPolicy", - "httpMethod": "POST", - "id": "batch.projects.locations.nodes.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/[^/]+/nodes/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:setIamPolicy", - "request": { - "$ref": "SetIamPolicyRequest" - }, - "response": { - "$ref": "Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "testIamPermissions": { - "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:testIamPermissions", - "httpMethod": "POST", - "id": "batch.projects.locations.nodes.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/[^/]+/nodes/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:testIamPermissions", - "request": { - "$ref": "TestIamPermissionsRequest" - }, - "response": { - "$ref": "TestIamPermissionsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, "operations": { "methods": { "cancel": { @@ -728,104 +637,13 @@ ] } } - }, - "tasks": { - "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}/tasks/{tasksId}:getIamPolicy", - "httpMethod": "GET", - "id": "batch.projects.locations.tasks.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/[^/]+/tasks/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:getIamPolicy", - "response": { - "$ref": "Policy" - }, - "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}/tasks/{tasksId}:setIamPolicy", - "httpMethod": "POST", - "id": "batch.projects.locations.tasks.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/[^/]+/tasks/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:setIamPolicy", - "request": { - "$ref": "SetIamPolicyRequest" - }, - "response": { - "$ref": "Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "testIamPermissions": { - "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tasks/{tasksId}:testIamPermissions", - "httpMethod": "POST", - "id": "batch.projects.locations.tasks.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/[^/]+/tasks/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:testIamPermissions", - "request": { - "$ref": "TestIamPermissionsRequest" - }, - "response": { - "$ref": "TestIamPermissionsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } } } } } } }, - "revision": "20221017", + "revision": "20221212", "rootUrl": "https://batch.googleapis.com/", "schemas": { "Accelerator": { @@ -907,11 +725,11 @@ "type": "object" }, "AgentMetadata": { - "description": "AgentMetadata never changes for a single instance of VM agent.", + "description": "VM Agent Metadata.", "id": "AgentMetadata", "properties": { "creationTime": { - "description": "When the VM agent started.", + "description": "When the VM agent started. Use agent_startup_time instead.", "format": "google-datetime", "type": "string" }, @@ -919,6 +737,10 @@ "description": "Full name of the entity that created this vm. For MIG, this path is: projects/{project}/regions/{region}/InstanceGroupManagers/{igm} The value is retrieved from the vm metadata key of \"created-by\".", "type": "string" }, + "imageVersion": { + "description": "image version for the VM that this agent is installed on.", + "type": "string" + }, "instance": { "description": "GCP instance name (go/instance-name).", "type": "string" @@ -928,6 +750,10 @@ "format": "uint64", "type": "string" }, + "instancePreemptionNoticeReceived": { + "description": "If the GCP instance has received preemption notice.", + "type": "boolean" + }, "osRelease": { "additionalProperties": { "type": "string" @@ -1006,6 +832,28 @@ }, "type": "object" }, + "AgentTimingInfo": { + "description": "VM timing information", + "id": "AgentTimingInfo", + "properties": { + "agentStartupTime": { + "description": "Agent startup time", + "format": "google-datetime", + "type": "string" + }, + "bootTime": { + "description": "Boot timestamp of the VM OS", + "format": "google-datetime", + "type": "string" + }, + "scriptStartupTime": { + "description": "Startup time of the Batch VM script.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "AllocationPolicy": { "description": "A Job's resource allocation policy describes when, where, and how compute resources should be allocated for the Job.", "id": "AllocationPolicy", @@ -1194,11 +1042,11 @@ "type": "string" }, "password": { - "description": "Optional password for logging in to a docker registry. If password matches \"projects/*/secrets/*/versions/*\" then Batch will read the password from the Secret Manager;", + "description": "Optional password for logging in to a docker registry. If password matches `projects/*/secrets/*/versions/*` then Batch will read the password from the Secret Manager;", "type": "string" }, "username": { - "description": "Optional username for logging in to a docker registry. If username matches \"projects/*/secrets/*/versions/*\" then Batch will read the username from the Secret Manager.", + "description": "Optional username for logging in to a docker registry. If username matches `projects/*/secrets/*/versions/*` then Batch will read the username from the Secret Manager.", "type": "string" }, "volumes": { @@ -1249,6 +1097,17 @@ "description": "An Environment describes a collection of environment variables to set when executing Tasks.", "id": "Environment", "properties": { + "encryptedVariables": { + "$ref": "KMSEnvMap", + "description": "An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values." + }, + "secretVariables": { + "additionalProperties": { + "type": "string" + }, + "description": "A map of environment variable names to Secret Manager secret names. The VM will access the named secrets to set the value of each environment variable.", + "type": "object" + }, "variables": { "additionalProperties": { "type": "string" @@ -1520,6 +1379,20 @@ }, "type": "object" }, + "KMSEnvMap": { + "id": "KMSEnvMap", + "properties": { + "cipherText": { + "description": "The value of the cipherText response from the `encrypt` method.", + "type": "string" + }, + "keyName": { + "description": "The name of the KMS key that will be used to decrypt the cipher text.", + "type": "string" + } + }, + "type": "object" + }, "LifecyclePolicy": { "description": "LifecyclePolicy describes how to deal with task failures based on different conditions.", "id": "LifecyclePolicy", @@ -1786,7 +1659,7 @@ "id": "NetworkInterface", "properties": { "network": { - "description": "The URL of the network resource.", + "description": "The URL of an existing network resource. You can specify the network as a full or partial URL. For example, the following are all valid URLs: https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} projects/{project}/global/networks/{network} global/networks/{network}", "type": "string" }, "noExternalIpAddress": { @@ -1794,7 +1667,7 @@ "type": "boolean" }, "subnetwork": { - "description": "The URL of the Subnetwork resource.", + "description": "The URL of an existing subnetwork resource in the network. You can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork} projects/{project}/regions/{region}/subnetworks/{subnetwork} regions/{region}/subnetworks/{subnetwork}", "type": "string" } }, @@ -1932,6 +1805,10 @@ "$ref": "AgentInfo", "description": "Agent info." }, + "agentTimingInfo": { + "$ref": "AgentTimingInfo", + "description": "Agent timing info." + }, "metadata": { "$ref": "AgentMetadata", "description": "Agent metadata." @@ -1943,6 +1820,16 @@ "description": "Response to ReportAgentStateRequest.", "id": "ReportAgentStateResponse", "properties": { + "defaultReportInterval": { + "description": "Default report interval override", + "format": "google-duration", + "type": "string" + }, + "minReportInterval": { + "description": "Minimum report interval override", + "format": "google-duration", + "type": "string" + }, "tasks": { "description": "Tasks assigned to the agent", "items": { @@ -2197,7 +2084,7 @@ "additionalProperties": { "type": "string" }, - "description": "Environment variables to set before running the Task. You can set up to 100 environments.", + "description": "Deprecated: please use environment(non-plural) instead.", "type": "object" }, "lifecyclePolicies": { diff --git a/batch/v1/batch-gen.go b/batch/v1/batch-gen.go index c029eccf688..28f40fe15ed 100644 --- a/batch/v1/batch-gen.go +++ b/batch/v1/batch-gen.go @@ -152,10 +152,8 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} rs.Jobs = NewProjectsLocationsJobsService(s) - rs.Nodes = NewProjectsLocationsNodesService(s) rs.Operations = NewProjectsLocationsOperationsService(s) rs.State = NewProjectsLocationsStateService(s) - rs.Tasks = NewProjectsLocationsTasksService(s) return rs } @@ -164,13 +162,9 @@ type ProjectsLocationsService struct { Jobs *ProjectsLocationsJobsService - Nodes *ProjectsLocationsNodesService - Operations *ProjectsLocationsOperationsService State *ProjectsLocationsStateService - - Tasks *ProjectsLocationsTasksService } func NewProjectsLocationsJobsService(s *Service) *ProjectsLocationsJobsService { @@ -206,15 +200,6 @@ type ProjectsLocationsJobsTaskGroupsTasksService struct { s *Service } -func NewProjectsLocationsNodesService(s *Service) *ProjectsLocationsNodesService { - rs := &ProjectsLocationsNodesService{s: s} - return rs -} - -type ProjectsLocationsNodesService struct { - s *Service -} - func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { rs := &ProjectsLocationsOperationsService{s: s} return rs @@ -233,15 +218,6 @@ type ProjectsLocationsStateService struct { s *Service } -func NewProjectsLocationsTasksService(s *Service) *ProjectsLocationsTasksService { - rs := &ProjectsLocationsTasksService{s: s} - return rs -} - -type ProjectsLocationsTasksService struct { - s *Service -} - // Accelerator: Accelerator describes Compute Engine accelerators to be // attached to the VM. type Accelerator struct { @@ -357,10 +333,10 @@ func (s *AgentInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AgentMetadata: AgentMetadata never changes for a single instance of -// VM agent. +// AgentMetadata: VM Agent Metadata. type AgentMetadata struct { - // CreationTime: When the VM agent started. + // CreationTime: When the VM agent started. Use agent_startup_time + // instead. CreationTime string `json:"creationTime,omitempty"` // Creator: Full name of the entity that created this vm. For MIG, this @@ -369,12 +345,20 @@ type AgentMetadata struct { // value is retrieved from the vm metadata key of "created-by". Creator string `json:"creator,omitempty"` + // ImageVersion: image version for the VM that this agent is installed + // on. + ImageVersion string `json:"imageVersion,omitempty"` + // Instance: GCP instance name (go/instance-name). Instance string `json:"instance,omitempty"` // InstanceId: GCP instance ID (go/instance-id). InstanceId uint64 `json:"instanceId,omitempty,string"` + // InstancePreemptionNoticeReceived: If the GCP instance has received + // preemption notice. + InstancePreemptionNoticeReceived bool `json:"instancePreemptionNoticeReceived,omitempty"` + // OsRelease: parsed contents of /etc/os-release OsRelease map[string]string `json:"osRelease,omitempty"` @@ -493,6 +477,41 @@ func (s *AgentTaskInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AgentTimingInfo: VM timing information +type AgentTimingInfo struct { + // AgentStartupTime: Agent startup time + AgentStartupTime string `json:"agentStartupTime,omitempty"` + + // BootTime: Boot timestamp of the VM OS + BootTime string `json:"bootTime,omitempty"` + + // ScriptStartupTime: Startup time of the Batch VM script. + ScriptStartupTime string `json:"scriptStartupTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentStartupTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgentStartupTime") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AgentTimingInfo) MarshalJSON() ([]byte, error) { + type NoMethod AgentTimingInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AllocationPolicy: A Job's resource allocation policy describes when, // where, and how compute resources should be allocated for the Job. type AllocationPolicy struct { @@ -846,12 +865,12 @@ type Container struct { Options string `json:"options,omitempty"` // Password: Optional password for logging in to a docker registry. If - // password matches "projects/*/secrets/*/versions/*" then Batch will + // password matches `projects/*/secrets/*/versions/*` then Batch will // read the password from the Secret Manager; Password string `json:"password,omitempty"` // Username: Optional username for logging in to a docker registry. If - // username matches "projects/*/secrets/*/versions/*" then Batch will + // username matches `projects/*/secrets/*/versions/*` then Batch will // read the username from the Secret Manager. Username string `json:"username,omitempty"` @@ -948,23 +967,33 @@ type Empty struct { // Environment: An Environment describes a collection of environment // variables to set when executing Tasks. type Environment struct { + // EncryptedVariables: An encrypted JSON dictionary where the key/value + // pairs correspond to environment variable names and their values. + EncryptedVariables *KMSEnvMap `json:"encryptedVariables,omitempty"` + + // SecretVariables: A map of environment variable names to Secret + // Manager secret names. The VM will access the named secrets to set the + // value of each environment variable. + SecretVariables map[string]string `json:"secretVariables,omitempty"` + // Variables: A map of environment variable names to values. Variables map[string]string `json:"variables,omitempty"` - // ForceSendFields is a list of field names (e.g. "Variables") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "EncryptedVariables") + // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Variables") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EncryptedVariables") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -1367,6 +1396,38 @@ func (s *JobStatus) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type KMSEnvMap struct { + // CipherText: The value of the cipherText response from the `encrypt` + // method. + CipherText string `json:"cipherText,omitempty"` + + // KeyName: The name of the KMS key that will be used to decrypt the + // cipher text. + KeyName string `json:"keyName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CipherText") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CipherText") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *KMSEnvMap) MarshalJSON() ([]byte, error) { + type NoMethod KMSEnvMap + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // LifecyclePolicy: LifecyclePolicy describes how to deal with task // failures based on different conditions. type LifecyclePolicy struct { @@ -1781,7 +1842,12 @@ func (s *NFS) MarshalJSON() ([]byte, error) { // NetworkInterface: A network interface. type NetworkInterface struct { - // Network: The URL of the network resource. + // Network: The URL of an existing network resource. You can specify the + // network as a full or partial URL. For example, the following are all + // valid URLs: + // https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} + // projects/{project}/global/networks/{network} + // global/networks/{network} Network string `json:"network,omitempty"` // NoExternalIpAddress: Default is false (with an external IP address). @@ -1793,7 +1859,12 @@ type NetworkInterface struct { // information. NoExternalIpAddress bool `json:"noExternalIpAddress,omitempty"` - // Subnetwork: The URL of the Subnetwork resource. + // Subnetwork: The URL of an existing subnetwork resource in the + // network. You can specify the subnetwork as a full or partial URL. For + // example, the following are all valid URLs: + // https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork} + // projects/{project}/regions/{region}/subnetworks/{subnetwork} + // regions/{region}/subnetworks/{subnetwork} Subnetwork string `json:"subnetwork,omitempty"` // ForceSendFields is a list of field names (e.g. "Network") to @@ -2079,6 +2150,9 @@ type ReportAgentStateRequest struct { // AgentInfo: Agent info. AgentInfo *AgentInfo `json:"agentInfo,omitempty"` + // AgentTimingInfo: Agent timing info. + AgentTimingInfo *AgentTimingInfo `json:"agentTimingInfo,omitempty"` + // Metadata: Agent metadata. Metadata *AgentMetadata `json:"metadata,omitempty"` @@ -2107,6 +2181,12 @@ func (s *ReportAgentStateRequest) MarshalJSON() ([]byte, error) { // ReportAgentStateResponse: Response to ReportAgentStateRequest. type ReportAgentStateResponse struct { + // DefaultReportInterval: Default report interval override + DefaultReportInterval string `json:"defaultReportInterval,omitempty"` + + // MinReportInterval: Minimum report interval override + MinReportInterval string `json:"minReportInterval,omitempty"` + // Tasks: Tasks assigned to the agent Tasks []*AgentTask `json:"tasks,omitempty"` @@ -2114,20 +2194,22 @@ type ReportAgentStateResponse struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Tasks") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. + // "DefaultReportInterval") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Tasks") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DefaultReportInterval") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -2558,8 +2640,7 @@ type TaskSpec struct { // Environment: Environment variables to set before running the Task. Environment *Environment `json:"environment,omitempty"` - // Environments: Environment variables to set before running the Task. - // You can set up to 100 environments. + // Environments: Deprecated: please use environment(non-plural) instead. Environments map[string]string `json:"environments,omitempty"` // LifecyclePolicies: Lifecycle management schema when any task in a @@ -4656,118 +4737,97 @@ func (c *ProjectsLocationsJobsTaskGroupsTasksListCall) Pages(ctx context.Context } } -// method id "batch.projects.locations.nodes.getIamPolicy": +// method id "batch.projects.locations.operations.cancel": -type ProjectsLocationsNodesGetIamPolicyCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsOperationsCancelCall struct { + s *Service + name string + canceloperationrequest *CancelOperationRequest + urlParams_ gensupport.URLParams + 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. +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. // -// - 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 *ProjectsLocationsNodesService) GetIamPolicy(resource string) *ProjectsLocationsNodesGetIamPolicyCall { - c := &ProjectsLocationsNodesGetIamPolicyCall{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 *ProjectsLocationsNodesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsNodesGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall { + c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.canceloperationrequest = canceloperationrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsNodesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsNodesGetIamPolicyCall { +func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsNodesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsNodesGetIamPolicyCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsNodesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsNodesGetIamPolicyCall { +func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsNodesGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNodesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + 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, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "batch.projects.locations.nodes.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// Do executes the "batch.projects.locations.operations.cancel" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) +// *Empty.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *ProjectsLocationsNodesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { +func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4786,7 +4846,7 @@ func (c *ProjectsLocationsNodesGetIamPolicyCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Policy{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4798,31 +4858,28 @@ func (c *ProjectsLocationsNodesGetIamPolicyCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "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}/nodes/{nodesId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "batch.projects.locations.nodes.getIamPolicy", + // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "batch.projects.locations.operations.cancel", // "parameterOrder": [ - // "resource" + // "name" // ], // "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.", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/nodes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+resource}:getIamPolicy", + // "path": "v1/{+name}:cancel", + // "request": { + // "$ref": "CancelOperationRequest" + // }, // "response": { - // "$ref": "Policy" + // "$ref": "Empty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4831,36 +4888,32 @@ func (c *ProjectsLocationsNodesGetIamPolicyCall) Do(opts ...googleapi.CallOption } -// method id "batch.projects.locations.nodes.setIamPolicy": +// method id "batch.projects.locations.operations.delete": -type ProjectsLocationsNodesSetIamPolicyCall struct { - s *Service - resource string - setiampolicyrequest *SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsOperationsDeleteCall struct { + s *Service + name string + 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. +// Delete: Deletes a long-running operation. This method indicates that +// the client is no longer interested in the operation result. It does +// not cancel the operation. If the server doesn't support this method, +// it returns `google.rpc.Code.UNIMPLEMENTED`. // -// - 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 *ProjectsLocationsNodesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsNodesSetIamPolicyCall { - c := &ProjectsLocationsNodesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.setiampolicyrequest = setiampolicyrequest +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { + c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsNodesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsNodesSetIamPolicyCall { +func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4868,21 +4921,21 @@ func (c *ProjectsLocationsNodesSetIamPolicyCall) Fields(s ...googleapi.Field) *P // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsNodesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsNodesSetIamPolicyCall { +func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsNodesSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNodesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -4890,974 +4943,29 @@ func (c *ProjectsLocationsNodesSetIamPolicyCall) doRequest(alt string) (*http.Re } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "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, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "batch.projects.locations.nodes.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *ProjectsLocationsNodesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Policy{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "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}/nodes/{nodesId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "batch.projects.locations.nodes.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/[^/]+/nodes/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "batch.projects.locations.nodes.testIamPermissions": - -type ProjectsLocationsNodesTestIamPermissionsCall struct { - s *Service - resource string - testiampermissionsrequest *TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. -// -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsNodesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsNodesTestIamPermissionsCall { - c := &ProjectsLocationsNodesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.testiampermissionsrequest = testiampermissionsrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsNodesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsNodesTestIamPermissionsCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsNodesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsNodesTestIamPermissionsCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsNodesTestIamPermissionsCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsNodesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "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, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "batch.projects.locations.nodes.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsNodesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &TestIamPermissionsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "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}/nodes/{nodesId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "batch.projects.locations.nodes.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/[^/]+/nodes/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "batch.projects.locations.operations.cancel": - -type ProjectsLocationsOperationsCancelCall struct { - s *Service - name string - canceloperationrequest *CancelOperationRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to -// `Code.CANCELLED`. -// -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall { - c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.canceloperationrequest = canceloperationrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "batch.projects.locations.operations.cancel" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Empty{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "batch.projects.locations.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:cancel", - // "request": { - // "$ref": "CancelOperationRequest" - // }, - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "batch.projects.locations.operations.delete": - -type ProjectsLocationsOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes a long-running operation. This method indicates that -// the client is no longer interested in the operation result. It does -// not cancel the operation. If the server doesn't support this method, -// it returns `google.rpc.Code.UNIMPLEMENTED`. -// -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { - c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "batch.projects.locations.operations.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Empty{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "batch.projects.locations.operations.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "batch.projects.locations.operations.get": - -type ProjectsLocationsOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. -// -// - name: The name of the operation resource. -func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { - c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "batch.projects.locations.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsOperationsGetCall) 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 - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "batch.projects.locations.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "batch.projects.locations.operations.list": - -type ProjectsLocationsOperationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. -// -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { - c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsOperationsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "batch.projects.locations.operations.list" call. -// Exactly one of *ListOperationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.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 *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, 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 := &ListOperationsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", - // "httpMethod": "GET", - // "id": "batch.projects.locations.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "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" - // ] - // } - -} - -// 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 *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "batch.projects.locations.state.report": - -type ProjectsLocationsStateReportCall struct { - s *Service - parent string - reportagentstaterequest *ReportAgentStateRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Report: Report agent's state, e.g. agent status and tasks information -// -// - parent: Format: projects/{project}/locations/{location} {project} -// should be a project number. -func (r *ProjectsLocationsStateService) Report(parent string, reportagentstaterequest *ReportAgentStateRequest) *ProjectsLocationsStateReportCall { - c := &ProjectsLocationsStateReportCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.reportagentstaterequest = reportagentstaterequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsStateReportCall) Fields(s ...googleapi.Field) *ProjectsLocationsStateReportCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsStateReportCall) Context(ctx context.Context) *ProjectsLocationsStateReportCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsStateReportCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsStateReportCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.reportagentstaterequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/state:report") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + 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, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "batch.projects.locations.state.report" call. -// Exactly one of *ReportAgentStateResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *ReportAgentStateResponse.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 *ProjectsLocationsStateReportCall) Do(opts ...googleapi.CallOption) (*ReportAgentStateResponse, error) { +// Do executes the "batch.projects.locations.operations.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5876,7 +4984,7 @@ func (c *ProjectsLocationsStateReportCall) Do(opts ...googleapi.CallOption) (*Re if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ReportAgentStateResponse{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5888,28 +4996,25 @@ func (c *ProjectsLocationsStateReportCall) Do(opts ...googleapi.CallOption) (*Re } return ret, nil // { - // "description": "Report agent's state, e.g. agent status and tasks information", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/state:report", - // "httpMethod": "POST", - // "id": "batch.projects.locations.state.report", + // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "batch.projects.locations.operations.delete", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. Format: projects/{project}/locations/{location} {project} should be a project number.", + // "name": { + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/state:report", - // "request": { - // "$ref": "ReportAgentStateRequest" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "ReportAgentStateResponse" + // "$ref": "Empty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -5918,53 +5023,32 @@ func (c *ProjectsLocationsStateReportCall) Do(opts ...googleapi.CallOption) (*Re } -// method id "batch.projects.locations.tasks.getIamPolicy": +// method id "batch.projects.locations.operations.get": -type ProjectsLocationsTasksGetIamPolicyCall struct { +type ProjectsLocationsOperationsGetCall struct { s *Service - resource string + name 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. +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. // -// - 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 *ProjectsLocationsTasksService) GetIamPolicy(resource string) *ProjectsLocationsTasksGetIamPolicyCall { - c := &ProjectsLocationsTasksGetIamPolicyCall{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 *ProjectsLocationsTasksGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsTasksGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// - name: The name of the operation resource. +func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { + c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsTasksGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsTasksGetIamPolicyCall { +func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5974,7 +5058,7 @@ func (c *ProjectsLocationsTasksGetIamPolicyCall) Fields(s ...googleapi.Field) *P // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsTasksGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsTasksGetIamPolicyCall { +func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -5982,21 +5066,21 @@ func (c *ProjectsLocationsTasksGetIamPolicyCall) IfNoneMatch(entityTag string) * // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsTasksGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsTasksGetIamPolicyCall { +func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsTasksGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsTasksGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -6009,7 +5093,7 @@ func (c *ProjectsLocationsTasksGetIamPolicyCall) doRequest(alt string) (*http.Re var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -6017,19 +5101,19 @@ func (c *ProjectsLocationsTasksGetIamPolicyCall) doRequest(alt string) (*http.Re } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "batch.projects.locations.tasks.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *ProjectsLocationsTasksGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { +// Do executes the "batch.projects.locations.operations.get" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6048,7 +5132,7 @@ func (c *ProjectsLocationsTasksGetIamPolicyCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Policy{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6060,31 +5144,25 @@ func (c *ProjectsLocationsTasksGetIamPolicyCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "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}/tasks/{tasksId}:getIamPolicy", + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "batch.projects.locations.tasks.getIamPolicy", + // "id": "batch.projects.locations.operations.get", // "parameterOrder": [ - // "resource" + // "name" // ], // "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.", + // "name": { + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/tasks/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+resource}:getIamPolicy", + // "path": "v1/{+name}", // "response": { - // "$ref": "Policy" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -6093,93 +5171,125 @@ func (c *ProjectsLocationsTasksGetIamPolicyCall) Do(opts ...googleapi.CallOption } -// method id "batch.projects.locations.tasks.setIamPolicy": +// method id "batch.projects.locations.operations.list": -type ProjectsLocationsTasksSetIamPolicyCall struct { - s *Service - resource string - setiampolicyrequest *SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + 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. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to +// override the binding to use different resource name schemes, such as +// `users/*/operations`. To override the binding, API services can add a +// binding such as "/v1/{name=users/*}/operations" to their service +// configuration. For backwards compatibility, the default name includes +// the operations collection id, however overriding users must ensure +// the name binding is the parent resource, without the operations +// collection id. // -// - 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 *ProjectsLocationsTasksService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsTasksSetIamPolicyCall { - c := &ProjectsLocationsTasksSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.setiampolicyrequest = setiampolicyrequest +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { + c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsTasksSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsTasksSetIamPolicyCall { +func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsTasksSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsTasksSetIamPolicyCall { +func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsTasksSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsTasksSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "batch.projects.locations.tasks.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *ProjectsLocationsTasksSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { +// Do executes the "batch.projects.locations.operations.list" call. +// Exactly one of *ListOperationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.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 *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6198,7 +5308,7 @@ func (c *ProjectsLocationsTasksSetIamPolicyCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Policy{ + ret := &ListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6210,28 +5320,41 @@ func (c *ProjectsLocationsTasksSetIamPolicyCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "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}/tasks/{tasksId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "batch.projects.locations.tasks.setIamPolicy", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", + // "httpMethod": "GET", + // "id": "batch.projects.locations.operations.list", // "parameterOrder": [ - // "resource" + // "name" // ], // "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.", + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/tasks/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, + // "path": "v1/{+name}/operations", // "response": { - // "$ref": "Policy" + // "$ref": "ListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -6240,39 +5363,53 @@ func (c *ProjectsLocationsTasksSetIamPolicyCall) Do(opts ...googleapi.CallOption } -// method id "batch.projects.locations.tasks.testIamPermissions": +// 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 *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type ProjectsLocationsTasksTestIamPermissionsCall struct { - s *Service - resource string - testiampermissionsrequest *TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "batch.projects.locations.state.report": + +type ProjectsLocationsStateReportCall struct { + s *Service + parent string + reportagentstaterequest *ReportAgentStateRequest + 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. +// Report: Report agent's state, e.g. agent status and tasks information // -// - 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 *ProjectsLocationsTasksService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsTasksTestIamPermissionsCall { - c := &ProjectsLocationsTasksTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.testiampermissionsrequest = testiampermissionsrequest +// - parent: Format: projects/{project}/locations/{location} {project} +// should be a project number. +func (r *ProjectsLocationsStateService) Report(parent string, reportagentstaterequest *ReportAgentStateRequest) *ProjectsLocationsStateReportCall { + c := &ProjectsLocationsStateReportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.reportagentstaterequest = reportagentstaterequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsTasksTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsTasksTestIamPermissionsCall { +func (c *ProjectsLocationsStateReportCall) Fields(s ...googleapi.Field) *ProjectsLocationsStateReportCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6280,21 +5417,21 @@ func (c *ProjectsLocationsTasksTestIamPermissionsCall) Fields(s ...googleapi.Fie // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsTasksTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsTasksTestIamPermissionsCall { +func (c *ProjectsLocationsStateReportCall) Context(ctx context.Context) *ProjectsLocationsStateReportCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsTasksTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsStateReportCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsTasksTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsStateReportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -6302,14 +5439,14 @@ func (c *ProjectsLocationsTasksTestIamPermissionsCall) doRequest(alt string) (*h } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.reportagentstaterequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/state:report") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -6317,19 +5454,19 @@ func (c *ProjectsLocationsTasksTestIamPermissionsCall) doRequest(alt string) (*h } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "batch.projects.locations.tasks.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Do executes the "batch.projects.locations.state.report" call. +// Exactly one of *ReportAgentStateResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// *ReportAgentStateResponse.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 *ProjectsLocationsTasksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { +func (c *ProjectsLocationsStateReportCall) Do(opts ...googleapi.CallOption) (*ReportAgentStateResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6348,7 +5485,7 @@ func (c *ProjectsLocationsTasksTestIamPermissionsCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &TestIamPermissionsResponse{ + ret := &ReportAgentStateResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6360,28 +5497,28 @@ func (c *ProjectsLocationsTasksTestIamPermissionsCall) Do(opts ...googleapi.Call } return ret, nil // { - // "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}/tasks/{tasksId}:testIamPermissions", + // "description": "Report agent's state, e.g. agent status and tasks information", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/state:report", // "httpMethod": "POST", - // "id": "batch.projects.locations.tasks.testIamPermissions", + // "id": "batch.projects.locations.state.report", // "parameterOrder": [ - // "resource" + // "parent" // ], // "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.", + // "parent": { + // "description": "Required. Format: projects/{project}/locations/{location} {project} should be a project number.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/tasks/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+resource}:testIamPermissions", + // "path": "v1/{+parent}/state:report", // "request": { - // "$ref": "TestIamPermissionsRequest" + // "$ref": "ReportAgentStateRequest" // }, // "response": { - // "$ref": "TestIamPermissionsResponse" + // "$ref": "ReportAgentStateResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" diff --git a/bigquery/v2/bigquery-api.json b/bigquery/v2/bigquery-api.json index fb937466eaa..4c233fe1a45 100644 --- a/bigquery/v2/bigquery-api.json +++ b/bigquery/v2/bigquery-api.json @@ -1710,7 +1710,7 @@ } } }, - "revision": "20221028", + "revision": "20221127", "rootUrl": "https://bigquery.googleapis.com/", "schemas": { "AggregateClassificationMetrics": { @@ -4922,7 +4922,7 @@ "type": "string" }, "routines": { - "description": "Routines in the requested dataset. Unless read_mask is set in the request, only the following fields are populated: etag, project_id, dataset_id, routine_id, routine_type, creation_time, last_modified_time, and language.", + "description": "Routines in the requested dataset. Unless read_mask is set in the request, only the following fields are populated: etag, project_id, dataset_id, routine_id, routine_type, creation_time, last_modified_time, language, and remote_function_options.", "items": { "$ref": "Routine" }, @@ -4963,6 +4963,10 @@ "MaterializedViewDefinition": { "id": "MaterializedViewDefinition", "properties": { + "allow_non_incremental_definition": { + "description": "[Optional] Allow non incremental materialized view definition. The default value is \"false\".", + "type": "boolean" + }, "enableRefresh": { "description": "[Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base table is updated. The default value is \"true\".", "type": "boolean" @@ -5816,7 +5820,7 @@ "type": "array" }, "language": { - "description": "Optional. Defaults to \"SQL\".", + "description": "Optional. Defaults to \"SQL\" if remote_function_options field is absent, not set otherwise.", "enum": [ "LANGUAGE_UNSPECIFIED", "SQL", @@ -5843,7 +5847,7 @@ }, "returnTableType": { "$ref": "StandardSqlTableType", - "description": "Optional. Can be set only if routine_type = \"TABLE_VALUED_FUNCTION\". If absent, the return table type is inferred from definition_body at query time in each query that references this routine. If present, then the columns in the evaluated table result will be cast to match the column types specificed in return table type, at query time." + "description": "Optional. Can be set only if routine_type = \"TABLE_VALUED_FUNCTION\". If absent, the return table type is inferred from definition_body at query time in each query that references this routine. If present, then the columns in the evaluated table result will be cast to match the column types specified in return table type, at query time." }, "returnType": { "$ref": "StandardSqlDataType", diff --git a/bigquery/v2/bigquery-gen.go b/bigquery/v2/bigquery-gen.go index 507ceb9d936..f3499e5c4b2 100644 --- a/bigquery/v2/bigquery-gen.go +++ b/bigquery/v2/bigquery-gen.go @@ -5544,7 +5544,7 @@ type ListRoutinesResponse struct { // Routines: Routines in the requested dataset. Unless read_mask is set // in the request, only the following fields are populated: etag, // project_id, dataset_id, routine_id, routine_type, creation_time, - // last_modified_time, and language. + // last_modified_time, language, and remote_function_options. Routines []*Routine `json:"routines,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -5644,6 +5644,10 @@ func (s *LocationMetadata) MarshalJSON() ([]byte, error) { } type MaterializedViewDefinition struct { + // AllowNonIncrementalDefinition: [Optional] Allow non incremental + // materialized view definition. The default value is "false". + AllowNonIncrementalDefinition bool `json:"allow_non_incremental_definition,omitempty"` + // EnableRefresh: [Optional] [TrustedTester] Enable automatic refresh of // the materialized view when the base table is updated. The default // value is "true". @@ -5666,20 +5670,22 @@ type MaterializedViewDefinition struct { // is "1800000" (30 minutes). RefreshIntervalMs int64 `json:"refreshIntervalMs,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "EnableRefresh") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. + // "AllowNonIncrementalDefinition") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EnableRefresh") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. + // "AllowNonIncrementalDefinition") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. NullFields []string `json:"-"` } @@ -7031,7 +7037,8 @@ type Routine struct { // stores the path of the imported JAVASCRIPT libraries. ImportedLibraries []string `json:"importedLibraries,omitempty"` - // Language: Optional. Defaults to "SQL". + // Language: Optional. Defaults to "SQL" if remote_function_options + // field is absent, not set otherwise. // // Possible values: // "LANGUAGE_UNSPECIFIED" @@ -7051,7 +7058,7 @@ type Routine struct { // "TABLE_VALUED_FUNCTION". If absent, the return table type is inferred // from definition_body at query time in each query that references this // routine. If present, then the columns in the evaluated table result - // will be cast to match the column types specificed in return table + // will be cast to match the column types specified in return table // type, at query time. ReturnTableType *StandardSqlTableType `json:"returnTableType,omitempty"` diff --git a/blogger/v3/blogger-api.json b/blogger/v3/blogger-api.json index b0ec5282236..0899b5f0451 100644 --- a/blogger/v3/blogger-api.json +++ b/blogger/v3/blogger-api.json @@ -713,6 +713,11 @@ "location": "path", "required": true, "type": "string" + }, + "useTrash": { + "description": "Move to Trash if possible", + "location": "query", + "type": "boolean" } }, "path": "v3/blogs/{blogId}/pages/{pageId}", @@ -1174,6 +1179,11 @@ "location": "path", "required": true, "type": "string" + }, + "useTrash": { + "description": "Move to Trash if possible", + "location": "query", + "type": "boolean" } }, "path": "v3/blogs/{blogId}/posts/{postId}", @@ -1386,6 +1396,22 @@ "location": "query", "type": "string" }, + "sortOption": { + "default": "DESCENDING", + "description": "Sort direction applied to post list.", + "enum": [ + "SORT_OPTION_UNSPECIFIED", + "DESCENDING", + "ASCENDING" + ], + "enumDescriptions": [ + "The unspecified sort option.", + "The option to sort posts in descending order in time.", + "The option to sort posts in ascending order in time." + ], + "location": "query", + "type": "string" + }, "startDate": { "location": "query", "type": "string" @@ -1684,7 +1710,7 @@ } } }, - "revision": "20220727", + "revision": "20221221", "rootUrl": "https://blogger.googleapis.com/", "schemas": { "Blog": { diff --git a/blogger/v3/blogger-gen.go b/blogger/v3/blogger-gen.go index 09d9f64ea7d..76bd8d37f15 100644 --- a/blogger/v3/blogger-gen.go +++ b/blogger/v3/blogger-gen.go @@ -3916,6 +3916,13 @@ func (r *PagesService) Delete(blogId string, pageId string) *PagesDeleteCall { return c } +// UseTrash sets the optional parameter "useTrash": Move to Trash if +// possible +func (c *PagesDeleteCall) UseTrash(useTrash bool) *PagesDeleteCall { + c.urlParams_.Set("useTrash", fmt.Sprint(useTrash)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -3996,6 +4003,11 @@ func (c *PagesDeleteCall) Do(opts ...googleapi.CallOption) error { // "location": "path", // "required": true, // "type": "string" + // }, + // "useTrash": { + // "description": "Move to Trash if possible", + // "location": "query", + // "type": "boolean" // } // }, // "path": "v3/blogs/{blogId}/pages/{pageId}", @@ -5735,6 +5747,13 @@ func (r *PostsService) Delete(blogId string, postId string) *PostsDeleteCall { return c } +// UseTrash sets the optional parameter "useTrash": Move to Trash if +// possible +func (c *PostsDeleteCall) UseTrash(useTrash bool) *PostsDeleteCall { + c.urlParams_.Set("useTrash", fmt.Sprint(useTrash)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -5815,6 +5834,11 @@ func (c *PostsDeleteCall) Do(opts ...googleapi.CallOption) error { // "location": "path", // "required": true, // "type": "string" + // }, + // "useTrash": { + // "description": "Move to Trash if possible", + // "location": "query", + // "type": "boolean" // } // }, // "path": "v3/blogs/{blogId}/posts/{postId}", @@ -6473,6 +6497,22 @@ func (c *PostsListCall) PageToken(pageToken string) *PostsListCall { return c } +// SortOption sets the optional parameter "sortOption": Sort direction +// applied to post list. +// +// Possible values: +// +// "SORT_OPTION_UNSPECIFIED" - The unspecified sort option. +// "DESCENDING" (default) - The option to sort posts in descending +// +// order in time. +// +// "ASCENDING" - The option to sort posts in ascending order in time. +func (c *PostsListCall) SortOption(sortOption string) *PostsListCall { + c.urlParams_.Set("sortOption", sortOption) + return c +} + // StartDate sets the optional parameter "startDate": func (c *PostsListCall) StartDate(startDate string) *PostsListCall { c.urlParams_.Set("startDate", startDate) @@ -6658,6 +6698,22 @@ func (c *PostsListCall) Do(opts ...googleapi.CallOption) (*PostList, error) { // "location": "query", // "type": "string" // }, + // "sortOption": { + // "default": "DESCENDING", + // "description": "Sort direction applied to post list.", + // "enum": [ + // "SORT_OPTION_UNSPECIFIED", + // "DESCENDING", + // "ASCENDING" + // ], + // "enumDescriptions": [ + // "The unspecified sort option.", + // "The option to sort posts in descending order in time.", + // "The option to sort posts in ascending order in time." + // ], + // "location": "query", + // "type": "string" + // }, // "startDate": { // "location": "query", // "type": "string" diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index aadfadd5c5f..d5f7dde7ad0 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -5,6 +5,9 @@ "https://www.googleapis.com/auth/chat.memberships": { "description": "View, add, and remove members from conversations in Google Chat" }, + "https://www.googleapis.com/auth/chat.memberships.readonly": { + "description": "View members in Google Chat conversations." + }, "https://www.googleapis.com/auth/chat.messages": { "description": "View, compose, send, update, and delete messages, and add, view, and delete reactions to messages." }, @@ -13,6 +16,12 @@ }, "https://www.googleapis.com/auth/chat.messages.readonly": { "description": "View messages and reactions in Google Chat" + }, + "https://www.googleapis.com/auth/chat.spaces": { + "description": "Create conversations and spaces and view or update metadata (including history settings) in Google Chat" + }, + "https://www.googleapis.com/auth/chat.spaces.readonly": { + "description": "View chat and spaces in Google Chat" } } } @@ -517,7 +526,11 @@ "path": "v1/{+name}", "response": { "$ref": "Space" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/chat.spaces", + "https://www.googleapis.com/auth/chat.spaces.readonly" + ] }, "list": { "description": "Lists spaces the caller is a member of. Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.spaces` or `chat.spaces.readonly` authorization scope. Lists spaces visible to the caller or authenticated user. Group chats and DMs aren't listed until the first message is sent.", @@ -541,7 +554,11 @@ "path": "v1/spaces", "response": { "$ref": "ListSpacesResponse" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/chat.spaces", + "https://www.googleapis.com/auth/chat.spaces.readonly" + ] }, "webhooks": { "description": "Legacy path for creating message. Calling these will result in a BadRequest response.", @@ -624,7 +641,8 @@ "$ref": "Membership" }, "scopes": [ - "https://www.googleapis.com/auth/chat.memberships" + "https://www.googleapis.com/auth/chat.memberships", + "https://www.googleapis.com/auth/chat.memberships.readonly" ] }, "list": { @@ -660,7 +678,8 @@ "$ref": "ListMembershipsResponse" }, "scopes": [ - "https://www.googleapis.com/auth/chat.memberships" + "https://www.googleapis.com/auth/chat.memberships", + "https://www.googleapis.com/auth/chat.memberships.readonly" ] } } @@ -668,7 +687,7 @@ "messages": { "methods": { "create": { - "description": "Creates a message. For example usage, see [Create a message](https://developers.google.com/chat/api/guides/crudl/messages#create_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.create` authorization scope.", + "description": "Creates a message. For example usage, see [Create a message](https://developers.google.com/chat/api/guides/crudl/messages#create_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.create` authorization scope. Because Chat provides authentication for [webhooks](https://developers.google.com/chat/how-tos/webhooks) as part of the URL that's generated when a webhook is registered, webhooks can create messages without a service account or user authentication.", "flatPath": "v1/spaces/{spacesId}/messages", "httpMethod": "POST", "id": "chat.spaces.messages.create", @@ -888,7 +907,7 @@ } } }, - "revision": "20221204", + "revision": "20221213", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { @@ -2874,7 +2893,7 @@ "id": "Space", "properties": { "displayName": { - "description": "The space's display name. For direct messages between humans, this field might be empty.", + "description": "The space's display name. Required when [creating a space](https://developers.google.com/chat/api/reference/rest/v1/spaces/create). For direct messages, this field may be empty.", "type": "string" }, "name": { diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 22da5dd6b29..fb1aba86c54 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -25,7 +25,7 @@ // // By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: // -// chatService, err := chat.NewService(ctx, option.WithScopes(chat.ChatMessagesReadonlyScope)) +// chatService, err := chat.NewService(ctx, option.WithScopes(chat.ChatSpacesReadonlyScope)) // // To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: // @@ -87,6 +87,9 @@ const ( // View, add, and remove members from conversations in Google Chat ChatMembershipsScope = "https://www.googleapis.com/auth/chat.memberships" + // View members in Google Chat conversations. + ChatMembershipsReadonlyScope = "https://www.googleapis.com/auth/chat.memberships.readonly" + // View, compose, send, update, and delete messages, and add, view, and // delete reactions to messages. ChatMessagesScope = "https://www.googleapis.com/auth/chat.messages" @@ -96,15 +99,25 @@ const ( // View messages and reactions in Google Chat ChatMessagesReadonlyScope = "https://www.googleapis.com/auth/chat.messages.readonly" + + // Create conversations and spaces and view or update metadata + // (including history settings) in Google Chat + ChatSpacesScope = "https://www.googleapis.com/auth/chat.spaces" + + // View chat and spaces in Google Chat + ChatSpacesReadonlyScope = "https://www.googleapis.com/auth/chat.spaces.readonly" ) // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/chat.memberships", + "https://www.googleapis.com/auth/chat.memberships.readonly", "https://www.googleapis.com/auth/chat.messages", "https://www.googleapis.com/auth/chat.messages.create", "https://www.googleapis.com/auth/chat.messages.readonly", + "https://www.googleapis.com/auth/chat.spaces", + "https://www.googleapis.com/auth/chat.spaces.readonly", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) @@ -3710,8 +3723,9 @@ func (s *SlashCommandMetadata) MarshalJSON() ([]byte, error) { // Space: A space in Google Chat. Spaces are conversations between two // or more users or 1:1 messages between a user and a Chat app. type Space struct { - // DisplayName: The space's display name. For direct messages between - // humans, this field might be empty. + // DisplayName: The space's display name. Required when creating a space + // (https://developers.google.com/chat/api/reference/rest/v1/spaces/create). + // For direct messages, this field may be empty. DisplayName string `json:"displayName,omitempty"` // Name: Resource name of the space. Format: spaces/{space} @@ -5825,7 +5839,11 @@ func (c *SpacesGetCall) Do(opts ...googleapi.CallOption) (*Space, error) { // "path": "v1/{+name}", // "response": { // "$ref": "Space" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/chat.spaces", + // "https://www.googleapis.com/auth/chat.spaces.readonly" + // ] // } } @@ -5995,7 +6013,11 @@ func (c *SpacesListCall) Do(opts ...googleapi.CallOption) (*ListSpacesResponse, // "path": "v1/spaces", // "response": { // "$ref": "ListSpacesResponse" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/chat.spaces", + // "https://www.googleapis.com/auth/chat.spaces.readonly" + // ] // } } @@ -6398,7 +6420,8 @@ func (c *SpacesMembersGetCall) Do(opts ...googleapi.CallOption) (*Membership, er // "$ref": "Membership" // }, // "scopes": [ - // "https://www.googleapis.com/auth/chat.memberships" + // "https://www.googleapis.com/auth/chat.memberships", + // "https://www.googleapis.com/auth/chat.memberships.readonly" // ] // } @@ -6590,7 +6613,8 @@ func (c *SpacesMembersListCall) Do(opts ...googleapi.CallOption) (*ListMembershi // "$ref": "ListMembershipsResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/chat.memberships" + // "https://www.googleapis.com/auth/chat.memberships", + // "https://www.googleapis.com/auth/chat.memberships.readonly" // ] // } @@ -6641,6 +6665,10 @@ type SpacesMessagesCreateCall struct { // access to certain features. User authentication // (https://developers.google.com/chat/api/guides/auth/users) requires // the `chat.messages` or `chat.messages.create` authorization scope. +// Because Chat provides authentication for webhooks +// (https://developers.google.com/chat/how-tos/webhooks) as part of the +// URL that's generated when a webhook is registered, webhooks can +// create messages without a service account or user authentication. // // - parent: The resource name of the space in which to create a // message. Format: spaces/{space}. @@ -6794,7 +6822,7 @@ func (c *SpacesMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, e } return ret, nil // { - // "description": "Creates a message. For example usage, see [Create a message](https://developers.google.com/chat/api/guides/crudl/messages#create_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.create` authorization scope.", + // "description": "Creates a message. For example usage, see [Create a message](https://developers.google.com/chat/api/guides/crudl/messages#create_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.create` authorization scope. Because Chat provides authentication for [webhooks](https://developers.google.com/chat/how-tos/webhooks) as part of the URL that's generated when a webhook is registered, webhooks can create messages without a service account or user authentication.", // "flatPath": "v1/spaces/{spacesId}/messages", // "httpMethod": "POST", // "id": "chat.spaces.messages.create", diff --git a/classroom/v1/classroom-api.json b/classroom/v1/classroom-api.json index aff4b4e0fd0..bb98886f2d2 100644 --- a/classroom/v1/classroom-api.json +++ b/classroom/v1/classroom-api.json @@ -297,7 +297,7 @@ ] }, "patch": { - "description": "Updates one or more fields in a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `INVALID_ARGUMENT` if invalid fields are specified in the update mask or if no update mask is supplied. * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable * InactiveCourseOwner", + "description": "Updates one or more fields in a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `INVALID_ARGUMENT` if invalid fields are specified in the update mask or if no update mask is supplied. * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable * InactiveCourseOwner * IneligibleOwner", "flatPath": "v1/courses/{id}", "httpMethod": "PATCH", "id": "classroom.courses.patch", @@ -1944,7 +1944,7 @@ ] }, "create": { - "description": "Creates an invitation. Only one invitation for a user and course may exist at a time. Delete and re-create an invitation to make changes. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create invitations for this course or for access errors. * `NOT_FOUND` if the course or the user does not exist. * `FAILED_PRECONDITION` if the requested user's account is disabled or if the user already has this role or a role with greater permissions. * `ALREADY_EXISTS` if an invitation for the specified user and course already exists.", + "description": "Creates an invitation. Only one invitation for a user and course may exist at a time. Delete and re-create an invitation to make changes. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create invitations for this course or for access errors. * `NOT_FOUND` if the course or the user does not exist. * `FAILED_PRECONDITION`: * if the requested user's account is disabled. * if the user already has this role or a role with greater permissions. * for the following request errors: * IneligibleOwner * `ALREADY_EXISTS` if an invitation for the specified user and course already exists.", "flatPath": "v1/invitations", "httpMethod": "POST", "id": "classroom.invitations.create", @@ -2400,7 +2400,7 @@ } } }, - "revision": "20220323", + "revision": "20221220", "rootUrl": "https://classroom.googleapis.com/", "schemas": { "Announcement": { diff --git a/classroom/v1/classroom-gen.go b/classroom/v1/classroom-gen.go index d100b5b78ad..4c0c1332228 100644 --- a/classroom/v1/classroom-gen.go +++ b/classroom/v1/classroom-gen.go @@ -3949,6 +3949,7 @@ type CoursesPatchCall struct { // `INVALID_ARGUMENT` if invalid fields are specified in the update mask // or if no update mask is supplied. * `FAILED_PRECONDITION` for the // following request errors: * CourseNotModifiable * InactiveCourseOwner +// * IneligibleOwner // // - id: Identifier of the course to update. This identifier can be // either the Classroom-assigned identifier or an alias. @@ -4064,7 +4065,7 @@ func (c *CoursesPatchCall) Do(opts ...googleapi.CallOption) (*Course, error) { } return ret, nil // { - // "description": "Updates one or more fields in a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `INVALID_ARGUMENT` if invalid fields are specified in the update mask or if no update mask is supplied. * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable * InactiveCourseOwner", + // "description": "Updates one or more fields in a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `INVALID_ARGUMENT` if invalid fields are specified in the update mask or if no update mask is supplied. * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable * InactiveCourseOwner * IneligibleOwner", // "flatPath": "v1/courses/{id}", // "httpMethod": "PATCH", // "id": "classroom.courses.patch", @@ -11586,10 +11587,11 @@ type InvitationsCreateCall struct { // make changes. This method returns the following error codes: * // `PERMISSION_DENIED` if the requesting user is not permitted to create // invitations for this course or for access errors. * `NOT_FOUND` if -// the course or the user does not exist. * `FAILED_PRECONDITION` if the -// requested user's account is disabled or if the user already has this -// role or a role with greater permissions. * `ALREADY_EXISTS` if an -// invitation for the specified user and course already exists. +// the course or the user does not exist. * `FAILED_PRECONDITION`: * if +// the requested user's account is disabled. * if the user already has +// this role or a role with greater permissions. * for the following +// request errors: * IneligibleOwner * `ALREADY_EXISTS` if an invitation +// for the specified user and course already exists. func (r *InvitationsService) Create(invitation *Invitation) *InvitationsCreateCall { c := &InvitationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.invitation = invitation @@ -11684,7 +11686,7 @@ func (c *InvitationsCreateCall) Do(opts ...googleapi.CallOption) (*Invitation, e } return ret, nil // { - // "description": "Creates an invitation. Only one invitation for a user and course may exist at a time. Delete and re-create an invitation to make changes. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create invitations for this course or for access errors. * `NOT_FOUND` if the course or the user does not exist. * `FAILED_PRECONDITION` if the requested user's account is disabled or if the user already has this role or a role with greater permissions. * `ALREADY_EXISTS` if an invitation for the specified user and course already exists.", + // "description": "Creates an invitation. Only one invitation for a user and course may exist at a time. Delete and re-create an invitation to make changes. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create invitations for this course or for access errors. * `NOT_FOUND` if the course or the user does not exist. * `FAILED_PRECONDITION`: * if the requested user's account is disabled. * if the user already has this role or a role with greater permissions. * for the following request errors: * IneligibleOwner * `ALREADY_EXISTS` if an invitation for the specified user and course already exists.", // "flatPath": "v1/invitations", // "httpMethod": "POST", // "id": "classroom.invitations.create", diff --git a/cloudbilling/v1beta/cloudbilling-api.json b/cloudbilling/v1beta/cloudbilling-api.json index f1e5f9eb99c..3cdd412f5d1 100644 --- a/cloudbilling/v1beta/cloudbilling-api.json +++ b/cloudbilling/v1beta/cloudbilling-api.json @@ -170,9 +170,256 @@ } } }, - "revision": "20220914", + "revision": "20221206", "rootUrl": "https://cloudbilling.googleapis.com/", "schemas": { + "CacheFillRegions": { + "description": "Specifies the regions for Cache Fill.", + "id": "CacheFillRegions", + "properties": { + "destinationRegion": { + "description": "The destination region for cache fill.", + "enum": [ + "CACHE_FILL_DESTINATION_REGION_UNSPECIFIED", + "CACHE_FILL_DESTINATION_REGION_ASIA_PACIFIC", + "CACHE_FILL_DESTINATION_REGION_EUROPE", + "CACHE_FILL_DESTINATION_REGION_NORTH_AMERICA", + "CACHE_FILL_DESTINATION_REGION_OCEANIA", + "CACHE_FILL_DESTINATION_REGION_SOUTH_AMERICA", + "CACHE_FILL_DESTINATION_REGION_CHINA", + "CACHE_FILL_DESTINATION_REGION_OTHERS" + ], + "enumDescriptions": [ + "Not specified.", + "Asia Pacific.", + "Europe", + "North America.", + "Oceania.", + "South America.", + "China.", + "Others." + ], + "type": "string" + }, + "sourceRegion": { + "description": "The source region for cache fill.", + "enum": [ + "CACHE_FILL_SOURCE_REGION_UNSPECIFIED", + "CACHE_FILL_REGION_ASIA_PACIFIC", + "CACHE_FILL_SOURCE_REGION_EUROPE", + "CACHE_FILL_SOURCE_REGION_NORTH_AMERICA", + "CACHE_FILL_SOURCE_REGION_OCEANIA", + "CACHE_FILL_SOURCE_REGION_SOUTH_AMERICA" + ], + "enumDescriptions": [ + "Not specified.", + "Asia Pacific.", + "Europe", + "North America.", + "Oceania.", + "South America." + ], + "type": "string" + } + }, + "type": "object" + }, + "CloudCdnEgressWorkload": { + "description": "Specifies usage for Cloud CDN egress.", + "id": "CloudCdnEgressWorkload", + "properties": { + "cacheEgressDestination": { + "description": "The destination for the cache egress charges.", + "enum": [ + "CACHE_EGRESS_DESTINATION_UNSPECIFIED", + "CACHE_EGRESS_DESTINATION_ASIA_PACIFIC", + "CACHE_EGRESS_DESTINATION_CHINA", + "CACHE_EGRESS_DESTINATION_EUROPE", + "CACHE_EGRESS_DESTINATION_NORTH_AMERICA", + "CACHE_EGRESS_DESTINATION_OCEANIA", + "CACHE_EGRESS_DESTINATION_LATIN_AMERICA", + "CACHE_EGRESS_DESTINATION_OTHER_DESTINATIONS" + ], + "enumDescriptions": [ + "Unspecified.", + "Asia Pacific.", + "China.", + "Europe.", + "North America.", + "Oceania including Australia, New Zealand, and surrounding Pacific Ocean islands such as Papua New Guinea and Fiji. This region excludes Hawaii.", + "Latin America (Including the Caribbean, South America and Central America.)", + "All other destinations (including Africa and Antarctica)" + ], + "type": "string" + }, + "cacheEgressRate": { + "$ref": "Usage", + "description": "Cache egress usage. The rate of data cache egressed in the destination. For example : units such as \"GiBy/s\" or \"TBy/mo\"." + } + }, + "type": "object" + }, + "CloudCdnWorkload": { + "description": "Specifies usage for Cloud CDN resources.", + "id": "CloudCdnWorkload", + "properties": { + "cacheFillOriginService": { + "description": "The source service for the cache fill.", + "enum": [ + "CACHE_FILL_ORIGIN_SERVICE_UNSPECIFIED", + "CACHE_FILL_ORIGIN_SERVICE_GOOGLE_CLOUD_STORAGE_BUCKET", + "CACHE_FILL_ORIGIN_SERVICE_BACKEND_SERVICE" + ], + "enumDescriptions": [ + "Not specified.", + "Origin service is Google Cloud Storage.", + "Origin service is backend service, such as Compute VMs, external backend, etc." + ], + "type": "string" + }, + "cacheFillRate": { + "$ref": "Usage", + "description": "Cache fill usage. The rate of data transferred between cache fill regions. For example: units such as \"GiBy/s\" or \"TBy/mo\"." + }, + "cacheFillRegions": { + "$ref": "CacheFillRegions", + "description": "The regions where data is transferred from Google data locations into Google global cache servers. The SKU prices for cache fill across services are the same." + }, + "cacheLookUpRate": { + "$ref": "Usage", + "description": "Cache look up requests. This is specified to indicate the number of requests. For example: units such as \"1/s\"." + } + }, + "type": "object" + }, + "CloudInterconnectEgressWorkload": { + "description": "The interconnect egress only includes the Interconnect Egress. Please use the standard egress traffic interface to specify your standard egress usage.", + "id": "CloudInterconnectEgressWorkload", + "properties": { + "egressRate": { + "$ref": "Usage", + "description": "Data egress usage. This usage applies when you move or copy data from one Google Cloud service to another service. Expected units such as \"GiBy/s, By/s, etc.\"" + }, + "interconnectConnectionLocation": { + "description": "Locations in the [Interconnect connection location table](https://cloud.google.com/vpc/network-pricing#interconnect-pricing). This is the interconnect egress charges.", + "enum": [ + "INTERCONNECT_CONNECTION_LOCATION_UNSPECIFIED", + "INTERCONNECT_CONNECTION_LOCATION_ASIA", + "INTERCONNECT_CONNECTION_LOCATION_EUROPE", + "INTERCONNECT_CONNECTION_LOCATION_NORTH_AMERICA", + "INTERCONNECT_CONNECTION_LOCATION_SOUTH_AMERICA", + "INTERCONNECT_CONNECTION_LOCATION_AUSTRALIA" + ], + "enumDescriptions": [ + "Unspecified.", + "Asia.", + "Europe.", + "North America.", + "South America.", + "Australia." + ], + "type": "string" + } + }, + "type": "object" + }, + "CloudInterconnectWorkload": { + "description": "Specifies usage for Cloud Interconnect resources.", + "id": "CloudInterconnectWorkload", + "properties": { + "interconnectAttachments": { + "description": "VLAN attachment used for interconnect.", + "items": { + "$ref": "VlanAttachment" + }, + "type": "array" + }, + "interconnectType": { + "description": "Vlan attachment type.", + "enum": [ + "INTERCONNECT_TYPE_UNSPECIFIED", + "INTERCONNECT_TYPE_DEDICATED", + "INTERCONNECT_TYPE_PARTNER" + ], + "enumDescriptions": [ + "Unspecified.", + "Type is dedicated.", + "Type is partner." + ], + "type": "string" + }, + "linkType": { + "description": "Interconnect circuit link type.", + "enum": [ + "LINK_TYPE_UNSPECIFIED", + "LINK_TYPE_ETHERNET_10G_LR", + "LINK_TYPE_ETHERNET_100G_LR" + ], + "enumDescriptions": [ + "Unspecified.", + "Link type is 10 gbps.", + "Link type is 100 gbps." + ], + "type": "string" + }, + "provisionedLinkCount": { + "$ref": "Usage", + "description": "Interconnect usage. This is specified as a unitless quantity which indicates the number of circuit provisioned in interconnect." + } + }, + "type": "object" + }, + "CloudStorageEgressWorkload": { + "description": "Specification of a network type. Network egress within Google Cloud applies when you move or copy data from one Cloud Storage bucket to another or when another Google Cloud service accesses data in your Cloud Storage bucket.This includes the network egress within Google Cloud and the general network usage.", + "id": "CloudStorageEgressWorkload", + "properties": { + "destinationContinent": { + "description": "Where the data is sent to.", + "enum": [ + "DESTINATION_CONTINENT_UNSPECIFIED", + "DESTINATION_CONTINENT_ASIA_PACIFIC", + "DESTINATION_CONTINENT_AUTRALIA", + "DESTINATION_CONTINENT_EUROPE", + "DESTINATION_CONTINENT_NORTH_AMERICA", + "DESTINATION_CONTINENT_SOUTH_AMERICA" + ], + "enumDescriptions": [ + "Not specified.", + "Asia Pacific.", + "Australia.", + "Europe.", + "North America.", + "South America" + ], + "type": "string" + }, + "egressRate": { + "$ref": "Usage", + "description": "Egress usage rate. This usage applies when you move or copy data from one Cloud Storage bucket to another or when another Google Cloud service accesses data in your Cloud Storage bucket. Expected units such as \"GiBy/s, By/s, ...\"" + }, + "sourceContinent": { + "description": "Where the data comes from.", + "enum": [ + "SOURCE_CONTINENT_UNSPECIFIED", + "SOURCE_CONTINENT_ASIA_PACIFIC", + "SOURCE_CONTINENT_AUSTRALIA", + "SOURCE_CONTINENT_EUROPE", + "SOURCE_CONTINENT_NORTH_AMERICA", + "SOURCE_CONTINENT_SOUTH_AMERICA" + ], + "enumDescriptions": [ + "Not specified.", + "Asia Pacific.", + "Australia.", + "Europe.", + "North America.", + "South America." + ], + "type": "string" + } + }, + "type": "object" + }, "CloudStorageWorkload": { "description": "Specifies usage of Cloud Storage resources.", "id": "CloudStorageWorkload", @@ -217,7 +464,7 @@ "id": "Commitment", "properties": { "name": { - "description": "Required. A name for this commitment. All commitments in a CostScenario must have unique names. Each name must be a maximum of 32 characters.", + "description": "Required. A name for this commitment. All commitments in a CostScenario must have unique names. Each name may be at most 128 characters long.", "type": "string" }, "vmResourceBasedCud": { @@ -578,6 +825,55 @@ }, "type": "object" }, + "PremiumTierEgressWorkload": { + "description": "Specify Premium Tier Internet egress networking.", + "id": "PremiumTierEgressWorkload", + "properties": { + "destinationContinent": { + "description": "Where the data is sent to.", + "enum": [ + "DESTINATION_CONTINENT_UNSPECIFIED", + "DESTINATION_CONTINENT_ASIA_PACIFIC", + "DESTINATION_CONTINENT_AFRICA", + "DESTINATION_CONTINENT_NORTH_AMERICA", + "DESTINATION_CONTINENT_AUTRALIA", + "DESTINATION_CONTINENT_CENTRAL_AMERICA", + "DESTINATION_CONTINENT_CHINA", + "DESTINATION_CONTINENT_EASTERN_EUROPE", + "DESTINATION_CONTINENT_WESTERN_EUROPE", + "DESTINATION_CONTINENT_EMEA", + "DESTINATION_CONTINENT_INDIA", + "DESTINATION_CONTINENT_MIDDLE_EAST", + "DESTINATION_CONTINENT_SOUTH_AMERICA" + ], + "enumDescriptions": [ + "Not specified.", + "Asia Pacific.", + "Africa.", + "North America.", + "Australia.", + "Central America.", + "China.", + "Eastern Europe.", + "Western Europe.", + "Other regions in Europe, Middle East and Africa.", + "India", + "Middle East.", + "South America." + ], + "type": "string" + }, + "egressRate": { + "$ref": "Usage", + "description": "Premium Tier egress usage. Expected units such as \"GiBy/s, By/s, etc.\"" + }, + "sourceRegion": { + "description": "Which [region](https://cloud.google.com/compute/docs/regions-zones) the egress data comes from.", + "type": "string" + } + }, + "type": "object" + }, "Price": { "description": "The price of a SKU at a point int time.", "id": "Price", @@ -652,7 +948,7 @@ "id": "ScenarioConfig", "properties": { "estimateDuration": { - "description": "Time frame for the estimate. Workloads must specify usage for this duration. Duration must be at least 1 hour (3,600 seconds) and at most 10 years (315,360,000 seconds). The calculations for years and months are based on a 730-hour (2,628,000-second) month.", + "description": "Time frame for the estimate. Workloads must specify usage for this duration. Duration must be at least 1 hour (3,600 seconds) and at most 10 years (315,360,000 seconds). The calculations for years and months are based on a 730-hour (2,628,000-second) month. For durations longer than one month (2,628,000 seconds), the duration is rounded up to the next month, so the estimate shows you the costs for full months. For example, a duration of 3,232,800 seconds (roughly 5 weeks) is rounded up to 2 months.", "format": "google-duration", "type": "string" } @@ -734,6 +1030,21 @@ }, "type": "object" }, + "StandardTierEgressWorkload": { + "description": "Specify Standard Tier Internet egress networking.", + "id": "StandardTierEgressWorkload", + "properties": { + "egressRate": { + "$ref": "Usage", + "description": "Standard tier egress usage. Expected units such as \"GiBy/s, By/s, etc.\"" + }, + "sourceRegion": { + "description": "Which [region](https://cloud.google.com/compute/docs/regions-zones) the egress data comes from.", + "type": "string" + } + }, + "type": "object" + }, "Usage": { "description": "An amount of usage over a time frame.", "id": "Usage", @@ -750,7 +1061,7 @@ "id": "UsageRateTimeline", "properties": { "unit": { - "description": "The unit for the usage rate in each timeline entry. The supported units are a subset of [The Unified Code for Units of Measure](https://ucum.org/ucum.html) standard: * **Time units (TIME-UNIT)** * `s` second * `min` minute * `h` hour * `d` day * `wk` week * `mo` month * `yr` year * `ms` millisecond * `us` microsecond * `ns` nanosecond * **Basic storage units (BASIC-STORAGE-UNIT)** * `bit` bit * `By` byte * **Count units (COUNT-UNIT)** * `count` count * **Prefixes (PREFIX)** * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^12) * `P` peta (10^15) * `Ki` kibi (2^10) * `Mi` mebi (2^20) * `Gi` gibi (2^30) * `Ti` tebi (2^40) * `Pi` pebi (2^50) **Grammar** The grammar also includes these connectors: * `/` division or ratio (as an infix operator). For example: `kBy/{email}` or `MiBy/10ms`. * `.` multiplication or composition (as an infix operator). For example: `GBy.d` or `k{watt}.h`. The grammar for a unit is as follows: ``` Expression = Component { \".\" Component } { \"/\" Component } ; Component = ( [ PREFIX ] UNIT | \"%\" ) [ Annotation ] | Annotation | \"1\" ; UNIT = TIME-UNIT | STORAGE-UNIT | DATA-UNIT | COUNT-UNIT Annotation = \"{\" NAME \"}\" ; ``` Examples: * Request per second: `1/s` or `{requests}/s` * GibiBytes: `GiBy` * GibiBytes * seconds: `GiBy.s`", + "description": "The unit for the usage rate in each timeline entry. If you provide an incorrect unit for an instance, the correct unit is provided in the error message. The supported units are a subset of [The Unified Code for Units of Measure](https://ucum.org/ucum.html) standard: * **Time units (TIME-UNIT)** * `s` second * `min` minute * `h` hour * `d` day * `wk` week * `mo` month * `yr` year * `ms` millisecond * `us` microsecond * `ns` nanosecond * **Basic storage units (BASIC-STORAGE-UNIT)** * `bit` bit * `By` byte * **Count units (COUNT-UNIT)** * `count` count * **Prefixes (PREFIX)** * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^12) * `P` peta (10^15) * `Ki` kibi (2^10) * `Mi` mebi (2^20) * `Gi` gibi (2^30) * `Ti` tebi (2^40) * `Pi` pebi (2^50) **Grammar** The grammar also includes these connectors: * `/` division or ratio (as an infix operator). For example: `kBy/{email}` or `MiBy/10ms`. * `.` multiplication or composition (as an infix operator). For example: `GBy.d` or `k{watt}.h`. The grammar for a unit is as follows: ``` Expression = Component { \".\" Component } { \"/\" Component } ; Component = ( [ PREFIX ] UNIT | \"%\" ) [ Annotation ] | Annotation | \"1\" ; UNIT = TIME-UNIT | STORAGE-UNIT | DATA-UNIT | COUNT-UNIT Annotation = \"{\" NAME \"}\" ; ``` Examples: * Request per second: `1/s` or `{requests}/s` * GibiBytes: `GiBy` * GibiBytes * seconds: `GiBy.s`", "type": "string" }, "usageRateTimelineEntries": { @@ -779,6 +1090,51 @@ }, "type": "object" }, + "VlanAttachment": { + "description": "VLAN attachment for cloud interconnect.", + "id": "VlanAttachment", + "properties": { + "bandwidth": { + "description": "Capacities in the [pricing table](https://cloud.google.com/vpc/network-pricing#interconnect-pricing) Examples of capacity are: 50/100/200/300/400/500-Mbps, 1/2/5/10/20/50-Gbps.", + "enum": [ + "BANDWIDTH_UNSPECIFIED", + "BANDWIDTH_BPS_50M", + "BANDWIDTH_BPS_100M", + "BANDWIDTH_BPS_200M", + "BANDWIDTH_BPS_300M", + "BANDWIDTH_BPS_400M", + "BANDWIDTH_BPS_500M", + "BANDWIDTH_BPS_1G", + "BANDWIDTH_BPS_2G", + "BANDWIDTH_BPS_5G", + "BANDWIDTH_BPS_10G", + "BANDWIDTH_BPS_20G", + "BANDWIDTH_BPS_50G" + ], + "enumDescriptions": [ + "Unspecified.", + "50 Mbit/s", + "100 Mbit/s", + "200 Mbit/s", + "300 Mbit/s", + "400 Mbit/s", + "500 Mbit/s", + "1 Gbit/s", + "2 Gbit/s", + "5 Gbit/s", + "10 Gbit/s", + "20 Gbit/s", + "50 Gbit/s" + ], + "type": "string" + }, + "vlanCount": { + "$ref": "Usage", + "description": "VLAN usage. This is specified as a unitless quantity which indicates the number of VLAN attachment used in interconnect." + } + }, + "type": "object" + }, "VmResourceBasedCud": { "description": "Specifies a resource-based committed use discount (CUD).", "id": "VmResourceBasedCud", @@ -826,6 +1182,26 @@ "description": "Specifies usage on a single Google Cloud product over a time frame. Each Google Cloud product has its own message, containing specific product configuration parameters of the product usage amounts along each dimension in which the product is billed.", "id": "Workload", "properties": { + "cloudCdnEgressWorkload": { + "$ref": "CloudCdnEgressWorkload", + "description": "Usage on Google Cloud CDN Egress." + }, + "cloudCdnWorkload": { + "$ref": "CloudCdnWorkload", + "description": "Usage on Google Cloud CDN." + }, + "cloudInterconnectEgressWorkload": { + "$ref": "CloudInterconnectEgressWorkload", + "description": "Usage on Google Cloud Interconnect Egress." + }, + "cloudInterconnectWorkload": { + "$ref": "CloudInterconnectWorkload", + "description": "Usage on Google Cloud Interconnect." + }, + "cloudStorageEgressWorkload": { + "$ref": "CloudStorageEgressWorkload", + "description": "Usage on a cloud storage egress." + }, "cloudStorageWorkload": { "$ref": "CloudStorageWorkload", "description": "Usage on Google Cloud Storage." @@ -835,8 +1211,16 @@ "description": "Usage of a Google Compute Engine Virtual Machine." }, "name": { - "description": "Required. A name for this workload. All workloads in a `CostScenario` must have a unique `name`. Each `name` must be a maximum of 32 characters.", + "description": "Required. A name for this workload. All workloads in a `CostScenario` must have a unique `name`. Each `name` may be at most 128 characters long.", "type": "string" + }, + "premiumTierEgressWorkload": { + "$ref": "PremiumTierEgressWorkload", + "description": "Usage on Premium Tier Internet Egress." + }, + "standardTierEgressWorkload": { + "$ref": "StandardTierEgressWorkload", + "description": "Usage on Standard Tier Internet Egress." } }, "type": "object" diff --git a/cloudbilling/v1beta/cloudbilling-gen.go b/cloudbilling/v1beta/cloudbilling-gen.go index 51505b6aa04..6a276cef0e7 100644 --- a/cloudbilling/v1beta/cloudbilling-gen.go +++ b/cloudbilling/v1beta/cloudbilling-gen.go @@ -170,6 +170,311 @@ type V1betaService struct { s *Service } +// CacheFillRegions: Specifies the regions for Cache Fill. +type CacheFillRegions struct { + // DestinationRegion: The destination region for cache fill. + // + // Possible values: + // "CACHE_FILL_DESTINATION_REGION_UNSPECIFIED" - Not specified. + // "CACHE_FILL_DESTINATION_REGION_ASIA_PACIFIC" - Asia Pacific. + // "CACHE_FILL_DESTINATION_REGION_EUROPE" - Europe + // "CACHE_FILL_DESTINATION_REGION_NORTH_AMERICA" - North America. + // "CACHE_FILL_DESTINATION_REGION_OCEANIA" - Oceania. + // "CACHE_FILL_DESTINATION_REGION_SOUTH_AMERICA" - South America. + // "CACHE_FILL_DESTINATION_REGION_CHINA" - China. + // "CACHE_FILL_DESTINATION_REGION_OTHERS" - Others. + DestinationRegion string `json:"destinationRegion,omitempty"` + + // SourceRegion: The source region for cache fill. + // + // Possible values: + // "CACHE_FILL_SOURCE_REGION_UNSPECIFIED" - Not specified. + // "CACHE_FILL_REGION_ASIA_PACIFIC" - Asia Pacific. + // "CACHE_FILL_SOURCE_REGION_EUROPE" - Europe + // "CACHE_FILL_SOURCE_REGION_NORTH_AMERICA" - North America. + // "CACHE_FILL_SOURCE_REGION_OCEANIA" - Oceania. + // "CACHE_FILL_SOURCE_REGION_SOUTH_AMERICA" - South America. + SourceRegion string `json:"sourceRegion,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DestinationRegion") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DestinationRegion") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CacheFillRegions) MarshalJSON() ([]byte, error) { + type NoMethod CacheFillRegions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CloudCdnEgressWorkload: Specifies usage for Cloud CDN egress. +type CloudCdnEgressWorkload struct { + // CacheEgressDestination: The destination for the cache egress charges. + // + // Possible values: + // "CACHE_EGRESS_DESTINATION_UNSPECIFIED" - Unspecified. + // "CACHE_EGRESS_DESTINATION_ASIA_PACIFIC" - Asia Pacific. + // "CACHE_EGRESS_DESTINATION_CHINA" - China. + // "CACHE_EGRESS_DESTINATION_EUROPE" - Europe. + // "CACHE_EGRESS_DESTINATION_NORTH_AMERICA" - North America. + // "CACHE_EGRESS_DESTINATION_OCEANIA" - Oceania including Australia, + // New Zealand, and surrounding Pacific Ocean islands such as Papua New + // Guinea and Fiji. This region excludes Hawaii. + // "CACHE_EGRESS_DESTINATION_LATIN_AMERICA" - Latin America (Including + // the Caribbean, South America and Central America.) + // "CACHE_EGRESS_DESTINATION_OTHER_DESTINATIONS" - All other + // destinations (including Africa and Antarctica) + CacheEgressDestination string `json:"cacheEgressDestination,omitempty"` + + // CacheEgressRate: Cache egress usage. The rate of data cache egressed + // in the destination. For example : units such as "GiBy/s" or "TBy/mo". + CacheEgressRate *Usage `json:"cacheEgressRate,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CacheEgressDestination") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CacheEgressDestination") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CloudCdnEgressWorkload) MarshalJSON() ([]byte, error) { + type NoMethod CloudCdnEgressWorkload + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CloudCdnWorkload: Specifies usage for Cloud CDN resources. +type CloudCdnWorkload struct { + // CacheFillOriginService: The source service for the cache fill. + // + // Possible values: + // "CACHE_FILL_ORIGIN_SERVICE_UNSPECIFIED" - Not specified. + // "CACHE_FILL_ORIGIN_SERVICE_GOOGLE_CLOUD_STORAGE_BUCKET" - Origin + // service is Google Cloud Storage. + // "CACHE_FILL_ORIGIN_SERVICE_BACKEND_SERVICE" - Origin service is + // backend service, such as Compute VMs, external backend, etc. + CacheFillOriginService string `json:"cacheFillOriginService,omitempty"` + + // CacheFillRate: Cache fill usage. The rate of data transferred between + // cache fill regions. For example: units such as "GiBy/s" or "TBy/mo". + CacheFillRate *Usage `json:"cacheFillRate,omitempty"` + + // CacheFillRegions: The regions where data is transferred from Google + // data locations into Google global cache servers. The SKU prices for + // cache fill across services are the same. + CacheFillRegions *CacheFillRegions `json:"cacheFillRegions,omitempty"` + + // CacheLookUpRate: Cache look up requests. This is specified to + // indicate the number of requests. For example: units such as "1/s". + CacheLookUpRate *Usage `json:"cacheLookUpRate,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CacheFillOriginService") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CacheFillOriginService") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CloudCdnWorkload) MarshalJSON() ([]byte, error) { + type NoMethod CloudCdnWorkload + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CloudInterconnectEgressWorkload: The interconnect egress only +// includes the Interconnect Egress. Please use the standard egress +// traffic interface to specify your standard egress usage. +type CloudInterconnectEgressWorkload struct { + // EgressRate: Data egress usage. This usage applies when you move or + // copy data from one Google Cloud service to another service. Expected + // units such as "GiBy/s, By/s, etc." + EgressRate *Usage `json:"egressRate,omitempty"` + + // InterconnectConnectionLocation: Locations in the Interconnect + // connection location table + // (https://cloud.google.com/vpc/network-pricing#interconnect-pricing). + // This is the interconnect egress charges. + // + // Possible values: + // "INTERCONNECT_CONNECTION_LOCATION_UNSPECIFIED" - Unspecified. + // "INTERCONNECT_CONNECTION_LOCATION_ASIA" - Asia. + // "INTERCONNECT_CONNECTION_LOCATION_EUROPE" - Europe. + // "INTERCONNECT_CONNECTION_LOCATION_NORTH_AMERICA" - North America. + // "INTERCONNECT_CONNECTION_LOCATION_SOUTH_AMERICA" - South America. + // "INTERCONNECT_CONNECTION_LOCATION_AUSTRALIA" - Australia. + InterconnectConnectionLocation string `json:"interconnectConnectionLocation,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EgressRate") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EgressRate") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CloudInterconnectEgressWorkload) MarshalJSON() ([]byte, error) { + type NoMethod CloudInterconnectEgressWorkload + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CloudInterconnectWorkload: Specifies usage for Cloud Interconnect +// resources. +type CloudInterconnectWorkload struct { + // InterconnectAttachments: VLAN attachment used for interconnect. + InterconnectAttachments []*VlanAttachment `json:"interconnectAttachments,omitempty"` + + // InterconnectType: Vlan attachment type. + // + // Possible values: + // "INTERCONNECT_TYPE_UNSPECIFIED" - Unspecified. + // "INTERCONNECT_TYPE_DEDICATED" - Type is dedicated. + // "INTERCONNECT_TYPE_PARTNER" - Type is partner. + InterconnectType string `json:"interconnectType,omitempty"` + + // LinkType: Interconnect circuit link type. + // + // Possible values: + // "LINK_TYPE_UNSPECIFIED" - Unspecified. + // "LINK_TYPE_ETHERNET_10G_LR" - Link type is 10 gbps. + // "LINK_TYPE_ETHERNET_100G_LR" - Link type is 100 gbps. + LinkType string `json:"linkType,omitempty"` + + // ProvisionedLinkCount: Interconnect usage. This is specified as a + // unitless quantity which indicates the number of circuit provisioned + // in interconnect. + ProvisionedLinkCount *Usage `json:"provisionedLinkCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "InterconnectAttachments") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "InterconnectAttachments") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CloudInterconnectWorkload) MarshalJSON() ([]byte, error) { + type NoMethod CloudInterconnectWorkload + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CloudStorageEgressWorkload: Specification of a network type. Network +// egress within Google Cloud applies when you move or copy data from +// one Cloud Storage bucket to another or when another Google Cloud +// service accesses data in your Cloud Storage bucket.This includes the +// network egress within Google Cloud and the general network usage. +type CloudStorageEgressWorkload struct { + // DestinationContinent: Where the data is sent to. + // + // Possible values: + // "DESTINATION_CONTINENT_UNSPECIFIED" - Not specified. + // "DESTINATION_CONTINENT_ASIA_PACIFIC" - Asia Pacific. + // "DESTINATION_CONTINENT_AUTRALIA" - Australia. + // "DESTINATION_CONTINENT_EUROPE" - Europe. + // "DESTINATION_CONTINENT_NORTH_AMERICA" - North America. + // "DESTINATION_CONTINENT_SOUTH_AMERICA" - South America + DestinationContinent string `json:"destinationContinent,omitempty"` + + // EgressRate: Egress usage rate. This usage applies when you move or + // copy data from one Cloud Storage bucket to another or when another + // Google Cloud service accesses data in your Cloud Storage bucket. + // Expected units such as "GiBy/s, By/s, ..." + EgressRate *Usage `json:"egressRate,omitempty"` + + // SourceContinent: Where the data comes from. + // + // Possible values: + // "SOURCE_CONTINENT_UNSPECIFIED" - Not specified. + // "SOURCE_CONTINENT_ASIA_PACIFIC" - Asia Pacific. + // "SOURCE_CONTINENT_AUSTRALIA" - Australia. + // "SOURCE_CONTINENT_EUROPE" - Europe. + // "SOURCE_CONTINENT_NORTH_AMERICA" - North America. + // "SOURCE_CONTINENT_SOUTH_AMERICA" - South America. + SourceContinent string `json:"sourceContinent,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "DestinationContinent") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DestinationContinent") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CloudStorageEgressWorkload) MarshalJSON() ([]byte, error) { + type NoMethod CloudStorageEgressWorkload + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CloudStorageWorkload: Specifies usage of Cloud Storage resources. type CloudStorageWorkload struct { // DataRetrieval: Data retrieval usage. A retrieval cost applies when @@ -241,8 +546,8 @@ func (s *CloudStorageWorkload) MarshalJSON() ([]byte, error) { // commitment and any discounts. type Commitment struct { // Name: Required. A name for this commitment. All commitments in a - // CostScenario must have unique names. Each name must be a maximum of - // 32 characters. + // CostScenario must have unique names. Each name may be at most 128 + // characters long. Name string `json:"name,omitempty"` // VmResourceBasedCud: A resource-based committed use discount (CUD). @@ -972,6 +1277,62 @@ func (s *PredefinedMachineType) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// PremiumTierEgressWorkload: Specify Premium Tier Internet egress +// networking. +type PremiumTierEgressWorkload struct { + // DestinationContinent: Where the data is sent to. + // + // Possible values: + // "DESTINATION_CONTINENT_UNSPECIFIED" - Not specified. + // "DESTINATION_CONTINENT_ASIA_PACIFIC" - Asia Pacific. + // "DESTINATION_CONTINENT_AFRICA" - Africa. + // "DESTINATION_CONTINENT_NORTH_AMERICA" - North America. + // "DESTINATION_CONTINENT_AUTRALIA" - Australia. + // "DESTINATION_CONTINENT_CENTRAL_AMERICA" - Central America. + // "DESTINATION_CONTINENT_CHINA" - China. + // "DESTINATION_CONTINENT_EASTERN_EUROPE" - Eastern Europe. + // "DESTINATION_CONTINENT_WESTERN_EUROPE" - Western Europe. + // "DESTINATION_CONTINENT_EMEA" - Other regions in Europe, Middle East + // and Africa. + // "DESTINATION_CONTINENT_INDIA" - India + // "DESTINATION_CONTINENT_MIDDLE_EAST" - Middle East. + // "DESTINATION_CONTINENT_SOUTH_AMERICA" - South America. + DestinationContinent string `json:"destinationContinent,omitempty"` + + // EgressRate: Premium Tier egress usage. Expected units such as + // "GiBy/s, By/s, etc." + EgressRate *Usage `json:"egressRate,omitempty"` + + // SourceRegion: Which region + // (https://cloud.google.com/compute/docs/regions-zones) the egress data + // comes from. + SourceRegion string `json:"sourceRegion,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "DestinationContinent") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DestinationContinent") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *PremiumTierEgressWorkload) MarshalJSON() ([]byte, error) { + type NoMethod PremiumTierEgressWorkload + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Price: The price of a SKU at a point int time. type Price struct { // EffectiveTime: The timestamp within the estimation time frame when @@ -1143,7 +1504,10 @@ type ScenarioConfig struct { // usage for this duration. Duration must be at least 1 hour (3,600 // seconds) and at most 10 years (315,360,000 seconds). The calculations // for years and months are based on a 730-hour (2,628,000-second) - // month. + // month. For durations longer than one month (2,628,000 seconds), the + // duration is rounded up to the next month, so the estimate shows you + // the costs for full months. For example, a duration of 3,232,800 + // seconds (roughly 5 weeks) is rounded up to 2 months. EstimateDuration string `json:"estimateDuration,omitempty"` // ForceSendFields is a list of field names (e.g. "EstimateDuration") to @@ -1302,6 +1666,41 @@ func (s *SkuCostEstimate) UnmarshalJSON(data []byte) error { return nil } +// StandardTierEgressWorkload: Specify Standard Tier Internet egress +// networking. +type StandardTierEgressWorkload struct { + // EgressRate: Standard tier egress usage. Expected units such as + // "GiBy/s, By/s, etc." + EgressRate *Usage `json:"egressRate,omitempty"` + + // SourceRegion: Which region + // (https://cloud.google.com/compute/docs/regions-zones) the egress data + // comes from. + SourceRegion string `json:"sourceRegion,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EgressRate") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EgressRate") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *StandardTierEgressWorkload) MarshalJSON() ([]byte, error) { + type NoMethod StandardTierEgressWorkload + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Usage: An amount of usage over a time frame. type Usage struct { // UsageRateTimeline: A timeline of usage rates over the estimate @@ -1344,26 +1743,27 @@ func (s *Usage) MarshalJSON() ([]byte, error) { // the estimate time frame. The effective time on all entries must be an // integer number of hours. type UsageRateTimeline struct { - // Unit: The unit for the usage rate in each timeline entry. The - // supported units are a subset of The Unified Code for Units of Measure - // (https://ucum.org/ucum.html) standard: * **Time units (TIME-UNIT)** * - // `s` second * `min` minute * `h` hour * `d` day * `wk` week * `mo` - // month * `yr` year * `ms` millisecond * `us` microsecond * `ns` - // nanosecond * **Basic storage units (BASIC-STORAGE-UNIT)** * `bit` bit - // * `By` byte * **Count units (COUNT-UNIT)** * `count` count * - // **Prefixes (PREFIX)** * `k` kilo (10^3) * `M` mega (10^6) * `G` giga - // (10^9) * `T` tera (10^12) * `P` peta (10^15) * `Ki` kibi (2^10) * - // `Mi` mebi (2^20) * `Gi` gibi (2^30) * `Ti` tebi (2^40) * `Pi` pebi - // (2^50) **Grammar** The grammar also includes these connectors: * `/` - // division or ratio (as an infix operator). For example: `kBy/{email}` - // or `MiBy/10ms`. * `.` multiplication or composition (as an infix - // operator). For example: `GBy.d` or `k{watt}.h`. The grammar for a - // unit is as follows: ``` Expression = Component { "." Component } { - // "/" Component } ; Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation - // ] | Annotation | "1" ; UNIT = TIME-UNIT | STORAGE-UNIT | DATA-UNIT | - // COUNT-UNIT Annotation = "{" NAME "}" ; ``` Examples: * Request per - // second: `1/s` or `{requests}/s` * GibiBytes: `GiBy` * GibiBytes * - // seconds: `GiBy.s` + // Unit: The unit for the usage rate in each timeline entry. If you + // provide an incorrect unit for an instance, the correct unit is + // provided in the error message. The supported units are a subset of + // The Unified Code for Units of Measure (https://ucum.org/ucum.html) + // standard: * **Time units (TIME-UNIT)** * `s` second * `min` minute * + // `h` hour * `d` day * `wk` week * `mo` month * `yr` year * `ms` + // millisecond * `us` microsecond * `ns` nanosecond * **Basic storage + // units (BASIC-STORAGE-UNIT)** * `bit` bit * `By` byte * **Count units + // (COUNT-UNIT)** * `count` count * **Prefixes (PREFIX)** * `k` kilo + // (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^12) * `P` + // peta (10^15) * `Ki` kibi (2^10) * `Mi` mebi (2^20) * `Gi` gibi (2^30) + // * `Ti` tebi (2^40) * `Pi` pebi (2^50) **Grammar** The grammar also + // includes these connectors: * `/` division or ratio (as an infix + // operator). For example: `kBy/{email}` or `MiBy/10ms`. * `.` + // multiplication or composition (as an infix operator). For example: + // `GBy.d` or `k{watt}.h`. The grammar for a unit is as follows: ``` + // Expression = Component { "." Component } { "/" Component } ; + // Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] | Annotation | + // "1" ; UNIT = TIME-UNIT | STORAGE-UNIT | DATA-UNIT | COUNT-UNIT + // Annotation = "{" NAME "}" ; ``` Examples: * Request per second: `1/s` + // or `{requests}/s` * GibiBytes: `GiBy` * GibiBytes * seconds: `GiBy.s` Unit string `json:"unit,omitempty"` // UsageRateTimelineEntries: The timeline entries. Each entry has a @@ -1445,6 +1845,56 @@ func (s *UsageRateTimelineEntry) UnmarshalJSON(data []byte) error { return nil } +// VlanAttachment: VLAN attachment for cloud interconnect. +type VlanAttachment struct { + // Bandwidth: Capacities in the pricing table + // (https://cloud.google.com/vpc/network-pricing#interconnect-pricing) + // Examples of capacity are: 50/100/200/300/400/500-Mbps, + // 1/2/5/10/20/50-Gbps. + // + // Possible values: + // "BANDWIDTH_UNSPECIFIED" - Unspecified. + // "BANDWIDTH_BPS_50M" - 50 Mbit/s + // "BANDWIDTH_BPS_100M" - 100 Mbit/s + // "BANDWIDTH_BPS_200M" - 200 Mbit/s + // "BANDWIDTH_BPS_300M" - 300 Mbit/s + // "BANDWIDTH_BPS_400M" - 400 Mbit/s + // "BANDWIDTH_BPS_500M" - 500 Mbit/s + // "BANDWIDTH_BPS_1G" - 1 Gbit/s + // "BANDWIDTH_BPS_2G" - 2 Gbit/s + // "BANDWIDTH_BPS_5G" - 5 Gbit/s + // "BANDWIDTH_BPS_10G" - 10 Gbit/s + // "BANDWIDTH_BPS_20G" - 20 Gbit/s + // "BANDWIDTH_BPS_50G" - 50 Gbit/s + Bandwidth string `json:"bandwidth,omitempty"` + + // VlanCount: VLAN usage. This is specified as a unitless quantity which + // indicates the number of VLAN attachment used in interconnect. + VlanCount *Usage `json:"vlanCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Bandwidth") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Bandwidth") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *VlanAttachment) MarshalJSON() ([]byte, error) { + type NoMethod VlanAttachment + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // VmResourceBasedCud: Specifies a resource-based committed use discount // (CUD). type VmResourceBasedCud struct { @@ -1522,6 +1972,22 @@ func (s *VmResourceBasedCud) UnmarshalJSON(data []byte) error { // specific product configuration parameters of the product usage // amounts along each dimension in which the product is billed. type Workload struct { + // CloudCdnEgressWorkload: Usage on Google Cloud CDN Egress. + CloudCdnEgressWorkload *CloudCdnEgressWorkload `json:"cloudCdnEgressWorkload,omitempty"` + + // CloudCdnWorkload: Usage on Google Cloud CDN. + CloudCdnWorkload *CloudCdnWorkload `json:"cloudCdnWorkload,omitempty"` + + // CloudInterconnectEgressWorkload: Usage on Google Cloud Interconnect + // Egress. + CloudInterconnectEgressWorkload *CloudInterconnectEgressWorkload `json:"cloudInterconnectEgressWorkload,omitempty"` + + // CloudInterconnectWorkload: Usage on Google Cloud Interconnect. + CloudInterconnectWorkload *CloudInterconnectWorkload `json:"cloudInterconnectWorkload,omitempty"` + + // CloudStorageEgressWorkload: Usage on a cloud storage egress. + CloudStorageEgressWorkload *CloudStorageEgressWorkload `json:"cloudStorageEgressWorkload,omitempty"` + // CloudStorageWorkload: Usage on Google Cloud Storage. CloudStorageWorkload *CloudStorageWorkload `json:"cloudStorageWorkload,omitempty"` @@ -1529,12 +1995,18 @@ type Workload struct { ComputeVmWorkload *ComputeVmWorkload `json:"computeVmWorkload,omitempty"` // Name: Required. A name for this workload. All workloads in a - // `CostScenario` must have a unique `name`. Each `name` must be a - // maximum of 32 characters. + // `CostScenario` must have a unique `name`. Each `name` may be at most + // 128 characters long. Name string `json:"name,omitempty"` + // PremiumTierEgressWorkload: Usage on Premium Tier Internet Egress. + PremiumTierEgressWorkload *PremiumTierEgressWorkload `json:"premiumTierEgressWorkload,omitempty"` + + // StandardTierEgressWorkload: Usage on Standard Tier Internet Egress. + StandardTierEgressWorkload *StandardTierEgressWorkload `json:"standardTierEgressWorkload,omitempty"` + // ForceSendFields is a list of field names (e.g. - // "CloudStorageWorkload") to unconditionally include in API requests. + // "CloudCdnEgressWorkload") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the @@ -1542,10 +2014,10 @@ type Workload struct { // Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CloudStorageWorkload") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the + // NullFields is a list of field names (e.g. "CloudCdnEgressWorkload") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. diff --git a/cloudchannel/v1/cloudchannel-api.json b/cloudchannel/v1/cloudchannel-api.json index 861622430b5..b447957abfb 100644 --- a/cloudchannel/v1/cloudchannel-api.json +++ b/cloudchannel/v1/cloudchannel-api.json @@ -2009,7 +2009,7 @@ } } }, - "revision": "20221106", + "revision": "20221212", "rootUrl": "https://cloudchannel.googleapis.com/", "schemas": { "GoogleCloudChannelV1ActivateEntitlementRequest": { @@ -2370,6 +2370,35 @@ }, "type": "object" }, + "GoogleCloudChannelV1ConditionalOverride": { + "description": "Specifies the override to conditionally apply.", + "id": "GoogleCloudChannelV1ConditionalOverride", + "properties": { + "adjustment": { + "$ref": "GoogleCloudChannelV1RepricingAdjustment", + "description": "Required. Information about the applied override's adjustment." + }, + "rebillingBasis": { + "description": "Required. The RebillingBasis to use for the applied override. Shows the relative cost based on your repricing costs.", + "enum": [ + "REBILLING_BASIS_UNSPECIFIED", + "COST_AT_LIST", + "DIRECT_CUSTOMER_COST" + ], + "enumDescriptions": [ + "Not used.", + "Use the list cost, also known as the MSRP.", + "Pass through all discounts except the Reseller Program Discount. If this is the default cost base and no adjustments are specified, the output cost will be exactly what the customer would see if they viewed the bill in the Google Cloud Console." + ], + "type": "string" + }, + "repricingCondition": { + "$ref": "GoogleCloudChannelV1RepricingCondition", + "description": "Required. Specifies the condition which, if met, will apply the override." + } + }, + "type": "object" + }, "GoogleCloudChannelV1Constraints": { "description": "Represents the constraints for buying the Offer.", "id": "GoogleCloudChannelV1Constraints", @@ -3901,6 +3930,17 @@ }, "type": "object" }, + "GoogleCloudChannelV1RepricingCondition": { + "description": "Represents the various repricing conditions you can use for a conditional override.", + "id": "GoogleCloudChannelV1RepricingCondition", + "properties": { + "skuGroupCondition": { + "$ref": "GoogleCloudChannelV1SkuGroupCondition", + "description": "SKU Group condition for override." + } + }, + "type": "object" + }, "GoogleCloudChannelV1RepricingConfig": { "description": "Configuration for repricing a Google bill over a period of time.", "id": "GoogleCloudChannelV1RepricingConfig", @@ -3913,6 +3953,13 @@ "$ref": "GoogleCloudChannelV1RepricingConfigChannelPartnerGranularity", "description": "Applies the repricing configuration at the channel partner level. This is the only supported value for ChannelPartnerRepricingConfig." }, + "conditionalOverrides": { + "description": "The conditional overrides to apply for this configuration. If you list multiple overrides, only the first valid override is used. If you don't list any overrides, the API uses the normal adjustment and rebilling basis.", + "items": { + "$ref": "GoogleCloudChannelV1ConditionalOverride" + }, + "type": "array" + }, "effectiveInvoiceMonth": { "$ref": "GoogleTypeDate", "description": "Required. The YearMonth when these adjustments activate. The Day field needs to be \"0\" since we only accept YearMonth repricing boundaries." @@ -4022,6 +4069,17 @@ }, "type": "object" }, + "GoogleCloudChannelV1SkuGroupCondition": { + "description": "A condition that applies the override if a line item SKU is found in the SKU group.", + "id": "GoogleCloudChannelV1SkuGroupCondition", + "properties": { + "skuGroup": { + "description": "Specifies a SKU group (https://cloud.google.com/skus/sku-groups). Resource name of SKU group. Format: accounts/{account}/skuGroups/{sku_group}. Example: \"accounts/C01234/skuGroups/3d50fd57-3157-4577-a5a9-a219b8490041\".", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudChannelV1StartPaidServiceRequest": { "description": "Request message for CloudChannelService.StartPaidService.", "id": "GoogleCloudChannelV1StartPaidServiceRequest", diff --git a/cloudchannel/v1/cloudchannel-gen.go b/cloudchannel/v1/cloudchannel-gen.go index bb5cd527fe2..3702de3b6dd 100644 --- a/cloudchannel/v1/cloudchannel-gen.go +++ b/cloudchannel/v1/cloudchannel-gen.go @@ -958,6 +958,53 @@ func (s *GoogleCloudChannelV1CommitmentSettings) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudChannelV1ConditionalOverride: Specifies the override to +// conditionally apply. +type GoogleCloudChannelV1ConditionalOverride struct { + // Adjustment: Required. Information about the applied override's + // adjustment. + Adjustment *GoogleCloudChannelV1RepricingAdjustment `json:"adjustment,omitempty"` + + // RebillingBasis: Required. The RebillingBasis to use for the applied + // override. Shows the relative cost based on your repricing costs. + // + // Possible values: + // "REBILLING_BASIS_UNSPECIFIED" - Not used. + // "COST_AT_LIST" - Use the list cost, also known as the MSRP. + // "DIRECT_CUSTOMER_COST" - Pass through all discounts except the + // Reseller Program Discount. If this is the default cost base and no + // adjustments are specified, the output cost will be exactly what the + // customer would see if they viewed the bill in the Google Cloud + // Console. + RebillingBasis string `json:"rebillingBasis,omitempty"` + + // RepricingCondition: Required. Specifies the condition which, if met, + // will apply the override. + RepricingCondition *GoogleCloudChannelV1RepricingCondition `json:"repricingCondition,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Adjustment") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Adjustment") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudChannelV1ConditionalOverride) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudChannelV1ConditionalOverride + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudChannelV1Constraints: Represents the constraints for // buying the Offer. type GoogleCloudChannelV1Constraints struct { @@ -3471,6 +3518,36 @@ func (s *GoogleCloudChannelV1RepricingAdjustment) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudChannelV1RepricingCondition: Represents the various +// repricing conditions you can use for a conditional override. +type GoogleCloudChannelV1RepricingCondition struct { + // SkuGroupCondition: SKU Group condition for override. + SkuGroupCondition *GoogleCloudChannelV1SkuGroupCondition `json:"skuGroupCondition,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SkuGroupCondition") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "SkuGroupCondition") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudChannelV1RepricingCondition) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudChannelV1RepricingCondition + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudChannelV1RepricingConfig: Configuration for repricing a // Google bill over a period of time. type GoogleCloudChannelV1RepricingConfig struct { @@ -3482,6 +3559,12 @@ type GoogleCloudChannelV1RepricingConfig struct { // ChannelPartnerRepricingConfig. ChannelPartnerGranularity *GoogleCloudChannelV1RepricingConfigChannelPartnerGranularity `json:"channelPartnerGranularity,omitempty"` + // ConditionalOverrides: The conditional overrides to apply for this + // configuration. If you list multiple overrides, only the first valid + // override is used. If you don't list any overrides, the API uses the + // normal adjustment and rebilling basis. + ConditionalOverrides []*GoogleCloudChannelV1ConditionalOverride `json:"conditionalOverrides,omitempty"` + // EffectiveInvoiceMonth: Required. The YearMonth when these adjustments // activate. The Day field needs to be "0" since we only accept // YearMonth repricing boundaries. @@ -3712,6 +3795,38 @@ func (s *GoogleCloudChannelV1Sku) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudChannelV1SkuGroupCondition: A condition that applies the +// override if a line item SKU is found in the SKU group. +type GoogleCloudChannelV1SkuGroupCondition struct { + // SkuGroup: Specifies a SKU group + // (https://cloud.google.com/skus/sku-groups). Resource name of SKU + // group. Format: accounts/{account}/skuGroups/{sku_group}. Example: + // "accounts/C01234/skuGroups/3d50fd57-3157-4577-a5a9-a219b8490041". + SkuGroup string `json:"skuGroup,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SkuGroup") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "SkuGroup") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudChannelV1SkuGroupCondition) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudChannelV1SkuGroupCondition + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudChannelV1StartPaidServiceRequest: Request message for // CloudChannelService.StartPaidService. type GoogleCloudChannelV1StartPaidServiceRequest struct { diff --git a/clouddeploy/v1/clouddeploy-api.json b/clouddeploy/v1/clouddeploy-api.json index 9d1dc9c7621..7ffbf7a8738 100644 --- a/clouddeploy/v1/clouddeploy-api.json +++ b/clouddeploy/v1/clouddeploy-api.json @@ -1334,7 +1334,7 @@ } } }, - "revision": "20221020", + "revision": "20221208", "rootUrl": "https://clouddeploy.googleapis.com/", "schemas": { "AbandonReleaseRequest": { @@ -1509,8 +1509,7 @@ "id": "Config", "properties": { "defaultSkaffoldVersion": { - "description": "Output only. Default Skaffold version that is assigned when a Release is created without specifying a Skaffold version.", - "readOnly": true, + "description": "Default Skaffold version that is assigned when a Release is created without specifying a Skaffold version.", "type": "string" }, "name": { @@ -1518,11 +1517,10 @@ "type": "string" }, "supportedVersions": { - "description": "Output only. All supported versions of Skaffold.", + "description": "All supported versions of Skaffold.", "items": { "$ref": "SkaffoldVersion" }, - "readOnly": true, "type": "array" } }, @@ -2331,7 +2329,11 @@ }, "targetsPresentCondition": { "$ref": "TargetsPresentCondition", - "description": "Detalis around targets enumerated in the pipeline." + "description": "Details around targets enumerated in the pipeline." + }, + "targetsTypeCondition": { + "$ref": "TargetsTypeCondition", + "description": "Details on the whether the targets enumerated in the pipeline are of the same type." } }, "type": "object" @@ -2832,7 +2834,7 @@ "properties": { "supportEndDate": { "$ref": "Date", - "description": "Date when this version is expected to no longer be supported." + "description": "Date when this version is expected to no longer be supported. For a more precise time, use the `support_expiration_time` field." }, "version": { "description": "Release version number. For example, \"1.20.3\".", @@ -3095,7 +3097,7 @@ "id": "TargetsPresentCondition", "properties": { "missingTargets": { - "description": "The list of Target names that are missing. For example, projects/{project_id}/locations/{location_name}/targets/{target_name}.", + "description": "The list of Target names that do not exist. For example, projects/{project_id}/locations/{location_name}/targets/{target_name}.", "items": { "type": "string" }, @@ -3113,6 +3115,21 @@ }, "type": "object" }, + "TargetsTypeCondition": { + "description": "TargetsTypeCondition contains information on whether the Targets defined in the Delivery Pipeline are of the same type.", + "id": "TargetsTypeCondition", + "properties": { + "errorDetails": { + "description": "Human readable error message.", + "type": "string" + }, + "status": { + "description": "True if the targets are all a comparable type. For example this is true if all targets are GKE clusters. This is false if some targets are Cloud Run targets and others are GKE clusters.", + "type": "boolean" + } + }, + "type": "object" + }, "TestIamPermissionsRequest": { "description": "Request message for `TestIamPermissions` method.", "id": "TestIamPermissionsRequest", diff --git a/clouddeploy/v1/clouddeploy-gen.go b/clouddeploy/v1/clouddeploy-gen.go index 5518235eee9..66291c79573 100644 --- a/clouddeploy/v1/clouddeploy-gen.go +++ b/clouddeploy/v1/clouddeploy-gen.go @@ -592,15 +592,14 @@ func (s *CloudRunMetadata) MarshalJSON() ([]byte, error) { // Config: Service-wide configuration. type Config struct { - // DefaultSkaffoldVersion: Output only. Default Skaffold version that is - // assigned when a Release is created without specifying a Skaffold - // version. + // DefaultSkaffoldVersion: Default Skaffold version that is assigned + // when a Release is created without specifying a Skaffold version. DefaultSkaffoldVersion string `json:"defaultSkaffoldVersion,omitempty"` // Name: Name of the configuration. Name string `json:"name,omitempty"` - // SupportedVersions: Output only. All supported versions of Skaffold. + // SupportedVersions: All supported versions of Skaffold. SupportedVersions []*SkaffoldVersion `json:"supportedVersions,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -1846,10 +1845,14 @@ type PipelineCondition struct { // PipelineReadyCondition: Details around the Pipeline's overall status. PipelineReadyCondition *PipelineReadyCondition `json:"pipelineReadyCondition,omitempty"` - // TargetsPresentCondition: Detalis around targets enumerated in the + // TargetsPresentCondition: Details around targets enumerated in the // pipeline. TargetsPresentCondition *TargetsPresentCondition `json:"targetsPresentCondition,omitempty"` + // TargetsTypeCondition: Details on the whether the targets enumerated + // in the pipeline are of the same type. + TargetsTypeCondition *TargetsTypeCondition `json:"targetsTypeCondition,omitempty"` + // ForceSendFields is a list of field names (e.g. // "PipelineReadyCondition") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API @@ -2572,7 +2575,8 @@ func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { // SkaffoldVersion: Details of a supported Skaffold version. type SkaffoldVersion struct { // SupportEndDate: Date when this version is expected to no longer be - // supported. + // supported. For a more precise time, use the `support_expiration_time` + // field. SupportEndDate *Date `json:"supportEndDate,omitempty"` // Version: Release version number. For example, "1.20.3". @@ -2984,7 +2988,7 @@ func (s *TargetRender) MarshalJSON() ([]byte, error) { // on any Targets defined in the Delivery Pipeline that do not actually // exist. type TargetsPresentCondition struct { - // MissingTargets: The list of Target names that are missing. For + // MissingTargets: The list of Target names that do not exist. For // example, // projects/{project_id}/locations/{location_name}/targets/{target_name}. MissingTargets []string `json:"missingTargets,omitempty"` @@ -3019,6 +3023,41 @@ func (s *TargetsPresentCondition) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TargetsTypeCondition: TargetsTypeCondition contains information on +// whether the Targets defined in the Delivery Pipeline are of the same +// type. +type TargetsTypeCondition struct { + // ErrorDetails: Human readable error message. + ErrorDetails string `json:"errorDetails,omitempty"` + + // Status: True if the targets are all a comparable type. For example + // this is true if all targets are GKE clusters. This is false if some + // targets are Cloud Run targets and others are GKE clusters. + Status bool `json:"status,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ErrorDetails") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ErrorDetails") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TargetsTypeCondition) MarshalJSON() ([]byte, error) { + type NoMethod TargetsTypeCondition + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // TestIamPermissionsRequest: Request message for `TestIamPermissions` // method. type TestIamPermissionsRequest struct { diff --git a/cloudfunctions/v2/cloudfunctions-api.json b/cloudfunctions/v2/cloudfunctions-api.json index 68de4f735e3..235403fde8a 100644 --- a/cloudfunctions/v2/cloudfunctions-api.json +++ b/cloudfunctions/v2/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20221129", + "revision": "20221207", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -814,7 +814,7 @@ "type": "string" }, "environment": { - "description": "Describe whether the function is gen1 or gen2.", + "description": "Describe whether the function is 1st Gen or 2nd Gen.", "enum": [ "ENVIRONMENT_UNSPECIFIED", "GEN_1", diff --git a/cloudfunctions/v2/cloudfunctions-gen.go b/cloudfunctions/v2/cloudfunctions-gen.go index 2ba0832a0bd..8adbe25ecb8 100644 --- a/cloudfunctions/v2/cloudfunctions-gen.go +++ b/cloudfunctions/v2/cloudfunctions-gen.go @@ -658,7 +658,7 @@ type Function struct { // Description: User-provided description of a function. Description string `json:"description,omitempty"` - // Environment: Describe whether the function is gen1 or gen2. + // Environment: Describe whether the function is 1st Gen or 2nd Gen. // // Possible values: // "ENVIRONMENT_UNSPECIFIED" - Unspecified diff --git a/cloudfunctions/v2alpha/cloudfunctions-api.json b/cloudfunctions/v2alpha/cloudfunctions-api.json index e3650203c57..726b2d9379b 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-api.json +++ b/cloudfunctions/v2alpha/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20221129", + "revision": "20221207", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -814,7 +814,7 @@ "type": "string" }, "environment": { - "description": "Describe whether the function is gen1 or gen2.", + "description": "Describe whether the function is 1st Gen or 2nd Gen.", "enum": [ "ENVIRONMENT_UNSPECIFIED", "GEN_1", diff --git a/cloudfunctions/v2alpha/cloudfunctions-gen.go b/cloudfunctions/v2alpha/cloudfunctions-gen.go index 2cda1d680bf..32021f460fc 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-gen.go +++ b/cloudfunctions/v2alpha/cloudfunctions-gen.go @@ -658,7 +658,7 @@ type Function struct { // Description: User-provided description of a function. Description string `json:"description,omitempty"` - // Environment: Describe whether the function is gen1 or gen2. + // Environment: Describe whether the function is 1st Gen or 2nd Gen. // // Possible values: // "ENVIRONMENT_UNSPECIFIED" - Unspecified diff --git a/cloudfunctions/v2beta/cloudfunctions-api.json b/cloudfunctions/v2beta/cloudfunctions-api.json index 99f2ac0b9d6..8f6c42311c3 100644 --- a/cloudfunctions/v2beta/cloudfunctions-api.json +++ b/cloudfunctions/v2beta/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20221129", + "revision": "20221207", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -814,7 +814,7 @@ "type": "string" }, "environment": { - "description": "Describe whether the function is gen1 or gen2.", + "description": "Describe whether the function is 1st Gen or 2nd Gen.", "enum": [ "ENVIRONMENT_UNSPECIFIED", "GEN_1", diff --git a/cloudfunctions/v2beta/cloudfunctions-gen.go b/cloudfunctions/v2beta/cloudfunctions-gen.go index df02922c166..8bbb09346b3 100644 --- a/cloudfunctions/v2beta/cloudfunctions-gen.go +++ b/cloudfunctions/v2beta/cloudfunctions-gen.go @@ -658,7 +658,7 @@ type Function struct { // Description: User-provided description of a function. Description string `json:"description,omitempty"` - // Environment: Describe whether the function is gen1 or gen2. + // Environment: Describe whether the function is 1st Gen or 2nd Gen. // // Possible values: // "ENVIRONMENT_UNSPECIFIED" - Unspecified diff --git a/cloudidentity/v1/cloudidentity-api.json b/cloudidentity/v1/cloudidentity-api.json index 8d8a35393ae..037d6c07f46 100644 --- a/cloudidentity/v1/cloudidentity-api.json +++ b/cloudidentity/v1/cloudidentity-api.json @@ -1014,7 +1014,7 @@ "type": "string" }, "parent": { - "description": "Required. The parent resource under which to list all `Group` resources. Must be of the form `identitysources/{identity_source}` for external- identity-mapped groups or `customers/{customer}` for Google Groups. The `customer` must begin with \"C\" (for example, 'C046psxkn').", + "description": "Required. The parent resource under which to list all `Group` resources. Must be of the form `identitysources/{identity_source}` for external- identity-mapped groups or `customers/{customer_id}` for Google Groups. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793)", "location": "query", "type": "string" }, @@ -1126,7 +1126,7 @@ "type": "string" }, "query": { - "description": "Required. The search query. Must be specified in [Common Expression Language](https://opensource.google/projects/cel). May only contain equality operators on the parent and inclusion operators on labels (e.g., `parent == 'customers/{customer}' \u0026\u0026 'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). The `customer` must begin with \"C\" (for example, 'C046psxkn').", + "description": "Required. The search query. Must be specified in [Common Expression Language](https://opensource.google/projects/cel). May only contain equality operators on the parent and inclusion operators on labels (e.g., `parent == 'customers/{customer_id}' \u0026\u0026 'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793)", "location": "query", "type": "string" }, @@ -1546,7 +1546,7 @@ } } }, - "revision": "20220831", + "revision": "20221221", "rootUrl": "https://cloudidentity.googleapis.com/", "schemas": { "CancelUserInvitationRequest": { @@ -2397,7 +2397,7 @@ "id": "GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse", "properties": { "customer": { - "description": "The obfuscated customer Id that may be passed back to other Devices API methods such as List, Get, etc.", + "description": "The customer resource name that may be passed back to other Devices API methods such as List, Get, etc.", "type": "string" }, "names": { @@ -2531,7 +2531,7 @@ "type": "string" }, "parent": { - "description": "Required. Immutable. The resource name of the entity under which this `Group` resides in the Cloud Identity resource hierarchy. Must be of the form `identitysources/{identity_source}` for external- identity-mapped groups or `customers/{customer}` for Google Groups. The `customer` must begin with \"C\" (for example, 'C046psxkn').", + "description": "Required. Immutable. The resource name of the entity under which this `Group` resides in the Cloud Identity resource hierarchy. Must be of the form `identitysources/{identity_source}` for external [identity-mapped groups](https://support.google.com/a/answer/9039510) or `customers/{customer_id}` for Google Groups. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793)", "type": "string" }, "updateTime": { diff --git a/cloudidentity/v1/cloudidentity-gen.go b/cloudidentity/v1/cloudidentity-gen.go index e58ca6bebda..5888094412b 100644 --- a/cloudidentity/v1/cloudidentity-gen.go +++ b/cloudidentity/v1/cloudidentity-gen.go @@ -1442,7 +1442,7 @@ type GoogleAppsCloudidentityDevicesV1ListEndpointAppsMetadata struct { // Response containing resource names of the DeviceUsers associated with // the caller's credentials. type GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse struct { - // Customer: The obfuscated customer Id that may be passed back to other + // Customer: The customer resource name that may be passed back to other // Devices API methods such as List, Get, etc. Customer string `json:"customer,omitempty"` @@ -1686,9 +1686,11 @@ type Group struct { // Parent: Required. Immutable. The resource name of the entity under // which this `Group` resides in the Cloud Identity resource hierarchy. - // Must be of the form `identitysources/{identity_source}` for external- - // identity-mapped groups or `customers/{customer}` for Google Groups. - // The `customer` must begin with "C" (for example, 'C046psxkn'). + // Must be of the form `identitysources/{identity_source}` for external + // identity-mapped groups (https://support.google.com/a/answer/9039510) + // or `customers/{customer_id}` for Google Groups. The `customer_id` + // must begin with "C" (for example, 'C046psxkn'). [Find your customer + // ID.] (https://support.google.com/cloudidentity/answer/10070793) Parent string `json:"parent,omitempty"` // UpdateTime: Output only. The time when the `Group` was last updated. @@ -7315,8 +7317,10 @@ func (c *GroupsListCall) PageToken(pageToken string) *GroupsListCall { // Parent sets the optional parameter "parent": Required. The parent // resource under which to list all `Group` resources. Must be of the // form `identitysources/{identity_source}` for external- -// identity-mapped groups or `customers/{customer}` for Google Groups. -// The `customer` must begin with "C" (for example, 'C046psxkn'). +// identity-mapped groups or `customers/{customer_id}` for Google +// Groups. The `customer_id` must begin with "C" (for example, +// 'C046psxkn'). [Find your customer ID.] +// (https://support.google.com/cloudidentity/answer/10070793) func (c *GroupsListCall) Parent(parent string) *GroupsListCall { c.urlParams_.Set("parent", parent) return c @@ -7449,7 +7453,7 @@ func (c *GroupsListCall) Do(opts ...googleapi.CallOption) (*ListGroupsResponse, // "type": "string" // }, // "parent": { - // "description": "Required. The parent resource under which to list all `Group` resources. Must be of the form `identitysources/{identity_source}` for external- identity-mapped groups or `customers/{customer}` for Google Groups. The `customer` must begin with \"C\" (for example, 'C046psxkn').", + // "description": "Required. The parent resource under which to list all `Group` resources. Must be of the form `identitysources/{identity_source}` for external- identity-mapped groups or `customers/{customer_id}` for Google Groups. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793)", // "location": "query", // "type": "string" // }, @@ -7869,9 +7873,11 @@ func (c *GroupsSearchCall) PageToken(pageToken string) *GroupsSearchCall { // query. Must be specified in Common Expression Language // (https://opensource.google/projects/cel). May only contain equality // operators on the parent and inclusion operators on labels (e.g., -// `parent == 'customers/{customer}' && +// `parent == 'customers/{customer_id}' && // 'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). -// The `customer` must begin with "C" (for example, 'C046psxkn'). +// The `customer_id` must begin with "C" (for example, 'C046psxkn'). +// [Find your customer ID.] +// (https://support.google.com/cloudidentity/answer/10070793) func (c *GroupsSearchCall) Query(query string) *GroupsSearchCall { c.urlParams_.Set("query", query) return c @@ -8004,7 +8010,7 @@ func (c *GroupsSearchCall) Do(opts ...googleapi.CallOption) (*SearchGroupsRespon // "type": "string" // }, // "query": { - // "description": "Required. The search query. Must be specified in [Common Expression Language](https://opensource.google/projects/cel). May only contain equality operators on the parent and inclusion operators on labels (e.g., `parent == 'customers/{customer}' \u0026\u0026 'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). The `customer` must begin with \"C\" (for example, 'C046psxkn').", + // "description": "Required. The search query. Must be specified in [Common Expression Language](https://opensource.google/projects/cel). May only contain equality operators on the parent and inclusion operators on labels (e.g., `parent == 'customers/{customer_id}' \u0026\u0026 'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793)", // "location": "query", // "type": "string" // }, diff --git a/cloudidentity/v1beta1/cloudidentity-api.json b/cloudidentity/v1beta1/cloudidentity-api.json index bf3417eb9e0..fa46bd5b31f 100644 --- a/cloudidentity/v1beta1/cloudidentity-api.json +++ b/cloudidentity/v1beta1/cloudidentity-api.json @@ -322,6 +322,11 @@ "name" ], "parameters": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + "location": "query", + "type": "string" + }, "name": { "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}`, where device_id is the unique ID assigned to the Device.", "location": "path", @@ -347,6 +352,11 @@ "name" ], "parameters": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Customer in format: `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + "location": "query", + "type": "string" + }, "name": { "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}`, where device_id is the unique ID assigned to the Device.", "location": "path", @@ -371,6 +381,11 @@ "id": "cloudidentity.devices.list", "parameterOrder": [], "parameters": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer.", + "location": "query", + "type": "string" + }, "filter": { "description": "Optional. Additional restrictions when fetching list of devices. For a list of search fields, refer to [Mobile device search fields](https://developers.google.com/admin-sdk/directory/v1/search-operators). Multiple search fields are separated by the space character.", "location": "query", @@ -542,6 +557,11 @@ "name" ], "parameters": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + "location": "query", + "type": "string" + }, "name": { "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}/deviceUsers/{device_user_id}`, where device_id is the unique ID assigned to the Device, and device_user_id is the unique ID assigned to the User.", "location": "path", @@ -567,6 +587,11 @@ "name" ], "parameters": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + "location": "query", + "type": "string" + }, "name": { "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}/deviceUsers/{device_user_id}`, where device_id is the unique ID assigned to the Device, and device_user_id is the unique ID assigned to the User.", "location": "path", @@ -593,6 +618,11 @@ "parent" ], "parameters": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + "location": "query", + "type": "string" + }, "filter": { "description": "Optional. Additional restrictions when fetching list of devices. For a list of search fields, refer to [Mobile device search fields](https://developers.google.com/admin-sdk/directory/v1/search-operators). Multiple search fields are separated by the space character.", "location": "query", @@ -932,7 +962,7 @@ "type": "string" }, "parent": { - "description": "Required. The parent resource under which to list all `Group` resources. Must be of the form `identitysources/{identity_source_id}` for external- identity-mapped groups or `customers/{customer_id}` for Google Groups. The `customer_id` must begin with \"C\" (for example, 'C046psxkn').", + "description": "Required. The parent resource under which to list all `Group` resources. Must be of the form `identitysources/{identity_source_id}` for external- identity-mapped groups or `customers/{customer_id}` for Google Groups. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793)", "location": "query", "type": "string" }, @@ -1032,6 +1062,11 @@ "id": "cloudidentity.groups.search", "parameterOrder": [], "parameters": { + "orderBy": { + "description": "The ordering of groups for the display name or email in the search groups response. The syntax for this field can be found at https://cloud.google.com/apis/design/design_patterns#sorting_order. Example: Sort by the ascending name: order_by=\"display_name\" Sort by the descending group key email: order_by=\"group_key desc\"", + "location": "query", + "type": "string" + }, "pageSize": { "description": "The maximum number of results to return. Note that the number of results returned may be less than this value even if there are more available results. To fetch all results, clients must continue calling this method repeatedly until the response no longer contains a `next_page_token`. If unspecified, defaults to 200 for `GroupView.BASIC` and to 50 for `GroupView.FULL`. Must not be greater than 1000 for `GroupView.BASIC` or 500 for `GroupView.FULL`.", "format": "int32", @@ -1044,7 +1079,7 @@ "type": "string" }, "query": { - "description": "Required. The search query. Must be specified in [Common Expression Language](https://opensource.google/projects/cel). May only contain equality operators on the parent and inclusion operators on labels (e.g., `parent == 'customers/{customer_id}' \u0026\u0026 'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). The `customer_id` must begin with \"C\" (for example, 'C046psxkn').", + "description": "Required. The search query. * Must be specified in [Common Expression Language](https://opensource.google/projects/cel). * Must contain equality operators on the parent, e.g. `parent == 'customers/{customer_id}'`. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793) * Can contain optional inclusion operators on `labels` such as `cloudidentity.googleapis.com/groups.discussion_forum' in labels`). * Can contain an optional equality operator on `domain_name` or `startsWith/contains/equality` operator on `group_key`, e.g. `domain_name == 'abc.com'`, `group_key.startsWith('dev')`, `group_key.contains('dev'), group_key == 'dev@abc.com'` * Can contain an optional `startsWith/contains/equality` operator on `display_name`, such as `display_name.startsWith('dev')` , `display_name.contains('dev')`, `display_name == 'dev'`", "location": "query", "type": "string" }, @@ -1932,7 +1967,7 @@ } } }, - "revision": "20221101", + "revision": "20221221", "rootUrl": "https://cloudidentity.googleapis.com/", "schemas": { "AddIdpCredentialOperationMetadata": { @@ -1990,7 +2025,12 @@ "ApproveDeviceUserRequest": { "description": "Request message for approving the device to access user data.", "id": "ApproveDeviceUserRequest", - "properties": {}, + "properties": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + "type": "string" + } + }, "type": "object" }, "ApproveDeviceUserResponse": { @@ -2007,7 +2047,12 @@ "BlockDeviceUserRequest": { "description": "Request message for blocking account on device.", "id": "BlockDeviceUserRequest", - "properties": {}, + "properties": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + "type": "string" + } + }, "type": "object" }, "BlockDeviceUserResponse": { @@ -2030,7 +2075,12 @@ "CancelWipeDeviceRequest": { "description": "Request message for cancelling an unfinished device wipe.", "id": "CancelWipeDeviceRequest", - "properties": {}, + "properties": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + "type": "string" + } + }, "type": "object" }, "CancelWipeDeviceResponse": { @@ -2047,7 +2097,12 @@ "CancelWipeDeviceUserRequest": { "description": "Request message for cancelling an unfinished user account wipe.", "id": "CancelWipeDeviceUserRequest", - "properties": {}, + "properties": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + "type": "string" + } + }, "type": "object" }, "CancelWipeDeviceUserResponse": { @@ -2265,6 +2320,10 @@ "description": "Request message for creating a Company Owned device.", "id": "CreateDeviceRequest", "properties": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + "type": "string" + }, "device": { "$ref": "Device", "description": "Required. The device to be created. The name field within this device is ignored in the create method. A new name is created by the method, and returned within the response. Only the fields `device_type`, `serial_number` and `asset_tag` (if present) are used to create the device. All other fields are ignored. The `device_type` and `serial_number` fields are required." @@ -3488,7 +3547,7 @@ "type": "string" }, "parent": { - "description": "Required. Immutable. The resource name of the entity under which this `Group` resides in the Cloud Identity resource hierarchy. Must be of the form `identitysources/{identity_source_id}` for external- identity-mapped groups or `customers/{customer_id}` for Google Groups. The `customer_id` must begin with \"C\" (for example, 'C046psxkn').", + "description": "Required. Immutable. The resource name of the entity under which this `Group` resides in the Cloud Identity resource hierarchy. Must be of the form `identitysources/{identity_source}` for external [identity-mapped groups](https://support.google.com/a/answer/9039510) or `customers/{customer_id}` for Google Groups. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793)", "type": "string" }, "posixGroups": { @@ -3884,7 +3943,7 @@ "id": "LookupSelfDeviceUsersResponse", "properties": { "customer": { - "description": "The obfuscated customer Id that may be passed back to other Devices API methods such as List, Get, etc.", + "description": "The customer Id that may be passed back to other Devices API methods such as List, Get, etc.", "type": "string" }, "names": { @@ -4524,6 +4583,10 @@ "description": "Request message for wiping all data on the device.", "id": "WipeDeviceRequest", "properties": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + "type": "string" + }, "removeResetLock": { "description": "Optional. Specifies if a user is able to factory reset a device after a Device Wipe. On iOS, this is called \"Activation Lock\", while on Android, this is known as \"Factory Reset Protection\". If true, this protection will be removed from the device, so that a user can successfully factory reset. If false, the setting is untouched on the device.", "type": "boolean" @@ -4545,7 +4608,12 @@ "WipeDeviceUserRequest": { "description": "Request message for starting an account wipe on device.", "id": "WipeDeviceUserRequest", - "properties": {}, + "properties": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + "type": "string" + } + }, "type": "object" }, "WipeDeviceUserResponse": { diff --git a/cloudidentity/v1beta1/cloudidentity-gen.go b/cloudidentity/v1beta1/cloudidentity-gen.go index 50698e6768d..678c3b5b74d 100644 --- a/cloudidentity/v1beta1/cloudidentity-gen.go +++ b/cloudidentity/v1beta1/cloudidentity-gen.go @@ -398,6 +398,35 @@ func (s *AndroidAttributes) MarshalJSON() ([]byte, error) { // ApproveDeviceUserRequest: Request message for approving the device to // access user data. type ApproveDeviceUserRequest struct { + // Customer: Optional. Resource name + // (https://cloud.google.com/apis/design/resource_names) of the + // customer. If you're using this API for your own organization, use + // `customers/my_customer` If you're using this API to manage another + // organization, use `customers/{customer_id}`, where customer_id is the + // customer to whom the device belongs. + Customer string `json:"customer,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Customer") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Customer") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ApproveDeviceUserRequest) MarshalJSON() ([]byte, error) { + type NoMethod ApproveDeviceUserRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // ApproveDeviceUserResponse: Response message for approving the device @@ -432,6 +461,35 @@ func (s *ApproveDeviceUserResponse) MarshalJSON() ([]byte, error) { // BlockDeviceUserRequest: Request message for blocking account on // device. type BlockDeviceUserRequest struct { + // Customer: Optional. Resource name + // (https://cloud.google.com/apis/design/resource_names) of the + // customer. If you're using this API for your own organization, use + // `customers/my_customer` If you're using this API to manage another + // organization, use `customers/{customer_id}`, where customer_id is the + // customer to whom the device belongs. + Customer string `json:"customer,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Customer") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Customer") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *BlockDeviceUserRequest) MarshalJSON() ([]byte, error) { + type NoMethod BlockDeviceUserRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // BlockDeviceUserResponse: Response message for blocking the device @@ -471,6 +529,35 @@ type CancelUserInvitationRequest struct { // CancelWipeDeviceRequest: Request message for cancelling an unfinished // device wipe. type CancelWipeDeviceRequest struct { + // Customer: Optional. Resource name + // (https://cloud.google.com/apis/design/resource_names) of the + // customer. If you're using this API for your own organization, use + // `customers/my_customer` If you're using this API to manage another + // organization, use `customers/{customer_id}`, where customer_id is the + // customer to whom the device belongs. + Customer string `json:"customer,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Customer") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Customer") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CancelWipeDeviceRequest) MarshalJSON() ([]byte, error) { + type NoMethod CancelWipeDeviceRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // CancelWipeDeviceResponse: Response message for cancelling an @@ -506,6 +593,35 @@ func (s *CancelWipeDeviceResponse) MarshalJSON() ([]byte, error) { // CancelWipeDeviceUserRequest: Request message for cancelling an // unfinished user account wipe. type CancelWipeDeviceUserRequest struct { + // Customer: Optional. Resource name + // (https://cloud.google.com/apis/design/resource_names) of the + // customer. If you're using this API for your own organization, use + // `customers/my_customer` If you're using this API to manage another + // organization, use `customers/{customer_id}`, where customer_id is the + // customer to whom the device belongs. + Customer string `json:"customer,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Customer") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Customer") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CancelWipeDeviceUserRequest) MarshalJSON() ([]byte, error) { + type NoMethod CancelWipeDeviceUserRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // CancelWipeDeviceUserResponse: Response message for cancelling an @@ -778,6 +894,14 @@ func (s *ClientState) MarshalJSON() ([]byte, error) { // CreateDeviceRequest: Request message for creating a Company Owned // device. type CreateDeviceRequest struct { + // Customer: Optional. Resource name + // (https://cloud.google.com/apis/design/resource_names) of the + // customer. If you're using this API for your own organization, use + // `customers/my_customer` If you're using this API to manage another + // organization, use `customers/{customer_id}`, where customer_id is the + // customer to whom the device belongs. + Customer string `json:"customer,omitempty"` + // Device: Required. The device to be created. The name field within // this device is ignored in the create method. A new name is created by // the method, and returned within the response. Only the fields @@ -786,7 +910,7 @@ type CreateDeviceRequest struct { // and `serial_number` fields are required. Device *Device `json:"device,omitempty"` - // ForceSendFields is a list of field names (e.g. "Device") to + // ForceSendFields is a list of field names (e.g. "Customer") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -794,8 +918,8 @@ type CreateDeviceRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Device") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Customer") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -2229,10 +2353,11 @@ type Group struct { // Parent: Required. Immutable. The resource name of the entity under // which this `Group` resides in the Cloud Identity resource hierarchy. - // Must be of the form `identitysources/{identity_source_id}` for - // external- identity-mapped groups or `customers/{customer_id}` for - // Google Groups. The `customer_id` must begin with "C" (for example, - // 'C046psxkn'). + // Must be of the form `identitysources/{identity_source}` for external + // identity-mapped groups (https://support.google.com/a/answer/9039510) + // or `customers/{customer_id}` for Google Groups. The `customer_id` + // must begin with "C" (for example, 'C046psxkn'). [Find your customer + // ID.] (https://support.google.com/cloudidentity/answer/10070793) Parent string `json:"parent,omitempty"` // PosixGroups: Optional. The POSIX groups associated with the `Group`. @@ -2978,8 +3103,8 @@ func (s *LookupMembershipNameResponse) MarshalJSON() ([]byte, error) { // LookupSelfDeviceUsersResponse: Response containing resource names of // the DeviceUsers associated with the caller's credentials. type LookupSelfDeviceUsersResponse struct { - // Customer: The obfuscated customer Id that may be passed back to other - // Devices API methods such as List, Get, etc. + // Customer: The customer Id that may be passed back to other Devices + // API methods such as List, Get, etc. Customer string `json:"customer,omitempty"` // Names: Resource names @@ -4170,6 +4295,14 @@ func (s *UserInvitation) MarshalJSON() ([]byte, error) { // WipeDeviceRequest: Request message for wiping all data on the device. type WipeDeviceRequest struct { + // Customer: Optional. Resource name + // (https://cloud.google.com/apis/design/resource_names) of the + // customer. If you're using this API for your own organization, use + // `customers/my_customer` If you're using this API to manage another + // organization, use `customers/{customer_id}`, where customer_id is the + // customer to whom the device belongs. + Customer string `json:"customer,omitempty"` + // RemoveResetLock: Optional. Specifies if a user is able to factory // reset a device after a Device Wipe. On iOS, this is called // "Activation Lock", while on Android, this is known as "Factory Reset @@ -4178,7 +4311,7 @@ type WipeDeviceRequest struct { // setting is untouched on the device. RemoveResetLock bool `json:"removeResetLock,omitempty"` - // ForceSendFields is a list of field names (e.g. "RemoveResetLock") to + // ForceSendFields is a list of field names (e.g. "Customer") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4186,13 +4319,12 @@ type WipeDeviceRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RemoveResetLock") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Customer") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -4235,6 +4367,35 @@ func (s *WipeDeviceResponse) MarshalJSON() ([]byte, error) { // WipeDeviceUserRequest: Request message for starting an account wipe // on device. type WipeDeviceUserRequest struct { + // Customer: Optional. Resource name + // (https://cloud.google.com/apis/design/resource_names) of the + // customer. If you're using this API for your own organization, use + // `customers/my_customer` If you're using this API to manage another + // organization, use `customers/{customer_id}`, where customer_id is the + // customer to whom the device belongs. + Customer string `json:"customer,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Customer") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Customer") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *WipeDeviceUserRequest) MarshalJSON() ([]byte, error) { + type NoMethod WipeDeviceUserRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // WipeDeviceUserResponse: Response message for wiping the user's @@ -5375,6 +5536,17 @@ func (r *DevicesService) Delete(name string) *DevicesDeleteCall { return c } +// Customer sets the optional parameter "customer": Resource name +// (https://cloud.google.com/apis/design/resource_names) of the +// customer. If you're using this API for your own organization, use +// `customers/my_customer` If you're using this API to manage another +// organization, use `customers/{customer_id}`, where customer_id is the +// customer to whom the device belongs. +func (c *DevicesDeleteCall) Customer(customer string) *DevicesDeleteCall { + c.urlParams_.Set("customer", customer) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -5469,6 +5641,11 @@ func (c *DevicesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) // "name" // ], // "parameters": { + // "customer": { + // "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + // "location": "query", + // "type": "string" + // }, // "name": { // "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}`, where device_id is the unique ID assigned to the Device.", // "location": "path", @@ -5511,6 +5688,15 @@ func (r *DevicesService) Get(name string) *DevicesGetCall { return c } +// Customer sets the optional parameter "customer": Resource name +// (https://cloud.google.com/apis/design/resource_names) of the Customer +// in format: `customers/{customer_id}`, where customer_id is the +// customer to whom the device belongs. +func (c *DevicesGetCall) Customer(customer string) *DevicesGetCall { + c.urlParams_.Set("customer", customer) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -5618,6 +5804,11 @@ func (c *DevicesGetCall) Do(opts ...googleapi.CallOption) (*Device, error) { // "name" // ], // "parameters": { + // "customer": { + // "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Customer in format: `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + // "location": "query", + // "type": "string" + // }, // "name": { // "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}`, where device_id is the unique ID assigned to the Device.", // "location": "path", @@ -5654,6 +5845,14 @@ func (r *DevicesService) List() *DevicesListCall { return c } +// Customer sets the optional parameter "customer": Resource name +// (https://cloud.google.com/apis/design/resource_names) of the +// customer. +func (c *DevicesListCall) Customer(customer string) *DevicesListCall { + c.urlParams_.Set("customer", customer) + return c +} + // Filter sets the optional parameter "filter": Additional restrictions // when fetching list of devices. For a list of search fields, refer to // Mobile device search fields @@ -5816,6 +6015,11 @@ func (c *DevicesListCall) Do(opts ...googleapi.CallOption) (*ListDevicesResponse // "id": "cloudidentity.devices.list", // "parameterOrder": [], // "parameters": { + // "customer": { + // "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer.", + // "location": "query", + // "type": "string" + // }, // "filter": { // "description": "Optional. Additional restrictions when fetching list of devices. For a list of search fields, refer to [Mobile device search fields](https://developers.google.com/admin-sdk/directory/v1/search-operators). Multiple search fields are separated by the space character.", // "location": "query", @@ -6496,6 +6700,17 @@ func (r *DevicesDeviceUsersService) Delete(name string) *DevicesDeviceUsersDelet return c } +// Customer sets the optional parameter "customer": Resource name +// (https://cloud.google.com/apis/design/resource_names) of the +// customer. If you're using this API for your own organization, use +// `customers/my_customer` If you're using this API to manage another +// organization, use `customers/{customer_id}`, where customer_id is the +// customer to whom the device belongs. +func (c *DevicesDeviceUsersDeleteCall) Customer(customer string) *DevicesDeviceUsersDeleteCall { + c.urlParams_.Set("customer", customer) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -6590,6 +6805,11 @@ func (c *DevicesDeviceUsersDeleteCall) Do(opts ...googleapi.CallOption) (*Operat // "name" // ], // "parameters": { + // "customer": { + // "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + // "location": "query", + // "type": "string" + // }, // "name": { // "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}/deviceUsers/{device_user_id}`, where device_id is the unique ID assigned to the Device, and device_user_id is the unique ID assigned to the User.", // "location": "path", @@ -6633,6 +6853,17 @@ func (r *DevicesDeviceUsersService) Get(name string) *DevicesDeviceUsersGetCall return c } +// Customer sets the optional parameter "customer": Resource name +// (https://cloud.google.com/apis/design/resource_names) of the +// customer. If you're using this API for your own organization, use +// `customers/my_customer` If you're using this API to manage another +// organization, use `customers/{customer_id}`, where customer_id is the +// customer to whom the device belongs. +func (c *DevicesDeviceUsersGetCall) Customer(customer string) *DevicesDeviceUsersGetCall { + c.urlParams_.Set("customer", customer) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -6740,6 +6971,11 @@ func (c *DevicesDeviceUsersGetCall) Do(opts ...googleapi.CallOption) (*DeviceUse // "name" // ], // "parameters": { + // "customer": { + // "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + // "location": "query", + // "type": "string" + // }, // "name": { // "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}/deviceUsers/{device_user_id}`, where device_id is the unique ID assigned to the Device, and device_user_id is the unique ID assigned to the User.", // "location": "path", @@ -6782,6 +7018,17 @@ func (r *DevicesDeviceUsersService) List(parent string) *DevicesDeviceUsersListC return c } +// Customer sets the optional parameter "customer": Resource name +// (https://cloud.google.com/apis/design/resource_names) of the +// customer. If you're using this API for your own organization, use +// `customers/my_customer` If you're using this API to manage another +// organization, use `customers/{customer_id}`, where customer_id is the +// customer to whom the device belongs. +func (c *DevicesDeviceUsersListCall) Customer(customer string) *DevicesDeviceUsersListCall { + c.urlParams_.Set("customer", customer) + return c +} + // Filter sets the optional parameter "filter": Additional restrictions // when fetching list of devices. For a list of search fields, refer to // Mobile device search fields @@ -6925,6 +7172,11 @@ func (c *DevicesDeviceUsersListCall) Do(opts ...googleapi.CallOption) (*ListDevi // "parent" // ], // "parameters": { + // "customer": { + // "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + // "location": "query", + // "type": "string" + // }, // "filter": { // "description": "Optional. Additional restrictions when fetching list of devices. For a list of search fields, refer to [Mobile device search fields](https://developers.google.com/admin-sdk/directory/v1/search-operators). Multiple search fields are separated by the space character.", // "location": "query", @@ -8396,7 +8648,8 @@ func (c *GroupsListCall) PageToken(pageToken string) *GroupsListCall { // form `identitysources/{identity_source_id}` for external- // identity-mapped groups or `customers/{customer_id}` for Google // Groups. The `customer_id` must begin with "C" (for example, -// 'C046psxkn'). +// 'C046psxkn'). [Find your customer ID.] +// (https://support.google.com/cloudidentity/answer/10070793) func (c *GroupsListCall) Parent(parent string) *GroupsListCall { c.urlParams_.Set("parent", parent) return c @@ -8529,7 +8782,7 @@ func (c *GroupsListCall) Do(opts ...googleapi.CallOption) (*ListGroupsResponse, // "type": "string" // }, // "parent": { - // "description": "Required. The parent resource under which to list all `Group` resources. Must be of the form `identitysources/{identity_source_id}` for external- identity-mapped groups or `customers/{customer_id}` for Google Groups. The `customer_id` must begin with \"C\" (for example, 'C046psxkn').", + // "description": "Required. The parent resource under which to list all `Group` resources. Must be of the form `identitysources/{identity_source_id}` for external- identity-mapped groups or `customers/{customer_id}` for Google Groups. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793)", // "location": "query", // "type": "string" // }, @@ -8925,6 +9178,17 @@ func (r *GroupsService) Search() *GroupsSearchCall { return c } +// OrderBy sets the optional parameter "orderBy": The ordering of groups +// for the display name or email in the search groups response. The +// syntax for this field can be found at +// https://cloud.google.com/apis/design/design_patterns#sorting_order. +// Example: Sort by the ascending name: order_by="display_name" Sort by +// the descending group key email: order_by="group_key desc" +func (c *GroupsSearchCall) OrderBy(orderBy string) *GroupsSearchCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + // PageSize sets the optional parameter "pageSize": The maximum number // of results to return. Note that the number of results returned may be // less than this value even if there are more available results. To @@ -8947,12 +9211,21 @@ func (c *GroupsSearchCall) PageToken(pageToken string) *GroupsSearchCall { } // Query sets the optional parameter "query": Required. The search -// query. Must be specified in Common Expression Language -// (https://opensource.google/projects/cel). May only contain equality -// operators on the parent and inclusion operators on labels (e.g., -// `parent == 'customers/{customer_id}' && -// 'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). +// query. * Must be specified in Common Expression Language +// (https://opensource.google/projects/cel). * Must contain equality +// operators on the parent, e.g. `parent == 'customers/{customer_id}'`. // The `customer_id` must begin with "C" (for example, 'C046psxkn'). +// [Find your customer ID.] +// (https://support.google.com/cloudidentity/answer/10070793) * Can +// contain optional inclusion operators on `labels` such as +// `cloudidentity.googleapis.com/groups.discussion_forum' in labels`). * +// Can contain an optional equality operator on `domain_name` or +// `startsWith/contains/equality` operator on `group_key`, e.g. +// `domain_name == 'abc.com'`, `group_key.startsWith('dev')`, +// `group_key.contains('dev'), group_key == 'dev@abc.com'` * Can contain +// an optional `startsWith/contains/equality` operator on +// `display_name`, such as `display_name.startsWith('dev')` , +// `display_name.contains('dev')`, `display_name == 'dev'` func (c *GroupsSearchCall) Query(query string) *GroupsSearchCall { c.urlParams_.Set("query", query) return c @@ -9072,6 +9345,11 @@ func (c *GroupsSearchCall) Do(opts ...googleapi.CallOption) (*SearchGroupsRespon // "id": "cloudidentity.groups.search", // "parameterOrder": [], // "parameters": { + // "orderBy": { + // "description": "The ordering of groups for the display name or email in the search groups response. The syntax for this field can be found at https://cloud.google.com/apis/design/design_patterns#sorting_order. Example: Sort by the ascending name: order_by=\"display_name\" Sort by the descending group key email: order_by=\"group_key desc\"", + // "location": "query", + // "type": "string" + // }, // "pageSize": { // "description": "The maximum number of results to return. Note that the number of results returned may be less than this value even if there are more available results. To fetch all results, clients must continue calling this method repeatedly until the response no longer contains a `next_page_token`. If unspecified, defaults to 200 for `GroupView.BASIC` and to 50 for `GroupView.FULL`. Must not be greater than 1000 for `GroupView.BASIC` or 500 for `GroupView.FULL`.", // "format": "int32", @@ -9084,7 +9362,7 @@ func (c *GroupsSearchCall) Do(opts ...googleapi.CallOption) (*SearchGroupsRespon // "type": "string" // }, // "query": { - // "description": "Required. The search query. Must be specified in [Common Expression Language](https://opensource.google/projects/cel). May only contain equality operators on the parent and inclusion operators on labels (e.g., `parent == 'customers/{customer_id}' \u0026\u0026 'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). The `customer_id` must begin with \"C\" (for example, 'C046psxkn').", + // "description": "Required. The search query. * Must be specified in [Common Expression Language](https://opensource.google/projects/cel). * Must contain equality operators on the parent, e.g. `parent == 'customers/{customer_id}'`. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793) * Can contain optional inclusion operators on `labels` such as `cloudidentity.googleapis.com/groups.discussion_forum' in labels`). * Can contain an optional equality operator on `domain_name` or `startsWith/contains/equality` operator on `group_key`, e.g. `domain_name == 'abc.com'`, `group_key.startsWith('dev')`, `group_key.contains('dev'), group_key == 'dev@abc.com'` * Can contain an optional `startsWith/contains/equality` operator on `display_name`, such as `display_name.startsWith('dev')` , `display_name.contains('dev')`, `display_name == 'dev'`", // "location": "query", // "type": "string" // }, diff --git a/cloudsupport/v2beta/cloudsupport-api.json b/cloudsupport/v2beta/cloudsupport-api.json index d954adf81b6..4129c9f9f88 100644 --- a/cloudsupport/v2beta/cloudsupport-api.json +++ b/cloudsupport/v2beta/cloudsupport-api.json @@ -326,7 +326,7 @@ ] }, "patch": { - "description": "Update the specified case. Only a subset of fields (display_name, description, time_zone, subscriber_email_addresses, related_resources, severity, priority, primary_contact, and labels) can be updated.", + "description": "Update the specified case. Only a subset of fields can be updated.", "flatPath": "v2beta/{v2betaId}/{v2betaId1}/cases/{casesId}", "httpMethod": "PATCH", "id": "cloudsupport.cases.patch", @@ -575,7 +575,7 @@ } } }, - "revision": "20221129", + "revision": "20221213", "rootUrl": "https://cloudsupport.googleapis.com/", "schemas": { "Actor": { diff --git a/cloudsupport/v2beta/cloudsupport-gen.go b/cloudsupport/v2beta/cloudsupport-gen.go index 4dcd13177a1..f3e5c5c45fc 100644 --- a/cloudsupport/v2beta/cloudsupport-gen.go +++ b/cloudsupport/v2beta/cloudsupport-gen.go @@ -2574,10 +2574,8 @@ type CasesPatchCall struct { header_ http.Header } -// Patch: Update the specified case. Only a subset of fields -// (display_name, description, time_zone, subscriber_email_addresses, -// related_resources, severity, priority, primary_contact, and labels) -// can be updated. +// Patch: Update the specified case. Only a subset of fields can be +// updated. // // - name: The resource name for the case. func (r *CasesService) Patch(name string, case_ *Case) *CasesPatchCall { @@ -2692,7 +2690,7 @@ func (c *CasesPatchCall) Do(opts ...googleapi.CallOption) (*Case, error) { } return ret, nil // { - // "description": "Update the specified case. Only a subset of fields (display_name, description, time_zone, subscriber_email_addresses, related_resources, severity, priority, primary_contact, and labels) can be updated.", + // "description": "Update the specified case. Only a subset of fields can be updated.", // "flatPath": "v2beta/{v2betaId}/{v2betaId1}/cases/{casesId}", // "httpMethod": "PATCH", // "id": "cloudsupport.cases.patch", diff --git a/compute/v0.alpha/compute-api.json b/compute/v0.alpha/compute-api.json index b1267e80e94..08d61d9af29 100644 --- a/compute/v0.alpha/compute-api.json +++ b/compute/v0.alpha/compute-api.json @@ -40203,7 +40203,7 @@ } } }, - "revision": "20221126", + "revision": "20221206", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -41272,6 +41272,22 @@ "format": "int32", "type": "integer" }, + "performanceMonitoringUnit": { + "description": "Type of Performance Monitoring Unit requested on instance.", + "enum": [ + "ARCHITECTURAL", + "ENHANCED", + "PERFORMANCE_MONITORING_UNIT_UNSPECIFIED", + "STANDARD" + ], + "enumDescriptions": [ + "Architecturally defined non-LLC events.", + "Most documented core/L2 and LLC events.", + "", + "Most documented core/L2 events." + ], + "type": "string" + }, "threadsPerCore": { "description": "The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.", "format": "int32", @@ -48166,7 +48182,7 @@ "type": "string" }, "target": { - "description": "The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. For more information, see the \"Target\" column in [Port specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). For Private Service Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported Google API bundle: - vpc-sc - APIs that support VPC Service Controls. - all-apis - All supported Google APIs. ", + "description": "The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. - For load balancers, see the \"Target\" column in [Port specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). - For Private Service Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported Google API bundle: - vpc-sc - APIs that support VPC Service Controls. - all-apis - All supported Google APIs. - For Private Service Connect forwarding rules that forward traffic to managed services, the target must be a service attachment. ", "type": "string" } }, @@ -56240,7 +56256,7 @@ "type": "string" }, "nocContactEmail": { - "description": "Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. If specified, this will be used for notifications in addition to all other forms described, such as Stackdriver logs alerting and Cloud Notifications.", + "description": "Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. If specified, this will be used for notifications in addition to all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This field is required for users who sign up for Cloud Interconnect using workforce identity federation.", "type": "string" }, "operationalStatus": { @@ -64395,14 +64411,6 @@ "description": "[Output Only] Type of the resource. Always `compute#operation` for Operation resources.", "type": "string" }, - "metadata": { - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL.", - "type": "any" - }, - "description": "[Output Only] Service-specific metadata attached to this operation.", - "type": "object" - }, "name": { "description": "[Output Only] Name of the operation.", "type": "string" diff --git a/compute/v0.alpha/compute-gen.go b/compute/v0.alpha/compute-gen.go index be1d8e80139..0c5b3e282d9 100644 --- a/compute/v0.alpha/compute-gen.go +++ b/compute/v0.alpha/compute-gen.go @@ -2938,6 +2938,16 @@ type AdvancedMachineFeatures struct { // NumaNodeCount: The number of vNUMA nodes. NumaNodeCount int64 `json:"numaNodeCount,omitempty"` + // PerformanceMonitoringUnit: Type of Performance Monitoring Unit + // requested on instance. + // + // Possible values: + // "ARCHITECTURAL" - Architecturally defined non-LLC events. + // "ENHANCED" - Most documented core/L2 and LLC events. + // "PERFORMANCE_MONITORING_UNIT_UNSPECIFIED" + // "STANDARD" - Most documented core/L2 events. + PerformanceMonitoringUnit string `json:"performanceMonitoringUnit,omitempty"` + // ThreadsPerCore: The number of threads per physical core. To disable // simultaneous multithreading (SMT) set this to 1. If unset, the // maximum number of threads supported per core by the underlying @@ -14056,13 +14066,15 @@ type ForwardingRule struct { // traffic. For regional forwarding rules, this target must be in the // same region as the forwarding rule. For global forwarding rules, this // target must be a global load balancing resource. The forwarded - // traffic must be of a type appropriate to the target object. For more - // information, see the "Target" column in Port specifications + // traffic must be of a type appropriate to the target object. - For + // load balancers, see the "Target" column in Port specifications // (https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). - // For Private Service Connect forwarding rules that forward traffic to - // Google APIs, provide the name of a supported Google API bundle: - + // - For Private Service Connect forwarding rules that forward traffic + // to Google APIs, provide the name of a supported Google API bundle: - // vpc-sc - APIs that support VPC Service Controls. - all-apis - All - // supported Google APIs. + // supported Google APIs. - For Private Service Connect forwarding rules + // that forward traffic to managed services, the target must be a + // service attachment. Target string `json:"target,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -27119,8 +27131,9 @@ type Interconnect struct { // NocContactEmail: Email address to contact the customer NOC for // operations and maintenance notifications regarding this Interconnect. // If specified, this will be used for notifications in addition to all - // other forms described, such as Stackdriver logs alerting and Cloud - // Notifications. + // other forms described, such as Cloud Monitoring logs alerting and + // Cloud Notifications. This field is required for users who sign up for + // Cloud Interconnect using workforce identity federation. NocContactEmail string `json:"nocContactEmail,omitempty"` // OperationalStatus: [Output Only] The current status of this @@ -39719,10 +39732,6 @@ type Operation struct { // for Operation resources. Kind string `json:"kind,omitempty"` - // Metadata: [Output Only] Service-specific metadata attached to this - // operation. - Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: [Output Only] Name of the operation. Name string `json:"name,omitempty"` diff --git a/compute/v0.beta/compute-api.json b/compute/v0.beta/compute-api.json index 1edaf6be98b..d99463ea862 100644 --- a/compute/v0.beta/compute-api.json +++ b/compute/v0.beta/compute-api.json @@ -16676,6 +16676,56 @@ "https://www.googleapis.com/auth/compute" ] }, + "simulateMaintenanceEvent": { + "description": "Simulates maintenance event on specified nodes from the node group.", + "flatPath": "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent", + "httpMethod": "POST", + "id": "compute.nodeGroups.simulateMaintenanceEvent", + "parameterOrder": [ + "project", + "zone", + "nodeGroup" + ], + "parameters": { + "nodeGroup": { + "description": "Name of the NodeGroup resource whose nodes will go under maintenance simulation.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "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. 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" + }, + "zone": { + "description": "The name of the zone for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent", + "request": { + "$ref": "NodeGroupsSimulateMaintenanceEventRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "testIamPermissions": { "description": "Returns permissions that a caller has on the specified resource.", "flatPath": "projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions", @@ -35916,7 +35966,7 @@ } } }, - "revision": "20221126", + "revision": "20221206", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -43269,7 +43319,7 @@ "type": "string" }, "target": { - "description": "The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. For more information, see the \"Target\" column in [Port specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). For Private Service Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported Google API bundle: - vpc-sc - APIs that support VPC Service Controls. - all-apis - All supported Google APIs. ", + "description": "The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. - For load balancers, see the \"Target\" column in [Port specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). - For Private Service Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported Google API bundle: - vpc-sc - APIs that support VPC Service Controls. - all-apis - All supported Google APIs. - For Private Service Connect forwarding rules that forward traffic to managed services, the target must be a service attachment. ", "type": "string" } }, @@ -49444,7 +49494,7 @@ "type": "string" }, "nocContactEmail": { - "description": "Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. If specified, this will be used for notifications in addition to all other forms described, such as Stackdriver logs alerting and Cloud Notifications.", + "description": "Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. If specified, this will be used for notifications in addition to all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This field is required for users who sign up for Cloud Interconnect using workforce identity federation.", "type": "string" }, "operationalStatus": { @@ -55154,6 +55204,19 @@ }, "type": "object" }, + "NodeGroupsSimulateMaintenanceEventRequest": { + "id": "NodeGroupsSimulateMaintenanceEventRequest", + "properties": { + "nodes": { + "description": "Names of the nodes to go under maintenance simulation.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "NodeTemplate": { "description": "Represent a sole-tenant Node Template resource. You can use a template to define properties for nodes in a node group. For more information, read Creating node groups and instances.", "id": "NodeTemplate", diff --git a/compute/v0.beta/compute-gen.go b/compute/v0.beta/compute-gen.go index 1f914e0fa5b..366eebe8364 100644 --- a/compute/v0.beta/compute-gen.go +++ b/compute/v0.beta/compute-gen.go @@ -12975,13 +12975,15 @@ type ForwardingRule struct { // traffic. For regional forwarding rules, this target must be in the // same region as the forwarding rule. For global forwarding rules, this // target must be a global load balancing resource. The forwarded - // traffic must be of a type appropriate to the target object. For more - // information, see the "Target" column in Port specifications + // traffic must be of a type appropriate to the target object. - For + // load balancers, see the "Target" column in Port specifications // (https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). - // For Private Service Connect forwarding rules that forward traffic to - // Google APIs, provide the name of a supported Google API bundle: - + // - For Private Service Connect forwarding rules that forward traffic + // to Google APIs, provide the name of a supported Google API bundle: - // vpc-sc - APIs that support VPC Service Controls. - all-apis - All - // supported Google APIs. + // supported Google APIs. - For Private Service Connect forwarding rules + // that forward traffic to managed services, the target must be a + // service attachment. Target string `json:"target,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -23048,8 +23050,9 @@ type Interconnect struct { // NocContactEmail: Email address to contact the customer NOC for // operations and maintenance notifications regarding this Interconnect. // If specified, this will be used for notifications in addition to all - // other forms described, such as Stackdriver logs alerting and Cloud - // Notifications. + // other forms described, such as Cloud Monitoring logs alerting and + // Cloud Notifications. This field is required for users who sign up for + // Cloud Interconnect using workforce identity federation. NocContactEmail string `json:"nocContactEmail,omitempty"` // OperationalStatus: [Output Only] The current status of this @@ -31940,6 +31943,33 @@ func (s *NodeGroupsSetNodeTemplateRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type NodeGroupsSimulateMaintenanceEventRequest struct { + // Nodes: Names of the nodes to go under maintenance simulation. + Nodes []string `json:"nodes,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Nodes") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Nodes") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *NodeGroupsSimulateMaintenanceEventRequest) MarshalJSON() ([]byte, error) { + type NoMethod NodeGroupsSimulateMaintenanceEventRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // NodeTemplate: Represent a sole-tenant Node Template resource. You can // use a template to define properties for nodes in a node group. For // more information, read Creating node groups and instances. @@ -130719,6 +130749,196 @@ func (c *NodeGroupsSetNodeTemplateCall) Do(opts ...googleapi.CallOption) (*Opera } +// method id "compute.nodeGroups.simulateMaintenanceEvent": + +type NodeGroupsSimulateMaintenanceEventCall struct { + s *Service + project string + zone string + nodeGroup string + nodegroupssimulatemaintenanceeventrequest *NodeGroupsSimulateMaintenanceEventRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SimulateMaintenanceEvent: Simulates maintenance event on specified +// nodes from the node group. +// +// - nodeGroup: Name of the NodeGroup resource whose nodes will go under +// maintenance simulation. +// - project: Project ID for this request. +// - zone: The name of the zone for this request. +func (r *NodeGroupsService) SimulateMaintenanceEvent(project string, zone string, nodeGroup string, nodegroupssimulatemaintenanceeventrequest *NodeGroupsSimulateMaintenanceEventRequest) *NodeGroupsSimulateMaintenanceEventCall { + c := &NodeGroupsSimulateMaintenanceEventCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + c.nodeGroup = nodeGroup + c.nodegroupssimulatemaintenanceeventrequest = nodegroupssimulatemaintenanceeventrequest + 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. 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 *NodeGroupsSimulateMaintenanceEventCall) RequestId(requestId string) *NodeGroupsSimulateMaintenanceEventCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *NodeGroupsSimulateMaintenanceEventCall) Fields(s ...googleapi.Field) *NodeGroupsSimulateMaintenanceEventCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *NodeGroupsSimulateMaintenanceEventCall) Context(ctx context.Context) *NodeGroupsSimulateMaintenanceEventCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *NodeGroupsSimulateMaintenanceEventCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *NodeGroupsSimulateMaintenanceEventCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.nodegroupssimulatemaintenanceeventrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent") + 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{ + "project": c.project, + "zone": c.zone, + "nodeGroup": c.nodeGroup, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.nodeGroups.simulateMaintenanceEvent" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *NodeGroupsSimulateMaintenanceEventCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Simulates maintenance event on specified nodes from the node group.", + // "flatPath": "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent", + // "httpMethod": "POST", + // "id": "compute.nodeGroups.simulateMaintenanceEvent", + // "parameterOrder": [ + // "project", + // "zone", + // "nodeGroup" + // ], + // "parameters": { + // "nodeGroup": { + // "description": "Name of the NodeGroup resource whose nodes will go under maintenance simulation.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // }, + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "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. 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" + // }, + // "zone": { + // "description": "The name of the zone for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent", + // "request": { + // "$ref": "NodeGroupsSimulateMaintenanceEventRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "compute.nodeGroups.testIamPermissions": type NodeGroupsTestIamPermissionsCall struct { diff --git a/compute/v1/compute-api.json b/compute/v1/compute-api.json index 9a475a243af..36ec411f294 100644 --- a/compute/v1/compute-api.json +++ b/compute/v1/compute-api.json @@ -32692,7 +32692,7 @@ } } }, - "revision": "20221126", + "revision": "20221206", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -39806,7 +39806,7 @@ "type": "string" }, "target": { - "description": "The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. For more information, see the \"Target\" column in [Port specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). For Private Service Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported Google API bundle: - vpc-sc - APIs that support VPC Service Controls. - all-apis - All supported Google APIs. ", + "description": "The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. - For load balancers, see the \"Target\" column in [Port specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). - For Private Service Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported Google API bundle: - vpc-sc - APIs that support VPC Service Controls. - all-apis - All supported Google APIs. - For Private Service Connect forwarding rules that forward traffic to managed services, the target must be a service attachment. ", "type": "string" } }, @@ -45669,7 +45669,7 @@ "type": "string" }, "nocContactEmail": { - "description": "Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. If specified, this will be used for notifications in addition to all other forms described, such as Stackdriver logs alerting and Cloud Notifications.", + "description": "Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. If specified, this will be used for notifications in addition to all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This field is required for users who sign up for Cloud Interconnect using workforce identity federation.", "type": "string" }, "operationalStatus": { @@ -56409,13 +56409,6 @@ "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", "type": "string" }, - "resourcePolicies": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation.", - "type": "object" - }, "satisfiesPzs": { "description": "[Output Only] Reserved for future use.", "type": "boolean" diff --git a/compute/v1/compute-gen.go b/compute/v1/compute-gen.go index df7f8c82d3b..3d27b1a0359 100644 --- a/compute/v1/compute-gen.go +++ b/compute/v1/compute-gen.go @@ -12633,13 +12633,15 @@ type ForwardingRule struct { // traffic. For regional forwarding rules, this target must be in the // same region as the forwarding rule. For global forwarding rules, this // target must be a global load balancing resource. The forwarded - // traffic must be of a type appropriate to the target object. For more - // information, see the "Target" column in Port specifications + // traffic must be of a type appropriate to the target object. - For + // load balancers, see the "Target" column in Port specifications // (https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). - // For Private Service Connect forwarding rules that forward traffic to - // Google APIs, provide the name of a supported Google API bundle: - + // - For Private Service Connect forwarding rules that forward traffic + // to Google APIs, provide the name of a supported Google API bundle: - // vpc-sc - APIs that support VPC Service Controls. - all-apis - All - // supported Google APIs. + // supported Google APIs. - For Private Service Connect forwarding rules + // that forward traffic to managed services, the target must be a + // service attachment. Target string `json:"target,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -22148,8 +22150,9 @@ type Interconnect struct { // NocContactEmail: Email address to contact the customer NOC for // operations and maintenance notifications regarding this Interconnect. // If specified, this will be used for notifications in addition to all - // other forms described, such as Stackdriver logs alerting and Cloud - // Notifications. + // other forms described, such as Cloud Monitoring logs alerting and + // Cloud Notifications. This field is required for users who sign up for + // Cloud Interconnect using workforce identity federation. NocContactEmail string `json:"nocContactEmail,omitempty"` // OperationalStatus: [Output Only] The current status of this @@ -38771,11 +38774,6 @@ type Reservation struct { // be a dash. Name string `json:"name,omitempty"` - // ResourcePolicies: Resource policies to be added to this reservation. - // The key is defined by user, and the value is resource policy url. - // This is to define placement policy with reservation. - ResourcePolicies map[string]string `json:"resourcePolicies,omitempty"` - // SatisfiesPzs: [Output Only] Reserved for future use. SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` diff --git a/connectors/v1/connectors-api.json b/connectors/v1/connectors-api.json index fe21af88187..cdf22e38643 100644 --- a/connectors/v1/connectors-api.json +++ b/connectors/v1/connectors-api.json @@ -511,6 +511,38 @@ } }, "resources": { + "connectionSchemaMetadata": { + "methods": { + "refresh": { + "description": "Refresh runtime schema of a connection.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/connectionSchemaMetadata:refresh", + "httpMethod": "POST", + "id": "connectors.projects.locations.connections.connectionSchemaMetadata.refresh", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name. Format: projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+/connectionSchemaMetadata$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:refresh", + "request": { + "$ref": "RefreshConnectionSchemaMetadataRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "runtimeActionSchemas": { "methods": { "list": { @@ -1047,7 +1079,7 @@ } } }, - "revision": "20221018", + "revision": "20221201", "rootUrl": "https://connectors.googleapis.com/", "schemas": { "AuditConfig": { @@ -1571,13 +1603,15 @@ "LAUNCH_STAGE_UNSPECIFIED", "PREVIEW", "GA", - "DEPRECATED" + "DEPRECATED", + "PRIVATE_PREVIEW" ], "enumDescriptions": [ "LAUNCH_STAGE_UNSPECIFIED.", "PREVIEW.", "GA.", - "DEPRECATED." + "DEPRECATED.", + "PRIVATE_PREVIEW." ], "readOnly": true, "type": "string" @@ -1651,13 +1685,15 @@ "LAUNCH_STAGE_UNSPECIFIED", "PREVIEW", "GA", - "DEPRECATED" + "DEPRECATED", + "PRIVATE_PREVIEW" ], "enumDescriptions": [ "LAUNCH_STAGE_UNSPECIFIED.", "PREVIEW.", "GA.", - "DEPRECATED." + "DEPRECATED.", + "PRIVATE_PREVIEW." ], "readOnly": true, "type": "string" @@ -2523,13 +2559,15 @@ "LAUNCH_STAGE_UNSPECIFIED", "PREVIEW", "GA", - "DEPRECATED" + "DEPRECATED", + "PRIVATE_PREVIEW" ], "enumDescriptions": [ "LAUNCH_STAGE_UNSPECIFIED.", "PREVIEW.", "GA.", - "DEPRECATED." + "DEPRECATED.", + "PRIVATE_PREVIEW." ], "readOnly": true, "type": "string" @@ -2553,6 +2591,12 @@ }, "type": "object" }, + "RefreshConnectionSchemaMetadataRequest": { + "description": "Request message for ConnectorsService.RefreshConnectionSchemaMetadata.", + "id": "RefreshConnectionSchemaMetadataRequest", + "properties": {}, + "type": "object" + }, "Resource": { "description": "Resource definition", "id": "Resource", diff --git a/connectors/v1/connectors-gen.go b/connectors/v1/connectors-gen.go index d7305e9444a..2a611aed03f 100644 --- a/connectors/v1/connectors-gen.go +++ b/connectors/v1/connectors-gen.go @@ -169,6 +169,7 @@ type ProjectsLocationsService struct { func NewProjectsLocationsConnectionsService(s *Service) *ProjectsLocationsConnectionsService { rs := &ProjectsLocationsConnectionsService{s: s} + rs.ConnectionSchemaMetadata = NewProjectsLocationsConnectionsConnectionSchemaMetadataService(s) rs.RuntimeActionSchemas = NewProjectsLocationsConnectionsRuntimeActionSchemasService(s) rs.RuntimeEntitySchemas = NewProjectsLocationsConnectionsRuntimeEntitySchemasService(s) return rs @@ -177,11 +178,22 @@ func NewProjectsLocationsConnectionsService(s *Service) *ProjectsLocationsConnec type ProjectsLocationsConnectionsService struct { s *Service + ConnectionSchemaMetadata *ProjectsLocationsConnectionsConnectionSchemaMetadataService + RuntimeActionSchemas *ProjectsLocationsConnectionsRuntimeActionSchemasService RuntimeEntitySchemas *ProjectsLocationsConnectionsRuntimeEntitySchemasService } +func NewProjectsLocationsConnectionsConnectionSchemaMetadataService(s *Service) *ProjectsLocationsConnectionsConnectionSchemaMetadataService { + rs := &ProjectsLocationsConnectionsConnectionSchemaMetadataService{s: s} + return rs +} + +type ProjectsLocationsConnectionsConnectionSchemaMetadataService struct { + s *Service +} + func NewProjectsLocationsConnectionsRuntimeActionSchemasService(s *Service) *ProjectsLocationsConnectionsRuntimeActionSchemasService { rs := &ProjectsLocationsConnectionsRuntimeActionSchemasService{s: s} return rs @@ -910,6 +922,7 @@ type Connector struct { // "PREVIEW" - PREVIEW. // "GA" - GA. // "DEPRECATED" - DEPRECATED. + // "PRIVATE_PREVIEW" - PRIVATE_PREVIEW. LaunchStage string `json:"launchStage,omitempty"` // Name: Output only. Resource name of the Connector. Format: @@ -985,6 +998,7 @@ type ConnectorVersion struct { // "PREVIEW" - PREVIEW. // "GA" - GA. // "DEPRECATED" - DEPRECATED. + // "PRIVATE_PREVIEW" - PRIVATE_PREVIEW. LaunchStage string `json:"launchStage,omitempty"` // Name: Output only. Resource name of the Version. Format: @@ -2281,6 +2295,7 @@ type Provider struct { // "PREVIEW" - PREVIEW. // "GA" - GA. // "DEPRECATED" - DEPRECATED. + // "PRIVATE_PREVIEW" - PRIVATE_PREVIEW. LaunchStage string `json:"launchStage,omitempty"` // Name: Output only. Resource name of the Provider. Format: @@ -2322,6 +2337,11 @@ func (s *Provider) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// RefreshConnectionSchemaMetadataRequest: Request message for +// ConnectorsService.RefreshConnectionSchemaMetadata. +type RefreshConnectionSchemaMetadataRequest struct { +} + // Resource: Resource definition type Resource struct { // PathTemplate: Template to uniquely represent a GCP resource in a @@ -4963,6 +4983,150 @@ func (c *ProjectsLocationsConnectionsTestIamPermissionsCall) Do(opts ...googleap } +// method id "connectors.projects.locations.connections.connectionSchemaMetadata.refresh": + +type ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall struct { + s *Service + name string + refreshconnectionschemametadatarequest *RefreshConnectionSchemaMetadataRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Refresh: Refresh runtime schema of a connection. +// +// - name: Resource name. Format: +// projects/{project}/locations/{location}/connections/{connection}/con +// nectionSchemaMetadata. +func (r *ProjectsLocationsConnectionsConnectionSchemaMetadataService) Refresh(name string, refreshconnectionschemametadatarequest *RefreshConnectionSchemaMetadataRequest) *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall { + c := &ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.refreshconnectionschemametadatarequest = refreshconnectionschemametadatarequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall) Context(ctx context.Context) *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.refreshconnectionschemametadatarequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:refresh") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "connectors.projects.locations.connections.connectionSchemaMetadata.refresh" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Refresh runtime schema of a connection.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/connectionSchemaMetadata:refresh", + // "httpMethod": "POST", + // "id": "connectors.projects.locations.connections.connectionSchemaMetadata.refresh", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Resource name. Format: projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+/connectionSchemaMetadata$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:refresh", + // "request": { + // "$ref": "RefreshConnectionSchemaMetadataRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "connectors.projects.locations.connections.runtimeActionSchemas.list": type ProjectsLocationsConnectionsRuntimeActionSchemasListCall struct { diff --git a/contactcenterinsights/v1/contactcenterinsights-api.json b/contactcenterinsights/v1/contactcenterinsights-api.json index fa8814fb4e2..76775306b3d 100644 --- a/contactcenterinsights/v1/contactcenterinsights-api.json +++ b/contactcenterinsights/v1/contactcenterinsights-api.json @@ -1356,7 +1356,7 @@ } } }, - "revision": "20221204", + "revision": "20221219", "rootUrl": "https://contactcenterinsights.googleapis.com/", "schemas": { "GoogleCloudContactcenterinsightsV1Analysis": { @@ -3422,7 +3422,7 @@ "type": "string" }, "value": { - "description": "String with specific view properties.", + "description": "String with specific view properties, must be non-empty.", "type": "string" } }, diff --git a/contactcenterinsights/v1/contactcenterinsights-gen.go b/contactcenterinsights/v1/contactcenterinsights-gen.go index 85b226abf55..23743823ab9 100644 --- a/contactcenterinsights/v1/contactcenterinsights-gen.go +++ b/contactcenterinsights/v1/contactcenterinsights-gen.go @@ -3695,7 +3695,7 @@ type GoogleCloudContactcenterinsightsV1View struct { // updated. UpdateTime string `json:"updateTime,omitempty"` - // Value: String with specific view properties. + // Value: String with specific view properties, must be non-empty. Value string `json:"value,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/container/v1/container-api.json b/container/v1/container-api.json index 7affd802a93..f9db680cbc5 100644 --- a/container/v1/container-api.json +++ b/container/v1/container-api.json @@ -2487,7 +2487,7 @@ } } }, - "revision": "20221031", + "revision": "20221114", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -3352,6 +3352,20 @@ "$ref": "ShieldedNodes", "description": "Configuration for Shielded Nodes." }, + "desiredStackType": { + "description": "The desired stack type of the cluster. If a stack type is provided and does not match the current stack type of the cluster, update will attempt to change the stack type to the new type.", + "enum": [ + "STACK_TYPE_UNSPECIFIED", + "IPV4", + "IPV4_IPV6" + ], + "enumDescriptions": [ + "Default value, will be defaulted as IPV4 only", + "Cluster is IPV4 only", + "Cluster can use both IPv4 and IPv6" + ], + "type": "string" + }, "desiredVerticalPodAutoscaling": { "$ref": "VerticalPodAutoscaling", "description": "Cluster-level Vertical Pod Autoscaling configuration." diff --git a/container/v1/container-gen.go b/container/v1/container-gen.go index aa2093e6de4..0251d55c7bd 100644 --- a/container/v1/container-gen.go +++ b/container/v1/container-gen.go @@ -1534,6 +1534,18 @@ type ClusterUpdate struct { // DesiredShieldedNodes: Configuration for Shielded Nodes. DesiredShieldedNodes *ShieldedNodes `json:"desiredShieldedNodes,omitempty"` + // DesiredStackType: The desired stack type of the cluster. If a stack + // type is provided and does not match the current stack type of the + // cluster, update will attempt to change the stack type to the new + // type. + // + // Possible values: + // "STACK_TYPE_UNSPECIFIED" - Default value, will be defaulted as IPV4 + // only + // "IPV4" - Cluster is IPV4 only + // "IPV4_IPV6" - Cluster can use both IPv4 and IPv6 + DesiredStackType string `json:"desiredStackType,omitempty"` + // DesiredVerticalPodAutoscaling: Cluster-level Vertical Pod Autoscaling // configuration. DesiredVerticalPodAutoscaling *VerticalPodAutoscaling `json:"desiredVerticalPodAutoscaling,omitempty"` diff --git a/container/v1beta1/container-api.json b/container/v1beta1/container-api.json index 90abbf8e643..d6987c60b58 100644 --- a/container/v1beta1/container-api.json +++ b/container/v1beta1/container-api.json @@ -2512,7 +2512,7 @@ } } }, - "revision": "20221031", + "revision": "20221110", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -3480,6 +3480,20 @@ "$ref": "ShieldedNodes", "description": "Configuration for Shielded Nodes." }, + "desiredStackType": { + "description": "The desired stack type of the cluster. If a stack type is provided and does not match the current stack type of the cluster, update will attempt to change the stack type to the new type.", + "enum": [ + "STACK_TYPE_UNSPECIFIED", + "IPV4", + "IPV4_IPV6" + ], + "enumDescriptions": [ + "By default, the clusters will be IPV4 only", + "The value used if the cluster is a IPV4 only", + "The value used if the cluster is a dual stack cluster" + ], + "type": "string" + }, "desiredTpuConfig": { "$ref": "TpuConfig", "description": "The desired Cloud TPU configuration." diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go index cf2dcb720e8..9bb00bc6ee2 100644 --- a/container/v1beta1/container-gen.go +++ b/container/v1beta1/container-gen.go @@ -1680,6 +1680,18 @@ type ClusterUpdate struct { // DesiredShieldedNodes: Configuration for Shielded Nodes. DesiredShieldedNodes *ShieldedNodes `json:"desiredShieldedNodes,omitempty"` + // DesiredStackType: The desired stack type of the cluster. If a stack + // type is provided and does not match the current stack type of the + // cluster, update will attempt to change the stack type to the new + // type. + // + // Possible values: + // "STACK_TYPE_UNSPECIFIED" - By default, the clusters will be IPV4 + // only + // "IPV4" - The value used if the cluster is a IPV4 only + // "IPV4_IPV6" - The value used if the cluster is a dual stack cluster + DesiredStackType string `json:"desiredStackType,omitempty"` + // DesiredTpuConfig: The desired Cloud TPU configuration. DesiredTpuConfig *TpuConfig `json:"desiredTpuConfig,omitempty"` diff --git a/contentwarehouse/v1/contentwarehouse-api.json b/contentwarehouse/v1/contentwarehouse-api.json index 0988c031bc6..394cb17f33c 100644 --- a/contentwarehouse/v1/contentwarehouse-api.json +++ b/contentwarehouse/v1/contentwarehouse-api.json @@ -1075,7 +1075,7 @@ } } }, - "revision": "20221206", + "revision": "20221219", "rootUrl": "https://contentwarehouse.googleapis.com/", "schemas": { "AbuseiamAbuseType": { @@ -3529,7 +3529,12 @@ "BASECAMP_AFFINITY", "DRIVE_SEARCH_FILTER_AFFINITY", "CULTURE_EVENTS_CALENDAR_AFFINITY", - "DATABRIDGE_CONSOLE_AFFINITY" + "DATABRIDGE_CONSOLE_AFFINITY", + "COMMSTAR_AFFINITY", + "CDDB_AFFINITY", + "DATA_STUDIO_SPACES_AFFINITY", + "SOJI_AFFINITY", + "PLAY_MOVIES_ANDROID_AFFINITY" ], "enumDescriptions": [ "", @@ -3765,6 +3770,11 @@ "", "", "", + "", + "", + "", + "", + "", "" ], "type": "string" @@ -4261,6 +4271,32 @@ }, "type": "object" }, + "AppsPeopleOzExternalMergedpeopleapiContactCreateContextInfo": { + "description": "Contact creation timestamps and related metadata. See go/contact-edit-history. This message is a pure wrapper of the shared ContactCreactionContext message so that it can be a top-level person field. No other fields should be added to the message.", + "id": "AppsPeopleOzExternalMergedpeopleapiContactCreateContextInfo", + "properties": { + "contactCreateContext": { + "$ref": "SocialGraphApiProtoContactCreateContext" + }, + "metadata": { + "$ref": "AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata" + } + }, + "type": "object" + }, + "AppsPeopleOzExternalMergedpeopleapiContactEditContextInfo": { + "description": "Contact edit timestamps and related metadata. See go/contact-edit-history. This message is a pure wrapper of the shared ContactCreactionContext message so that it can be a top-level person field. No other fields should be added to the message.", + "id": "AppsPeopleOzExternalMergedpeopleapiContactEditContextInfo", + "properties": { + "contactEditContext": { + "$ref": "SocialGraphApiProtoContactEditContext" + }, + "metadata": { + "$ref": "AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata" + } + }, + "type": "object" + }, "AppsPeopleOzExternalMergedpeopleapiContactGroupMembership": { "description": "A membership that the person has. The person can be a member of multiple circles and multiple contact-groups. A circle membership is created by adding a person to a circle by person-id or by email. A contact-group membership is created by adding a contact to a contact-group.", "id": "AppsPeopleOzExternalMergedpeopleapiContactGroupMembership", @@ -6349,6 +6385,18 @@ }, "type": "array" }, + "contactCreateContextInfo": { + "items": { + "$ref": "AppsPeopleOzExternalMergedpeopleapiContactCreateContextInfo" + }, + "type": "array" + }, + "contactEditContextInfo": { + "items": { + "$ref": "AppsPeopleOzExternalMergedpeopleapiContactEditContextInfo" + }, + "type": "array" + }, "contactGroupMembership": { "description": "Contact groups that this person is a member of.", "items": { @@ -6622,6 +6670,7 @@ "type": "array" }, "relation": { + "description": "See go/relation-vs-relationship for relation vs relationship explanation.", "items": { "$ref": "AppsPeopleOzExternalMergedpeopleapiRelation" }, @@ -8054,7 +8103,7 @@ "type": "object" }, "AppsPeopleOzExternalMergedpeopleapiRelation": { - "description": "Relation stores the related person between the contact or profile and a third person This field currently includes RelationshipToMe data in fields value and canonical_value for ContainerType CONTACT_ANNOTATION. This will be moved to RelationshipToMe in b/221081499.", + "description": "Relation stores the related person between the contact or profile and a third person. See go/relation-vs-relationship for relation vs relationship explanation. This field currently includes RelationshipToMe data in fields value and canonical_value for ContainerType CONTACT_ANNOTATION. This will be moved to RelationshipToMe in b/221081499.", "id": "AppsPeopleOzExternalMergedpeopleapiRelation", "properties": { "canonicalValue": { @@ -9474,6 +9523,7 @@ "SWIPE_FOR_NOTIFICATION", "SWITCH_ACCESS", "SYSTEM_UPDATE", + "SYSTEM_UPDATES", "SYSTEM_NAVIGATION", "TALKBACK_PASSWORDS", "TEXT_TO_SPEECH", @@ -9712,6 +9762,7 @@ "", "", "", + "Deprecated, use SYSTEM_UPDATES instead.", "", "Settings page for configuring how navigation between apps is done. Specifically android has choice between Buttons of Gestures mode.", "", @@ -12190,7 +12241,7 @@ "id": "AssistantApiLensPerceptionCapabilitiesLensCapabilitiesTranslate", "properties": { "supportedLanguageTags": { - "description": "The list of language IETF BCP 47 tags that are supported. See the full list at go/androidlanguages.", + "description": "The list of language IETF BCP 47 tags that are supported. See the full details in the comment on the equivalent field in: http://google3/java/com/google/android/apps/gsa/search/shared/service/proto/lens_service_event.proto;l=55;rcl=355512559", "items": { "type": "string" }, @@ -15269,9 +15320,13 @@ "type": "object" }, "AssistantApiSupportedClientOpSupportedExecution": { - "description": "Additional properties that client can support for executing the client op.", + "description": "Additional properties that client can support for executing the client op. They are surface-specific execution properties and are unrelated to the execution model.", "id": "AssistantApiSupportedClientOpSupportedExecution", "properties": { + "supportsPartialFulfillment": { + "description": "ClientOp execution supports special rendering behavior while the user is in the middle of expressing their query. This behavior includes: 1) New partial output always over-writes prior partial output. 2) Canceling the interaction removes partial fulfilment from any user visible interaction history. If this is true, whether to apply the special rendering behavior will be determined by PartialFulfillmentRenderingParams. More details can be found at go/ma-natcon-pf-api.", + "type": "boolean" + }, "supportsSynchronousExecution": { "description": "Client can support synchronous execution of the client op. For tts.OUTPUT client op it means that client would honor |synchronous_playback_args| argument. Please see more at go/synchronous-sounds-design.", "type": "boolean" @@ -16803,9 +16858,17 @@ "type": "object" }, "AssistantGroundingRankerMediaGroundingProviderFeatures": { - "description": "Features to be passed from Media GP to HGR. Next ID: 2", + "description": "Features to be passed from Media GP to HGR. Next ID: 4", "id": "AssistantGroundingRankerMediaGroundingProviderFeatures", "properties": { + "isSeedRadio": { + "description": "True if the media deeplink has tag SEED_RADIO.", + "type": "boolean" + }, + "isSeedRadioRequest": { + "description": "True if the user requests seed radio.", + "type": "boolean" + }, "mscRate": { "description": "MSC(Media Short Click) rate. MSC rate = total number of MSC events / total number of MSC candidates The event is considered as MSC candidate if the event is a media seeking query(excluding follow-ons) and the media result is successfully fulfilled. The event is MSC event if any of the following is in the following queries within 30 secs: FOLLOWED_BY_DUPLICATE FOLLOWED_BY_ADD_OR_DELETE_MANUAL_REFINEMENT FOLLOWED_BY_SAME_VERTICAL (MEDIA) FOLLOWED_BY_STOP More details: go/media-ranking, go/billboard-navboost, go/magma-music-actions-efrac", "format": "float", @@ -17962,7 +18025,8 @@ "CROSS_STRUCTURE_TARGETING_DISALLOWED", "NO_DEVICE_MEETS_STADIA_GAMING_CAPABILITY", "MEDIA_STATES_MISSING", - "NO_DEVICE_SATISFIES_CAPABILITIES_REQUIREMENT" + "NO_DEVICE_SATISFIES_CAPABILITIES_REQUIREMENT", + "HYBRID_DEVICE_NOT_QUALIFIED" ], "enumDescriptions": [ "Used when the type of error is not known explicitly.", @@ -17987,7 +18051,8 @@ "When user tries to target a device which is in a different structure and is not allowed. For example, if user doesn't own the structure. See go/on-multi-user-access-transitivity for more details.", "When all devices do not qualify for stadia support.", "Used when any critical media state is missing so the selection decision cannot be made. See go/partial-states-in-targeting-library for more details.", - "Error about when no qualified device satisfies the device capability requirement." + "Error about when no qualified device satisfies the device capability requirement.", + "All remote hybrid devices fail the propertries requirement specific (lock/unlock, etc) for hybrid devices (such as Tangor)." ], "type": "string" }, @@ -19090,12 +19155,14 @@ "UNDEFINED", "CURATED", "ALARM", - "CUSTOM" + "CUSTOM", + "CUSTOM_SCRIPT" ], "enumDescriptions": [ "", "", "", + "", "SCHEDULED = 3 [deprecated = true];" ], "type": "string" @@ -24120,7 +24187,8 @@ "VERSION_MOVING_LIVE_0", "VERSION_MOVING_MANUAL_0", "VERSION_LITE_1", - "VERSION_CUSTOM" + "VERSION_CUSTOM", + "VERSION_REJECTED" ], "enumDescriptions": [ "", @@ -24143,7 +24211,8 @@ "Moving thumbnailer version 0 for live.", "Moving thumbnail generated manually.", "Lite Thumbnailer (previously known as FirstFrameThumbnailer)", - "Custom image (not generated). Likely client provided." + "Custom image (not generated). Likely client provided.", + "A gray fallback image for images that have been rejected." ], "type": "string" }, @@ -28450,7 +28519,8 @@ "PROVIDER_VATTENFALL", "PROVIDER_VIETGIS", "PROVIDER_UNITE", - "PROVIDER_NEOGY" + "PROVIDER_NEOGY", + "PROVIDER_AMPUP" ], "enumDescriptions": [ "ABSTRACT The root of all provider types. This should never be present on an actual feature, but can be useful when calling InCategory.", @@ -29158,7 +29228,8 @@ "", "", "", - "Note: Next available value is 0x126F." + "", + "Note: Next available value is 0x1270." ], "type": "string" }, @@ -33262,7 +33333,8 @@ "PROVIDER_VATTENFALL", "PROVIDER_VIETGIS", "PROVIDER_UNITE", - "PROVIDER_NEOGY" + "PROVIDER_NEOGY", + "PROVIDER_AMPUP" ], "enumDescriptions": [ "ABSTRACT The root of all provider types. This should never be present on an actual feature, but can be useful when calling InCategory.", @@ -33970,7 +34042,8 @@ "", "", "", - "Note: Next available value is 0x126F." + "", + "Note: Next available value is 0x1270." ], "type": "string" } @@ -35405,7 +35478,8 @@ "PROVIDER_VATTENFALL", "PROVIDER_VIETGIS", "PROVIDER_UNITE", - "PROVIDER_NEOGY" + "PROVIDER_NEOGY", + "PROVIDER_AMPUP" ], "enumDescriptions": [ "ABSTRACT The root of all provider types. This should never be present on an actual feature, but can be useful when calling InCategory.", @@ -36113,7 +36187,8 @@ "", "", "", - "Note: Next available value is 0x126F." + "", + "Note: Next available value is 0x1270." ], "type": "string" }, @@ -36831,48 +36906,6 @@ }, "type": "object" }, - "GeostorePriceInfoSourceDetails": { - "id": "GeostorePriceInfoSourceDetails", - "properties": { - "lastUpdateSources": { - "items": { - "$ref": "GeostorePriceInfoSourceDetailsSourceData" - }, - "type": "array" - }, - "sourceData": { - "items": { - "$ref": "GeostorePriceInfoSourceDetailsSourceData" - }, - "type": "array" - } - }, - "type": "object" - }, - "GeostorePriceInfoSourceDetailsSourceData": { - "id": "GeostorePriceInfoSourceDetailsSourceData", - "properties": { - "clientProjectNumber": { - "description": "Project number of the GMB API client. Set only if the source is EXTERNAL_GMB_API.", - "format": "int64", - "type": "string" - }, - "source": { - "enum": [ - "SOURCE_UNSPECIFIED", - "NMX_UI", - "EXTERNAL_GMB_API" - ], - "enumDescriptions": [ - "No source specified.", - "The menu comes from our own UI.", - "The menu comes from a third party." - ], - "type": "string" - } - }, - "type": "object" - }, "GeostorePriceInfoStatus": { "description": "Providers of PriceInfo (e.g. SinglePlatform, YEXT) send verified and unverified listings. PriceInfoStatus is used to encapsulate this information.", "id": "GeostorePriceInfoStatus", @@ -37006,10 +37039,6 @@ }, "type": "array" }, - "sourceDetails": { - "$ref": "GeostorePriceInfoSourceDetails", - "description": "Source of the information retrieved, could be from our own NMX UI or a third party API." - }, "sourceUrl": { "$ref": "GeostoreUrlListProto", "description": "Where this price list comes from. If set, this must also be a member of the price_list_url field, and represents translations of a single URL." @@ -37902,7 +37931,8 @@ "PROVIDER_VATTENFALL", "PROVIDER_VIETGIS", "PROVIDER_UNITE", - "PROVIDER_NEOGY" + "PROVIDER_NEOGY", + "PROVIDER_AMPUP" ], "enumDescriptions": [ "ABSTRACT The root of all provider types. This should never be present on an actual feature, but can be useful when calling InCategory.", @@ -38610,7 +38640,8 @@ "", "", "", - "Note: Next available value is 0x126F." + "", + "Note: Next available value is 0x1270." ], "type": "string" } @@ -43386,7 +43417,7 @@ "REPLACE_POLICY_BINDING" ], "enumDescriptions": [ - "", + "The unknown operation type.", "Adds newly given policy bindings in the existing bindings list.", "Removes newly given policy bindings from the existing bindings list.", "Replaces existing policy bindings with the given policy binding list" @@ -43471,7 +43502,7 @@ "ACTION_PENDING" ], "enumDescriptions": [ - "", + "The unknown state.", "State indicating action executed successfully.", "State indicating action failed.", "State indicating action timed out.", @@ -43545,10 +43576,10 @@ "properties": { "cloudAiDocumentOption": { "$ref": "GoogleCloudContentwarehouseV1CloudAIDocumentOption", - "description": "Request Option for processing Cloud AI Document in CW Document." + "description": "Request Option for processing Cloud AI Document in Document Warehouse. This field offers limited support for mapping entities from Cloud AI Document to Warehouse Document. Please consult with product team before using this field and other available options." }, "createMask": { - "description": "Field mask for creating Document fields. If mask path is empty, it means all fields are masked. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", + "description": "Field mask for creating Document fields. If mask path is empty, it means all fields are masked. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.", "format": "google-fieldmask", "type": "string" }, @@ -43558,7 +43589,7 @@ }, "policy": { "$ref": "GoogleIamV1Policy", - "description": "Default document policy during creation. Conditions defined in the policy will be ignored." + "description": "Default document policy during creation. This refers to an Identity and Access (IAM) policy, which specifies access controls for the Document. Conditions defined in the policy will be ignored." }, "requestMetadata": { "$ref": "GoogleCloudContentwarehouseV1RequestMetadata", @@ -43671,10 +43702,6 @@ "description": "Defines the structure for content warehouse document proto.", "id": "GoogleCloudContentwarehouseV1Document", "properties": { - "asyncEnabled": { - "description": "If true, makes the document visible to asynchronous policies and rules.", - "type": "boolean" - }, "cloudAiDocument": { "$ref": "GoogleCloudDocumentaiV1Document", "description": "Document AI format to save the structured content, including OCR." @@ -43765,16 +43792,16 @@ "description": "The reference ID set by customers. Must be unique per project and location.", "type": "string" }, - "structuredContentUri": { - "description": "A path linked to structured content file.", - "type": "string" - }, "textExtractionDisabled": { "description": "If true, text extraction will not be performed.", "type": "boolean" }, + "textExtractionEnabled": { + "description": "If true, text extraction will be performed.", + "type": "boolean" + }, "title": { - "description": "Title that describes the document. This is usually present in the top section of the document, and is a mandatory field for the question-answering feature.", + "description": "Title that describes the document. This can be the top heading or text that describes the document.", "type": "string" }, "updateTime": { @@ -44529,7 +44556,7 @@ "type": "boolean" }, "isMetadata": { - "description": "Whether the property is user supplied metadata.", + "description": "Whether the property is user supplied metadata. This out-of-the box placeholder setting can be used to tag derived properties. Its value and interpretation logic should be implemented by API user.", "type": "boolean" }, "isRepeatable": { @@ -44717,7 +44744,7 @@ "ON_UPDATE" ], "enumDescriptions": [ - "", + "Trigger for unknown action.", "Trigger for create document action.", "Trigger for update document action." ], @@ -44860,11 +44887,11 @@ "description": "The meta information collected about the end user, used to enforce access control and improve the search quality of the service." }, "requireTotalSize": { - "description": "Optional. Controls if the search document request requires the return of a total size of matched documents. See SearchDocumentsResponse.total_size. Enabling this flag may adversely impact performance. Hint: If this is used with pagination, set this flag on the initial query but set this to false on subsequent page calls (keep the total count locally). Defaults to false.", + "description": "Controls if the search document request requires the return of a total size of matched documents. See SearchDocumentsResponse.total_size. Enabling this flag may adversely impact performance. Hint: If this is used with pagination, set this flag on the initial query but set this to false on subsequent page calls (keep the total count locally). Defaults to false.", "type": "boolean" }, "totalResultSize": { - "description": "Optional. Controls if the search document request requires the return of a total size of matched documents. See SearchDocumentsResponse.total_size.", + "description": "Controls if the search document request requires the return of a total size of matched documents. See SearchDocumentsResponse.total_size.", "enum": [ "TOTAL_RESULT_SIZE_UNSPECIFIED", "ESTIMATED_SIZE", @@ -44939,7 +44966,7 @@ "properties": { "policy": { "$ref": "GoogleIamV1Policy", - "description": "Required. REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB." + "description": "Required. REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. This refers to an Identity and Access (IAM) policy, which specifies access controls for the Document." }, "projectOwner": { "description": "For Set Project ACL only. Authorization check for end user will be ignored when project_owner=true.", @@ -45095,7 +45122,7 @@ "properties": { "cloudAiDocumentOption": { "$ref": "GoogleCloudContentwarehouseV1CloudAIDocumentOption", - "description": "Request Option for processing Cloud AI Document in CW Document." + "description": "Request Option for processing Cloud AI Document in Document Warehouse. This field offers limited support for mapping entities from Cloud AI Document to Warehouse Document. Please consult with product team before using this field and other available options." }, "document": { "$ref": "GoogleCloudContentwarehouseV1Document", @@ -45190,6 +45217,7 @@ "type": "object" }, "GoogleCloudContentwarehouseV1UserInfo": { + "description": "The user information.", "id": "GoogleCloudContentwarehouseV1UserInfo", "properties": { "groupIds": { @@ -51462,9 +51490,13 @@ "type": "object" }, "ImageRepositoryAmarnaCloudSpeechSignals": { - "description": "Next Tag: 7", + "description": "Next Tag: 8", "id": "ImageRepositoryAmarnaCloudSpeechSignals", "properties": { + "duplicateOfYtS3Asr": { + "description": "If this field is set to true, it means that Youtube already processed the ASR from S3 for the langID. Please find the ASR result from transcript_asr in google3/image/repository/proto/video_search.proto instead.", + "type": "boolean" + }, "langWithoutLocale": { "description": "The language id input for creating this ASR without regional info. Same format as in go/ytlangid. This field is populated in Kronos Amarna Cloud Speech operator and passed to Amarna, but it is cleared before stored in Amarna's metadata table.", "type": "string" @@ -59158,7 +59190,7 @@ "type": "object" }, "KnowledgeAnswersIntentQueryFunctionCallSignals": { - "description": "Next ID: 34", + "description": "Next ID: 35", "id": "KnowledgeAnswersIntentQueryFunctionCallSignals", "properties": { "argumentComposingMid": { @@ -59271,6 +59303,10 @@ "description": "Denotes whether this is a sub-intent of an ambiguous SystemUncertain intent go/intent-disambiguation.", "type": "boolean" }, + "isNeuralCategoricalInterpretation": { + "description": "Whether the interpretation was generated from the neural categorical parser.", + "type": "boolean" + }, "isUiCompositionIntent": { "description": "Denotes this is a sub-intent used for composing an Assistant UI response. The assistant dialog should output ui_composition_shelf in the SystemResponse if it can fulfill the intent. More info in go/davinci-design and go/davinci-di-fulfillment", "type": "boolean" @@ -61981,10 +62017,6 @@ "format": "int32", "type": "integer" }, - "iconicPersonBoundingBox": { - "$ref": "PhotosVisionGroundtruthdbNormalizedBoundingBox", - "description": "Normalized bounding box of the most iconic person in the image. The x,y coordinates are in the range [0, 1]. Deprecated to comply with CDS requirements (b/228535076)." - }, "personBoundingBox": { "$ref": "LensDiscoveryStyleBoundingBox", "description": "Bounding box of the most iconic person in the image." @@ -62107,10 +62139,6 @@ "boundingBox": { "$ref": "LensDiscoveryStyleBoundingBox", "description": "Bounding box of the detected person." - }, - "normalizedBoundingBox": { - "$ref": "PhotosVisionGroundtruthdbNormalizedBoundingBox", - "description": "Normalized bounding box of the detected person. The x,y coordinates are in the range [0, 1]. Deprecated to comply with CDS requirements (b/228535076)." } }, "type": "object" @@ -64121,6 +64149,10 @@ "description": "Tidbit token rendered in generating snippet/title.", "id": "MustangSnippetsRenderedToken", "properties": { + "bolded": { + "description": "Is the rendered token bolded (insided )", + "type": "boolean" + }, "byteOffsetBegin": { "description": "Byte offset range in the rendered text that corresponds to this token. [byte_offset_begin, byte_offset_end) inclusive", "format": "int32", @@ -71419,7 +71451,8 @@ "VIDEO_GAME", "DIRECTOR", "ACTOR", - "MOVIE_SERIES" + "MOVIE_SERIES", + "APP" ], "enumDescriptions": [ "", @@ -71459,7 +71492,8 @@ "A video game (e.g. \"Skyrim\"). Note(shohs): As of Q4'18, this content type is not supported as a top-level content type to fulfill a query; rather, it is only used at the entity level to support queries such as \"play Skyrim soundtrack\".", "TV or film director. (e.g. \"James Cameron\").", "Actor: TV, film actor etc. (e.g. \"Tom Cruise\").", - "Movie series. (e.g. \"Home Alone\")." + "Movie series. (e.g. \"Home Alone\").", + "Used for App." ], "type": "string" }, @@ -76087,6 +76121,7 @@ "CULTURE_EVENTS_CALENDAR", "DATABRIDGE_CONSOLE", "COMMSTAR", + "CDDB", "DEPRECATED_QUICKSTART_FLUME", "DUO_CLIENT", "ALBERT", @@ -76720,6 +76755,7 @@ "CULTURE_EVENTS_CALENDAR Team contact: culture-events-calendar@google.com", "Databridge Console Team contact: databrige-eng@google.com", "Commstar Team contact: mdb.commstar-dev@google.com", + "Cddb Team contact: cddb-dev-team@google.com", "", "Duo Client Team contact: duo-eng@google.com", "Project albert (go/albert-frontend) Team contact: albert-eng@google.com", @@ -78494,6 +78530,11 @@ "format": "int64", "type": "string" }, + "loopCount": { + "description": "The number of times the animation plays. If 0, the animation will loop indefinitely. If positive, this number includes the initial playthrough. For example, a value of 3 means that each frame is shown 3 times.", + "format": "int32", + "type": "integer" + }, "numFrames": { "format": "int64", "type": "string" @@ -82333,7 +82374,8 @@ "NEW_RELEASE", "IAP_SKU_SALE", "OFFER", - "IAP_SKU_DEALS" + "IAP_SKU_DEALS", + "FEATURED_PRODUCTS" ], "enumDescriptions": [ "", @@ -82348,7 +82390,8 @@ "Events for major new app releases. Auto-generated by the recommendations backend.", "Sale events generated by sku config, rather than a sale event as declared through PDC.", "Offer - see offer types below for the types. go/liveops-config-deals", - "Out-of-app purchasable in-app promotions funded by Play." + "Out-of-app purchasable in-app promotions funded by Play.", + "Out-of-app purchasable in-app products, configured by developers through Play Console. go/store-content-featured_product-prd go/featured-in-app-products-pc-dd, go/featured-products-serving-dd" ], "type": "string" }, @@ -84193,7 +84236,7 @@ "type": "object" }, "QualityNsrNsrData": { - "description": "NOTE: When adding a new field to be propagated to Raffia check if NsrPatternSignalSpec needs to be updated. Next ID: 50", + "description": "NOTE: When adding a new field to be propagated to Raffia check if NsrPatternSignalSpec needs to be updated. Next ID: 51", "id": "QualityNsrNsrData", "properties": { "articleScore": { @@ -84292,6 +84335,10 @@ "format": "float", "type": "number" }, + "nsrEpoch": { + "description": "The epoch from which this NSR value is coming from.", + "type": "string" + }, "nsrOverrideBid": { "description": "This signal is used to unconditionally override NSR as a bid in Q*. Should only be used in case of emergency (see go/nsr-override-bid). To have any effect, the value should be present and greater than 0.001.", "format": "float", @@ -85139,17 +85186,19 @@ "type": "object" }, "QualityPreviewRanklabSnippet": { - "description": "Snippet candidate related information and signal scores. Next ID: 11", + "description": "Snippet candidate related information and signal scores. This message is used for both snippet scoring and ranklab features recording. Next ID: 12 ================== Features populated in production =======================", "id": "QualityPreviewRanklabSnippet", "properties": { "brainFeatures": { - "$ref": "QualityPreviewSnippetBrainFeatures" + "$ref": "QualityPreviewSnippetBrainFeatures", + "description": "Features from SnippetFlow in Superroot." }, "documentFeatures": { "$ref": "QualityPreviewSnippetDocumentFeatures" }, "experimentalFeatures": { - "$ref": "QualityPreviewSnippetExperimentalFeatures" + "$ref": "QualityPreviewSnippetExperimentalFeatures", + "description": "For experimental usage, not populated yet." }, "finalScore": { "description": "The final score of this candidate.", @@ -85175,6 +85224,10 @@ "$ref": "QualityPreviewSnippetQueryTermCoverageFeatures", "description": "Query term (including synonyms) coverage features." }, + "radishFeatures": { + "$ref": "QualityPreviewSnippetRadishFeatures", + "description": "Radish related information." + }, "snippetInfo": { "$ref": "QualityPreviewChosenSnippetInfo", "description": "Information to identify current chosen snippet." @@ -87685,7 +87738,7 @@ "type": "object" }, "QualityShoppingShoppingAttachmentPBlock": { - "description": "Next ID: 15", + "description": "Next ID: 18", "id": "QualityShoppingShoppingAttachmentPBlock", "properties": { "fullTitle": { @@ -87823,6 +87876,11 @@ "$ref": "QualityRankembedMustangMustangRankEmbedInfo" }, "type": "array" + }, + "weakGlobalProductClusterId": { + "description": "Matched/Inferred weak product identity - set only if the global_product_cluster_id is missing", + "format": "uint64", + "type": "string" } }, "type": "object" @@ -88206,6 +88264,53 @@ }, "type": "object" }, + "QualitySnippetsTruncationSnippetBoldedRange": { + "description": "A bolded range in printed snippet lines.", + "id": "QualitySnippetsTruncationSnippetBoldedRange", + "properties": { + "begin": { + "$ref": "QualitySnippetsTruncationSnippetBoldedRangePosition", + "description": "Bolded range [begin, end)" + }, + "end": { + "$ref": "QualitySnippetsTruncationSnippetBoldedRangePosition" + }, + "text": { + "description": "Only populated for debugging.", + "type": "string" + }, + "type": { + "enum": [ + "TYPE_UNSPECIFIED", + "QUERY_TERM_MATCH", + "RADISH", + "BRAIN" + ], + "enumDescriptions": [ + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "QualitySnippetsTruncationSnippetBoldedRangePosition": { + "id": "QualitySnippetsTruncationSnippetBoldedRangePosition", + "properties": { + "byteOffset": { + "format": "int32", + "type": "integer" + }, + "index": { + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "QualityTimebasedLastSignificantUpdate": { "id": "QualityTimebasedLastSignificantUpdate", "properties": { @@ -89256,7 +89361,7 @@ "type": "object" }, "RepositoryAnnotationsRdfaRdfaRichSnippetsApplication": { - "description": "This structure holds data for application information for rich snippets Next ID: 52", + "description": "This structure holds data for application information for rich snippets Next ID: 53", "id": "RepositoryAnnotationsRdfaRdfaRichSnippetsApplication", "properties": { "appTypeData": { @@ -89359,6 +89464,9 @@ "$ref": "QualityCalypsoAppsUniversalAuLiveOpsDetailInfo", "description": "Unified proto for android LiveOps and iOS LiveEvents." }, + "localizedTrustedGenome": { + "$ref": "RepositoryAnnotationsRdfaRdfaRichSnippetsApplicationLocalizedTrustedGenome" + }, "marketplace": { "description": "Market Android or itunes", "type": "string" @@ -89532,6 +89640,20 @@ }, "type": "object" }, + "RepositoryAnnotationsRdfaRdfaRichSnippetsApplicationLocalizedTrustedGenome": { + "id": "RepositoryAnnotationsRdfaRdfaRichSnippetsApplicationLocalizedTrustedGenome", + "properties": { + "language": { + "description": "The chosen language", + "type": "string" + }, + "localizedTg": { + "$ref": "VendingConsumerProtoTrustedGenomeAnnotation", + "description": "The TG tags matching the locale of the doc, if available" + } + }, + "type": "object" + }, "RepositoryAnnotationsRdfaRdfaRichSnippetsApplicationRank": { "id": "RepositoryAnnotationsRdfaRdfaRichSnippetsApplicationRank", "properties": { @@ -90286,11 +90408,6 @@ "format": "float", "type": "number" }, - "newConfidenceExperimentalDontUse": { - "description": "Experimental. This is used for doing experiments only. For example, new entity confidence can be populated here to experiment with replacing the one re-computed by NewAnnotationConfidence().", - "format": "float", - "type": "number" - }, "newsTopicalityScore": { "description": "DEPRECATED: this field is no longer set. As of early June 2018 it is referenced in hundreds of test files and is difficult to remove from the code base.", "format": "float", @@ -92098,7 +92215,8 @@ "FEMALE", "ASPECT", "TARGET_AUDIENCE", - "TARGET_PURPOSE" + "TARGET_PURPOSE", + "SETTING_BY_LOCATION" ], "enumDescriptions": [ "", @@ -92108,7 +92226,8 @@ "A range expressing unequivocally a (semantic) female gender. This could be for expressions that are intrinsically female (\"aunt\") or the female expression of an entity that is lexically gendered (\"chairwoman\" as opposed to \"chairman\" or \"chairperson\").", "The range designates an aspect, that is, a modifier of some other range.", "Facets.", - "" + "", + "End of facets. This line marks where to generate new values for facets." ], "type": "string" }, @@ -92226,9 +92345,10 @@ "FEMININE_HONORIFIC", "GENERIC_HONORIFIC", "NEGATIVE_SUPERLATIVE", + "SUPERLATIVE", "FACET_AUDIENCE", "FACET_PURPOSE", - "SUPERLATIVE" + "FACET_SETTING_BY_LOCATION" ], "enumDescriptions": [ "", @@ -92281,9 +92401,10 @@ "Feminine Honorific markers.", "Non-specific Honorifc markers.", "", + "", "Facets.", "", - "" + "End of facets. This line marks where to generate new values for facets." ], "type": "string" } @@ -99622,7 +99743,7 @@ "type": "object" }, "SecurityCredentialsPrincipalProto": { - "description": "A Principal represents something to which permissions are assigned, often but not always a user or group of some kind. It is most appropriate for use in ACLs and authorization checks. Callers should prefer to use the wrapper classes in google3/security/credentials/public/principal.h google3/java/com/google/security/credentials/Principal.java google3/security/credentials/go/principal.go unless direct proto access is essential. If you update this protocol buffer, please update the wrapper classes as well.", + "description": "A Principal represents something to which permissions are assigned, often but not always a user or group of some kind. It is most appropriate for use in ACLs and authorization checks. Callers should prefer to use the wrapper classes in google3/security/credentials/public/principal.h google3/java/com/google/security/credentials/Principal.java google3/security/credentials/go/principal.go unless direct proto access is essential. If you update this protocol buffer, please update the wrapper classes as well. LINT.IfChange", "id": "SecurityCredentialsPrincipalProto", "properties": { "allAuthenticatedUsers": { @@ -99797,7 +99918,7 @@ "type": "object" }, "SecurityCredentialsRbacRoleProto": { - "description": "Principal associated with a given RBAC role. This principal is used by Sphinx Provisioning Service for RBAC (go/cedi-auth) provisionable (go/sphinx-rbacz-design).", + "description": "Principal associated with a given RBAC role. This principal is used by Sphinx Provisioning Service for RBAC provisionable (go/sphinx-rbacz).", "id": "SecurityCredentialsRbacRoleProto", "properties": { "name": { @@ -99811,14 +99932,14 @@ "type": "string" }, "rbacRoleName": { - "description": "Format: \"RbacNamespaceName.RbacRoleName(/field=value)*\", e.g., \"hr.v1.Reader\", \"hr.v1.Reader/language=EN_US/country=USA/room=NYC-9th-11A201\".", + "description": "Format: \"role/z?\" - \"role\" is the Sphinx globally unique name of the Sphinx role that provisions the RBAC role. - \"/z?\" suffix indicates which Zanzibar environment stores the role membership data (\"/zd\": dev, \"/zs\": staging, \"/zp\": prod, \"/zt\": local test instance). Example: \"mysystem_myrole/zp\"", "type": "string" } }, "type": "object" }, "SecurityCredentialsRbacSubjectProto": { - "description": "Principal associated with a given RBAC subject. This principal is used by Sphinx Provisioning Service for RBAC (go/cedi-auth) provisionable (go/sphinx-rbacz-design).", + "description": "Principal associated with a given RBAC subject. This principal is used by Sphinx Provisioning Service for RBAC provisionable (go/sphinx-rbacz).", "id": "SecurityCredentialsRbacSubjectProto", "properties": { "username": { @@ -100564,9 +100685,16 @@ "type": "object" }, "SnippetExtraInfoSnippetCandidateInfo": { - "description": "Next ID: 12", + "description": "Next ID: 13", "id": "SnippetExtraInfoSnippetCandidateInfo", "properties": { + "boldedRanges": { + "description": "Bolded ranges in the printed snippet lines.", + "items": { + "$ref": "QualitySnippetsTruncationSnippetBoldedRange" + }, + "type": "array" + }, "id": { "description": "Candidate identifier number, unique among all snippet candidates under each document in each request. What does this number mean: - Muppet candidates: This equals to the candidate's rank by Muppet snippets scorer. - Superroot candidates: No specific meaning, this number should be larger than that of Muppet candidates. This field is used to: - Verify whether snippet brain chooses a different snippet from Muppet (the one chosen by Muppet is always in id 0). - Print debugging information and sort candidates in debug output.", "format": "int32", @@ -101153,6 +101281,16 @@ }, "type": "object" }, + "SocialGraphApiProtoContactCreateContext": { + "description": "The ContactEditContext message is a wrapper around the generic ContactMutationContext data to represent when and where a contact create was performed.", + "id": "SocialGraphApiProtoContactCreateContext", + "properties": { + "mutationContext": { + "$ref": "SocialGraphApiProtoContactMutationContext" + } + }, + "type": "object" + }, "SocialGraphApiProtoContactDeletionContext": { "description": "The ContactDeletionContext message is a wrapper around the generic ContactMutationContext data, and will include any needed delete specific data. NOTE: Before using this message please review go/people-api-contact-deletion-context", "id": "SocialGraphApiProtoContactDeletionContext", @@ -101164,6 +101302,16 @@ }, "type": "object" }, + "SocialGraphApiProtoContactEditContext": { + "description": "The ContactEditContext message is a wrapper around the generic ContactMutationContext data to represent when and where a contact edit was performed.", + "id": "SocialGraphApiProtoContactEditContext", + "properties": { + "mutationContext": { + "$ref": "SocialGraphApiProtoContactMutationContext" + } + }, + "type": "object" + }, "SocialGraphApiProtoContactMutationContext": { "description": "This message is the generic mutation message which will encapsulate the fields which are shared between the create, update, and delete actions, including source of change, timestamp, and metadata messages passed in from the source for any source specific data (such as phone name/model from FSA).", "id": "SocialGraphApiProtoContactMutationContext", @@ -101553,15 +101701,19 @@ "type": "object" }, "SocialGraphApiProtoPartialNameOptionsParsedDisplayNameSpec": { - "description": "These options use more sophisticated logic from a location-aware name detector to parse the full name of a user into structured parts and operate on those parts. For more information on how names are parsed, see the NameOccurrence proto definition: http://google3/quality/peoplesearch/namedetector/detector/proto/name_occurrence.proto?l=50\u0026rcl=334484707 Next ID: 7", + "description": "These options use more sophisticated logic from a location-aware name detector to parse the full name of a user into structured parts and operate on those parts. For more information on how names are parsed, see the NameOccurrence proto definition: http://google3/quality/peoplesearch/namedetector/detector/proto/name_occurrence.proto?l=50\u0026rcl=334484707 In general, when parsing display names the following rules will apply to *all* specs: - Hyphenated names are broken down: \"Angelina Jollie-Pit\" is pre-processed as \"Angelina Jollie Pitt\"; - Prefixes are ignored: \"Prof. Albus Dumbledore\" is pre-processed as \"Albus Dumbledore\"; - Auxiliaries are ignored: \"Luís de Camões\" is pre-processed as \"Luís Camões\". Next ID: 8", "id": "SocialGraphApiProtoPartialNameOptionsParsedDisplayNameSpec", "properties": { "allInitialsFromParsedName": { - "description": "Extract an initial from each parsed name. For example, \"Niels Henrik David Bohr\" yields \"N. H. D. B.\". Other special cases are treated as follows: - Hyphenated names are broken down: \"Angelina Jollie-Pit\" yields \"A. J. P.\"; - Prefixes are ignored: \"Prof. Albus Dumbledore\" yields \"A. D.\"; - Auxiliaries are ignored: \"Luís de Camões\" yields \"L. C.\".", + "description": "Extract an initial from each parsed name. For example, \"Niels Henrik David Bohr\" yields \"N. H. D. B.\". Other special cases are treated as follows:", + "type": "boolean" + }, + "firstInitialAndFirstLastName": { + "description": "Show the initial of the very first name and the first last name, e.g. \"Hugo Daniel Hernandez Garcia\" yields \"H. Hernandez\".", "type": "boolean" }, "firstInitialAndVeryLastName": { - "description": "Show the initial of the very first name and the very last name, e.g. \"Ana Maria Silva\" yields \"A. Silva\". - Hyphenated names are broken down: \"Angelina Jollie-Pitt\" yields \"A. Pitt\"; - Prefixes are ignored: \"Prof. Albus Dumbledore\" yields \"A. Dumbledore\"; - Auxiliaries are ignored: \"Luís de Camões\" yields \"L. Camões\".", + "description": "Show the initial of the very first name and the very last name, e.g. \"Ana Maria Silva\" yields \"A. Silva\".", "type": "boolean" }, "knowledgeGraphNameShortening": { @@ -101583,11 +101735,11 @@ "type": "string" }, "veryFirstNameAndAllInitials": { - "description": "Show the full very first name and all the other initials, e.g. \"Ana Maria Silva\" yields \"Ana M. S.\". - Hyphenated names are broken down: \"Angelina Jollie-Pit\" yields \"Angelina J. P.\"; - Prefixes are ignored: \"Prof. Albus Dumbledore\" yields \"Albus D.\"; - Auxiliaries are ignored: \"Luís de Camões\" yields \"Luís C.\".", + "description": "Show the full very first name and all the other initials, e.g. \"Ana Maria Silva\" yields \"Ana M. S.\".", "type": "boolean" }, "veryFirstNameOnly": { - "description": "Show the very first name only, e.g. \"Ana Maria Silva\" yields \"Ana\". - Hyphenated names are broken down: \"Mary-Kate Smith\" yields \"Mary\"; - Prefixes are ignored: \"Prof. Albus Dumbledore\" yields \"Albus\";", + "description": "Show the very first name only, e.g. \"Ana Maria Silva\" yields \"Ana\".", "type": "boolean" } }, @@ -102971,12 +103123,12 @@ "id": "StorageGraphBfgPolicyMetadata", "properties": { "availabilityEndTimestamp": { - "description": "Timestamp after which data with this policy cannot be used. This value must be strictly larger/later than availability_start_time, if both are set. WARNING: This field is WIP and please do not populate it without reading go/ke-dg-tape and consulting ke-data-governance@.", + "description": "Timestamp after which data with this policy cannot be used. This value must be strictly larger/later than availability_start_time, if both are set.", "format": "google-datetime", "type": "string" }, "availabilityStartTimestamp": { - "description": "Timestamp before which data with this policy cannot be used. This value must be strictly smaller/earlier than availability_end_time, if both are set. WARNING: This field is WIP and please do not populate it without reading go/ke-dg-tape and consulting ke-data-governance@.", + "description": "Timestamp before which data with this policy cannot be used. This value must be strictly smaller/earlier than availability_end_time, if both are set.", "format": "google-datetime", "type": "string" }, @@ -103235,6 +103387,7 @@ "RIGHTS_MANAGEMENT_102", "DICTIONARY_DATA_OXFORD", "DICTIONARY_DATA_LE_ROBERT", + "ENTITY_TEXT_FEATURES", "AR_ONBOARDING_TEST", "AR_ONBOARDING_TEST_2", "MATERIALIZED_ENRICHER_INTERNAL", @@ -103413,6 +103566,7 @@ "Corresponding to policy id = 102.", "", "", + "Access controls for EntityTextFeatures computed by the Enricher. YOU MUST CONTACT deepkg-infra-dev@ before reading or writing data with this ACL.", "This AccessRequirement is used for testing purpose only. Please do not use it on data.", "", "Data materialized by PQM13n for Enricher. Design proposal: go/enricher-m13n-ar. YOU MUST CONTACT ke-data-platform-access@ before reading or writing data with this acl.", @@ -106479,72 +106633,25 @@ "TC_IN_PSS_CHECK_A", "TC_IN_PSS_CHECK_B", "QUERY_IS_BOOTS_ELIGIBLE", - "ENTERTAINMENT_CLUSTER_SPELLING_CORRECTION", "QUERY_HAS_SELECTED_BOOTS_CHIP", "QUERY_HAS_ONLY_UNSELECTED_BOOTS_CHIPS", "SPONSORED_ADS_CLUSTER", - "SPONSORED_ADS_CLUSTER_ATLEAST_ONE_AD", - "INSPIRED_BY", - "MOVIE_DUPLICATES_WITHIN_3_DOCS", - "MOVIE_DUPLICATES_WITHIN_5_DOCS", - "MOVIE_DUPLICATES_WITHIN_7_DOCS", - "SHOULD_SEE_LIVE_OP_CLUSTER", "BOOKS_QUERY_HAS_LANGUAGE_INTENT", - "REWARD_RIBBON_IMPRESSION", "IRON_THRONE_QUERY", - "FAMILY_LIBRARY_SHARED_DESTINATION", "GUIDED_DISCOVERY", "BOOKS_AUTHOR_QUERY", - "HOME_SPONSORED_ADS_CLUSTER", - "HOME_SPONSORED_ADS_CLUSTER_GAP_OPTOUT", - "FAMILY_FRAUD_CHALLENGE", - "BOOKS_MONETIZABLE_QUERY", - "BOOKS_NONMONETIZABLE_QUERY", - "NON_BOOKS_QUERY", "BOOTS_PROD_V1_QUERY", - "BOOTS_TAG_OVERRIDE_QUERY", - "BOOTS_KG_ANNOTATION_QUERY", - "EDITORIAL_REVIEW_CARD_ELIGIBLE", - "BOOTS_DEST_QUERY_100_INSTALLS_QUERY", - "BOOTS_DEST_QUERY_150_INSTALLS_QUERY", "SHOULD_SEE_LIVE_OP_CLUSTER_CANDIDATES", - "REV_BOOST_V2_TEST_CODE", "ENTERTAINMENT_CLUSTER_TRIGGERING", - "BOOTS_MIN_TAGS_2", "BOOTS_EN_IN", "BOOTS_EN_GB", "BOOTS_EN_PH", "BOOTS_EN_CA", - "BOOTS_EN_AU", - "BOOTS_EN_I18N", - "BOOTS_V2_STAGING", - "OFFLINE_APP_SEARCH", "ENTERTAINMENT_CLUSTER_CONTAINER_SEARCH_ENABLED", - "BEST_SELLER_CART_TAG", - "BOOTS_DEST_QUERY_50_INSTALLS_QUERY", - "BOOTS_SAFT_SPEC2", "SEARCH_NAV_SPONSORED_ADS_CLUSTER", - "BOOTS_ISTA", - "BOOTS_EN_GLOBAL", "TOP_CHART_RANKING_INFO", "CLIENT_TEST_CODE_VERIFICATION", "APPS_PUB_QUERY", - "BOOTS_V2", - "HAS_BOOKS_BIGPOOL_RECS", - "TESTING_BOTH", - "TESTING_EVENT", - "BOOTS_MORE_CHIPS", - "BOOTS_TAG_CONVERSION_BASED_RERANKING", - "BOOTS_KG_FILTERS", - "BOOTS_JP_KR", - "BOOTS_ISTA_V2", - "BOOTS_FILTERS", - "BOOTS_EN_GLOBAL_V2", - "BOOTS_ISTA_V2_WITH_BOOTS_V2", - "BOOTS_ISTA_JP_KR", - "BOOTS_VS_ISTA_JP_KR", - "CHURNED_LIVE_OP_CANDIDATES_EVENT", - "CHURNED_LIVE_OP_EVENT", "ABUSIVE_QUERY_SQUASHING_EVENT", "HOME_SPONSORED_ADS_RE_ENGAGEMENT_CLUSTER_EVENT_LEVEL", "SEARCH_LIVE_OP_QUERY_EVENT", @@ -106605,6 +106712,10 @@ "APPS_PERSONALIZED_CATEGORICAL_GAME_SEEKING_QUERIES_EVENT_LEVEL", "APPS_PERSONALIZED_CATEGORICAL_NON_TG_QUERIES_EVENT_LEVEL", "APPS_PERSONALIZED_VERTICAL_RFY_CLUSTER_EVENT_LEVEL", + "APPS_PERSONALIZED_NAVIGATIONAL_EVENT_LEVEL", + "APPS_PERSONALIZED_NAVIGATIONAL_GAME_EVENT_LEVEL", + "APPS_PERSONALIZED_MDP_EVENT_LEVEL", + "APPS_PERSONALIZED_MDP_GAME_EVENT_LEVEL", "CDP_PROMOTIONAL_IMAGE_LOCALE_MATCH", "CDP_PROMOTIONAL_IMAGE_LOCALE_MISMATCH", "CDP_SCREENSHOT_LOCALE_MISMATCH", @@ -106739,6 +106850,7 @@ "EDITORS_CHOICE_CLUSTER_SERP_EVENT_LEVEL", "BESTK_CLUSTER_SERP_EVENT_LEVEL", "LIVEOPS_CLUSTER_SERP_EVENT_LEVEL", + "QUICKPICKS_CLUSTER_SERP_EVENT_LEVEL", "INLINE_DETAILS_AQUALITY_CHECK_PASS", "INLINE_DETAILS_AQUALITY_CHECK_FAIL", "INLINE_DETAILS_IS_INLINE_URL_FRONTEND", @@ -106759,6 +106871,12 @@ "DETAILS_PAGE_AQUALITY_PASSED_EVENT_LEVEL", "INLINE_DETAILS_CALLER_AQUALITY_CHECK_PASS", "INLINE_DETAILS_CALLER_AQUALITY_CHECK_FAIL", + "HSDP_AD_NETWORK_CALLER_TABLET_AQUALITY_CHECK_UNKNOWN", + "HSDP_AD_NETWORK_CALLER_TABLET_AQUALITY_CHECK_PASS", + "HSDP_AD_NETWORK_CALLER_TABLET_AQUALITY_CHECK_FAIL", + "HSDP_INDEPENDENT_APP_CALLER_TABLET_AQUALITY_CHECK_UNKNOWN", + "HSDP_INDEPENDENT_APP_CALLER_TABLET_AQUALITY_CHECK_PASS", + "HSDP_INDEPENDENT_APP_CALLER_TABLET_AQUALITY_CHECK_FAIL", "PTP_CLUSTER_SERP_P13N_RANKING_EVENT_LEVEL", "BROAD_INTENT_REWEIGHTING_EVENT_LEVEL", "QUERY_DEPENDENT_SNIPPET_EVENT_LEVEL", @@ -106777,6 +106895,8 @@ "MDP_P13N_GAME_QUERY_L9_EVENT_LEVEL", "SECOND_PASS_POLARIS_RERANKING_EVENT_LEVEL", "SECOND_PASS_POLARIS_WITH_RANKING_CHANGE_EVENT_LEVEL", + "EXPLORATORY_BOOSTING_EVENT_LEVEL", + "GEARHEAD_TOOLTIP_COOLWALK_DASHBOARD_UNAVAILABLE", "EVENT_LEVEL_TEST_CODE_LIMIT", "RESERVED_4", "RESERVED_5", @@ -107047,6 +107167,10 @@ "APPS_PERSONALIZED_CATEGORICAL_GAME_SEEKING_QUERIES_SESSION_LEVEL", "APPS_PERSONALIZED_CATEGORICAL_NON_TG_QUERIES_SESSION_LEVEL", "APPS_PERSONALIZED_VERTICAL_RFY_CLUSTER_SESSION_LEVEL", + "APPS_PERSONALIZED_NAVIGATIONAL_SESSION_LEVEL", + "APPS_PERSONALIZED_NAVIGATIONAL_GAME_SESSION_LEVEL", + "APPS_PERSONALIZED_MDP_SESSION_LEVEL", + "APPS_PERSONALIZED_MDP_GAME_SESSION_LEVEL", "PLAY_STORE_SHOW_CART", "MOVIES_RENTER", "LOYALTY_HOME_FIRST_TAB_SESSION_LEVEL", @@ -107507,12 +107631,15 @@ "EDITORS_CHOICE_CLUSTER_SERP_SESSION_LEVEL", "BESTK_CLUSTER_SERP_SESSION_LEVEL", "LIVEOPS_CLUSTER_SERP_SESSION_LEVEL", + "QUICKPICKS_CLUSTER_SERP_SESSION_LEVEL", "WIDE_MEDIA_CLUSTER_INVALID_VIDEO_ASSET_SESSION_LEVEL", "ALTERNATE_DEVICE_PRESENT_SESSION_LEVEL", "MULTIPLE_ALTERNATE_DEVICES_PER_FORM_FACTOR_SESSION_LEVEL", "APPS_SEARCH_DISCOVERY_CLUSTER_TRIGGERED_SESSION_LEVEL", "SUGGEST_CROSS_FORM_FACTOR_APPS_WEAR_SUGGESTIONS_ENABLED", "SUGGEST_CROSS_FORM_FACTOR_APPS_WEAR_SUGGESTIONS_AVAILABLE", + "SUGGEST_CROSS_FORM_FACTOR_APPS_TV_SUGGESTIONS_ENABLED", + "SUGGEST_CROSS_FORM_FACTOR_APPS_TV_SUGGESTIONS_AVAILABLE", "SUGGEST_APPS_SUBTEXT_SUGGESTIONS_SESSION_LEVEL", "INLINE_DETAILS_TQUALITY_CHECK_PASS_SESSION_LEVEL", "INLINE_DETAILS_TQUALITY_CHECK_FAIL_SESSION_LEVEL", @@ -107520,6 +107647,12 @@ "INLINE_DETAILS_AQUALITY_CHECK_FAIL_SESSION_LEVEL", "INLINE_DETAILS_CALLER_AQUALITY_CHECK_PASS_SESSION_LEVEL", "INLINE_DETAILS_CALLER_AQUALITY_CHECK_FAIL_SESSION_LEVEL", + "HSDP_AD_NETWORK_CALLER_TABLET_AQUALITY_CHECK_UNKNOWN_SESSION_LEVEL", + "HSDP_AD_NETWORK_CALLER_TABLET_AQUALITY_CHECK_PASS_SESSION_LEVEL", + "HSDP_AD_NETWORK_CALLER_TABLET_AQUALITY_CHECK_FAIL_SESSION_LEVEL", + "HSDP_INDEPENDENT_APP_CALLER_TABLET_AQUALITY_CHECK_UNKNOWN_SESSION_LEVEL", + "HSDP_INDEPENDENT_APP_CALLER_TABLET_AQUALITY_CHECK_PASS_SESSION_LEVEL", + "HSDP_INDEPENDENT_APP_CALLER_TABLET_AQUALITY_CHECK_FAIL_SESSION_LEVEL", "INLINE_DETAILS_IS_INLINE_URL_SESSION_LEVEL", "INLINE_DETAILS_IS_INLINE_URL_FRONTEND_SESSION_LEVEL", "INLINE_DETAILS_TQUALITY_CHECK_PASS_FRONTEND_SESSION_LEVEL", @@ -107700,6 +107833,8 @@ "YOUTUBE_FROM_LANDING_PAGE_SESSION_LEVEL", "SECOND_PASS_POLARIS_RERANKING_SESSION_LEVEL", "SECOND_PASS_POLARIS_WITH_RANKING_CHANGE_SESSION_LEVEL", + "EXPLORATORY_BOOSTING_SESSION_LEVEL", + "PLAY_BOOKS_READING_PROGRESS_TOOLTIP_SESSION_LEVEL", "SESSION_LEVEL_TEST_CODE_LIMIT", "SHOULD_SEE_LIVE_OP_CLUSTER_USER_LEVEL", "CART_ABANDONMENT_USER_LEVEL", @@ -107743,6 +107878,10 @@ "APPS_PERSONALIZED_CATEGORICAL_GAME_SEEKING_QUERIES_USER_LEVEL", "APPS_PERSONALIZED_CATEGORICAL_NON_TG_QUERIES_USER_LEVEL", "APPS_PERSONALIZED_VERTICAL_RFY_CLUSTER_USER_LEVEL", + "APPS_PERSONALIZED_NAVIGATIONAL_USER_LEVEL", + "APPS_PERSONALIZED_NAVIGATIONAL_GAME_USER_LEVEL", + "APPS_PERSONALIZED_MDP_USER_LEVEL", + "APPS_PERSONALIZED_MDP_GAME_USER_LEVEL", "SUBSCRIPTION_CANCELLATION_PROMOTION_USER_LEVEL", "SUBSCRIPTION_UPDATE_FOP_FOR_DCB_AS_PRIMARY_SIGNUP_USER_LEVEL", "SUBSCRIPTION_UPDATE_FOP_FOR_DCB_AS_PRIMARY_USER_LEVEL", @@ -108140,9 +108279,10 @@ "YOUTUBE_OPTED_IN_NOTIFICATION_DRIVEN_PREFETCH_USER_LEVEL", "PLAY_ONBOARDING_QUEST_GAMES_HOME_SERVER_USER_LEVEL", "PCH_O2_WITH_CRE_USER_LEVEL", - "MERCH_USER_JOURNEY_ROBLOX_SPEND_USER_LEVEL", + "MERCH_USER_JOURNEY_SPEND_USER_LEVEL", "PBUY_FINE_TUNING_WITH_TEXT_TREAT_USER_LEVEL", "PLAY_GAMES_ACHIEVEMENT_LOYALTY_QUEST_USER_LEVEL", + "PLAY_BOOKS_READING_PROGRESS_TOOLTIP_USER_LEVEL", "USER_LEVEL_TEST_CODE_LIMIT" ], "enumDescriptions": [ @@ -108160,31 +108300,11 @@ "", "", "", - "", - "", - "", - "", - "", - "", - "User should see the live op cluster.", "go/books-language-handling for details", - "", "Create test code for go/it-design experiment", - "", "go/guided-discovery-design for details.", "", "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", "User has live op cluster candidates.", "", "", @@ -108194,42 +108314,20 @@ "", "", "", - "", - "", - "Aqua grammar is used to narrow to offline apps.", - "", - "", - "", - "", - "", - "", - "", - "", "For verify the client test code logging flow.", "", "", - "User has books bigpool recs.", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", "", "", "", "", "", + "Candidate for Vanagon Escape hatch experiment", "", "", "", "", "", - "Candidate for Vanagon Escape hatch experiment", "", "", "", @@ -108244,12 +108342,12 @@ "", "", "", + "Track entertainment cluster when FPR is enabled.", "", "", "", "", "", - "Track entertainment cluster when FPR is enabled.", "", "", "", @@ -108259,13 +108357,12 @@ "", "", "", + "Details page of an app eligible for Books XSell", "", "", "", "", "", - "Details page of an app eligible for Books XSell", - "", "", "", "", @@ -108417,6 +108514,7 @@ "", "", "", + "", "Event level test codes containing result of aQuality lookup during market details url matching. A failed aQuality result suppresses inline details.", "", "Event level test code for Aquality/Tquality filtering in LMD project. This is a duplicated testcode created for logging in frontend.", @@ -108437,6 +108535,12 @@ "", "", "", + "Event level test codes containing results for caller tablet aQaulity checks for HSDP.", + "", + "", + "", + "", + "", "Event level test code for cluster, p13n ranking.", "TestCode for Broad Intent Reweighting Event Level.", "Event level test code for query dependent snippet.", @@ -108455,6 +108559,8 @@ "", "Second pass polaris reranking event level.", "Second pass polaris with ranking change event level.", + "Exploratory boosting event level.", + "Tooltip for unavailable dashboard support for selected navigation app.", "", "", "", @@ -108727,6 +108833,10 @@ "", "", "", + "", + "", + "", + "", "User visited the first tab of Loyalty Home.", "User visited the second tab of Loyalty Home.", "User visited the third tab of Loyalty Home.", @@ -109185,12 +109295,15 @@ "", "", "", + "", "Session level test code logged when the wide media card has invalid video asset in the asset agnostic 3x experiment.", "Session level test code that indicates that the user has at least one alternate form factor device.", "Session level test code that indicates that the user has at more than one alternate form factor devices per form factor.", "Session level test code that indicates that an apps discovery cluster was triggered on the search page.", "Session level test code that indicates that cross form factor wear Suggestion is enabled. b/222328256 for more details.", "Session level test code that indicates that at least one cross form factor wear suggestion is available. b/222328256 for more details.", + "Session level test code that indicates that cross form factor tv Suggestion is enabled. b/257494005 for more details.", + "Session level test code that indicates that at least one cross form factor tv suggestion is available. b/257494005 for more details.", "Session level test code that indicates the subtext is triggered for that group of suggestions. Could either be for XFF Cat, Nav or legacy subtext.", "Session level test codes containing result of tQuality lookup during market details url matching. A failed tQuality result suppresses inline details.", "", @@ -109198,6 +109311,12 @@ "", "", "", + "Session level test codes containing results for caller tablet aQaulity checks for HSDP.", + "", + "", + "", + "", + "", "Session level test code indicating external details URL is an inline URL.", "Session level test code for Aquality/Tquality filtering in LMD project. This is a duplicated testcode created for logging in frontend.", "", @@ -109378,6 +109497,8 @@ "", "Second pass polaris reranking session level.", "Second pass polaris with ranking change session level.", + "Exploratory boosting session level.", + "Session level test code for reading progress tooltip.", "", "User should see the live op cluster.", "Cart abandonment flow for purchase flow.", @@ -109421,6 +109542,10 @@ "", "", "", + "", + "", + "", + "", "Subscription cancellation flow for purchase flow per user.", "Subscription update fop flow at signup when the primary fop", "is dcb. Subscription update fop flow when the primary fop is dcb.", @@ -109818,9 +109943,10 @@ "User level test code for YouTube commerce, tracking users who opted in notification driven prefetch.", "User level test code for Play Onboarding quest, tracking users who are eligible for Play Onboarding quest in Games Home. This test code is logged on the server side.", "User level test code for tracking users who are being shown PersistentCartHeader through purchase flow. This test code is logged on the server side.", - "User level test code for Merch user journey roblox spend experiment. This test code is logged on the server side.", + "User level test code for Merch user journey experiment. This test code is logged on the Growth Engine server side.", "User level test code for new uplift modeling architecture with campaign features in treatment tower.", "User level test code for Non-Play Growth Events experiment (go/npge-prd). Logged on the server side and applied to users that visit Loyalty Home and are eligible to receive a quest with Play Games Achievement tasks, regardless of whether the quest was shown or held back.", + "User level test code for reading progress tooltip.", "" ], "type": "string" @@ -113461,7 +113587,7 @@ "type": "object" }, "VideoContentSearchVideoAnchorScoreInfo": { - "description": "Message to contain scoring / debugging information. If you want to add information which is not directly used in the final VideoAnchor data, it should be put here. Next ID: 25", + "description": "Message to contain scoring / debugging information. If you want to add information which is not directly used in the final VideoAnchor data, it should be put here. Next ID: 27", "id": "VideoContentSearchVideoAnchorScoreInfo", "properties": { "anchorCommonFeatureSet": { @@ -113472,6 +113598,10 @@ "$ref": "Proto2BridgeMessageSet", "description": "Additional attachments which extend MessageSet." }, + "babelCheckpointPath": { + "description": "The path to the particular babel checkpoint", + "type": "string" + }, "captionEntityAnchorFeatures": { "$ref": "VideoContentSearchCaptionEntityAnchorFeatures", "description": "Training features and debug info for caption entity anchors." @@ -113536,6 +113666,14 @@ "$ref": "VideoContentSearchMultimodalTopicTrainingFeatures", "description": "Features for a generated topic used to build training data for multimodal topics." }, + "normalizedBabelEmbedding": { + "description": "Normalized babel embedding of anchor.label(). If the label has more than one sentences, the embedding will be the averaged normalized embedding of each sentence.", + "items": { + "format": "float", + "type": "number" + }, + "type": "array" + }, "ocrAnchorFeature": { "$ref": "VideoContentSearchOnScreenTextFeature", "description": "OCR anchor features." @@ -125748,7 +125886,7 @@ "type": "object" }, "YoutubeCommentsClusteringMiniStanza": { - "description": "Intended to be simpler to work with than the ExportedStanza it's derived from See documentation: https://g3doc.corp.google.com/company/teams/youtube/community_intelligence/eng_resources/data_sources.md#ministanza Next available: 75", + "description": "Intended to be simpler to work with than the ExportedStanza it's derived from See documentation: https://g3doc.corp.google.com/company/teams/youtube/community_intelligence/eng_resources/data_sources.md#ministanza Next available: 76", "id": "YoutubeCommentsClusteringMiniStanza", "properties": { "ansibleScores": { @@ -126281,6 +126419,10 @@ "format": "double", "type": "number" }, + "ytAuthorChannelId": { + "description": "The youtube channel id of the comment author.", + "type": "string" + }, "ytCommentQualityScore": { "description": "Existing quality corpus scores.", "format": "double", @@ -126832,7 +126974,7 @@ } }, "servicePath": "", - "title": "contentwarehouse API", + "title": "Document AI Warehouse API", "version": "v1", "version_module": true } \ No newline at end of file diff --git a/contentwarehouse/v1/contentwarehouse-gen.go b/contentwarehouse/v1/contentwarehouse-gen.go index f09f303e481..2a6c58deb02 100644 --- a/contentwarehouse/v1/contentwarehouse-gen.go +++ b/contentwarehouse/v1/contentwarehouse-gen.go @@ -4,7 +4,7 @@ // Code generated file. DO NOT EDIT. -// Package contentwarehouse provides access to the contentwarehouse API. +// Package contentwarehouse provides access to the Document AI Warehouse API. // // For product documentation, see: https://cloud.google.com/document-warehouse // @@ -3127,6 +3127,11 @@ type AppsPeopleOzExternalMergedpeopleapiAffinity struct { // "DRIVE_SEARCH_FILTER_AFFINITY" // "CULTURE_EVENTS_CALENDAR_AFFINITY" // "DATABRIDGE_CONSOLE_AFFINITY" + // "COMMSTAR_AFFINITY" + // "CDDB_AFFINITY" + // "DATA_STUDIO_SPACES_AFFINITY" + // "SOJI_AFFINITY" + // "PLAY_MOVIES_ANDROID_AFFINITY" AffinityType string `json:"affinityType,omitempty"` // ContainerId: The ID of the container @@ -4017,6 +4022,75 @@ func (s *AppsPeopleOzExternalMergedpeopleapiConnectionReminder) MarshalJSON() ([ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AppsPeopleOzExternalMergedpeopleapiContactCreateContextInfo: Contact +// creation timestamps and related metadata. See +// go/contact-edit-history. This message is a pure wrapper of the shared +// ContactCreactionContext message so that it can be a top-level person +// field. No other fields should be added to the message. +type AppsPeopleOzExternalMergedpeopleapiContactCreateContextInfo struct { + ContactCreateContext *SocialGraphApiProtoContactCreateContext `json:"contactCreateContext,omitempty"` + + Metadata *AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata `json:"metadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ContactCreateContext") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ContactCreateContext") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AppsPeopleOzExternalMergedpeopleapiContactCreateContextInfo) MarshalJSON() ([]byte, error) { + type NoMethod AppsPeopleOzExternalMergedpeopleapiContactCreateContextInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsPeopleOzExternalMergedpeopleapiContactEditContextInfo: Contact +// edit timestamps and related metadata. See go/contact-edit-history. +// This message is a pure wrapper of the shared ContactCreactionContext +// message so that it can be a top-level person field. No other fields +// should be added to the message. +type AppsPeopleOzExternalMergedpeopleapiContactEditContextInfo struct { + ContactEditContext *SocialGraphApiProtoContactEditContext `json:"contactEditContext,omitempty"` + + Metadata *AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata `json:"metadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ContactEditContext") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ContactEditContext") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AppsPeopleOzExternalMergedpeopleapiContactEditContextInfo) MarshalJSON() ([]byte, error) { + type NoMethod AppsPeopleOzExternalMergedpeopleapiContactEditContextInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AppsPeopleOzExternalMergedpeopleapiContactGroupMembership: A // membership that the person has. The person can be a member of // multiple circles and multiple contact-groups. A circle membership is @@ -7182,6 +7256,10 @@ type AppsPeopleOzExternalMergedpeopleapiPerson struct { // container. ConnectionReminder []*AppsPeopleOzExternalMergedpeopleapiConnectionReminder `json:"connectionReminder,omitempty"` + ContactCreateContextInfo []*AppsPeopleOzExternalMergedpeopleapiContactCreateContextInfo `json:"contactCreateContextInfo,omitempty"` + + ContactEditContextInfo []*AppsPeopleOzExternalMergedpeopleapiContactEditContextInfo `json:"contactEditContextInfo,omitempty"` + // ContactGroupMembership: Contact groups that this person is a member // of. ContactGroupMembership []*AppsPeopleOzExternalMergedpeopleapiContactGroupMembership `json:"contactGroupMembership,omitempty"` @@ -7337,6 +7415,8 @@ type AppsPeopleOzExternalMergedpeopleapiPerson struct { // containers. ReadOnlyProfileInfo []*AppsPeopleOzExternalMergedpeopleapiReadOnlyProfileInfo `json:"readOnlyProfileInfo,omitempty"` + // Relation: See go/relation-vs-relationship for relation vs + // relationship explanation. Relation []*AppsPeopleOzExternalMergedpeopleapiRelation `json:"relation,omitempty"` // RelationshipInterest: DEPRECATED. No data is returned for this field @@ -9120,10 +9200,11 @@ func (s *AppsPeopleOzExternalMergedpeopleapiReadOnlyProfileInfoDomainInfo) Marsh } // AppsPeopleOzExternalMergedpeopleapiRelation: Relation stores the -// related person between the contact or profile and a third person This -// field currently includes RelationshipToMe data in fields value and -// canonical_value for ContainerType CONTACT_ANNOTATION. This will be -// moved to RelationshipToMe in b/221081499. +// related person between the contact or profile and a third person. See +// go/relation-vs-relationship for relation vs relationship explanation. +// This field currently includes RelationshipToMe data in fields value +// and canonical_value for ContainerType CONTACT_ANNOTATION. This will +// be moved to RelationshipToMe in b/221081499. type AppsPeopleOzExternalMergedpeopleapiRelation struct { // CanonicalValue: Canonicalized `value` of the relation from this // person to the user. This is currently used for data from contact @@ -11332,7 +11413,8 @@ type AssistantApiClientOpPropertiesDeviceModifySettingClientOpProperty struct { // "STORAGE_USAGE" // "SWIPE_FOR_NOTIFICATION" // "SWITCH_ACCESS" - // "SYSTEM_UPDATE" + // "SYSTEM_UPDATE" - Deprecated, use SYSTEM_UPDATES instead. + // "SYSTEM_UPDATES" // "SYSTEM_NAVIGATION" - Settings page for configuring how navigation // between apps is done. Specifically android has choice between Buttons // of Gestures mode. @@ -14962,7 +15044,9 @@ func (s *AssistantApiLensPerceptionCapabilitiesLensCapabilitiesText) MarshalJSON // Translation capability. type AssistantApiLensPerceptionCapabilitiesLensCapabilitiesTranslate struct { // SupportedLanguageTags: The list of language IETF BCP 47 tags that are - // supported. See the full list at go/androidlanguages. + // supported. See the full details in the comment on the equivalent + // field in: + // http://google3/java/com/google/android/apps/gsa/search/shared/service/proto/lens_service_event.proto;l=55;rcl=355512559 SupportedLanguageTags []string `json:"supportedLanguageTags,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -19264,8 +19348,20 @@ func (s *AssistantApiSupportedClientOp) MarshalJSON() ([]byte, error) { } // AssistantApiSupportedClientOpSupportedExecution: Additional -// properties that client can support for executing the client op. +// properties that client can support for executing the client op. They +// are surface-specific execution properties and are unrelated to the +// execution model. type AssistantApiSupportedClientOpSupportedExecution struct { + // SupportsPartialFulfillment: ClientOp execution supports special + // rendering behavior while the user is in the middle of expressing + // their query. This behavior includes: 1) New partial output always + // over-writes prior partial output. 2) Canceling the interaction + // removes partial fulfilment from any user visible interaction history. + // If this is true, whether to apply the special rendering behavior will + // be determined by PartialFulfillmentRenderingParams. More details can + // be found at go/ma-natcon-pf-api. + SupportsPartialFulfillment bool `json:"supportsPartialFulfillment,omitempty"` + // SupportsSynchronousExecution: Client can support synchronous // execution of the client op. For tts.OUTPUT client op it means that // client would honor |synchronous_playback_args| argument. Please see @@ -19273,7 +19369,7 @@ type AssistantApiSupportedClientOpSupportedExecution struct { SupportsSynchronousExecution bool `json:"supportsSynchronousExecution,omitempty"` // ForceSendFields is a list of field names (e.g. - // "SupportsSynchronousExecution") to unconditionally include in API + // "SupportsPartialFulfillment") to unconditionally include in API // requests. By default, fields with empty or default values are omitted // from API requests. However, any non-pointer, non-interface field // appearing in ForceSendFields will be sent to the server regardless of @@ -19282,7 +19378,7 @@ type AssistantApiSupportedClientOpSupportedExecution struct { ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. - // "SupportsSynchronousExecution") to include in API requests with the + // "SupportsPartialFulfillment") to include in API requests with the // JSON null value. By default, fields with empty values are omitted // from API requests. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a @@ -21692,8 +21788,14 @@ func (s *AssistantGroundingRankerGroundingProviderFeatures) MarshalJSON() ([]byt } // AssistantGroundingRankerMediaGroundingProviderFeatures: Features to -// be passed from Media GP to HGR. Next ID: 2 +// be passed from Media GP to HGR. Next ID: 4 type AssistantGroundingRankerMediaGroundingProviderFeatures struct { + // IsSeedRadio: True if the media deeplink has tag SEED_RADIO. + IsSeedRadio bool `json:"isSeedRadio,omitempty"` + + // IsSeedRadioRequest: True if the user requests seed radio. + IsSeedRadioRequest bool `json:"isSeedRadioRequest,omitempty"` + // MscRate: MSC(Media Short Click) rate. MSC rate = total number of MSC // events / total number of MSC candidates The event is considered as // MSC candidate if the event is a media seeking query(excluding @@ -21705,7 +21807,7 @@ type AssistantGroundingRankerMediaGroundingProviderFeatures struct { // go/billboard-navboost, go/magma-music-actions-efrac MscRate float64 `json:"mscRate,omitempty"` - // ForceSendFields is a list of field names (e.g. "MscRate") to + // ForceSendFields is a list of field names (e.g. "IsSeedRadio") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -21713,10 +21815,10 @@ type AssistantGroundingRankerMediaGroundingProviderFeatures struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MscRate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "IsSeedRadio") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -23129,6 +23231,9 @@ type AssistantLogsDeviceSelectionResultLog struct { // go/partial-states-in-targeting-library for more details. // "NO_DEVICE_SATISFIES_CAPABILITIES_REQUIREMENT" - Error about when // no qualified device satisfies the device capability requirement. + // "HYBRID_DEVICE_NOT_QUALIFIED" - All remote hybrid devices fail the + // propertries requirement specific (lock/unlock, etc) for hybrid + // devices (such as Tangor). MediaFocusSelectionErrorType string `json:"mediaFocusSelectionErrorType,omitempty"` // ProcessorInfo: The log for each stage of Lumos, showing the number of @@ -24766,7 +24871,8 @@ type AssistantVerticalsHomeautomationProtoCommonStructureBasedRoutine struct { // "UNDEFINED" // "CURATED" // "ALARM" - // "CUSTOM" - SCHEDULED = 3 [deprecated = true]; + // "CUSTOM" + // "CUSTOM_SCRIPT" - SCHEDULED = 3 [deprecated = true]; Type string `json:"type,omitempty"` // UiPayload: UI format payload primarily for external team use. @@ -31621,6 +31727,8 @@ type DrishtiVesperThumbnail struct { // FirstFrameThumbnailer) // "VERSION_CUSTOM" - Custom image (not generated). Likely client // provided. + // "VERSION_REJECTED" - A gray fallback image for images that have + // been rejected. ThumbnailerModelVersion string `json:"thumbnailerModelVersion,omitempty"` // TimestampMs: Thumbnail timestamp in milliseconds. @@ -37161,7 +37269,8 @@ type GeostoreDataSourceProto struct { // "PROVIDER_VATTENFALL" // "PROVIDER_VIETGIS" // "PROVIDER_UNITE" - // "PROVIDER_NEOGY" - Note: Next available value is 0x126F. + // "PROVIDER_NEOGY" + // "PROVIDER_AMPUP" - Note: Next available value is 0x1270. Provider string `json:"provider,omitempty"` // RawMetadata: For every key that is used in raw_data from this source, @@ -41567,7 +41676,8 @@ type GeostoreInternalSourceSummaryProto struct { // "PROVIDER_VATTENFALL" // "PROVIDER_VIETGIS" // "PROVIDER_UNITE" - // "PROVIDER_NEOGY" - Note: Next available value is 0x126F. + // "PROVIDER_NEOGY" + // "PROVIDER_AMPUP" - Note: Next available value is 0x1270. Provider string `json:"provider,omitempty"` // ForceSendFields is a list of field names (e.g. "Dataset") to @@ -43734,7 +43844,8 @@ type GeostoreOntologyRawGConceptInstanceProto struct { // "PROVIDER_VATTENFALL" // "PROVIDER_VIETGIS" // "PROVIDER_UNITE" - // "PROVIDER_NEOGY" - Note: Next available value is 0x126F. + // "PROVIDER_NEOGY" + // "PROVIDER_AMPUP" - Note: Next available value is 0x1270. Provider string `json:"provider,omitempty"` SourceDataset string `json:"sourceDataset,omitempty"` @@ -45053,70 +45164,6 @@ func (s *GeostorePriceInfoProto) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type GeostorePriceInfoSourceDetails struct { - LastUpdateSources []*GeostorePriceInfoSourceDetailsSourceData `json:"lastUpdateSources,omitempty"` - - SourceData []*GeostorePriceInfoSourceDetailsSourceData `json:"sourceData,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LastUpdateSources") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LastUpdateSources") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GeostorePriceInfoSourceDetails) MarshalJSON() ([]byte, error) { - type NoMethod GeostorePriceInfoSourceDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type GeostorePriceInfoSourceDetailsSourceData struct { - // ClientProjectNumber: Project number of the GMB API client. Set only - // if the source is EXTERNAL_GMB_API. - ClientProjectNumber int64 `json:"clientProjectNumber,omitempty,string"` - - // Possible values: - // "SOURCE_UNSPECIFIED" - No source specified. - // "NMX_UI" - The menu comes from our own UI. - // "EXTERNAL_GMB_API" - The menu comes from a third party. - Source string `json:"source,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ClientProjectNumber") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientProjectNumber") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GeostorePriceInfoSourceDetailsSourceData) MarshalJSON() ([]byte, error) { - type NoMethod GeostorePriceInfoSourceDetailsSourceData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GeostorePriceInfoStatus: Providers of PriceInfo (e.g. SinglePlatform, // YEXT) send verified and unverified listings. PriceInfoStatus is used // to encapsulate this information. @@ -45274,10 +45321,6 @@ type GeostorePriceListProto struct { // all sections contain only the same type of items. Section []*GeostorePriceListSectionProto `json:"section,omitempty"` - // SourceDetails: Source of the information retrieved, could be from our - // own NMX UI or a third party API. - SourceDetails *GeostorePriceInfoSourceDetails `json:"sourceDetails,omitempty"` - // SourceUrl: Where this price list comes from. If set, this must also // be a member of the price_list_url field, and represents translations // of a single URL. @@ -46273,7 +46316,8 @@ type GeostoreProvenanceProto struct { // "PROVIDER_VATTENFALL" // "PROVIDER_VIETGIS" // "PROVIDER_UNITE" - // "PROVIDER_NEOGY" - Note: Next available value is 0x126F. + // "PROVIDER_NEOGY" + // "PROVIDER_AMPUP" - Note: Next available value is 0x1270. Provider string `json:"provider,omitempty"` // ForceSendFields is a list of field names (e.g. "Dataset") to @@ -53277,7 +53321,7 @@ type GoogleCloudContentwarehouseV1AccessControlAction struct { // OperationType: Identifies the type of operation. // // Possible values: - // "UNKNOWN" + // "UNKNOWN" - The unknown operation type. // "ADD_POLICY_BINDING" - Adds newly given policy bindings in the // existing bindings list. // "REMOVE_POLICY_BINDING" - Removes newly given policy bindings from @@ -53403,7 +53447,7 @@ type GoogleCloudContentwarehouseV1ActionOutput struct { // ActionState: State of an action. // // Possible values: - // "UNKNOWN" + // "UNKNOWN" - The unknown state. // "ACTION_SUCCEEDED" - State indicating action executed successfully. // "ACTION_FAILED" - State indicating action failed. // "ACTION_TIMED_OUT" - State indicating action timed out. @@ -53547,20 +53591,24 @@ type GoogleCloudContentwarehouseV1CreateDocumentMetadata struct { // for DocumentService.CreateDocument. type GoogleCloudContentwarehouseV1CreateDocumentRequest struct { // CloudAiDocumentOption: Request Option for processing Cloud AI - // Document in CW Document. + // Document in Document Warehouse. This field offers limited support for + // mapping entities from Cloud AI Document to Warehouse Document. Please + // consult with product team before using this field and other available + // options. CloudAiDocumentOption *GoogleCloudContentwarehouseV1CloudAIDocumentOption `json:"cloudAiDocumentOption,omitempty"` // CreateMask: Field mask for creating Document fields. If mask path is // empty, it means all fields are masked. For the `FieldMask` // definition, see - // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask. CreateMask string `json:"createMask,omitempty"` // Document: Required. The document to create. Document *GoogleCloudContentwarehouseV1Document `json:"document,omitempty"` - // Policy: Default document policy during creation. Conditions defined - // in the policy will be ignored. + // Policy: Default document policy during creation. This refers to an + // Identity and Access (IAM) policy, which specifies access controls for + // the Document. Conditions defined in the policy will be ignored. Policy *GoogleIamV1Policy `json:"policy,omitempty"` // RequestMetadata: The meta information collected about the end user, @@ -53829,10 +53877,6 @@ func (s *GoogleCloudContentwarehouseV1DeleteDocumentRequest) MarshalJSON() ([]by // GoogleCloudContentwarehouseV1Document: Defines the structure for // content warehouse document proto. type GoogleCloudContentwarehouseV1Document struct { - // AsyncEnabled: If true, makes the document visible to asynchronous - // policies and rules. - AsyncEnabled bool `json:"asyncEnabled,omitempty"` - // CloudAiDocument: Document AI format to save the structured content, // including OCR. CloudAiDocument *GoogleCloudDocumentaiV1Document `json:"cloudAiDocument,omitempty"` @@ -53905,16 +53949,15 @@ type GoogleCloudContentwarehouseV1Document struct { // project and location. ReferenceId string `json:"referenceId,omitempty"` - // StructuredContentUri: A path linked to structured content file. - StructuredContentUri string `json:"structuredContentUri,omitempty"` - // TextExtractionDisabled: If true, text extraction will not be // performed. TextExtractionDisabled bool `json:"textExtractionDisabled,omitempty"` - // Title: Title that describes the document. This is usually present in - // the top section of the document, and is a mandatory field for the - // question-answering feature. + // TextExtractionEnabled: If true, text extraction will be performed. + TextExtractionEnabled bool `json:"textExtractionEnabled,omitempty"` + + // Title: Title that describes the document. This can be the top heading + // or text that describes the document. Title string `json:"title,omitempty"` // UpdateTime: Output only. The time when the document is last updated. @@ -53927,7 +53970,7 @@ type GoogleCloudContentwarehouseV1Document struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AsyncEnabled") to + // ForceSendFields is a list of field names (e.g. "CloudAiDocument") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -53935,12 +53978,13 @@ type GoogleCloudContentwarehouseV1Document struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AsyncEnabled") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CloudAiDocument") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -55256,7 +55300,10 @@ type GoogleCloudContentwarehouseV1PropertyDefinition struct { // sub-property, all the parent properties must be marked filterable. IsFilterable bool `json:"isFilterable,omitempty"` - // IsMetadata: Whether the property is user supplied metadata. + // IsMetadata: Whether the property is user supplied metadata. This + // out-of-the box placeholder setting can be used to tag derived + // properties. Its value and interpretation logic should be implemented + // by API user. IsMetadata bool `json:"isMetadata,omitempty"` // IsRepeatable: Whether the property can have multiple values. @@ -55636,7 +55683,7 @@ type GoogleCloudContentwarehouseV1Rule struct { // TriggerType: Identifies the trigger type for running the policy. // // Possible values: - // "UNKNOWN" + // "UNKNOWN" - Trigger for unknown action. // "ON_CREATE" - Trigger for create document action. // "ON_UPDATE" - Trigger for update document action. TriggerType string `json:"triggerType,omitempty"` @@ -55889,16 +55936,16 @@ type GoogleCloudContentwarehouseV1SearchDocumentsRequest struct { // service. RequestMetadata *GoogleCloudContentwarehouseV1RequestMetadata `json:"requestMetadata,omitempty"` - // RequireTotalSize: Optional. Controls if the search document request - // requires the return of a total size of matched documents. See + // RequireTotalSize: Controls if the search document request requires + // the return of a total size of matched documents. See // SearchDocumentsResponse.total_size. Enabling this flag may adversely // impact performance. Hint: If this is used with pagination, set this // flag on the initial query but set this to false on subsequent page // calls (keep the total count locally). Defaults to false. RequireTotalSize bool `json:"requireTotalSize,omitempty"` - // TotalResultSize: Optional. Controls if the search document request - // requires the return of a total size of matched documents. See + // TotalResultSize: Controls if the search document request requires the + // return of a total size of matched documents. See // SearchDocumentsResponse.total_size. // // Possible values: @@ -56040,6 +56087,8 @@ func (s *GoogleCloudContentwarehouseV1SearchDocumentsResponseMatchingDocument) M type GoogleCloudContentwarehouseV1SetAclRequest struct { // Policy: Required. REQUIRED: The complete policy to be applied to the // `resource`. The size of the policy is limited to a few 10s of KB. + // This refers to an Identity and Access (IAM) policy, which specifies + // access controls for the Document. Policy *GoogleIamV1Policy `json:"policy,omitempty"` // ProjectOwner: For Set Project ACL only. Authorization check for end @@ -56332,7 +56381,10 @@ type GoogleCloudContentwarehouseV1UpdateDocumentMetadata struct { // for DocumentService.UpdateDocument. type GoogleCloudContentwarehouseV1UpdateDocumentRequest struct { // CloudAiDocumentOption: Request Option for processing Cloud AI - // Document in CW Document. + // Document in Document Warehouse. This field offers limited support for + // mapping entities from Cloud AI Document to Warehouse Document. Please + // consult with product team before using this field and other available + // options. CloudAiDocumentOption *GoogleCloudContentwarehouseV1CloudAIDocumentOption `json:"cloudAiDocumentOption,omitempty"` // Document: Required. The document to update. @@ -56522,6 +56574,7 @@ func (s *GoogleCloudContentwarehouseV1UpdateRuleSetRequest) MarshalJSON() ([]byt return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudContentwarehouseV1UserInfo: The user information. type GoogleCloudContentwarehouseV1UserInfo struct { // GroupIds: The unique group identifications which the user is belong // to. The format is "group:yyyy@example.com"; @@ -65179,8 +65232,14 @@ func (s *ImageRegionsImageRegions) UnmarshalJSON(data []byte) error { return nil } -// ImageRepositoryAmarnaCloudSpeechSignals: Next Tag: 7 +// ImageRepositoryAmarnaCloudSpeechSignals: Next Tag: 8 type ImageRepositoryAmarnaCloudSpeechSignals struct { + // DuplicateOfYtS3Asr: If this field is set to true, it means that + // Youtube already processed the ASR from S3 for the langID. Please find + // the ASR result from transcript_asr in + // google3/image/repository/proto/video_search.proto instead. + DuplicateOfYtS3Asr bool `json:"duplicateOfYtS3Asr,omitempty"` + // LangWithoutLocale: The language id input for creating this ASR // without regional info. Same format as in go/ytlangid. This field is // populated in Kronos Amarna Cloud Speech operator and passed to @@ -65198,7 +65257,7 @@ type ImageRepositoryAmarnaCloudSpeechSignals struct { // this field is derived from the SpeechRecognitionResult field above. TranscriptAsr *PseudoVideoData `json:"transcriptAsr,omitempty"` - // ForceSendFields is a list of field names (e.g. "LangWithoutLocale") + // ForceSendFields is a list of field names (e.g. "DuplicateOfYtS3Asr") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -65206,7 +65265,7 @@ type ImageRepositoryAmarnaCloudSpeechSignals struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "LangWithoutLocale") to + // NullFields is a list of field names (e.g. "DuplicateOfYtS3Asr") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -75127,7 +75186,7 @@ func (s *KnowledgeAnswersIntentQueryFunctionCall) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// KnowledgeAnswersIntentQueryFunctionCallSignals: Next ID: 34 +// KnowledgeAnswersIntentQueryFunctionCallSignals: Next ID: 35 type KnowledgeAnswersIntentQueryFunctionCallSignals struct { // ArgumentComposingMid: The argument mid that was used to compose the // entity for a concept interpretation, along with the @@ -75213,6 +75272,10 @@ type KnowledgeAnswersIntentQueryFunctionCallSignals struct { // ambiguous SystemUncertain intent go/intent-disambiguation. IsDisambiguationIntent bool `json:"isDisambiguationIntent,omitempty"` + // IsNeuralCategoricalInterpretation: Whether the interpretation was + // generated from the neural categorical parser. + IsNeuralCategoricalInterpretation bool `json:"isNeuralCategoricalInterpretation,omitempty"` + // IsUiCompositionIntent: Denotes this is a sub-intent used for // composing an Assistant UI response. The assistant dialog should // output ui_composition_shelf in the SystemResponse if it can fulfill @@ -79576,11 +79639,6 @@ type LensDiscoveryStylePersonAttributes struct { // person to the whole image discretized into range [0, 100]. DiscretizedVisualSaliencyScore int64 `json:"discretizedVisualSaliencyScore,omitempty"` - // IconicPersonBoundingBox: Normalized bounding box of the most iconic - // person in the image. The x,y coordinates are in the range [0, 1]. - // Deprecated to comply with CDS requirements (b/228535076). - IconicPersonBoundingBox *PhotosVisionGroundtruthdbNormalizedBoundingBox `json:"iconicPersonBoundingBox,omitempty"` - // PersonBoundingBox: Bounding box of the most iconic person in the // image. PersonBoundingBox *LensDiscoveryStyleBoundingBox `json:"personBoundingBox,omitempty"` @@ -79754,11 +79812,6 @@ type LensDiscoveryStylePersonDetectionSignalsDetectedPerson struct { // BoundingBox: Bounding box of the detected person. BoundingBox *LensDiscoveryStyleBoundingBox `json:"boundingBox,omitempty"` - // NormalizedBoundingBox: Normalized bounding box of the detected - // person. The x,y coordinates are in the range [0, 1]. Deprecated to - // comply with CDS requirements (b/228535076). - NormalizedBoundingBox *PhotosVisionGroundtruthdbNormalizedBoundingBox `json:"normalizedBoundingBox,omitempty"` - // ForceSendFields is a list of field names (e.g. "BoundingBox") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -82339,6 +82392,9 @@ func (s *MustangReposWwwSnippetsSnippetsRanklabFeatures) UnmarshalJSON(data []by // MustangSnippetsRenderedToken: Tidbit token rendered in generating // snippet/title. type MustangSnippetsRenderedToken struct { + // Bolded: Is the rendered token bolded (insided ) + Bolded bool `json:"bolded,omitempty"` + // ByteOffsetBegin: Byte offset range in the rendered text that // corresponds to this token. [byte_offset_begin, byte_offset_end) // inclusive @@ -82358,7 +82414,7 @@ type MustangSnippetsRenderedToken struct { TokenPos int64 `json:"tokenPos,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ByteOffsetBegin") to + // ForceSendFields is a list of field names (e.g. "Bolded") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -82366,13 +82422,12 @@ type MustangSnippetsRenderedToken struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ByteOffsetBegin") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Bolded") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -90818,6 +90873,7 @@ type NlpSemanticParsingModelsMediaMediaAnnotation struct { // "DIRECTOR" - TV or film director. (e.g. "James Cameron"). // "ACTOR" - Actor: TV, film actor etc. (e.g. "Tom Cruise"). // "MOVIE_SERIES" - Movie series. (e.g. "Home Alone"). + // "APP" - Used for App. ContentType string `json:"contentType,omitempty"` // Image: Images of the media. @@ -97723,6 +97779,7 @@ type PeoplestackFlexorgsProtoInternalExternal struct { // "DATABRIDGE_CONSOLE" - Databridge Console Team contact: // databrige-eng@google.com // "COMMSTAR" - Commstar Team contact: mdb.commstar-dev@google.com + // "CDDB" - Cddb Team contact: cddb-dev-team@google.com // "DEPRECATED_QUICKSTART_FLUME" // "DUO_CLIENT" - Duo Client Team contact: duo-eng@google.com // "ALBERT" - Project albert (go/albert-frontend) Team contact: @@ -99729,6 +99786,12 @@ type PhotosAnimationMetadata struct { // not animated), the duration will be 0. DurationMs int64 `json:"durationMs,omitempty,string"` + // LoopCount: The number of times the animation plays. If 0, the + // animation will loop indefinitely. If positive, this number includes + // the initial playthrough. For example, a value of 3 means that each + // frame is shown 3 times. + LoopCount int64 `json:"loopCount,omitempty"` + NumFrames int64 `json:"numFrames,omitempty,string"` // ForceSendFields is a list of field names (e.g. "DurationMs") to @@ -103739,6 +103802,10 @@ type QualityCalypsoAppsUniversalAuLiveOpDetail struct { // go/liveops-config-deals // "IAP_SKU_DEALS" - Out-of-app purchasable in-app promotions funded // by Play. + // "FEATURED_PRODUCTS" - Out-of-app purchasable in-app products, + // configured by developers through Play Console. + // go/store-content-featured_product-prd + // go/featured-in-app-products-pc-dd, go/featured-products-serving-dd EventType string `json:"eventType,omitempty"` // EventUrl: ios @@ -105839,7 +105906,7 @@ func (s *QualityNsrNSRVersionedData) UnmarshalJSON(data []byte) error { } // QualityNsrNsrData: NOTE: When adding a new field to be propagated to -// Raffia check if NsrPatternSignalSpec needs to be updated. Next ID: 50 +// Raffia check if NsrPatternSignalSpec needs to be updated. Next ID: 51 type QualityNsrNsrData struct { // ArticleScore: Score from article classification of the site. ArticleScore float64 `json:"articleScore,omitempty"` @@ -105908,6 +105975,9 @@ type QualityNsrNsrData struct { Nsr float64 `json:"nsr,omitempty"` + // NsrEpoch: The epoch from which this NSR value is coming from. + NsrEpoch string `json:"nsrEpoch,omitempty"` + // NsrOverrideBid: This signal is used to unconditionally override NSR // as a bid in Q*. Should only be used in case of emergency (see // go/nsr-override-bid). To have any effect, the value should be present @@ -106804,12 +106874,16 @@ func (s *QualityPreviewChosenSnippetInfoTidbitInfo) MarshalJSON() ([]byte, error } // QualityPreviewRanklabSnippet: Snippet candidate related information -// and signal scores. Next ID: 11 +// and signal scores. This message is used for both snippet scoring and +// ranklab features recording. Next ID: 12 ================== Features +// populated in production ======================= type QualityPreviewRanklabSnippet struct { + // BrainFeatures: Features from SnippetFlow in Superroot. BrainFeatures *QualityPreviewSnippetBrainFeatures `json:"brainFeatures,omitempty"` DocumentFeatures *QualityPreviewSnippetDocumentFeatures `json:"documentFeatures,omitempty"` + // ExperimentalFeatures: For experimental usage, not populated yet. ExperimentalFeatures *QualityPreviewSnippetExperimentalFeatures `json:"experimentalFeatures,omitempty"` // FinalScore: The final score of this candidate. @@ -106832,6 +106906,9 @@ type QualityPreviewRanklabSnippet struct { // features. QueryTermCoverageFeatures *QualityPreviewSnippetQueryTermCoverageFeatures `json:"queryTermCoverageFeatures,omitempty"` + // RadishFeatures: Radish related information. + RadishFeatures *QualityPreviewSnippetRadishFeatures `json:"radishFeatures,omitempty"` + // SnippetInfo: Information to identify current chosen snippet. SnippetInfo *QualityPreviewChosenSnippetInfo `json:"snippetInfo,omitempty"` @@ -109848,7 +109925,7 @@ func (s *QualityShoppingShoppingAttachmentOffer) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// QualityShoppingShoppingAttachmentPBlock: Next ID: 15 +// QualityShoppingShoppingAttachmentPBlock: Next ID: 18 type QualityShoppingShoppingAttachmentPBlock struct { // FullTitle: Field full_title may contain duplicate info from title and // list_title. @@ -110001,6 +110078,10 @@ type QualityShoppingShoppingAttachmentProduct struct { // ShoppingAnnotation.Product RelevanceEmbedding []*QualityRankembedMustangMustangRankEmbedInfo `json:"relevanceEmbedding,omitempty"` + // WeakGlobalProductClusterId: Matched/Inferred weak product identity - + // set only if the global_product_cluster_id is missing + WeakGlobalProductClusterId uint64 `json:"weakGlobalProductClusterId,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "AggregateRating") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -110606,6 +110687,75 @@ func (s *QualitySitemapTwoLevelTarget) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// QualitySnippetsTruncationSnippetBoldedRange: A bolded range in +// printed snippet lines. +type QualitySnippetsTruncationSnippetBoldedRange struct { + // Begin: Bolded range [begin, end) + Begin *QualitySnippetsTruncationSnippetBoldedRangePosition `json:"begin,omitempty"` + + End *QualitySnippetsTruncationSnippetBoldedRangePosition `json:"end,omitempty"` + + // Text: Only populated for debugging. + Text string `json:"text,omitempty"` + + // Possible values: + // "TYPE_UNSPECIFIED" + // "QUERY_TERM_MATCH" + // "RADISH" + // "BRAIN" + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Begin") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Begin") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *QualitySnippetsTruncationSnippetBoldedRange) MarshalJSON() ([]byte, error) { + type NoMethod QualitySnippetsTruncationSnippetBoldedRange + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type QualitySnippetsTruncationSnippetBoldedRangePosition struct { + ByteOffset int64 `json:"byteOffset,omitempty"` + + Index int64 `json:"index,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ByteOffset") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ByteOffset") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *QualitySnippetsTruncationSnippetBoldedRangePosition) MarshalJSON() ([]byte, error) { + type NoMethod QualitySnippetsTruncationSnippetBoldedRangePosition + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type QualityTimebasedLastSignificantUpdate struct { // AdjustmentInfo: This is stored only for debugging purposes. Please // consult dates@ team before making a dependency on this field. @@ -111925,7 +112075,7 @@ func (s *RepositoryAnnotationsRdfaCrumb) MarshalJSON() ([]byte, error) { } // RepositoryAnnotationsRdfaRdfaRichSnippetsApplication: This structure -// holds data for application information for rich snippets Next ID: 52 +// holds data for application information for rich snippets Next ID: 53 type RepositoryAnnotationsRdfaRdfaRichSnippetsApplication struct { AppTypeData *RepositoryAnnotationsRdfaRdfaRichSnippetsApplicationAppTypeData `json:"appTypeData,omitempty"` @@ -111995,6 +112145,8 @@ type RepositoryAnnotationsRdfaRdfaRichSnippetsApplication struct { // LiveOpDetails: Unified proto for android LiveOps and iOS LiveEvents. LiveOpDetails *QualityCalypsoAppsUniversalAuLiveOpsDetailInfo `json:"liveOpDetails,omitempty"` + LocalizedTrustedGenome *RepositoryAnnotationsRdfaRdfaRichSnippetsApplicationLocalizedTrustedGenome `json:"localizedTrustedGenome,omitempty"` + // Marketplace: Market Android or itunes Marketplace string `json:"marketplace,omitempty"` @@ -112182,6 +112334,36 @@ func (s *RepositoryAnnotationsRdfaRdfaRichSnippetsApplicationCountryPrice) Marsh return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type RepositoryAnnotationsRdfaRdfaRichSnippetsApplicationLocalizedTrustedGenome struct { + // Language: The chosen language + Language string `json:"language,omitempty"` + + // LocalizedTg: The TG tags matching the locale of the doc, if available + LocalizedTg *VendingConsumerProtoTrustedGenomeAnnotation `json:"localizedTg,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Language") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Language") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RepositoryAnnotationsRdfaRdfaRichSnippetsApplicationLocalizedTrustedGenome) MarshalJSON() ([]byte, error) { + type NoMethod RepositoryAnnotationsRdfaRdfaRichSnippetsApplicationLocalizedTrustedGenome + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type RepositoryAnnotationsRdfaRdfaRichSnippetsApplicationRank struct { AppStoreLink string `json:"appStoreLink,omitempty"` @@ -113502,12 +113684,6 @@ type RepositoryWebrefDetailedEntityScores struct { NbScore float64 `json:"nbScore,omitempty"` - // NewConfidenceExperimentalDontUse: Experimental. This is used for - // doing experiments only. For example, new entity confidence can be - // populated here to experiment with replacing the one re-computed by - // NewAnnotationConfidence(). - NewConfidenceExperimentalDontUse float64 `json:"newConfidenceExperimentalDontUse,omitempty"` - // NewsTopicalityScore: DEPRECATED: this field is no longer set. As of // early June 2018 it is referenced in hundreds of test files and is // difficult to remove from the code base. @@ -113559,17 +113735,16 @@ func (s *RepositoryWebrefDetailedEntityScores) MarshalJSON() ([]byte, error) { func (s *RepositoryWebrefDetailedEntityScores) UnmarshalJSON(data []byte) error { type NoMethod RepositoryWebrefDetailedEntityScores var s1 struct { - AnchorScore gensupport.JSONFloat64 `json:"anchorScore"` - BodyScore gensupport.JSONFloat64 `json:"bodyScore"` - Connectedness gensupport.JSONFloat64 `json:"connectedness"` - DocScore gensupport.JSONFloat64 `json:"docScore"` - GeoTopicNormalizedScore gensupport.JSONFloat64 `json:"geoTopicNormalizedScore"` - LocalEntityLocationConfidence gensupport.JSONFloat64 `json:"localEntityLocationConfidence"` - NbScore gensupport.JSONFloat64 `json:"nbScore"` - NewConfidenceExperimentalDontUse gensupport.JSONFloat64 `json:"newConfidenceExperimentalDontUse"` - NewsTopicalityScore gensupport.JSONFloat64 `json:"newsTopicalityScore"` - NormalizedTopicality gensupport.JSONFloat64 `json:"normalizedTopicality"` - RelevanceScore gensupport.JSONFloat64 `json:"relevanceScore"` + AnchorScore gensupport.JSONFloat64 `json:"anchorScore"` + BodyScore gensupport.JSONFloat64 `json:"bodyScore"` + Connectedness gensupport.JSONFloat64 `json:"connectedness"` + DocScore gensupport.JSONFloat64 `json:"docScore"` + GeoTopicNormalizedScore gensupport.JSONFloat64 `json:"geoTopicNormalizedScore"` + LocalEntityLocationConfidence gensupport.JSONFloat64 `json:"localEntityLocationConfidence"` + NbScore gensupport.JSONFloat64 `json:"nbScore"` + NewsTopicalityScore gensupport.JSONFloat64 `json:"newsTopicalityScore"` + NormalizedTopicality gensupport.JSONFloat64 `json:"normalizedTopicality"` + RelevanceScore gensupport.JSONFloat64 `json:"relevanceScore"` *NoMethod } s1.NoMethod = (*NoMethod)(s) @@ -113583,7 +113758,6 @@ func (s *RepositoryWebrefDetailedEntityScores) UnmarshalJSON(data []byte) error s.GeoTopicNormalizedScore = float64(s1.GeoTopicNormalizedScore) s.LocalEntityLocationConfidence = float64(s1.LocalEntityLocationConfidence) s.NbScore = float64(s1.NbScore) - s.NewConfidenceExperimentalDontUse = float64(s1.NewConfidenceExperimentalDontUse) s.NewsTopicalityScore = float64(s1.NewsTopicalityScore) s.NormalizedTopicality = float64(s1.NormalizedTopicality) s.RelevanceScore = float64(s1.RelevanceScore) @@ -116055,6 +116229,8 @@ type RepositoryWebrefLexicalRange struct { // some other range. // "TARGET_AUDIENCE" - Facets. // "TARGET_PURPOSE" + // "SETTING_BY_LOCATION" - End of facets. This line marks where to + // generate new values for facets. Category string `json:"category,omitempty"` // Direction: Direction defines the relation between the measurable @@ -116255,9 +116431,11 @@ type RepositoryWebrefLightweightTokensMatchedLightweightToken struct { // "FEMININE_HONORIFIC" - Feminine Honorific markers. // "GENERIC_HONORIFIC" - Non-specific Honorifc markers. // "NEGATIVE_SUPERLATIVE" + // "SUPERLATIVE" // "FACET_AUDIENCE" - Facets. // "FACET_PURPOSE" - // "SUPERLATIVE" + // "FACET_SETTING_BY_LOCATION" - End of facets. This line marks where + // to generate new values for facets. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -126254,7 +126432,7 @@ func (s *SecurityCredentialsPostiniUserProto) MarshalJSON() ([]byte, error) { // google3/java/com/google/security/credentials/Principal.java // google3/security/credentials/go/principal.go unless direct proto // access is essential. If you update this protocol buffer, please -// update the wrapper classes as well. +// update the wrapper classes as well. LINT.IfChange type SecurityCredentialsPrincipalProto struct { // AllAuthenticatedUsers: scope = ALL_AUTHENTICATED_USERS AllAuthenticatedUsers *SecurityCredentialsAllAuthenticatedUsersProto `json:"allAuthenticatedUsers,omitempty"` @@ -126395,7 +126573,7 @@ func (s *SecurityCredentialsPrincipalProto) MarshalJSON() ([]byte, error) { // SecurityCredentialsRbacRoleProto: Principal associated with a given // RBAC role. This principal is used by Sphinx Provisioning Service for -// RBAC (go/cedi-auth) provisionable (go/sphinx-rbacz-design). +// RBAC provisionable (go/sphinx-rbacz). type SecurityCredentialsRbacRoleProto struct { Name string `json:"name,omitempty"` @@ -126404,10 +126582,11 @@ type SecurityCredentialsRbacRoleProto struct { // RbacNamespace: DEPRECATED as of 01.11.2019 RbacNamespace string `json:"rbacNamespace,omitempty"` - // RbacRoleName: Format: - // "RbacNamespaceName.RbacRoleName(/field=value)*", e.g., - // "hr.v1.Reader", - // "hr.v1.Reader/language=EN_US/country=USA/room=NYC-9th-11A201". + // RbacRoleName: Format: "role/z?" - "role" is the Sphinx globally + // unique name of the Sphinx role that provisions the RBAC role. - "/z?" + // suffix indicates which Zanzibar environment stores the role + // membership data ("/zd": dev, "/zs": staging, "/zp": prod, "/zt": + // local test instance). Example: "mysystem_myrole/zp" RbacRoleName string `json:"rbacRoleName,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to @@ -126435,8 +126614,7 @@ func (s *SecurityCredentialsRbacRoleProto) MarshalJSON() ([]byte, error) { // SecurityCredentialsRbacSubjectProto: Principal associated with a // given RBAC subject. This principal is used by Sphinx Provisioning -// Service for RBAC (go/cedi-auth) provisionable -// (go/sphinx-rbacz-design). +// Service for RBAC provisionable (go/sphinx-rbacz). type SecurityCredentialsRbacSubjectProto struct { // Username: Format "username" without "@domain", e.g., "bogdand". Username string `json:"username,omitempty"` @@ -127742,8 +127920,11 @@ func (s *SnippetExtraInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SnippetExtraInfoSnippetCandidateInfo: Next ID: 12 +// SnippetExtraInfoSnippetCandidateInfo: Next ID: 13 type SnippetExtraInfoSnippetCandidateInfo struct { + // BoldedRanges: Bolded ranges in the printed snippet lines. + BoldedRanges []*QualitySnippetsTruncationSnippetBoldedRange `json:"boldedRanges,omitempty"` + // Id: Candidate identifier number, unique among all snippet candidates // under each document in each request. What does this number mean: - // Muppet candidates: This equals to the candidate's rank by Muppet @@ -127800,7 +127981,7 @@ type SnippetExtraInfoSnippetCandidateInfo struct { // "PEREGRINE" - Candidates generated by SnippetFlow in SR. SnippetType string `json:"snippetType,omitempty"` - // ForceSendFields is a list of field names (e.g. "Id") to + // ForceSendFields is a list of field names (e.g. "BoldedRanges") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -127808,10 +127989,10 @@ type SnippetExtraInfoSnippetCandidateInfo struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "BoldedRanges") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -128689,6 +128870,36 @@ func (s *SocialGraphApiProtoBirthdayDecoration) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SocialGraphApiProtoContactCreateContext: The ContactEditContext +// message is a wrapper around the generic ContactMutationContext data +// to represent when and where a contact create was performed. +type SocialGraphApiProtoContactCreateContext struct { + MutationContext *SocialGraphApiProtoContactMutationContext `json:"mutationContext,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MutationContext") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MutationContext") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SocialGraphApiProtoContactCreateContext) MarshalJSON() ([]byte, error) { + type NoMethod SocialGraphApiProtoContactCreateContext + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SocialGraphApiProtoContactDeletionContext: The ContactDeletionContext // message is a wrapper around the generic ContactMutationContext data, // and will include any needed delete specific data. NOTE: Before using @@ -128721,6 +128932,36 @@ func (s *SocialGraphApiProtoContactDeletionContext) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SocialGraphApiProtoContactEditContext: The ContactEditContext message +// is a wrapper around the generic ContactMutationContext data to +// represent when and where a contact edit was performed. +type SocialGraphApiProtoContactEditContext struct { + MutationContext *SocialGraphApiProtoContactMutationContext `json:"mutationContext,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MutationContext") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MutationContext") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SocialGraphApiProtoContactEditContext) MarshalJSON() ([]byte, error) { + type NoMethod SocialGraphApiProtoContactEditContext + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SocialGraphApiProtoContactMutationContext: This message is the // generic mutation message which will encapsulate the fields which are // shared between the create, update, and delete actions, including @@ -129462,22 +129703,25 @@ func (s *SocialGraphApiProtoPartialNameOptionsNamePartSpec) MarshalJSON() ([]byt // operate on those parts. For more information on how names are parsed, // see the NameOccurrence proto definition: // http://google3/quality/peoplesearch/namedetector/detector/proto/name_occurrence.proto?l=50&rcl=334484707 -// Next ID: 7 +// In general, when parsing display names the following rules will apply +// to *all* specs: - Hyphenated names are broken down: "Angelina +// Jollie-Pit" is pre-processed as "Angelina Jollie Pitt"; - Prefixes +// are ignored: "Prof. Albus Dumbledore" is pre-processed as "Albus +// Dumbledore"; - Auxiliaries are ignored: "Luís de Camões" is +// pre-processed as "Luís Camões". Next ID: 8 type SocialGraphApiProtoPartialNameOptionsParsedDisplayNameSpec struct { // AllInitialsFromParsedName: Extract an initial from each parsed name. // For example, "Niels Henrik David Bohr" yields "N. H. D. B.". Other - // special cases are treated as follows: - Hyphenated names are broken - // down: "Angelina Jollie-Pit" yields "A. J. P."; - Prefixes are - // ignored: "Prof. Albus Dumbledore" yields "A. D."; - Auxiliaries are - // ignored: "Luís de Camões" yields "L. C.". + // special cases are treated as follows: AllInitialsFromParsedName bool `json:"allInitialsFromParsedName,omitempty"` + // FirstInitialAndFirstLastName: Show the initial of the very first name + // and the first last name, e.g. "Hugo Daniel Hernandez Garcia" yields + // "H. Hernandez". + FirstInitialAndFirstLastName bool `json:"firstInitialAndFirstLastName,omitempty"` + // FirstInitialAndVeryLastName: Show the initial of the very first name - // and the very last name, e.g. "Ana Maria Silva" yields "A. Silva". - - // Hyphenated names are broken down: "Angelina Jollie-Pitt" yields "A. - // Pitt"; - Prefixes are ignored: "Prof. Albus Dumbledore" yields "A. - // Dumbledore"; - Auxiliaries are ignored: "Luís de Camões" yields "L. - // Camões". + // and the very last name, e.g. "Ana Maria Silva" yields "A. Silva". FirstInitialAndVeryLastName bool `json:"firstInitialAndVeryLastName,omitempty"` // KnowledgeGraphNameShortening: Shorten the display name using the @@ -129498,17 +129742,11 @@ type SocialGraphApiProtoPartialNameOptionsParsedDisplayNameSpec struct { TruncationIndicator string `json:"truncationIndicator,omitempty"` // VeryFirstNameAndAllInitials: Show the full very first name and all - // the other initials, e.g. "Ana Maria Silva" yields "Ana M. S.". - - // Hyphenated names are broken down: "Angelina Jollie-Pit" yields - // "Angelina J. P."; - Prefixes are ignored: "Prof. Albus Dumbledore" - // yields "Albus D."; - Auxiliaries are ignored: "Luís de Camões" - // yields "Luís C.". + // the other initials, e.g. "Ana Maria Silva" yields "Ana M. S.". VeryFirstNameAndAllInitials bool `json:"veryFirstNameAndAllInitials,omitempty"` // VeryFirstNameOnly: Show the very first name only, e.g. "Ana Maria - // Silva" yields "Ana". - Hyphenated names are broken down: "Mary-Kate - // Smith" yields "Mary"; - Prefixes are ignored: "Prof. Albus - // Dumbledore" yields "Albus"; + // Silva" yields "Ana". VeryFirstNameOnly bool `json:"veryFirstNameOnly,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -131737,16 +131975,12 @@ func (s *StorageGraphBfgLmsPolicyMetadata) MarshalJSON() ([]byte, error) { type StorageGraphBfgPolicyMetadata struct { // AvailabilityEndTimestamp: Timestamp after which data with this policy // cannot be used. This value must be strictly larger/later than - // availability_start_time, if both are set. WARNING: This field is WIP - // and please do not populate it without reading go/ke-dg-tape and - // consulting ke-data-governance@. + // availability_start_time, if both are set. AvailabilityEndTimestamp string `json:"availabilityEndTimestamp,omitempty"` // AvailabilityStartTimestamp: Timestamp before which data with this // policy cannot be used. This value must be strictly smaller/earlier - // than availability_end_time, if both are set. WARNING: This field is - // WIP and please do not populate it without reading go/ke-dg-tape and - // consulting ke-data-governance@. + // than availability_end_time, if both are set. AvailabilityStartTimestamp string `json:"availabilityStartTimestamp,omitempty"` // LegalAllowedRegions: List of regions in which the data with this @@ -132426,6 +132660,9 @@ type StorageGraphBfgTripleProvenance struct { // "RIGHTS_MANAGEMENT_102" - Corresponding to policy id = 102. // "DICTIONARY_DATA_OXFORD" // "DICTIONARY_DATA_LE_ROBERT" + // "ENTITY_TEXT_FEATURES" - Access controls for EntityTextFeatures + // computed by the Enricher. YOU MUST CONTACT deepkg-infra-dev@ before + // reading or writing data with this ACL. // "AR_ONBOARDING_TEST" - This AccessRequirement is used for testing // purpose only. Please do not use it on data. // "AR_ONBOARDING_TEST_2" @@ -136264,76 +136501,28 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "TC_IN_PSS_CHECK_A" // "TC_IN_PSS_CHECK_B" // "QUERY_IS_BOOTS_ELIGIBLE" - Query is eligible to show Boots chips - // "ENTERTAINMENT_CLUSTER_SPELLING_CORRECTION" // "QUERY_HAS_SELECTED_BOOTS_CHIP" // "QUERY_HAS_ONLY_UNSELECTED_BOOTS_CHIPS" // "SPONSORED_ADS_CLUSTER" - // "SPONSORED_ADS_CLUSTER_ATLEAST_ONE_AD" - // "INSPIRED_BY" - // "MOVIE_DUPLICATES_WITHIN_3_DOCS" - // "MOVIE_DUPLICATES_WITHIN_5_DOCS" - // "MOVIE_DUPLICATES_WITHIN_7_DOCS" - // "SHOULD_SEE_LIVE_OP_CLUSTER" - User should see the live op cluster. // "BOOKS_QUERY_HAS_LANGUAGE_INTENT" - go/books-language-handling for // details - // "REWARD_RIBBON_IMPRESSION" // "IRON_THRONE_QUERY" - Create test code for go/it-design experiment - // "FAMILY_LIBRARY_SHARED_DESTINATION" // "GUIDED_DISCOVERY" - go/guided-discovery-design for details. // "BOOKS_AUTHOR_QUERY" - // "HOME_SPONSORED_ADS_CLUSTER" - // "HOME_SPONSORED_ADS_CLUSTER_GAP_OPTOUT" - // "FAMILY_FRAUD_CHALLENGE" - // "BOOKS_MONETIZABLE_QUERY" - // "BOOKS_NONMONETIZABLE_QUERY" - // "NON_BOOKS_QUERY" // "BOOTS_PROD_V1_QUERY" - // "BOOTS_TAG_OVERRIDE_QUERY" - // "BOOTS_KG_ANNOTATION_QUERY" - // "EDITORIAL_REVIEW_CARD_ELIGIBLE" - // "BOOTS_DEST_QUERY_100_INSTALLS_QUERY" - // "BOOTS_DEST_QUERY_150_INSTALLS_QUERY" // "SHOULD_SEE_LIVE_OP_CLUSTER_CANDIDATES" - User has live op cluster // candidates. - // "REV_BOOST_V2_TEST_CODE" // "ENTERTAINMENT_CLUSTER_TRIGGERING" - // "BOOTS_MIN_TAGS_2" // "BOOTS_EN_IN" // "BOOTS_EN_GB" // "BOOTS_EN_PH" // "BOOTS_EN_CA" - // "BOOTS_EN_AU" - // "BOOTS_EN_I18N" - // "BOOTS_V2_STAGING" - // "OFFLINE_APP_SEARCH" - Aqua grammar is used to narrow to offline - // apps. // "ENTERTAINMENT_CLUSTER_CONTAINER_SEARCH_ENABLED" - // "BEST_SELLER_CART_TAG" - // "BOOTS_DEST_QUERY_50_INSTALLS_QUERY" - // "BOOTS_SAFT_SPEC2" // "SEARCH_NAV_SPONSORED_ADS_CLUSTER" - // "BOOTS_ISTA" - // "BOOTS_EN_GLOBAL" // "TOP_CHART_RANKING_INFO" // "CLIENT_TEST_CODE_VERIFICATION" - For verify the client test code // logging flow. // "APPS_PUB_QUERY" - // "BOOTS_V2" - // "HAS_BOOKS_BIGPOOL_RECS" - User has books bigpool recs. - // "TESTING_BOTH" - // "TESTING_EVENT" - // "BOOTS_MORE_CHIPS" - // "BOOTS_TAG_CONVERSION_BASED_RERANKING" - // "BOOTS_KG_FILTERS" - // "BOOTS_JP_KR" - // "BOOTS_ISTA_V2" - // "BOOTS_FILTERS" - // "BOOTS_EN_GLOBAL_V2" - // "BOOTS_ISTA_V2_WITH_BOOTS_V2" - // "BOOTS_ISTA_JP_KR" - // "BOOTS_VS_ISTA_JP_KR" - // "CHURNED_LIVE_OP_CANDIDATES_EVENT" - // "CHURNED_LIVE_OP_EVENT" // "ABUSIVE_QUERY_SQUASHING_EVENT" // "HOME_SPONSORED_ADS_RE_ENGAGEMENT_CLUSTER_EVENT_LEVEL" // "SEARCH_LIVE_OP_QUERY_EVENT" @@ -136397,6 +136586,10 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "APPS_PERSONALIZED_CATEGORICAL_GAME_SEEKING_QUERIES_EVENT_LEVEL" // "APPS_PERSONALIZED_CATEGORICAL_NON_TG_QUERIES_EVENT_LEVEL" // "APPS_PERSONALIZED_VERTICAL_RFY_CLUSTER_EVENT_LEVEL" + // "APPS_PERSONALIZED_NAVIGATIONAL_EVENT_LEVEL" + // "APPS_PERSONALIZED_NAVIGATIONAL_GAME_EVENT_LEVEL" + // "APPS_PERSONALIZED_MDP_EVENT_LEVEL" + // "APPS_PERSONALIZED_MDP_GAME_EVENT_LEVEL" // "CDP_PROMOTIONAL_IMAGE_LOCALE_MATCH" // "CDP_PROMOTIONAL_IMAGE_LOCALE_MISMATCH" // "CDP_SCREENSHOT_LOCALE_MISMATCH" @@ -136581,6 +136774,7 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "EDITORS_CHOICE_CLUSTER_SERP_EVENT_LEVEL" // "BESTK_CLUSTER_SERP_EVENT_LEVEL" // "LIVEOPS_CLUSTER_SERP_EVENT_LEVEL" + // "QUICKPICKS_CLUSTER_SERP_EVENT_LEVEL" // "INLINE_DETAILS_AQUALITY_CHECK_PASS" - Event level test codes // containing result of aQuality lookup during market details url // matching. A failed aQuality result suppresses inline details. @@ -136611,6 +136805,14 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "DETAILS_PAGE_AQUALITY_PASSED_EVENT_LEVEL" // "INLINE_DETAILS_CALLER_AQUALITY_CHECK_PASS" // "INLINE_DETAILS_CALLER_AQUALITY_CHECK_FAIL" + // "HSDP_AD_NETWORK_CALLER_TABLET_AQUALITY_CHECK_UNKNOWN" - Event + // level test codes containing results for caller tablet aQaulity checks + // for HSDP. + // "HSDP_AD_NETWORK_CALLER_TABLET_AQUALITY_CHECK_PASS" + // "HSDP_AD_NETWORK_CALLER_TABLET_AQUALITY_CHECK_FAIL" + // "HSDP_INDEPENDENT_APP_CALLER_TABLET_AQUALITY_CHECK_UNKNOWN" + // "HSDP_INDEPENDENT_APP_CALLER_TABLET_AQUALITY_CHECK_PASS" + // "HSDP_INDEPENDENT_APP_CALLER_TABLET_AQUALITY_CHECK_FAIL" // "PTP_CLUSTER_SERP_P13N_RANKING_EVENT_LEVEL" - Event level test code // for cluster, p13n ranking. // "BROAD_INTENT_REWEIGHTING_EVENT_LEVEL" - TestCode for Broad Intent @@ -136642,6 +136844,10 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // reranking event level. // "SECOND_PASS_POLARIS_WITH_RANKING_CHANGE_EVENT_LEVEL" - Second pass // polaris with ranking change event level. + // "EXPLORATORY_BOOSTING_EVENT_LEVEL" - Exploratory boosting event + // level. + // "GEARHEAD_TOOLTIP_COOLWALK_DASHBOARD_UNAVAILABLE" - Tooltip for + // unavailable dashboard support for selected navigation app. // "EVENT_LEVEL_TEST_CODE_LIMIT" // "RESERVED_4" // "RESERVED_5" @@ -136965,6 +137171,10 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "APPS_PERSONALIZED_CATEGORICAL_GAME_SEEKING_QUERIES_SESSION_LEVEL" // "APPS_PERSONALIZED_CATEGORICAL_NON_TG_QUERIES_SESSION_LEVEL" // "APPS_PERSONALIZED_VERTICAL_RFY_CLUSTER_SESSION_LEVEL" + // "APPS_PERSONALIZED_NAVIGATIONAL_SESSION_LEVEL" + // "APPS_PERSONALIZED_NAVIGATIONAL_GAME_SESSION_LEVEL" + // "APPS_PERSONALIZED_MDP_SESSION_LEVEL" + // "APPS_PERSONALIZED_MDP_GAME_SESSION_LEVEL" // "PLAY_STORE_SHOW_CART" // "MOVIES_RENTER" // "LOYALTY_HOME_FIRST_TAB_SESSION_LEVEL" - User visited the first tab @@ -137544,6 +137754,7 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "EDITORS_CHOICE_CLUSTER_SERP_SESSION_LEVEL" // "BESTK_CLUSTER_SERP_SESSION_LEVEL" // "LIVEOPS_CLUSTER_SERP_SESSION_LEVEL" + // "QUICKPICKS_CLUSTER_SERP_SESSION_LEVEL" // "WIDE_MEDIA_CLUSTER_INVALID_VIDEO_ASSET_SESSION_LEVEL" - Session // level test code logged when the wide media card has invalid video // asset in the asset agnostic 3x experiment. @@ -137562,6 +137773,12 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "SUGGEST_CROSS_FORM_FACTOR_APPS_WEAR_SUGGESTIONS_AVAILABLE" - // Session level test code that indicates that at least one cross form // factor wear suggestion is available. b/222328256 for more details. + // "SUGGEST_CROSS_FORM_FACTOR_APPS_TV_SUGGESTIONS_ENABLED" - Session + // level test code that indicates that cross form factor tv Suggestion + // is enabled. b/257494005 for more details. + // "SUGGEST_CROSS_FORM_FACTOR_APPS_TV_SUGGESTIONS_AVAILABLE" - Session + // level test code that indicates that at least one cross form factor tv + // suggestion is available. b/257494005 for more details. // "SUGGEST_APPS_SUBTEXT_SUGGESTIONS_SESSION_LEVEL" - Session level // test code that indicates the subtext is triggered for that group of // suggestions. Could either be for XFF Cat, Nav or legacy subtext. @@ -137575,6 +137792,19 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "INLINE_DETAILS_AQUALITY_CHECK_FAIL_SESSION_LEVEL" // "INLINE_DETAILS_CALLER_AQUALITY_CHECK_PASS_SESSION_LEVEL" // "INLINE_DETAILS_CALLER_AQUALITY_CHECK_FAIL_SESSION_LEVEL" + // + // "HSDP_AD_NETWORK_CALLER_TABLET_AQUALITY_CHECK_UNKNOWN_SESSION_LEVEL" + // - Session level test codes containing results for caller tablet + // aQaulity checks for HSDP. + // "HSDP_AD_NETWORK_CALLER_TABLET_AQUALITY_CHECK_PASS_SESSION_LEVEL" + // "HSDP_AD_NETWORK_CALLER_TABLET_AQUALITY_CHECK_FAIL_SESSION_LEVEL" + // + // "HSDP_INDEPENDENT_APP_CALLER_TABLET_AQUALITY_CHECK_UNKNOWN_SESSION_LEV + // EL" + // + // "HSDP_INDEPENDENT_APP_CALLER_TABLET_AQUALITY_CHECK_PASS_SESSION_LEVEL" + // + // "HSDP_INDEPENDENT_APP_CALLER_TABLET_AQUALITY_CHECK_FAIL_SESSION_LEVEL" // "INLINE_DETAILS_IS_INLINE_URL_SESSION_LEVEL" - Session level test // code indicating external details URL is an inline URL. // "INLINE_DETAILS_IS_INLINE_URL_FRONTEND_SESSION_LEVEL" - Session @@ -137878,6 +138108,10 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // reranking session level. // "SECOND_PASS_POLARIS_WITH_RANKING_CHANGE_SESSION_LEVEL" - Second // pass polaris with ranking change session level. + // "EXPLORATORY_BOOSTING_SESSION_LEVEL" - Exploratory boosting session + // level. + // "PLAY_BOOKS_READING_PROGRESS_TOOLTIP_SESSION_LEVEL" - Session level + // test code for reading progress tooltip. // "SESSION_LEVEL_TEST_CODE_LIMIT" // "SHOULD_SEE_LIVE_OP_CLUSTER_USER_LEVEL" - User should see the live // op cluster. @@ -137969,6 +138203,10 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "APPS_PERSONALIZED_CATEGORICAL_GAME_SEEKING_QUERIES_USER_LEVEL" // "APPS_PERSONALIZED_CATEGORICAL_NON_TG_QUERIES_USER_LEVEL" // "APPS_PERSONALIZED_VERTICAL_RFY_CLUSTER_USER_LEVEL" + // "APPS_PERSONALIZED_NAVIGATIONAL_USER_LEVEL" + // "APPS_PERSONALIZED_NAVIGATIONAL_GAME_USER_LEVEL" + // "APPS_PERSONALIZED_MDP_USER_LEVEL" + // "APPS_PERSONALIZED_MDP_GAME_USER_LEVEL" // "SUBSCRIPTION_CANCELLATION_PROMOTION_USER_LEVEL" - Subscription // cancellation flow for purchase flow per user. // "SUBSCRIPTION_UPDATE_FOP_FOR_DCB_AS_PRIMARY_SIGNUP_USER_LEVEL" - @@ -138535,9 +138773,9 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "PCH_O2_WITH_CRE_USER_LEVEL" - User level test code for tracking // users who are being shown PersistentCartHeader through purchase flow. // This test code is logged on the server side. - // "MERCH_USER_JOURNEY_ROBLOX_SPEND_USER_LEVEL" - User level test code - // for Merch user journey roblox spend experiment. This test code is - // logged on the server side. + // "MERCH_USER_JOURNEY_SPEND_USER_LEVEL" - User level test code for + // Merch user journey experiment. This test code is logged on the Growth + // Engine server side. // "PBUY_FINE_TUNING_WITH_TEXT_TREAT_USER_LEVEL" - User level test // code for new uplift modeling architecture with campaign features in // treatment tower. @@ -138546,6 +138784,8 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // the server side and applied to users that visit Loyalty Home and are // eligible to receive a quest with Play Games Achievement tasks, // regardless of whether the quest was shown or held back. + // "PLAY_BOOKS_READING_PROGRESS_TOOLTIP_USER_LEVEL" - User level test + // code for reading progress tooltip. // "USER_LEVEL_TEST_CODE_LIMIT" TestCode []string `json:"testCode,omitempty"` @@ -143954,7 +144194,7 @@ func (s *VideoContentSearchVideoAnchorRatingScore) UnmarshalJSON(data []byte) er // VideoContentSearchVideoAnchorScoreInfo: Message to contain scoring / // debugging information. If you want to add information which is not // directly used in the final VideoAnchor data, it should be put here. -// Next ID: 25 +// Next ID: 27 type VideoContentSearchVideoAnchorScoreInfo struct { // AnchorCommonFeatureSet: Common features for any anchor types. AnchorCommonFeatureSet *VideoContentSearchAnchorCommonFeatureSet `json:"anchorCommonFeatureSet,omitempty"` @@ -143962,6 +144202,9 @@ type VideoContentSearchVideoAnchorScoreInfo struct { // Attachments: Additional attachments which extend MessageSet. Attachments *Proto2BridgeMessageSet `json:"attachments,omitempty"` + // BabelCheckpointPath: The path to the particular babel checkpoint + BabelCheckpointPath string `json:"babelCheckpointPath,omitempty"` + // CaptionEntityAnchorFeatures: Training features and debug info for // caption entity anchors. CaptionEntityAnchorFeatures *VideoContentSearchCaptionEntityAnchorFeatures `json:"captionEntityAnchorFeatures,omitempty"` @@ -144013,6 +144256,11 @@ type VideoContentSearchVideoAnchorScoreInfo struct { // to build training data for multimodal topics. MultimodalTopicTrainingFeatures *VideoContentSearchMultimodalTopicTrainingFeatures `json:"multimodalTopicTrainingFeatures,omitempty"` + // NormalizedBabelEmbedding: Normalized babel embedding of + // anchor.label(). If the label has more than one sentences, the + // embedding will be the averaged normalized embedding of each sentence. + NormalizedBabelEmbedding []float64 `json:"normalizedBabelEmbedding,omitempty"` + // OcrAnchorFeature: OCR anchor features. OcrAnchorFeature *VideoContentSearchOnScreenTextFeature `json:"ocrAnchorFeature,omitempty"` @@ -153669,7 +153917,7 @@ func (s *YoutubeBackstageSuperVodCommentInfo) MarshalJSON() ([]byte, error) { // YoutubeCommentsClusteringMiniStanza: Intended to be simpler to work // with than the ExportedStanza it's derived from See documentation: // https://g3doc.corp.google.com/company/teams/youtube/community_intelligence/eng_resources/data_sources.md#ministanza -// Next available: 75 +// Next available: 76 type YoutubeCommentsClusteringMiniStanza struct { // AnsibleScores: TnS Ansible scores map. Keyed by various model names. AnsibleScores map[string]float64 `json:"ansibleScores,omitempty"` @@ -154048,6 +154296,9 @@ type YoutubeCommentsClusteringMiniStanza struct { // WordEntropy: Word entropy of the comment. WordEntropy float64 `json:"wordEntropy,omitempty"` + // YtAuthorChannelId: The youtube channel id of the comment author. + YtAuthorChannelId string `json:"ytAuthorChannelId,omitempty"` + // YtCommentQualityScore: Existing quality corpus scores. YtCommentQualityScore float64 `json:"ytCommentQualityScore,omitempty"` diff --git a/dataflow/v1b3/dataflow-api.json b/dataflow/v1b3/dataflow-api.json index c4168fdf579..ac07d3f92ea 100644 --- a/dataflow/v1b3/dataflow-api.json +++ b/dataflow/v1b3/dataflow-api.json @@ -2240,7 +2240,7 @@ } } }, - "revision": "20221128", + "revision": "20221206", "rootUrl": "https://dataflow.googleapis.com/", "schemas": { "ApproximateProgress": { @@ -4744,7 +4744,8 @@ "GCS_WRITE_FOLDER", "PUBSUB_TOPIC", "PUBSUB_SUBSCRIPTION", - "BIGQUERY_TABLE" + "BIGQUERY_TABLE", + "JAVASCRIPT_UDF_FILE" ], "enumDescriptions": [ "Default input type.", @@ -4757,7 +4758,8 @@ "The parameter specifies a Cloud Storage folder to write to.", "The parameter specifies a Pub/Sub Topic.", "The parameter specifies a Pub/Sub Subscription.", - "The parameter specifies a BigQuery table." + "The parameter specifies a BigQuery table.", + "The parameter specifies a JavaScript UDF in Cloud Storage." ], "type": "string" }, @@ -7007,6 +7009,10 @@ "workerShutdownNotice": { "$ref": "WorkerShutdownNotice", "description": "Shutdown notice by workers." + }, + "workerThreadScalingReport": { + "$ref": "WorkerThreadScalingReport", + "description": "Thread scaling information reported by workers." } }, "type": "object" @@ -7045,6 +7051,10 @@ "workerShutdownNoticeResponse": { "$ref": "WorkerShutdownNoticeResponse", "description": "Service's response to shutdown notice (currently empty)." + }, + "workerThreadScalingReportResponse": { + "$ref": "WorkerThreadScalingReportResponse", + "description": "Service's thread scaling recommendation for workers." } }, "type": "object" @@ -7245,6 +7255,30 @@ "properties": {}, "type": "object" }, + "WorkerThreadScalingReport": { + "description": "Contains information about the thread scaling information of a worker.", + "id": "WorkerThreadScalingReport", + "properties": { + "currentThreadCount": { + "description": "Current number of active threads in a worker.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "WorkerThreadScalingReportResponse": { + "description": "Contains the thread scaling recommendation for a worker from the backend.", + "id": "WorkerThreadScalingReportResponse", + "properties": { + "recommendedThreadCount": { + "description": "Recommended number of threads for a worker.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "WriteInstruction": { "description": "An instruction that writes records. Takes one input, produces no outputs.", "id": "WriteInstruction", diff --git a/dataflow/v1b3/dataflow-gen.go b/dataflow/v1b3/dataflow-gen.go index 4940f091714..f6410904bdb 100644 --- a/dataflow/v1b3/dataflow-gen.go +++ b/dataflow/v1b3/dataflow-gen.go @@ -4366,6 +4366,8 @@ type ParameterMetadata struct { // "PUBSUB_SUBSCRIPTION" - The parameter specifies a Pub/Sub // Subscription. // "BIGQUERY_TABLE" - The parameter specifies a BigQuery table. + // "JAVASCRIPT_UDF_FILE" - The parameter specifies a JavaScript UDF in + // Cloud Storage. ParamType string `json:"paramType,omitempty"` // Regexes: Optional. Regexes that the parameter must match. @@ -7808,6 +7810,10 @@ type WorkerMessage struct { // WorkerShutdownNotice: Shutdown notice by workers. WorkerShutdownNotice *WorkerShutdownNotice `json:"workerShutdownNotice,omitempty"` + // WorkerThreadScalingReport: Thread scaling information reported by + // workers. + WorkerThreadScalingReport *WorkerThreadScalingReport `json:"workerThreadScalingReport,omitempty"` + // ForceSendFields is a list of field names (e.g. "Labels") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -7900,6 +7906,10 @@ type WorkerMessageResponse struct { // (currently empty). WorkerShutdownNoticeResponse *WorkerShutdownNoticeResponse `json:"workerShutdownNoticeResponse,omitempty"` + // WorkerThreadScalingReportResponse: Service's thread scaling + // recommendation for workers. + WorkerThreadScalingReportResponse *WorkerThreadScalingReportResponse `json:"workerThreadScalingReportResponse,omitempty"` + // ForceSendFields is a list of field names (e.g. // "WorkerHealthReportResponse") to unconditionally include in API // requests. By default, fields with empty or default values are omitted @@ -8172,6 +8182,67 @@ func (s *WorkerShutdownNotice) MarshalJSON() ([]byte, error) { type WorkerShutdownNoticeResponse struct { } +// WorkerThreadScalingReport: Contains information about the thread +// scaling information of a worker. +type WorkerThreadScalingReport struct { + // CurrentThreadCount: Current number of active threads in a worker. + CurrentThreadCount int64 `json:"currentThreadCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CurrentThreadCount") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CurrentThreadCount") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *WorkerThreadScalingReport) MarshalJSON() ([]byte, error) { + type NoMethod WorkerThreadScalingReport + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WorkerThreadScalingReportResponse: Contains the thread scaling +// recommendation for a worker from the backend. +type WorkerThreadScalingReportResponse struct { + // RecommendedThreadCount: Recommended number of threads for a worker. + RecommendedThreadCount int64 `json:"recommendedThreadCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "RecommendedThreadCount") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "RecommendedThreadCount") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *WorkerThreadScalingReportResponse) MarshalJSON() ([]byte, error) { + type NoMethod WorkerThreadScalingReportResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // WriteInstruction: An instruction that writes records. Takes one // input, produces no outputs. type WriteInstruction struct { diff --git a/dataform/v1beta1/dataform-api.json b/dataform/v1beta1/dataform-api.json new file mode 100644 index 00000000000..73f0930237b --- /dev/null +++ b/dataform/v1beta1/dataform-api.json @@ -0,0 +1,2828 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/cloud-platform": { + "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account." + } + } + } + }, + "basePath": "", + "baseUrl": "https://dataform.googleapis.com/", + "batchPath": "batch", + "description": "", + "discoveryVersion": "v1", + "documentationLink": "https://cloud.google.com/dataform/docs", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "dataform:v1beta1", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://dataform.mtls.googleapis.com/", + "name": "dataform", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "projects": { + "resources": { + "locations": { + "methods": { + "get": { + "description": "Gets information about a location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}", + "httpMethod": "GET", + "id": "dataform.projects.locations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Resource name for the location.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Location" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists information about the supported locations for this service.", + "flatPath": "v1beta1/projects/{projectsId}/locations", + "httpMethod": "GET", + "id": "dataform.projects.locations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + "location": "query", + "type": "string" + }, + "includeUnrevealedLocations": { + "description": "If true, the returned list will include locations which are not yet revealed.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "The resource that owns the locations collection, if applicable.", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The maximum number of results to return. If not set, the service selects a default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/locations", + "response": { + "$ref": "ListLocationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "repositories": { + "methods": { + "create": { + "description": "Creates a new Repository in a given project and location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The location in which to create the repository. Must be in the format `projects/*/locations/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "repositoryId": { + "description": "Required. The ID to use for the repository, which will become the final component of the repository's resource name.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+parent}/repositories", + "request": { + "$ref": "Repository" + }, + "response": { + "$ref": "Repository" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single Repository.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}", + "httpMethod": "DELETE", + "id": "dataform.projects.locations.repositories.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "force": { + "description": "If set to true, any child resources of this repository will also be deleted. (Otherwise, the request will only succeed if the repository has no child resources.)", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. The repository's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "fetchRemoteBranches": { + "description": "Fetches a Repository's remote branches.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:fetchRemoteBranches", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.fetchRemoteBranches", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The repository's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:fetchRemoteBranches", + "response": { + "$ref": "FetchRemoteBranchesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Fetches a single Repository.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The repository's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Repository" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Repositories in a given project and location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filter for the returned list.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. This field only supports ordering by `name`. If unspecified, the server will choose the ordering. If specified, the default order is ascending for the `name` field.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of repositories to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token received from a previous `ListRepositories` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRepositories` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The location in which to list repositories. Must be in the format `projects/*/locations/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/repositories", + "response": { + "$ref": "ListRepositoriesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a single Repository.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}", + "httpMethod": "PATCH", + "id": "dataform.projects.locations.repositories.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The repository's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Specifies the fields to be updated in the repository. If left unset, all fields will be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "Repository" + }, + "response": { + "$ref": "Repository" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "compilationResults": { + "methods": { + "create": { + "description": "Creates a new CompilationResult in a given project and location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/compilationResults", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.compilationResults.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The repository in which to create the compilation result. Must be in the format `projects/*/locations/*/repositories/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/compilationResults", + "request": { + "$ref": "CompilationResult" + }, + "response": { + "$ref": "CompilationResult" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Fetches a single CompilationResult.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/compilationResults/{compilationResultsId}", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.compilationResults.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The compilation result's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "CompilationResult" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists CompilationResults in a given Repository.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/compilationResults", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.compilationResults.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. Maximum number of compilation results to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token received from a previous `ListCompilationResults` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCompilationResults` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The repository in which to list compilation results. Must be in the format `projects/*/locations/*/repositories/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/compilationResults", + "response": { + "$ref": "ListCompilationResultsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "query": { + "description": "Returns CompilationResultActions in a given CompilationResult.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/compilationResults/{compilationResultsId}:query", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.compilationResults.query", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "Optional. Optional filter for the returned list. Filtering is only currently supported on the `file_path` field.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The compilation result's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of compilation results to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token received from a previous `QueryCompilationResultActions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryCompilationResultActions` must match the call that provided the page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}:query", + "response": { + "$ref": "QueryCompilationResultActionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "releaseConfigs": { + "methods": { + "create": { + "description": "Creates a new ReleaseConfig in a given Repository.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/releaseConfigs", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.releaseConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The repository in which to create the release config. Must be in the format `projects/*/locations/*/repositories/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + }, + "releaseConfigId": { + "description": "Required. The ID to use for the release config, which will become the final component of the release config's resource name.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+parent}/releaseConfigs", + "request": { + "$ref": "ReleaseConfig" + }, + "response": { + "$ref": "ReleaseConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single ReleaseConfig.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/releaseConfigs/{releaseConfigsId}", + "httpMethod": "DELETE", + "id": "dataform.projects.locations.repositories.releaseConfigs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The release config's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Fetches a single ReleaseConfig.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/releaseConfigs/{releaseConfigsId}", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.releaseConfigs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The release config's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "ReleaseConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists ReleaseConfigs in a given Repository.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/releaseConfigs", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.releaseConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. Maximum number of release configs to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token received from a previous `ListReleaseConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReleaseConfigs` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The repository in which to list release configs. Must be in the format `projects/*/locations/*/repositories/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/releaseConfigs", + "response": { + "$ref": "ListReleaseConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a single ReleaseConfig.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/releaseConfigs/{releaseConfigsId}", + "httpMethod": "PATCH", + "id": "dataform.projects.locations.repositories.releaseConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The release config's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Specifies the fields to be updated in the release config. If left unset, all fields will be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "ReleaseConfig" + }, + "response": { + "$ref": "ReleaseConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "workflowInvocations": { + "methods": { + "cancel": { + "description": "Requests cancellation of a running WorkflowInvocation.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowInvocations/{workflowInvocationsId}:cancel", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workflowInvocations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workflow invocation resource's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:cancel", + "request": { + "$ref": "CancelWorkflowInvocationRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "create": { + "description": "Creates a new WorkflowInvocation in a given Repository.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowInvocations", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workflowInvocations.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The repository in which to create the workflow invocation. Must be in the format `projects/*/locations/*/repositories/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/workflowInvocations", + "request": { + "$ref": "WorkflowInvocation" + }, + "response": { + "$ref": "WorkflowInvocation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single WorkflowInvocation.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowInvocations/{workflowInvocationsId}", + "httpMethod": "DELETE", + "id": "dataform.projects.locations.repositories.workflowInvocations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workflow invocation resource's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Fetches a single WorkflowInvocation.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowInvocations/{workflowInvocationsId}", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.workflowInvocations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workflow invocation resource's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "WorkflowInvocation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists WorkflowInvocations in a given Repository.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowInvocations", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.workflowInvocations.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filter for the returned list.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. This field only supports ordering by `name`. If unspecified, the server will choose the ordering. If specified, the default order is ascending for the `name` field.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of workflow invocations to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token received from a previous `ListWorkflowInvocations` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListWorkflowInvocations` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the WorkflowInvocation type. Must be in the format `projects/*/locations/*/repositories/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/workflowInvocations", + "response": { + "$ref": "ListWorkflowInvocationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "query": { + "description": "Returns WorkflowInvocationActions in a given WorkflowInvocation.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowInvocations/{workflowInvocationsId}:query", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.workflowInvocations.query", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workflow invocation's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of workflow invocations to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token received from a previous `QueryWorkflowInvocationActions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryWorkflowInvocationActions` must match the call that provided the page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}:query", + "response": { + "$ref": "QueryWorkflowInvocationActionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "workspaces": { + "methods": { + "commit": { + "description": "Applies a Git commit for uncommitted files in a Workspace.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:commit", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workspaces.commit", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:commit", + "request": { + "$ref": "CommitWorkspaceChangesRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "create": { + "description": "Creates a new Workspace in a given Repository.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workspaces.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The repository in which to create the workspace. Must be in the format `projects/*/locations/*/repositories/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + }, + "workspaceId": { + "description": "Required. The ID to use for the workspace, which will become the final component of the workspace's resource name.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+parent}/workspaces", + "request": { + "$ref": "Workspace" + }, + "response": { + "$ref": "Workspace" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single Workspace.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}", + "httpMethod": "DELETE", + "id": "dataform.projects.locations.repositories.workspaces.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workspace resource's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "fetchFileDiff": { + "description": "Fetches Git diff for an uncommitted file in a Workspace.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:fetchFileDiff", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.workspaces.fetchFileDiff", + "parameterOrder": [ + "workspace" + ], + "parameters": { + "path": { + "description": "Required. The file's full path including filename, relative to the workspace root.", + "location": "query", + "type": "string" + }, + "workspace": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+workspace}:fetchFileDiff", + "response": { + "$ref": "FetchFileDiffResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "fetchFileGitStatuses": { + "description": "Fetches Git statuses for the files in a Workspace.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:fetchFileGitStatuses", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.workspaces.fetchFileGitStatuses", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:fetchFileGitStatuses", + "response": { + "$ref": "FetchFileGitStatusesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "fetchGitAheadBehind": { + "description": "Fetches Git ahead/behind against a remote branch.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:fetchGitAheadBehind", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.workspaces.fetchGitAheadBehind", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + }, + "remoteBranch": { + "description": "Optional. The name of the branch in the Git remote against which this workspace should be compared. If left unset, the repository's default branch name will be used.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}:fetchGitAheadBehind", + "response": { + "$ref": "FetchGitAheadBehindResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Fetches a single Workspace.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.workspaces.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Workspace" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "installNpmPackages": { + "description": "Installs dependency NPM packages (inside a Workspace).", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:installNpmPackages", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workspaces.installNpmPackages", + "parameterOrder": [ + "workspace" + ], + "parameters": { + "workspace": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+workspace}:installNpmPackages", + "request": { + "$ref": "InstallNpmPackagesRequest" + }, + "response": { + "$ref": "InstallNpmPackagesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Workspaces in a given Repository.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.workspaces.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filter for the returned list.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. This field only supports ordering by `name`. If unspecified, the server will choose the ordering. If specified, the default order is ascending for the `name` field.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of workspaces to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token received from a previous `ListWorkspaces` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListWorkspaces` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The repository in which to list workspaces. Must be in the format `projects/*/locations/*/repositories/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/workspaces", + "response": { + "$ref": "ListWorkspacesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "makeDirectory": { + "description": "Creates a directory inside a Workspace.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:makeDirectory", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workspaces.makeDirectory", + "parameterOrder": [ + "workspace" + ], + "parameters": { + "workspace": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+workspace}:makeDirectory", + "request": { + "$ref": "MakeDirectoryRequest" + }, + "response": { + "$ref": "MakeDirectoryResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "moveDirectory": { + "description": "Moves a directory (inside a Workspace), and all of its contents, to a new location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:moveDirectory", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workspaces.moveDirectory", + "parameterOrder": [ + "workspace" + ], + "parameters": { + "workspace": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+workspace}:moveDirectory", + "request": { + "$ref": "MoveDirectoryRequest" + }, + "response": { + "$ref": "MoveDirectoryResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "moveFile": { + "description": "Moves a file (inside a Workspace) to a new location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:moveFile", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workspaces.moveFile", + "parameterOrder": [ + "workspace" + ], + "parameters": { + "workspace": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+workspace}:moveFile", + "request": { + "$ref": "MoveFileRequest" + }, + "response": { + "$ref": "MoveFileResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "pull": { + "description": "Pulls Git commits from the Repository's remote into a Workspace.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:pull", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workspaces.pull", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:pull", + "request": { + "$ref": "PullGitCommitsRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "push": { + "description": "Pushes Git commits from a Workspace to the Repository's remote.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:push", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workspaces.push", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:push", + "request": { + "$ref": "PushGitCommitsRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "queryDirectoryContents": { + "description": "Returns the contents of a given Workspace directory.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:queryDirectoryContents", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.workspaces.queryDirectoryContents", + "parameterOrder": [ + "workspace" + ], + "parameters": { + "pageSize": { + "description": "Optional. Maximum number of paths to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token received from a previous `QueryDirectoryContents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryDirectoryContents` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "path": { + "description": "Optional. The directory's full path including directory name, relative to the workspace root. If left unset, the workspace root is used.", + "location": "query", + "type": "string" + }, + "workspace": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+workspace}:queryDirectoryContents", + "response": { + "$ref": "QueryDirectoryContentsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "readFile": { + "description": "Returns the contents of a file (inside a Workspace).", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:readFile", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.workspaces.readFile", + "parameterOrder": [ + "workspace" + ], + "parameters": { + "path": { + "description": "Required. The file's full path including filename, relative to the workspace root.", + "location": "query", + "type": "string" + }, + "workspace": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+workspace}:readFile", + "response": { + "$ref": "ReadFileResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "removeDirectory": { + "description": "Deletes a directory (inside a Workspace) and all of its contents.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:removeDirectory", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workspaces.removeDirectory", + "parameterOrder": [ + "workspace" + ], + "parameters": { + "workspace": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+workspace}:removeDirectory", + "request": { + "$ref": "RemoveDirectoryRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "removeFile": { + "description": "Deletes a file (inside a Workspace).", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:removeFile", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workspaces.removeFile", + "parameterOrder": [ + "workspace" + ], + "parameters": { + "workspace": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+workspace}:removeFile", + "request": { + "$ref": "RemoveFileRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "reset": { + "description": "Performs a Git reset for uncommitted files in a Workspace.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:reset", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workspaces.reset", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:reset", + "request": { + "$ref": "ResetWorkspaceChangesRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "writeFile": { + "description": "Writes to a file (inside a Workspace).", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:writeFile", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workspaces.writeFile", + "parameterOrder": [ + "workspace" + ], + "parameters": { + "workspace": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+workspace}:writeFile", + "request": { + "$ref": "WriteFileRequest" + }, + "response": { + "$ref": "WriteFileResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + } + } + } + }, + "revision": "20221203", + "rootUrl": "https://dataform.googleapis.com/", + "schemas": { + "Assertion": { + "description": "Represents an assertion upon a SQL query which is required return zero rows.", + "id": "Assertion", + "properties": { + "dependencyTargets": { + "description": "A list of actions that this action depends on.", + "items": { + "$ref": "Target" + }, + "type": "array" + }, + "disabled": { + "description": "Whether this action is disabled (i.e. should not be run).", + "type": "boolean" + }, + "parentAction": { + "$ref": "Target", + "description": "The parent action of this assertion. Only set if this assertion was automatically generated." + }, + "relationDescriptor": { + "$ref": "RelationDescriptor", + "description": "Descriptor for the assertion's automatically-generated view and its columns." + }, + "selectQuery": { + "description": "The SELECT query which must return zero rows in order for this assertion to succeed.", + "type": "string" + }, + "tags": { + "description": "Arbitrary, user-defined tags on this action.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "BigQueryAction": { + "description": "Represents a workflow action that will run against BigQuery.", + "id": "BigQueryAction", + "properties": { + "sqlScript": { + "description": "Output only. The generated BigQuery SQL script that will be executed.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "CancelWorkflowInvocationRequest": { + "description": "`CancelWorkflowInvocation` request message.", + "id": "CancelWorkflowInvocationRequest", + "properties": {}, + "type": "object" + }, + "CodeCompilationConfig": { + "description": "Configures various aspects of Dataform code compilation.", + "id": "CodeCompilationConfig", + "properties": { + "assertionSchema": { + "description": "Optional. The default schema (BigQuery dataset ID) for assertions.", + "type": "string" + }, + "databaseSuffix": { + "description": "Optional. The suffix that should be appended to all database (Google Cloud project ID) names.", + "type": "string" + }, + "defaultDatabase": { + "description": "Optional. The default database (Google Cloud project ID).", + "type": "string" + }, + "defaultLocation": { + "description": "Optional. The default BigQuery location to use. Defaults to \"US\". See the BigQuery docs for a full list of locations: https://cloud.google.com/bigquery/docs/locations.", + "type": "string" + }, + "defaultSchema": { + "description": "Optional. The default schema (BigQuery dataset ID).", + "type": "string" + }, + "schemaSuffix": { + "description": "Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names.", + "type": "string" + }, + "tablePrefix": { + "description": "Optional. The prefix that should be prepended to all table names.", + "type": "string" + }, + "vars": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. User-defined variables that are made available to project code during compilation.", + "type": "object" + } + }, + "type": "object" + }, + "ColumnDescriptor": { + "description": "Describes a column.", + "id": "ColumnDescriptor", + "properties": { + "bigqueryPolicyTags": { + "description": "A list of BigQuery policy tags that will be applied to the column.", + "items": { + "type": "string" + }, + "type": "array" + }, + "description": { + "description": "A textual description of the column.", + "type": "string" + }, + "path": { + "description": "The identifier for the column. Each entry in `path` represents one level of nesting.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "CommitAuthor": { + "description": "Represents the author of a Git commit.", + "id": "CommitAuthor", + "properties": { + "emailAddress": { + "description": "Required. The commit author's email address.", + "type": "string" + }, + "name": { + "description": "Required. The commit author's name.", + "type": "string" + } + }, + "type": "object" + }, + "CommitWorkspaceChangesRequest": { + "description": "`CommitWorkspaceChanges` request message.", + "id": "CommitWorkspaceChangesRequest", + "properties": { + "author": { + "$ref": "CommitAuthor", + "description": "Required. The commit's author." + }, + "commitMessage": { + "description": "Optional. The commit's message.", + "type": "string" + }, + "paths": { + "description": "Optional. Full file paths to commit including filename, rooted at workspace root. If left empty, all files will be committed.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "CompilationError": { + "description": "An error encountered when attempting to compile a Dataform project.", + "id": "CompilationError", + "properties": { + "actionTarget": { + "$ref": "Target", + "description": "Output only. The identifier of the action where this error occurred, if available.", + "readOnly": true + }, + "message": { + "description": "Output only. The error's top level message.", + "readOnly": true, + "type": "string" + }, + "path": { + "description": "Output only. The path of the file where this error occurred, if available, relative to the project root.", + "readOnly": true, + "type": "string" + }, + "stack": { + "description": "Output only. The error's full stack trace.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "CompilationResult": { + "description": "Represents the result of compiling a Dataform project.", + "id": "CompilationResult", + "properties": { + "codeCompilationConfig": { + "$ref": "CodeCompilationConfig", + "description": "Immutable. If set, fields of `code_compilation_config` override the default compilation settings that are specified in dataform.json." + }, + "compilationErrors": { + "description": "Output only. Errors encountered during project compilation.", + "items": { + "$ref": "CompilationError" + }, + "readOnly": true, + "type": "array" + }, + "dataformCoreVersion": { + "description": "Output only. The version of `@dataform/core` that was used for compilation.", + "readOnly": true, + "type": "string" + }, + "gitCommitish": { + "description": "Immutable. Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository. Examples: - a commit SHA: `12ade345` - a tag: `tag1` - a branch name: `branch1`", + "type": "string" + }, + "name": { + "description": "Output only. The compilation result's name.", + "readOnly": true, + "type": "string" + }, + "releaseConfig": { + "description": "Immutable. The name of the release config to compile. The release config's 'current_compilation_result' field will be updated to this compilation result. Must be in the format `projects/*/locations/*/repositories/*/releaseConfigs/*`.", + "type": "string" + }, + "resolvedGitCommitSha": { + "description": "Output only. The fully resolved Git commit SHA of the code that was compiled.", + "readOnly": true, + "type": "string" + }, + "workspace": { + "description": "Immutable. The name of the workspace to compile. Must be in the format `projects/*/locations/*/repositories/*/workspaces/*`.", + "type": "string" + } + }, + "type": "object" + }, + "CompilationResultAction": { + "description": "Represents a single Dataform action in a compilation result.", + "id": "CompilationResultAction", + "properties": { + "assertion": { + "$ref": "Assertion", + "description": "The assertion executed by this action." + }, + "canonicalTarget": { + "$ref": "Target", + "description": "The action's identifier if the project had been compiled without any overrides configured. Unique within the compilation result." + }, + "declaration": { + "$ref": "Declaration", + "description": "The declaration declared by this action." + }, + "filePath": { + "description": "The full path including filename in which this action is located, relative to the workspace root.", + "type": "string" + }, + "operations": { + "$ref": "Operations", + "description": "The database operations executed by this action." + }, + "relation": { + "$ref": "Relation", + "description": "The database relation created/updated by this action." + }, + "target": { + "$ref": "Target", + "description": "This action's identifier. Unique within the compilation result." + } + }, + "type": "object" + }, + "Declaration": { + "description": "Represents a relation which is not managed by Dataform but which may be referenced by Dataform actions.", + "id": "Declaration", + "properties": { + "relationDescriptor": { + "$ref": "RelationDescriptor", + "description": "Descriptor for the relation and its columns. Used as documentation only, i.e. values here will result in no changes to the relation's metadata." + } + }, + "type": "object" + }, + "DirectoryEntry": { + "description": "Represents a single entry in a workspace directory.", + "id": "DirectoryEntry", + "properties": { + "directory": { + "description": "A child directory in the directory.", + "type": "string" + }, + "file": { + "description": "A file in the directory.", + "type": "string" + } + }, + "type": "object" + }, + "Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", + "id": "Empty", + "properties": {}, + "type": "object" + }, + "FetchFileDiffResponse": { + "description": "`FetchFileDiff` response message.", + "id": "FetchFileDiffResponse", + "properties": { + "formattedDiff": { + "description": "The raw formatted Git diff for the file.", + "type": "string" + } + }, + "type": "object" + }, + "FetchFileGitStatusesResponse": { + "description": "`FetchFileGitStatuses` response message.", + "id": "FetchFileGitStatusesResponse", + "properties": { + "uncommittedFileChanges": { + "description": "A list of all files which have uncommitted Git changes. There will only be a single entry for any given file.", + "items": { + "$ref": "UncommittedFileChange" + }, + "type": "array" + } + }, + "type": "object" + }, + "FetchGitAheadBehindResponse": { + "description": "`FetchGitAheadBehind` response message.", + "id": "FetchGitAheadBehindResponse", + "properties": { + "commitsAhead": { + "description": "The number of commits in the remote branch that are not in the workspace.", + "format": "int32", + "type": "integer" + }, + "commitsBehind": { + "description": "The number of commits in the workspace that are not in the remote branch.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "FetchRemoteBranchesResponse": { + "description": "`FetchRemoteBranches` response message.", + "id": "FetchRemoteBranchesResponse", + "properties": { + "branches": { + "description": "The remote repository's branch names.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GitRemoteSettings": { + "description": "Controls Git remote configuration for a repository.", + "id": "GitRemoteSettings", + "properties": { + "authenticationTokenSecretVersion": { + "description": "Required. The name of the Secret Manager secret version to use as an authentication token for Git operations. Must be in the format `projects/*/secrets/*/versions/*`.", + "type": "string" + }, + "defaultBranch": { + "description": "Required. The Git remote's default branch name.", + "type": "string" + }, + "tokenStatus": { + "description": "Output only. Indicates the status of the Git access token.", + "enum": [ + "TOKEN_STATUS_UNSPECIFIED", + "NOT_FOUND", + "INVALID", + "VALID" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The token could not be found in Secret Manager (or the Dataform Service Account did not have permission to access it).", + "The token could not be used to authenticate against the Git remote.", + "The token was used successfully to authenticate against the Git remote." + ], + "readOnly": true, + "type": "string" + }, + "url": { + "description": "Required. The Git remote's URL.", + "type": "string" + } + }, + "type": "object" + }, + "IncrementalTableConfig": { + "description": "Contains settings for relations of type `INCREMENTAL_TABLE`.", + "id": "IncrementalTableConfig", + "properties": { + "incrementalPostOperations": { + "description": "SQL statements to be executed after inserting new rows into the relation.", + "items": { + "type": "string" + }, + "type": "array" + }, + "incrementalPreOperations": { + "description": "SQL statements to be executed before inserting new rows into the relation.", + "items": { + "type": "string" + }, + "type": "array" + }, + "incrementalSelectQuery": { + "description": "The SELECT query which returns rows which should be inserted into the relation if it already exists and is not being refreshed.", + "type": "string" + }, + "refreshDisabled": { + "description": "Whether this table should be protected from being refreshed.", + "type": "boolean" + }, + "uniqueKeyParts": { + "description": "A set of columns or SQL expressions used to define row uniqueness. If any duplicates are discovered (as defined by `unique_key_parts`), only the newly selected rows (as defined by `incremental_select_query`) will be included in the relation.", + "items": { + "type": "string" + }, + "type": "array" + }, + "updatePartitionFilter": { + "description": "A SQL expression conditional used to limit the set of existing rows considered for a merge operation (see `unique_key_parts` for more information).", + "type": "string" + } + }, + "type": "object" + }, + "InstallNpmPackagesRequest": { + "description": "`InstallNpmPackages` request message.", + "id": "InstallNpmPackagesRequest", + "properties": {}, + "type": "object" + }, + "InstallNpmPackagesResponse": { + "description": "`InstallNpmPackages` response message.", + "id": "InstallNpmPackagesResponse", + "properties": {}, + "type": "object" + }, + "Interval": { + "description": "Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.", + "id": "Interval", + "properties": { + "endTime": { + "description": "Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.", + "format": "google-datetime", + "type": "string" + }, + "startTime": { + "description": "Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "InvocationConfig": { + "description": "Includes various configuration options for this workflow invocation. If both `included_targets` and `included_tags` are unset, all actions will be included.", + "id": "InvocationConfig", + "properties": { + "fullyRefreshIncrementalTablesEnabled": { + "description": "Immutable. When set to true, any incremental tables will be fully refreshed.", + "type": "boolean" + }, + "includedTags": { + "description": "Immutable. The set of tags to include.", + "items": { + "type": "string" + }, + "type": "array" + }, + "includedTargets": { + "description": "Immutable. The set of action identifiers to include.", + "items": { + "$ref": "Target" + }, + "type": "array" + }, + "transitiveDependenciesIncluded": { + "description": "Immutable. When set to true, transitive dependencies of included actions will be executed.", + "type": "boolean" + }, + "transitiveDependentsIncluded": { + "description": "Immutable. When set to true, transitive dependents of included actions will be executed.", + "type": "boolean" + } + }, + "type": "object" + }, + "ListCompilationResultsResponse": { + "description": "`ListCompilationResults` response message.", + "id": "ListCompilationResultsResponse", + "properties": { + "compilationResults": { + "description": "List of compilation results.", + "items": { + "$ref": "CompilationResult" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "unreachable": { + "description": "Locations which could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListLocationsResponse": { + "description": "The response message for Locations.ListLocations.", + "id": "ListLocationsResponse", + "properties": { + "locations": { + "description": "A list of locations that matches the specified filter in the request.", + "items": { + "$ref": "Location" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + } + }, + "type": "object" + }, + "ListReleaseConfigsResponse": { + "description": "`ListReleaseConfigs` response message.", + "id": "ListReleaseConfigsResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "releaseConfigs": { + "description": "List of release configs.", + "items": { + "$ref": "ReleaseConfig" + }, + "type": "array" + }, + "unreachable": { + "description": "Locations which could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListRepositoriesResponse": { + "description": "`ListRepositories` response message.", + "id": "ListRepositoriesResponse", + "properties": { + "nextPageToken": { + "description": "A token which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "repositories": { + "description": "List of repositories.", + "items": { + "$ref": "Repository" + }, + "type": "array" + }, + "unreachable": { + "description": "Locations which could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListWorkflowInvocationsResponse": { + "description": "`ListWorkflowInvocations` response message.", + "id": "ListWorkflowInvocationsResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "unreachable": { + "description": "Locations which could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + }, + "workflowInvocations": { + "description": "List of workflow invocations.", + "items": { + "$ref": "WorkflowInvocation" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListWorkspacesResponse": { + "description": "`ListWorkspaces` response message.", + "id": "ListWorkspacesResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "unreachable": { + "description": "Locations which could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + }, + "workspaces": { + "description": "List of workspaces.", + "items": { + "$ref": "Workspace" + }, + "type": "array" + } + }, + "type": "object" + }, + "Location": { + "description": "A resource that represents Google Cloud Platform location.", + "id": "Location", + "properties": { + "displayName": { + "description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"}", + "type": "object" + }, + "locationId": { + "description": "The canonical id for this location. For example: `\"us-east1\"`.", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata. For example the available capacity at the given location.", + "type": "object" + }, + "name": { + "description": "Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"`", + "type": "string" + } + }, + "type": "object" + }, + "MakeDirectoryRequest": { + "description": "`MakeDirectory` request message.", + "id": "MakeDirectoryRequest", + "properties": { + "path": { + "description": "Required. The directory's full path including directory name, relative to the workspace root.", + "type": "string" + } + }, + "type": "object" + }, + "MakeDirectoryResponse": { + "description": "`MakeDirectory` response message.", + "id": "MakeDirectoryResponse", + "properties": {}, + "type": "object" + }, + "MoveDirectoryRequest": { + "description": "`MoveDirectory` request message.", + "id": "MoveDirectoryRequest", + "properties": { + "newPath": { + "description": "Required. The new path for the directory including directory name, rooted at workspace root.", + "type": "string" + }, + "path": { + "description": "Required. The directory's full path including directory name, relative to the workspace root.", + "type": "string" + } + }, + "type": "object" + }, + "MoveDirectoryResponse": { + "description": "`MoveDirectory` response message.", + "id": "MoveDirectoryResponse", + "properties": {}, + "type": "object" + }, + "MoveFileRequest": { + "description": "`MoveFile` request message.", + "id": "MoveFileRequest", + "properties": { + "newPath": { + "description": "Required. The file's new path including filename, relative to the workspace root.", + "type": "string" + }, + "path": { + "description": "Required. The file's full path including filename, relative to the workspace root.", + "type": "string" + } + }, + "type": "object" + }, + "MoveFileResponse": { + "description": "`MoveFile` response message.", + "id": "MoveFileResponse", + "properties": {}, + "type": "object" + }, + "OperationMetadata": { + "description": "Represents the metadata of the long-running operation.", + "id": "OperationMetadata", + "properties": { + "apiVersion": { + "description": "Output only. API version used to start the operation.", + "readOnly": true, + "type": "string" + }, + "cancelRequested": { + "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "readOnly": true, + "type": "boolean" + }, + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The time the operation finished running.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "statusDetail": { + "description": "Output only. Human-readable status of the operation, if any.", + "readOnly": true, + "type": "string" + }, + "target": { + "description": "Output only. Server-defined resource path for the target of the operation.", + "readOnly": true, + "type": "string" + }, + "verb": { + "description": "Output only. Name of the verb executed by the operation.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "Operations": { + "description": "Represents a list of arbitrary database operations.", + "id": "Operations", + "properties": { + "dependencyTargets": { + "description": "A list of actions that this action depends on.", + "items": { + "$ref": "Target" + }, + "type": "array" + }, + "disabled": { + "description": "Whether this action is disabled (i.e. should not be run).", + "type": "boolean" + }, + "hasOutput": { + "description": "Whether these operations produce an output relation.", + "type": "boolean" + }, + "queries": { + "description": "A list of arbitrary SQL statements that will be executed without alteration.", + "items": { + "type": "string" + }, + "type": "array" + }, + "relationDescriptor": { + "$ref": "RelationDescriptor", + "description": "Descriptor for any output relation and its columns. Only set if `has_output` is true." + }, + "tags": { + "description": "Arbitrary, user-defined tags on this action.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "PullGitCommitsRequest": { + "description": "`PullGitCommits` request message.", + "id": "PullGitCommitsRequest", + "properties": { + "author": { + "$ref": "CommitAuthor", + "description": "Required. The author of any merge commit which may be created as a result of merging fetched Git commits into this workspace." + }, + "remoteBranch": { + "description": "Optional. The name of the branch in the Git remote from which to pull commits. If left unset, the repository's default branch name will be used.", + "type": "string" + } + }, + "type": "object" + }, + "PushGitCommitsRequest": { + "description": "`PushGitCommits` request message.", + "id": "PushGitCommitsRequest", + "properties": { + "remoteBranch": { + "description": "Optional. The name of the branch in the Git remote to which commits should be pushed. If left unset, the repository's default branch name will be used.", + "type": "string" + } + }, + "type": "object" + }, + "QueryCompilationResultActionsResponse": { + "description": "`QueryCompilationResultActions` response message.", + "id": "QueryCompilationResultActionsResponse", + "properties": { + "compilationResultActions": { + "description": "List of compilation result actions.", + "items": { + "$ref": "CompilationResultAction" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, + "QueryDirectoryContentsResponse": { + "description": "`QueryDirectoryContents` response message.", + "id": "QueryDirectoryContentsResponse", + "properties": { + "directoryEntries": { + "description": "List of entries in the directory.", + "items": { + "$ref": "DirectoryEntry" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, + "QueryWorkflowInvocationActionsResponse": { + "description": "`QueryWorkflowInvocationActions` response message.", + "id": "QueryWorkflowInvocationActionsResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "workflowInvocationActions": { + "description": "List of workflow invocation actions.", + "items": { + "$ref": "WorkflowInvocationAction" + }, + "type": "array" + } + }, + "type": "object" + }, + "ReadFileResponse": { + "description": "`ReadFile` response message.", + "id": "ReadFileResponse", + "properties": { + "fileContents": { + "description": "The file's contents.", + "format": "byte", + "type": "string" + } + }, + "type": "object" + }, + "Relation": { + "description": "Represents a database relation.", + "id": "Relation", + "properties": { + "additionalOptions": { + "additionalProperties": { + "type": "string" + }, + "description": "Additional options that will be provided as key/value pairs into the options clause of a create table/view statement. See https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language for more information on which options are supported.", + "type": "object" + }, + "clusterExpressions": { + "description": "A list of columns or SQL expressions used to cluster the table.", + "items": { + "type": "string" + }, + "type": "array" + }, + "dependencyTargets": { + "description": "A list of actions that this action depends on.", + "items": { + "$ref": "Target" + }, + "type": "array" + }, + "disabled": { + "description": "Whether this action is disabled (i.e. should not be run).", + "type": "boolean" + }, + "incrementalTableConfig": { + "$ref": "IncrementalTableConfig", + "description": "Configures `INCREMENTAL_TABLE` settings for this relation. Only set if `relation_type` is `INCREMENTAL_TABLE`." + }, + "partitionExpirationDays": { + "description": "Sets the partition expiration in days.", + "format": "int32", + "type": "integer" + }, + "partitionExpression": { + "description": "The SQL expression used to partition the relation.", + "type": "string" + }, + "postOperations": { + "description": "SQL statements to be executed after creating the relation.", + "items": { + "type": "string" + }, + "type": "array" + }, + "preOperations": { + "description": "SQL statements to be executed before creating the relation.", + "items": { + "type": "string" + }, + "type": "array" + }, + "relationDescriptor": { + "$ref": "RelationDescriptor", + "description": "Descriptor for the relation and its columns." + }, + "relationType": { + "description": "The type of this relation.", + "enum": [ + "RELATION_TYPE_UNSPECIFIED", + "TABLE", + "VIEW", + "INCREMENTAL_TABLE", + "MATERIALIZED_VIEW" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The relation is a table.", + "The relation is a view.", + "The relation is an incrementalized table.", + "The relation is a materialized view." + ], + "type": "string" + }, + "requirePartitionFilter": { + "description": "Specifies whether queries on this table must include a predicate filter that filters on the partitioning column.", + "type": "boolean" + }, + "selectQuery": { + "description": "The SELECT query which returns rows which this relation should contain.", + "type": "string" + }, + "tags": { + "description": "Arbitrary, user-defined tags on this action.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "RelationDescriptor": { + "description": "Describes a relation and its columns.", + "id": "RelationDescriptor", + "properties": { + "bigqueryLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "A set of BigQuery labels that should be applied to the relation.", + "type": "object" + }, + "columns": { + "description": "A list of descriptions of columns within the relation.", + "items": { + "$ref": "ColumnDescriptor" + }, + "type": "array" + }, + "description": { + "description": "A text description of the relation.", + "type": "string" + } + }, + "type": "object" + }, + "ReleaseConfig": { + "description": "Represents a Dataform release configuration.", + "id": "ReleaseConfig", + "properties": { + "codeCompilationConfig": { + "$ref": "CodeCompilationConfig", + "description": "Immutable. If set, fields of `code_compilation_config` override the default compilation settings that are specified in dataform.json." + }, + "cronSchedule": { + "description": "Optional. Optional schedule (in cron format) for automatic creation of compilation results.", + "type": "string" + }, + "gitCommitish": { + "description": "Required. Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository. Examples: - a commit SHA: `12ade345` - a tag: `tag1` - a branch name: `branch1`", + "type": "string" + }, + "name": { + "description": "Output only. The release config's name.", + "readOnly": true, + "type": "string" + }, + "recentScheduledReleaseRecords": { + "description": "Output only. Records of the 10 most recent scheduled release attempts. Updated whenever automatic creation of a compilation result is triggered by cron_schedule.", + "items": { + "$ref": "ScheduledReleaseRecord" + }, + "readOnly": true, + "type": "array" + }, + "releaseCompilationResult": { + "description": "Optional. The name of the currently released compilation result for this release config. This value is updated when a compilation result is created from this release config, or when this resource is updated by API call (perhaps to roll back to an earlier release). The compilation result must have been created using this release config. Must be in the format `projects/*/locations/*/repositories/*/compilationResults/*`.", + "type": "string" + } + }, + "type": "object" + }, + "RemoveDirectoryRequest": { + "description": "`RemoveDirectory` request message.", + "id": "RemoveDirectoryRequest", + "properties": { + "path": { + "description": "Required. The directory's full path including directory name, relative to the workspace root.", + "type": "string" + } + }, + "type": "object" + }, + "RemoveFileRequest": { + "description": "`RemoveFile` request message.", + "id": "RemoveFileRequest", + "properties": { + "path": { + "description": "Required. The file's full path including filename, relative to the workspace root.", + "type": "string" + } + }, + "type": "object" + }, + "Repository": { + "description": "Represents a Dataform Git repository.", + "id": "Repository", + "properties": { + "gitRemoteSettings": { + "$ref": "GitRemoteSettings", + "description": "Optional. If set, configures this repository to be linked to a Git remote." + }, + "name": { + "description": "Output only. The repository's name.", + "readOnly": true, + "type": "string" + }, + "npmrcEnvironmentVariablesSecretVersion": { + "description": "Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format `projects/*/secrets/*/versions/*`. The file itself must be in a JSON format.", + "type": "string" + } + }, + "type": "object" + }, + "ResetWorkspaceChangesRequest": { + "description": "`ResetWorkspaceChanges` request message.", + "id": "ResetWorkspaceChangesRequest", + "properties": { + "clean": { + "description": "Optional. If set to true, untracked files will be deleted.", + "type": "boolean" + }, + "paths": { + "description": "Optional. Full file paths to reset back to their committed state including filename, rooted at workspace root. If left empty, all files will be reset.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ScheduledReleaseRecord": { + "description": "A record of an attempt to create a compilation result for this release config.", + "id": "ScheduledReleaseRecord", + "properties": { + "compilationResult": { + "description": "The name of the created compilation result, if one was successfully created. Must be in the format `projects/*/locations/*/repositories/*/compilationResults/*`.", + "type": "string" + }, + "errorStatus": { + "$ref": "Status", + "description": "The error status encountered upon this attempt to create the compilation result, if the attempt was unsuccessful." + }, + "releaseTime": { + "description": "The timestamp of this release attempt.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "Status": { + "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", + "id": "Status", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" + }, + "Target": { + "description": "Represents an action identifier. If the action writes output, the output will be written to the referenced database object.", + "id": "Target", + "properties": { + "database": { + "description": "The action's database (Google Cloud project ID) .", + "type": "string" + }, + "name": { + "description": "The action's name, within `database` and `schema`.", + "type": "string" + }, + "schema": { + "description": "The action's schema (BigQuery dataset ID), within `database`.", + "type": "string" + } + }, + "type": "object" + }, + "UncommittedFileChange": { + "description": "Represents the Git state of a file with uncommitted changes.", + "id": "UncommittedFileChange", + "properties": { + "path": { + "description": "The file's full path including filename, relative to the workspace root.", + "type": "string" + }, + "state": { + "description": "Indicates the status of the file.", + "enum": [ + "STATE_UNSPECIFIED", + "ADDED", + "DELETED", + "MODIFIED", + "HAS_CONFLICTS" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The file has been newly added.", + "The file has been deleted.", + "The file has been modified.", + "The file contains merge conflicts." + ], + "type": "string" + } + }, + "type": "object" + }, + "WorkflowInvocation": { + "description": "Represents a single invocation of a compilation result.", + "id": "WorkflowInvocation", + "properties": { + "compilationResult": { + "description": "Immutable. The name of the compilation result to compile. Must be in the format `projects/*/locations/*/repositories/*/compilationResults/*`.", + "type": "string" + }, + "invocationConfig": { + "$ref": "InvocationConfig", + "description": "Immutable. If left unset, a default InvocationConfig will be used." + }, + "invocationTiming": { + "$ref": "Interval", + "description": "Output only. This workflow invocation's timing details.", + "readOnly": true + }, + "name": { + "description": "Output only. The workflow invocation's name.", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. This workflow invocation's current state.", + "enum": [ + "STATE_UNSPECIFIED", + "RUNNING", + "SUCCEEDED", + "CANCELLED", + "FAILED", + "CANCELING" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The workflow invocation is currently running.", + "The workflow invocation succeeded. A terminal state.", + "The workflow invocation was cancelled. A terminal state.", + "The workflow invocation failed. A terminal state.", + "The workflow invocation is being cancelled, but some actions are still running." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "WorkflowInvocationAction": { + "description": "Represents a single action in a workflow invocation.", + "id": "WorkflowInvocationAction", + "properties": { + "bigqueryAction": { + "$ref": "BigQueryAction", + "description": "Output only. The workflow action's bigquery action details.", + "readOnly": true + }, + "canonicalTarget": { + "$ref": "Target", + "description": "Output only. The action's identifier if the project had been compiled without any overrides configured. Unique within the compilation result.", + "readOnly": true + }, + "failureReason": { + "description": "Output only. If and only if action's state is FAILED a failure reason is set.", + "readOnly": true, + "type": "string" + }, + "invocationTiming": { + "$ref": "Interval", + "description": "Output only. This action's timing details. `start_time` will be set if the action is in [RUNNING, SUCCEEDED, CANCELLED, FAILED] state. `end_time` will be set if the action is in [SUCCEEDED, CANCELLED, FAILED] state.", + "readOnly": true + }, + "state": { + "description": "Output only. This action's current state.", + "enum": [ + "PENDING", + "RUNNING", + "SKIPPED", + "DISABLED", + "SUCCEEDED", + "CANCELLED", + "FAILED" + ], + "enumDescriptions": [ + "The action has not yet been considered for invocation.", + "The action is currently running.", + "Execution of the action was skipped because upstream dependencies did not all complete successfully. A terminal state.", + "Execution of the action was disabled as per the configuration of the corresponding compilation result action. A terminal state.", + "The action succeeded. A terminal state.", + "The action was cancelled. A terminal state.", + "The action failed. A terminal state." + ], + "readOnly": true, + "type": "string" + }, + "target": { + "$ref": "Target", + "description": "Output only. This action's identifier. Unique within the workflow invocation.", + "readOnly": true + } + }, + "type": "object" + }, + "Workspace": { + "description": "Represents a Dataform Git workspace.", + "id": "Workspace", + "properties": { + "name": { + "description": "Output only. The workspace's name.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "WriteFileRequest": { + "description": "`WriteFile` request message.", + "id": "WriteFileRequest", + "properties": { + "contents": { + "description": "Required. The file's contents.", + "format": "byte", + "type": "string" + }, + "path": { + "description": "Required. The file.", + "type": "string" + } + }, + "type": "object" + }, + "WriteFileResponse": { + "description": "`WriteFile` response message.", + "id": "WriteFileResponse", + "properties": {}, + "type": "object" + } + }, + "servicePath": "", + "title": "Dataform API", + "version": "v1beta1", + "version_module": true +} \ No newline at end of file diff --git a/dataform/v1beta1/dataform-gen.go b/dataform/v1beta1/dataform-gen.go new file mode 100644 index 00000000000..a8f829672bb --- /dev/null +++ b/dataform/v1beta1/dataform-gen.go @@ -0,0 +1,9303 @@ +// Copyright 2022 Google LLC. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated file. DO NOT EDIT. + +// Package dataform provides access to the Dataform API. +// +// For product documentation, see: https://cloud.google.com/dataform/docs +// +// # Creating a client +// +// Usage example: +// +// import "google.golang.org/api/dataform/v1beta1" +// ... +// ctx := context.Background() +// dataformService, err := dataform.NewService(ctx) +// +// In this example, Google Application Default Credentials are used for authentication. +// +// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// +// # Other authentication options +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// dataformService, err := dataform.NewService(ctx, option.WithAPIKey("AIza...")) +// +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// +// config := &oauth2.Config{...} +// // ... +// token, err := config.Exchange(ctx, ...) +// dataformService, err := dataform.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package dataform // import "google.golang.org/api/dataform/v1beta1" + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" + gensupport "google.golang.org/api/internal/gensupport" + option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" + htransport "google.golang.org/api/transport/http" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = gensupport.MarshalJSON +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint + +const apiId = "dataform:v1beta1" +const apiName = "dataform" +const apiVersion = "v1beta1" +const basePath = "https://dataform.googleapis.com/" +const mtlsBasePath = "https://dataform.mtls.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // See, edit, configure, and delete your Google Cloud data and see the + // email address for your Google Account. + CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" +) + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + scopesOption := internaloption.WithDefaultScopes( + "https://www.googleapis.com/auth/cloud-platform", + ) + // NOTE: prepend, so we don't override user-specified scopes. + opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + client, endpoint, err := htransport.NewClient(ctx, opts...) + if err != nil { + return nil, err + } + s, err := New(client) + if err != nil { + return nil, err + } + if endpoint != "" { + s.BasePath = endpoint + } + return s, nil +} + +// New creates a new Service. It uses the provided http.Client for requests. +// +// Deprecated: please use NewService instead. +// To provide a custom HTTP client, use option.WithHTTPClient. +// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.Projects = NewProjectsService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Projects *ProjectsService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewProjectsService(s *Service) *ProjectsService { + rs := &ProjectsService{s: s} + rs.Locations = NewProjectsLocationsService(s) + return rs +} + +type ProjectsService struct { + s *Service + + Locations *ProjectsLocationsService +} + +func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { + rs := &ProjectsLocationsService{s: s} + rs.Repositories = NewProjectsLocationsRepositoriesService(s) + return rs +} + +type ProjectsLocationsService struct { + s *Service + + Repositories *ProjectsLocationsRepositoriesService +} + +func NewProjectsLocationsRepositoriesService(s *Service) *ProjectsLocationsRepositoriesService { + rs := &ProjectsLocationsRepositoriesService{s: s} + rs.CompilationResults = NewProjectsLocationsRepositoriesCompilationResultsService(s) + rs.ReleaseConfigs = NewProjectsLocationsRepositoriesReleaseConfigsService(s) + rs.WorkflowInvocations = NewProjectsLocationsRepositoriesWorkflowInvocationsService(s) + rs.Workspaces = NewProjectsLocationsRepositoriesWorkspacesService(s) + return rs +} + +type ProjectsLocationsRepositoriesService struct { + s *Service + + CompilationResults *ProjectsLocationsRepositoriesCompilationResultsService + + ReleaseConfigs *ProjectsLocationsRepositoriesReleaseConfigsService + + WorkflowInvocations *ProjectsLocationsRepositoriesWorkflowInvocationsService + + Workspaces *ProjectsLocationsRepositoriesWorkspacesService +} + +func NewProjectsLocationsRepositoriesCompilationResultsService(s *Service) *ProjectsLocationsRepositoriesCompilationResultsService { + rs := &ProjectsLocationsRepositoriesCompilationResultsService{s: s} + return rs +} + +type ProjectsLocationsRepositoriesCompilationResultsService struct { + s *Service +} + +func NewProjectsLocationsRepositoriesReleaseConfigsService(s *Service) *ProjectsLocationsRepositoriesReleaseConfigsService { + rs := &ProjectsLocationsRepositoriesReleaseConfigsService{s: s} + return rs +} + +type ProjectsLocationsRepositoriesReleaseConfigsService struct { + s *Service +} + +func NewProjectsLocationsRepositoriesWorkflowInvocationsService(s *Service) *ProjectsLocationsRepositoriesWorkflowInvocationsService { + rs := &ProjectsLocationsRepositoriesWorkflowInvocationsService{s: s} + return rs +} + +type ProjectsLocationsRepositoriesWorkflowInvocationsService struct { + s *Service +} + +func NewProjectsLocationsRepositoriesWorkspacesService(s *Service) *ProjectsLocationsRepositoriesWorkspacesService { + rs := &ProjectsLocationsRepositoriesWorkspacesService{s: s} + return rs +} + +type ProjectsLocationsRepositoriesWorkspacesService struct { + s *Service +} + +// Assertion: Represents an assertion upon a SQL query which is required +// return zero rows. +type Assertion struct { + // DependencyTargets: A list of actions that this action depends on. + DependencyTargets []*Target `json:"dependencyTargets,omitempty"` + + // Disabled: Whether this action is disabled (i.e. should not be run). + Disabled bool `json:"disabled,omitempty"` + + // ParentAction: The parent action of this assertion. Only set if this + // assertion was automatically generated. + ParentAction *Target `json:"parentAction,omitempty"` + + // RelationDescriptor: Descriptor for the assertion's + // automatically-generated view and its columns. + RelationDescriptor *RelationDescriptor `json:"relationDescriptor,omitempty"` + + // SelectQuery: The SELECT query which must return zero rows in order + // for this assertion to succeed. + SelectQuery string `json:"selectQuery,omitempty"` + + // Tags: Arbitrary, user-defined tags on this action. + Tags []string `json:"tags,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DependencyTargets") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DependencyTargets") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *Assertion) MarshalJSON() ([]byte, error) { + type NoMethod Assertion + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// BigQueryAction: Represents a workflow action that will run against +// BigQuery. +type BigQueryAction struct { + // SqlScript: Output only. The generated BigQuery SQL script that will + // be executed. + SqlScript string `json:"sqlScript,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SqlScript") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "SqlScript") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *BigQueryAction) MarshalJSON() ([]byte, error) { + type NoMethod BigQueryAction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CancelWorkflowInvocationRequest: `CancelWorkflowInvocation` request +// message. +type CancelWorkflowInvocationRequest struct { +} + +// CodeCompilationConfig: Configures various aspects of Dataform code +// compilation. +type CodeCompilationConfig struct { + // AssertionSchema: Optional. The default schema (BigQuery dataset ID) + // for assertions. + AssertionSchema string `json:"assertionSchema,omitempty"` + + // DatabaseSuffix: Optional. The suffix that should be appended to all + // database (Google Cloud project ID) names. + DatabaseSuffix string `json:"databaseSuffix,omitempty"` + + // DefaultDatabase: Optional. The default database (Google Cloud project + // ID). + DefaultDatabase string `json:"defaultDatabase,omitempty"` + + // DefaultLocation: Optional. The default BigQuery location to use. + // Defaults to "US". See the BigQuery docs for a full list of locations: + // https://cloud.google.com/bigquery/docs/locations. + DefaultLocation string `json:"defaultLocation,omitempty"` + + // DefaultSchema: Optional. The default schema (BigQuery dataset ID). + DefaultSchema string `json:"defaultSchema,omitempty"` + + // SchemaSuffix: Optional. The suffix that should be appended to all + // schema (BigQuery dataset ID) names. + SchemaSuffix string `json:"schemaSuffix,omitempty"` + + // TablePrefix: Optional. The prefix that should be prepended to all + // table names. + TablePrefix string `json:"tablePrefix,omitempty"` + + // Vars: Optional. User-defined variables that are made available to + // project code during compilation. + Vars map[string]string `json:"vars,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AssertionSchema") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AssertionSchema") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CodeCompilationConfig) MarshalJSON() ([]byte, error) { + type NoMethod CodeCompilationConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ColumnDescriptor: Describes a column. +type ColumnDescriptor struct { + // BigqueryPolicyTags: A list of BigQuery policy tags that will be + // applied to the column. + BigqueryPolicyTags []string `json:"bigqueryPolicyTags,omitempty"` + + // Description: A textual description of the column. + Description string `json:"description,omitempty"` + + // Path: The identifier for the column. Each entry in `path` represents + // one level of nesting. + Path []string `json:"path,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BigqueryPolicyTags") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BigqueryPolicyTags") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ColumnDescriptor) MarshalJSON() ([]byte, error) { + type NoMethod ColumnDescriptor + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CommitAuthor: Represents the author of a Git commit. +type CommitAuthor struct { + // EmailAddress: Required. The commit author's email address. + EmailAddress string `json:"emailAddress,omitempty"` + + // Name: Required. The commit author's name. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EmailAddress") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EmailAddress") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CommitAuthor) MarshalJSON() ([]byte, error) { + type NoMethod CommitAuthor + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CommitWorkspaceChangesRequest: `CommitWorkspaceChanges` request +// message. +type CommitWorkspaceChangesRequest struct { + // Author: Required. The commit's author. + Author *CommitAuthor `json:"author,omitempty"` + + // CommitMessage: Optional. The commit's message. + CommitMessage string `json:"commitMessage,omitempty"` + + // Paths: Optional. Full file paths to commit including filename, rooted + // at workspace root. If left empty, all files will be committed. + Paths []string `json:"paths,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Author") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Author") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CommitWorkspaceChangesRequest) MarshalJSON() ([]byte, error) { + type NoMethod CommitWorkspaceChangesRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CompilationError: An error encountered when attempting to compile a +// Dataform project. +type CompilationError struct { + // ActionTarget: Output only. The identifier of the action where this + // error occurred, if available. + ActionTarget *Target `json:"actionTarget,omitempty"` + + // Message: Output only. The error's top level message. + Message string `json:"message,omitempty"` + + // Path: Output only. The path of the file where this error occurred, if + // available, relative to the project root. + Path string `json:"path,omitempty"` + + // Stack: Output only. The error's full stack trace. + Stack string `json:"stack,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ActionTarget") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ActionTarget") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CompilationError) MarshalJSON() ([]byte, error) { + type NoMethod CompilationError + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CompilationResult: Represents the result of compiling a Dataform +// project. +type CompilationResult struct { + // CodeCompilationConfig: Immutable. If set, fields of + // `code_compilation_config` override the default compilation settings + // that are specified in dataform.json. + CodeCompilationConfig *CodeCompilationConfig `json:"codeCompilationConfig,omitempty"` + + // CompilationErrors: Output only. Errors encountered during project + // compilation. + CompilationErrors []*CompilationError `json:"compilationErrors,omitempty"` + + // DataformCoreVersion: Output only. The version of `@dataform/core` + // that was used for compilation. + DataformCoreVersion string `json:"dataformCoreVersion,omitempty"` + + // GitCommitish: Immutable. Git commit/tag/branch name at which the + // repository should be compiled. Must exist in the remote repository. + // Examples: - a commit SHA: `12ade345` - a tag: `tag1` - a branch name: + // `branch1` + GitCommitish string `json:"gitCommitish,omitempty"` + + // Name: Output only. The compilation result's name. + Name string `json:"name,omitempty"` + + // ReleaseConfig: Immutable. The name of the release config to compile. + // The release config's 'current_compilation_result' field will be + // updated to this compilation result. Must be in the format + // `projects/*/locations/*/repositories/*/releaseConfigs/*`. + ReleaseConfig string `json:"releaseConfig,omitempty"` + + // ResolvedGitCommitSha: Output only. The fully resolved Git commit SHA + // of the code that was compiled. + ResolvedGitCommitSha string `json:"resolvedGitCommitSha,omitempty"` + + // Workspace: Immutable. The name of the workspace to compile. Must be + // in the format `projects/*/locations/*/repositories/*/workspaces/*`. + Workspace string `json:"workspace,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "CodeCompilationConfig") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CodeCompilationConfig") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CompilationResult) MarshalJSON() ([]byte, error) { + type NoMethod CompilationResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CompilationResultAction: Represents a single Dataform action in a +// compilation result. +type CompilationResultAction struct { + // Assertion: The assertion executed by this action. + Assertion *Assertion `json:"assertion,omitempty"` + + // CanonicalTarget: The action's identifier if the project had been + // compiled without any overrides configured. Unique within the + // compilation result. + CanonicalTarget *Target `json:"canonicalTarget,omitempty"` + + // Declaration: The declaration declared by this action. + Declaration *Declaration `json:"declaration,omitempty"` + + // FilePath: The full path including filename in which this action is + // located, relative to the workspace root. + FilePath string `json:"filePath,omitempty"` + + // Operations: The database operations executed by this action. + Operations *Operations `json:"operations,omitempty"` + + // Relation: The database relation created/updated by this action. + Relation *Relation `json:"relation,omitempty"` + + // Target: This action's identifier. Unique within the compilation + // result. + Target *Target `json:"target,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Assertion") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Assertion") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CompilationResultAction) MarshalJSON() ([]byte, error) { + type NoMethod CompilationResultAction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Declaration: Represents a relation which is not managed by Dataform +// but which may be referenced by Dataform actions. +type Declaration struct { + // RelationDescriptor: Descriptor for the relation and its columns. Used + // as documentation only, i.e. values here will result in no changes to + // the relation's metadata. + RelationDescriptor *RelationDescriptor `json:"relationDescriptor,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RelationDescriptor") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "RelationDescriptor") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *Declaration) MarshalJSON() ([]byte, error) { + type NoMethod Declaration + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DirectoryEntry: Represents a single entry in a workspace directory. +type DirectoryEntry struct { + // Directory: A child directory in the directory. + Directory string `json:"directory,omitempty"` + + // File: A file in the directory. + File string `json:"file,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Directory") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Directory") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DirectoryEntry) MarshalJSON() ([]byte, error) { + type NoMethod DirectoryEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Empty: A generic empty message that you can re-use to avoid defining +// duplicated empty messages in your APIs. A typical example is to use +// it as the request or the response type of an API method. For +// instance: service Foo { rpc Bar(google.protobuf.Empty) returns +// (google.protobuf.Empty); } +type Empty struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// FetchFileDiffResponse: `FetchFileDiff` response message. +type FetchFileDiffResponse struct { + // FormattedDiff: The raw formatted Git diff for the file. + FormattedDiff string `json:"formattedDiff,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "FormattedDiff") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FormattedDiff") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *FetchFileDiffResponse) MarshalJSON() ([]byte, error) { + type NoMethod FetchFileDiffResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// FetchFileGitStatusesResponse: `FetchFileGitStatuses` response +// message. +type FetchFileGitStatusesResponse struct { + // UncommittedFileChanges: A list of all files which have uncommitted + // Git changes. There will only be a single entry for any given file. + UncommittedFileChanges []*UncommittedFileChange `json:"uncommittedFileChanges,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "UncommittedFileChanges") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "UncommittedFileChanges") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *FetchFileGitStatusesResponse) MarshalJSON() ([]byte, error) { + type NoMethod FetchFileGitStatusesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// FetchGitAheadBehindResponse: `FetchGitAheadBehind` response message. +type FetchGitAheadBehindResponse struct { + // CommitsAhead: The number of commits in the remote branch that are not + // in the workspace. + CommitsAhead int64 `json:"commitsAhead,omitempty"` + + // CommitsBehind: The number of commits in the workspace that are not in + // the remote branch. + CommitsBehind int64 `json:"commitsBehind,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CommitsAhead") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommitsAhead") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *FetchGitAheadBehindResponse) MarshalJSON() ([]byte, error) { + type NoMethod FetchGitAheadBehindResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// FetchRemoteBranchesResponse: `FetchRemoteBranches` response message. +type FetchRemoteBranchesResponse struct { + // Branches: The remote repository's branch names. + Branches []string `json:"branches,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Branches") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Branches") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *FetchRemoteBranchesResponse) MarshalJSON() ([]byte, error) { + type NoMethod FetchRemoteBranchesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GitRemoteSettings: Controls Git remote configuration for a +// repository. +type GitRemoteSettings struct { + // AuthenticationTokenSecretVersion: Required. The name of the Secret + // Manager secret version to use as an authentication token for Git + // operations. Must be in the format `projects/*/secrets/*/versions/*`. + AuthenticationTokenSecretVersion string `json:"authenticationTokenSecretVersion,omitempty"` + + // DefaultBranch: Required. The Git remote's default branch name. + DefaultBranch string `json:"defaultBranch,omitempty"` + + // TokenStatus: Output only. Indicates the status of the Git access + // token. + // + // Possible values: + // "TOKEN_STATUS_UNSPECIFIED" - Default value. This value is unused. + // "NOT_FOUND" - The token could not be found in Secret Manager (or + // the Dataform Service Account did not have permission to access it). + // "INVALID" - The token could not be used to authenticate against the + // Git remote. + // "VALID" - The token was used successfully to authenticate against + // the Git remote. + TokenStatus string `json:"tokenStatus,omitempty"` + + // Url: Required. The Git remote's URL. + Url string `json:"url,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AuthenticationTokenSecretVersion") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "AuthenticationTokenSecretVersion") to include in API requests with + // the JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GitRemoteSettings) MarshalJSON() ([]byte, error) { + type NoMethod GitRemoteSettings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// IncrementalTableConfig: Contains settings for relations of type +// `INCREMENTAL_TABLE`. +type IncrementalTableConfig struct { + // IncrementalPostOperations: SQL statements to be executed after + // inserting new rows into the relation. + IncrementalPostOperations []string `json:"incrementalPostOperations,omitempty"` + + // IncrementalPreOperations: SQL statements to be executed before + // inserting new rows into the relation. + IncrementalPreOperations []string `json:"incrementalPreOperations,omitempty"` + + // IncrementalSelectQuery: The SELECT query which returns rows which + // should be inserted into the relation if it already exists and is not + // being refreshed. + IncrementalSelectQuery string `json:"incrementalSelectQuery,omitempty"` + + // RefreshDisabled: Whether this table should be protected from being + // refreshed. + RefreshDisabled bool `json:"refreshDisabled,omitempty"` + + // UniqueKeyParts: A set of columns or SQL expressions used to define + // row uniqueness. If any duplicates are discovered (as defined by + // `unique_key_parts`), only the newly selected rows (as defined by + // `incremental_select_query`) will be included in the relation. + UniqueKeyParts []string `json:"uniqueKeyParts,omitempty"` + + // UpdatePartitionFilter: A SQL expression conditional used to limit the + // set of existing rows considered for a merge operation (see + // `unique_key_parts` for more information). + UpdatePartitionFilter string `json:"updatePartitionFilter,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "IncrementalPostOperations") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "IncrementalPostOperations") to include in API requests with the JSON + // null value. By default, fields with empty values are omitted from API + // requests. However, any field with an empty value appearing in + // NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *IncrementalTableConfig) MarshalJSON() ([]byte, error) { + type NoMethod IncrementalTableConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InstallNpmPackagesRequest: `InstallNpmPackages` request message. +type InstallNpmPackagesRequest struct { +} + +// InstallNpmPackagesResponse: `InstallNpmPackages` response message. +type InstallNpmPackagesResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// Interval: Represents a time interval, encoded as a Timestamp start +// (inclusive) and a Timestamp end (exclusive). The start must be less +// than or equal to the end. When the start equals the end, the interval +// is empty (matches no time). When both start and end are unspecified, +// the interval matches any time. +type Interval struct { + // EndTime: Optional. Exclusive end of the interval. If specified, a + // Timestamp matching this interval will have to be before the end. + EndTime string `json:"endTime,omitempty"` + + // StartTime: Optional. Inclusive start of the interval. If specified, a + // Timestamp matching this interval will have to be the same or after + // the start. + StartTime string `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EndTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Interval) MarshalJSON() ([]byte, error) { + type NoMethod Interval + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InvocationConfig: Includes various configuration options for this +// workflow invocation. If both `included_targets` and `included_tags` +// are unset, all actions will be included. +type InvocationConfig struct { + // FullyRefreshIncrementalTablesEnabled: Immutable. When set to true, + // any incremental tables will be fully refreshed. + FullyRefreshIncrementalTablesEnabled bool `json:"fullyRefreshIncrementalTablesEnabled,omitempty"` + + // IncludedTags: Immutable. The set of tags to include. + IncludedTags []string `json:"includedTags,omitempty"` + + // IncludedTargets: Immutable. The set of action identifiers to include. + IncludedTargets []*Target `json:"includedTargets,omitempty"` + + // TransitiveDependenciesIncluded: Immutable. When set to true, + // transitive dependencies of included actions will be executed. + TransitiveDependenciesIncluded bool `json:"transitiveDependenciesIncluded,omitempty"` + + // TransitiveDependentsIncluded: Immutable. When set to true, transitive + // dependents of included actions will be executed. + TransitiveDependentsIncluded bool `json:"transitiveDependentsIncluded,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "FullyRefreshIncrementalTablesEnabled") to unconditionally include in + // API requests. By default, fields with empty or default values are + // omitted from API requests. However, any non-pointer, non-interface + // field appearing in ForceSendFields will be sent to the server + // regardless of whether the field is empty or not. This may be used to + // include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "FullyRefreshIncrementalTablesEnabled") to include in API requests + // with the JSON null value. By default, fields with empty values are + // omitted from API requests. However, any field with an empty value + // appearing in NullFields will be sent to the server as null. It is an + // error if a field in this list has a non-empty value. This may be used + // to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *InvocationConfig) MarshalJSON() ([]byte, error) { + type NoMethod InvocationConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListCompilationResultsResponse: `ListCompilationResults` response +// message. +type ListCompilationResultsResponse struct { + // CompilationResults: List of compilation results. + CompilationResults []*CompilationResult `json:"compilationResults,omitempty"` + + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Unreachable: Locations which could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CompilationResults") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CompilationResults") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ListCompilationResultsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListCompilationResultsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListLocationsResponse: The response message for +// Locations.ListLocations. +type ListLocationsResponse struct { + // Locations: A list of locations that matches the specified filter in + // the request. + Locations []*Location `json:"locations,omitempty"` + + // NextPageToken: The standard List next-page token. + 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. "Locations") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Locations") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListLocationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListReleaseConfigsResponse: `ListReleaseConfigs` response message. +type ListReleaseConfigsResponse struct { + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ReleaseConfigs: List of release configs. + ReleaseConfigs []*ReleaseConfig `json:"releaseConfigs,omitempty"` + + // Unreachable: Locations which could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListReleaseConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListReleaseConfigsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListRepositoriesResponse: `ListRepositories` response message. +type ListRepositoriesResponse struct { + // NextPageToken: A token which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Repositories: List of repositories. + Repositories []*Repository `json:"repositories,omitempty"` + + // Unreachable: Locations which could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListRepositoriesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListRepositoriesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListWorkflowInvocationsResponse: `ListWorkflowInvocations` response +// message. +type ListWorkflowInvocationsResponse struct { + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Unreachable: Locations which could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // WorkflowInvocations: List of workflow invocations. + WorkflowInvocations []*WorkflowInvocation `json:"workflowInvocations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListWorkflowInvocationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListWorkflowInvocationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListWorkspacesResponse: `ListWorkspaces` response message. +type ListWorkspacesResponse struct { + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Unreachable: Locations which could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // Workspaces: List of workspaces. + Workspaces []*Workspace `json:"workspaces,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListWorkspacesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListWorkspacesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Location: A resource that represents Google Cloud Platform location. +type Location struct { + // DisplayName: The friendly name for this location, typically a nearby + // city name. For example, "Tokyo". + DisplayName string `json:"displayName,omitempty"` + + // Labels: Cross-service attributes for the location. For example + // {"cloud.googleapis.com/region": "us-east1"} + Labels map[string]string `json:"labels,omitempty"` + + // LocationId: The canonical id for this location. For example: + // "us-east1". + LocationId string `json:"locationId,omitempty"` + + // Metadata: Service-specific metadata. For example the available + // capacity at the given location. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: Resource name for the location, which may vary between + // implementations. For example: + // "projects/example-project/locations/us-east1" + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Location) MarshalJSON() ([]byte, error) { + type NoMethod Location + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MakeDirectoryRequest: `MakeDirectory` request message. +type MakeDirectoryRequest struct { + // Path: Required. The directory's full path including directory name, + // relative to the workspace root. + Path string `json:"path,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Path") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Path") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MakeDirectoryRequest) MarshalJSON() ([]byte, error) { + type NoMethod MakeDirectoryRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MakeDirectoryResponse: `MakeDirectory` response message. +type MakeDirectoryResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// MoveDirectoryRequest: `MoveDirectory` request message. +type MoveDirectoryRequest struct { + // NewPath: Required. The new path for the directory including directory + // name, rooted at workspace root. + NewPath string `json:"newPath,omitempty"` + + // Path: Required. The directory's full path including directory name, + // relative to the workspace root. + Path string `json:"path,omitempty"` + + // ForceSendFields is a list of field names (e.g. "NewPath") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NewPath") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MoveDirectoryRequest) MarshalJSON() ([]byte, error) { + type NoMethod MoveDirectoryRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MoveDirectoryResponse: `MoveDirectory` response message. +type MoveDirectoryResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// MoveFileRequest: `MoveFile` request message. +type MoveFileRequest struct { + // NewPath: Required. The file's new path including filename, relative + // to the workspace root. + NewPath string `json:"newPath,omitempty"` + + // Path: Required. The file's full path including filename, relative to + // the workspace root. + Path string `json:"path,omitempty"` + + // ForceSendFields is a list of field names (e.g. "NewPath") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NewPath") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MoveFileRequest) MarshalJSON() ([]byte, error) { + type NoMethod MoveFileRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MoveFileResponse: `MoveFile` response message. +type MoveFileResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// OperationMetadata: Represents the metadata of the long-running +// operation. +type OperationMetadata struct { + // ApiVersion: Output only. API version used to start the operation. + ApiVersion string `json:"apiVersion,omitempty"` + + // CancelRequested: Output only. Identifies whether the user has + // requested cancellation of the operation. Operations that have been + // cancelled successfully have Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + CancelRequested bool `json:"cancelRequested,omitempty"` + + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + + // StatusDetail: Output only. Human-readable status of the operation, if + // any. + StatusDetail string `json:"statusDetail,omitempty"` + + // Target: Output only. Server-defined resource path for the target of + // the operation. + Target string `json:"target,omitempty"` + + // Verb: Output only. Name of the verb executed by the operation. + Verb string `json:"verb,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApiVersion") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ApiVersion") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *OperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod OperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Operations: Represents a list of arbitrary database operations. +type Operations struct { + // DependencyTargets: A list of actions that this action depends on. + DependencyTargets []*Target `json:"dependencyTargets,omitempty"` + + // Disabled: Whether this action is disabled (i.e. should not be run). + Disabled bool `json:"disabled,omitempty"` + + // HasOutput: Whether these operations produce an output relation. + HasOutput bool `json:"hasOutput,omitempty"` + + // Queries: A list of arbitrary SQL statements that will be executed + // without alteration. + Queries []string `json:"queries,omitempty"` + + // RelationDescriptor: Descriptor for any output relation and its + // columns. Only set if `has_output` is true. + RelationDescriptor *RelationDescriptor `json:"relationDescriptor,omitempty"` + + // Tags: Arbitrary, user-defined tags on this action. + Tags []string `json:"tags,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DependencyTargets") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DependencyTargets") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *Operations) MarshalJSON() ([]byte, error) { + type NoMethod Operations + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PullGitCommitsRequest: `PullGitCommits` request message. +type PullGitCommitsRequest struct { + // Author: Required. The author of any merge commit which may be created + // as a result of merging fetched Git commits into this workspace. + Author *CommitAuthor `json:"author,omitempty"` + + // RemoteBranch: Optional. The name of the branch in the Git remote from + // which to pull commits. If left unset, the repository's default branch + // name will be used. + RemoteBranch string `json:"remoteBranch,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Author") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Author") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PullGitCommitsRequest) MarshalJSON() ([]byte, error) { + type NoMethod PullGitCommitsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PushGitCommitsRequest: `PushGitCommits` request message. +type PushGitCommitsRequest struct { + // RemoteBranch: Optional. The name of the branch in the Git remote to + // which commits should be pushed. If left unset, the repository's + // default branch name will be used. + RemoteBranch string `json:"remoteBranch,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RemoteBranch") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "RemoteBranch") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PushGitCommitsRequest) MarshalJSON() ([]byte, error) { + type NoMethod PushGitCommitsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// QueryCompilationResultActionsResponse: +// `QueryCompilationResultActions` response message. +type QueryCompilationResultActionsResponse struct { + // CompilationResultActions: List of compilation result actions. + CompilationResultActions []*CompilationResultAction `json:"compilationResultActions,omitempty"` + + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + 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. + // "CompilationResultActions") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CompilationResultActions") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *QueryCompilationResultActionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod QueryCompilationResultActionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// QueryDirectoryContentsResponse: `QueryDirectoryContents` response +// message. +type QueryDirectoryContentsResponse struct { + // DirectoryEntries: List of entries in the directory. + DirectoryEntries []*DirectoryEntry `json:"directoryEntries,omitempty"` + + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + 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. "DirectoryEntries") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DirectoryEntries") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *QueryDirectoryContentsResponse) MarshalJSON() ([]byte, error) { + type NoMethod QueryDirectoryContentsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// QueryWorkflowInvocationActionsResponse: +// `QueryWorkflowInvocationActions` response message. +type QueryWorkflowInvocationActionsResponse struct { + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // WorkflowInvocationActions: List of workflow invocation actions. + WorkflowInvocationActions []*WorkflowInvocationAction `json:"workflowInvocationActions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *QueryWorkflowInvocationActionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod QueryWorkflowInvocationActionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ReadFileResponse: `ReadFile` response message. +type ReadFileResponse struct { + // FileContents: The file's contents. + FileContents string `json:"fileContents,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "FileContents") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FileContents") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ReadFileResponse) MarshalJSON() ([]byte, error) { + type NoMethod ReadFileResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Relation: Represents a database relation. +type Relation struct { + // AdditionalOptions: Additional options that will be provided as + // key/value pairs into the options clause of a create table/view + // statement. See + // https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language + // for more information on which options are supported. + AdditionalOptions map[string]string `json:"additionalOptions,omitempty"` + + // ClusterExpressions: A list of columns or SQL expressions used to + // cluster the table. + ClusterExpressions []string `json:"clusterExpressions,omitempty"` + + // DependencyTargets: A list of actions that this action depends on. + DependencyTargets []*Target `json:"dependencyTargets,omitempty"` + + // Disabled: Whether this action is disabled (i.e. should not be run). + Disabled bool `json:"disabled,omitempty"` + + // IncrementalTableConfig: Configures `INCREMENTAL_TABLE` settings for + // this relation. Only set if `relation_type` is `INCREMENTAL_TABLE`. + IncrementalTableConfig *IncrementalTableConfig `json:"incrementalTableConfig,omitempty"` + + // PartitionExpirationDays: Sets the partition expiration in days. + PartitionExpirationDays int64 `json:"partitionExpirationDays,omitempty"` + + // PartitionExpression: The SQL expression used to partition the + // relation. + PartitionExpression string `json:"partitionExpression,omitempty"` + + // PostOperations: SQL statements to be executed after creating the + // relation. + PostOperations []string `json:"postOperations,omitempty"` + + // PreOperations: SQL statements to be executed before creating the + // relation. + PreOperations []string `json:"preOperations,omitempty"` + + // RelationDescriptor: Descriptor for the relation and its columns. + RelationDescriptor *RelationDescriptor `json:"relationDescriptor,omitempty"` + + // RelationType: The type of this relation. + // + // Possible values: + // "RELATION_TYPE_UNSPECIFIED" - Default value. This value is unused. + // "TABLE" - The relation is a table. + // "VIEW" - The relation is a view. + // "INCREMENTAL_TABLE" - The relation is an incrementalized table. + // "MATERIALIZED_VIEW" - The relation is a materialized view. + RelationType string `json:"relationType,omitempty"` + + // RequirePartitionFilter: Specifies whether queries on this table must + // include a predicate filter that filters on the partitioning column. + RequirePartitionFilter bool `json:"requirePartitionFilter,omitempty"` + + // SelectQuery: The SELECT query which returns rows which this relation + // should contain. + SelectQuery string `json:"selectQuery,omitempty"` + + // Tags: Arbitrary, user-defined tags on this action. + Tags []string `json:"tags,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AdditionalOptions") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AdditionalOptions") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *Relation) MarshalJSON() ([]byte, error) { + type NoMethod Relation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RelationDescriptor: Describes a relation and its columns. +type RelationDescriptor struct { + // BigqueryLabels: A set of BigQuery labels that should be applied to + // the relation. + BigqueryLabels map[string]string `json:"bigqueryLabels,omitempty"` + + // Columns: A list of descriptions of columns within the relation. + Columns []*ColumnDescriptor `json:"columns,omitempty"` + + // Description: A text description of the relation. + Description string `json:"description,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BigqueryLabels") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BigqueryLabels") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *RelationDescriptor) MarshalJSON() ([]byte, error) { + type NoMethod RelationDescriptor + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ReleaseConfig: Represents a Dataform release configuration. +type ReleaseConfig struct { + // CodeCompilationConfig: Immutable. If set, fields of + // `code_compilation_config` override the default compilation settings + // that are specified in dataform.json. + CodeCompilationConfig *CodeCompilationConfig `json:"codeCompilationConfig,omitempty"` + + // CronSchedule: Optional. Optional schedule (in cron format) for + // automatic creation of compilation results. + CronSchedule string `json:"cronSchedule,omitempty"` + + // GitCommitish: Required. Git commit/tag/branch name at which the + // repository should be compiled. Must exist in the remote repository. + // Examples: - a commit SHA: `12ade345` - a tag: `tag1` - a branch name: + // `branch1` + GitCommitish string `json:"gitCommitish,omitempty"` + + // Name: Output only. The release config's name. + Name string `json:"name,omitempty"` + + // RecentScheduledReleaseRecords: Output only. Records of the 10 most + // recent scheduled release attempts. Updated whenever automatic + // creation of a compilation result is triggered by cron_schedule. + RecentScheduledReleaseRecords []*ScheduledReleaseRecord `json:"recentScheduledReleaseRecords,omitempty"` + + // ReleaseCompilationResult: Optional. The name of the currently + // released compilation result for this release config. This value is + // updated when a compilation result is created from this release + // config, or when this resource is updated by API call (perhaps to roll + // back to an earlier release). The compilation result must have been + // created using this release config. Must be in the format + // `projects/*/locations/*/repositories/*/compilationResults/*`. + ReleaseCompilationResult string `json:"releaseCompilationResult,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "CodeCompilationConfig") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CodeCompilationConfig") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ReleaseConfig) MarshalJSON() ([]byte, error) { + type NoMethod ReleaseConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RemoveDirectoryRequest: `RemoveDirectory` request message. +type RemoveDirectoryRequest struct { + // Path: Required. The directory's full path including directory name, + // relative to the workspace root. + Path string `json:"path,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Path") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Path") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RemoveDirectoryRequest) MarshalJSON() ([]byte, error) { + type NoMethod RemoveDirectoryRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RemoveFileRequest: `RemoveFile` request message. +type RemoveFileRequest struct { + // Path: Required. The file's full path including filename, relative to + // the workspace root. + Path string `json:"path,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Path") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Path") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RemoveFileRequest) MarshalJSON() ([]byte, error) { + type NoMethod RemoveFileRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Repository: Represents a Dataform Git repository. +type Repository struct { + // GitRemoteSettings: Optional. If set, configures this repository to be + // linked to a Git remote. + GitRemoteSettings *GitRemoteSettings `json:"gitRemoteSettings,omitempty"` + + // Name: Output only. The repository's name. + Name string `json:"name,omitempty"` + + // NpmrcEnvironmentVariablesSecretVersion: Optional. The name of the + // Secret Manager secret version to be used to interpolate variables + // into the .npmrc file for package installation operations. Must be in + // the format `projects/*/secrets/*/versions/*`. The file itself must be + // in a JSON format. + NpmrcEnvironmentVariablesSecretVersion string `json:"npmrcEnvironmentVariablesSecretVersion,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "GitRemoteSettings") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GitRemoteSettings") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *Repository) MarshalJSON() ([]byte, error) { + type NoMethod Repository + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ResetWorkspaceChangesRequest: `ResetWorkspaceChanges` request +// message. +type ResetWorkspaceChangesRequest struct { + // Clean: Optional. If set to true, untracked files will be deleted. + Clean bool `json:"clean,omitempty"` + + // Paths: Optional. Full file paths to reset back to their committed + // state including filename, rooted at workspace root. If left empty, + // all files will be reset. + Paths []string `json:"paths,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Clean") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Clean") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ResetWorkspaceChangesRequest) MarshalJSON() ([]byte, error) { + type NoMethod ResetWorkspaceChangesRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ScheduledReleaseRecord: A record of an attempt to create a +// compilation result for this release config. +type ScheduledReleaseRecord struct { + // CompilationResult: The name of the created compilation result, if one + // was successfully created. Must be in the format + // `projects/*/locations/*/repositories/*/compilationResults/*`. + CompilationResult string `json:"compilationResult,omitempty"` + + // ErrorStatus: The error status encountered upon this attempt to create + // the compilation result, if the attempt was unsuccessful. + ErrorStatus *Status `json:"errorStatus,omitempty"` + + // ReleaseTime: The timestamp of this release attempt. + ReleaseTime string `json:"releaseTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CompilationResult") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CompilationResult") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ScheduledReleaseRecord) MarshalJSON() ([]byte, error) { + type NoMethod ScheduledReleaseRecord + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Status: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs +// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each +// `Status` message contains three pieces of data: error code, error +// message, and error details. You can find out more about this error +// model and how to work with it in the API Design Guide +// (https://cloud.google.com/apis/design/errors). +type Status struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Target: Represents an action identifier. If the action writes output, +// the output will be written to the referenced database object. +type Target struct { + // Database: The action's database (Google Cloud project ID) . + Database string `json:"database,omitempty"` + + // Name: The action's name, within `database` and `schema`. + Name string `json:"name,omitempty"` + + // Schema: The action's schema (BigQuery dataset ID), within `database`. + Schema string `json:"schema,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Database") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Database") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Target) MarshalJSON() ([]byte, error) { + type NoMethod Target + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// UncommittedFileChange: Represents the Git state of a file with +// uncommitted changes. +type UncommittedFileChange struct { + // Path: The file's full path including filename, relative to the + // workspace root. + Path string `json:"path,omitempty"` + + // State: Indicates the status of the file. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value. This value is unused. + // "ADDED" - The file has been newly added. + // "DELETED" - The file has been deleted. + // "MODIFIED" - The file has been modified. + // "HAS_CONFLICTS" - The file contains merge conflicts. + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Path") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Path") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *UncommittedFileChange) MarshalJSON() ([]byte, error) { + type NoMethod UncommittedFileChange + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WorkflowInvocation: Represents a single invocation of a compilation +// result. +type WorkflowInvocation struct { + // CompilationResult: Immutable. The name of the compilation result to + // compile. Must be in the format + // `projects/*/locations/*/repositories/*/compilationResults/*`. + CompilationResult string `json:"compilationResult,omitempty"` + + // InvocationConfig: Immutable. If left unset, a default + // InvocationConfig will be used. + InvocationConfig *InvocationConfig `json:"invocationConfig,omitempty"` + + // InvocationTiming: Output only. This workflow invocation's timing + // details. + InvocationTiming *Interval `json:"invocationTiming,omitempty"` + + // Name: Output only. The workflow invocation's name. + Name string `json:"name,omitempty"` + + // State: Output only. This workflow invocation's current state. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value. This value is unused. + // "RUNNING" - The workflow invocation is currently running. + // "SUCCEEDED" - The workflow invocation succeeded. A terminal state. + // "CANCELLED" - The workflow invocation was cancelled. A terminal + // state. + // "FAILED" - The workflow invocation failed. A terminal state. + // "CANCELING" - The workflow invocation is being cancelled, but some + // actions are still running. + State string `json:"state,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CompilationResult") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CompilationResult") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *WorkflowInvocation) MarshalJSON() ([]byte, error) { + type NoMethod WorkflowInvocation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WorkflowInvocationAction: Represents a single action in a workflow +// invocation. +type WorkflowInvocationAction struct { + // BigqueryAction: Output only. The workflow action's bigquery action + // details. + BigqueryAction *BigQueryAction `json:"bigqueryAction,omitempty"` + + // CanonicalTarget: Output only. The action's identifier if the project + // had been compiled without any overrides configured. Unique within the + // compilation result. + CanonicalTarget *Target `json:"canonicalTarget,omitempty"` + + // FailureReason: Output only. If and only if action's state is FAILED a + // failure reason is set. + FailureReason string `json:"failureReason,omitempty"` + + // InvocationTiming: Output only. This action's timing details. + // `start_time` will be set if the action is in [RUNNING, SUCCEEDED, + // CANCELLED, FAILED] state. `end_time` will be set if the action is in + // [SUCCEEDED, CANCELLED, FAILED] state. + InvocationTiming *Interval `json:"invocationTiming,omitempty"` + + // State: Output only. This action's current state. + // + // Possible values: + // "PENDING" - The action has not yet been considered for invocation. + // "RUNNING" - The action is currently running. + // "SKIPPED" - Execution of the action was skipped because upstream + // dependencies did not all complete successfully. A terminal state. + // "DISABLED" - Execution of the action was disabled as per the + // configuration of the corresponding compilation result action. A + // terminal state. + // "SUCCEEDED" - The action succeeded. A terminal state. + // "CANCELLED" - The action was cancelled. A terminal state. + // "FAILED" - The action failed. A terminal state. + State string `json:"state,omitempty"` + + // Target: Output only. This action's identifier. Unique within the + // workflow invocation. + Target *Target `json:"target,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BigqueryAction") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BigqueryAction") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *WorkflowInvocationAction) MarshalJSON() ([]byte, error) { + type NoMethod WorkflowInvocationAction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Workspace: Represents a Dataform Git workspace. +type Workspace struct { + // Name: Output only. The workspace's name. + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Name") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Workspace) MarshalJSON() ([]byte, error) { + type NoMethod Workspace + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WriteFileRequest: `WriteFile` request message. +type WriteFileRequest struct { + // Contents: Required. The file's contents. + Contents string `json:"contents,omitempty"` + + // Path: Required. The file. + Path string `json:"path,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Contents") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Contents") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *WriteFileRequest) MarshalJSON() ([]byte, error) { + type NoMethod WriteFileRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WriteFileResponse: `WriteFile` response message. +type WriteFileResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// method id "dataform.projects.locations.get": + +type ProjectsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a location. +// +// - name: Resource name for the location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.get" call. +// Exactly one of *Location or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Location.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 *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, 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 := &Location{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets information about a location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name for the location.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Location" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.list": + +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists information about the supported locations for this +// service. +// +// - name: The resource that owns the locations collection, if +// applicable. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": A filter to narrow down +// results to a preferred subset. The filtering language accepts strings +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// IncludeUnrevealedLocations sets the optional parameter +// "includeUnrevealedLocations": If true, the returned list will include +// locations which are not yet revealed. +func (c *ProjectsLocationsListCall) IncludeUnrevealedLocations(includeUnrevealedLocations bool) *ProjectsLocationsListCall { + c.urlParams_.Set("includeUnrevealedLocations", fmt.Sprint(includeUnrevealedLocations)) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return. If not set, the service selects a default. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token +// received from the `next_page_token` field in the response. Send that +// page token to receive the subsequent page. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/locations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.list" call. +// Exactly one of *ListLocationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, 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 := &ListLocationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists information about the supported locations for this service.", + // "flatPath": "v1beta1/projects/{projectsId}/locations", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "location": "query", + // "type": "string" + // }, + // "includeUnrevealedLocations": { + // "description": "If true, the returned list will include locations which are not yet revealed.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "The resource that owns the locations collection, if applicable.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return. If not set, the service selects a default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}/locations", + // "response": { + // "$ref": "ListLocationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "dataform.projects.locations.repositories.create": + +type ProjectsLocationsRepositoriesCreateCall struct { + s *Service + parent string + repository *Repository + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new Repository in a given project and location. +// +// - parent: The location in which to create the repository. Must be in +// the format `projects/*/locations/*`. +func (r *ProjectsLocationsRepositoriesService) Create(parent string, repository *Repository) *ProjectsLocationsRepositoriesCreateCall { + c := &ProjectsLocationsRepositoriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.repository = repository + return c +} + +// RepositoryId sets the optional parameter "repositoryId": Required. +// The ID to use for the repository, which will become the final +// component of the repository's resource name. +func (c *ProjectsLocationsRepositoriesCreateCall) RepositoryId(repositoryId string) *ProjectsLocationsRepositoriesCreateCall { + c.urlParams_.Set("repositoryId", repositoryId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesCreateCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.repository) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/repositories") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.create" call. +// Exactly one of *Repository or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Repository.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 *ProjectsLocationsRepositoriesCreateCall) Do(opts ...googleapi.CallOption) (*Repository, 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 := &Repository{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new Repository in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The location in which to create the repository. Must be in the format `projects/*/locations/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "repositoryId": { + // "description": "Required. The ID to use for the repository, which will become the final component of the repository's resource name.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/repositories", + // "request": { + // "$ref": "Repository" + // }, + // "response": { + // "$ref": "Repository" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.delete": + +type ProjectsLocationsRepositoriesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single Repository. +// +// - name: The repository's name. +func (r *ProjectsLocationsRepositoriesService) Delete(name string) *ProjectsLocationsRepositoriesDeleteCall { + c := &ProjectsLocationsRepositoriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Force sets the optional parameter "force": If set to true, any child +// resources of this repository will also be deleted. (Otherwise, the +// request will only succeed if the repository has no child resources.) +func (c *ProjectsLocationsRepositoriesDeleteCall) Force(force bool) *ProjectsLocationsRepositoriesDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsRepositoriesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a single Repository.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}", + // "httpMethod": "DELETE", + // "id": "dataform.projects.locations.repositories.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "force": { + // "description": "If set to true, any child resources of this repository will also be deleted. (Otherwise, the request will only succeed if the repository has no child resources.)", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Required. The repository's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.fetchRemoteBranches": + +type ProjectsLocationsRepositoriesFetchRemoteBranchesCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// FetchRemoteBranches: Fetches a Repository's remote branches. +// +// - name: The repository's name. +func (r *ProjectsLocationsRepositoriesService) FetchRemoteBranches(name string) *ProjectsLocationsRepositoriesFetchRemoteBranchesCall { + c := &ProjectsLocationsRepositoriesFetchRemoteBranchesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesFetchRemoteBranchesCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesFetchRemoteBranchesCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesFetchRemoteBranchesCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:fetchRemoteBranches") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.fetchRemoteBranches" call. +// Exactly one of *FetchRemoteBranchesResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *FetchRemoteBranchesResponse.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 *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) Do(opts ...googleapi.CallOption) (*FetchRemoteBranchesResponse, 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 := &FetchRemoteBranchesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Fetches a Repository's remote branches.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:fetchRemoteBranches", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.fetchRemoteBranches", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The repository's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:fetchRemoteBranches", + // "response": { + // "$ref": "FetchRemoteBranchesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.get": + +type ProjectsLocationsRepositoriesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Fetches a single Repository. +// +// - name: The repository's name. +func (r *ProjectsLocationsRepositoriesService) Get(name string) *ProjectsLocationsRepositoriesGetCall { + c := &ProjectsLocationsRepositoriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.get" call. +// Exactly one of *Repository or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Repository.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 *ProjectsLocationsRepositoriesGetCall) Do(opts ...googleapi.CallOption) (*Repository, 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 := &Repository{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Fetches a single Repository.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The repository's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Repository" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.list": + +type ProjectsLocationsRepositoriesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists Repositories in a given project and location. +// +// - parent: The location in which to list repositories. Must be in the +// format `projects/*/locations/*`. +func (r *ProjectsLocationsRepositoriesService) List(parent string) *ProjectsLocationsRepositoriesListCall { + c := &ProjectsLocationsRepositoriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter for the returned +// list. +func (c *ProjectsLocationsRepositoriesListCall) Filter(filter string) *ProjectsLocationsRepositoriesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": This field only +// supports ordering by `name`. If unspecified, the server will choose +// the ordering. If specified, the default order is ascending for the +// `name` field. +func (c *ProjectsLocationsRepositoriesListCall) OrderBy(orderBy string) *ProjectsLocationsRepositoriesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// repositories to return. The server may return fewer items than +// requested. If unspecified, the server will pick an appropriate +// default. +func (c *ProjectsLocationsRepositoriesListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token +// received from a previous `ListRepositories` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to `ListRepositories` must match the call that provided the +// page token. +func (c *ProjectsLocationsRepositoriesListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/repositories") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.list" call. +// Exactly one of *ListRepositoriesResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListRepositoriesResponse.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 *ProjectsLocationsRepositoriesListCall) Do(opts ...googleapi.CallOption) (*ListRepositoriesResponse, 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 := &ListRepositoriesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists Repositories in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. Filter for the returned list.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Optional. This field only supports ordering by `name`. If unspecified, the server will choose the ordering. If specified, the default order is ascending for the `name` field.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Maximum number of repositories to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. Page token received from a previous `ListRepositories` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRepositories` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The location in which to list repositories. Must be in the format `projects/*/locations/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/repositories", + // "response": { + // "$ref": "ListRepositoriesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsRepositoriesListCall) Pages(ctx context.Context, f func(*ListRepositoriesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "dataform.projects.locations.repositories.patch": + +type ProjectsLocationsRepositoriesPatchCall struct { + s *Service + name string + repository *Repository + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a single Repository. +// +// - name: Output only. The repository's name. +func (r *ProjectsLocationsRepositoriesService) Patch(name string, repository *Repository) *ProjectsLocationsRepositoriesPatchCall { + c := &ProjectsLocationsRepositoriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.repository = repository + return c +} + +// UpdateMask sets the optional parameter "updateMask": Specifies the +// fields to be updated in the repository. If left unset, all fields +// will be updated. +func (c *ProjectsLocationsRepositoriesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRepositoriesPatchCall { + 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 information. +func (c *ProjectsLocationsRepositoriesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesPatchCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.repository) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.patch" call. +// Exactly one of *Repository or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Repository.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 *ProjectsLocationsRepositoriesPatchCall) Do(opts ...googleapi.CallOption) (*Repository, 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 := &Repository{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a single Repository.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}", + // "httpMethod": "PATCH", + // "id": "dataform.projects.locations.repositories.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. The repository's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Optional. Specifies the fields to be updated in the repository. If left unset, all fields will be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "Repository" + // }, + // "response": { + // "$ref": "Repository" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.compilationResults.create": + +type ProjectsLocationsRepositoriesCompilationResultsCreateCall struct { + s *Service + parent string + compilationresult *CompilationResult + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new CompilationResult in a given project and +// location. +// +// - parent: The repository in which to create the compilation result. +// Must be in the format `projects/*/locations/*/repositories/*`. +func (r *ProjectsLocationsRepositoriesCompilationResultsService) Create(parent string, compilationresult *CompilationResult) *ProjectsLocationsRepositoriesCompilationResultsCreateCall { + c := &ProjectsLocationsRepositoriesCompilationResultsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.compilationresult = compilationresult + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesCompilationResultsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesCompilationResultsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesCompilationResultsCreateCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesCompilationResultsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesCompilationResultsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesCompilationResultsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.compilationresult) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/compilationResults") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.compilationResults.create" call. +// Exactly one of *CompilationResult or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *CompilationResult.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 *ProjectsLocationsRepositoriesCompilationResultsCreateCall) Do(opts ...googleapi.CallOption) (*CompilationResult, 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 := &CompilationResult{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new CompilationResult in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/compilationResults", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.compilationResults.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The repository in which to create the compilation result. Must be in the format `projects/*/locations/*/repositories/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/compilationResults", + // "request": { + // "$ref": "CompilationResult" + // }, + // "response": { + // "$ref": "CompilationResult" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.compilationResults.get": + +type ProjectsLocationsRepositoriesCompilationResultsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Fetches a single CompilationResult. +// +// - name: The compilation result's name. +func (r *ProjectsLocationsRepositoriesCompilationResultsService) Get(name string) *ProjectsLocationsRepositoriesCompilationResultsGetCall { + c := &ProjectsLocationsRepositoriesCompilationResultsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesCompilationResultsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesCompilationResultsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesCompilationResultsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesCompilationResultsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesCompilationResultsGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesCompilationResultsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesCompilationResultsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesCompilationResultsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.compilationResults.get" call. +// Exactly one of *CompilationResult or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *CompilationResult.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 *ProjectsLocationsRepositoriesCompilationResultsGetCall) Do(opts ...googleapi.CallOption) (*CompilationResult, 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 := &CompilationResult{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Fetches a single CompilationResult.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/compilationResults/{compilationResultsId}", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.compilationResults.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The compilation result's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "CompilationResult" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.compilationResults.list": + +type ProjectsLocationsRepositoriesCompilationResultsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists CompilationResults in a given Repository. +// +// - parent: The repository in which to list compilation results. Must +// be in the format `projects/*/locations/*/repositories/*`. +func (r *ProjectsLocationsRepositoriesCompilationResultsService) List(parent string) *ProjectsLocationsRepositoriesCompilationResultsListCall { + c := &ProjectsLocationsRepositoriesCompilationResultsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// compilation results to return. The server may return fewer items than +// requested. If unspecified, the server will pick an appropriate +// default. +func (c *ProjectsLocationsRepositoriesCompilationResultsListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesCompilationResultsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token +// received from a previous `ListCompilationResults` call. Provide this +// to retrieve the subsequent page. When paginating, all other +// parameters provided to `ListCompilationResults` must match the call +// that provided the page token. +func (c *ProjectsLocationsRepositoriesCompilationResultsListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesCompilationResultsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesCompilationResultsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesCompilationResultsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesCompilationResultsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesCompilationResultsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesCompilationResultsListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesCompilationResultsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesCompilationResultsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesCompilationResultsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/compilationResults") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.compilationResults.list" call. +// Exactly one of *ListCompilationResultsResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListCompilationResultsResponse.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 *ProjectsLocationsRepositoriesCompilationResultsListCall) Do(opts ...googleapi.CallOption) (*ListCompilationResultsResponse, 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 := &ListCompilationResultsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists CompilationResults in a given Repository.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/compilationResults", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.compilationResults.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. Maximum number of compilation results to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. Page token received from a previous `ListCompilationResults` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCompilationResults` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The repository in which to list compilation results. Must be in the format `projects/*/locations/*/repositories/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/compilationResults", + // "response": { + // "$ref": "ListCompilationResultsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsRepositoriesCompilationResultsListCall) Pages(ctx context.Context, f func(*ListCompilationResultsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "dataform.projects.locations.repositories.compilationResults.query": + +type ProjectsLocationsRepositoriesCompilationResultsQueryCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Query: Returns CompilationResultActions in a given CompilationResult. +// +// - name: The compilation result's name. +func (r *ProjectsLocationsRepositoriesCompilationResultsService) Query(name string) *ProjectsLocationsRepositoriesCompilationResultsQueryCall { + c := &ProjectsLocationsRepositoriesCompilationResultsQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": Optional filter for the +// returned list. Filtering is only currently supported on the +// `file_path` field. +func (c *ProjectsLocationsRepositoriesCompilationResultsQueryCall) Filter(filter string) *ProjectsLocationsRepositoriesCompilationResultsQueryCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// compilation results to return. The server may return fewer items than +// requested. If unspecified, the server will pick an appropriate +// default. +func (c *ProjectsLocationsRepositoriesCompilationResultsQueryCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesCompilationResultsQueryCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token +// received from a previous `QueryCompilationResultActions` call. +// Provide this to retrieve the subsequent page. When paginating, all +// other parameters provided to `QueryCompilationResultActions` must +// match the call that provided the page token. +func (c *ProjectsLocationsRepositoriesCompilationResultsQueryCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesCompilationResultsQueryCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesCompilationResultsQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesCompilationResultsQueryCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesCompilationResultsQueryCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesCompilationResultsQueryCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesCompilationResultsQueryCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesCompilationResultsQueryCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesCompilationResultsQueryCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesCompilationResultsQueryCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:query") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.compilationResults.query" call. +// Exactly one of *QueryCompilationResultActionsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *QueryCompilationResultActionsResponse.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 *ProjectsLocationsRepositoriesCompilationResultsQueryCall) Do(opts ...googleapi.CallOption) (*QueryCompilationResultActionsResponse, 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 := &QueryCompilationResultActionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns CompilationResultActions in a given CompilationResult.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/compilationResults/{compilationResultsId}:query", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.compilationResults.query", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. Optional filter for the returned list. Filtering is only currently supported on the `file_path` field.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "Required. The compilation result's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Maximum number of compilation results to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. Page token received from a previous `QueryCompilationResultActions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryCompilationResultActions` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:query", + // "response": { + // "$ref": "QueryCompilationResultActionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsRepositoriesCompilationResultsQueryCall) Pages(ctx context.Context, f func(*QueryCompilationResultActionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "dataform.projects.locations.repositories.releaseConfigs.create": + +type ProjectsLocationsRepositoriesReleaseConfigsCreateCall struct { + s *Service + parent string + releaseconfig *ReleaseConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new ReleaseConfig in a given Repository. +// +// - parent: The repository in which to create the release config. Must +// be in the format `projects/*/locations/*/repositories/*`. +func (r *ProjectsLocationsRepositoriesReleaseConfigsService) Create(parent string, releaseconfig *ReleaseConfig) *ProjectsLocationsRepositoriesReleaseConfigsCreateCall { + c := &ProjectsLocationsRepositoriesReleaseConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.releaseconfig = releaseconfig + return c +} + +// ReleaseConfigId sets the optional parameter "releaseConfigId": +// Required. The ID to use for the release config, which will become the +// final component of the release config's resource name. +func (c *ProjectsLocationsRepositoriesReleaseConfigsCreateCall) ReleaseConfigId(releaseConfigId string) *ProjectsLocationsRepositoriesReleaseConfigsCreateCall { + c.urlParams_.Set("releaseConfigId", releaseConfigId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesReleaseConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesReleaseConfigsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesReleaseConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesReleaseConfigsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesReleaseConfigsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesReleaseConfigsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.releaseconfig) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/releaseConfigs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.releaseConfigs.create" call. +// Exactly one of *ReleaseConfig or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *ReleaseConfig.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 *ProjectsLocationsRepositoriesReleaseConfigsCreateCall) Do(opts ...googleapi.CallOption) (*ReleaseConfig, 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 := &ReleaseConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new ReleaseConfig in a given Repository.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/releaseConfigs", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.releaseConfigs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The repository in which to create the release config. Must be in the format `projects/*/locations/*/repositories/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "releaseConfigId": { + // "description": "Required. The ID to use for the release config, which will become the final component of the release config's resource name.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/releaseConfigs", + // "request": { + // "$ref": "ReleaseConfig" + // }, + // "response": { + // "$ref": "ReleaseConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.releaseConfigs.delete": + +type ProjectsLocationsRepositoriesReleaseConfigsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single ReleaseConfig. +// +// - name: The release config's name. +func (r *ProjectsLocationsRepositoriesReleaseConfigsService) Delete(name string) *ProjectsLocationsRepositoriesReleaseConfigsDeleteCall { + c := &ProjectsLocationsRepositoriesReleaseConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesReleaseConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesReleaseConfigsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesReleaseConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesReleaseConfigsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesReleaseConfigsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesReleaseConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.releaseConfigs.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsRepositoriesReleaseConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a single ReleaseConfig.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/releaseConfigs/{releaseConfigsId}", + // "httpMethod": "DELETE", + // "id": "dataform.projects.locations.repositories.releaseConfigs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The release config's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.releaseConfigs.get": + +type ProjectsLocationsRepositoriesReleaseConfigsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Fetches a single ReleaseConfig. +// +// - name: The release config's name. +func (r *ProjectsLocationsRepositoriesReleaseConfigsService) Get(name string) *ProjectsLocationsRepositoriesReleaseConfigsGetCall { + c := &ProjectsLocationsRepositoriesReleaseConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesReleaseConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesReleaseConfigsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesReleaseConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesReleaseConfigsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesReleaseConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesReleaseConfigsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesReleaseConfigsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesReleaseConfigsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.releaseConfigs.get" call. +// Exactly one of *ReleaseConfig or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *ReleaseConfig.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 *ProjectsLocationsRepositoriesReleaseConfigsGetCall) Do(opts ...googleapi.CallOption) (*ReleaseConfig, 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 := &ReleaseConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Fetches a single ReleaseConfig.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/releaseConfigs/{releaseConfigsId}", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.releaseConfigs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The release config's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "ReleaseConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.releaseConfigs.list": + +type ProjectsLocationsRepositoriesReleaseConfigsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists ReleaseConfigs in a given Repository. +// +// - parent: The repository in which to list release configs. Must be in +// the format `projects/*/locations/*/repositories/*`. +func (r *ProjectsLocationsRepositoriesReleaseConfigsService) List(parent string) *ProjectsLocationsRepositoriesReleaseConfigsListCall { + c := &ProjectsLocationsRepositoriesReleaseConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// release configs to return. The server may return fewer items than +// requested. If unspecified, the server will pick an appropriate +// default. +func (c *ProjectsLocationsRepositoriesReleaseConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesReleaseConfigsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token +// received from a previous `ListReleaseConfigs` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to `ListReleaseConfigs` must match the call that provided +// the page token. +func (c *ProjectsLocationsRepositoriesReleaseConfigsListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesReleaseConfigsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesReleaseConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesReleaseConfigsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesReleaseConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesReleaseConfigsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesReleaseConfigsListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesReleaseConfigsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesReleaseConfigsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesReleaseConfigsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/releaseConfigs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.releaseConfigs.list" call. +// Exactly one of *ListReleaseConfigsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListReleaseConfigsResponse.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 *ProjectsLocationsRepositoriesReleaseConfigsListCall) Do(opts ...googleapi.CallOption) (*ListReleaseConfigsResponse, 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 := &ListReleaseConfigsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists ReleaseConfigs in a given Repository.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/releaseConfigs", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.releaseConfigs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. Maximum number of release configs to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. Page token received from a previous `ListReleaseConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReleaseConfigs` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The repository in which to list release configs. Must be in the format `projects/*/locations/*/repositories/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/releaseConfigs", + // "response": { + // "$ref": "ListReleaseConfigsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsRepositoriesReleaseConfigsListCall) Pages(ctx context.Context, f func(*ListReleaseConfigsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "dataform.projects.locations.repositories.releaseConfigs.patch": + +type ProjectsLocationsRepositoriesReleaseConfigsPatchCall struct { + s *Service + name string + releaseconfig *ReleaseConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a single ReleaseConfig. +// +// - name: Output only. The release config's name. +func (r *ProjectsLocationsRepositoriesReleaseConfigsService) Patch(name string, releaseconfig *ReleaseConfig) *ProjectsLocationsRepositoriesReleaseConfigsPatchCall { + c := &ProjectsLocationsRepositoriesReleaseConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.releaseconfig = releaseconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": Specifies the +// fields to be updated in the release config. If left unset, all fields +// will be updated. +func (c *ProjectsLocationsRepositoriesReleaseConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRepositoriesReleaseConfigsPatchCall { + 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 information. +func (c *ProjectsLocationsRepositoriesReleaseConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesReleaseConfigsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesReleaseConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesReleaseConfigsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesReleaseConfigsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesReleaseConfigsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.releaseconfig) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.releaseConfigs.patch" call. +// Exactly one of *ReleaseConfig or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *ReleaseConfig.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 *ProjectsLocationsRepositoriesReleaseConfigsPatchCall) Do(opts ...googleapi.CallOption) (*ReleaseConfig, 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 := &ReleaseConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a single ReleaseConfig.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/releaseConfigs/{releaseConfigsId}", + // "httpMethod": "PATCH", + // "id": "dataform.projects.locations.repositories.releaseConfigs.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. The release config's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Optional. Specifies the fields to be updated in the release config. If left unset, all fields will be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "ReleaseConfig" + // }, + // "response": { + // "$ref": "ReleaseConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workflowInvocations.cancel": + +type ProjectsLocationsRepositoriesWorkflowInvocationsCancelCall struct { + s *Service + name string + cancelworkflowinvocationrequest *CancelWorkflowInvocationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Requests cancellation of a running WorkflowInvocation. +// +// - name: The workflow invocation resource's name. +func (r *ProjectsLocationsRepositoriesWorkflowInvocationsService) Cancel(name string, cancelworkflowinvocationrequest *CancelWorkflowInvocationRequest) *ProjectsLocationsRepositoriesWorkflowInvocationsCancelCall { + c := &ProjectsLocationsRepositoriesWorkflowInvocationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.cancelworkflowinvocationrequest = cancelworkflowinvocationrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkflowInvocationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsCancelCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkflowInvocationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.cancelworkflowinvocationrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workflowInvocations.cancel" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Requests cancellation of a running WorkflowInvocation.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowInvocations/{workflowInvocationsId}:cancel", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workflowInvocations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workflow invocation resource's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:cancel", + // "request": { + // "$ref": "CancelWorkflowInvocationRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workflowInvocations.create": + +type ProjectsLocationsRepositoriesWorkflowInvocationsCreateCall struct { + s *Service + parent string + workflowinvocation *WorkflowInvocation + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new WorkflowInvocation in a given Repository. +// +// - parent: The repository in which to create the workflow invocation. +// Must be in the format `projects/*/locations/*/repositories/*`. +func (r *ProjectsLocationsRepositoriesWorkflowInvocationsService) Create(parent string, workflowinvocation *WorkflowInvocation) *ProjectsLocationsRepositoriesWorkflowInvocationsCreateCall { + c := &ProjectsLocationsRepositoriesWorkflowInvocationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.workflowinvocation = workflowinvocation + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkflowInvocationsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsCreateCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkflowInvocationsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.workflowinvocation) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/workflowInvocations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workflowInvocations.create" call. +// Exactly one of *WorkflowInvocation or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *WorkflowInvocation.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 *ProjectsLocationsRepositoriesWorkflowInvocationsCreateCall) Do(opts ...googleapi.CallOption) (*WorkflowInvocation, 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 := &WorkflowInvocation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new WorkflowInvocation in a given Repository.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowInvocations", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workflowInvocations.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The repository in which to create the workflow invocation. Must be in the format `projects/*/locations/*/repositories/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/workflowInvocations", + // "request": { + // "$ref": "WorkflowInvocation" + // }, + // "response": { + // "$ref": "WorkflowInvocation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workflowInvocations.delete": + +type ProjectsLocationsRepositoriesWorkflowInvocationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single WorkflowInvocation. +// +// - name: The workflow invocation resource's name. +func (r *ProjectsLocationsRepositoriesWorkflowInvocationsService) Delete(name string) *ProjectsLocationsRepositoriesWorkflowInvocationsDeleteCall { + c := &ProjectsLocationsRepositoriesWorkflowInvocationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkflowInvocationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkflowInvocationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workflowInvocations.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a single WorkflowInvocation.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowInvocations/{workflowInvocationsId}", + // "httpMethod": "DELETE", + // "id": "dataform.projects.locations.repositories.workflowInvocations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workflow invocation resource's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workflowInvocations.get": + +type ProjectsLocationsRepositoriesWorkflowInvocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Fetches a single WorkflowInvocation. +// +// - name: The workflow invocation resource's name. +func (r *ProjectsLocationsRepositoriesWorkflowInvocationsService) Get(name string) *ProjectsLocationsRepositoriesWorkflowInvocationsGetCall { + c := &ProjectsLocationsRepositoriesWorkflowInvocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkflowInvocationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesWorkflowInvocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkflowInvocationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workflowInvocations.get" call. +// Exactly one of *WorkflowInvocation or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *WorkflowInvocation.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 *ProjectsLocationsRepositoriesWorkflowInvocationsGetCall) Do(opts ...googleapi.CallOption) (*WorkflowInvocation, 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 := &WorkflowInvocation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Fetches a single WorkflowInvocation.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowInvocations/{workflowInvocationsId}", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.workflowInvocations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workflow invocation resource's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "WorkflowInvocation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workflowInvocations.list": + +type ProjectsLocationsRepositoriesWorkflowInvocationsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists WorkflowInvocations in a given Repository. +// +// - parent: The parent resource of the WorkflowInvocation type. Must be +// in the format `projects/*/locations/*/repositories/*`. +func (r *ProjectsLocationsRepositoriesWorkflowInvocationsService) List(parent string) *ProjectsLocationsRepositoriesWorkflowInvocationsListCall { + c := &ProjectsLocationsRepositoriesWorkflowInvocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter for the returned +// list. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsListCall) Filter(filter string) *ProjectsLocationsRepositoriesWorkflowInvocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": This field only +// supports ordering by `name`. If unspecified, the server will choose +// the ordering. If specified, the default order is ascending for the +// `name` field. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsListCall) OrderBy(orderBy string) *ProjectsLocationsRepositoriesWorkflowInvocationsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// workflow invocations to return. The server may return fewer items +// than requested. If unspecified, the server will pick an appropriate +// default. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesWorkflowInvocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token +// received from a previous `ListWorkflowInvocations` call. Provide this +// to retrieve the subsequent page. When paginating, all other +// parameters provided to `ListWorkflowInvocations` must match the call +// that provided the page token. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesWorkflowInvocationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkflowInvocationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesWorkflowInvocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkflowInvocationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/workflowInvocations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workflowInvocations.list" call. +// Exactly one of *ListWorkflowInvocationsResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListWorkflowInvocationsResponse.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 *ProjectsLocationsRepositoriesWorkflowInvocationsListCall) Do(opts ...googleapi.CallOption) (*ListWorkflowInvocationsResponse, 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 := &ListWorkflowInvocationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists WorkflowInvocations in a given Repository.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowInvocations", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.workflowInvocations.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. Filter for the returned list.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Optional. This field only supports ordering by `name`. If unspecified, the server will choose the ordering. If specified, the default order is ascending for the `name` field.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Maximum number of workflow invocations to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. Page token received from a previous `ListWorkflowInvocations` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListWorkflowInvocations` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource of the WorkflowInvocation type. Must be in the format `projects/*/locations/*/repositories/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/workflowInvocations", + // "response": { + // "$ref": "ListWorkflowInvocationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsListCall) Pages(ctx context.Context, f func(*ListWorkflowInvocationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "dataform.projects.locations.repositories.workflowInvocations.query": + +type ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Query: Returns WorkflowInvocationActions in a given +// WorkflowInvocation. +// +// - name: The workflow invocation's name. +func (r *ProjectsLocationsRepositoriesWorkflowInvocationsService) Query(name string) *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall { + c := &ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// workflow invocations to return. The server may return fewer items +// than requested. If unspecified, the server will pick an appropriate +// default. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token +// received from a previous `QueryWorkflowInvocationActions` call. +// Provide this to retrieve the subsequent page. When paginating, all +// other parameters provided to `QueryWorkflowInvocationActions` must +// match the call that provided the page token. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:query") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workflowInvocations.query" call. +// Exactly one of *QueryWorkflowInvocationActionsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *QueryWorkflowInvocationActionsResponse.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 *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall) Do(opts ...googleapi.CallOption) (*QueryWorkflowInvocationActionsResponse, 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 := &QueryWorkflowInvocationActionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns WorkflowInvocationActions in a given WorkflowInvocation.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowInvocations/{workflowInvocationsId}:query", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.workflowInvocations.query", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workflow invocation's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Maximum number of workflow invocations to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. Page token received from a previous `QueryWorkflowInvocationActions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryWorkflowInvocationActions` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:query", + // "response": { + // "$ref": "QueryWorkflowInvocationActionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall) Pages(ctx context.Context, f func(*QueryWorkflowInvocationActionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "dataform.projects.locations.repositories.workspaces.commit": + +type ProjectsLocationsRepositoriesWorkspacesCommitCall struct { + s *Service + name string + commitworkspacechangesrequest *CommitWorkspaceChangesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Commit: Applies a Git commit for uncommitted files in a Workspace. +// +// - name: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) Commit(name string, commitworkspacechangesrequest *CommitWorkspaceChangesRequest) *ProjectsLocationsRepositoriesWorkspacesCommitCall { + c := &ProjectsLocationsRepositoriesWorkspacesCommitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.commitworkspacechangesrequest = commitworkspacechangesrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkspacesCommitCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesCommitCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkspacesCommitCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesCommitCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkspacesCommitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesCommitCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.commitworkspacechangesrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:commit") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.commit" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsRepositoriesWorkspacesCommitCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Applies a Git commit for uncommitted files in a Workspace.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:commit", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workspaces.commit", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:commit", + // "request": { + // "$ref": "CommitWorkspaceChangesRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.create": + +type ProjectsLocationsRepositoriesWorkspacesCreateCall struct { + s *Service + parent string + workspace *Workspace + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new Workspace in a given Repository. +// +// - parent: The repository in which to create the workspace. Must be in +// the format `projects/*/locations/*/repositories/*`. +func (r *ProjectsLocationsRepositoriesWorkspacesService) Create(parent string, workspace *Workspace) *ProjectsLocationsRepositoriesWorkspacesCreateCall { + c := &ProjectsLocationsRepositoriesWorkspacesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.workspace = workspace + return c +} + +// WorkspaceId sets the optional parameter "workspaceId": Required. The +// ID to use for the workspace, which will become the final component of +// the workspace's resource name. +func (c *ProjectsLocationsRepositoriesWorkspacesCreateCall) WorkspaceId(workspaceId string) *ProjectsLocationsRepositoriesWorkspacesCreateCall { + c.urlParams_.Set("workspaceId", workspaceId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkspacesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkspacesCreateCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkspacesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.workspace) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/workspaces") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.create" call. +// Exactly one of *Workspace or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Workspace.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 *ProjectsLocationsRepositoriesWorkspacesCreateCall) Do(opts ...googleapi.CallOption) (*Workspace, 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 := &Workspace{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new Workspace in a given Repository.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workspaces.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The repository in which to create the workspace. Must be in the format `projects/*/locations/*/repositories/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "workspaceId": { + // "description": "Required. The ID to use for the workspace, which will become the final component of the workspace's resource name.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/workspaces", + // "request": { + // "$ref": "Workspace" + // }, + // "response": { + // "$ref": "Workspace" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.delete": + +type ProjectsLocationsRepositoriesWorkspacesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single Workspace. +// +// - name: The workspace resource's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) Delete(name string) *ProjectsLocationsRepositoriesWorkspacesDeleteCall { + c := &ProjectsLocationsRepositoriesWorkspacesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkspacesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkspacesDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkspacesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsRepositoriesWorkspacesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a single Workspace.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}", + // "httpMethod": "DELETE", + // "id": "dataform.projects.locations.repositories.workspaces.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workspace resource's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.fetchFileDiff": + +type ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall struct { + s *Service + workspace string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// FetchFileDiff: Fetches Git diff for an uncommitted file in a +// Workspace. +// +// - workspace: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) FetchFileDiff(workspace string) *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall { + c := &ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.workspace = workspace + return c +} + +// Path sets the optional parameter "path": Required. The file's full +// path including filename, relative to the workspace root. +func (c *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall) Path(path string) *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall { + c.urlParams_.Set("path", path) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+workspace}:fetchFileDiff") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "workspace": c.workspace, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.fetchFileDiff" call. +// Exactly one of *FetchFileDiffResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *FetchFileDiffResponse.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 *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall) Do(opts ...googleapi.CallOption) (*FetchFileDiffResponse, 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 := &FetchFileDiffResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Fetches Git diff for an uncommitted file in a Workspace.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:fetchFileDiff", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.workspaces.fetchFileDiff", + // "parameterOrder": [ + // "workspace" + // ], + // "parameters": { + // "path": { + // "description": "Required. The file's full path including filename, relative to the workspace root.", + // "location": "query", + // "type": "string" + // }, + // "workspace": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+workspace}:fetchFileDiff", + // "response": { + // "$ref": "FetchFileDiffResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.fetchFileGitStatuses": + +type ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// FetchFileGitStatuses: Fetches Git statuses for the files in a +// Workspace. +// +// - name: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) FetchFileGitStatuses(name string) *ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall { + c := &ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:fetchFileGitStatuses") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.fetchFileGitStatuses" call. +// Exactly one of *FetchFileGitStatusesResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *FetchFileGitStatusesResponse.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 *ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall) Do(opts ...googleapi.CallOption) (*FetchFileGitStatusesResponse, 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 := &FetchFileGitStatusesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Fetches Git statuses for the files in a Workspace.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:fetchFileGitStatuses", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.workspaces.fetchFileGitStatuses", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:fetchFileGitStatuses", + // "response": { + // "$ref": "FetchFileGitStatusesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.fetchGitAheadBehind": + +type ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// FetchGitAheadBehind: Fetches Git ahead/behind against a remote +// branch. +// +// - name: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) FetchGitAheadBehind(name string) *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall { + c := &ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// RemoteBranch sets the optional parameter "remoteBranch": The name of +// the branch in the Git remote against which this workspace should be +// compared. If left unset, the repository's default branch name will be +// used. +func (c *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall) RemoteBranch(remoteBranch string) *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall { + c.urlParams_.Set("remoteBranch", remoteBranch) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:fetchGitAheadBehind") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.fetchGitAheadBehind" call. +// Exactly one of *FetchGitAheadBehindResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *FetchGitAheadBehindResponse.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 *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall) Do(opts ...googleapi.CallOption) (*FetchGitAheadBehindResponse, 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 := &FetchGitAheadBehindResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Fetches Git ahead/behind against a remote branch.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:fetchGitAheadBehind", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.workspaces.fetchGitAheadBehind", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "remoteBranch": { + // "description": "Optional. The name of the branch in the Git remote against which this workspace should be compared. If left unset, the repository's default branch name will be used.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:fetchGitAheadBehind", + // "response": { + // "$ref": "FetchGitAheadBehindResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.get": + +type ProjectsLocationsRepositoriesWorkspacesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Fetches a single Workspace. +// +// - name: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) Get(name string) *ProjectsLocationsRepositoriesWorkspacesGetCall { + c := &ProjectsLocationsRepositoriesWorkspacesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkspacesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesWorkspacesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesWorkspacesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkspacesGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkspacesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.get" call. +// Exactly one of *Workspace or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Workspace.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 *ProjectsLocationsRepositoriesWorkspacesGetCall) Do(opts ...googleapi.CallOption) (*Workspace, 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 := &Workspace{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Fetches a single Workspace.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.workspaces.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Workspace" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.installNpmPackages": + +type ProjectsLocationsRepositoriesWorkspacesInstallNpmPackagesCall struct { + s *Service + workspace string + installnpmpackagesrequest *InstallNpmPackagesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// InstallNpmPackages: Installs dependency NPM packages (inside a +// Workspace). +// +// - workspace: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) InstallNpmPackages(workspace string, installnpmpackagesrequest *InstallNpmPackagesRequest) *ProjectsLocationsRepositoriesWorkspacesInstallNpmPackagesCall { + c := &ProjectsLocationsRepositoriesWorkspacesInstallNpmPackagesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.workspace = workspace + c.installnpmpackagesrequest = installnpmpackagesrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkspacesInstallNpmPackagesCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesInstallNpmPackagesCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkspacesInstallNpmPackagesCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesInstallNpmPackagesCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkspacesInstallNpmPackagesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesInstallNpmPackagesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.installnpmpackagesrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+workspace}:installNpmPackages") + 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{ + "workspace": c.workspace, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.installNpmPackages" call. +// Exactly one of *InstallNpmPackagesResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *InstallNpmPackagesResponse.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 *ProjectsLocationsRepositoriesWorkspacesInstallNpmPackagesCall) Do(opts ...googleapi.CallOption) (*InstallNpmPackagesResponse, 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 := &InstallNpmPackagesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Installs dependency NPM packages (inside a Workspace).", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:installNpmPackages", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workspaces.installNpmPackages", + // "parameterOrder": [ + // "workspace" + // ], + // "parameters": { + // "workspace": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+workspace}:installNpmPackages", + // "request": { + // "$ref": "InstallNpmPackagesRequest" + // }, + // "response": { + // "$ref": "InstallNpmPackagesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.list": + +type ProjectsLocationsRepositoriesWorkspacesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists Workspaces in a given Repository. +// +// - parent: The repository in which to list workspaces. Must be in the +// format `projects/*/locations/*/repositories/*`. +func (r *ProjectsLocationsRepositoriesWorkspacesService) List(parent string) *ProjectsLocationsRepositoriesWorkspacesListCall { + c := &ProjectsLocationsRepositoriesWorkspacesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter for the returned +// list. +func (c *ProjectsLocationsRepositoriesWorkspacesListCall) Filter(filter string) *ProjectsLocationsRepositoriesWorkspacesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": This field only +// supports ordering by `name`. If unspecified, the server will choose +// the ordering. If specified, the default order is ascending for the +// `name` field. +func (c *ProjectsLocationsRepositoriesWorkspacesListCall) OrderBy(orderBy string) *ProjectsLocationsRepositoriesWorkspacesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// workspaces to return. The server may return fewer items than +// requested. If unspecified, the server will pick an appropriate +// default. +func (c *ProjectsLocationsRepositoriesWorkspacesListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesWorkspacesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token +// received from a previous `ListWorkspaces` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to `ListWorkspaces` must match the call that provided the +// page token. +func (c *ProjectsLocationsRepositoriesWorkspacesListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesWorkspacesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkspacesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesWorkspacesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesWorkspacesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkspacesListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkspacesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/workspaces") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.list" call. +// Exactly one of *ListWorkspacesResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListWorkspacesResponse.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 *ProjectsLocationsRepositoriesWorkspacesListCall) Do(opts ...googleapi.CallOption) (*ListWorkspacesResponse, 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 := &ListWorkspacesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists Workspaces in a given Repository.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.workspaces.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. Filter for the returned list.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Optional. This field only supports ordering by `name`. If unspecified, the server will choose the ordering. If specified, the default order is ascending for the `name` field.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Maximum number of workspaces to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. Page token received from a previous `ListWorkspaces` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListWorkspaces` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The repository in which to list workspaces. Must be in the format `projects/*/locations/*/repositories/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/workspaces", + // "response": { + // "$ref": "ListWorkspacesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsRepositoriesWorkspacesListCall) Pages(ctx context.Context, f func(*ListWorkspacesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "dataform.projects.locations.repositories.workspaces.makeDirectory": + +type ProjectsLocationsRepositoriesWorkspacesMakeDirectoryCall struct { + s *Service + workspace string + makedirectoryrequest *MakeDirectoryRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// MakeDirectory: Creates a directory inside a Workspace. +// +// - workspace: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) MakeDirectory(workspace string, makedirectoryrequest *MakeDirectoryRequest) *ProjectsLocationsRepositoriesWorkspacesMakeDirectoryCall { + c := &ProjectsLocationsRepositoriesWorkspacesMakeDirectoryCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.workspace = workspace + c.makedirectoryrequest = makedirectoryrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkspacesMakeDirectoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesMakeDirectoryCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkspacesMakeDirectoryCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesMakeDirectoryCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkspacesMakeDirectoryCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesMakeDirectoryCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.makedirectoryrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+workspace}:makeDirectory") + 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{ + "workspace": c.workspace, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.makeDirectory" call. +// Exactly one of *MakeDirectoryResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *MakeDirectoryResponse.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 *ProjectsLocationsRepositoriesWorkspacesMakeDirectoryCall) Do(opts ...googleapi.CallOption) (*MakeDirectoryResponse, 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 := &MakeDirectoryResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a directory inside a Workspace.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:makeDirectory", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workspaces.makeDirectory", + // "parameterOrder": [ + // "workspace" + // ], + // "parameters": { + // "workspace": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+workspace}:makeDirectory", + // "request": { + // "$ref": "MakeDirectoryRequest" + // }, + // "response": { + // "$ref": "MakeDirectoryResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.moveDirectory": + +type ProjectsLocationsRepositoriesWorkspacesMoveDirectoryCall struct { + s *Service + workspace string + movedirectoryrequest *MoveDirectoryRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// MoveDirectory: Moves a directory (inside a Workspace), and all of its +// contents, to a new location. +// +// - workspace: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) MoveDirectory(workspace string, movedirectoryrequest *MoveDirectoryRequest) *ProjectsLocationsRepositoriesWorkspacesMoveDirectoryCall { + c := &ProjectsLocationsRepositoriesWorkspacesMoveDirectoryCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.workspace = workspace + c.movedirectoryrequest = movedirectoryrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkspacesMoveDirectoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesMoveDirectoryCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkspacesMoveDirectoryCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesMoveDirectoryCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkspacesMoveDirectoryCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesMoveDirectoryCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.movedirectoryrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+workspace}:moveDirectory") + 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{ + "workspace": c.workspace, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.moveDirectory" call. +// Exactly one of *MoveDirectoryResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *MoveDirectoryResponse.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 *ProjectsLocationsRepositoriesWorkspacesMoveDirectoryCall) Do(opts ...googleapi.CallOption) (*MoveDirectoryResponse, 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 := &MoveDirectoryResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Moves a directory (inside a Workspace), and all of its contents, to a new location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:moveDirectory", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workspaces.moveDirectory", + // "parameterOrder": [ + // "workspace" + // ], + // "parameters": { + // "workspace": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+workspace}:moveDirectory", + // "request": { + // "$ref": "MoveDirectoryRequest" + // }, + // "response": { + // "$ref": "MoveDirectoryResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.moveFile": + +type ProjectsLocationsRepositoriesWorkspacesMoveFileCall struct { + s *Service + workspace string + movefilerequest *MoveFileRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// MoveFile: Moves a file (inside a Workspace) to a new location. +// +// - workspace: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) MoveFile(workspace string, movefilerequest *MoveFileRequest) *ProjectsLocationsRepositoriesWorkspacesMoveFileCall { + c := &ProjectsLocationsRepositoriesWorkspacesMoveFileCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.workspace = workspace + c.movefilerequest = movefilerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkspacesMoveFileCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesMoveFileCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkspacesMoveFileCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesMoveFileCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkspacesMoveFileCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesMoveFileCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.movefilerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+workspace}:moveFile") + 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{ + "workspace": c.workspace, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.moveFile" call. +// Exactly one of *MoveFileResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *MoveFileResponse.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 *ProjectsLocationsRepositoriesWorkspacesMoveFileCall) Do(opts ...googleapi.CallOption) (*MoveFileResponse, 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 := &MoveFileResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Moves a file (inside a Workspace) to a new location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:moveFile", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workspaces.moveFile", + // "parameterOrder": [ + // "workspace" + // ], + // "parameters": { + // "workspace": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+workspace}:moveFile", + // "request": { + // "$ref": "MoveFileRequest" + // }, + // "response": { + // "$ref": "MoveFileResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.pull": + +type ProjectsLocationsRepositoriesWorkspacesPullCall struct { + s *Service + name string + pullgitcommitsrequest *PullGitCommitsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Pull: Pulls Git commits from the Repository's remote into a +// Workspace. +// +// - name: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) Pull(name string, pullgitcommitsrequest *PullGitCommitsRequest) *ProjectsLocationsRepositoriesWorkspacesPullCall { + c := &ProjectsLocationsRepositoriesWorkspacesPullCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.pullgitcommitsrequest = pullgitcommitsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkspacesPullCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesPullCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkspacesPullCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesPullCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkspacesPullCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesPullCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.pullgitcommitsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:pull") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.pull" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsRepositoriesWorkspacesPullCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Pulls Git commits from the Repository's remote into a Workspace.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:pull", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workspaces.pull", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:pull", + // "request": { + // "$ref": "PullGitCommitsRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.push": + +type ProjectsLocationsRepositoriesWorkspacesPushCall struct { + s *Service + name string + pushgitcommitsrequest *PushGitCommitsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Push: Pushes Git commits from a Workspace to the Repository's remote. +// +// - name: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) Push(name string, pushgitcommitsrequest *PushGitCommitsRequest) *ProjectsLocationsRepositoriesWorkspacesPushCall { + c := &ProjectsLocationsRepositoriesWorkspacesPushCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.pushgitcommitsrequest = pushgitcommitsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkspacesPushCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesPushCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkspacesPushCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesPushCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkspacesPushCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesPushCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.pushgitcommitsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:push") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.push" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsRepositoriesWorkspacesPushCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Pushes Git commits from a Workspace to the Repository's remote.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:push", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workspaces.push", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:push", + // "request": { + // "$ref": "PushGitCommitsRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.queryDirectoryContents": + +type ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall struct { + s *Service + workspace string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// QueryDirectoryContents: Returns the contents of a given Workspace +// directory. +// +// - workspace: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) QueryDirectoryContents(workspace string) *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall { + c := &ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.workspace = workspace + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// paths to return. The server may return fewer items than requested. If +// unspecified, the server will pick an appropriate default. +func (c *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token +// received from a previous `QueryDirectoryContents` call. Provide this +// to retrieve the subsequent page. When paginating, all other +// parameters provided to `QueryDirectoryContents` must match the call +// that provided the page token. +func (c *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Path sets the optional parameter "path": The directory's full path +// including directory name, relative to the workspace root. If left +// unset, the workspace root is used. +func (c *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall) Path(path string) *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall { + c.urlParams_.Set("path", path) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+workspace}:queryDirectoryContents") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "workspace": c.workspace, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.queryDirectoryContents" call. +// Exactly one of *QueryDirectoryContentsResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *QueryDirectoryContentsResponse.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 *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall) Do(opts ...googleapi.CallOption) (*QueryDirectoryContentsResponse, 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 := &QueryDirectoryContentsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the contents of a given Workspace directory.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:queryDirectoryContents", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.workspaces.queryDirectoryContents", + // "parameterOrder": [ + // "workspace" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. Maximum number of paths to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. Page token received from a previous `QueryDirectoryContents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryDirectoryContents` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "path": { + // "description": "Optional. The directory's full path including directory name, relative to the workspace root. If left unset, the workspace root is used.", + // "location": "query", + // "type": "string" + // }, + // "workspace": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+workspace}:queryDirectoryContents", + // "response": { + // "$ref": "QueryDirectoryContentsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall) Pages(ctx context.Context, f func(*QueryDirectoryContentsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "dataform.projects.locations.repositories.workspaces.readFile": + +type ProjectsLocationsRepositoriesWorkspacesReadFileCall struct { + s *Service + workspace string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// ReadFile: Returns the contents of a file (inside a Workspace). +// +// - workspace: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) ReadFile(workspace string) *ProjectsLocationsRepositoriesWorkspacesReadFileCall { + c := &ProjectsLocationsRepositoriesWorkspacesReadFileCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.workspace = workspace + return c +} + +// Path sets the optional parameter "path": Required. The file's full +// path including filename, relative to the workspace root. +func (c *ProjectsLocationsRepositoriesWorkspacesReadFileCall) Path(path string) *ProjectsLocationsRepositoriesWorkspacesReadFileCall { + c.urlParams_.Set("path", path) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkspacesReadFileCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesReadFileCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesWorkspacesReadFileCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesWorkspacesReadFileCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkspacesReadFileCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesReadFileCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkspacesReadFileCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesReadFileCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+workspace}:readFile") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "workspace": c.workspace, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.readFile" call. +// Exactly one of *ReadFileResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ReadFileResponse.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 *ProjectsLocationsRepositoriesWorkspacesReadFileCall) Do(opts ...googleapi.CallOption) (*ReadFileResponse, 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 := &ReadFileResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the contents of a file (inside a Workspace).", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:readFile", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.workspaces.readFile", + // "parameterOrder": [ + // "workspace" + // ], + // "parameters": { + // "path": { + // "description": "Required. The file's full path including filename, relative to the workspace root.", + // "location": "query", + // "type": "string" + // }, + // "workspace": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+workspace}:readFile", + // "response": { + // "$ref": "ReadFileResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.removeDirectory": + +type ProjectsLocationsRepositoriesWorkspacesRemoveDirectoryCall struct { + s *Service + workspace string + removedirectoryrequest *RemoveDirectoryRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RemoveDirectory: Deletes a directory (inside a Workspace) and all of +// its contents. +// +// - workspace: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) RemoveDirectory(workspace string, removedirectoryrequest *RemoveDirectoryRequest) *ProjectsLocationsRepositoriesWorkspacesRemoveDirectoryCall { + c := &ProjectsLocationsRepositoriesWorkspacesRemoveDirectoryCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.workspace = workspace + c.removedirectoryrequest = removedirectoryrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkspacesRemoveDirectoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesRemoveDirectoryCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkspacesRemoveDirectoryCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesRemoveDirectoryCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkspacesRemoveDirectoryCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesRemoveDirectoryCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.removedirectoryrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+workspace}:removeDirectory") + 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{ + "workspace": c.workspace, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.removeDirectory" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsRepositoriesWorkspacesRemoveDirectoryCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a directory (inside a Workspace) and all of its contents.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:removeDirectory", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workspaces.removeDirectory", + // "parameterOrder": [ + // "workspace" + // ], + // "parameters": { + // "workspace": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+workspace}:removeDirectory", + // "request": { + // "$ref": "RemoveDirectoryRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.removeFile": + +type ProjectsLocationsRepositoriesWorkspacesRemoveFileCall struct { + s *Service + workspace string + removefilerequest *RemoveFileRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RemoveFile: Deletes a file (inside a Workspace). +// +// - workspace: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) RemoveFile(workspace string, removefilerequest *RemoveFileRequest) *ProjectsLocationsRepositoriesWorkspacesRemoveFileCall { + c := &ProjectsLocationsRepositoriesWorkspacesRemoveFileCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.workspace = workspace + c.removefilerequest = removefilerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkspacesRemoveFileCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesRemoveFileCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkspacesRemoveFileCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesRemoveFileCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkspacesRemoveFileCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesRemoveFileCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.removefilerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+workspace}:removeFile") + 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{ + "workspace": c.workspace, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.removeFile" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsRepositoriesWorkspacesRemoveFileCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a file (inside a Workspace).", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:removeFile", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workspaces.removeFile", + // "parameterOrder": [ + // "workspace" + // ], + // "parameters": { + // "workspace": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+workspace}:removeFile", + // "request": { + // "$ref": "RemoveFileRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.reset": + +type ProjectsLocationsRepositoriesWorkspacesResetCall struct { + s *Service + name string + resetworkspacechangesrequest *ResetWorkspaceChangesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Reset: Performs a Git reset for uncommitted files in a Workspace. +// +// - name: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) Reset(name string, resetworkspacechangesrequest *ResetWorkspaceChangesRequest) *ProjectsLocationsRepositoriesWorkspacesResetCall { + c := &ProjectsLocationsRepositoriesWorkspacesResetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.resetworkspacechangesrequest = resetworkspacechangesrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkspacesResetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesResetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkspacesResetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesResetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkspacesResetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesResetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.resetworkspacechangesrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:reset") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.reset" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsRepositoriesWorkspacesResetCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Performs a Git reset for uncommitted files in a Workspace.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:reset", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workspaces.reset", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:reset", + // "request": { + // "$ref": "ResetWorkspaceChangesRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.writeFile": + +type ProjectsLocationsRepositoriesWorkspacesWriteFileCall struct { + s *Service + workspace string + writefilerequest *WriteFileRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// WriteFile: Writes to a file (inside a Workspace). +// +// - workspace: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) WriteFile(workspace string, writefilerequest *WriteFileRequest) *ProjectsLocationsRepositoriesWorkspacesWriteFileCall { + c := &ProjectsLocationsRepositoriesWorkspacesWriteFileCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.workspace = workspace + c.writefilerequest = writefilerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkspacesWriteFileCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesWriteFileCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkspacesWriteFileCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesWriteFileCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkspacesWriteFileCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesWriteFileCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.writefilerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+workspace}:writeFile") + 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{ + "workspace": c.workspace, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.writeFile" call. +// Exactly one of *WriteFileResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *WriteFileResponse.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 *ProjectsLocationsRepositoriesWorkspacesWriteFileCall) Do(opts ...googleapi.CallOption) (*WriteFileResponse, 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 := &WriteFileResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Writes to a file (inside a Workspace).", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:writeFile", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workspaces.writeFile", + // "parameterOrder": [ + // "workspace" + // ], + // "parameters": { + // "workspace": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+workspace}:writeFile", + // "request": { + // "$ref": "WriteFileRequest" + // }, + // "response": { + // "$ref": "WriteFileResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} diff --git a/datafusion/v1/datafusion-api.json b/datafusion/v1/datafusion-api.json index a81a5131705..0fb75d2858e 100644 --- a/datafusion/v1/datafusion-api.json +++ b/datafusion/v1/datafusion-api.json @@ -737,7 +737,7 @@ } } }, - "revision": "20220908", + "revision": "20221213", "rootUrl": "https://datafusion.googleapis.com/", "schemas": { "Accelerator": { @@ -761,7 +761,7 @@ "type": "string" }, "state": { - "description": "The state of the accelerator", + "description": "The state of the accelerator.", "enum": [ "STATE_UNSPECIFIED", "ENABLED", @@ -769,10 +769,10 @@ "UNKNOWN" ], "enumDescriptions": [ - "Default value, do not use", - "Indicates that the accelerator is enabled and available to use", - "Indicates that the accelerator is disabled and not available to use", - "Indicates that accelerator state is currently unknown. Requests for enable, disable could be retried while in this state" + "Default value, do not use.", + "Indicates that the accelerator is enabled and available to use.", + "Indicates that the accelerator is disabled and not available to use.", + "Indicates that accelerator state is currently unknown. Requests for enable, disable could be retried while in this state." ], "type": "string" } @@ -1010,6 +1010,10 @@ "description": "Option to enable Stackdriver Monitoring.", "type": "boolean" }, + "enableZoneSeparation": { + "description": "Option to enable granular zone separation.", + "type": "boolean" + }, "eventPublishConfig": { "$ref": "EventPublishConfig", "description": "Option to enable and pass metadata for event publishing." diff --git a/datafusion/v1/datafusion-gen.go b/datafusion/v1/datafusion-gen.go index 3f4bc6b8baf..e78e7e8b4bd 100644 --- a/datafusion/v1/datafusion-gen.go +++ b/datafusion/v1/datafusion-gen.go @@ -221,16 +221,16 @@ type Accelerator struct { // CCAI Insights processing. AcceleratorType string `json:"acceleratorType,omitempty"` - // State: The state of the accelerator + // State: The state of the accelerator. // // Possible values: - // "STATE_UNSPECIFIED" - Default value, do not use + // "STATE_UNSPECIFIED" - Default value, do not use. // "ENABLED" - Indicates that the accelerator is enabled and available - // to use + // to use. // "DISABLED" - Indicates that the accelerator is disabled and not - // available to use + // available to use. // "UNKNOWN" - Indicates that accelerator state is currently unknown. - // Requests for enable, disable could be retried while in this state + // Requests for enable, disable could be retried while in this state. State string `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. "AcceleratorType") to @@ -671,6 +671,9 @@ type Instance struct { // EnableStackdriverMonitoring: Option to enable Stackdriver Monitoring. EnableStackdriverMonitoring bool `json:"enableStackdriverMonitoring,omitempty"` + // EnableZoneSeparation: Option to enable granular zone separation. + EnableZoneSeparation bool `json:"enableZoneSeparation,omitempty"` + // EventPublishConfig: Option to enable and pass metadata for event // publishing. EventPublishConfig *EventPublishConfig `json:"eventPublishConfig,omitempty"` diff --git a/datafusion/v1beta1/datafusion-api.json b/datafusion/v1beta1/datafusion-api.json index 8709ea208c1..d771588e8d6 100644 --- a/datafusion/v1beta1/datafusion-api.json +++ b/datafusion/v1beta1/datafusion-api.json @@ -935,7 +935,7 @@ } } }, - "revision": "20220908", + "revision": "20221213", "rootUrl": "https://datafusion.googleapis.com/", "schemas": { "Accelerator": { @@ -947,12 +947,30 @@ "enum": [ "ACCELERATOR_TYPE_UNSPECIFIED", "CDC", - "HEALTHCARE" + "HEALTHCARE", + "CCAI_INSIGHTS" ], "enumDescriptions": [ "Default value, if unspecified.", "Change Data Capture accelerator for CDF.", - "Cloud Healthcare accelerator for CDF. This accelerator is to enable Cloud Healthcare specific CDF plugins developed by Healthcare team." + "Cloud Healthcare accelerator for CDF. This accelerator is to enable Cloud Healthcare specific CDF plugins developed by Healthcare team.", + "Contact Center AI Insights This accelerator is used to enable import and export pipelines custom built to streamline CCAI Insights processing." + ], + "type": "string" + }, + "state": { + "description": "The state of the accelerator.", + "enum": [ + "STATE_UNSPECIFIED", + "ENABLED", + "DISABLED", + "UNKNOWN" + ], + "enumDescriptions": [ + "Default value, do not use.", + "Indicates that the accelerator is enabled and available to use.", + "Indicates that the accelerator is disabled and not available to use.", + "Indicates that accelerator state is currently unknown. Requests for enable, disable could be retried while in this state." ], "type": "string" } @@ -1205,6 +1223,10 @@ "description": "Option to enable Stackdriver Monitoring.", "type": "boolean" }, + "enableZoneSeparation": { + "description": "Option to enable zone separation.", + "type": "boolean" + }, "eventPublishConfig": { "$ref": "EventPublishConfig", "description": "Option to enable and pass metadata for event publishing." @@ -1548,6 +1570,13 @@ "description": "Represents the metadata of a long-running operation.", "id": "OperationMetadata", "properties": { + "additionalStatus": { + "additionalProperties": { + "type": "string" + }, + "description": "Map to hold any additional status info for the operation If there is an accelerator being enabled/disabled/deleted, this will be populated with accelerator name as key and status as ENABLING, DISABLING or DELETING", + "type": "object" + }, "apiVersion": { "description": "API version used to start the operation.", "type": "string" diff --git a/datafusion/v1beta1/datafusion-gen.go b/datafusion/v1beta1/datafusion-gen.go index cb51265d52a..6d88fc04db1 100644 --- a/datafusion/v1beta1/datafusion-gen.go +++ b/datafusion/v1beta1/datafusion-gen.go @@ -228,8 +228,23 @@ type Accelerator struct { // "HEALTHCARE" - Cloud Healthcare accelerator for CDF. This // accelerator is to enable Cloud Healthcare specific CDF plugins // developed by Healthcare team. + // "CCAI_INSIGHTS" - Contact Center AI Insights This accelerator is + // used to enable import and export pipelines custom built to streamline + // CCAI Insights processing. AcceleratorType string `json:"acceleratorType,omitempty"` + // State: The state of the accelerator. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value, do not use. + // "ENABLED" - Indicates that the accelerator is enabled and available + // to use. + // "DISABLED" - Indicates that the accelerator is disabled and not + // available to use. + // "UNKNOWN" - Indicates that accelerator state is currently unknown. + // Requests for enable, disable could be retried while in this state. + State string `json:"state,omitempty"` + // ForceSendFields is a list of field names (e.g. "AcceleratorType") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -701,6 +716,9 @@ type Instance struct { // EnableStackdriverMonitoring: Option to enable Stackdriver Monitoring. EnableStackdriverMonitoring bool `json:"enableStackdriverMonitoring,omitempty"` + // EnableZoneSeparation: Option to enable zone separation. + EnableZoneSeparation bool `json:"enableZoneSeparation,omitempty"` + // EventPublishConfig: Option to enable and pass metadata for event // publishing. EventPublishConfig *EventPublishConfig `json:"eventPublishConfig,omitempty"` @@ -1235,6 +1253,12 @@ func (s *Operation) MarshalJSON() ([]byte, error) { // OperationMetadata: Represents the metadata of a long-running // operation. type OperationMetadata struct { + // AdditionalStatus: Map to hold any additional status info for the + // operation If there is an accelerator being enabled/disabled/deleted, + // this will be populated with accelerator name as key and status as + // ENABLING, DISABLING or DELETING + AdditionalStatus map[string]string `json:"additionalStatus,omitempty"` + // ApiVersion: API version used to start the operation. ApiVersion string `json:"apiVersion,omitempty"` @@ -1259,7 +1283,7 @@ type OperationMetadata struct { // Verb: Name of the verb executed by the operation. Verb string `json:"verb,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to + // ForceSendFields is a list of field names (e.g. "AdditionalStatus") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1267,12 +1291,13 @@ type OperationMetadata struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdditionalStatus") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } diff --git a/datamigration/v1/datamigration-api.json b/datamigration/v1/datamigration-api.json index a1f5218f830..a52c34f7110 100644 --- a/datamigration/v1/datamigration-api.json +++ b/datamigration/v1/datamigration-api.json @@ -204,6 +204,16 @@ "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", "location": "query", "type": "string" + }, + "skipValidation": { + "description": "Optional. Create the connection profile without validating it. The default is false. Only supported for Oracle connection profiles.", + "location": "query", + "type": "boolean" + }, + "validateOnly": { + "description": "Optional. Only validate the connection profile, but don't create any resources. The default is false. Only supported for Oracle connection profiles.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+parent}/connectionProfiles", @@ -375,11 +385,21 @@ "location": "query", "type": "string" }, + "skipValidation": { + "description": "Optional. Update the connection profile without validating it. The default is false. Only supported for Oracle connection profiles.", + "location": "query", + "type": "boolean" + }, "updateMask": { "description": "Required. Field mask is used to specify the fields to be overwritten in the connection profile resource by the update.", "format": "google-fieldmask", "location": "query", "type": "string" + }, + "validateOnly": { + "description": "Optional. Only validate the connection profile, but don't update any resources. The default is false. Only supported for Oracle connection profiles.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+name}", @@ -451,24 +471,108 @@ } } }, - "migrationJobs": { + "conversionWorkspaces": { "methods": { + "apply": { + "description": "Apply draft tree onto a specific destination database", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}:apply", + "httpMethod": "POST", + "id": "datamigration.projects.locations.conversionWorkspaces.apply", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the conversion workspace resource to apply draft to destination for. in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:apply", + "request": { + "$ref": "ApplyConversionWorkspaceRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "commit": { + "description": "Marks all the data in the conversion workspace as committed.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}:commit", + "httpMethod": "POST", + "id": "datamigration.projects.locations.conversionWorkspaces.commit", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the conversion workspace resource to commit.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:commit", + "request": { + "$ref": "CommitConversionWorkspaceRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "convert": { + "description": "Creates a draft tree schema for the destination database.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}:convert", + "httpMethod": "POST", + "id": "datamigration.projects.locations.conversionWorkspaces.convert", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Name of the conversion workspace resource to convert in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:convert", + "request": { + "$ref": "ConvertConversionWorkspaceRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "create": { - "description": "Creates a new migration job in a given project and location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs", + "description": "Creates a new conversion workspace in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces", "httpMethod": "POST", - "id": "datamigration.projects.locations.migrationJobs.create", + "id": "datamigration.projects.locations.conversionWorkspaces.create", "parameterOrder": [ "parent" ], "parameters": { - "migrationJobId": { - "description": "Required. The ID of the instance to create.", + "conversionWorkspaceId": { + "description": "Required. The ID of the conversion workspace to create.", "location": "query", "type": "string" }, "parent": { - "description": "Required. The parent, which owns this collection of migration jobs.", + "description": "Required. The parent, which owns this collection of conversion workspaces.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, @@ -480,9 +584,9 @@ "type": "string" } }, - "path": "v1/{+parent}/migrationJobs", + "path": "v1/{+parent}/conversionWorkspaces", "request": { - "$ref": "MigrationJob" + "$ref": "ConversionWorkspace" }, "response": { "$ref": "Operation" @@ -492,23 +596,18 @@ ] }, "delete": { - "description": "Deletes a single migration job.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}", + "description": "Deletes a single conversion workspace.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}", "httpMethod": "DELETE", - "id": "datamigration.projects.locations.migrationJobs.delete", + "id": "datamigration.projects.locations.conversionWorkspaces.delete", "parameterOrder": [ "name" ], "parameters": { - "force": { - "description": "The destination CloudSQL connection profile is always deleted with the migration job. In case of force delete, the destination CloudSQL replica database is also deleted.", - "location": "query", - "type": "boolean" - }, "name": { - "description": "Required. Name of the migration job resource to delete.", + "description": "Required. Name of the conversion workspace resource to delete.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", "required": true, "type": "string" }, @@ -526,149 +625,183 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "generateSshScript": { - "description": "Generate a SSH configuration script to configure the reverse SSH connectivity.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:generateSshScript", - "httpMethod": "POST", - "id": "datamigration.projects.locations.migrationJobs.generateSshScript", + "describeConversionWorkspaceRevisions": { + "description": "Retrieves a list of committed revisions of a specific conversion workspace.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}:describeConversionWorkspaceRevisions", + "httpMethod": "GET", + "id": "datamigration.projects.locations.conversionWorkspaces.describeConversionWorkspaceRevisions", "parameterOrder": [ - "migrationJob" + "conversionWorkspace" ], "parameters": { - "migrationJob": { - "description": "Name of the migration job resource to generate the SSH script.", + "commitId": { + "description": "Optional filter to request a specific commit id", + "location": "query", + "type": "string" + }, + "conversionWorkspace": { + "description": "Required. Name of the conversion workspace resource whose revisions are listed. in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+migrationJob}:generateSshScript", - "request": { - "$ref": "GenerateSshScriptRequest" - }, + "path": "v1/{+conversionWorkspace}:describeConversionWorkspaceRevisions", "response": { - "$ref": "SshScript" + "$ref": "DescribeConversionWorkspaceRevisionsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "get": { - "description": "Gets details of a single migration job.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}", + "describeDatabaseEntities": { + "description": "Use this method to describe the database entities tree for a specific conversion workspace and a specific tree type. The DB Entities are not a resource like conversion workspace or mapping rule, and they can not be created, updated or deleted like one. Instead they are simple data objects describing the structure of the client database.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}:describeDatabaseEntities", "httpMethod": "GET", - "id": "datamigration.projects.locations.migrationJobs.get", + "id": "datamigration.projects.locations.conversionWorkspaces.describeDatabaseEntities", "parameterOrder": [ - "name" + "conversionWorkspace" ], "parameters": { - "name": { - "description": "Required. Name of the migration job resource to get.", + "commitId": { + "description": "Request a specific commit id. If not specified, the entities from the latest commit are returned.", + "location": "query", + "type": "string" + }, + "conversionWorkspace": { + "description": "Required. Name of the conversion workspace resource whose DB entities are described in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", "required": true, "type": "string" + }, + "filter": { + "description": "Filter the returned entities based on AIP-160 standard", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of entities to return. The service may return fewer than this value.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The nextPageToken value received in the previous call to conversionWorkspace.describeDatabaseEntities, used in the subsequent request to retrieve the next page of results. On first call this should be left blank. When paginating, all other parameters provided to conversionWorkspace.describeDatabaseEntities must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "tree": { + "description": "The tree to fetch", + "enum": [ + "DB_TREE_TYPE_UNSPECIFIED", + "SOURCE_TREE", + "DRAFT_TREE", + "DESTINATION_TREE" + ], + "enumDescriptions": [ + "Unspecified tree type", + "The source database tree", + "The draft database tree", + "The destination database tree" + ], + "location": "query", + "type": "string" + }, + "uncommitted": { + "description": "Whether to retrieve the latest committed version of the entities or the latest version. This field is ignored if a specific commit_id is specified.", + "location": "query", + "type": "boolean" } }, - "path": "v1/{+name}", + "path": "v1/{+conversionWorkspace}:describeDatabaseEntities", "response": { - "$ref": "MigrationJob" + "$ref": "DescribeDatabaseEntitiesResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "getIamPolicy": { - "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:getIamPolicy", + "get": { + "description": "Gets details of a single conversion workspace.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}", "httpMethod": "GET", - "id": "datamigration.projects.locations.migrationJobs.getIamPolicy", + "id": "datamigration.projects.locations.conversionWorkspaces.get", "parameterOrder": [ - "resource" + "name" ], "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.", + "name": { + "description": "Required. Name of the conversion workspace resource to get.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+resource}:getIamPolicy", + "path": "v1/{+name}", "response": { - "$ref": "Policy" + "$ref": "ConversionWorkspace" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { - "description": "Lists migration jobs in a given project and location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs", + "description": "Lists conversion workspaces in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces", "httpMethod": "GET", - "id": "datamigration.projects.locations.migrationJobs.list", + "id": "datamigration.projects.locations.conversionWorkspaces.list", "parameterOrder": [ "parent" ], "parameters": { "filter": { - "description": "A filter expression that filters migration jobs listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, \u003e, or \u003c. For example, list migration jobs created this year by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can also filter nested fields. For example, you could specify **reverseSshConnectivity.vmIp = \"1.2.3.4\"** to select all migration jobs connecting through the specific SSH tunnel bastion.", - "location": "query", - "type": "string" - }, - "orderBy": { - "description": "Sort the results based on the migration job name. Valid values are: \"name\", \"name asc\", and \"name desc\".", + "description": "A filter expression that filters conversion workspaces listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, \u003e, or \u003c. For example, list conversion workspaces created this year by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can also filter nested fields. For example, you could specify **source.version = \"12.c.1\"** to select all conversion workspaces with source database version equal to 12.c.1", "location": "query", "type": "string" }, "pageSize": { - "description": "The maximum number of migration jobs to return. The service may return fewer than this value. If unspecified, at most 50 migration jobs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "description": "The maximum number of conversion workspaces to return. The service may return fewer than this value. If unspecified, at most 50 sets will be returned.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "The nextPageToken value received in the previous call to migrationJobs.list, used in the subsequent request to retrieve the next page of results. On first call this should be left blank. When paginating, all other parameters provided to migrationJobs.list must match the call that provided the page token.", + "description": "The nextPageToken value received in the previous call to conversionWorkspaces.list, used in the subsequent request to retrieve the next page of results. On first call this should be left blank. When paginating, all other parameters provided to conversionWorkspaces.list must match the call that provided the page token.", "location": "query", "type": "string" }, "parent": { - "description": "Required. The parent, which owns this collection of migrationJobs.", + "description": "Required. The parent, which owns this collection of conversion workspaces.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/migrationJobs", + "path": "v1/{+parent}/conversionWorkspaces", "response": { - "$ref": "ListMigrationJobsResponse" + "$ref": "ListConversionWorkspacesResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "patch": { - "description": "Updates the parameters of a single migration job.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}", + "description": "Updates the parameters of a single conversion workspace.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}", "httpMethod": "PATCH", - "id": "datamigration.projects.locations.migrationJobs.patch", + "id": "datamigration.projects.locations.conversionWorkspaces.patch", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/migrationJobs/{migrationJob}.", + "description": "Full name of the workspace resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", "required": true, "type": "string" }, @@ -678,7 +811,7 @@ "type": "string" }, "updateMask": { - "description": "Required. Field mask is used to specify the fields to be overwritten in the migration job resource by the update.", + "description": "Required. Field mask is used to specify the fields to be overwritten in the conversion workspace resource by the update.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -686,7 +819,7 @@ }, "path": "v1/{+name}", "request": { - "$ref": "MigrationJob" + "$ref": "ConversionWorkspace" }, "response": { "$ref": "Operation" @@ -695,26 +828,26 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "promote": { - "description": "Promote a migration job, stopping replication to the destination and promoting the destination to be a standalone database.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:promote", + "rollback": { + "description": "Rollbacks a conversion workspace to the last committed spanshot.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}:rollback", "httpMethod": "POST", - "id": "datamigration.projects.locations.migrationJobs.promote", + "id": "datamigration.projects.locations.conversionWorkspaces.rollback", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Name of the migration job resource to promote.", + "description": "Required. Name of the conversion workspace resource to rollback to.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+name}:promote", + "path": "v1/{+name}:rollback", "request": { - "$ref": "PromoteMigrationJobRequest" + "$ref": "RollbackConversionWorkspaceRequest" }, "response": { "$ref": "Operation" @@ -723,54 +856,68 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "restart": { - "description": "Restart a stopped or failed migration job, resetting the destination instance to its original state and starting the migration process from scratch.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:restart", - "httpMethod": "POST", - "id": "datamigration.projects.locations.migrationJobs.restart", + "searchBackgroundJobs": { + "description": "Use this method to search/list the background jobs for a specific conversion workspace. The background jobs are not a resource like conversion workspace or mapping rule, and they can not be created, updated or deleted like one. Instead they are a way to expose the data plane jobs log.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}:searchBackgroundJobs", + "httpMethod": "GET", + "id": "datamigration.projects.locations.conversionWorkspaces.searchBackgroundJobs", "parameterOrder": [ - "name" + "conversionWorkspace" ], "parameters": { - "name": { - "description": "Name of the migration job resource to restart.", + "completedUntilTime": { + "description": "Optional. If supplied, will only return jobs that completed until (not including) the given timestamp.", + "format": "google-datetime", + "location": "query", + "type": "string" + }, + "conversionWorkspace": { + "description": "Required. Name of the conversion workspace resource whos jobs are listed. in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", "required": true, "type": "string" + }, + "maxSize": { + "description": "Optional. The maximum number of jobs to return. The service may return fewer than this value. If unspecified, at most 100 jobs will be returned. The maximum value is 100; values above 100 will be coerced to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "returnMostRecentPerJobType": { + "description": "Optional. Whether or not to return just the most recent job per job type", + "location": "query", + "type": "boolean" } }, - "path": "v1/{+name}:restart", - "request": { - "$ref": "RestartMigrationJobRequest" - }, + "path": "v1/{+conversionWorkspace}:searchBackgroundJobs", "response": { - "$ref": "Operation" + "$ref": "SearchBackgroundJobsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "resume": { - "description": "Resume a migration job that is currently stopped and is resumable (was stopped during CDC phase).", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:resume", + "seed": { + "description": "Imports a snapshot of the source database into the conversion workspace.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}:seed", "httpMethod": "POST", - "id": "datamigration.projects.locations.migrationJobs.resume", + "id": "datamigration.projects.locations.conversionWorkspaces.seed", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Name of the migration job resource to resume.", + "description": "Name of the conversion workspace resource to seed with new database structure. in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+name}:resume", + "path": "v1/{+name}:seed", "request": { - "$ref": "ResumeMigrationJobRequest" + "$ref": "SeedConversionWorkspaceRequest" }, "response": { "$ref": "Operation" @@ -778,25 +925,389 @@ "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}/migrationJobs/{migrationJobsId}:setIamPolicy", + } + }, + "resources": { + "mappingRules": { + "methods": { + "import": { + "description": "Imports the mapping rules for a given conversion workspace. Supports various formats of external rules files.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}/mappingRules:import", + "httpMethod": "POST", + "id": "datamigration.projects.locations.conversionWorkspaces.mappingRules.import", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Name of the conversion workspace resource to import the rules to in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/mappingRules:import", + "request": { + "$ref": "ImportMappingRulesRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "migrationJobs": { + "methods": { + "create": { + "description": "Creates a new migration job in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs", "httpMethod": "POST", - "id": "datamigration.projects.locations.migrationJobs.setIamPolicy", + "id": "datamigration.projects.locations.migrationJobs.create", "parameterOrder": [ - "resource" + "parent" ], "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.", + "migrationJobId": { + "description": "Required. The ID of the instance to create.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent, which owns this collection of migration jobs.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" - } - }, - "path": "v1/{+resource}:setIamPolicy", + }, + "requestId": { + "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/migrationJobs", + "request": { + "$ref": "MigrationJob" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single migration job.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}", + "httpMethod": "DELETE", + "id": "datamigration.projects.locations.migrationJobs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "force": { + "description": "The destination CloudSQL connection profile is always deleted with the migration job. In case of force delete, the destination CloudSQL replica database is also deleted.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. Name of the migration job resource to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "generateSshScript": { + "description": "Generate a SSH configuration script to configure the reverse SSH connectivity.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:generateSshScript", + "httpMethod": "POST", + "id": "datamigration.projects.locations.migrationJobs.generateSshScript", + "parameterOrder": [ + "migrationJob" + ], + "parameters": { + "migrationJob": { + "description": "Name of the migration job resource to generate the SSH script.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+migrationJob}:generateSshScript", + "request": { + "$ref": "GenerateSshScriptRequest" + }, + "response": { + "$ref": "SshScript" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single migration job.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}", + "httpMethod": "GET", + "id": "datamigration.projects.locations.migrationJobs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the migration job resource to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "MigrationJob" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:getIamPolicy", + "httpMethod": "GET", + "id": "datamigration.projects.locations.migrationJobs.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/[^/]+/migrationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists migration jobs in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs", + "httpMethod": "GET", + "id": "datamigration.projects.locations.migrationJobs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "A filter expression that filters migration jobs listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, \u003e, or \u003c. For example, list migration jobs created this year by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can also filter nested fields. For example, you could specify **reverseSshConnectivity.vmIp = \"1.2.3.4\"** to select all migration jobs connecting through the specific SSH tunnel bastion.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Sort the results based on the migration job name. Valid values are: \"name\", \"name asc\", and \"name desc\".", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of migration jobs to return. The service may return fewer than this value. If unspecified, at most 50 migration jobs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The nextPageToken value received in the previous call to migrationJobs.list, used in the subsequent request to retrieve the next page of results. On first call this should be left blank. When paginating, all other parameters provided to migrationJobs.list must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent, which owns this collection of migrationJobs.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/migrationJobs", + "response": { + "$ref": "ListMigrationJobsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of a single migration job.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}", + "httpMethod": "PATCH", + "id": "datamigration.projects.locations.migrationJobs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/migrationJobs/{migrationJob}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. Field mask is used to specify the fields to be overwritten in the migration job resource by the update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "MigrationJob" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "promote": { + "description": "Promote a migration job, stopping replication to the destination and promoting the destination to be a standalone database.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:promote", + "httpMethod": "POST", + "id": "datamigration.projects.locations.migrationJobs.promote", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Name of the migration job resource to promote.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:promote", + "request": { + "$ref": "PromoteMigrationJobRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "restart": { + "description": "Restart a stopped or failed migration job, resetting the destination instance to its original state and starting the migration process from scratch.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:restart", + "httpMethod": "POST", + "id": "datamigration.projects.locations.migrationJobs.restart", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Name of the migration job resource to restart.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:restart", + "request": { + "$ref": "RestartMigrationJobRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "resume": { + "description": "Resume a migration job that is currently stopped and is resumable (was stopped during CDC phase).", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:resume", + "httpMethod": "POST", + "id": "datamigration.projects.locations.migrationJobs.resume", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Name of the migration job resource to resume.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:resume", + "request": { + "$ref": "ResumeMigrationJobRequest" + }, + "response": { + "$ref": "Operation" + }, + "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}/migrationJobs/{migrationJobsId}:setIamPolicy", + "httpMethod": "POST", + "id": "datamigration.projects.locations.migrationJobs.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/[^/]+/migrationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", "request": { "$ref": "SetIamPolicyRequest" }, @@ -1043,13 +1554,156 @@ ] } } + }, + "privateConnections": { + "methods": { + "create": { + "description": "Creates a new private connection in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/privateConnections", + "httpMethod": "POST", + "id": "datamigration.projects.locations.privateConnections.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent that owns the collection of PrivateConnections.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "privateConnectionId": { + "description": "Required. The private connection identifier.", + "location": "query", + "type": "string" + }, + "requestId": { + "description": "Optional. A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/privateConnections", + "request": { + "$ref": "PrivateConnection" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single Database Migration Service private connection.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/privateConnections/{privateConnectionsId}", + "httpMethod": "DELETE", + "id": "datamigration.projects.locations.privateConnections.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the private connection to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/privateConnections/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single private connection.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/privateConnections/{privateConnectionsId}", + "httpMethod": "GET", + "id": "datamigration.projects.locations.privateConnections.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the private connection to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/privateConnections/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "PrivateConnection" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Retrieves a list of private connections in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/privateConnections", + "httpMethod": "GET", + "id": "datamigration.projects.locations.privateConnections.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "A filter expression that filters private connections listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, \u003e, or \u003c. For example, list private connections created this year by specifying **createTime %gt; 2021-01-01T00:00:00.000000000Z**.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Order by fields for the result.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Maximum number of private connections to return. If unspecified, at most 50 private connections that will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Page token received from a previous `ListPrivateConnections` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPrivateConnections` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent that owns the collection of private connections.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/privateConnections", + "response": { + "$ref": "ListPrivateConnectionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } } } } } }, - "revision": "20221108", + "revision": "20221211", "rootUrl": "https://datamigration.googleapis.com/", "schemas": { "AlloyDbConnectionProfile": { @@ -1085,8 +1739,23 @@ "primaryInstanceSettings": { "$ref": "PrimaryInstanceSettings" }, - "vpcNetwork": { - "description": "Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: \"projects/{project_number}/global/networks/{network_id}\". This is required to create a cluster.", + "vpcNetwork": { + "description": "Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: \"projects/{project_number}/global/networks/{network_id}\". This is required to create a cluster.", + "type": "string" + } + }, + "type": "object" + }, + "ApplyConversionWorkspaceRequest": { + "description": "Request message for 'ApplyConversionWorkspace' request.", + "id": "ApplyConversionWorkspaceRequest", + "properties": { + "connectionProfile": { + "description": "Fully qualified (Uri) name of the destination connection profile.", + "type": "string" + }, + "filter": { + "description": "Filter which entities to apply. Leaving this field empty will apply all of the entities. Supports Google AIP 160 based filtering.", "type": "string" } }, @@ -1140,6 +1809,75 @@ }, "type": "object" }, + "BackgroundJobLogEntry": { + "description": "Execution log of a background job.", + "id": "BackgroundJobLogEntry", + "properties": { + "completionComment": { + "description": "Job completion comment, such as how many entities were seeded, how many warnings were found during conversion and similar information.", + "type": "string" + }, + "completionState": { + "description": "Job completion state, i.e. the final state after the job completed.", + "enum": [ + "JOB_COMPLETION_STATE_UNSPECIFIED", + "SUCCEEDED", + "FAILED" + ], + "enumDescriptions": [ + "The status is not specified. This state will be used when job is not yet finished.", + "Success.", + "Error." + ], + "type": "string" + }, + "finishTime": { + "description": "The timestamp when the background job was finished.", + "format": "google-datetime", + "type": "string" + }, + "id": { + "description": "The background job log entry id", + "type": "string" + }, + "importRulesJobDetails": { + "$ref": "ImportRulesJobDetails", + "description": "Import rules job details" + }, + "jobType": { + "description": "The type of job that was executed.", + "enum": [ + "BACKGROUND_JOB_TYPE_UNSPECIFIED", + "BACKGROUND_JOB_TYPE_SOURCE_SEED", + "BACKGROUND_JOB_TYPE_CONVERT", + "BACKGROUND_JOB_TYPE_APPLY_DESTINATION", + "BACKGROUND_JOB_TYPE_IMPORT_RULES_FILE" + ], + "enumDescriptions": [ + "Unspecified background job type", + "Job to seed from the source database", + "Job to convert the source database into a draft of the destination database", + "Job to apply the draft tree onto the destination", + "Job to import and convert mapping rules from an external source such as an ora2pg config file" + ], + "type": "string" + }, + "requestAutocommit": { + "description": "Whether the client requested the conversion workspace to be committed after a successful completion of the job.", + "type": "boolean" + }, + "seedJobDetails": { + "$ref": "SeedJobDetails", + "description": "Seed job details" + }, + "startTime": { + "description": "The timestamp when the background job was started.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "Binding": { "description": "Associates `members`, or principals, with a `role`.", "id": "Binding", @@ -1341,6 +2079,109 @@ }, "type": "object" }, + "ColumnEntity": { + "description": "Column is not used as an independent entity, it is retrieved as part of a Table entity.", + "id": "ColumnEntity", + "properties": { + "array": { + "description": "Is the column of array type", + "type": "boolean" + }, + "arrayLength": { + "description": "If the column is array, of which length", + "format": "int32", + "type": "integer" + }, + "autoGenerated": { + "description": "Is the column auto-generated/identity", + "type": "boolean" + }, + "charset": { + "description": "Charset override - instead of table level charset", + "type": "string" + }, + "collation": { + "description": "Collation override - instead of table level collation", + "type": "string" + }, + "comment": { + "description": "Comment associated with the column", + "type": "string" + }, + "customFeatures": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Custom engine specific features", + "type": "object" + }, + "dataType": { + "description": "Column data type", + "type": "string" + }, + "defaultValue": { + "description": "Default value of the column", + "type": "string" + }, + "fractionalSecondsPrecision": { + "description": "Column fractional second precision - used for timestamp based datatypes", + "format": "int32", + "type": "integer" + }, + "length": { + "description": "Column length - e.g. varchar (50)", + "format": "int64", + "type": "string" + }, + "name": { + "description": "Column name", + "type": "string" + }, + "nullable": { + "description": "Is the column nullable", + "type": "boolean" + }, + "ordinalPosition": { + "description": "Column order in the table", + "format": "int32", + "type": "integer" + }, + "precision": { + "description": "Column precision - when relevant", + "format": "int32", + "type": "integer" + }, + "scale": { + "description": "Column scale - when relevant", + "format": "int32", + "type": "integer" + }, + "setValues": { + "description": "Specifies the list of values allowed in the column. List is empty if set values is not required", + "items": { + "type": "string" + }, + "type": "array" + }, + "udt": { + "description": "Is the column a UDT", + "type": "boolean" + } + }, + "type": "object" + }, + "CommitConversionWorkspaceRequest": { + "description": "Request message for 'CommitConversionWorkspace' request.", + "id": "CommitConversionWorkspaceRequest", + "properties": { + "commitName": { + "description": "Optional name of the commit.", + "type": "string" + } + }, + "type": "object" + }, "ConnectionProfile": { "description": "A connection profile definition.", "id": "ConnectionProfile", @@ -1383,57 +2224,327 @@ "description": "The name of this connection profile resource in the form of projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}.", "type": "string" }, + "oracle": { + "$ref": "OracleConnectionProfile", + "description": "An Oracle database connection profile." + }, "postgresql": { "$ref": "PostgreSqlConnectionProfile", "description": "A PostgreSQL database connection profile." }, - "provider": { - "description": "The database provider.", + "provider": { + "description": "The database provider.", + "enum": [ + "DATABASE_PROVIDER_UNSPECIFIED", + "CLOUDSQL", + "RDS", + "AURORA", + "ALLOYDB" + ], + "enumDescriptions": [ + "The database provider is unknown.", + "CloudSQL runs the database.", + "RDS runs the database.", + "Amazon Aurora.", + "AlloyDB." + ], + "type": "string" + }, + "state": { + "description": "The current connection profile state (e.g. DRAFT, READY, or FAILED).", + "enum": [ + "STATE_UNSPECIFIED", + "DRAFT", + "CREATING", + "READY", + "UPDATING", + "DELETING", + "DELETED", + "FAILED" + ], + "enumDescriptions": [ + "The state of the connection profile is unknown.", + "The connection profile is in draft mode and fully editable.", + "The connection profile is being created.", + "The connection profile is ready.", + "The connection profile is being updated.", + "The connection profile is being deleted.", + "The connection profile has been deleted.", + "The last action on the connection profile failed." + ], + "type": "string" + }, + "updateTime": { + "description": "Output only. The timestamp when the resource was last updated. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: \"2014-10-02T15:01:23.045123456Z\".", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "ConstraintEntity": { + "description": "Constraint is not used as an independent entity, it is retrieved as part of another entity such as Table or View.", + "id": "ConstraintEntity", + "properties": { + "customFeatures": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Custom engine specific features", + "type": "object" + }, + "name": { + "description": "The name of the table constraint", + "type": "string" + }, + "referenceColumns": { + "description": "Reference Columns which may be associated with the constraint. eg: if the constraint is a FOREIGN_KEY, this represents the list of full names of referenced columns by the foreign key.", + "items": { + "type": "string" + }, + "type": "array" + }, + "referenceTable": { + "description": "Reference table which may be associated with the constraint. eg: if the constraint is a FOREIGN_KEY, this represents the list of full name of the referenced table by the foreign key.", + "type": "string" + }, + "tableColumns": { + "description": "Table columns used as part of the Constraint for e.g. primary key constraint should list the columns which constitutes the key", + "items": { + "type": "string" + }, + "type": "array" + }, + "tableName": { + "description": "Table which is associated with the constraint. In case the constraint is defined on a table, this field is left empty as this information is stored in parent_name. However, if constraint is defined on a view, this field stores the table name on which the view is defined.", + "type": "string" + }, + "type": { + "description": "Type of constraint - e.g. unique, primary key, foreign key (currently only primary key is supported)", + "type": "string" + } + }, + "type": "object" + }, + "ConversionWorkspace": { + "description": "The main conversion workspace resource entity.", + "id": "ConversionWorkspace", + "properties": { + "createTime": { + "description": "Output only. The timestamp when the workspace resource was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "destination": { + "$ref": "DatabaseEngineInfo", + "description": "Required. The destination engine details." + }, + "displayName": { + "description": "The display name for the workspace", + "type": "string" + }, + "globalSettings": { + "additionalProperties": { + "type": "string" + }, + "description": "A generic list of settings for the workspace. The settings are database pair dependant and can indicate default behavior for the mapping rules engine or turn on or off specific features. Such examples can be: convert_foreign_key_to_interleave=true, skip_triggers=false, ignore_non_table_synonyms=true", + "type": "object" + }, + "hasUncommittedChanges": { + "description": "Output only. Whether the workspace has uncommitted changes (changes which were made after the workspace was committed)", + "readOnly": true, + "type": "boolean" + }, + "latestCommitId": { + "description": "Output only. The latest commit id", + "readOnly": true, + "type": "string" + }, + "latestCommitTime": { + "description": "Output only. The timestamp when the workspace was committed.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Full name of the workspace resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.", + "type": "string" + }, + "source": { + "$ref": "DatabaseEngineInfo", + "description": "Required. The source engine details." + }, + "updateTime": { + "description": "Output only. The timestamp when the workspace resource was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "ConversionWorkspaceInfo": { + "description": "A conversion workspace's version.", + "id": "ConversionWorkspaceInfo", + "properties": { + "commitId": { + "description": "The commit ID of the conversion workspace.", + "type": "string" + }, + "name": { + "description": "The resource name (URI) of the conversion workspace.", + "type": "string" + } + }, + "type": "object" + }, + "ConvertConversionWorkspaceRequest": { + "description": "Request message for 'ConvertConversionWorkspace' request.", + "id": "ConvertConversionWorkspaceRequest", + "properties": { + "autoCommit": { + "description": "Should the conversion workspace be committed automatically after the conversion.", + "type": "boolean" + }, + "filter": { + "description": "Filter the entities to convert. Leaving this field empty will convert all of the entities. Supports Google AIP-160 style filtering.", + "type": "string" + } + }, + "type": "object" + }, + "DatabaseEngineInfo": { + "description": "The type and version of a source or destination DB.", + "id": "DatabaseEngineInfo", + "properties": { + "engine": { + "description": "Required. Engine Type.", + "enum": [ + "DATABASE_ENGINE_UNSPECIFIED", + "MYSQL", + "POSTGRESQL", + "ORACLE" + ], + "enumDescriptions": [ + "The source database engine of the migration job is unknown.", + "The source engine is MySQL.", + "The source engine is PostgreSQL.", + "The source engine is Oracle" + ], + "type": "string" + }, + "version": { + "description": "Required. Engine named version, for e.g. 12.c.1", + "type": "string" + } + }, + "type": "object" + }, + "DatabaseEntity": { + "description": "The base entity type for all the database related entities The message contains the entity name, the name of its parent, its type and the specific details per its type", + "id": "DatabaseEntity", + "properties": { + "databaseFunction": { + "$ref": "FunctionEntity", + "description": "Function" + }, + "databasePackage": { + "$ref": "PackageEntity", + "description": "Package" + }, + "entityType": { + "description": "The type of the database entity (table, view, index, ...).", "enum": [ - "DATABASE_PROVIDER_UNSPECIFIED", - "CLOUDSQL", - "RDS", - "AURORA", - "ALLOYDB" + "DATABASE_ENTITY_TYPE_UNSPECIFIED", + "DATABASE_ENTITY_TYPE_SCHEMA", + "DATABASE_ENTITY_TYPE_TABLE", + "DATABASE_ENTITY_TYPE_COLUMN", + "DATABASE_ENTITY_TYPE_CONSTRAINT", + "DATABASE_ENTITY_TYPE_INDEX", + "DATABASE_ENTITY_TYPE_TRIGGER", + "DATABASE_ENTITY_TYPE_VIEW", + "DATABASE_ENTITY_TYPE_SEQUENCE", + "DATABASE_ENTITY_TYPE_STORED_PROCEDURE", + "DATABASE_ENTITY_TYPE_FUNCTION", + "DATABASE_ENTITY_TYPE_SYNONYM", + "DATABASE_ENTITY_TYPE_DATABASE_PACKAGE", + "DATABASE_ENTITY_TYPE_UDT" ], "enumDescriptions": [ - "The database provider is unknown.", - "CloudSQL runs the database.", - "RDS runs the database.", - "Amazon Aurora.", - "AlloyDB." + "Unspecified database entity type", + "Schema", + "Table", + "Column", + "Constraint", + "Index", + "Trigger", + "View", + "Sequence", + "Stored Procedure", + "Function", + "Synonym", + "Package", + "UDT" ], "type": "string" }, - "state": { - "description": "The current connection profile state (e.g. DRAFT, READY, or FAILED).", + "mappings": { + "description": "Details about entity mappings. For source tree entities, this holds the draft entities which were generated by the mapping rules. For draft tree entities, this holds the source entities which were converted to form the draft entity. Destination entities will have no mapping details.", + "items": { + "$ref": "EntityMapping" + }, + "type": "array" + }, + "parentEntity": { + "description": "The full name of the parent entity (e.g. schema name).", + "type": "string" + }, + "schema": { + "$ref": "SchemaEntity", + "description": "Schema." + }, + "sequence": { + "$ref": "SequenceEntity", + "description": "Sequence" + }, + "shortName": { + "description": "The short name (e.g. table name) of the entity.", + "type": "string" + }, + "storedProcedure": { + "$ref": "StoredProcedureEntity", + "description": "Stored Procedure" + }, + "synonym": { + "$ref": "SynonymEntity", + "description": "Synonym" + }, + "table": { + "$ref": "TableEntity", + "description": "Table." + }, + "tree": { + "description": "The type of tree the entity belongs to.", "enum": [ - "STATE_UNSPECIFIED", + "TREE_TYPE_UNSPECIFIED", + "SOURCE", "DRAFT", - "CREATING", - "READY", - "UPDATING", - "DELETING", - "DELETED", - "FAILED" + "DESTINATION" ], "enumDescriptions": [ - "The state of the connection profile is unknown.", - "The connection profile is in draft mode and fully editable.", - "The connection profile is being created.", - "The connection profile is ready.", - "The connection profile is being updated.", - "The connection profile is being deleted.", - "The connection profile has been deleted.", - "The last action on the connection profile failed." + "Tree Type Unspecified.", + "Tree of entities loaded from a source database.", + "Tree of entities converted from the source tree using the mapping rules.", + "Tree of entities observed on the destination database." ], "type": "string" }, - "updateTime": { - "description": "Output only. The timestamp when the resource was last updated. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: \"2014-10-02T15:01:23.045123456Z\".", - "format": "google-datetime", - "readOnly": true, - "type": "string" + "view": { + "$ref": "ViewEntity", + "description": "View" } }, "type": "object" @@ -1447,12 +2558,14 @@ "enum": [ "DATABASE_ENGINE_UNSPECIFIED", "MYSQL", - "POSTGRESQL" + "POSTGRESQL", + "ORACLE" ], "enumDescriptions": [ "The source database engine of the migration job is unknown.", "The source engine is MySQL.", - "The source engine is PostgreSQL." + "The source engine is PostgreSQL.", + "The source engine is Oracle" ], "type": "string" }, @@ -1477,6 +2590,38 @@ }, "type": "object" }, + "DescribeConversionWorkspaceRevisionsResponse": { + "description": "Response message for 'DescribeConversionWorkspaceRevisions' request.", + "id": "DescribeConversionWorkspaceRevisionsResponse", + "properties": { + "revisions": { + "description": "The list of conversion workspace revisions.", + "items": { + "$ref": "ConversionWorkspace" + }, + "type": "array" + } + }, + "type": "object" + }, + "DescribeDatabaseEntitiesResponse": { + "description": "Response message for 'DescribeDatabaseEntities' request.", + "id": "DescribeDatabaseEntitiesResponse", + "properties": { + "databaseEntities": { + "description": "The list of database entities for the conversion workspace.", + "items": { + "$ref": "DatabaseEntity" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, "DumpFlag": { "description": "Dump flag definition.", "id": "DumpFlag", @@ -1512,6 +2657,47 @@ "properties": {}, "type": "object" }, + "EntityMapping": { + "description": "Details of the mappings of a database entity.", + "id": "EntityMapping", + "properties": { + "draftEntity": { + "description": "Target entity full name. The draft entity can also include a column, index or constraint using the same naming notation schema.table.column", + "type": "string" + }, + "mappingLog": { + "description": "Entity mapping log entries. Multiple rules can be effective and contribute changes to a converted entity such as, a rule can handle the entity name, another rule can handle an entity type. In addition, rules which did not change the entity are also logged along the with the reason preventing them to do so.", + "items": { + "$ref": "EntityMappingLogEntry" + }, + "type": "array" + }, + "sourceEntity": { + "description": "Source entity full name. The source entity can also be a column, index or constraint using the same naming notation schema.table.column", + "type": "string" + } + }, + "type": "object" + }, + "EntityMappingLogEntry": { + "description": "A single record of a rule which was used for a mapping.", + "id": "EntityMappingLogEntry", + "properties": { + "mappingComment": { + "description": "Comment.", + "type": "string" + }, + "ruleId": { + "description": "Which rule caused it.", + "type": "string" + }, + "ruleRevisionId": { + "description": "Rule revision id", + "type": "string" + } + }, + "type": "object" + }, "Expr": { "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", "id": "Expr", @@ -1535,6 +2721,53 @@ }, "type": "object" }, + "ForwardSshTunnelConnectivity": { + "description": "Forward SSH Tunnel connectivity.", + "id": "ForwardSshTunnelConnectivity", + "properties": { + "hostname": { + "description": "Required. Hostname for the SSH tunnel.", + "type": "string" + }, + "password": { + "description": "Input only. SSH password.", + "type": "string" + }, + "port": { + "description": "Port for the SSH tunnel, default value is 22.", + "format": "int32", + "type": "integer" + }, + "privateKey": { + "description": "Input only. SSH private key.", + "type": "string" + }, + "username": { + "description": "Required. Username for the SSH tunnel.", + "type": "string" + } + }, + "type": "object" + }, + "FunctionEntity": { + "description": "Function's parent is a schema.", + "id": "FunctionEntity", + "properties": { + "customFeatures": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Custom engine specific features", + "type": "object" + }, + "sqlCode": { + "description": "The SQL code which creates the function", + "type": "string" + } + }, + "type": "object" + }, "GenerateSshScriptRequest": { "description": "Request message for 'GenerateSshScript' request.", "id": "GenerateSshScriptRequest", @@ -1603,6 +2836,100 @@ }, "type": "object" }, + "ImportMappingRulesRequest": { + "description": "Request message for 'ImportMappingRules' request.", + "id": "ImportMappingRulesRequest", + "properties": { + "autoCommit": { + "description": "Should the conversion workspace be committed automatically after the import operation.", + "type": "boolean" + }, + "rulesFiles": { + "description": "One or more rules files", + "items": { + "$ref": "RulesFile" + }, + "type": "array" + }, + "rulesFormat": { + "description": "The format of the rules content file.", + "enum": [ + "IMPORT_RULES_FILE_FORMAT_UNSPECIFIED", + "IMPORT_RULES_FILE_FORMAT_HARBOUR_BRIDGE_SESSION_FILE", + "IMPORT_RULES_FILE_FORMAT_ORATOPG_CONFIG_FILE" + ], + "enumDescriptions": [ + "Unspecified Rules Format", + "Harbour Bridge Session file", + "ORA2PG config file" + ], + "type": "string" + } + }, + "type": "object" + }, + "ImportRulesJobDetails": { + "description": "Details regarding an Import Rules background job", + "id": "ImportRulesJobDetails", + "properties": { + "fileFormat": { + "description": "The requested file format", + "enum": [ + "IMPORT_RULES_FILE_FORMAT_UNSPECIFIED", + "IMPORT_RULES_FILE_FORMAT_HARBOUR_BRIDGE_SESSION_FILE", + "IMPORT_RULES_FILE_FORMAT_ORATOPG_CONFIG_FILE" + ], + "enumDescriptions": [ + "Unspecified Rules Format", + "Harbour Bridge Session file", + "ORA2PG config file" + ], + "type": "string" + }, + "files": { + "description": "File names used for the import rules job", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "IndexEntity": { + "description": "Index is not used as an independent entity, it is retrieved as part of a Table entity.", + "id": "IndexEntity", + "properties": { + "customFeatures": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Custom engine specific features", + "type": "object" + }, + "name": { + "description": "The name of the index", + "type": "string" + }, + "tableColumns": { + "description": "Table columns used as part of the Index for e.g. B-TREE index should list the columns which constitutes the index.", + "items": { + "type": "string" + }, + "type": "array" + }, + "type": { + "description": "Type of index - e.g. B-TREE", + "type": "string" + }, + "unique": { + "description": "boolean value indicating whether the index is unique", + "type": "boolean" + } + }, + "type": "object" + }, "ListConnectionProfilesResponse": { "description": "Response message for 'ListConnectionProfiles' request.", "id": "ListConnectionProfilesResponse", @@ -1628,6 +2955,31 @@ }, "type": "object" }, + "ListConversionWorkspacesResponse": { + "description": "Response message for 'ListConversionWorkspaces' request.", + "id": "ListConversionWorkspacesResponse", + "properties": { + "conversionWorkspaces": { + "description": "The list of conversion workspace objects.", + "items": { + "$ref": "ConversionWorkspace" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "ListLocationsResponse": { "description": "The response message for Locations.ListLocations.", "id": "ListLocationsResponse", @@ -1689,6 +3041,31 @@ }, "type": "object" }, + "ListPrivateConnectionsResponse": { + "description": "Response message for 'ListPrivateConnections' request.", + "id": "ListPrivateConnectionsResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "privateConnections": { + "description": "List of private connections.", + "items": { + "$ref": "PrivateConnection" + }, + "type": "array" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "Location": { "description": "A resource that represents Google Cloud Platform location.", "id": "Location", @@ -1739,6 +3116,10 @@ "description": "Represents a Database Migration Service migration job object.", "id": "MigrationJob", "properties": { + "conversionWorkspace": { + "$ref": "ConversionWorkspaceInfo", + "description": "The conversion workspace used by the migration." + }, "createTime": { "description": "Output only. The timestamp when the migration job resource was created. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: \"2014-10-02T15:01:23.045123456Z\".", "format": "google-datetime", @@ -1782,6 +3163,10 @@ "description": "Output only. The error details in case of state FAILED.", "readOnly": true }, + "filter": { + "description": "This field can be used to select the entities to migrate as part of the migration job. It uses AIP-160 notation to select a subset of the entities configured on the associated conversion-workspace. This field should not be set on migration-jobs that are not associated with a conversion workspace.", + "type": "string" + }, "labels": { "additionalProperties": { "type": "string" @@ -2014,25 +3399,93 @@ "$ref": "Status", "description": "The error result of the operation in case of failure or cancellation." }, - "metadata": { + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object" + }, + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", + "type": "string" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "type": "object" + } + }, + "type": "object" + }, + "OracleConnectionProfile": { + "description": "Specifies connection parameters required specifically for Oracle databases.", + "id": "OracleConnectionProfile", + "properties": { + "databaseService": { + "description": "Required. Database service for the Oracle connection.", + "type": "string" + }, + "forwardSshConnectivity": { + "$ref": "ForwardSshTunnelConnectivity", + "description": "Forward SSH tunnel connectivity." + }, + "host": { + "description": "Required. The IP or hostname of the source Oracle database.", + "type": "string" + }, + "password": { + "description": "Required. Input only. The password for the user that Database Migration Service will be using to connect to the database. This field is not returned on request, and the value is encrypted when stored in Database Migration Service.", + "type": "string" + }, + "passwordSet": { + "description": "Output only. Indicates whether a new password is included in the request.", + "readOnly": true, + "type": "boolean" + }, + "port": { + "description": "Required. The network port of the source Oracle database.", + "format": "int32", + "type": "integer" + }, + "privateConnectivity": { + "$ref": "PrivateConnectivity", + "description": "Private connectivity." + }, + "staticServiceIpConnectivity": { + "$ref": "StaticServiceIpConnectivity", + "description": "Static Service IP connectivity." + }, + "username": { + "description": "Required. The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service.", + "type": "string" + } + }, + "type": "object" + }, + "PackageEntity": { + "description": "Package's parent is a schema.", + "id": "PackageEntity", + "properties": { + "customFeatures": { "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL.", + "description": "Properties of the object.", "type": "any" }, - "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "description": "Custom engine specific features", "type": "object" }, - "name": { - "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", + "packageBody": { + "description": "The SQL code which creates the package body. If the package specification has cursors or subprograms, then the package body is mandatory.", "type": "string" }, - "response": { - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL.", - "type": "any" - }, - "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", - "type": "object" + "packageSqlCode": { + "description": "The SQL code which creates the package", + "type": "string" } }, "type": "object" @@ -2109,10 +3562,18 @@ "format": "int32", "type": "integer" }, + "privateServiceConnectConnectivity": { + "$ref": "PrivateServiceConnectConnectivity", + "description": "Private service connect connectivity." + }, "ssl": { "$ref": "SslConfig", "description": "SSL configuration for the destination to connect to the source database." }, + "staticIpConnectivity": { + "$ref": "StaticIpConnectivity", + "description": "Static ip connectivity data (default, no additional details needed)." + }, "username": { "description": "Required. The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service.", "type": "string" @@ -2154,6 +3615,94 @@ }, "type": "object" }, + "PrivateConnection": { + "description": "The PrivateConnection resource is used to establish private connectivity with the customer's network.", + "id": "PrivateConnection", + "properties": { + "createTime": { + "description": "Output only. The create time of the resource.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "The private connection display name.", + "type": "string" + }, + "error": { + "$ref": "Status", + "description": "Output only. The error details in case of state FAILED.", + "readOnly": true + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "The resource labels for private connections to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of \"key\": \"value\" pairs. Example: `{ \"name\": \"wrench\", \"mass\": \"1.3kg\", \"count\": \"3\" }`.", + "type": "object" + }, + "name": { + "description": "The resource's name.", + "type": "string" + }, + "state": { + "description": "Output only. The state of the Private Connection.", + "enum": [ + "STATE_UNSPECIFIED", + "CREATING", + "CREATED", + "FAILED", + "DELETING", + "FAILED_TO_DELETE", + "DELETED" + ], + "enumDescriptions": [ + "", + "The private connection is in creation state - creating resources.", + "The private connection has been created with all of its resources.", + "The private connection creation has failed.", + "The private connection is being deleted.", + "Delete request has failed, resource is in invalid state.", + "The private connection has been deleted." + ], + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. The last update time of the resource.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "vpcPeeringConfig": { + "$ref": "VpcPeeringConfig", + "description": "VPC Peering Config." + } + }, + "type": "object" + }, + "PrivateConnectivity": { + "description": "Private Connectivity.", + "id": "PrivateConnectivity", + "properties": { + "privateConnection": { + "description": "Required. The resource name (URI) of the private connection.", + "type": "string" + } + }, + "type": "object" + }, + "PrivateServiceConnectConnectivity": { + "description": "Private Service Connect connectivity (https://cloud.google.com/vpc/docs/private-service-connect#benefits-services)", + "id": "PrivateServiceConnectConnectivity", + "properties": { + "serviceAttachment": { + "description": "Required. A service attachment that exposes a database, and has the following format: projects/{project}/regions/{region}/serviceAttachments/{service_attachment_name}", + "type": "string" + } + }, + "type": "object" + }, "PromoteMigrationJobRequest": { "description": "Request message for 'PromoteMigrationJob' request.", "id": "PromoteMigrationJobRequest", @@ -2196,6 +3745,130 @@ }, "type": "object" }, + "RollbackConversionWorkspaceRequest": { + "description": "Request message for 'RollbackConversionWorkspace' request.", + "id": "RollbackConversionWorkspaceRequest", + "properties": {}, + "type": "object" + }, + "RulesFile": { + "description": "Details of a single rules file", + "id": "RulesFile", + "properties": { + "rulesContent": { + "description": "The text content of the rules that needs to be converted", + "type": "string" + }, + "rulesSourceFilename": { + "description": "The filename of the rules that needs to be converted. This is used mainly so future logs of the import rules job will contain this detail and can therefore be searched by it later", + "type": "string" + } + }, + "type": "object" + }, + "SchemaEntity": { + "description": "Schema typically has no parent entity, but can have a parent entity DatabaseInstance (for database engines which supports it). For some database engines the term schema and user can be used interchangeably when they refer to a namespace or a collection of other database entities. Can store additional information which is schema specific.", + "id": "SchemaEntity", + "properties": { + "customFeatures": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Custom engine specific features", + "type": "object" + } + }, + "type": "object" + }, + "SearchBackgroundJobsResponse": { + "description": "Response message for 'SearchBackgroundJobs' request.", + "id": "SearchBackgroundJobsResponse", + "properties": { + "jobs": { + "description": "The list of conversion workspace mapping rules.", + "items": { + "$ref": "BackgroundJobLogEntry" + }, + "type": "array" + } + }, + "type": "object" + }, + "SeedConversionWorkspaceRequest": { + "description": "Request message for 'SeedConversionWorkspace' request.", + "id": "SeedConversionWorkspaceRequest", + "properties": { + "autoCommit": { + "description": "Should the conversion workspace be committed automatically after the seed operation.", + "type": "boolean" + }, + "destinationConnectionProfile": { + "description": "Fully qualified (Uri) name of the destination connection profile.", + "type": "string" + }, + "sourceConnectionProfile": { + "description": "Fully qualified (Uri) name of the source connection profile.", + "type": "string" + } + }, + "type": "object" + }, + "SeedJobDetails": { + "description": "Details regarding a Seed background job", + "id": "SeedJobDetails", + "properties": { + "connectionProfile": { + "description": "The connection profile which was used for the seed job", + "type": "string" + } + }, + "type": "object" + }, + "SequenceEntity": { + "description": "Sequence's parent is a schema.", + "id": "SequenceEntity", + "properties": { + "cache": { + "description": "Indicates number of entries to cache / precreate", + "format": "int64", + "type": "string" + }, + "customFeatures": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Custom engine specific features", + "type": "object" + }, + "cycle": { + "description": "Indicates whether the sequence value should cycle through", + "type": "boolean" + }, + "increment": { + "description": "Increment value for the sequence", + "format": "int64", + "type": "string" + }, + "maxValue": { + "description": "Maximum number for the sequence represented as bytes to accommodate large numbers", + "format": "byte", + "type": "string" + }, + "minValue": { + "description": "Minimum number for the sequence represented as bytes to accommodate large numbers", + "format": "byte", + "type": "string" + }, + "startValue": { + "description": "Start number for the sequence represented as bytes to accommodate large numbers", + "format": "byte", + "type": "string" + } + }, + "type": "object" + }, "SetIamPolicyRequest": { "description": "Request message for `SetIamPolicy` method.", "id": "SetIamPolicyRequest", @@ -2320,6 +3993,12 @@ "properties": {}, "type": "object" }, + "StaticServiceIpConnectivity": { + "description": "Static IP address connectivity configured on service project.", + "id": "StaticServiceIpConnectivity", + "properties": {}, + "type": "object" + }, "Status": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "Status", @@ -2353,6 +4032,127 @@ "properties": {}, "type": "object" }, + "StoredProcedureEntity": { + "description": "Stored procedure's parent is a schema.", + "id": "StoredProcedureEntity", + "properties": { + "customFeatures": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Custom engine specific features", + "type": "object" + }, + "sqlCode": { + "description": "The SQL code which creates the stored procedure", + "type": "string" + } + }, + "type": "object" + }, + "SynonymEntity": { + "description": "Synonym's parent is a schema.", + "id": "SynonymEntity", + "properties": { + "customFeatures": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Custom engine specific features", + "type": "object" + }, + "sourceEntity": { + "description": "The name of the entity for which the synonym is being created (the source)", + "type": "string" + }, + "sourceType": { + "description": "The type of the entity for which the synonym is being created (usually a table or a sequence)", + "enum": [ + "DATABASE_ENTITY_TYPE_UNSPECIFIED", + "DATABASE_ENTITY_TYPE_SCHEMA", + "DATABASE_ENTITY_TYPE_TABLE", + "DATABASE_ENTITY_TYPE_COLUMN", + "DATABASE_ENTITY_TYPE_CONSTRAINT", + "DATABASE_ENTITY_TYPE_INDEX", + "DATABASE_ENTITY_TYPE_TRIGGER", + "DATABASE_ENTITY_TYPE_VIEW", + "DATABASE_ENTITY_TYPE_SEQUENCE", + "DATABASE_ENTITY_TYPE_STORED_PROCEDURE", + "DATABASE_ENTITY_TYPE_FUNCTION", + "DATABASE_ENTITY_TYPE_SYNONYM", + "DATABASE_ENTITY_TYPE_DATABASE_PACKAGE", + "DATABASE_ENTITY_TYPE_UDT" + ], + "enumDescriptions": [ + "Unspecified database entity type", + "Schema", + "Table", + "Column", + "Constraint", + "Index", + "Trigger", + "View", + "Sequence", + "Stored Procedure", + "Function", + "Synonym", + "Package", + "UDT" + ], + "type": "string" + } + }, + "type": "object" + }, + "TableEntity": { + "description": "Table's parent is a schema.", + "id": "TableEntity", + "properties": { + "columns": { + "description": "Table Columns.", + "items": { + "$ref": "ColumnEntity" + }, + "type": "array" + }, + "comment": { + "description": "Comment associated with the table", + "type": "string" + }, + "constraints": { + "description": "Table Constraints.", + "items": { + "$ref": "ConstraintEntity" + }, + "type": "array" + }, + "customFeatures": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Custom engine specific features", + "type": "object" + }, + "indices": { + "description": "Table Indices.", + "items": { + "$ref": "IndexEntity" + }, + "type": "array" + }, + "triggers": { + "description": "Table triggers.", + "items": { + "$ref": "TriggerEntity" + }, + "type": "array" + } + }, + "type": "object" + }, "TestIamPermissionsRequest": { "description": "Request message for `TestIamPermissions` method.", "id": "TestIamPermissionsRequest", @@ -2381,6 +4181,40 @@ }, "type": "object" }, + "TriggerEntity": { + "description": "Trigger is not used as an independent entity, it is retrieved as part of a Table entity.", + "id": "TriggerEntity", + "properties": { + "customFeatures": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Custom engine specific features", + "type": "object" + }, + "name": { + "description": "The name of the trigger", + "type": "string" + }, + "sqlCode": { + "description": "The SQL code which creates the trigger", + "type": "string" + }, + "triggerType": { + "description": "Indicates when the trigger fires, e.g. BEFORE STATEMENT, AFTER EACH ROW", + "type": "string" + }, + "triggeringEvents": { + "description": "The DML, DDL, or database events that fires the trigger, e.g. INSERT, UPDATE", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "UserPassword": { "description": "The username/password for a database user. Used for specifying initial users at cluster creation time.", "id": "UserPassword", @@ -2407,6 +4241,32 @@ "properties": {}, "type": "object" }, + "ViewEntity": { + "description": "View's parent is a schema.", + "id": "ViewEntity", + "properties": { + "constraints": { + "description": "View Constraints.", + "items": { + "$ref": "ConstraintEntity" + }, + "type": "array" + }, + "customFeatures": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Custom engine specific features", + "type": "object" + }, + "sqlCode": { + "description": "The SQL code which creates the view.", + "type": "string" + } + }, + "type": "object" + }, "VmCreationConfig": { "description": "VM creation configuration message", "id": "VmCreationConfig", @@ -2437,6 +4297,21 @@ }, "type": "object" }, + "VpcPeeringConfig": { + "description": "The VPC Peering configuration is used to create VPC peering with the consumer's VPC.", + "id": "VpcPeeringConfig", + "properties": { + "subnet": { + "description": "Required. A free subnet for peering. (CIDR of /29)", + "type": "string" + }, + "vpcName": { + "description": "Required. Fully qualified name of the VPC DMS will peer to.", + "type": "string" + } + }, + "type": "object" + }, "VpcPeeringConnectivity": { "description": "The details of the VPC where the source database is located in Google Cloud. We will use this information to set up the VPC peering connection between Cloud SQL and this VPC.", "id": "VpcPeeringConnectivity", diff --git a/datamigration/v1/datamigration-gen.go b/datamigration/v1/datamigration-gen.go index 46d64a5f0ba..c7613da75f1 100644 --- a/datamigration/v1/datamigration-gen.go +++ b/datamigration/v1/datamigration-gen.go @@ -152,8 +152,10 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} rs.ConnectionProfiles = NewProjectsLocationsConnectionProfilesService(s) + rs.ConversionWorkspaces = NewProjectsLocationsConversionWorkspacesService(s) rs.MigrationJobs = NewProjectsLocationsMigrationJobsService(s) rs.Operations = NewProjectsLocationsOperationsService(s) + rs.PrivateConnections = NewProjectsLocationsPrivateConnectionsService(s) return rs } @@ -162,9 +164,13 @@ type ProjectsLocationsService struct { ConnectionProfiles *ProjectsLocationsConnectionProfilesService + ConversionWorkspaces *ProjectsLocationsConversionWorkspacesService + MigrationJobs *ProjectsLocationsMigrationJobsService Operations *ProjectsLocationsOperationsService + + PrivateConnections *ProjectsLocationsPrivateConnectionsService } func NewProjectsLocationsConnectionProfilesService(s *Service) *ProjectsLocationsConnectionProfilesService { @@ -176,6 +182,27 @@ type ProjectsLocationsConnectionProfilesService struct { s *Service } +func NewProjectsLocationsConversionWorkspacesService(s *Service) *ProjectsLocationsConversionWorkspacesService { + rs := &ProjectsLocationsConversionWorkspacesService{s: s} + rs.MappingRules = NewProjectsLocationsConversionWorkspacesMappingRulesService(s) + return rs +} + +type ProjectsLocationsConversionWorkspacesService struct { + s *Service + + MappingRules *ProjectsLocationsConversionWorkspacesMappingRulesService +} + +func NewProjectsLocationsConversionWorkspacesMappingRulesService(s *Service) *ProjectsLocationsConversionWorkspacesMappingRulesService { + rs := &ProjectsLocationsConversionWorkspacesMappingRulesService{s: s} + return rs +} + +type ProjectsLocationsConversionWorkspacesMappingRulesService struct { + s *Service +} + func NewProjectsLocationsMigrationJobsService(s *Service) *ProjectsLocationsMigrationJobsService { rs := &ProjectsLocationsMigrationJobsService{s: s} return rs @@ -194,6 +221,15 @@ type ProjectsLocationsOperationsService struct { s *Service } +func NewProjectsLocationsPrivateConnectionsService(s *Service) *ProjectsLocationsPrivateConnectionsService { + rs := &ProjectsLocationsPrivateConnectionsService{s: s} + return rs +} + +type ProjectsLocationsPrivateConnectionsService struct { + s *Service +} + // AlloyDbConnectionProfile: Specifies required connection parameters, // and the parameters required to create an AlloyDB destination cluster. type AlloyDbConnectionProfile struct { @@ -271,6 +307,41 @@ func (s *AlloyDbSettings) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ApplyConversionWorkspaceRequest: Request message for +// 'ApplyConversionWorkspace' request. +type ApplyConversionWorkspaceRequest struct { + // ConnectionProfile: Fully qualified (Uri) name of the destination + // connection profile. + ConnectionProfile string `json:"connectionProfile,omitempty"` + + // Filter: Filter which entities to apply. Leaving this field empty will + // apply all of the entities. Supports Google AIP 160 based filtering. + Filter string `json:"filter,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConnectionProfile") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConnectionProfile") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ApplyConversionWorkspaceRequest) MarshalJSON() ([]byte, error) { + type NoMethod ApplyConversionWorkspaceRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AuditConfig: Specifies the audit configuration for a service. The // configuration determines which permission types are logged, and what // identities, if any, are exempted from logging. An AuditConfig must @@ -368,6 +439,80 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// BackgroundJobLogEntry: Execution log of a background job. +type BackgroundJobLogEntry struct { + // CompletionComment: Job completion comment, such as how many entities + // were seeded, how many warnings were found during conversion and + // similar information. + CompletionComment string `json:"completionComment,omitempty"` + + // CompletionState: Job completion state, i.e. the final state after the + // job completed. + // + // Possible values: + // "JOB_COMPLETION_STATE_UNSPECIFIED" - The status is not specified. + // This state will be used when job is not yet finished. + // "SUCCEEDED" - Success. + // "FAILED" - Error. + CompletionState string `json:"completionState,omitempty"` + + // FinishTime: The timestamp when the background job was finished. + FinishTime string `json:"finishTime,omitempty"` + + // Id: The background job log entry id + Id string `json:"id,omitempty"` + + // ImportRulesJobDetails: Import rules job details + ImportRulesJobDetails *ImportRulesJobDetails `json:"importRulesJobDetails,omitempty"` + + // JobType: The type of job that was executed. + // + // Possible values: + // "BACKGROUND_JOB_TYPE_UNSPECIFIED" - Unspecified background job type + // "BACKGROUND_JOB_TYPE_SOURCE_SEED" - Job to seed from the source + // database + // "BACKGROUND_JOB_TYPE_CONVERT" - Job to convert the source database + // into a draft of the destination database + // "BACKGROUND_JOB_TYPE_APPLY_DESTINATION" - Job to apply the draft + // tree onto the destination + // "BACKGROUND_JOB_TYPE_IMPORT_RULES_FILE" - Job to import and convert + // mapping rules from an external source such as an ora2pg config file + JobType string `json:"jobType,omitempty"` + + // RequestAutocommit: Whether the client requested the conversion + // workspace to be committed after a successful completion of the job. + RequestAutocommit bool `json:"requestAutocommit,omitempty"` + + // SeedJobDetails: Seed job details + SeedJobDetails *SeedJobDetails `json:"seedJobDetails,omitempty"` + + // StartTime: The timestamp when the background job was started. + StartTime string `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CompletionComment") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CompletionComment") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *BackgroundJobLogEntry) MarshalJSON() ([]byte, error) { + type NoMethod BackgroundJobLogEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Binding: Associates `members`, or principals, with a `role`. type Binding struct { // Condition: The condition that is associated with this binding. If the @@ -641,6 +786,117 @@ func (s *CloudSqlSettings) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ColumnEntity: Column is not used as an independent entity, it is +// retrieved as part of a Table entity. +type ColumnEntity struct { + // Array: Is the column of array type + Array bool `json:"array,omitempty"` + + // ArrayLength: If the column is array, of which length + ArrayLength int64 `json:"arrayLength,omitempty"` + + // AutoGenerated: Is the column auto-generated/identity + AutoGenerated bool `json:"autoGenerated,omitempty"` + + // Charset: Charset override - instead of table level charset + Charset string `json:"charset,omitempty"` + + // Collation: Collation override - instead of table level collation + Collation string `json:"collation,omitempty"` + + // Comment: Comment associated with the column + Comment string `json:"comment,omitempty"` + + // CustomFeatures: Custom engine specific features + CustomFeatures googleapi.RawMessage `json:"customFeatures,omitempty"` + + // DataType: Column data type + DataType string `json:"dataType,omitempty"` + + // DefaultValue: Default value of the column + DefaultValue string `json:"defaultValue,omitempty"` + + // FractionalSecondsPrecision: Column fractional second precision - used + // for timestamp based datatypes + FractionalSecondsPrecision int64 `json:"fractionalSecondsPrecision,omitempty"` + + // Length: Column length - e.g. varchar (50) + Length int64 `json:"length,omitempty,string"` + + // Name: Column name + Name string `json:"name,omitempty"` + + // Nullable: Is the column nullable + Nullable bool `json:"nullable,omitempty"` + + // OrdinalPosition: Column order in the table + OrdinalPosition int64 `json:"ordinalPosition,omitempty"` + + // Precision: Column precision - when relevant + Precision int64 `json:"precision,omitempty"` + + // Scale: Column scale - when relevant + Scale int64 `json:"scale,omitempty"` + + // SetValues: Specifies the list of values allowed in the column. List + // is empty if set values is not required + SetValues []string `json:"setValues,omitempty"` + + // Udt: Is the column a UDT + Udt bool `json:"udt,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Array") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Array") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ColumnEntity) MarshalJSON() ([]byte, error) { + type NoMethod ColumnEntity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CommitConversionWorkspaceRequest: Request message for +// 'CommitConversionWorkspace' request. +type CommitConversionWorkspaceRequest struct { + // CommitName: Optional name of the commit. + CommitName string `json:"commitName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommitName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommitName") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CommitConversionWorkspaceRequest) MarshalJSON() ([]byte, error) { + type NoMethod CommitConversionWorkspaceRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ConnectionProfile: A connection profile definition. type ConnectionProfile struct { // Alloydb: An AlloyDB cluster connection profile. @@ -674,6 +930,9 @@ type ConnectionProfile struct { // Profile}. Name string `json:"name,omitempty"` + // Oracle: An Oracle database connection profile. + Oracle *OracleConnectionProfile `json:"oracle,omitempty"` + // Postgresql: A PostgreSQL database connection profile. Postgresql *PostgreSqlConnectionProfile `json:"postgresql,omitempty"` @@ -735,28 +994,42 @@ func (s *ConnectionProfile) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DatabaseType: A message defining the database engine and provider. -type DatabaseType struct { - // Engine: The database engine. - // - // Possible values: - // "DATABASE_ENGINE_UNSPECIFIED" - The source database engine of the - // migration job is unknown. - // "MYSQL" - The source engine is MySQL. - // "POSTGRESQL" - The source engine is PostgreSQL. - Engine string `json:"engine,omitempty"` +// ConstraintEntity: Constraint is not used as an independent entity, it +// is retrieved as part of another entity such as Table or View. +type ConstraintEntity struct { + // CustomFeatures: Custom engine specific features + CustomFeatures googleapi.RawMessage `json:"customFeatures,omitempty"` - // Provider: The database provider. - // - // Possible values: - // "DATABASE_PROVIDER_UNSPECIFIED" - The database provider is unknown. - // "CLOUDSQL" - CloudSQL runs the database. - // "RDS" - RDS runs the database. - // "AURORA" - Amazon Aurora. - // "ALLOYDB" - AlloyDB. - Provider string `json:"provider,omitempty"` + // Name: The name of the table constraint + Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Engine") to + // ReferenceColumns: Reference Columns which may be associated with the + // constraint. eg: if the constraint is a FOREIGN_KEY, this represents + // the list of full names of referenced columns by the foreign key. + ReferenceColumns []string `json:"referenceColumns,omitempty"` + + // ReferenceTable: Reference table which may be associated with the + // constraint. eg: if the constraint is a FOREIGN_KEY, this represents + // the list of full name of the referenced table by the foreign key. + ReferenceTable string `json:"referenceTable,omitempty"` + + // TableColumns: Table columns used as part of the Constraint for e.g. + // primary key constraint should list the columns which constitutes the + // key + TableColumns []string `json:"tableColumns,omitempty"` + + // TableName: Table which is associated with the constraint. In case the + // constraint is defined on a table, this field is left empty as this + // information is stored in parent_name. However, if constraint is + // defined on a view, this field stores the table name on which the view + // is defined. + TableName string `json:"tableName,omitempty"` + + // Type: Type of constraint - e.g. unique, primary key, foreign key + // (currently only primary key is supported) + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CustomFeatures") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -764,30 +1037,71 @@ type DatabaseType struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Engine") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CustomFeatures") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } -func (s *DatabaseType) MarshalJSON() ([]byte, error) { - type NoMethod DatabaseType +func (s *ConstraintEntity) MarshalJSON() ([]byte, error) { + type NoMethod ConstraintEntity raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DumpFlag: Dump flag definition. -type DumpFlag struct { - // Name: The name of the flag +// ConversionWorkspace: The main conversion workspace resource entity. +type ConversionWorkspace struct { + // CreateTime: Output only. The timestamp when the workspace resource + // was created. + CreateTime string `json:"createTime,omitempty"` + + // Destination: Required. The destination engine details. + Destination *DatabaseEngineInfo `json:"destination,omitempty"` + + // DisplayName: The display name for the workspace + DisplayName string `json:"displayName,omitempty"` + + // GlobalSettings: A generic list of settings for the workspace. The + // settings are database pair dependant and can indicate default + // behavior for the mapping rules engine or turn on or off specific + // features. Such examples can be: + // convert_foreign_key_to_interleave=true, skip_triggers=false, + // ignore_non_table_synonyms=true + GlobalSettings map[string]string `json:"globalSettings,omitempty"` + + // HasUncommittedChanges: Output only. Whether the workspace has + // uncommitted changes (changes which were made after the workspace was + // committed) + HasUncommittedChanges bool `json:"hasUncommittedChanges,omitempty"` + + // LatestCommitId: Output only. The latest commit id + LatestCommitId string `json:"latestCommitId,omitempty"` + + // LatestCommitTime: Output only. The timestamp when the workspace was + // committed. + LatestCommitTime string `json:"latestCommitTime,omitempty"` + + // Name: Full name of the workspace resource, in the form of: + // projects/{project}/locations/{location}/conversionWorkspaces/{conversi + // on_workspace}. Name string `json:"name,omitempty"` - // Value: The value of the flag. - Value string `json:"value,omitempty"` + // Source: Required. The source engine details. + Source *DatabaseEngineInfo `json:"source,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to + // UpdateTime: Output only. The timestamp when the workspace resource + // was last 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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -795,8 +1109,8 @@ type DumpFlag struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -804,18 +1118,21 @@ type DumpFlag struct { NullFields []string `json:"-"` } -func (s *DumpFlag) MarshalJSON() ([]byte, error) { - type NoMethod DumpFlag +func (s *ConversionWorkspace) MarshalJSON() ([]byte, error) { + type NoMethod ConversionWorkspace raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DumpFlags: Dump flags definition. -type DumpFlags struct { - // DumpFlags: The flags for the initial dump. - DumpFlags []*DumpFlag `json:"dumpFlags,omitempty"` +// ConversionWorkspaceInfo: A conversion workspace's version. +type ConversionWorkspaceInfo struct { + // CommitId: The commit ID of the conversion workspace. + CommitId string `json:"commitId,omitempty"` - // ForceSendFields is a list of field names (e.g. "DumpFlags") to + // Name: The resource name (URI) of the conversion workspace. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommitId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -823,7 +1140,7 @@ type DumpFlags struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DumpFlags") to include in + // NullFields is a list of field names (e.g. "CommitId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -832,61 +1149,24 @@ type DumpFlags struct { NullFields []string `json:"-"` } -func (s *DumpFlags) MarshalJSON() ([]byte, error) { - type NoMethod DumpFlags +func (s *ConversionWorkspaceInfo) MarshalJSON() ([]byte, error) { + type NoMethod ConversionWorkspaceInfo raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } -type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` -} - -// Expr: Represents a textual expression in the Common Expression -// Language (CEL) syntax. CEL is a C-like expression language. The -// syntax and semantics of CEL are documented at -// https://github.com/google/cel-spec. Example (Comparison): title: -// "Summary size limit" description: "Determines if a summary is less -// than 100 chars" expression: "document.summary.size() < 100" Example -// (Equality): title: "Requestor is owner" description: "Determines if -// requestor is the document owner" expression: "document.owner == -// request.auth.claims.email" Example (Logic): title: "Public documents" -// description: "Determine whether the document should be publicly -// visible" expression: "document.type != 'private' && document.type != -// 'internal'" Example (Data Manipulation): title: "Notification string" -// description: "Create a notification string with a timestamp." -// expression: "'New message received at ' + -// string(document.create_time)" The exact variables and functions that -// may be referenced within an expression are determined by the service -// that evaluates it. See the service documentation for additional -// information. -type Expr struct { - // Description: Optional. Description of the expression. This is a - // longer text which describes the expression, e.g. when hovered over it - // in a UI. - Description string `json:"description,omitempty"` - - // Expression: Textual representation of an expression in Common - // Expression Language syntax. - Expression string `json:"expression,omitempty"` - - // Location: Optional. String indicating the location of the expression - // for error reporting, e.g. a file name and a position in the file. - Location string `json:"location,omitempty"` +// ConvertConversionWorkspaceRequest: Request message for +// 'ConvertConversionWorkspace' request. +type ConvertConversionWorkspaceRequest struct { + // AutoCommit: Should the conversion workspace be committed + // automatically after the conversion. + AutoCommit bool `json:"autoCommit,omitempty"` - // Title: Optional. Title for the expression, i.e. a short string - // describing its purpose. This can be used e.g. in UIs which allow to - // enter the expression. - Title string `json:"title,omitempty"` + // Filter: Filter the entities to convert. Leaving this field empty will + // convert all of the entities. Supports Google AIP-160 style filtering. + Filter string `json:"filter,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to + // ForceSendFields is a list of field names (e.g. "AutoCommit") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -894,37 +1174,38 @@ type Expr struct { // This may be used to include empty fields in Patch requests. 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. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "AutoCommit") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *Expr) MarshalJSON() ([]byte, error) { - type NoMethod Expr +func (s *ConvertConversionWorkspaceRequest) MarshalJSON() ([]byte, error) { + type NoMethod ConvertConversionWorkspaceRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GenerateSshScriptRequest: Request message for 'GenerateSshScript' -// request. -type GenerateSshScriptRequest struct { - // Vm: Required. Bastion VM Instance name to use or to create. - Vm string `json:"vm,omitempty"` - - // VmCreationConfig: The VM creation configuration - VmCreationConfig *VmCreationConfig `json:"vmCreationConfig,omitempty"` - - // VmPort: The port that will be open on the bastion host - VmPort int64 `json:"vmPort,omitempty"` +// DatabaseEngineInfo: The type and version of a source or destination +// DB. +type DatabaseEngineInfo struct { + // Engine: Required. Engine Type. + // + // Possible values: + // "DATABASE_ENGINE_UNSPECIFIED" - The source database engine of the + // migration job is unknown. + // "MYSQL" - The source engine is MySQL. + // "POSTGRESQL" - The source engine is PostgreSQL. + // "ORACLE" - The source engine is Oracle + Engine string `json:"engine,omitempty"` - // VmSelectionConfig: The VM selection configuration - VmSelectionConfig *VmSelectionConfig `json:"vmSelectionConfig,omitempty"` + // Version: Required. Engine named version, for e.g. 12.c.1 + Version string `json:"version,omitempty"` - // ForceSendFields is a list of field names (e.g. "Vm") to + // ForceSendFields is a list of field names (e.g. "Engine") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -932,7 +1213,7 @@ type GenerateSshScriptRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Vm") to include in API + // NullFields is a list of field names (e.g. "Engine") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -941,42 +1222,132 @@ type GenerateSshScriptRequest struct { NullFields []string `json:"-"` } -func (s *GenerateSshScriptRequest) MarshalJSON() ([]byte, error) { - type NoMethod GenerateSshScriptRequest +func (s *DatabaseEngineInfo) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseEngineInfo raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudClouddmsV1OperationMetadata: Represents the metadata of -// the long-running operation. -type GoogleCloudClouddmsV1OperationMetadata struct { - // ApiVersion: Output only. API version used to start the operation. - ApiVersion string `json:"apiVersion,omitempty"` +// DatabaseEntity: The base entity type for all the database related +// entities The message contains the entity name, the name of its +// parent, its type and the specific details per its type +type DatabaseEntity struct { + // DatabaseFunction: Function + DatabaseFunction *FunctionEntity `json:"databaseFunction,omitempty"` - // CreateTime: Output only. The time the operation was created. - CreateTime string `json:"createTime,omitempty"` + // DatabasePackage: Package + DatabasePackage *PackageEntity `json:"databasePackage,omitempty"` - // EndTime: Output only. The time the operation finished running. - EndTime string `json:"endTime,omitempty"` + // EntityType: The type of the database entity (table, view, index, + // ...). + // + // Possible values: + // "DATABASE_ENTITY_TYPE_UNSPECIFIED" - Unspecified database entity + // type + // "DATABASE_ENTITY_TYPE_SCHEMA" - Schema + // "DATABASE_ENTITY_TYPE_TABLE" - Table + // "DATABASE_ENTITY_TYPE_COLUMN" - Column + // "DATABASE_ENTITY_TYPE_CONSTRAINT" - Constraint + // "DATABASE_ENTITY_TYPE_INDEX" - Index + // "DATABASE_ENTITY_TYPE_TRIGGER" - Trigger + // "DATABASE_ENTITY_TYPE_VIEW" - View + // "DATABASE_ENTITY_TYPE_SEQUENCE" - Sequence + // "DATABASE_ENTITY_TYPE_STORED_PROCEDURE" - Stored Procedure + // "DATABASE_ENTITY_TYPE_FUNCTION" - Function + // "DATABASE_ENTITY_TYPE_SYNONYM" - Synonym + // "DATABASE_ENTITY_TYPE_DATABASE_PACKAGE" - Package + // "DATABASE_ENTITY_TYPE_UDT" - UDT + EntityType string `json:"entityType,omitempty"` + + // Mappings: Details about entity mappings. For source tree entities, + // this holds the draft entities which were generated by the mapping + // rules. For draft tree entities, this holds the source entities which + // were converted to form the draft entity. Destination entities will + // have no mapping details. + Mappings []*EntityMapping `json:"mappings,omitempty"` + + // ParentEntity: The full name of the parent entity (e.g. schema name). + ParentEntity string `json:"parentEntity,omitempty"` + + // Schema: Schema. + Schema *SchemaEntity `json:"schema,omitempty"` + + // Sequence: Sequence + Sequence *SequenceEntity `json:"sequence,omitempty"` + + // ShortName: The short name (e.g. table name) of the entity. + ShortName string `json:"shortName,omitempty"` + + // StoredProcedure: Stored Procedure + StoredProcedure *StoredProcedureEntity `json:"storedProcedure,omitempty"` + + // Synonym: Synonym + Synonym *SynonymEntity `json:"synonym,omitempty"` + + // Table: Table. + Table *TableEntity `json:"table,omitempty"` + + // Tree: The type of tree the entity belongs to. + // + // Possible values: + // "TREE_TYPE_UNSPECIFIED" - Tree Type Unspecified. + // "SOURCE" - Tree of entities loaded from a source database. + // "DRAFT" - Tree of entities converted from the source tree using the + // mapping rules. + // "DESTINATION" - Tree of entities observed on the destination + // database. + Tree string `json:"tree,omitempty"` - // RequestedCancellation: Output only. Identifies whether the user has - // requested cancellation of the operation. Operations that have - // successfully been cancelled have Operation.error value with a - // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. - RequestedCancellation bool `json:"requestedCancellation,omitempty"` + // View: View + View *ViewEntity `json:"view,omitempty"` - // StatusMessage: Output only. Human-readable status of the operation, - // if any. - StatusMessage string `json:"statusMessage,omitempty"` + // ForceSendFields is a list of field names (e.g. "DatabaseFunction") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` - // Target: Output only. Server-defined resource path for the target of - // the operation. - Target string `json:"target,omitempty"` + // NullFields is a list of field names (e.g. "DatabaseFunction") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} - // Verb: Output only. Name of the verb executed by the operation. - Verb string `json:"verb,omitempty"` +func (s *DatabaseEntity) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseEntity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} - // ForceSendFields is a list of field names (e.g. "ApiVersion") to +// DatabaseType: A message defining the database engine and provider. +type DatabaseType struct { + // Engine: The database engine. + // + // Possible values: + // "DATABASE_ENGINE_UNSPECIFIED" - The source database engine of the + // migration job is unknown. + // "MYSQL" - The source engine is MySQL. + // "POSTGRESQL" - The source engine is PostgreSQL. + // "ORACLE" - The source engine is Oracle + Engine string `json:"engine,omitempty"` + + // Provider: The database provider. + // + // Possible values: + // "DATABASE_PROVIDER_UNSPECIFIED" - The database provider is unknown. + // "CLOUDSQL" - CloudSQL runs the database. + // "RDS" - RDS runs the database. + // "AURORA" - Amazon Aurora. + // "ALLOYDB" - AlloyDB. + Provider string `json:"provider,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Engine") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -984,7 +1355,40 @@ type GoogleCloudClouddmsV1OperationMetadata struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ApiVersion") to include in + // NullFields is a list of field names (e.g. "Engine") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DatabaseType) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseType + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DescribeConversionWorkspaceRevisionsResponse: Response message for +// 'DescribeConversionWorkspaceRevisions' request. +type DescribeConversionWorkspaceRevisionsResponse struct { + // Revisions: The list of conversion workspace revisions. + Revisions []*ConversionWorkspace `json:"revisions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Revisions") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Revisions") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -993,39 +1397,37 @@ type GoogleCloudClouddmsV1OperationMetadata struct { NullFields []string `json:"-"` } -func (s *GoogleCloudClouddmsV1OperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudClouddmsV1OperationMetadata +func (s *DescribeConversionWorkspaceRevisionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod DescribeConversionWorkspaceRevisionsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ListConnectionProfilesResponse: Response message for -// 'ListConnectionProfiles' request. -type ListConnectionProfilesResponse struct { - // ConnectionProfiles: The response list of connection profiles. - ConnectionProfiles []*ConnectionProfile `json:"connectionProfiles,omitempty"` +// DescribeDatabaseEntitiesResponse: Response message for +// 'DescribeDatabaseEntities' request. +type DescribeDatabaseEntitiesResponse struct { + // DatabaseEntities: The list of database entities for the conversion + // workspace. + DatabaseEntities []*DatabaseEntity `json:"databaseEntities,omitempty"` // NextPageToken: A token, which can be sent as `page_token` to retrieve // the next page. If this field is omitted, there are no subsequent // pages. NextPageToken string `json:"nextPageToken,omitempty"` - // Unreachable: Locations that could not be reached. - Unreachable []string `json:"unreachable,omitempty"` - // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ConnectionProfiles") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "DatabaseEntities") to + // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ConnectionProfiles") to + // NullFields is a list of field names (e.g. "DatabaseEntities") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -1035,27 +1437,21 @@ type ListConnectionProfilesResponse struct { NullFields []string `json:"-"` } -func (s *ListConnectionProfilesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListConnectionProfilesResponse +func (s *DescribeDatabaseEntitiesResponse) MarshalJSON() ([]byte, error) { + type NoMethod DescribeDatabaseEntitiesResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ListLocationsResponse: The response message for -// Locations.ListLocations. -type ListLocationsResponse struct { - // Locations: A list of locations that matches the specified filter in - // the request. - Locations []*Location `json:"locations,omitempty"` - - // NextPageToken: The standard List next-page token. - NextPageToken string `json:"nextPageToken,omitempty"` +// DumpFlag: Dump flag definition. +type DumpFlag struct { + // Name: The name of the flag + Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // Value: The value of the flag. + Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "Locations") to + // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1063,8 +1459,8 @@ type ListLocationsResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Locations") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -1072,31 +1468,18 @@ type ListLocationsResponse struct { NullFields []string `json:"-"` } -func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListLocationsResponse +func (s *DumpFlag) MarshalJSON() ([]byte, error) { + type NoMethod DumpFlag raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ListMigrationJobsResponse: Response message for 'ListMigrationJobs' -// request. -type ListMigrationJobsResponse struct { - // MigrationJobs: The list of migration jobs objects. - MigrationJobs []*MigrationJob `json:"migrationJobs,omitempty"` - - // NextPageToken: A token, which can be sent as `page_token` to retrieve - // the next page. If this field is omitted, there are no subsequent - // pages. - NextPageToken string `json:"nextPageToken,omitempty"` - - // Unreachable: Locations that could not be reached. - Unreachable []string `json:"unreachable,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` +// DumpFlags: Dump flags definition. +type DumpFlags struct { + // DumpFlags: The flags for the initial dump. + DumpFlags []*DumpFlag `json:"dumpFlags,omitempty"` - // ForceSendFields is a list of field names (e.g. "MigrationJobs") to + // ForceSendFields is a list of field names (e.g. "DumpFlags") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1104,36 +1487,52 @@ type ListMigrationJobsResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MigrationJobs") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "DumpFlags") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *ListMigrationJobsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListMigrationJobsResponse +func (s *DumpFlags) MarshalJSON() ([]byte, error) { + type NoMethod DumpFlags raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ListOperationsResponse: The response message for -// Operations.ListOperations. -type ListOperationsResponse struct { - // NextPageToken: The standard List next-page token. - NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. - Operations []*Operation `json:"operations,omitempty"` - +// Empty: A generic empty message that you can re-use to avoid defining +// duplicated empty messages in your APIs. A typical example is to use +// it as the request or the response type of an API method. For +// instance: service Foo { rpc Bar(google.protobuf.Empty) returns +// (google.protobuf.Empty); } +type Empty struct { // 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 +// EntityMapping: Details of the mappings of a database entity. +type EntityMapping struct { + // DraftEntity: Target entity full name. The draft entity can also + // include a column, index or constraint using the same naming notation + // schema.table.column + DraftEntity string `json:"draftEntity,omitempty"` + + // MappingLog: Entity mapping log entries. Multiple rules can be + // effective and contribute changes to a converted entity such as, a + // rule can handle the entity name, another rule can handle an entity + // type. In addition, rules which did not change the entity are also + // logged along the with the reason preventing them to do so. + MappingLog []*EntityMappingLogEntry `json:"mappingLog,omitempty"` + + // SourceEntity: Source entity full name. The source entity can also be + // a column, index or constraint using the same naming notation + // schema.table.column + SourceEntity string `json:"sourceEntity,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DraftEntity") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1141,7 +1540,7 @@ type ListOperationsResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NextPageToken") to include + // NullFields is a list of field names (e.g. "DraftEntity") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as @@ -1150,40 +1549,25 @@ type ListOperationsResponse struct { NullFields []string `json:"-"` } -func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListOperationsResponse +func (s *EntityMapping) MarshalJSON() ([]byte, error) { + type NoMethod EntityMapping raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Location: A resource that represents Google Cloud Platform location. -type Location struct { - // DisplayName: The friendly name for this location, typically a nearby - // city name. For example, "Tokyo". - DisplayName string `json:"displayName,omitempty"` - - // Labels: Cross-service attributes for the location. For example - // {"cloud.googleapis.com/region": "us-east1"} - Labels map[string]string `json:"labels,omitempty"` - - // LocationId: The canonical id for this location. For example: - // "us-east1". - LocationId string `json:"locationId,omitempty"` - - // Metadata: Service-specific metadata. For example the available - // capacity at the given location. - Metadata googleapi.RawMessage `json:"metadata,omitempty"` +// EntityMappingLogEntry: A single record of a rule which was used for a +// mapping. +type EntityMappingLogEntry struct { + // MappingComment: Comment. + MappingComment string `json:"mappingComment,omitempty"` - // Name: Resource name for the location, which may vary between - // implementations. For example: - // "projects/example-project/locations/us-east1" - Name string `json:"name,omitempty"` + // RuleId: Which rule caused it. + RuleId string `json:"ruleId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // RuleRevisionId: Rule revision id + RuleRevisionId string `json:"ruleRevisionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to + // ForceSendFields is a list of field names (e.g. "MappingComment") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1191,28 +1575,60 @@ type Location struct { // This may be used to include empty fields in Patch requests. 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. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MappingComment") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } -func (s *Location) MarshalJSON() ([]byte, error) { - type NoMethod Location +func (s *EntityMappingLogEntry) MarshalJSON() ([]byte, error) { + type NoMethod EntityMappingLogEntry raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// MachineConfig: MachineConfig describes the configuration of a -// machine. -type MachineConfig struct { - // CpuCount: The number of CPU's in the VM instance. - CpuCount int64 `json:"cpuCount,omitempty"` +// Expr: Represents a textual expression in the Common Expression +// Language (CEL) syntax. CEL is a C-like expression language. The +// syntax and semantics of CEL are documented at +// https://github.com/google/cel-spec. Example (Comparison): title: +// "Summary size limit" description: "Determines if a summary is less +// than 100 chars" expression: "document.summary.size() < 100" Example +// (Equality): title: "Requestor is owner" description: "Determines if +// requestor is the document owner" expression: "document.owner == +// request.auth.claims.email" Example (Logic): title: "Public documents" +// description: "Determine whether the document should be publicly +// visible" expression: "document.type != 'private' && document.type != +// 'internal'" Example (Data Manipulation): title: "Notification string" +// description: "Create a notification string with a timestamp." +// expression: "'New message received at ' + +// string(document.create_time)" The exact variables and functions that +// may be referenced within an expression are determined by the service +// that evaluates it. See the service documentation for additional +// information. +type Expr struct { + // Description: Optional. Description of the expression. This is a + // longer text which describes the expression, e.g. when hovered over it + // in a UI. + Description string `json:"description,omitempty"` - // ForceSendFields is a list of field names (e.g. "CpuCount") to + // Expression: Textual representation of an expression in Common + // Expression Language syntax. + Expression string `json:"expression,omitempty"` + + // Location: Optional. String indicating the location of the expression + // for error reporting, e.g. a file name and a position in the file. + Location string `json:"location,omitempty"` + + // Title: Optional. Title for the expression, i.e. a short string + // describing its purpose. This can be used e.g. in UIs which allow to + // enter the expression. + Title string `json:"title,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1220,144 +1636,109 @@ type MachineConfig struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CpuCount") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // 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. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *MachineConfig) MarshalJSON() ([]byte, error) { - type NoMethod MachineConfig +func (s *Expr) MarshalJSON() ([]byte, error) { + type NoMethod Expr raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// MigrationJob: Represents a Database Migration Service migration job -// object. -type MigrationJob struct { - // CreateTime: Output only. The timestamp when the migration job - // resource was created. A timestamp in RFC3339 UTC "Zulu" format, - // accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z". - CreateTime string `json:"createTime,omitempty"` - - // Destination: Required. The resource name (URI) of the destination - // connection profile. - Destination string `json:"destination,omitempty"` - - // DestinationDatabase: The database engine type and provider of the - // destination. - DestinationDatabase *DatabaseType `json:"destinationDatabase,omitempty"` - - // DisplayName: The migration job display name. - DisplayName string `json:"displayName,omitempty"` - - // DumpFlags: The initial dump flags. This field and the "dump_path" - // field are mutually exclusive. - DumpFlags *DumpFlags `json:"dumpFlags,omitempty"` +// ForwardSshTunnelConnectivity: Forward SSH Tunnel connectivity. +type ForwardSshTunnelConnectivity struct { + // Hostname: Required. Hostname for the SSH tunnel. + Hostname string `json:"hostname,omitempty"` - // DumpPath: The path to the dump file in Google Cloud Storage, in the - // format: (gs://[BUCKET_NAME]/[OBJECT_NAME]). This field and the - // "dump_flags" field are mutually exclusive. - DumpPath string `json:"dumpPath,omitempty"` + // Password: Input only. SSH password. + Password string `json:"password,omitempty"` - // Duration: Output only. The duration of the migration job (in - // seconds). A duration in seconds with up to nine fractional digits, - // terminated by 's'. Example: "3.5s". - Duration string `json:"duration,omitempty"` + // Port: Port for the SSH tunnel, default value is 22. + Port int64 `json:"port,omitempty"` - // EndTime: Output only. If the migration job is completed, the time - // when it was completed. - EndTime string `json:"endTime,omitempty"` + // PrivateKey: Input only. SSH private key. + PrivateKey string `json:"privateKey,omitempty"` - // Error: Output only. The error details in case of state FAILED. - Error *Status `json:"error,omitempty"` + // Username: Required. Username for the SSH tunnel. + Username string `json:"username,omitempty"` - // Labels: The resource labels for migration job to use to annotate any - // related underlying resources such as Compute Engine VMs. An object - // containing a list of "key": "value" pairs. Example: `{ "name": - // "wrench", "mass": "1.3kg", "count": "3" }`. - Labels map[string]string `json:"labels,omitempty"` + // ForceSendFields is a list of field names (e.g. "Hostname") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` - // Name: The name (URI) of this migration job resource, in the form of: - // projects/{project}/locations/{location}/migrationJobs/{migrationJob}. - Name string `json:"name,omitempty"` + // NullFields is a list of field names (e.g. "Hostname") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} - // Phase: Output only. The current migration job phase. - // - // Possible values: - // "PHASE_UNSPECIFIED" - The phase of the migration job is unknown. - // "FULL_DUMP" - The migration job is in the full dump phase. - // "CDC" - The migration job is CDC phase. - // "PROMOTE_IN_PROGRESS" - The migration job is running the promote - // phase. - // "WAITING_FOR_SOURCE_WRITES_TO_STOP" - Only RDS flow - waiting for - // source writes to stop - // "PREPARING_THE_DUMP" - Only RDS flow - the sources writes stopped, - // waiting for dump to begin - Phase string `json:"phase,omitempty"` +func (s *ForwardSshTunnelConnectivity) MarshalJSON() ([]byte, error) { + type NoMethod ForwardSshTunnelConnectivity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} - // ReverseSshConnectivity: The details needed to communicate to the - // source over Reverse SSH tunnel connectivity. - ReverseSshConnectivity *ReverseSshConnectivity `json:"reverseSshConnectivity,omitempty"` +// FunctionEntity: Function's parent is a schema. +type FunctionEntity struct { + // CustomFeatures: Custom engine specific features + CustomFeatures googleapi.RawMessage `json:"customFeatures,omitempty"` - // Source: Required. The resource name (URI) of the source connection - // profile. - Source string `json:"source,omitempty"` + // SqlCode: The SQL code which creates the function + SqlCode string `json:"sqlCode,omitempty"` - // SourceDatabase: The database engine type and provider of the source. - SourceDatabase *DatabaseType `json:"sourceDatabase,omitempty"` + // ForceSendFields is a list of field names (e.g. "CustomFeatures") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` - // State: The current migration job state. - // - // Possible values: - // "STATE_UNSPECIFIED" - The state of the migration job is unknown. - // "MAINTENANCE" - The migration job is down for maintenance. - // "DRAFT" - The migration job is in draft mode and no resources are - // created. - // "CREATING" - The migration job is being created. - // "NOT_STARTED" - The migration job is created and not started. - // "RUNNING" - The migration job is running. - // "FAILED" - The migration job failed. - // "COMPLETED" - The migration job has been completed. - // "DELETING" - The migration job is being deleted. - // "STOPPING" - The migration job is being stopped. - // "STOPPED" - The migration job is currently stopped. - // "DELETED" - The migration job has been deleted. - // "UPDATING" - The migration job is being updated. - // "STARTING" - The migration job is starting. - // "RESTARTING" - The migration job is restarting. - // "RESUMING" - The migration job is resuming. - State string `json:"state,omitempty"` + // NullFields is a list of field names (e.g. "CustomFeatures") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} - // StaticIpConnectivity: static ip connectivity data (default, no - // additional details needed). - StaticIpConnectivity *StaticIpConnectivity `json:"staticIpConnectivity,omitempty"` +func (s *FunctionEntity) MarshalJSON() ([]byte, error) { + type NoMethod FunctionEntity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} - // Type: Required. The migration job type. - // - // Possible values: - // "TYPE_UNSPECIFIED" - The type of the migration job is unknown. - // "ONE_TIME" - The migration job is a one time migration. - // "CONTINUOUS" - The migration job is a continuous migration. - Type string `json:"type,omitempty"` +// GenerateSshScriptRequest: Request message for 'GenerateSshScript' +// request. +type GenerateSshScriptRequest struct { + // Vm: Required. Bastion VM Instance name to use or to create. + Vm string `json:"vm,omitempty"` - // UpdateTime: Output only. The timestamp when the migration job - // resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, - // accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z". - UpdateTime string `json:"updateTime,omitempty"` + // VmCreationConfig: The VM creation configuration + VmCreationConfig *VmCreationConfig `json:"vmCreationConfig,omitempty"` - // VpcPeeringConnectivity: The details of the VPC network that the - // source database is located in. - VpcPeeringConnectivity *VpcPeeringConnectivity `json:"vpcPeeringConnectivity,omitempty"` + // VmPort: The port that will be open on the bastion host + VmPort int64 `json:"vmPort,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // VmSelectionConfig: The VM selection configuration + VmSelectionConfig *VmSelectionConfig `json:"vmSelectionConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to + // ForceSendFields is a list of field names (e.g. "Vm") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1365,8 +1746,8 @@ type MigrationJob struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Vm") to include in API + // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -1374,69 +1755,42 @@ type MigrationJob struct { NullFields []string `json:"-"` } -func (s *MigrationJob) MarshalJSON() ([]byte, error) { - type NoMethod MigrationJob +func (s *GenerateSshScriptRequest) MarshalJSON() ([]byte, error) { + type NoMethod GenerateSshScriptRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// MigrationJobVerificationError: Error message of a verification -// Migration job. -type MigrationJobVerificationError struct { - // ErrorCode: Output only. An instance of ErrorCode specifying the error - // that occurred. - // - // Possible values: - // "ERROR_CODE_UNSPECIFIED" - An unknown error occurred - // "CONNECTION_FAILURE" - We failed to connect to one of the - // connection profile. - // "AUTHENTICATION_FAILURE" - We failed to authenticate to one of the - // connection profile. - // "INVALID_CONNECTION_PROFILE_CONFIG" - One of the involved - // connection profiles has an invalid configuration. - // "VERSION_INCOMPATIBILITY" - The versions of the source and the - // destination are incompatible. - // "CONNECTION_PROFILE_TYPES_INCOMPATIBILITY" - The types of the - // source and the destination are incompatible. - // "NO_PGLOGICAL_INSTALLED" - No pglogical extension installed on - // databases, applicable for postgres. - // "PGLOGICAL_NODE_ALREADY_EXISTS" - pglogical node already exists on - // databases, applicable for postgres. - // "INVALID_WAL_LEVEL" - The value of parameter wal_level is not set - // to logical. - // "INVALID_SHARED_PRELOAD_LIBRARY" - The value of parameter - // shared_preload_libraries does not include pglogical. - // "INSUFFICIENT_MAX_REPLICATION_SLOTS" - The value of parameter - // max_replication_slots is not sufficient. - // "INSUFFICIENT_MAX_WAL_SENDERS" - The value of parameter - // max_wal_senders is not sufficient. - // "INSUFFICIENT_MAX_WORKER_PROCESSES" - The value of parameter - // max_worker_processes is not sufficient. - // "UNSUPPORTED_EXTENSIONS" - Extensions installed are either not - // supported or having unsupported versions. - // "UNSUPPORTED_MIGRATION_TYPE" - Unsupported migration type. - // "INVALID_RDS_LOGICAL_REPLICATION" - Invalid RDS logical - // replication. - // "UNSUPPORTED_GTID_MODE" - The gtid_mode is not supported, - // applicable for MySQL. - // "UNSUPPORTED_TABLE_DEFINITION" - The table definition is not - // support due to missing primary key or replica identity. - // "UNSUPPORTED_DEFINER" - The definer is not supported. - // "CANT_RESTART_RUNNING_MIGRATION" - Migration is already running at - // the time of restart request. - // "TABLES_WITH_LIMITED_SUPPORT" - The source has tables with limited - // support. E.g. PostgreSQL tables without primary keys. - ErrorCode string `json:"errorCode,omitempty"` +// GoogleCloudClouddmsV1OperationMetadata: Represents the metadata of +// the long-running operation. +type GoogleCloudClouddmsV1OperationMetadata struct { + // ApiVersion: Output only. API version used to start the operation. + ApiVersion string `json:"apiVersion,omitempty"` - // ErrorDetailMessage: Output only. A specific detailed error message, - // if supplied by the engine. - ErrorDetailMessage string `json:"errorDetailMessage,omitempty"` + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` - // ErrorMessage: Output only. A formatted message with further details - // about the error and a CTA. - ErrorMessage string `json:"errorMessage,omitempty"` + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "ErrorCode") to + // RequestedCancellation: Output only. Identifies whether the user has + // requested cancellation of the operation. Operations that have + // successfully been cancelled have Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + RequestedCancellation bool `json:"requestedCancellation,omitempty"` + + // StatusMessage: Output only. Human-readable status of the operation, + // if any. + StatusMessage string `json:"statusMessage,omitempty"` + + // Target: Output only. Server-defined resource path for the target of + // the operation. + Target string `json:"target,omitempty"` + + // Verb: Output only. Name of the verb executed by the operation. + Verb string `json:"verb,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApiVersion") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1444,7 +1798,7 @@ type MigrationJobVerificationError struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ErrorCode") to include in + // NullFields is a list of field names (e.g. "ApiVersion") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -1453,45 +1807,32 @@ type MigrationJobVerificationError struct { NullFields []string `json:"-"` } -func (s *MigrationJobVerificationError) MarshalJSON() ([]byte, error) { - type NoMethod MigrationJobVerificationError +func (s *GoogleCloudClouddmsV1OperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudClouddmsV1OperationMetadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// MySqlConnectionProfile: Specifies connection parameters required -// specifically for MySQL databases. -type MySqlConnectionProfile struct { - // CloudSqlId: If the source is a Cloud SQL database, use this field to - // provide the Cloud SQL instance ID of the source. - CloudSqlId string `json:"cloudSqlId,omitempty"` - - // Host: Required. The IP or hostname of the source MySQL database. - Host string `json:"host,omitempty"` - - // Password: Required. Input only. The password for the user that - // Database Migration Service will be using to connect to the database. - // This field is not returned on request, and the value is encrypted - // when stored in Database Migration Service. - Password string `json:"password,omitempty"` - - // PasswordSet: Output only. Indicates If this connection profile - // password is stored. - PasswordSet bool `json:"passwordSet,omitempty"` - - // Port: Required. The network port of the source MySQL database. - Port int64 `json:"port,omitempty"` +// ImportMappingRulesRequest: Request message for 'ImportMappingRules' +// request. +type ImportMappingRulesRequest struct { + // AutoCommit: Should the conversion workspace be committed + // automatically after the import operation. + AutoCommit bool `json:"autoCommit,omitempty"` - // Ssl: SSL configuration for the destination to connect to the source - // database. - Ssl *SslConfig `json:"ssl,omitempty"` + // RulesFiles: One or more rules files + RulesFiles []*RulesFile `json:"rulesFiles,omitempty"` - // Username: Required. The username that Database Migration Service will - // use to connect to the database. The value is encrypted when stored in - // Database Migration Service. - Username string `json:"username,omitempty"` + // RulesFormat: The format of the rules content file. + // + // Possible values: + // "IMPORT_RULES_FILE_FORMAT_UNSPECIFIED" - Unspecified Rules Format + // "IMPORT_RULES_FILE_FORMAT_HARBOUR_BRIDGE_SESSION_FILE" - Harbour + // Bridge Session file + // "IMPORT_RULES_FILE_FORMAT_ORATOPG_CONFIG_FILE" - ORA2PG config file + RulesFormat string `json:"rulesFormat,omitempty"` - // ForceSendFields is a list of field names (e.g. "CloudSqlId") to + // ForceSendFields is a list of field names (e.g. "AutoCommit") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1499,7 +1840,7 @@ type MySqlConnectionProfile struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CloudSqlId") to include in + // NullFields is a list of field names (e.g. "AutoCommit") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -1508,52 +1849,28 @@ type MySqlConnectionProfile struct { NullFields []string `json:"-"` } -func (s *MySqlConnectionProfile) MarshalJSON() ([]byte, error) { - type NoMethod MySqlConnectionProfile +func (s *ImportMappingRulesRequest) MarshalJSON() ([]byte, error) { + type NoMethod ImportMappingRulesRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. -type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. - Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. - Error *Status `json:"error,omitempty"` - - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. - Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. - Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. - Response googleapi.RawMessage `json:"response,omitempty"` +// ImportRulesJobDetails: Details regarding an Import Rules background +// job +type ImportRulesJobDetails struct { + // FileFormat: The requested file format + // + // Possible values: + // "IMPORT_RULES_FILE_FORMAT_UNSPECIFIED" - Unspecified Rules Format + // "IMPORT_RULES_FILE_FORMAT_HARBOUR_BRIDGE_SESSION_FILE" - Harbour + // Bridge Session file + // "IMPORT_RULES_FILE_FORMAT_ORATOPG_CONFIG_FILE" - ORA2PG config file + FileFormat string `json:"fileFormat,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // Files: File names used for the import rules job + Files []string `json:"files,omitempty"` - // ForceSendFields is a list of field names (e.g. "Done") to + // ForceSendFields is a list of field names (e.g. "FileFormat") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1561,8 +1878,8 @@ type Operation struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "FileFormat") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -1570,100 +1887,32 @@ type Operation struct { NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { - type NoMethod Operation +func (s *ImportRulesJobDetails) MarshalJSON() ([]byte, error) { + type NoMethod ImportRulesJobDetails raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Policy: An Identity and Access Management (IAM) policy, which -// specifies access controls for Google Cloud resources. A `Policy` is a -// collection of `bindings`. A `binding` binds one or more `members`, or -// principals, to a single `role`. Principals can be user accounts, -// service accounts, Google groups, and domains (such as G Suite). A -// `role` is a named list of permissions; each `role` can be an IAM -// predefined role or a user-created custom role. For some types of -// Google Cloud resources, a `binding` can also specify a `condition`, -// which is a logical expression that allows access to a resource only -// if the expression evaluates to `true`. A condition can add -// constraints based on attributes of the request, the resource, or -// both. To learn which resources support conditions in their IAM -// policies, see the IAM documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -// **JSON example:** { "bindings": [ { "role": -// "roles/resourcemanager.organizationAdmin", "members": [ -// "user:mike@example.com", "group:admins@example.com", -// "domain:google.com", -// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { -// "role": "roles/resourcemanager.organizationViewer", "members": [ -// "user:eve@example.com" ], "condition": { "title": "expirable access", -// "description": "Does not grant access after Sep 2020", "expression": -// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], -// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - -// members: - user:mike@example.com - group:admins@example.com - -// domain:google.com - -// serviceAccount:my-project-id@appspot.gserviceaccount.com role: -// roles/resourcemanager.organizationAdmin - members: - -// user:eve@example.com role: roles/resourcemanager.organizationViewer -// condition: title: expirable access description: Does not grant access -// after Sep 2020 expression: request.time < -// timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 -// For a description of IAM and its features, see the IAM documentation -// (https://cloud.google.com/iam/docs/). -type Policy struct { - // AuditConfigs: Specifies cloud audit logging configuration for this - // policy. - AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"` +// IndexEntity: Index is not used as an independent entity, it is +// retrieved as part of a Table entity. +type IndexEntity struct { + // CustomFeatures: Custom engine specific features + CustomFeatures googleapi.RawMessage `json:"customFeatures,omitempty"` - // Bindings: Associates a list of `members`, or principals, with a - // `role`. Optionally, may specify a `condition` that determines how and - // when the `bindings` are applied. Each of the `bindings` must contain - // at least one principal. The `bindings` in a `Policy` can refer to up - // to 1,500 principals; up to 250 of these principals can be Google - // groups. Each occurrence of a principal counts towards these limits. - // For example, if the `bindings` grant 50 different roles to - // `user:alice@example.com`, and not to any other principal, then you - // can add another 1,450 principals to the `bindings` in the `Policy`. - Bindings []*Binding `json:"bindings,omitempty"` + // Name: The name of the index + Name string `json:"name,omitempty"` - // Etag: `etag` is used for optimistic concurrency control as a way to - // help prevent simultaneous updates of a policy from overwriting each - // other. It is strongly suggested that systems make use of the `etag` - // in the read-modify-write cycle to perform policy updates in order to - // avoid race conditions: An `etag` is returned in the response to - // `getIamPolicy`, and systems are expected to put that etag in the - // request to `setIamPolicy` to ensure that their change will be applied - // to the same version of the policy. **Important:** If you use IAM - // Conditions, you must include the `etag` field whenever you call - // `setIamPolicy`. If you omit this field, then IAM allows you to - // overwrite a version `3` policy with a version `1` policy, and all of - // the conditions in the version `3` policy are lost. - Etag string `json:"etag,omitempty"` + // TableColumns: Table columns used as part of the Index for e.g. B-TREE + // index should list the columns which constitutes the index. + TableColumns []string `json:"tableColumns,omitempty"` - // Version: Specifies the format of the policy. Valid values are `0`, - // `1`, and `3`. Requests that specify an invalid value are rejected. - // Any operation that affects conditional role bindings must specify - // version `3`. This requirement applies to the following operations: * - // Getting a policy that includes a conditional role binding * Adding a - // conditional role binding to a policy * Changing a conditional role - // binding in a policy * Removing any role binding, with or without a - // condition, from a policy that includes conditions **Important:** If - // you use IAM Conditions, you must include the `etag` field whenever - // you call `setIamPolicy`. If you omit this field, then IAM allows you - // to overwrite a version `3` policy with a version `1` policy, and all - // of the conditions in the version `3` policy are lost. If a policy - // does not include any conditions, operations on that policy may - // specify any valid version or leave the field unset. To learn which - // resources support conditions in their IAM policies, see the IAM - // documentation - // (https://cloud.google.com/iam/help/conditions/resource-policies). - Version int64 `json:"version,omitempty"` + // Type: Type of index - e.g. B-TREE + Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // Unique: boolean value indicating whether the index is unique + Unique bool `json:"unique,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuditConfigs") to + // ForceSendFields is a list of field names (e.g. "CustomFeatures") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1671,173 +1920,122 @@ type Policy struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AuditConfigs") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CustomFeatures") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } -func (s *Policy) MarshalJSON() ([]byte, error) { - type NoMethod Policy +func (s *IndexEntity) MarshalJSON() ([]byte, error) { + type NoMethod IndexEntity raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// PostgreSqlConnectionProfile: Specifies connection parameters required -// specifically for PostgreSQL databases. -type PostgreSqlConnectionProfile struct { - // CloudSqlId: If the source is a Cloud SQL database, use this field to - // provide the Cloud SQL instance ID of the source. - CloudSqlId string `json:"cloudSqlId,omitempty"` - - // Host: Required. The IP or hostname of the source PostgreSQL database. - Host string `json:"host,omitempty"` +// ListConnectionProfilesResponse: Response message for +// 'ListConnectionProfiles' request. +type ListConnectionProfilesResponse struct { + // ConnectionProfiles: The response list of connection profiles. + ConnectionProfiles []*ConnectionProfile `json:"connectionProfiles,omitempty"` - // NetworkArchitecture: Output only. If the source is a Cloud SQL - // database, this field indicates the network architecture it's - // associated with. - // - // Possible values: - // "NETWORK_ARCHITECTURE_UNSPECIFIED" - // "NETWORK_ARCHITECTURE_OLD_CSQL_PRODUCER" - Instance is in Cloud - // SQL's old producer network architecture. - // "NETWORK_ARCHITECTURE_NEW_CSQL_PRODUCER" - Instance is in Cloud - // SQL's new producer network architecture. - NetworkArchitecture string `json:"networkArchitecture,omitempty"` - - // Password: Required. Input only. The password for the user that - // Database Migration Service will be using to connect to the database. - // This field is not returned on request, and the value is encrypted - // when stored in Database Migration Service. - Password string `json:"password,omitempty"` - - // PasswordSet: Output only. Indicates If this connection profile - // password is stored. - PasswordSet bool `json:"passwordSet,omitempty"` - - // Port: Required. The network port of the source PostgreSQL database. - Port int64 `json:"port,omitempty"` + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` - // Ssl: SSL configuration for the destination to connect to the source - // database. - Ssl *SslConfig `json:"ssl,omitempty"` + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` - // Username: Required. The username that Database Migration Service will - // use to connect to the database. The value is encrypted when stored in - // Database Migration Service. - Username string `json:"username,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CloudSqlId") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "ConnectionProfiles") + // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CloudSqlId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ConnectionProfiles") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } -func (s *PostgreSqlConnectionProfile) MarshalJSON() ([]byte, error) { - type NoMethod PostgreSqlConnectionProfile +func (s *ListConnectionProfilesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListConnectionProfilesResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// PrimaryInstanceSettings: Settings for the cluster's primary instance -type PrimaryInstanceSettings struct { - // DatabaseFlags: Database flags to pass to AlloyDB when DMS is creating - // the AlloyDB cluster and instances. See the AlloyDB documentation for - // how these can be used. - DatabaseFlags map[string]string `json:"databaseFlags,omitempty"` - - // Id: Required. The ID of the AlloyDB primary instance. The ID must - // satisfy the regex expression "[a-z0-9-]+". - Id string `json:"id,omitempty"` +// ListConversionWorkspacesResponse: Response message for +// 'ListConversionWorkspaces' request. +type ListConversionWorkspacesResponse struct { + // ConversionWorkspaces: The list of conversion workspace objects. + ConversionWorkspaces []*ConversionWorkspace `json:"conversionWorkspaces,omitempty"` - // Labels: Labels for the AlloyDB primary instance created by DMS. An - // object containing a list of 'key', 'value' pairs. - Labels map[string]string `json:"labels,omitempty"` + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` - // MachineConfig: Configuration for the machines that host the - // underlying database engine. - MachineConfig *MachineConfig `json:"machineConfig,omitempty"` + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` - // PrivateIp: Output only. The private IP address for the Instance. This - // is the connection endpoint for an end-user application. - PrivateIp string `json:"privateIp,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DatabaseFlags") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. + // "ConversionWorkspaces") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DatabaseFlags") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ConversionWorkspaces") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } -func (s *PrimaryInstanceSettings) MarshalJSON() ([]byte, error) { - type NoMethod PrimaryInstanceSettings +func (s *ListConversionWorkspacesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListConversionWorkspacesResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// PromoteMigrationJobRequest: Request message for 'PromoteMigrationJob' -// request. -type PromoteMigrationJobRequest struct { -} - -// RestartMigrationJobRequest: Request message for 'RestartMigrationJob' -// request. -type RestartMigrationJobRequest struct { -} - -// ResumeMigrationJobRequest: Request message for 'ResumeMigrationJob' -// request. -type ResumeMigrationJobRequest struct { -} - -// ReverseSshConnectivity: The details needed to configure a reverse SSH -// tunnel between the source and destination databases. These details -// will be used when calling the generateSshScript method (see -// https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs/generateSshScript) -// to produce the script that will help set up the reverse SSH tunnel, -// and to set up the VPC peering between the Cloud SQL private network -// and the VPC. -type ReverseSshConnectivity struct { - // Vm: The name of the virtual machine (Compute Engine) used as the - // bastion server for the SSH tunnel. - Vm string `json:"vm,omitempty"` - - // VmIp: Required. The IP of the virtual machine (Compute Engine) used - // as the bastion server for the SSH tunnel. - VmIp string `json:"vmIp,omitempty"` +// ListLocationsResponse: The response message for +// Locations.ListLocations. +type ListLocationsResponse struct { + // Locations: A list of locations that matches the specified filter in + // the request. + Locations []*Location `json:"locations,omitempty"` - // VmPort: Required. The forwarding port of the virtual machine (Compute - // Engine) used as the bastion server for the SSH tunnel. - VmPort int64 `json:"vmPort,omitempty"` + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` - // Vpc: The name of the VPC to peer with the Cloud SQL private network. - Vpc string `json:"vpc,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Vm") to + // ForceSendFields is a list of field names (e.g. "Locations") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1845,8 +2043,8 @@ type ReverseSshConnectivity struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Vm") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Locations") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -1854,27 +2052,31 @@ type ReverseSshConnectivity struct { NullFields []string `json:"-"` } -func (s *ReverseSshConnectivity) MarshalJSON() ([]byte, error) { - type NoMethod ReverseSshConnectivity +func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListLocationsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SetIamPolicyRequest: Request message for `SetIamPolicy` method. -type SetIamPolicyRequest struct { - // Policy: REQUIRED: The complete policy to be applied to the - // `resource`. The size of the policy is limited to a few 10s of KB. An - // empty policy is a valid policy but certain Google Cloud services - // (such as Projects) might reject them. - Policy *Policy `json:"policy,omitempty"` +// ListMigrationJobsResponse: Response message for 'ListMigrationJobs' +// request. +type ListMigrationJobsResponse struct { + // MigrationJobs: The list of migration jobs objects. + MigrationJobs []*MigrationJob `json:"migrationJobs,omitempty"` - // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the - // policy to modify. Only the fields in the mask will be modified. If no - // mask is provided, the following default mask is used: `paths: - // "bindings, etag" - UpdateMask string `json:"updateMask,omitempty"` + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` - // ForceSendFields is a list of field names (e.g. "Policy") to + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "MigrationJobs") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1882,38 +2084,36 @@ type SetIamPolicyRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Policy") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "MigrationJobs") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { - type NoMethod SetIamPolicyRequest +func (s *ListMigrationJobsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListMigrationJobsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SqlAclEntry: An entry for an Access Control list. -type SqlAclEntry struct { - // ExpireTime: The time when this access control entry expires in RFC - // 3339 (https://tools.ietf.org/html/rfc3339) format, for example: - // `2012-11-15T16:19:00.094Z`. - ExpireTime string `json:"expireTime,omitempty"` - - // Label: A label to identify this entry. - Label string `json:"label,omitempty"` +// ListOperationsResponse: The response message for +// Operations.ListOperations. +type ListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` - // Ttl: Input only. The time-to-leave of this access control entry. - Ttl string `json:"ttl,omitempty"` + // Operations: A list of operations that matches the specified filter in + // the request. + Operations []*Operation `json:"operations,omitempty"` - // Value: The allowlisted value for the access control list. - Value string `json:"value,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExpireTime") to + // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1921,77 +2121,40 @@ type SqlAclEntry struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ExpireTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *SqlAclEntry) MarshalJSON() ([]byte, error) { - type NoMethod SqlAclEntry +func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListOperationsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SqlIpConfig: IP Management configuration. -type SqlIpConfig struct { - // AuthorizedNetworks: The list of external networks that are allowed to - // connect to the instance using the IP. See - // https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known - // as 'slash' notation (e.g. `192.168.100.0/24`). - AuthorizedNetworks []*SqlAclEntry `json:"authorizedNetworks,omitempty"` +// ListPrivateConnectionsResponse: Response message for +// 'ListPrivateConnections' request. +type ListPrivateConnectionsResponse struct { + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` - // EnableIpv4: Whether the instance should be assigned an IPv4 address - // or not. - EnableIpv4 bool `json:"enableIpv4,omitempty"` - - // PrivateNetwork: The resource link for the VPC network from which the - // Cloud SQL instance is accessible for private IP. For example, - // `projects/myProject/global/networks/default`. This setting can be - // updated, but it cannot be removed after it is set. - PrivateNetwork string `json:"privateNetwork,omitempty"` - - // RequireSsl: Whether SSL connections over IP should be enforced or - // not. - RequireSsl bool `json:"requireSsl,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AuthorizedNetworks") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuthorizedNetworks") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *SqlIpConfig) MarshalJSON() ([]byte, error) { - type NoMethod SqlIpConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // PrivateConnections: List of private connections. + PrivateConnections []*PrivateConnection `json:"privateConnections,omitempty"` -// SshScript: Response message for 'GenerateSshScript' request. -type SshScript struct { - // Script: The ssh configuration script. - Script string `json:"script,omitempty"` + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Script") to + // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1999,51 +2162,49 @@ type SshScript struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Script") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *SshScript) MarshalJSON() ([]byte, error) { - type NoMethod SshScript +func (s *ListPrivateConnectionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListPrivateConnectionsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SslConfig: SSL configuration information. -type SslConfig struct { - // CaCertificate: Required. Input only. The x509 PEM-encoded certificate - // of the CA that signed the source database server's certificate. The - // replica will use this certificate to verify it's connecting to the - // right host. - CaCertificate string `json:"caCertificate,omitempty"` +// Location: A resource that represents Google Cloud Platform location. +type Location struct { + // DisplayName: The friendly name for this location, typically a nearby + // city name. For example, "Tokyo". + DisplayName string `json:"displayName,omitempty"` - // ClientCertificate: Input only. The x509 PEM-encoded certificate that - // will be used by the replica to authenticate against the source - // database server.If this field is used then the 'client_key' field is - // mandatory. - ClientCertificate string `json:"clientCertificate,omitempty"` + // Labels: Cross-service attributes for the location. For example + // {"cloud.googleapis.com/region": "us-east1"} + Labels map[string]string `json:"labels,omitempty"` - // ClientKey: Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded - // private key associated with the Client Certificate. If this field is - // used then the 'client_certificate' field is mandatory. - ClientKey string `json:"clientKey,omitempty"` + // LocationId: The canonical id for this location. For example: + // "us-east1". + LocationId string `json:"locationId,omitempty"` - // Type: Output only. The ssl config type according to 'client_key', - // 'client_certificate' and 'ca_certificate'. - // - // Possible values: - // "SSL_TYPE_UNSPECIFIED" - Unspecified. - // "SERVER_ONLY" - Only 'ca_certificate' specified. - // "SERVER_CLIENT" - Both server ('ca_certificate'), and client - // ('client_key', 'client_certificate') specified. - Type string `json:"type,omitempty"` + // Metadata: Service-specific metadata. For example the available + // capacity at the given location. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // ForceSendFields is a list of field names (e.g. "CaCertificate") to + // Name: Resource name for the location, which may vary between + // implementations. For example: + // "projects/example-project/locations/us-east1" + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2051,7 +2212,7 @@ type SslConfig struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CaCertificate") to include + // 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. However, any field with // an empty value appearing in NullFields will be sent to the server as @@ -2060,47 +2221,19 @@ type SslConfig struct { NullFields []string `json:"-"` } -func (s *SslConfig) MarshalJSON() ([]byte, error) { - type NoMethod SslConfig +func (s *Location) MarshalJSON() ([]byte, error) { + type NoMethod Location raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// StartMigrationJobRequest: Request message for 'StartMigrationJob' -// request. -type StartMigrationJobRequest struct { -} - -// StaticIpConnectivity: The source database will allow incoming -// connections from the destination database's public IP. You can -// retrieve the Cloud SQL instance's public IP from the Cloud SQL -// console or using Cloud SQL APIs. No additional configuration is -// required. -type StaticIpConnectivity struct { -} - -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). -type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. - Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. - Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. - Message string `json:"message,omitempty"` +// MachineConfig: MachineConfig describes the configuration of a +// machine. +type MachineConfig struct { + // CpuCount: The number of CPU's in the VM instance. + CpuCount int64 `json:"cpuCount,omitempty"` - // ForceSendFields is a list of field names (e.g. "Code") to + // ForceSendFields is a list of field names (e.g. "CpuCount") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2108,8 +2241,8 @@ type Status struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "CpuCount") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -2117,136 +2250,225 @@ type Status struct { NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { - type NoMethod Status +func (s *MachineConfig) MarshalJSON() ([]byte, error) { + type NoMethod MachineConfig raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// StopMigrationJobRequest: Request message for 'StopMigrationJob' -// request. -type StopMigrationJobRequest struct { -} +// MigrationJob: Represents a Database Migration Service migration job +// object. +type MigrationJob struct { + // ConversionWorkspace: The conversion workspace used by the migration. + ConversionWorkspace *ConversionWorkspaceInfo `json:"conversionWorkspace,omitempty"` -// TestIamPermissionsRequest: Request message for `TestIamPermissions` -// method. -type TestIamPermissionsRequest struct { - // Permissions: The set of permissions to check for the `resource`. - // Permissions with wildcards (such as `*` or `storage.*`) are not - // allowed. For more information see IAM Overview - // (https://cloud.google.com/iam/docs/overview#permissions). - Permissions []string `json:"permissions,omitempty"` + // CreateTime: Output only. The timestamp when the migration job + // resource was created. A timestamp in RFC3339 UTC "Zulu" format, + // accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z". + CreateTime string `json:"createTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` + // Destination: Required. The resource name (URI) of the destination + // connection profile. + Destination string `json:"destination,omitempty"` - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} + // DestinationDatabase: The database engine type and provider of the + // destination. + DestinationDatabase *DatabaseType `json:"destinationDatabase,omitempty"` -func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { - type NoMethod TestIamPermissionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // DisplayName: The migration job display name. + DisplayName string `json:"displayName,omitempty"` -// TestIamPermissionsResponse: Response message for `TestIamPermissions` -// method. -type TestIamPermissionsResponse struct { - // Permissions: A subset of `TestPermissionsRequest.permissions` that - // the caller is allowed. - Permissions []string `json:"permissions,omitempty"` + // DumpFlags: The initial dump flags. This field and the "dump_path" + // field are mutually exclusive. + DumpFlags *DumpFlags `json:"dumpFlags,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // DumpPath: The path to the dump file in Google Cloud Storage, in the + // format: (gs://[BUCKET_NAME]/[OBJECT_NAME]). This field and the + // "dump_flags" field are mutually exclusive. + DumpPath string `json:"dumpPath,omitempty"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` + // Duration: Output only. The duration of the migration job (in + // seconds). A duration in seconds with up to nine fractional digits, + // terminated by 's'. Example: "3.5s". + Duration string `json:"duration,omitempty"` - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} + // EndTime: Output only. If the migration job is completed, the time + // when it was completed. + EndTime string `json:"endTime,omitempty"` -func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { - type NoMethod TestIamPermissionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // Error: Output only. The error details in case of state FAILED. + Error *Status `json:"error,omitempty"` -// UserPassword: The username/password for a database user. Used for -// specifying initial users at cluster creation time. -type UserPassword struct { - // Password: The initial password for the user. - Password string `json:"password,omitempty"` + // Filter: This field can be used to select the entities to migrate as + // part of the migration job. It uses AIP-160 notation to select a + // subset of the entities configured on the associated + // conversion-workspace. This field should not be set on migration-jobs + // that are not associated with a conversion workspace. + Filter string `json:"filter,omitempty"` - // PasswordSet: Output only. Indicates if the initial_user.password - // field has been set. - PasswordSet bool `json:"passwordSet,omitempty"` + // Labels: The resource labels for migration job to use to annotate any + // related underlying resources such as Compute Engine VMs. An object + // containing a list of "key": "value" pairs. Example: `{ "name": + // "wrench", "mass": "1.3kg", "count": "3" }`. + Labels map[string]string `json:"labels,omitempty"` - // User: The database username. - User string `json:"user,omitempty"` + // Name: The name (URI) of this migration job resource, in the form of: + // projects/{project}/locations/{location}/migrationJobs/{migrationJob}. + Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Password") to - // unconditionally include in API requests. By default, fields with + // Phase: Output only. The current migration job phase. + // + // Possible values: + // "PHASE_UNSPECIFIED" - The phase of the migration job is unknown. + // "FULL_DUMP" - The migration job is in the full dump phase. + // "CDC" - The migration job is CDC phase. + // "PROMOTE_IN_PROGRESS" - The migration job is running the promote + // phase. + // "WAITING_FOR_SOURCE_WRITES_TO_STOP" - Only RDS flow - waiting for + // source writes to stop + // "PREPARING_THE_DUMP" - Only RDS flow - the sources writes stopped, + // waiting for dump to begin + Phase string `json:"phase,omitempty"` + + // ReverseSshConnectivity: The details needed to communicate to the + // source over Reverse SSH tunnel connectivity. + ReverseSshConnectivity *ReverseSshConnectivity `json:"reverseSshConnectivity,omitempty"` + + // Source: Required. The resource name (URI) of the source connection + // profile. + Source string `json:"source,omitempty"` + + // SourceDatabase: The database engine type and provider of the source. + SourceDatabase *DatabaseType `json:"sourceDatabase,omitempty"` + + // State: The current migration job state. + // + // Possible values: + // "STATE_UNSPECIFIED" - The state of the migration job is unknown. + // "MAINTENANCE" - The migration job is down for maintenance. + // "DRAFT" - The migration job is in draft mode and no resources are + // created. + // "CREATING" - The migration job is being created. + // "NOT_STARTED" - The migration job is created and not started. + // "RUNNING" - The migration job is running. + // "FAILED" - The migration job failed. + // "COMPLETED" - The migration job has been completed. + // "DELETING" - The migration job is being deleted. + // "STOPPING" - The migration job is being stopped. + // "STOPPED" - The migration job is currently stopped. + // "DELETED" - The migration job has been deleted. + // "UPDATING" - The migration job is being updated. + // "STARTING" - The migration job is starting. + // "RESTARTING" - The migration job is restarting. + // "RESUMING" - The migration job is resuming. + State string `json:"state,omitempty"` + + // StaticIpConnectivity: static ip connectivity data (default, no + // additional details needed). + StaticIpConnectivity *StaticIpConnectivity `json:"staticIpConnectivity,omitempty"` + + // Type: Required. The migration job type. + // + // Possible values: + // "TYPE_UNSPECIFIED" - The type of the migration job is unknown. + // "ONE_TIME" - The migration job is a one time migration. + // "CONTINUOUS" - The migration job is a continuous migration. + Type string `json:"type,omitempty"` + + // UpdateTime: Output only. The timestamp when the migration job + // resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, + // accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z". + UpdateTime string `json:"updateTime,omitempty"` + + // VpcPeeringConnectivity: The details of the VPC network that the + // source database is located in. + VpcPeeringConnectivity *VpcPeeringConnectivity `json:"vpcPeeringConnectivity,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ConversionWorkspace") + // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Password") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ConversionWorkspace") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } -func (s *UserPassword) MarshalJSON() ([]byte, error) { - type NoMethod UserPassword +func (s *MigrationJob) MarshalJSON() ([]byte, error) { + type NoMethod MigrationJob raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// VerifyMigrationJobRequest: Request message for 'VerifyMigrationJob' -// request. -type VerifyMigrationJobRequest struct { -} - -// VmCreationConfig: VM creation configuration message -type VmCreationConfig struct { - // Subnet: The subnet name the vm needs to be created in. - Subnet string `json:"subnet,omitempty"` +// MigrationJobVerificationError: Error message of a verification +// Migration job. +type MigrationJobVerificationError struct { + // ErrorCode: Output only. An instance of ErrorCode specifying the error + // that occurred. + // + // Possible values: + // "ERROR_CODE_UNSPECIFIED" - An unknown error occurred + // "CONNECTION_FAILURE" - We failed to connect to one of the + // connection profile. + // "AUTHENTICATION_FAILURE" - We failed to authenticate to one of the + // connection profile. + // "INVALID_CONNECTION_PROFILE_CONFIG" - One of the involved + // connection profiles has an invalid configuration. + // "VERSION_INCOMPATIBILITY" - The versions of the source and the + // destination are incompatible. + // "CONNECTION_PROFILE_TYPES_INCOMPATIBILITY" - The types of the + // source and the destination are incompatible. + // "NO_PGLOGICAL_INSTALLED" - No pglogical extension installed on + // databases, applicable for postgres. + // "PGLOGICAL_NODE_ALREADY_EXISTS" - pglogical node already exists on + // databases, applicable for postgres. + // "INVALID_WAL_LEVEL" - The value of parameter wal_level is not set + // to logical. + // "INVALID_SHARED_PRELOAD_LIBRARY" - The value of parameter + // shared_preload_libraries does not include pglogical. + // "INSUFFICIENT_MAX_REPLICATION_SLOTS" - The value of parameter + // max_replication_slots is not sufficient. + // "INSUFFICIENT_MAX_WAL_SENDERS" - The value of parameter + // max_wal_senders is not sufficient. + // "INSUFFICIENT_MAX_WORKER_PROCESSES" - The value of parameter + // max_worker_processes is not sufficient. + // "UNSUPPORTED_EXTENSIONS" - Extensions installed are either not + // supported or having unsupported versions. + // "UNSUPPORTED_MIGRATION_TYPE" - Unsupported migration type. + // "INVALID_RDS_LOGICAL_REPLICATION" - Invalid RDS logical + // replication. + // "UNSUPPORTED_GTID_MODE" - The gtid_mode is not supported, + // applicable for MySQL. + // "UNSUPPORTED_TABLE_DEFINITION" - The table definition is not + // support due to missing primary key or replica identity. + // "UNSUPPORTED_DEFINER" - The definer is not supported. + // "CANT_RESTART_RUNNING_MIGRATION" - Migration is already running at + // the time of restart request. + // "TABLES_WITH_LIMITED_SUPPORT" - The source has tables with limited + // support. E.g. PostgreSQL tables without primary keys. + ErrorCode string `json:"errorCode,omitempty"` - // VmMachineType: Required. VM instance machine type to create. - VmMachineType string `json:"vmMachineType,omitempty"` + // ErrorDetailMessage: Output only. A specific detailed error message, + // if supplied by the engine. + ErrorDetailMessage string `json:"errorDetailMessage,omitempty"` - // VmZone: The Google Cloud Platform zone to create the VM in. - VmZone string `json:"vmZone,omitempty"` + // ErrorMessage: Output only. A formatted message with further details + // about the error and a CTA. + ErrorMessage string `json:"errorMessage,omitempty"` - // ForceSendFields is a list of field names (e.g. "Subnet") to + // ForceSendFields is a list of field names (e.g. "ErrorCode") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2254,8 +2476,8 @@ type VmCreationConfig struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Subnet") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "ErrorCode") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -2263,18 +2485,45 @@ type VmCreationConfig struct { NullFields []string `json:"-"` } -func (s *VmCreationConfig) MarshalJSON() ([]byte, error) { - type NoMethod VmCreationConfig +func (s *MigrationJobVerificationError) MarshalJSON() ([]byte, error) { + type NoMethod MigrationJobVerificationError raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// VmSelectionConfig: VM selection configuration message -type VmSelectionConfig struct { - // VmZone: Required. The Google Cloud Platform zone the VM is located. - VmZone string `json:"vmZone,omitempty"` +// MySqlConnectionProfile: Specifies connection parameters required +// specifically for MySQL databases. +type MySqlConnectionProfile struct { + // CloudSqlId: If the source is a Cloud SQL database, use this field to + // provide the Cloud SQL instance ID of the source. + CloudSqlId string `json:"cloudSqlId,omitempty"` - // ForceSendFields is a list of field names (e.g. "VmZone") to + // Host: Required. The IP or hostname of the source MySQL database. + Host string `json:"host,omitempty"` + + // Password: Required. Input only. The password for the user that + // Database Migration Service will be using to connect to the database. + // This field is not returned on request, and the value is encrypted + // when stored in Database Migration Service. + Password string `json:"password,omitempty"` + + // PasswordSet: Output only. Indicates If this connection profile + // password is stored. + PasswordSet bool `json:"passwordSet,omitempty"` + + // Port: Required. The network port of the source MySQL database. + Port int64 `json:"port,omitempty"` + + // Ssl: SSL configuration for the destination to connect to the source + // database. + Ssl *SslConfig `json:"ssl,omitempty"` + + // Username: Required. The username that Database Migration Service will + // use to connect to the database. The value is encrypted when stored in + // Database Migration Service. + Username string `json:"username,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CloudSqlId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2282,8 +2531,8 @@ type VmSelectionConfig struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "VmZone") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "CloudSqlId") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -2291,46 +2540,4491 @@ type VmSelectionConfig struct { NullFields []string `json:"-"` } -func (s *VmSelectionConfig) MarshalJSON() ([]byte, error) { - type NoMethod VmSelectionConfig +func (s *MySqlConnectionProfile) MarshalJSON() ([]byte, error) { + type NoMethod MySqlConnectionProfile raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// VpcPeeringConnectivity: The details of the VPC where the source -// database is located in Google Cloud. We will use this information to -// set up the VPC peering connection between Cloud SQL and this VPC. -type VpcPeeringConnectivity struct { - // Vpc: The name of the VPC network to peer with the Cloud SQL private - // network. - Vpc string `json:"vpc,omitempty"` +// Operation: This resource represents a long-running operation that is +// the result of a network API call. +type Operation struct { + // Done: If the value is `false`, it means the operation is still in + // progress. If `true`, the operation is completed, and either `error` + // or `response` is available. + Done bool `json:"done,omitempty"` - // ForceSendFields is a list of field names (e.g. "Vpc") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` + // Error: The error result of the operation in case of failure or + // cancellation. + Error *Status `json:"error,omitempty"` + + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as + // create time. Some services might not provide such metadata. Any + // method that returns a long-running operation should document the + // metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: The server-assigned name, which is only unique within the same + // service that originally returns it. If you use the default HTTP + // mapping, the `name` should be a resource name ending with + // `operations/{unique_id}`. + Name string `json:"name,omitempty"` + + // Response: The normal response of the operation in case of success. If + // the original method returns no data on success, such as `Delete`, the + // response is `google.protobuf.Empty`. If the original method is + // standard `Get`/`Create`/`Update`, the response should be the + // resource. For other methods, the response should have the type + // `XxxResponse`, where `Xxx` is the original method name. For example, + // if the original method name is `TakeSnapshot()`, the inferred + // response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Done") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Done") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Operation) MarshalJSON() ([]byte, error) { + type NoMethod Operation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// OracleConnectionProfile: Specifies connection parameters required +// specifically for Oracle databases. +type OracleConnectionProfile struct { + // DatabaseService: Required. Database service for the Oracle + // connection. + DatabaseService string `json:"databaseService,omitempty"` + + // ForwardSshConnectivity: Forward SSH tunnel connectivity. + ForwardSshConnectivity *ForwardSshTunnelConnectivity `json:"forwardSshConnectivity,omitempty"` + + // Host: Required. The IP or hostname of the source Oracle database. + Host string `json:"host,omitempty"` + + // Password: Required. Input only. The password for the user that + // Database Migration Service will be using to connect to the database. + // This field is not returned on request, and the value is encrypted + // when stored in Database Migration Service. + Password string `json:"password,omitempty"` + + // PasswordSet: Output only. Indicates whether a new password is + // included in the request. + PasswordSet bool `json:"passwordSet,omitempty"` + + // Port: Required. The network port of the source Oracle database. + Port int64 `json:"port,omitempty"` + + // PrivateConnectivity: Private connectivity. + PrivateConnectivity *PrivateConnectivity `json:"privateConnectivity,omitempty"` + + // StaticServiceIpConnectivity: Static Service IP connectivity. + StaticServiceIpConnectivity *StaticServiceIpConnectivity `json:"staticServiceIpConnectivity,omitempty"` + + // Username: Required. The username that Database Migration Service will + // use to connect to the database. The value is encrypted when stored in + // Database Migration Service. + Username string `json:"username,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DatabaseService") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DatabaseService") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *OracleConnectionProfile) MarshalJSON() ([]byte, error) { + type NoMethod OracleConnectionProfile + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PackageEntity: Package's parent is a schema. +type PackageEntity struct { + // CustomFeatures: Custom engine specific features + CustomFeatures googleapi.RawMessage `json:"customFeatures,omitempty"` + + // PackageBody: The SQL code which creates the package body. If the + // package specification has cursors or subprograms, then the package + // body is mandatory. + PackageBody string `json:"packageBody,omitempty"` + + // PackageSqlCode: The SQL code which creates the package + PackageSqlCode string `json:"packageSqlCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CustomFeatures") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CustomFeatures") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *PackageEntity) MarshalJSON() ([]byte, error) { + type NoMethod PackageEntity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Policy: An Identity and Access Management (IAM) policy, which +// specifies access controls for Google Cloud resources. A `Policy` is a +// collection of `bindings`. A `binding` binds one or more `members`, or +// principals, to a single `role`. Principals can be user accounts, +// service accounts, Google groups, and domains (such as G Suite). A +// `role` is a named list of permissions; each `role` can be an IAM +// predefined role or a user-created custom role. For some types of +// Google Cloud resources, a `binding` can also specify a `condition`, +// which is a logical expression that allows access to a resource only +// if the expression evaluates to `true`. A condition can add +// constraints based on attributes of the request, the resource, or +// both. To learn which resources support conditions in their IAM +// policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +// **JSON example:** { "bindings": [ { "role": +// "roles/resourcemanager.organizationAdmin", "members": [ +// "user:mike@example.com", "group:admins@example.com", +// "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { +// "role": "roles/resourcemanager.organizationViewer", "members": [ +// "user:eve@example.com" ], "condition": { "title": "expirable access", +// "description": "Does not grant access after Sep 2020", "expression": +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], +// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - +// members: - user:mike@example.com - group:admins@example.com - +// domain:google.com - +// serviceAccount:my-project-id@appspot.gserviceaccount.com role: +// roles/resourcemanager.organizationAdmin - members: - +// user:eve@example.com role: roles/resourcemanager.organizationViewer +// condition: title: expirable access description: Does not grant access +// after Sep 2020 expression: request.time < +// timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 +// For a description of IAM and its features, see the IAM documentation +// (https://cloud.google.com/iam/docs/). +type Policy struct { + // AuditConfigs: Specifies cloud audit logging configuration for this + // policy. + AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"` + + // Bindings: Associates a list of `members`, or principals, with a + // `role`. Optionally, may specify a `condition` that determines how and + // when the `bindings` are applied. Each of the `bindings` must contain + // at least one principal. The `bindings` in a `Policy` can refer to up + // to 1,500 principals; up to 250 of these principals can be Google + // groups. Each occurrence of a principal counts towards these limits. + // For example, if the `bindings` grant 50 different roles to + // `user:alice@example.com`, and not to any other principal, then you + // can add another 1,450 principals to the `bindings` in the `Policy`. + Bindings []*Binding `json:"bindings,omitempty"` + + // Etag: `etag` is used for optimistic concurrency control as a way to + // help prevent simultaneous updates of a policy from overwriting each + // other. It is strongly suggested that systems make use of the `etag` + // in the read-modify-write cycle to perform policy updates in order to + // avoid race conditions: An `etag` is returned in the response to + // `getIamPolicy`, and systems are expected to put that etag in the + // request to `setIamPolicy` to ensure that their change will be applied + // to the same version of the policy. **Important:** If you use IAM + // Conditions, you must include the `etag` field whenever you call + // `setIamPolicy`. If you omit this field, then IAM allows you to + // overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. + Etag string `json:"etag,omitempty"` + + // Version: Specifies the format of the policy. Valid values are `0`, + // `1`, and `3`. Requests that specify an invalid value are rejected. + // Any operation that affects conditional role bindings must specify + // version `3`. This requirement applies to the following operations: * + // Getting a policy that includes a conditional role binding * Adding a + // conditional role binding to a policy * Changing a conditional role + // binding in a policy * Removing any role binding, with or without a + // condition, from a policy that includes conditions **Important:** If + // you use IAM Conditions, you must include the `etag` field whenever + // you call `setIamPolicy`. If you omit this field, then IAM allows you + // to overwrite a version `3` policy with a version `1` policy, and all + // of the conditions in the version `3` policy are lost. If a policy + // does not include any conditions, operations on that policy may + // specify any valid version or leave the field unset. To learn which + // resources support conditions in their IAM policies, see the IAM + // documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). + Version int64 `json:"version,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AuditConfigs") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AuditConfigs") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Policy) MarshalJSON() ([]byte, error) { + type NoMethod Policy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PostgreSqlConnectionProfile: Specifies connection parameters required +// specifically for PostgreSQL databases. +type PostgreSqlConnectionProfile struct { + // CloudSqlId: If the source is a Cloud SQL database, use this field to + // provide the Cloud SQL instance ID of the source. + CloudSqlId string `json:"cloudSqlId,omitempty"` + + // Host: Required. The IP or hostname of the source PostgreSQL database. + Host string `json:"host,omitempty"` + + // NetworkArchitecture: Output only. If the source is a Cloud SQL + // database, this field indicates the network architecture it's + // associated with. + // + // Possible values: + // "NETWORK_ARCHITECTURE_UNSPECIFIED" + // "NETWORK_ARCHITECTURE_OLD_CSQL_PRODUCER" - Instance is in Cloud + // SQL's old producer network architecture. + // "NETWORK_ARCHITECTURE_NEW_CSQL_PRODUCER" - Instance is in Cloud + // SQL's new producer network architecture. + NetworkArchitecture string `json:"networkArchitecture,omitempty"` + + // Password: Required. Input only. The password for the user that + // Database Migration Service will be using to connect to the database. + // This field is not returned on request, and the value is encrypted + // when stored in Database Migration Service. + Password string `json:"password,omitempty"` + + // PasswordSet: Output only. Indicates If this connection profile + // password is stored. + PasswordSet bool `json:"passwordSet,omitempty"` + + // Port: Required. The network port of the source PostgreSQL database. + Port int64 `json:"port,omitempty"` + + // PrivateServiceConnectConnectivity: Private service connect + // connectivity. + PrivateServiceConnectConnectivity *PrivateServiceConnectConnectivity `json:"privateServiceConnectConnectivity,omitempty"` + + // Ssl: SSL configuration for the destination to connect to the source + // database. + Ssl *SslConfig `json:"ssl,omitempty"` + + // StaticIpConnectivity: Static ip connectivity data (default, no + // additional details needed). + StaticIpConnectivity *StaticIpConnectivity `json:"staticIpConnectivity,omitempty"` + + // Username: Required. The username that Database Migration Service will + // use to connect to the database. The value is encrypted when stored in + // Database Migration Service. + Username string `json:"username,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CloudSqlId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CloudSqlId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PostgreSqlConnectionProfile) MarshalJSON() ([]byte, error) { + type NoMethod PostgreSqlConnectionProfile + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PrimaryInstanceSettings: Settings for the cluster's primary instance +type PrimaryInstanceSettings struct { + // DatabaseFlags: Database flags to pass to AlloyDB when DMS is creating + // the AlloyDB cluster and instances. See the AlloyDB documentation for + // how these can be used. + DatabaseFlags map[string]string `json:"databaseFlags,omitempty"` + + // Id: Required. The ID of the AlloyDB primary instance. The ID must + // satisfy the regex expression "[a-z0-9-]+". + Id string `json:"id,omitempty"` + + // Labels: Labels for the AlloyDB primary instance created by DMS. An + // object containing a list of 'key', 'value' pairs. + Labels map[string]string `json:"labels,omitempty"` + + // MachineConfig: Configuration for the machines that host the + // underlying database engine. + MachineConfig *MachineConfig `json:"machineConfig,omitempty"` + + // PrivateIp: Output only. The private IP address for the Instance. This + // is the connection endpoint for an end-user application. + PrivateIp string `json:"privateIp,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DatabaseFlags") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DatabaseFlags") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PrimaryInstanceSettings) MarshalJSON() ([]byte, error) { + type NoMethod PrimaryInstanceSettings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PrivateConnection: The PrivateConnection resource is used to +// establish private connectivity with the customer's network. +type PrivateConnection struct { + // CreateTime: Output only. The create time of the resource. + CreateTime string `json:"createTime,omitempty"` + + // DisplayName: The private connection display name. + DisplayName string `json:"displayName,omitempty"` + + // Error: Output only. The error details in case of state FAILED. + Error *Status `json:"error,omitempty"` + + // Labels: The resource labels for private connections to use to + // annotate any related underlying resources such as Compute Engine VMs. + // An object containing a list of "key": "value" pairs. Example: `{ + // "name": "wrench", "mass": "1.3kg", "count": "3" }`. + Labels map[string]string `json:"labels,omitempty"` + + // Name: The resource's name. + Name string `json:"name,omitempty"` + + // State: Output only. The state of the Private Connection. + // + // Possible values: + // "STATE_UNSPECIFIED" + // "CREATING" - The private connection is in creation state - creating + // resources. + // "CREATED" - The private connection has been created with all of its + // resources. + // "FAILED" - The private connection creation has failed. + // "DELETING" - The private connection is being deleted. + // "FAILED_TO_DELETE" - Delete request has failed, resource is in + // invalid state. + // "DELETED" - The private connection has been deleted. + State string `json:"state,omitempty"` + + // UpdateTime: Output only. The last update time of the resource. + UpdateTime string `json:"updateTime,omitempty"` + + // VpcPeeringConfig: VPC Peering Config. + VpcPeeringConfig *VpcPeeringConfig `json:"vpcPeeringConfig,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PrivateConnection) MarshalJSON() ([]byte, error) { + type NoMethod PrivateConnection + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PrivateConnectivity: Private Connectivity. +type PrivateConnectivity struct { + // PrivateConnection: Required. The resource name (URI) of the private + // connection. + PrivateConnection string `json:"privateConnection,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PrivateConnection") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PrivateConnection") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *PrivateConnectivity) MarshalJSON() ([]byte, error) { + type NoMethod PrivateConnectivity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PrivateServiceConnectConnectivity: Private Service Connect +// connectivity +// (https://cloud.google.com/vpc/docs/private-service-connect#benefits-services) +type PrivateServiceConnectConnectivity struct { + // ServiceAttachment: Required. A service attachment that exposes a + // database, and has the following format: + // projects/{project}/regions/{region}/serviceAttachments/{service_attach + // ment_name} + ServiceAttachment string `json:"serviceAttachment,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ServiceAttachment") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ServiceAttachment") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *PrivateServiceConnectConnectivity) MarshalJSON() ([]byte, error) { + type NoMethod PrivateServiceConnectConnectivity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PromoteMigrationJobRequest: Request message for 'PromoteMigrationJob' +// request. +type PromoteMigrationJobRequest struct { +} + +// RestartMigrationJobRequest: Request message for 'RestartMigrationJob' +// request. +type RestartMigrationJobRequest struct { +} + +// ResumeMigrationJobRequest: Request message for 'ResumeMigrationJob' +// request. +type ResumeMigrationJobRequest struct { +} + +// ReverseSshConnectivity: The details needed to configure a reverse SSH +// tunnel between the source and destination databases. These details +// will be used when calling the generateSshScript method (see +// https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs/generateSshScript) +// to produce the script that will help set up the reverse SSH tunnel, +// and to set up the VPC peering between the Cloud SQL private network +// and the VPC. +type ReverseSshConnectivity struct { + // Vm: The name of the virtual machine (Compute Engine) used as the + // bastion server for the SSH tunnel. + Vm string `json:"vm,omitempty"` + + // VmIp: Required. The IP of the virtual machine (Compute Engine) used + // as the bastion server for the SSH tunnel. + VmIp string `json:"vmIp,omitempty"` + + // VmPort: Required. The forwarding port of the virtual machine (Compute + // Engine) used as the bastion server for the SSH tunnel. + VmPort int64 `json:"vmPort,omitempty"` + + // Vpc: The name of the VPC to peer with the Cloud SQL private network. + Vpc string `json:"vpc,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Vm") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Vm") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ReverseSshConnectivity) MarshalJSON() ([]byte, error) { + type NoMethod ReverseSshConnectivity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RollbackConversionWorkspaceRequest: Request message for +// 'RollbackConversionWorkspace' request. +type RollbackConversionWorkspaceRequest struct { +} + +// RulesFile: Details of a single rules file +type RulesFile struct { + // RulesContent: The text content of the rules that needs to be + // converted + RulesContent string `json:"rulesContent,omitempty"` + + // RulesSourceFilename: The filename of the rules that needs to be + // converted. This is used mainly so future logs of the import rules job + // will contain this detail and can therefore be searched by it later + RulesSourceFilename string `json:"rulesSourceFilename,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RulesContent") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "RulesContent") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RulesFile) MarshalJSON() ([]byte, error) { + type NoMethod RulesFile + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SchemaEntity: Schema typically has no parent entity, but can have a +// parent entity DatabaseInstance (for database engines which supports +// it). For some database engines the term schema and user can be used +// interchangeably when they refer to a namespace or a collection of +// other database entities. Can store additional information which is +// schema specific. +type SchemaEntity struct { + // CustomFeatures: Custom engine specific features + CustomFeatures googleapi.RawMessage `json:"customFeatures,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CustomFeatures") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CustomFeatures") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SchemaEntity) MarshalJSON() ([]byte, error) { + type NoMethod SchemaEntity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SearchBackgroundJobsResponse: Response message for +// 'SearchBackgroundJobs' request. +type SearchBackgroundJobsResponse struct { + // Jobs: The list of conversion workspace mapping rules. + Jobs []*BackgroundJobLogEntry `json:"jobs,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Jobs") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Jobs") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SearchBackgroundJobsResponse) MarshalJSON() ([]byte, error) { + type NoMethod SearchBackgroundJobsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SeedConversionWorkspaceRequest: Request message for +// 'SeedConversionWorkspace' request. +type SeedConversionWorkspaceRequest struct { + // AutoCommit: Should the conversion workspace be committed + // automatically after the seed operation. + AutoCommit bool `json:"autoCommit,omitempty"` + + // DestinationConnectionProfile: Fully qualified (Uri) name of the + // destination connection profile. + DestinationConnectionProfile string `json:"destinationConnectionProfile,omitempty"` + + // SourceConnectionProfile: Fully qualified (Uri) name of the source + // connection profile. + SourceConnectionProfile string `json:"sourceConnectionProfile,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AutoCommit") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AutoCommit") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SeedConversionWorkspaceRequest) MarshalJSON() ([]byte, error) { + type NoMethod SeedConversionWorkspaceRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SeedJobDetails: Details regarding a Seed background job +type SeedJobDetails struct { + // ConnectionProfile: The connection profile which was used for the seed + // job + ConnectionProfile string `json:"connectionProfile,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConnectionProfile") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConnectionProfile") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SeedJobDetails) MarshalJSON() ([]byte, error) { + type NoMethod SeedJobDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SequenceEntity: Sequence's parent is a schema. +type SequenceEntity struct { + // Cache: Indicates number of entries to cache / precreate + Cache int64 `json:"cache,omitempty,string"` + + // CustomFeatures: Custom engine specific features + CustomFeatures googleapi.RawMessage `json:"customFeatures,omitempty"` + + // Cycle: Indicates whether the sequence value should cycle through + Cycle bool `json:"cycle,omitempty"` + + // Increment: Increment value for the sequence + Increment int64 `json:"increment,omitempty,string"` + + // MaxValue: Maximum number for the sequence represented as bytes to + // accommodate large numbers + MaxValue string `json:"maxValue,omitempty"` + + // MinValue: Minimum number for the sequence represented as bytes to + // accommodate large numbers + MinValue string `json:"minValue,omitempty"` + + // StartValue: Start number for the sequence represented as bytes to + // accommodate large numbers + StartValue string `json:"startValue,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Cache") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Cache") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SequenceEntity) MarshalJSON() ([]byte, error) { + type NoMethod SequenceEntity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SetIamPolicyRequest: Request message for `SetIamPolicy` method. +type SetIamPolicyRequest struct { + // Policy: REQUIRED: The complete policy to be applied to the + // `resource`. The size of the policy is limited to a few 10s of KB. An + // empty policy is a valid policy but certain Google Cloud services + // (such as Projects) might reject them. + Policy *Policy `json:"policy,omitempty"` + + // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the + // policy to modify. Only the fields in the mask will be modified. If no + // mask is provided, the following default mask is used: `paths: + // "bindings, etag" + UpdateMask string `json:"updateMask,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Policy") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Policy") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod SetIamPolicyRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SqlAclEntry: An entry for an Access Control list. +type SqlAclEntry struct { + // ExpireTime: The time when this access control entry expires in RFC + // 3339 (https://tools.ietf.org/html/rfc3339) format, for example: + // `2012-11-15T16:19:00.094Z`. + ExpireTime string `json:"expireTime,omitempty"` + + // Label: A label to identify this entry. + Label string `json:"label,omitempty"` + + // Ttl: Input only. The time-to-leave of this access control entry. + Ttl string `json:"ttl,omitempty"` + + // Value: The allowlisted value for the access control list. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExpireTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExpireTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SqlAclEntry) MarshalJSON() ([]byte, error) { + type NoMethod SqlAclEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SqlIpConfig: IP Management configuration. +type SqlIpConfig struct { + // AuthorizedNetworks: The list of external networks that are allowed to + // connect to the instance using the IP. See + // https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known + // as 'slash' notation (e.g. `192.168.100.0/24`). + AuthorizedNetworks []*SqlAclEntry `json:"authorizedNetworks,omitempty"` + + // EnableIpv4: Whether the instance should be assigned an IPv4 address + // or not. + EnableIpv4 bool `json:"enableIpv4,omitempty"` + + // PrivateNetwork: The resource link for the VPC network from which the + // Cloud SQL instance is accessible for private IP. For example, + // `projects/myProject/global/networks/default`. This setting can be + // updated, but it cannot be removed after it is set. + PrivateNetwork string `json:"privateNetwork,omitempty"` + + // RequireSsl: Whether SSL connections over IP should be enforced or + // not. + RequireSsl bool `json:"requireSsl,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AuthorizedNetworks") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AuthorizedNetworks") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SqlIpConfig) MarshalJSON() ([]byte, error) { + type NoMethod SqlIpConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SshScript: Response message for 'GenerateSshScript' request. +type SshScript struct { + // Script: The ssh configuration script. + Script string `json:"script,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Script") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Script") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SshScript) MarshalJSON() ([]byte, error) { + type NoMethod SshScript + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SslConfig: SSL configuration information. +type SslConfig struct { + // CaCertificate: Required. Input only. The x509 PEM-encoded certificate + // of the CA that signed the source database server's certificate. The + // replica will use this certificate to verify it's connecting to the + // right host. + CaCertificate string `json:"caCertificate,omitempty"` + + // ClientCertificate: Input only. The x509 PEM-encoded certificate that + // will be used by the replica to authenticate against the source + // database server.If this field is used then the 'client_key' field is + // mandatory. + ClientCertificate string `json:"clientCertificate,omitempty"` + + // ClientKey: Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded + // private key associated with the Client Certificate. If this field is + // used then the 'client_certificate' field is mandatory. + ClientKey string `json:"clientKey,omitempty"` + + // Type: Output only. The ssl config type according to 'client_key', + // 'client_certificate' and 'ca_certificate'. + // + // Possible values: + // "SSL_TYPE_UNSPECIFIED" - Unspecified. + // "SERVER_ONLY" - Only 'ca_certificate' specified. + // "SERVER_CLIENT" - Both server ('ca_certificate'), and client + // ('client_key', 'client_certificate') specified. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CaCertificate") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CaCertificate") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SslConfig) MarshalJSON() ([]byte, error) { + type NoMethod SslConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// StartMigrationJobRequest: Request message for 'StartMigrationJob' +// request. +type StartMigrationJobRequest struct { +} + +// StaticIpConnectivity: The source database will allow incoming +// connections from the destination database's public IP. You can +// retrieve the Cloud SQL instance's public IP from the Cloud SQL +// console or using Cloud SQL APIs. No additional configuration is +// required. +type StaticIpConnectivity struct { +} + +// StaticServiceIpConnectivity: Static IP address connectivity +// configured on service project. +type StaticServiceIpConnectivity struct { +} + +// Status: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs +// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each +// `Status` message contains three pieces of data: error code, error +// message, and error details. You can find out more about this error +// model and how to work with it in the API Design Guide +// (https://cloud.google.com/apis/design/errors). +type Status struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// StopMigrationJobRequest: Request message for 'StopMigrationJob' +// request. +type StopMigrationJobRequest struct { +} + +// StoredProcedureEntity: Stored procedure's parent is a schema. +type StoredProcedureEntity struct { + // CustomFeatures: Custom engine specific features + CustomFeatures googleapi.RawMessage `json:"customFeatures,omitempty"` + + // SqlCode: The SQL code which creates the stored procedure + SqlCode string `json:"sqlCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CustomFeatures") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CustomFeatures") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *StoredProcedureEntity) MarshalJSON() ([]byte, error) { + type NoMethod StoredProcedureEntity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SynonymEntity: Synonym's parent is a schema. +type SynonymEntity struct { + // CustomFeatures: Custom engine specific features + CustomFeatures googleapi.RawMessage `json:"customFeatures,omitempty"` + + // SourceEntity: The name of the entity for which the synonym is being + // created (the source) + SourceEntity string `json:"sourceEntity,omitempty"` + + // SourceType: The type of the entity for which the synonym is being + // created (usually a table or a sequence) + // + // Possible values: + // "DATABASE_ENTITY_TYPE_UNSPECIFIED" - Unspecified database entity + // type + // "DATABASE_ENTITY_TYPE_SCHEMA" - Schema + // "DATABASE_ENTITY_TYPE_TABLE" - Table + // "DATABASE_ENTITY_TYPE_COLUMN" - Column + // "DATABASE_ENTITY_TYPE_CONSTRAINT" - Constraint + // "DATABASE_ENTITY_TYPE_INDEX" - Index + // "DATABASE_ENTITY_TYPE_TRIGGER" - Trigger + // "DATABASE_ENTITY_TYPE_VIEW" - View + // "DATABASE_ENTITY_TYPE_SEQUENCE" - Sequence + // "DATABASE_ENTITY_TYPE_STORED_PROCEDURE" - Stored Procedure + // "DATABASE_ENTITY_TYPE_FUNCTION" - Function + // "DATABASE_ENTITY_TYPE_SYNONYM" - Synonym + // "DATABASE_ENTITY_TYPE_DATABASE_PACKAGE" - Package + // "DATABASE_ENTITY_TYPE_UDT" - UDT + SourceType string `json:"sourceType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CustomFeatures") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CustomFeatures") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SynonymEntity) MarshalJSON() ([]byte, error) { + type NoMethod SynonymEntity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TableEntity: Table's parent is a schema. +type TableEntity struct { + // Columns: Table Columns. + Columns []*ColumnEntity `json:"columns,omitempty"` + + // Comment: Comment associated with the table + Comment string `json:"comment,omitempty"` + + // Constraints: Table Constraints. + Constraints []*ConstraintEntity `json:"constraints,omitempty"` + + // CustomFeatures: Custom engine specific features + CustomFeatures googleapi.RawMessage `json:"customFeatures,omitempty"` + + // Indices: Table Indices. + Indices []*IndexEntity `json:"indices,omitempty"` + + // Triggers: Table triggers. + Triggers []*TriggerEntity `json:"triggers,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Columns") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Columns") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TableEntity) MarshalJSON() ([]byte, error) { + type NoMethod TableEntity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TestIamPermissionsRequest: Request message for `TestIamPermissions` +// method. +type TestIamPermissionsRequest struct { + // Permissions: The set of permissions to check for the `resource`. + // Permissions with wildcards (such as `*` or `storage.*`) are not + // allowed. For more information see IAM Overview + // (https://cloud.google.com/iam/docs/overview#permissions). + Permissions []string `json:"permissions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Permissions") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Permissions") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TestIamPermissionsResponse: Response message for `TestIamPermissions` +// method. +type TestIamPermissionsResponse struct { + // Permissions: A subset of `TestPermissionsRequest.permissions` that + // the caller is allowed. + Permissions []string `json:"permissions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Permissions") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Permissions") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TriggerEntity: Trigger is not used as an independent entity, it is +// retrieved as part of a Table entity. +type TriggerEntity struct { + // CustomFeatures: Custom engine specific features + CustomFeatures googleapi.RawMessage `json:"customFeatures,omitempty"` + + // Name: The name of the trigger + Name string `json:"name,omitempty"` + + // SqlCode: The SQL code which creates the trigger + SqlCode string `json:"sqlCode,omitempty"` + + // TriggerType: Indicates when the trigger fires, e.g. BEFORE STATEMENT, + // AFTER EACH ROW + TriggerType string `json:"triggerType,omitempty"` + + // TriggeringEvents: The DML, DDL, or database events that fires the + // trigger, e.g. INSERT, UPDATE + TriggeringEvents []string `json:"triggeringEvents,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CustomFeatures") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CustomFeatures") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *TriggerEntity) MarshalJSON() ([]byte, error) { + type NoMethod TriggerEntity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// UserPassword: The username/password for a database user. Used for +// specifying initial users at cluster creation time. +type UserPassword struct { + // Password: The initial password for the user. + Password string `json:"password,omitempty"` + + // PasswordSet: Output only. Indicates if the initial_user.password + // field has been set. + PasswordSet bool `json:"passwordSet,omitempty"` + + // User: The database username. + User string `json:"user,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Password") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Password") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *UserPassword) MarshalJSON() ([]byte, error) { + type NoMethod UserPassword + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// VerifyMigrationJobRequest: Request message for 'VerifyMigrationJob' +// request. +type VerifyMigrationJobRequest struct { +} + +// ViewEntity: View's parent is a schema. +type ViewEntity struct { + // Constraints: View Constraints. + Constraints []*ConstraintEntity `json:"constraints,omitempty"` + + // CustomFeatures: Custom engine specific features + CustomFeatures googleapi.RawMessage `json:"customFeatures,omitempty"` + + // SqlCode: The SQL code which creates the view. + SqlCode string `json:"sqlCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Constraints") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Constraints") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ViewEntity) MarshalJSON() ([]byte, error) { + type NoMethod ViewEntity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// VmCreationConfig: VM creation configuration message +type VmCreationConfig struct { + // Subnet: The subnet name the vm needs to be created in. + Subnet string `json:"subnet,omitempty"` + + // VmMachineType: Required. VM instance machine type to create. + VmMachineType string `json:"vmMachineType,omitempty"` + + // VmZone: The Google Cloud Platform zone to create the VM in. + VmZone string `json:"vmZone,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Subnet") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Subnet") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *VmCreationConfig) MarshalJSON() ([]byte, error) { + type NoMethod VmCreationConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// VmSelectionConfig: VM selection configuration message +type VmSelectionConfig struct { + // VmZone: Required. The Google Cloud Platform zone the VM is located. + VmZone string `json:"vmZone,omitempty"` + + // ForceSendFields is a list of field names (e.g. "VmZone") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "VmZone") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *VmSelectionConfig) MarshalJSON() ([]byte, error) { + type NoMethod VmSelectionConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// VpcPeeringConfig: The VPC Peering configuration is used to create VPC +// peering with the consumer's VPC. +type VpcPeeringConfig struct { + // Subnet: Required. A free subnet for peering. (CIDR of /29) + Subnet string `json:"subnet,omitempty"` + + // VpcName: Required. Fully qualified name of the VPC DMS will peer to. + VpcName string `json:"vpcName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Subnet") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Subnet") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *VpcPeeringConfig) MarshalJSON() ([]byte, error) { + type NoMethod VpcPeeringConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// VpcPeeringConnectivity: The details of the VPC where the source +// database is located in Google Cloud. We will use this information to +// set up the VPC peering connection between Cloud SQL and this VPC. +type VpcPeeringConnectivity struct { + // Vpc: The name of the VPC network to peer with the Cloud SQL private + // network. + Vpc string `json:"vpc,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Vpc") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Vpc") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *VpcPeeringConnectivity) MarshalJSON() ([]byte, error) { + type NoMethod VpcPeeringConnectivity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "datamigration.projects.locations.get": + +type ProjectsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a location. +// +// - name: Resource name for the location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.get" call. +// Exactly one of *Location or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Location.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 *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, 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 := &Location{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets information about a location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name for the location.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Location" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.list": + +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists information about the supported locations for this +// service. +// +// - name: The resource that owns the locations collection, if +// applicable. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": A filter to narrow down +// results to a preferred subset. The filtering language accepts strings +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return. If not set, the service selects a default. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token +// received from the `next_page_token` field in the response. Send that +// page token to receive the subsequent page. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.list" call. +// Exactly one of *ListLocationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, 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 := &ListLocationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists information about the supported locations for this service.", + // "flatPath": "v1/projects/{projectsId}/locations", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The resource that owns the locations collection, if applicable.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return. If not set, the service selects a default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}/locations", + // "response": { + // "$ref": "ListLocationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "datamigration.projects.locations.connectionProfiles.create": + +type ProjectsLocationsConnectionProfilesCreateCall struct { + s *Service + parent string + connectionprofile *ConnectionProfile + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new connection profile in a given project and +// location. +// +// - parent: The parent, which owns this collection of connection +// profiles. +func (r *ProjectsLocationsConnectionProfilesService) Create(parent string, connectionprofile *ConnectionProfile) *ProjectsLocationsConnectionProfilesCreateCall { + c := &ProjectsLocationsConnectionProfilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.connectionprofile = connectionprofile + return c +} + +// ConnectionProfileId sets the optional parameter +// "connectionProfileId": Required. The connection profile identifier. +func (c *ProjectsLocationsConnectionProfilesCreateCall) ConnectionProfileId(connectionProfileId string) *ProjectsLocationsConnectionProfilesCreateCall { + c.urlParams_.Set("connectionProfileId", connectionProfileId) + return c +} + +// RequestId sets the optional parameter "requestId": A unique id used +// to identify the request. If the server receives two requests with the +// same id, then the second request will be ignored. It is recommended +// to always set this value to a UUID. The id must contain only letters +// (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The +// maximum length is 40 characters. +func (c *ProjectsLocationsConnectionProfilesCreateCall) RequestId(requestId string) *ProjectsLocationsConnectionProfilesCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// SkipValidation sets the optional parameter "skipValidation": Create +// the connection profile without validating it. The default is false. +// Only supported for Oracle connection profiles. +func (c *ProjectsLocationsConnectionProfilesCreateCall) SkipValidation(skipValidation bool) *ProjectsLocationsConnectionProfilesCreateCall { + c.urlParams_.Set("skipValidation", fmt.Sprint(skipValidation)) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": Only +// validate the connection profile, but don't create any resources. The +// default is false. Only supported for Oracle connection profiles. +func (c *ProjectsLocationsConnectionProfilesCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsConnectionProfilesCreateCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConnectionProfilesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConnectionProfilesCreateCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConnectionProfilesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConnectionProfilesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.connectionprofile) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/connectionProfiles") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.connectionProfiles.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsConnectionProfilesCreateCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new connection profile in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connectionProfiles", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.connectionProfiles.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "connectionProfileId": { + // "description": "Required. The connection profile identifier.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent, which owns this collection of connection profiles.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + // "location": "query", + // "type": "string" + // }, + // "skipValidation": { + // "description": "Optional. Create the connection profile without validating it. The default is false. Only supported for Oracle connection profiles.", + // "location": "query", + // "type": "boolean" + // }, + // "validateOnly": { + // "description": "Optional. Only validate the connection profile, but don't create any resources. The default is false. Only supported for Oracle connection profiles.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "v1/{+parent}/connectionProfiles", + // "request": { + // "$ref": "ConnectionProfile" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.connectionProfiles.delete": + +type ProjectsLocationsConnectionProfilesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single Database Migration Service connection +// profile. A connection profile can only be deleted if it is not in use +// by any active migration jobs. +// +// - name: Name of the connection profile resource to delete. +func (r *ProjectsLocationsConnectionProfilesService) Delete(name string) *ProjectsLocationsConnectionProfilesDeleteCall { + c := &ProjectsLocationsConnectionProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Force sets the optional parameter "force": In case of force delete, +// the CloudSQL replica database is also deleted (only for CloudSQL +// connection profile). +func (c *ProjectsLocationsConnectionProfilesDeleteCall) Force(force bool) *ProjectsLocationsConnectionProfilesDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + return c +} + +// RequestId sets the optional parameter "requestId": A unique id used +// to identify the request. If the server receives two requests with the +// same id, then the second request will be ignored. It is recommended +// to always set this value to a UUID. The id must contain only letters +// (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The +// maximum length is 40 characters. +func (c *ProjectsLocationsConnectionProfilesDeleteCall) RequestId(requestId string) *ProjectsLocationsConnectionProfilesDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConnectionProfilesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConnectionProfilesDeleteCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConnectionProfilesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConnectionProfilesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.connectionProfiles.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsConnectionProfilesDeleteCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a single Database Migration Service connection profile. A connection profile can only be deleted if it is not in use by any active migration jobs.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connectionProfiles/{connectionProfilesId}", + // "httpMethod": "DELETE", + // "id": "datamigration.projects.locations.connectionProfiles.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "force": { + // "description": "In case of force delete, the CloudSQL replica database is also deleted (only for CloudSQL connection profile).", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Required. Name of the connection profile resource to delete.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/connectionProfiles/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.connectionProfiles.get": + +type ProjectsLocationsConnectionProfilesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single connection profile. +// +// - name: Name of the connection profile resource to get. +func (r *ProjectsLocationsConnectionProfilesService) Get(name string) *ProjectsLocationsConnectionProfilesGetCall { + c := &ProjectsLocationsConnectionProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConnectionProfilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsConnectionProfilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionProfilesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConnectionProfilesGetCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConnectionProfilesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConnectionProfilesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.connectionProfiles.get" call. +// Exactly one of *ConnectionProfile or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ConnectionProfile.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 *ProjectsLocationsConnectionProfilesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionProfile, 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 := &ConnectionProfile{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets details of a single connection profile.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connectionProfiles/{connectionProfilesId}", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.connectionProfiles.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the connection profile resource to get.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/connectionProfiles/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "ConnectionProfile" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.connectionProfiles.getIamPolicy": + +type ProjectsLocationsConnectionProfilesGetIamPolicyCall 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 *ProjectsLocationsConnectionProfilesService) GetIamPolicy(resource string) *ProjectsLocationsConnectionProfilesGetIamPolicyCall { + c := &ProjectsLocationsConnectionProfilesGetIamPolicyCall{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 *ProjectsLocationsConnectionProfilesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsConnectionProfilesGetIamPolicyCall { + 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 information. +func (c *ProjectsLocationsConnectionProfilesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsConnectionProfilesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionProfilesGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConnectionProfilesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConnectionProfilesGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConnectionProfilesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.connectionProfiles.getIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsConnectionProfilesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "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}/connectionProfiles/{connectionProfilesId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.connectionProfiles.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/[^/]+/connectionProfiles/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:getIamPolicy", + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.connectionProfiles.list": + +type ProjectsLocationsConnectionProfilesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Retrieves a list of all connection profiles in a given project +// and location. +// +// - parent: The parent, which owns this collection of connection +// profiles. +func (r *ProjectsLocationsConnectionProfilesService) List(parent string) *ProjectsLocationsConnectionProfilesListCall { + c := &ProjectsLocationsConnectionProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": A filter expression that +// filters connection profiles listed in the response. The expression +// must specify the field name, a comparison operator, and the value +// that you want to use for filtering. The value must be a string, a +// number, or a boolean. The comparison operator must be either =, !=, +// >, or <. For example, list connection profiles created this year by +// specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z**. You +// can also filter nested fields. For example, you could specify +// **mySql.username = %lt;my_username%gt;** to list all connection +// profiles configured to connect with a specific username. +func (c *ProjectsLocationsConnectionProfilesListCall) Filter(filter string) *ProjectsLocationsConnectionProfilesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": A comma-separated list +// of fields to order results according to. +func (c *ProjectsLocationsConnectionProfilesListCall) OrderBy(orderBy string) *ProjectsLocationsConnectionProfilesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of connection profiles to return. The service may return fewer than +// this value. If unspecified, at most 50 connection profiles will be +// returned. The maximum value is 1000; values above 1000 will be +// coerced to 1000. +func (c *ProjectsLocationsConnectionProfilesListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionProfilesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListConnectionProfiles` call. Provide this +// to retrieve the subsequent page. When paginating, all other +// parameters provided to `ListConnectionProfiles` must match the call +// that provided the page token. +func (c *ProjectsLocationsConnectionProfilesListCall) PageToken(pageToken string) *ProjectsLocationsConnectionProfilesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConnectionProfilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsConnectionProfilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionProfilesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConnectionProfilesListCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConnectionProfilesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConnectionProfilesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/connectionProfiles") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.connectionProfiles.list" call. +// Exactly one of *ListConnectionProfilesResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListConnectionProfilesResponse.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 *ProjectsLocationsConnectionProfilesListCall) Do(opts ...googleapi.CallOption) (*ListConnectionProfilesResponse, 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 := &ListConnectionProfilesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieves a list of all connection profiles in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connectionProfiles", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.connectionProfiles.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "A filter expression that filters connection profiles listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, \u003e, or \u003c. For example, list connection profiles created this year by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z**. You can also filter nested fields. For example, you could specify **mySql.username = %lt;my_username%gt;** to list all connection profiles configured to connect with a specific username.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "A comma-separated list of fields to order results according to.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of connection profiles to return. The service may return fewer than this value. If unspecified, at most 50 connection profiles will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListConnectionProfiles` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListConnectionProfiles` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent, which owns this collection of connection profiles.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/connectionProfiles", + // "response": { + // "$ref": "ListConnectionProfilesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsConnectionProfilesListCall) Pages(ctx context.Context, f func(*ListConnectionProfilesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "datamigration.projects.locations.connectionProfiles.patch": + +type ProjectsLocationsConnectionProfilesPatchCall struct { + s *Service + name string + connectionprofile *ConnectionProfile + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update the configuration of a single connection profile. +// +// - name: The name of this connection profile resource in the form of +// projects/{project}/locations/{location}/connectionProfiles/{connecti +// onProfile}. +func (r *ProjectsLocationsConnectionProfilesService) Patch(name string, connectionprofile *ConnectionProfile) *ProjectsLocationsConnectionProfilesPatchCall { + c := &ProjectsLocationsConnectionProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.connectionprofile = connectionprofile + return c +} + +// RequestId sets the optional parameter "requestId": A unique id used +// to identify the request. If the server receives two requests with the +// same id, then the second request will be ignored. It is recommended +// to always set this value to a UUID. The id must contain only letters +// (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The +// maximum length is 40 characters. +func (c *ProjectsLocationsConnectionProfilesPatchCall) RequestId(requestId string) *ProjectsLocationsConnectionProfilesPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// SkipValidation sets the optional parameter "skipValidation": Update +// the connection profile without validating it. The default is false. +// Only supported for Oracle connection profiles. +func (c *ProjectsLocationsConnectionProfilesPatchCall) SkipValidation(skipValidation bool) *ProjectsLocationsConnectionProfilesPatchCall { + c.urlParams_.Set("skipValidation", fmt.Sprint(skipValidation)) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Field +// mask is used to specify the fields to be overwritten in the +// connection profile resource by the update. +func (c *ProjectsLocationsConnectionProfilesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConnectionProfilesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": Only +// validate the connection profile, but don't update any resources. The +// default is false. Only supported for Oracle connection profiles. +func (c *ProjectsLocationsConnectionProfilesPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsConnectionProfilesPatchCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConnectionProfilesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConnectionProfilesPatchCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConnectionProfilesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConnectionProfilesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.connectionprofile) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.connectionProfiles.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsConnectionProfilesPatchCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Update the configuration of a single connection profile.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connectionProfiles/{connectionProfilesId}", + // "httpMethod": "PATCH", + // "id": "datamigration.projects.locations.connectionProfiles.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of this connection profile resource in the form of projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/connectionProfiles/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + // "location": "query", + // "type": "string" + // }, + // "skipValidation": { + // "description": "Optional. Update the connection profile without validating it. The default is false. Only supported for Oracle connection profiles.", + // "location": "query", + // "type": "boolean" + // }, + // "updateMask": { + // "description": "Required. Field mask is used to specify the fields to be overwritten in the connection profile resource by the update.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "validateOnly": { + // "description": "Optional. Only validate the connection profile, but don't update any resources. The default is false. Only supported for Oracle connection profiles.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "ConnectionProfile" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.connectionProfiles.setIamPolicy": + +type ProjectsLocationsConnectionProfilesSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsConnectionProfilesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsConnectionProfilesSetIamPolicyCall { + c := &ProjectsLocationsConnectionProfilesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConnectionProfilesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConnectionProfilesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConnectionProfilesSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConnectionProfilesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.connectionProfiles.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsConnectionProfilesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "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}/connectionProfiles/{connectionProfilesId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.connectionProfiles.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/[^/]+/connectionProfiles/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.connectionProfiles.testIamPermissions": + +type ProjectsLocationsConnectionProfilesTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsConnectionProfilesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsConnectionProfilesTestIamPermissionsCall { + c := &ProjectsLocationsConnectionProfilesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConnectionProfilesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConnectionProfilesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConnectionProfilesTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConnectionProfilesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.connectionProfiles.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsConnectionProfilesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "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}/connectionProfiles/{connectionProfilesId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.connectionProfiles.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/[^/]+/connectionProfiles/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.conversionWorkspaces.apply": + +type ProjectsLocationsConversionWorkspacesApplyCall struct { + s *Service + name string + applyconversionworkspacerequest *ApplyConversionWorkspaceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Apply: Apply draft tree onto a specific destination database +// +// - name: Name of the conversion workspace resource to apply draft to +// destination for. in the form of: +// projects/{project}/locations/{location}/conversionWorkspaces/{conver +// sion_workspace}. +func (r *ProjectsLocationsConversionWorkspacesService) Apply(name string, applyconversionworkspacerequest *ApplyConversionWorkspaceRequest) *ProjectsLocationsConversionWorkspacesApplyCall { + c := &ProjectsLocationsConversionWorkspacesApplyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.applyconversionworkspacerequest = applyconversionworkspacerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConversionWorkspacesApplyCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversionWorkspacesApplyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConversionWorkspacesApplyCall) Context(ctx context.Context) *ProjectsLocationsConversionWorkspacesApplyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConversionWorkspacesApplyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversionWorkspacesApplyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.applyconversionworkspacerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:apply") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.conversionWorkspaces.apply" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsConversionWorkspacesApplyCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Apply draft tree onto a specific destination database", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}:apply", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.conversionWorkspaces.apply", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the conversion workspace resource to apply draft to destination for. in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:apply", + // "request": { + // "$ref": "ApplyConversionWorkspaceRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.conversionWorkspaces.commit": + +type ProjectsLocationsConversionWorkspacesCommitCall struct { + s *Service + name string + commitconversionworkspacerequest *CommitConversionWorkspaceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Commit: Marks all the data in the conversion workspace as committed. +// +// - name: Name of the conversion workspace resource to commit. +func (r *ProjectsLocationsConversionWorkspacesService) Commit(name string, commitconversionworkspacerequest *CommitConversionWorkspaceRequest) *ProjectsLocationsConversionWorkspacesCommitCall { + c := &ProjectsLocationsConversionWorkspacesCommitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.commitconversionworkspacerequest = commitconversionworkspacerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConversionWorkspacesCommitCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversionWorkspacesCommitCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConversionWorkspacesCommitCall) Context(ctx context.Context) *ProjectsLocationsConversionWorkspacesCommitCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConversionWorkspacesCommitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversionWorkspacesCommitCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.commitconversionworkspacerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:commit") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.conversionWorkspaces.commit" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsConversionWorkspacesCommitCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Marks all the data in the conversion workspace as committed.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}:commit", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.conversionWorkspaces.commit", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the conversion workspace resource to commit.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:commit", + // "request": { + // "$ref": "CommitConversionWorkspaceRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.conversionWorkspaces.convert": + +type ProjectsLocationsConversionWorkspacesConvertCall struct { + s *Service + name string + convertconversionworkspacerequest *ConvertConversionWorkspaceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Convert: Creates a draft tree schema for the destination database. +// +// - name: Name of the conversion workspace resource to convert in the +// form of: +// projects/{project}/locations/{location}/conversionWorkspaces/{conver +// sion_workspace}. +func (r *ProjectsLocationsConversionWorkspacesService) Convert(name string, convertconversionworkspacerequest *ConvertConversionWorkspaceRequest) *ProjectsLocationsConversionWorkspacesConvertCall { + c := &ProjectsLocationsConversionWorkspacesConvertCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.convertconversionworkspacerequest = convertconversionworkspacerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConversionWorkspacesConvertCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversionWorkspacesConvertCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConversionWorkspacesConvertCall) Context(ctx context.Context) *ProjectsLocationsConversionWorkspacesConvertCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConversionWorkspacesConvertCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversionWorkspacesConvertCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.convertconversionworkspacerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:convert") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.conversionWorkspaces.convert" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsConversionWorkspacesConvertCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a draft tree schema for the destination database.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}:convert", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.conversionWorkspaces.convert", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Name of the conversion workspace resource to convert in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:convert", + // "request": { + // "$ref": "ConvertConversionWorkspaceRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.conversionWorkspaces.create": + +type ProjectsLocationsConversionWorkspacesCreateCall struct { + s *Service + parent string + conversionworkspace *ConversionWorkspace + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new conversion workspace in a given project and +// location. +// +// - parent: The parent, which owns this collection of conversion +// workspaces. +func (r *ProjectsLocationsConversionWorkspacesService) Create(parent string, conversionworkspace *ConversionWorkspace) *ProjectsLocationsConversionWorkspacesCreateCall { + c := &ProjectsLocationsConversionWorkspacesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.conversionworkspace = conversionworkspace + return c +} + +// ConversionWorkspaceId sets the optional parameter +// "conversionWorkspaceId": Required. The ID of the conversion workspace +// to create. +func (c *ProjectsLocationsConversionWorkspacesCreateCall) ConversionWorkspaceId(conversionWorkspaceId string) *ProjectsLocationsConversionWorkspacesCreateCall { + c.urlParams_.Set("conversionWorkspaceId", conversionWorkspaceId) + return c +} + +// RequestId sets the optional parameter "requestId": A unique id used +// to identify the request. If the server receives two requests with the +// same id, then the second request will be ignored. It is recommended +// to always set this value to a UUID. The id must contain only letters +// (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The +// maximum length is 40 characters. +func (c *ProjectsLocationsConversionWorkspacesCreateCall) RequestId(requestId string) *ProjectsLocationsConversionWorkspacesCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConversionWorkspacesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversionWorkspacesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConversionWorkspacesCreateCall) Context(ctx context.Context) *ProjectsLocationsConversionWorkspacesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConversionWorkspacesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversionWorkspacesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.conversionworkspace) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversionWorkspaces") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.conversionWorkspaces.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsConversionWorkspacesCreateCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new conversion workspace in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.conversionWorkspaces.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "conversionWorkspaceId": { + // "description": "Required. The ID of the conversion workspace to create.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent, which owns this collection of conversion workspaces.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/conversionWorkspaces", + // "request": { + // "$ref": "ConversionWorkspace" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.conversionWorkspaces.delete": + +type ProjectsLocationsConversionWorkspacesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single conversion workspace. +// +// - name: Name of the conversion workspace resource to delete. +func (r *ProjectsLocationsConversionWorkspacesService) Delete(name string) *ProjectsLocationsConversionWorkspacesDeleteCall { + c := &ProjectsLocationsConversionWorkspacesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// RequestId sets the optional parameter "requestId": A unique id used +// to identify the request. If the server receives two requests with the +// same id, then the second request will be ignored. It is recommended +// to always set this value to a UUID. The id must contain only letters +// (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The +// maximum length is 40 characters. +func (c *ProjectsLocationsConversionWorkspacesDeleteCall) RequestId(requestId string) *ProjectsLocationsConversionWorkspacesDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConversionWorkspacesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversionWorkspacesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConversionWorkspacesDeleteCall) Context(ctx context.Context) *ProjectsLocationsConversionWorkspacesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConversionWorkspacesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversionWorkspacesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.conversionWorkspaces.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsConversionWorkspacesDeleteCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a single conversion workspace.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}", + // "httpMethod": "DELETE", + // "id": "datamigration.projects.locations.conversionWorkspaces.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the conversion workspace resource to delete.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.conversionWorkspaces.describeConversionWorkspaceRevisions": + +type ProjectsLocationsConversionWorkspacesDescribeConversionWorkspaceRevisionsCall struct { + s *Service + conversionWorkspace string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// DescribeConversionWorkspaceRevisions: Retrieves a list of committed +// revisions of a specific conversion workspace. +// +// - conversionWorkspace: Name of the conversion workspace resource +// whose revisions are listed. in the form of: +// projects/{project}/locations/{location}/conversionWorkspaces/{conver +// sion_workspace}. +func (r *ProjectsLocationsConversionWorkspacesService) DescribeConversionWorkspaceRevisions(conversionWorkspace string) *ProjectsLocationsConversionWorkspacesDescribeConversionWorkspaceRevisionsCall { + c := &ProjectsLocationsConversionWorkspacesDescribeConversionWorkspaceRevisionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.conversionWorkspace = conversionWorkspace + return c +} + +// CommitId sets the optional parameter "commitId": Optional filter to +// request a specific commit id +func (c *ProjectsLocationsConversionWorkspacesDescribeConversionWorkspaceRevisionsCall) CommitId(commitId string) *ProjectsLocationsConversionWorkspacesDescribeConversionWorkspaceRevisionsCall { + c.urlParams_.Set("commitId", commitId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConversionWorkspacesDescribeConversionWorkspaceRevisionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversionWorkspacesDescribeConversionWorkspaceRevisionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsConversionWorkspacesDescribeConversionWorkspaceRevisionsCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversionWorkspacesDescribeConversionWorkspaceRevisionsCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConversionWorkspacesDescribeConversionWorkspaceRevisionsCall) Context(ctx context.Context) *ProjectsLocationsConversionWorkspacesDescribeConversionWorkspaceRevisionsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConversionWorkspacesDescribeConversionWorkspaceRevisionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversionWorkspacesDescribeConversionWorkspaceRevisionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+conversionWorkspace}:describeConversionWorkspaceRevisions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "conversionWorkspace": c.conversionWorkspace, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.conversionWorkspaces.describeConversionWorkspaceRevisions" call. +// Exactly one of *DescribeConversionWorkspaceRevisionsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *DescribeConversionWorkspaceRevisionsResponse.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 *ProjectsLocationsConversionWorkspacesDescribeConversionWorkspaceRevisionsCall) Do(opts ...googleapi.CallOption) (*DescribeConversionWorkspaceRevisionsResponse, 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 := &DescribeConversionWorkspaceRevisionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieves a list of committed revisions of a specific conversion workspace.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}:describeConversionWorkspaceRevisions", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.conversionWorkspaces.describeConversionWorkspaceRevisions", + // "parameterOrder": [ + // "conversionWorkspace" + // ], + // "parameters": { + // "commitId": { + // "description": "Optional filter to request a specific commit id", + // "location": "query", + // "type": "string" + // }, + // "conversionWorkspace": { + // "description": "Required. Name of the conversion workspace resource whose revisions are listed. in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+conversionWorkspace}:describeConversionWorkspaceRevisions", + // "response": { + // "$ref": "DescribeConversionWorkspaceRevisionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.conversionWorkspaces.describeDatabaseEntities": + +type ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall struct { + s *Service + conversionWorkspace string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// DescribeDatabaseEntities: Use this method to describe the database +// entities tree for a specific conversion workspace and a specific tree +// type. The DB Entities are not a resource like conversion workspace or +// mapping rule, and they can not be created, updated or deleted like +// one. Instead they are simple data objects describing the structure of +// the client database. +// +// - conversionWorkspace: Name of the conversion workspace resource +// whose DB entities are described in the form of: +// projects/{project}/locations/{location}/conversionWorkspaces/{conver +// sion_workspace}. +func (r *ProjectsLocationsConversionWorkspacesService) DescribeDatabaseEntities(conversionWorkspace string) *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall { + c := &ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.conversionWorkspace = conversionWorkspace + return c +} + +// CommitId sets the optional parameter "commitId": Request a specific +// commit id. If not specified, the entities from the latest commit are +// returned. +func (c *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall) CommitId(commitId string) *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall { + c.urlParams_.Set("commitId", commitId) + return c +} + +// Filter sets the optional parameter "filter": Filter the returned +// entities based on AIP-160 standard +func (c *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall) Filter(filter string) *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of entities to return. The service may return fewer than this value. +func (c *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall) PageSize(pageSize int64) *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The nextPageToken +// value received in the previous call to +// conversionWorkspace.describeDatabaseEntities, used in the subsequent +// request to retrieve the next page of results. On first call this +// should be left blank. When paginating, all other parameters provided +// to conversionWorkspace.describeDatabaseEntities must match the call +// that provided the page token. +func (c *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall) PageToken(pageToken string) *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Tree sets the optional parameter "tree": The tree to fetch +// +// Possible values: +// +// "DB_TREE_TYPE_UNSPECIFIED" - Unspecified tree type +// "SOURCE_TREE" - The source database tree +// "DRAFT_TREE" - The draft database tree +// "DESTINATION_TREE" - The destination database tree +func (c *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall) Tree(tree string) *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall { + c.urlParams_.Set("tree", tree) + return c +} + +// Uncommitted sets the optional parameter "uncommitted": Whether to +// retrieve the latest committed version of the entities or the latest +// version. This field is ignored if a specific commit_id is specified. +func (c *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall) Uncommitted(uncommitted bool) *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall { + c.urlParams_.Set("uncommitted", fmt.Sprint(uncommitted)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall) Context(ctx context.Context) *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+conversionWorkspace}:describeDatabaseEntities") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "conversionWorkspace": c.conversionWorkspace, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.conversionWorkspaces.describeDatabaseEntities" call. +// Exactly one of *DescribeDatabaseEntitiesResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *DescribeDatabaseEntitiesResponse.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 *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall) Do(opts ...googleapi.CallOption) (*DescribeDatabaseEntitiesResponse, 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 := &DescribeDatabaseEntitiesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Use this method to describe the database entities tree for a specific conversion workspace and a specific tree type. The DB Entities are not a resource like conversion workspace or mapping rule, and they can not be created, updated or deleted like one. Instead they are simple data objects describing the structure of the client database.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}:describeDatabaseEntities", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.conversionWorkspaces.describeDatabaseEntities", + // "parameterOrder": [ + // "conversionWorkspace" + // ], + // "parameters": { + // "commitId": { + // "description": "Request a specific commit id. If not specified, the entities from the latest commit are returned.", + // "location": "query", + // "type": "string" + // }, + // "conversionWorkspace": { + // "description": "Required. Name of the conversion workspace resource whose DB entities are described in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "filter": { + // "description": "Filter the returned entities based on AIP-160 standard", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of entities to return. The service may return fewer than this value.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The nextPageToken value received in the previous call to conversionWorkspace.describeDatabaseEntities, used in the subsequent request to retrieve the next page of results. On first call this should be left blank. When paginating, all other parameters provided to conversionWorkspace.describeDatabaseEntities must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "tree": { + // "description": "The tree to fetch", + // "enum": [ + // "DB_TREE_TYPE_UNSPECIFIED", + // "SOURCE_TREE", + // "DRAFT_TREE", + // "DESTINATION_TREE" + // ], + // "enumDescriptions": [ + // "Unspecified tree type", + // "The source database tree", + // "The draft database tree", + // "The destination database tree" + // ], + // "location": "query", + // "type": "string" + // }, + // "uncommitted": { + // "description": "Whether to retrieve the latest committed version of the entities or the latest version. This field is ignored if a specific commit_id is specified.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "v1/{+conversionWorkspace}:describeDatabaseEntities", + // "response": { + // "$ref": "DescribeDatabaseEntitiesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } - // NullFields is a list of field names (e.g. "Vpc") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` } -func (s *VpcPeeringConnectivity) MarshalJSON() ([]byte, error) { - type NoMethod VpcPeeringConnectivity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +// 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 *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall) Pages(ctx context.Context, f func(*DescribeDatabaseEntitiesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } } -// method id "datamigration.projects.locations.get": +// method id "datamigration.projects.locations.conversionWorkspaces.get": -type ProjectsLocationsGetCall struct { +type ProjectsLocationsConversionWorkspacesGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -2339,11 +7033,11 @@ type ProjectsLocationsGetCall struct { header_ http.Header } -// Get: Gets information about a location. +// Get: Gets details of a single conversion workspace. // -// - name: Resource name for the location. -func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { - c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Name of the conversion workspace resource to get. +func (r *ProjectsLocationsConversionWorkspacesService) Get(name string) *ProjectsLocationsConversionWorkspacesGetCall { + c := &ProjectsLocationsConversionWorkspacesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -2351,7 +7045,7 @@ func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { +func (c *ProjectsLocationsConversionWorkspacesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversionWorkspacesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -2361,7 +7055,7 @@ func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocatio // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { +func (c *ProjectsLocationsConversionWorkspacesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversionWorkspacesGetCall { c.ifNoneMatch_ = entityTag return c } @@ -2369,21 +7063,21 @@ func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocati // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { +func (c *ProjectsLocationsConversionWorkspacesGetCall) Context(ctx context.Context) *ProjectsLocationsConversionWorkspacesGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsGetCall) Header() http.Header { +func (c *ProjectsLocationsConversionWorkspacesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsConversionWorkspacesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -2409,14 +7103,14 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.get" call. -// Exactly one of *Location or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Location.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 *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { +// Do executes the "datamigration.projects.locations.conversionWorkspaces.get" call. +// Exactly one of *ConversionWorkspace or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ConversionWorkspace.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 *ProjectsLocationsConversionWorkspacesGetCall) Do(opts ...googleapi.CallOption) (*ConversionWorkspace, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2435,7 +7129,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Location{ + ret := &ConversionWorkspace{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2447,25 +7141,25 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, } return ret, nil // { - // "description": "Gets information about a location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", + // "description": "Gets details of a single conversion workspace.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}", // "httpMethod": "GET", - // "id": "datamigration.projects.locations.get", + // "id": "datamigration.projects.locations.conversionWorkspaces.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Resource name for the location.", + // "description": "Required. Name of the conversion workspace resource to get.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "Location" + // "$ref": "ConversionWorkspace" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -2474,103 +7168,309 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, } -// method id "datamigration.projects.locations.list": +// method id "datamigration.projects.locations.conversionWorkspaces.list": -type ProjectsLocationsListCall struct { +type ProjectsLocationsConversionWorkspacesListCall struct { s *Service - name string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists information about the supported locations for this -// service. +// List: Lists conversion workspaces in a given project and location. // -// - name: The resource that owns the locations collection, if -// applicable. -func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { - c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The parent, which owns this collection of conversion +// workspaces. +func (r *ProjectsLocationsConversionWorkspacesService) List(parent string) *ProjectsLocationsConversionWorkspacesListCall { + c := &ProjectsLocationsConversionWorkspacesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } -// Filter sets the optional parameter "filter": A filter to narrow down -// results to a preferred subset. The filtering language accepts strings -// like "displayName=tokyo", and is documented in more detail in -// AIP-160 (https://google.aip.dev/160). -func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { +// Filter sets the optional parameter "filter": A filter expression that +// filters conversion workspaces listed in the response. The expression +// must specify the field name, a comparison operator, and the value +// that you want to use for filtering. The value must be a string, a +// number, or a boolean. The comparison operator must be either =, !=, +// >, or <. For example, list conversion workspaces created this year by +// specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You +// can also filter nested fields. For example, you could specify +// **source.version = "12.c.1"** to select all conversion workspaces +// with source database version equal to 12.c.1 +func (c *ProjectsLocationsConversionWorkspacesListCall) Filter(filter string) *ProjectsLocationsConversionWorkspacesListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The maximum number -// of results to return. If not set, the service selects a default. -func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { +// of conversion workspaces to return. The service may return fewer than +// this value. If unspecified, at most 50 sets will be returned. +func (c *ProjectsLocationsConversionWorkspacesListCall) PageSize(pageSize int64) *ProjectsLocationsConversionWorkspacesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token -// received from the `next_page_token` field in the response. Send that -// page token to receive the subsequent page. -func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// PageToken sets the optional parameter "pageToken": The nextPageToken +// value received in the previous call to conversionWorkspaces.list, +// used in the subsequent request to retrieve the next page of results. +// On first call this should be left blank. When paginating, all other +// parameters provided to conversionWorkspaces.list must match the call +// that provided the page token. +func (c *ProjectsLocationsConversionWorkspacesListCall) PageToken(pageToken string) *ProjectsLocationsConversionWorkspacesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConversionWorkspacesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversionWorkspacesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsConversionWorkspacesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversionWorkspacesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConversionWorkspacesListCall) Context(ctx context.Context) *ProjectsLocationsConversionWorkspacesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConversionWorkspacesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversionWorkspacesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversionWorkspaces") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.conversionWorkspaces.list" call. +// Exactly one of *ListConversionWorkspacesResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListConversionWorkspacesResponse.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 *ProjectsLocationsConversionWorkspacesListCall) Do(opts ...googleapi.CallOption) (*ListConversionWorkspacesResponse, 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 := &ListConversionWorkspacesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists conversion workspaces in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.conversionWorkspaces.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "A filter expression that filters conversion workspaces listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, \u003e, or \u003c. For example, list conversion workspaces created this year by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can also filter nested fields. For example, you could specify **source.version = \"12.c.1\"** to select all conversion workspaces with source database version equal to 12.c.1", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of conversion workspaces to return. The service may return fewer than this value. If unspecified, at most 50 sets will be returned.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The nextPageToken value received in the previous call to conversionWorkspaces.list, used in the subsequent request to retrieve the next page of results. On first call this should be left blank. When paginating, all other parameters provided to conversionWorkspaces.list must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent, which owns this collection of conversion workspaces.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/conversionWorkspaces", + // "response": { + // "$ref": "ListConversionWorkspacesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsConversionWorkspacesListCall) Pages(ctx context.Context, f func(*ListConversionWorkspacesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "datamigration.projects.locations.conversionWorkspaces.patch": + +type ProjectsLocationsConversionWorkspacesPatchCall struct { + s *Service + name string + conversionworkspace *ConversionWorkspace + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the parameters of a single conversion workspace. +// +// - name: Full name of the workspace resource, in the form of: +// projects/{project}/locations/{location}/conversionWorkspaces/{conver +// sion_workspace}. +func (r *ProjectsLocationsConversionWorkspacesService) Patch(name string, conversionworkspace *ConversionWorkspace) *ProjectsLocationsConversionWorkspacesPatchCall { + c := &ProjectsLocationsConversionWorkspacesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.conversionworkspace = conversionworkspace + return c +} + +// RequestId sets the optional parameter "requestId": A unique id used +// to identify the request. If the server receives two requests with the +// same id, then the second request will be ignored. It is recommended +// to always set this value to a UUID. The id must contain only letters +// (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The +// maximum length is 40 characters. +func (c *ProjectsLocationsConversionWorkspacesPatchCall) RequestId(requestId string) *ProjectsLocationsConversionWorkspacesPatchCall { + 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 +// conversion workspace resource by the update. +func (c *ProjectsLocationsConversionWorkspacesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConversionWorkspacesPatchCall { + 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 information. -func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { +func (c *ProjectsLocationsConversionWorkspacesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversionWorkspacesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { +func (c *ProjectsLocationsConversionWorkspacesPatchCall) Context(ctx context.Context) *ProjectsLocationsConversionWorkspacesPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsListCall) Header() http.Header { +func (c *ProjectsLocationsConversionWorkspacesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsConversionWorkspacesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.conversionworkspace) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -2581,14 +7481,14 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.list" call. -// Exactly one of *ListLocationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListLocationsResponse.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { +// Do executes the "datamigration.projects.locations.conversionWorkspaces.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsConversionWorkspacesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2607,7 +7507,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListLocationsResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2619,41 +7519,39 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat } return ret, nil // { - // "description": "Lists information about the supported locations for this service.", - // "flatPath": "v1/projects/{projectsId}/locations", - // "httpMethod": "GET", - // "id": "datamigration.projects.locations.list", + // "description": "Updates the parameters of a single conversion workspace.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}", + // "httpMethod": "PATCH", + // "id": "datamigration.projects.locations.conversionWorkspaces.patch", // "parameterOrder": [ // "name" // ], // "parameters": { - // "filter": { - // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", - // "location": "query", - // "type": "string" - // }, // "name": { - // "description": "The resource that owns the locations collection, if applicable.", + // "description": "Full name of the workspace resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.", // "location": "path", - // "pattern": "^projects/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", // "required": true, // "type": "string" // }, - // "pageSize": { - // "description": "The maximum number of results to return. If not set, the service selects a default.", - // "format": "int32", + // "requestId": { + // "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", // "location": "query", - // "type": "integer" + // "type": "string" // }, - // "pageToken": { - // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + // "updateMask": { + // "description": "Required. Field mask is used to specify the fields to be overwritten in the conversion workspace resource by the update.", + // "format": "google-fieldmask", // "location": "query", // "type": "string" // } // }, - // "path": "v1/{+name}/locations", + // "path": "v1/{+name}", + // "request": { + // "$ref": "ConversionWorkspace" + // }, // "response": { - // "$ref": "ListLocationsResponse" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -2662,72 +7560,32 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat } -// 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 *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "datamigration.projects.locations.connectionProfiles.create": +// method id "datamigration.projects.locations.conversionWorkspaces.rollback": -type ProjectsLocationsConnectionProfilesCreateCall struct { - s *Service - parent string - connectionprofile *ConnectionProfile - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsConversionWorkspacesRollbackCall struct { + s *Service + name string + rollbackconversionworkspacerequest *RollbackConversionWorkspaceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new connection profile in a given project and -// location. +// Rollback: Rollbacks a conversion workspace to the last committed +// spanshot. // -// - parent: The parent, which owns this collection of connection -// profiles. -func (r *ProjectsLocationsConnectionProfilesService) Create(parent string, connectionprofile *ConnectionProfile) *ProjectsLocationsConnectionProfilesCreateCall { - c := &ProjectsLocationsConnectionProfilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.connectionprofile = connectionprofile - return c -} - -// ConnectionProfileId sets the optional parameter -// "connectionProfileId": Required. The connection profile identifier. -func (c *ProjectsLocationsConnectionProfilesCreateCall) ConnectionProfileId(connectionProfileId string) *ProjectsLocationsConnectionProfilesCreateCall { - c.urlParams_.Set("connectionProfileId", connectionProfileId) - return c -} - -// RequestId sets the optional parameter "requestId": A unique id used -// to identify the request. If the server receives two requests with the -// same id, then the second request will be ignored. It is recommended -// to always set this value to a UUID. The id must contain only letters -// (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The -// maximum length is 40 characters. -func (c *ProjectsLocationsConnectionProfilesCreateCall) RequestId(requestId string) *ProjectsLocationsConnectionProfilesCreateCall { - c.urlParams_.Set("requestId", requestId) +// - name: Name of the conversion workspace resource to rollback to. +func (r *ProjectsLocationsConversionWorkspacesService) Rollback(name string, rollbackconversionworkspacerequest *RollbackConversionWorkspaceRequest) *ProjectsLocationsConversionWorkspacesRollbackCall { + c := &ProjectsLocationsConversionWorkspacesRollbackCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.rollbackconversionworkspacerequest = rollbackconversionworkspacerequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsConnectionProfilesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesCreateCall { +func (c *ProjectsLocationsConversionWorkspacesRollbackCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversionWorkspacesRollbackCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -2735,21 +7593,21 @@ func (c *ProjectsLocationsConnectionProfilesCreateCall) Fields(s ...googleapi.Fi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsConnectionProfilesCreateCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesCreateCall { +func (c *ProjectsLocationsConversionWorkspacesRollbackCall) Context(ctx context.Context) *ProjectsLocationsConversionWorkspacesRollbackCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsConnectionProfilesCreateCall) Header() http.Header { +func (c *ProjectsLocationsConversionWorkspacesRollbackCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionProfilesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsConversionWorkspacesRollbackCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -2757,14 +7615,14 @@ func (c *ProjectsLocationsConnectionProfilesCreateCall) doRequest(alt string) (* } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.connectionprofile) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.rollbackconversionworkspacerequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/connectionProfiles") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:rollback") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -2772,19 +7630,19 @@ func (c *ProjectsLocationsConnectionProfilesCreateCall) doRequest(alt string) (* } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.connectionProfiles.create" call. +// Do executes the "datamigration.projects.locations.conversionWorkspaces.rollback" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsConnectionProfilesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsConversionWorkspacesRollbackCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2815,35 +7673,25 @@ func (c *ProjectsLocationsConnectionProfilesCreateCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Creates a new connection profile in a given project and location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connectionProfiles", + // "description": "Rollbacks a conversion workspace to the last committed spanshot.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}:rollback", // "httpMethod": "POST", - // "id": "datamigration.projects.locations.connectionProfiles.create", + // "id": "datamigration.projects.locations.conversionWorkspaces.rollback", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "connectionProfileId": { - // "description": "Required. The connection profile identifier.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent, which owns this collection of connection profiles.", + // "name": { + // "description": "Required. Name of the conversion workspace resource to rollback to.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", // "required": true, // "type": "string" - // }, - // "requestId": { - // "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+parent}/connectionProfiles", + // "path": "v1/{+name}:rollback", // "request": { - // "$ref": "ConnectionProfile" + // "$ref": "RollbackConversionWorkspaceRequest" // }, // "response": { // "$ref": "Operation" @@ -2855,102 +7703,127 @@ func (c *ProjectsLocationsConnectionProfilesCreateCall) Do(opts ...googleapi.Cal } -// method id "datamigration.projects.locations.connectionProfiles.delete": +// method id "datamigration.projects.locations.conversionWorkspaces.searchBackgroundJobs": -type ProjectsLocationsConnectionProfilesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsConversionWorkspacesSearchBackgroundJobsCall struct { + s *Service + conversionWorkspace string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a single Database Migration Service connection -// profile. A connection profile can only be deleted if it is not in use -// by any active migration jobs. +// SearchBackgroundJobs: Use this method to search/list the background +// jobs for a specific conversion workspace. The background jobs are not +// a resource like conversion workspace or mapping rule, and they can +// not be created, updated or deleted like one. Instead they are a way +// to expose the data plane jobs log. // -// - name: Name of the connection profile resource to delete. -func (r *ProjectsLocationsConnectionProfilesService) Delete(name string) *ProjectsLocationsConnectionProfilesDeleteCall { - c := &ProjectsLocationsConnectionProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - conversionWorkspace: Name of the conversion workspace resource whos +// jobs are listed. in the form of: +// projects/{project}/locations/{location}/conversionWorkspaces/{conver +// sion_workspace}. +func (r *ProjectsLocationsConversionWorkspacesService) SearchBackgroundJobs(conversionWorkspace string) *ProjectsLocationsConversionWorkspacesSearchBackgroundJobsCall { + c := &ProjectsLocationsConversionWorkspacesSearchBackgroundJobsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.conversionWorkspace = conversionWorkspace return c } -// Force sets the optional parameter "force": In case of force delete, -// the CloudSQL replica database is also deleted (only for CloudSQL -// connection profile). -func (c *ProjectsLocationsConnectionProfilesDeleteCall) Force(force bool) *ProjectsLocationsConnectionProfilesDeleteCall { - c.urlParams_.Set("force", fmt.Sprint(force)) +// CompletedUntilTime sets the optional parameter "completedUntilTime": +// If supplied, will only return jobs that completed until (not +// including) the given timestamp. +func (c *ProjectsLocationsConversionWorkspacesSearchBackgroundJobsCall) CompletedUntilTime(completedUntilTime string) *ProjectsLocationsConversionWorkspacesSearchBackgroundJobsCall { + c.urlParams_.Set("completedUntilTime", completedUntilTime) return c } -// RequestId sets the optional parameter "requestId": A unique id used -// to identify the request. If the server receives two requests with the -// same id, then the second request will be ignored. It is recommended -// to always set this value to a UUID. The id must contain only letters -// (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The -// maximum length is 40 characters. -func (c *ProjectsLocationsConnectionProfilesDeleteCall) RequestId(requestId string) *ProjectsLocationsConnectionProfilesDeleteCall { - c.urlParams_.Set("requestId", requestId) +// MaxSize sets the optional parameter "maxSize": The maximum number of +// jobs to return. The service may return fewer than this value. If +// unspecified, at most 100 jobs will be returned. The maximum value is +// 100; values above 100 will be coerced to 100. +func (c *ProjectsLocationsConversionWorkspacesSearchBackgroundJobsCall) MaxSize(maxSize int64) *ProjectsLocationsConversionWorkspacesSearchBackgroundJobsCall { + c.urlParams_.Set("maxSize", fmt.Sprint(maxSize)) + return c +} + +// ReturnMostRecentPerJobType sets the optional parameter +// "returnMostRecentPerJobType": Whether or not to return just the most +// recent job per job type +func (c *ProjectsLocationsConversionWorkspacesSearchBackgroundJobsCall) ReturnMostRecentPerJobType(returnMostRecentPerJobType bool) *ProjectsLocationsConversionWorkspacesSearchBackgroundJobsCall { + c.urlParams_.Set("returnMostRecentPerJobType", fmt.Sprint(returnMostRecentPerJobType)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsConnectionProfilesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesDeleteCall { +func (c *ProjectsLocationsConversionWorkspacesSearchBackgroundJobsCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversionWorkspacesSearchBackgroundJobsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsConversionWorkspacesSearchBackgroundJobsCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversionWorkspacesSearchBackgroundJobsCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsConnectionProfilesDeleteCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesDeleteCall { +func (c *ProjectsLocationsConversionWorkspacesSearchBackgroundJobsCall) Context(ctx context.Context) *ProjectsLocationsConversionWorkspacesSearchBackgroundJobsCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsConnectionProfilesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsConversionWorkspacesSearchBackgroundJobsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionProfilesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsConversionWorkspacesSearchBackgroundJobsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+conversionWorkspace}:searchBackgroundJobs") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "conversionWorkspace": c.conversionWorkspace, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.connectionProfiles.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsConnectionProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// Do executes the "datamigration.projects.locations.conversionWorkspaces.searchBackgroundJobs" call. +// Exactly one of *SearchBackgroundJobsResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *SearchBackgroundJobsResponse.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 *ProjectsLocationsConversionWorkspacesSearchBackgroundJobsCall) Do(opts ...googleapi.CallOption) (*SearchBackgroundJobsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2969,7 +7842,7 @@ func (c *ProjectsLocationsConnectionProfilesDeleteCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &SearchBackgroundJobsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2981,35 +7854,42 @@ func (c *ProjectsLocationsConnectionProfilesDeleteCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Deletes a single Database Migration Service connection profile. A connection profile can only be deleted if it is not in use by any active migration jobs.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connectionProfiles/{connectionProfilesId}", - // "httpMethod": "DELETE", - // "id": "datamigration.projects.locations.connectionProfiles.delete", + // "description": "Use this method to search/list the background jobs for a specific conversion workspace. The background jobs are not a resource like conversion workspace or mapping rule, and they can not be created, updated or deleted like one. Instead they are a way to expose the data plane jobs log.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}:searchBackgroundJobs", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.conversionWorkspaces.searchBackgroundJobs", // "parameterOrder": [ - // "name" + // "conversionWorkspace" // ], // "parameters": { - // "force": { - // "description": "In case of force delete, the CloudSQL replica database is also deleted (only for CloudSQL connection profile).", + // "completedUntilTime": { + // "description": "Optional. If supplied, will only return jobs that completed until (not including) the given timestamp.", + // "format": "google-datetime", // "location": "query", - // "type": "boolean" + // "type": "string" // }, - // "name": { - // "description": "Required. Name of the connection profile resource to delete.", + // "conversionWorkspace": { + // "description": "Required. Name of the conversion workspace resource whos jobs are listed. in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/connectionProfiles/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", // "required": true, // "type": "string" // }, - // "requestId": { - // "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + // "maxSize": { + // "description": "Optional. The maximum number of jobs to return. The service may return fewer than this value. If unspecified, at most 100 jobs will be returned. The maximum value is 100; values above 100 will be coerced to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "returnMostRecentPerJobType": { + // "description": "Optional. Whether or not to return just the most recent job per job type", // "location": "query", - // "type": "string" + // "type": "boolean" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+conversionWorkspace}:searchBackgroundJobs", // "response": { - // "$ref": "Operation" + // "$ref": "SearchBackgroundJobsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -3018,77 +7898,74 @@ func (c *ProjectsLocationsConnectionProfilesDeleteCall) Do(opts ...googleapi.Cal } -// method id "datamigration.projects.locations.connectionProfiles.get": +// method id "datamigration.projects.locations.conversionWorkspaces.seed": -type ProjectsLocationsConnectionProfilesGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsConversionWorkspacesSeedCall struct { + s *Service + name string + seedconversionworkspacerequest *SeedConversionWorkspaceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets details of a single connection profile. +// Seed: Imports a snapshot of the source database into the conversion +// workspace. // -// - name: Name of the connection profile resource to get. -func (r *ProjectsLocationsConnectionProfilesService) Get(name string) *ProjectsLocationsConnectionProfilesGetCall { - c := &ProjectsLocationsConnectionProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Name of the conversion workspace resource to seed with new +// database structure. in the form of: +// projects/{project}/locations/{location}/conversionWorkspaces/{conver +// sion_workspace}. +func (r *ProjectsLocationsConversionWorkspacesService) Seed(name string, seedconversionworkspacerequest *SeedConversionWorkspaceRequest) *ProjectsLocationsConversionWorkspacesSeedCall { + c := &ProjectsLocationsConversionWorkspacesSeedCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.seedconversionworkspacerequest = seedconversionworkspacerequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsConnectionProfilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesGetCall { +func (c *ProjectsLocationsConversionWorkspacesSeedCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversionWorkspacesSeedCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsConnectionProfilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionProfilesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsConnectionProfilesGetCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesGetCall { +func (c *ProjectsLocationsConversionWorkspacesSeedCall) Context(ctx context.Context) *ProjectsLocationsConversionWorkspacesSeedCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsConnectionProfilesGetCall) Header() http.Header { +func (c *ProjectsLocationsConversionWorkspacesSeedCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionProfilesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsConversionWorkspacesSeedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.seedconversionworkspacerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:seed") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -3099,14 +7976,14 @@ func (c *ProjectsLocationsConnectionProfilesGetCall) doRequest(alt string) (*htt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.connectionProfiles.get" call. -// Exactly one of *ConnectionProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ConnectionProfile.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 *ProjectsLocationsConnectionProfilesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionProfile, error) { +// Do executes the "datamigration.projects.locations.conversionWorkspaces.seed" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsConversionWorkspacesSeedCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3125,7 +8002,7 @@ func (c *ProjectsLocationsConnectionProfilesGetCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ConnectionProfile{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -3137,25 +8014,28 @@ func (c *ProjectsLocationsConnectionProfilesGetCall) Do(opts ...googleapi.CallOp } return ret, nil // { - // "description": "Gets details of a single connection profile.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connectionProfiles/{connectionProfilesId}", - // "httpMethod": "GET", - // "id": "datamigration.projects.locations.connectionProfiles.get", + // "description": "Imports a snapshot of the source database into the conversion workspace.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}:seed", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.conversionWorkspaces.seed", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the connection profile resource to get.", + // "description": "Name of the conversion workspace resource to seed with new database structure. in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/connectionProfiles/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+name}:seed", + // "request": { + // "$ref": "SeedConversionWorkspaceRequest" + // }, // "response": { - // "$ref": "ConnectionProfile" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -3164,118 +8044,92 @@ func (c *ProjectsLocationsConnectionProfilesGetCall) Do(opts ...googleapi.CallOp } -// method id "datamigration.projects.locations.connectionProfiles.getIamPolicy": +// method id "datamigration.projects.locations.conversionWorkspaces.mappingRules.import": -type ProjectsLocationsConnectionProfilesGetIamPolicyCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsConversionWorkspacesMappingRulesImportCall struct { + s *Service + parent string + importmappingrulesrequest *ImportMappingRulesRequest + urlParams_ gensupport.URLParams + 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. +// Import: Imports the mapping rules for a given conversion workspace. +// Supports various formats of external rules files. // -// - 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 *ProjectsLocationsConnectionProfilesService) GetIamPolicy(resource string) *ProjectsLocationsConnectionProfilesGetIamPolicyCall { - c := &ProjectsLocationsConnectionProfilesGetIamPolicyCall{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 *ProjectsLocationsConnectionProfilesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsConnectionProfilesGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// - parent: Name of the conversion workspace resource to import the +// rules to in the form of: +// projects/{project}/locations/{location}/conversionWorkspaces/{conver +// sion_workspace}. +func (r *ProjectsLocationsConversionWorkspacesMappingRulesService) Import(parent string, importmappingrulesrequest *ImportMappingRulesRequest) *ProjectsLocationsConversionWorkspacesMappingRulesImportCall { + c := &ProjectsLocationsConversionWorkspacesMappingRulesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.importmappingrulesrequest = importmappingrulesrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsConnectionProfilesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesGetIamPolicyCall { +func (c *ProjectsLocationsConversionWorkspacesMappingRulesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversionWorkspacesMappingRulesImportCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsConnectionProfilesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionProfilesGetIamPolicyCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsConnectionProfilesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesGetIamPolicyCall { +func (c *ProjectsLocationsConversionWorkspacesMappingRulesImportCall) Context(ctx context.Context) *ProjectsLocationsConversionWorkspacesMappingRulesImportCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsConnectionProfilesGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsConversionWorkspacesMappingRulesImportCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionProfilesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsConversionWorkspacesMappingRulesImportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.importmappingrulesrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/mappingRules:import") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + 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, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.connectionProfiles.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *ProjectsLocationsConnectionProfilesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { +// Do executes the "datamigration.projects.locations.conversionWorkspaces.mappingRules.import" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsConversionWorkspacesMappingRulesImportCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3294,7 +8148,7 @@ func (c *ProjectsLocationsConnectionProfilesGetIamPolicyCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Policy{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -3306,31 +8160,28 @@ func (c *ProjectsLocationsConnectionProfilesGetIamPolicyCall) Do(opts ...googlea } return ret, nil // { - // "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}/connectionProfiles/{connectionProfilesId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "datamigration.projects.locations.connectionProfiles.getIamPolicy", + // "description": "Imports the mapping rules for a given conversion workspace. Supports various formats of external rules files.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}/mappingRules:import", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.conversionWorkspaces.mappingRules.import", // "parameterOrder": [ - // "resource" + // "parent" // ], // "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.", + // "parent": { + // "description": "Required. Name of the conversion workspace resource to import the rules to in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/connectionProfiles/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+resource}:getIamPolicy", + // "path": "v1/{+parent}/mappingRules:import", + // "request": { + // "$ref": "ImportMappingRulesRequest" + // }, // "response": { - // "$ref": "Policy" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -3339,121 +8190,88 @@ func (c *ProjectsLocationsConnectionProfilesGetIamPolicyCall) Do(opts ...googlea } -// method id "datamigration.projects.locations.connectionProfiles.list": +// method id "datamigration.projects.locations.migrationJobs.create": -type ProjectsLocationsConnectionProfilesListCall struct { +type ProjectsLocationsMigrationJobsCreateCall struct { s *Service parent string + migrationjob *MigrationJob urlParams_ gensupport.URLParams - ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Retrieves a list of all connection profiles in a given project -// and location. +// Create: Creates a new migration job in a given project and location. // -// - parent: The parent, which owns this collection of connection -// profiles. -func (r *ProjectsLocationsConnectionProfilesService) List(parent string) *ProjectsLocationsConnectionProfilesListCall { - c := &ProjectsLocationsConnectionProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The parent, which owns this collection of migration jobs. +func (r *ProjectsLocationsMigrationJobsService) Create(parent string, migrationjob *MigrationJob) *ProjectsLocationsMigrationJobsCreateCall { + c := &ProjectsLocationsMigrationJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent + c.migrationjob = migrationjob return c } -// Filter sets the optional parameter "filter": A filter expression that -// filters connection profiles listed in the response. The expression -// must specify the field name, a comparison operator, and the value -// that you want to use for filtering. The value must be a string, a -// number, or a boolean. The comparison operator must be either =, !=, -// >, or <. For example, list connection profiles created this year by -// specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z**. You -// can also filter nested fields. For example, you could specify -// **mySql.username = %lt;my_username%gt;** to list all connection -// profiles configured to connect with a specific username. -func (c *ProjectsLocationsConnectionProfilesListCall) Filter(filter string) *ProjectsLocationsConnectionProfilesListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": A comma-separated list -// of fields to order results according to. -func (c *ProjectsLocationsConnectionProfilesListCall) OrderBy(orderBy string) *ProjectsLocationsConnectionProfilesListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of connection profiles to return. The service may return fewer than -// this value. If unspecified, at most 50 connection profiles will be -// returned. The maximum value is 1000; values above 1000 will be -// coerced to 1000. -func (c *ProjectsLocationsConnectionProfilesListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionProfilesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// MigrationJobId sets the optional parameter "migrationJobId": +// Required. The ID of the instance to create. +func (c *ProjectsLocationsMigrationJobsCreateCall) MigrationJobId(migrationJobId string) *ProjectsLocationsMigrationJobsCreateCall { + c.urlParams_.Set("migrationJobId", migrationJobId) return c } -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `ListConnectionProfiles` call. Provide this -// to retrieve the subsequent page. When paginating, all other -// parameters provided to `ListConnectionProfiles` must match the call -// that provided the page token. -func (c *ProjectsLocationsConnectionProfilesListCall) PageToken(pageToken string) *ProjectsLocationsConnectionProfilesListCall { - c.urlParams_.Set("pageToken", pageToken) +// RequestId sets the optional parameter "requestId": A unique id used +// to identify the request. If the server receives two requests with the +// same id, then the second request will be ignored. It is recommended +// to always set this value to a UUID. The id must contain only letters +// (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The +// maximum length is 40 characters. +func (c *ProjectsLocationsMigrationJobsCreateCall) RequestId(requestId string) *ProjectsLocationsMigrationJobsCreateCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsConnectionProfilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsConnectionProfilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionProfilesListCall { - c.ifNoneMatch_ = entityTag +func (c *ProjectsLocationsMigrationJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsConnectionProfilesListCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesListCall { +func (c *ProjectsLocationsMigrationJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsConnectionProfilesListCall) Header() http.Header { +func (c *ProjectsLocationsMigrationJobsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionProfilesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMigrationJobsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.migrationjob) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/connectionProfiles") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/migrationJobs") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -3464,14 +8282,14 @@ func (c *ProjectsLocationsConnectionProfilesListCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.connectionProfiles.list" call. -// Exactly one of *ListConnectionProfilesResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListConnectionProfilesResponse.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 *ProjectsLocationsConnectionProfilesListCall) Do(opts ...googleapi.CallOption) (*ListConnectionProfilesResponse, error) { +// Do executes the "datamigration.projects.locations.migrationJobs.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsMigrationJobsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3490,7 +8308,7 @@ func (c *ProjectsLocationsConnectionProfilesListCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListConnectionProfilesResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -3502,46 +8320,38 @@ func (c *ProjectsLocationsConnectionProfilesListCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Retrieves a list of all connection profiles in a given project and location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connectionProfiles", - // "httpMethod": "GET", - // "id": "datamigration.projects.locations.connectionProfiles.list", + // "description": "Creates a new migration job in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.migrationJobs.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "filter": { - // "description": "A filter expression that filters connection profiles listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, \u003e, or \u003c. For example, list connection profiles created this year by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z**. You can also filter nested fields. For example, you could specify **mySql.username = %lt;my_username%gt;** to list all connection profiles configured to connect with a specific username.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "A comma-separated list of fields to order results according to.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of connection profiles to return. The service may return fewer than this value. If unspecified, at most 50 connection profiles will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous `ListConnectionProfiles` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListConnectionProfiles` must match the call that provided the page token.", + // "migrationJobId": { + // "description": "Required. The ID of the instance to create.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The parent, which owns this collection of connection profiles.", + // "description": "Required. The parent, which owns this collection of migration jobs.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" + // }, + // "requestId": { + // "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+parent}/connectionProfiles", + // "path": "v1/{+parent}/migrationJobs", + // "request": { + // "$ref": "MigrationJob" + // }, // "response": { - // "$ref": "ListConnectionProfilesResponse" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -3550,47 +8360,31 @@ func (c *ProjectsLocationsConnectionProfilesListCall) Do(opts ...googleapi.CallO } -// 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 *ProjectsLocationsConnectionProfilesListCall) Pages(ctx context.Context, f func(*ListConnectionProfilesResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "datamigration.projects.locations.connectionProfiles.patch": +// method id "datamigration.projects.locations.migrationJobs.delete": -type ProjectsLocationsConnectionProfilesPatchCall struct { - s *Service - name string - connectionprofile *ConnectionProfile - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMigrationJobsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Update the configuration of a single connection profile. +// Delete: Deletes a single migration job. // -// - name: The name of this connection profile resource in the form of -// projects/{project}/locations/{location}/connectionProfiles/{connecti -// onProfile}. -func (r *ProjectsLocationsConnectionProfilesService) Patch(name string, connectionprofile *ConnectionProfile) *ProjectsLocationsConnectionProfilesPatchCall { - c := &ProjectsLocationsConnectionProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Name of the migration job resource to delete. +func (r *ProjectsLocationsMigrationJobsService) Delete(name string) *ProjectsLocationsMigrationJobsDeleteCall { + c := &ProjectsLocationsMigrationJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.connectionprofile = connectionprofile + return c +} + +// Force sets the optional parameter "force": The destination CloudSQL +// connection profile is always deleted with the migration job. In case +// of force delete, the destination CloudSQL replica database is also +// deleted. +func (c *ProjectsLocationsMigrationJobsDeleteCall) Force(force bool) *ProjectsLocationsMigrationJobsDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) return c } @@ -3600,23 +8394,15 @@ func (r *ProjectsLocationsConnectionProfilesService) Patch(name string, connecti // to always set this value to a UUID. The id must contain only letters // (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The // maximum length is 40 characters. -func (c *ProjectsLocationsConnectionProfilesPatchCall) RequestId(requestId string) *ProjectsLocationsConnectionProfilesPatchCall { +func (c *ProjectsLocationsMigrationJobsDeleteCall) RequestId(requestId string) *ProjectsLocationsMigrationJobsDeleteCall { 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 -// connection profile resource by the update. -func (c *ProjectsLocationsConnectionProfilesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConnectionProfilesPatchCall { - 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 information. -func (c *ProjectsLocationsConnectionProfilesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesPatchCall { +func (c *ProjectsLocationsMigrationJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -3624,21 +8410,21 @@ func (c *ProjectsLocationsConnectionProfilesPatchCall) Fields(s ...googleapi.Fie // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsConnectionProfilesPatchCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesPatchCall { +func (c *ProjectsLocationsMigrationJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsConnectionProfilesPatchCall) Header() http.Header { +func (c *ProjectsLocationsMigrationJobsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionProfilesPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMigrationJobsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -3646,16 +8432,11 @@ func (c *ProjectsLocationsConnectionProfilesPatchCall) doRequest(alt string) (*h } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.connectionprofile) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -3666,14 +8447,14 @@ func (c *ProjectsLocationsConnectionProfilesPatchCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.connectionProfiles.patch" call. +// Do executes the "datamigration.projects.locations.migrationJobs.delete" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsConnectionProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsMigrationJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3704,18 +8485,23 @@ func (c *ProjectsLocationsConnectionProfilesPatchCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Update the configuration of a single connection profile.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connectionProfiles/{connectionProfilesId}", - // "httpMethod": "PATCH", - // "id": "datamigration.projects.locations.connectionProfiles.patch", + // "description": "Deletes a single migration job.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}", + // "httpMethod": "DELETE", + // "id": "datamigration.projects.locations.migrationJobs.delete", // "parameterOrder": [ // "name" // ], // "parameters": { + // "force": { + // "description": "The destination CloudSQL connection profile is always deleted with the migration job. In case of force delete, the destination CloudSQL replica database is also deleted.", + // "location": "query", + // "type": "boolean" + // }, // "name": { - // "description": "The name of this connection profile resource in the form of projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}.", + // "description": "Required. Name of the migration job resource to delete.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/connectionProfiles/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", // "required": true, // "type": "string" // }, @@ -3723,18 +8509,9 @@ func (c *ProjectsLocationsConnectionProfilesPatchCall) Do(opts ...googleapi.Call // "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", // "location": "query", // "type": "string" - // }, - // "updateMask": { - // "description": "Required. Field mask is used to specify the fields to be overwritten in the connection profile resource by the update.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v1/{+name}", - // "request": { - // "$ref": "ConnectionProfile" - // }, // "response": { // "$ref": "Operation" // }, @@ -3745,36 +8522,33 @@ func (c *ProjectsLocationsConnectionProfilesPatchCall) Do(opts ...googleapi.Call } -// method id "datamigration.projects.locations.connectionProfiles.setIamPolicy": +// method id "datamigration.projects.locations.migrationJobs.generateSshScript": -type ProjectsLocationsConnectionProfilesSetIamPolicyCall struct { - s *Service - resource string - setiampolicyrequest *SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMigrationJobsGenerateSshScriptCall struct { + s *Service + migrationJob string + generatesshscriptrequest *GenerateSshScriptRequest + 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. +// GenerateSshScript: Generate a SSH configuration script to configure +// the reverse SSH connectivity. // -// - 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 *ProjectsLocationsConnectionProfilesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsConnectionProfilesSetIamPolicyCall { - c := &ProjectsLocationsConnectionProfilesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.setiampolicyrequest = setiampolicyrequest +// - migrationJob: Name of the migration job resource to generate the +// SSH script. +func (r *ProjectsLocationsMigrationJobsService) GenerateSshScript(migrationJob string, generatesshscriptrequest *GenerateSshScriptRequest) *ProjectsLocationsMigrationJobsGenerateSshScriptCall { + c := &ProjectsLocationsMigrationJobsGenerateSshScriptCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.migrationJob = migrationJob + c.generatesshscriptrequest = generatesshscriptrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsConnectionProfilesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesSetIamPolicyCall { +func (c *ProjectsLocationsMigrationJobsGenerateSshScriptCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsGenerateSshScriptCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -3782,21 +8556,21 @@ func (c *ProjectsLocationsConnectionProfilesSetIamPolicyCall) Fields(s ...google // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsConnectionProfilesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesSetIamPolicyCall { +func (c *ProjectsLocationsMigrationJobsGenerateSshScriptCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsGenerateSshScriptCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsConnectionProfilesSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsMigrationJobsGenerateSshScriptCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionProfilesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMigrationJobsGenerateSshScriptCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -3804,14 +8578,14 @@ func (c *ProjectsLocationsConnectionProfilesSetIamPolicyCall) doRequest(alt stri } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.generatesshscriptrequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+migrationJob}:generateSshScript") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -3819,19 +8593,19 @@ func (c *ProjectsLocationsConnectionProfilesSetIamPolicyCall) doRequest(alt stri } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "migrationJob": c.migrationJob, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.connectionProfiles.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *ProjectsLocationsConnectionProfilesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { +// Do executes the "datamigration.projects.locations.migrationJobs.generateSshScript" call. +// Exactly one of *SshScript or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *SshScript.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 *ProjectsLocationsMigrationJobsGenerateSshScriptCall) Do(opts ...googleapi.CallOption) (*SshScript, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3850,7 +8624,7 @@ func (c *ProjectsLocationsConnectionProfilesSetIamPolicyCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Policy{ + ret := &SshScript{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -3862,28 +8636,28 @@ func (c *ProjectsLocationsConnectionProfilesSetIamPolicyCall) Do(opts ...googlea } return ret, nil // { - // "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}/connectionProfiles/{connectionProfilesId}:setIamPolicy", + // "description": "Generate a SSH configuration script to configure the reverse SSH connectivity.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:generateSshScript", // "httpMethod": "POST", - // "id": "datamigration.projects.locations.connectionProfiles.setIamPolicy", + // "id": "datamigration.projects.locations.migrationJobs.generateSshScript", // "parameterOrder": [ - // "resource" + // "migrationJob" // ], // "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.", + // "migrationJob": { + // "description": "Name of the migration job resource to generate the SSH script.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/connectionProfiles/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+resource}:setIamPolicy", + // "path": "v1/{+migrationJob}:generateSshScript", // "request": { - // "$ref": "SetIamPolicyRequest" + // "$ref": "GenerateSshScriptRequest" // }, // "response": { - // "$ref": "Policy" + // "$ref": "SshScript" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -3892,96 +8666,95 @@ func (c *ProjectsLocationsConnectionProfilesSetIamPolicyCall) Do(opts ...googlea } -// method id "datamigration.projects.locations.connectionProfiles.testIamPermissions": +// method id "datamigration.projects.locations.migrationJobs.get": -type ProjectsLocationsConnectionProfilesTestIamPermissionsCall struct { - s *Service - resource string - testiampermissionsrequest *TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMigrationJobsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + 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. +// Get: Gets details of a single migration job. // -// - 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 *ProjectsLocationsConnectionProfilesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsConnectionProfilesTestIamPermissionsCall { - c := &ProjectsLocationsConnectionProfilesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.testiampermissionsrequest = testiampermissionsrequest +// - name: Name of the migration job resource to get. +func (r *ProjectsLocationsMigrationJobsService) Get(name string) *ProjectsLocationsMigrationJobsGetCall { + c := &ProjectsLocationsMigrationJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsConnectionProfilesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesTestIamPermissionsCall { +func (c *ProjectsLocationsMigrationJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsMigrationJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMigrationJobsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsConnectionProfilesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesTestIamPermissionsCall { +func (c *ProjectsLocationsMigrationJobsGetCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsConnectionProfilesTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsMigrationJobsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionProfilesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMigrationJobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.connectionProfiles.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsConnectionProfilesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { +// Do executes the "datamigration.projects.locations.migrationJobs.get" call. +// Exactly one of *MigrationJob or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *MigrationJob.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 *ProjectsLocationsMigrationJobsGetCall) Do(opts ...googleapi.CallOption) (*MigrationJob, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4000,7 +8773,7 @@ func (c *ProjectsLocationsConnectionProfilesTestIamPermissionsCall) Do(opts ...g if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &TestIamPermissionsResponse{ + ret := &MigrationJob{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4012,28 +8785,25 @@ func (c *ProjectsLocationsConnectionProfilesTestIamPermissionsCall) Do(opts ...g } return ret, nil // { - // "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}/connectionProfiles/{connectionProfilesId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "datamigration.projects.locations.connectionProfiles.testIamPermissions", + // "description": "Gets details of a single migration job.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.migrationJobs.get", // "parameterOrder": [ - // "resource" + // "name" // ], // "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.", + // "name": { + // "description": "Required. Name of the migration job resource to get.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/connectionProfiles/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "TestIamPermissionsResponse" + // "$ref": "MigrationJob" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4042,106 +8812,118 @@ func (c *ProjectsLocationsConnectionProfilesTestIamPermissionsCall) Do(opts ...g } -// method id "datamigration.projects.locations.migrationJobs.create": +// method id "datamigration.projects.locations.migrationJobs.getIamPolicy": -type ProjectsLocationsMigrationJobsCreateCall struct { +type ProjectsLocationsMigrationJobsGetIamPolicyCall struct { s *Service - parent string - migrationjob *MigrationJob + resource string urlParams_ gensupport.URLParams + ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Create: Creates a new migration job in a given project and location. +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. // -// - parent: The parent, which owns this collection of migration jobs. -func (r *ProjectsLocationsMigrationJobsService) Create(parent string, migrationjob *MigrationJob) *ProjectsLocationsMigrationJobsCreateCall { - c := &ProjectsLocationsMigrationJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.migrationjob = migrationjob - return c -} - -// MigrationJobId sets the optional parameter "migrationJobId": -// Required. The ID of the instance to create. -func (c *ProjectsLocationsMigrationJobsCreateCall) MigrationJobId(migrationJobId string) *ProjectsLocationsMigrationJobsCreateCall { - c.urlParams_.Set("migrationJobId", migrationJobId) +// - 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 *ProjectsLocationsMigrationJobsService) GetIamPolicy(resource string) *ProjectsLocationsMigrationJobsGetIamPolicyCall { + c := &ProjectsLocationsMigrationJobsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource return c } -// RequestId sets the optional parameter "requestId": A unique id used -// to identify the request. If the server receives two requests with the -// same id, then the second request will be ignored. It is recommended -// to always set this value to a UUID. The id must contain only letters -// (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The -// maximum length is 40 characters. -func (c *ProjectsLocationsMigrationJobsCreateCall) RequestId(requestId string) *ProjectsLocationsMigrationJobsCreateCall { - c.urlParams_.Set("requestId", requestId) +// 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 *ProjectsLocationsMigrationJobsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsMigrationJobsGetIamPolicyCall { + 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 information. -func (c *ProjectsLocationsMigrationJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsCreateCall { +func (c *ProjectsLocationsMigrationJobsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsMigrationJobsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsMigrationJobsGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsMigrationJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsCreateCall { +func (c *ProjectsLocationsMigrationJobsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsGetIamPolicyCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsMigrationJobsCreateCall) Header() http.Header { +func (c *ProjectsLocationsMigrationJobsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMigrationJobsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMigrationJobsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.migrationjob) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/migrationJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.migrationJobs.create" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsMigrationJobsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// Do executes the "datamigration.projects.locations.migrationJobs.getIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsMigrationJobsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4160,7 +8942,7 @@ func (c *ProjectsLocationsMigrationJobsCreateCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4172,38 +8954,31 @@ func (c *ProjectsLocationsMigrationJobsCreateCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Creates a new migration job in a given project and location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs", - // "httpMethod": "POST", - // "id": "datamigration.projects.locations.migrationJobs.create", + // "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}/migrationJobs/{migrationJobsId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.migrationJobs.getIamPolicy", // "parameterOrder": [ - // "parent" + // "resource" // ], // "parameters": { - // "migrationJobId": { - // "description": "Required. The ID of the instance to create.", + // "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": "string" + // "type": "integer" // }, - // "parent": { - // "description": "Required. The parent, which owns this collection of migration jobs.", + // "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/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", // "required": true, // "type": "string" - // }, - // "requestId": { - // "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+parent}/migrationJobs", - // "request": { - // "$ref": "MigrationJob" - // }, + // "path": "v1/{+resource}:getIamPolicy", // "response": { - // "$ref": "Operation" + // "$ref": "Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4212,101 +8987,138 @@ func (c *ProjectsLocationsMigrationJobsCreateCall) Do(opts ...googleapi.CallOpti } -// method id "datamigration.projects.locations.migrationJobs.delete": +// method id "datamigration.projects.locations.migrationJobs.list": -type ProjectsLocationsMigrationJobsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMigrationJobsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a single migration job. +// List: Lists migration jobs in a given project and location. // -// - name: Name of the migration job resource to delete. -func (r *ProjectsLocationsMigrationJobsService) Delete(name string) *ProjectsLocationsMigrationJobsDeleteCall { - c := &ProjectsLocationsMigrationJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The parent, which owns this collection of migrationJobs. +func (r *ProjectsLocationsMigrationJobsService) List(parent string) *ProjectsLocationsMigrationJobsListCall { + c := &ProjectsLocationsMigrationJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } -// Force sets the optional parameter "force": The destination CloudSQL -// connection profile is always deleted with the migration job. In case -// of force delete, the destination CloudSQL replica database is also -// deleted. -func (c *ProjectsLocationsMigrationJobsDeleteCall) Force(force bool) *ProjectsLocationsMigrationJobsDeleteCall { - c.urlParams_.Set("force", fmt.Sprint(force)) +// Filter sets the optional parameter "filter": A filter expression that +// filters migration jobs listed in the response. The expression must +// specify the field name, a comparison operator, and the value that you +// want to use for filtering. The value must be a string, a number, or a +// boolean. The comparison operator must be either =, !=, >, or <. For +// example, list migration jobs created this year by specifying +// **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can also +// filter nested fields. For example, you could specify +// **reverseSshConnectivity.vmIp = "1.2.3.4"** to select all migration +// jobs connecting through the specific SSH tunnel bastion. +func (c *ProjectsLocationsMigrationJobsListCall) Filter(filter string) *ProjectsLocationsMigrationJobsListCall { + c.urlParams_.Set("filter", filter) return c } -// RequestId sets the optional parameter "requestId": A unique id used -// to identify the request. If the server receives two requests with the -// same id, then the second request will be ignored. It is recommended -// to always set this value to a UUID. The id must contain only letters -// (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The -// maximum length is 40 characters. -func (c *ProjectsLocationsMigrationJobsDeleteCall) RequestId(requestId string) *ProjectsLocationsMigrationJobsDeleteCall { - c.urlParams_.Set("requestId", requestId) +// OrderBy sets the optional parameter "orderBy": Sort the results based +// on the migration job name. Valid values are: "name", "name asc", and +// "name desc". +func (c *ProjectsLocationsMigrationJobsListCall) OrderBy(orderBy string) *ProjectsLocationsMigrationJobsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of migration jobs to return. The service may return fewer than this +// value. If unspecified, at most 50 migration jobs will be returned. +// The maximum value is 1000; values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsMigrationJobsListCall) PageSize(pageSize int64) *ProjectsLocationsMigrationJobsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The nextPageToken +// value received in the previous call to migrationJobs.list, used in +// the subsequent request to retrieve the next page of results. On first +// call this should be left blank. When paginating, all other parameters +// provided to migrationJobs.list must match the call that provided the +// page token. +func (c *ProjectsLocationsMigrationJobsListCall) PageToken(pageToken string) *ProjectsLocationsMigrationJobsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMigrationJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsDeleteCall { +func (c *ProjectsLocationsMigrationJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsMigrationJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMigrationJobsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsMigrationJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsDeleteCall { +func (c *ProjectsLocationsMigrationJobsListCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsMigrationJobsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsMigrationJobsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMigrationJobsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMigrationJobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/migrationJobs") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.migrationJobs.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsMigrationJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// Do executes the "datamigration.projects.locations.migrationJobs.list" call. +// Exactly one of *ListMigrationJobsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListMigrationJobsResponse.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 *ProjectsLocationsMigrationJobsListCall) Do(opts ...googleapi.CallOption) (*ListMigrationJobsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4325,7 +9137,7 @@ func (c *ProjectsLocationsMigrationJobsDeleteCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &ListMigrationJobsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4337,35 +9149,46 @@ func (c *ProjectsLocationsMigrationJobsDeleteCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Deletes a single migration job.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}", - // "httpMethod": "DELETE", - // "id": "datamigration.projects.locations.migrationJobs.delete", + // "description": "Lists migration jobs in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.migrationJobs.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "force": { - // "description": "The destination CloudSQL connection profile is always deleted with the migration job. In case of force delete, the destination CloudSQL replica database is also deleted.", + // "filter": { + // "description": "A filter expression that filters migration jobs listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, \u003e, or \u003c. For example, list migration jobs created this year by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can also filter nested fields. For example, you could specify **reverseSshConnectivity.vmIp = \"1.2.3.4\"** to select all migration jobs connecting through the specific SSH tunnel bastion.", // "location": "query", - // "type": "boolean" + // "type": "string" // }, - // "name": { - // "description": "Required. Name of the migration job resource to delete.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", - // "required": true, + // "orderBy": { + // "description": "Sort the results based on the migration job name. Valid values are: \"name\", \"name asc\", and \"name desc\".", + // "location": "query", // "type": "string" // }, - // "requestId": { - // "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + // "pageSize": { + // "description": "The maximum number of migration jobs to return. The service may return fewer than this value. If unspecified, at most 50 migration jobs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The nextPageToken value received in the previous call to migrationJobs.list, used in the subsequent request to retrieve the next page of results. On first call this should be left blank. When paginating, all other parameters provided to migrationJobs.list must match the call that provided the page token.", // "location": "query", // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent, which owns this collection of migrationJobs.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/migrationJobs", // "response": { - // "$ref": "Operation" + // "$ref": "ListMigrationJobsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4374,33 +9197,74 @@ func (c *ProjectsLocationsMigrationJobsDeleteCall) Do(opts ...googleapi.CallOpti } -// method id "datamigration.projects.locations.migrationJobs.generateSshScript": +// 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 *ProjectsLocationsMigrationJobsListCall) Pages(ctx context.Context, f func(*ListMigrationJobsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type ProjectsLocationsMigrationJobsGenerateSshScriptCall struct { - s *Service - migrationJob string - generatesshscriptrequest *GenerateSshScriptRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "datamigration.projects.locations.migrationJobs.patch": + +type ProjectsLocationsMigrationJobsPatchCall struct { + s *Service + name string + migrationjob *MigrationJob + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GenerateSshScript: Generate a SSH configuration script to configure -// the reverse SSH connectivity. +// Patch: Updates the parameters of a single migration job. // -// - migrationJob: Name of the migration job resource to generate the -// SSH script. -func (r *ProjectsLocationsMigrationJobsService) GenerateSshScript(migrationJob string, generatesshscriptrequest *GenerateSshScriptRequest) *ProjectsLocationsMigrationJobsGenerateSshScriptCall { - c := &ProjectsLocationsMigrationJobsGenerateSshScriptCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.migrationJob = migrationJob - c.generatesshscriptrequest = generatesshscriptrequest +// - name: The name (URI) of this migration job resource, in the form +// of: +// projects/{project}/locations/{location}/migrationJobs/{migrationJob} +// . +func (r *ProjectsLocationsMigrationJobsService) Patch(name string, migrationjob *MigrationJob) *ProjectsLocationsMigrationJobsPatchCall { + c := &ProjectsLocationsMigrationJobsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.migrationjob = migrationjob + return c +} + +// RequestId sets the optional parameter "requestId": A unique id used +// to identify the request. If the server receives two requests with the +// same id, then the second request will be ignored. It is recommended +// to always set this value to a UUID. The id must contain only letters +// (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The +// maximum length is 40 characters. +func (c *ProjectsLocationsMigrationJobsPatchCall) RequestId(requestId string) *ProjectsLocationsMigrationJobsPatchCall { + 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 migration +// job resource by the update. +func (c *ProjectsLocationsMigrationJobsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsMigrationJobsPatchCall { + 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 information. -func (c *ProjectsLocationsMigrationJobsGenerateSshScriptCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsGenerateSshScriptCall { +func (c *ProjectsLocationsMigrationJobsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4408,21 +9272,21 @@ func (c *ProjectsLocationsMigrationJobsGenerateSshScriptCall) Fields(s ...google // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsMigrationJobsGenerateSshScriptCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsGenerateSshScriptCall { +func (c *ProjectsLocationsMigrationJobsPatchCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsMigrationJobsGenerateSshScriptCall) Header() http.Header { +func (c *ProjectsLocationsMigrationJobsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMigrationJobsGenerateSshScriptCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMigrationJobsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -4430,34 +9294,34 @@ func (c *ProjectsLocationsMigrationJobsGenerateSshScriptCall) doRequest(alt stri } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.generatesshscriptrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.migrationjob) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+migrationJob}:generateSshScript") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "migrationJob": c.migrationJob, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.migrationJobs.generateSshScript" call. -// Exactly one of *SshScript or error will be non-nil. Any non-2xx +// Do executes the "datamigration.projects.locations.migrationJobs.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either -// *SshScript.ServerResponse.Header or (if a response was returned at +// *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 *ProjectsLocationsMigrationJobsGenerateSshScriptCall) Do(opts ...googleapi.CallOption) (*SshScript, error) { +func (c *ProjectsLocationsMigrationJobsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4476,7 +9340,7 @@ func (c *ProjectsLocationsMigrationJobsGenerateSshScriptCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &SshScript{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4488,28 +9352,39 @@ func (c *ProjectsLocationsMigrationJobsGenerateSshScriptCall) Do(opts ...googlea } return ret, nil // { - // "description": "Generate a SSH configuration script to configure the reverse SSH connectivity.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:generateSshScript", - // "httpMethod": "POST", - // "id": "datamigration.projects.locations.migrationJobs.generateSshScript", + // "description": "Updates the parameters of a single migration job.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}", + // "httpMethod": "PATCH", + // "id": "datamigration.projects.locations.migrationJobs.patch", // "parameterOrder": [ - // "migrationJob" + // "name" // ], // "parameters": { - // "migrationJob": { - // "description": "Name of the migration job resource to generate the SSH script.", + // "name": { + // "description": "The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/migrationJobs/{migrationJob}.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", // "required": true, // "type": "string" + // }, + // "requestId": { + // "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + // "location": "query", + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. Field mask is used to specify the fields to be overwritten in the migration job resource by the update.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+migrationJob}:generateSshScript", + // "path": "v1/{+name}", // "request": { - // "$ref": "GenerateSshScriptRequest" + // "$ref": "MigrationJob" // }, // "response": { - // "$ref": "SshScript" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4518,77 +9393,72 @@ func (c *ProjectsLocationsMigrationJobsGenerateSshScriptCall) Do(opts ...googlea } -// method id "datamigration.projects.locations.migrationJobs.get": +// method id "datamigration.projects.locations.migrationJobs.promote": -type ProjectsLocationsMigrationJobsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMigrationJobsPromoteCall struct { + s *Service + name string + promotemigrationjobrequest *PromoteMigrationJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets details of a single migration job. +// Promote: Promote a migration job, stopping replication to the +// destination and promoting the destination to be a standalone +// database. // -// - name: Name of the migration job resource to get. -func (r *ProjectsLocationsMigrationJobsService) Get(name string) *ProjectsLocationsMigrationJobsGetCall { - c := &ProjectsLocationsMigrationJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Name of the migration job resource to promote. +func (r *ProjectsLocationsMigrationJobsService) Promote(name string, promotemigrationjobrequest *PromoteMigrationJobRequest) *ProjectsLocationsMigrationJobsPromoteCall { + c := &ProjectsLocationsMigrationJobsPromoteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.promotemigrationjobrequest = promotemigrationjobrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMigrationJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsGetCall { +func (c *ProjectsLocationsMigrationJobsPromoteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsPromoteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsMigrationJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMigrationJobsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsMigrationJobsGetCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsGetCall { +func (c *ProjectsLocationsMigrationJobsPromoteCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsPromoteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsMigrationJobsGetCall) Header() http.Header { +func (c *ProjectsLocationsMigrationJobsPromoteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMigrationJobsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMigrationJobsPromoteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.promotemigrationjobrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:promote") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -4599,14 +9469,14 @@ func (c *ProjectsLocationsMigrationJobsGetCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.migrationJobs.get" call. -// Exactly one of *MigrationJob or error will be non-nil. Any non-2xx +// Do executes the "datamigration.projects.locations.migrationJobs.promote" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either -// *MigrationJob.ServerResponse.Header or (if a response was returned at +// *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 *ProjectsLocationsMigrationJobsGetCall) Do(opts ...googleapi.CallOption) (*MigrationJob, error) { +func (c *ProjectsLocationsMigrationJobsPromoteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4625,7 +9495,7 @@ func (c *ProjectsLocationsMigrationJobsGetCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &MigrationJob{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4637,25 +9507,28 @@ func (c *ProjectsLocationsMigrationJobsGetCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Gets details of a single migration job.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}", - // "httpMethod": "GET", - // "id": "datamigration.projects.locations.migrationJobs.get", + // "description": "Promote a migration job, stopping replication to the destination and promoting the destination to be a standalone database.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:promote", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.migrationJobs.promote", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the migration job resource to get.", + // "description": "Name of the migration job resource to promote.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+name}:promote", + // "request": { + // "$ref": "PromoteMigrationJobRequest" + // }, // "response": { - // "$ref": "MigrationJob" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4664,118 +9537,90 @@ func (c *ProjectsLocationsMigrationJobsGetCall) Do(opts ...googleapi.CallOption) } -// method id "datamigration.projects.locations.migrationJobs.getIamPolicy": +// method id "datamigration.projects.locations.migrationJobs.restart": -type ProjectsLocationsMigrationJobsGetIamPolicyCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMigrationJobsRestartCall struct { + s *Service + name string + restartmigrationjobrequest *RestartMigrationJobRequest + urlParams_ gensupport.URLParams + 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. +// Restart: Restart a stopped or failed migration job, resetting the +// destination instance to its original state and starting the migration +// process from scratch. // -// - 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 *ProjectsLocationsMigrationJobsService) GetIamPolicy(resource string) *ProjectsLocationsMigrationJobsGetIamPolicyCall { - c := &ProjectsLocationsMigrationJobsGetIamPolicyCall{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 *ProjectsLocationsMigrationJobsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsMigrationJobsGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// - name: Name of the migration job resource to restart. +func (r *ProjectsLocationsMigrationJobsService) Restart(name string, restartmigrationjobrequest *RestartMigrationJobRequest) *ProjectsLocationsMigrationJobsRestartCall { + c := &ProjectsLocationsMigrationJobsRestartCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.restartmigrationjobrequest = restartmigrationjobrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMigrationJobsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsGetIamPolicyCall { +func (c *ProjectsLocationsMigrationJobsRestartCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsRestartCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsMigrationJobsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsMigrationJobsGetIamPolicyCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsMigrationJobsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsGetIamPolicyCall { +func (c *ProjectsLocationsMigrationJobsRestartCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsRestartCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsMigrationJobsGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsMigrationJobsRestartCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMigrationJobsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMigrationJobsRestartCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.restartmigrationjobrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:restart") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + 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, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.migrationJobs.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *ProjectsLocationsMigrationJobsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { +// Do executes the "datamigration.projects.locations.migrationJobs.restart" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsMigrationJobsRestartCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4794,7 +9639,7 @@ func (c *ProjectsLocationsMigrationJobsGetIamPolicyCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Policy{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4806,31 +9651,28 @@ func (c *ProjectsLocationsMigrationJobsGetIamPolicyCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "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}/migrationJobs/{migrationJobsId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "datamigration.projects.locations.migrationJobs.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.", + // "description": "Restart a stopped or failed migration job, resetting the destination instance to its original state and starting the migration process from scratch.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:restart", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.migrationJobs.restart", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Name of the migration job resource to restart.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+resource}:getIamPolicy", + // "path": "v1/{+name}:restart", + // "request": { + // "$ref": "RestartMigrationJobRequest" + // }, // "response": { - // "$ref": "Policy" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4839,138 +9681,89 @@ func (c *ProjectsLocationsMigrationJobsGetIamPolicyCall) Do(opts ...googleapi.Ca } -// method id "datamigration.projects.locations.migrationJobs.list": +// method id "datamigration.projects.locations.migrationJobs.resume": -type ProjectsLocationsMigrationJobsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMigrationJobsResumeCall struct { + s *Service + name string + resumemigrationjobrequest *ResumeMigrationJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists migration jobs in a given project and location. +// Resume: Resume a migration job that is currently stopped and is +// resumable (was stopped during CDC phase). // -// - parent: The parent, which owns this collection of migrationJobs. -func (r *ProjectsLocationsMigrationJobsService) List(parent string) *ProjectsLocationsMigrationJobsListCall { - c := &ProjectsLocationsMigrationJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": A filter expression that -// filters migration jobs listed in the response. The expression must -// specify the field name, a comparison operator, and the value that you -// want to use for filtering. The value must be a string, a number, or a -// boolean. The comparison operator must be either =, !=, >, or <. For -// example, list migration jobs created this year by specifying -// **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can also -// filter nested fields. For example, you could specify -// **reverseSshConnectivity.vmIp = "1.2.3.4"** to select all migration -// jobs connecting through the specific SSH tunnel bastion. -func (c *ProjectsLocationsMigrationJobsListCall) Filter(filter string) *ProjectsLocationsMigrationJobsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": Sort the results based -// on the migration job name. Valid values are: "name", "name asc", and -// "name desc". -func (c *ProjectsLocationsMigrationJobsListCall) OrderBy(orderBy string) *ProjectsLocationsMigrationJobsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of migration jobs to return. The service may return fewer than this -// value. If unspecified, at most 50 migration jobs will be returned. -// The maximum value is 1000; values above 1000 will be coerced to 1000. -func (c *ProjectsLocationsMigrationJobsListCall) PageSize(pageSize int64) *ProjectsLocationsMigrationJobsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The nextPageToken -// value received in the previous call to migrationJobs.list, used in -// the subsequent request to retrieve the next page of results. On first -// call this should be left blank. When paginating, all other parameters -// provided to migrationJobs.list must match the call that provided the -// page token. -func (c *ProjectsLocationsMigrationJobsListCall) PageToken(pageToken string) *ProjectsLocationsMigrationJobsListCall { - c.urlParams_.Set("pageToken", pageToken) +// - name: Name of the migration job resource to resume. +func (r *ProjectsLocationsMigrationJobsService) Resume(name string, resumemigrationjobrequest *ResumeMigrationJobRequest) *ProjectsLocationsMigrationJobsResumeCall { + c := &ProjectsLocationsMigrationJobsResumeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.resumemigrationjobrequest = resumemigrationjobrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMigrationJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsListCall { +func (c *ProjectsLocationsMigrationJobsResumeCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsResumeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsMigrationJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMigrationJobsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsMigrationJobsListCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsListCall { +func (c *ProjectsLocationsMigrationJobsResumeCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsResumeCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsMigrationJobsListCall) Header() http.Header { +func (c *ProjectsLocationsMigrationJobsResumeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMigrationJobsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMigrationJobsResumeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.resumemigrationjobrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/migrationJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:resume") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + 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, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.migrationJobs.list" call. -// Exactly one of *ListMigrationJobsResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *ListMigrationJobsResponse.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 *ProjectsLocationsMigrationJobsListCall) Do(opts ...googleapi.CallOption) (*ListMigrationJobsResponse, error) { +// Do executes the "datamigration.projects.locations.migrationJobs.resume" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsMigrationJobsResumeCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4989,7 +9782,7 @@ func (c *ProjectsLocationsMigrationJobsListCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListMigrationJobsResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5001,46 +9794,28 @@ func (c *ProjectsLocationsMigrationJobsListCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Lists migration jobs in a given project and location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs", - // "httpMethod": "GET", - // "id": "datamigration.projects.locations.migrationJobs.list", + // "description": "Resume a migration job that is currently stopped and is resumable (was stopped during CDC phase).", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:resume", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.migrationJobs.resume", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "filter": { - // "description": "A filter expression that filters migration jobs listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, \u003e, or \u003c. For example, list migration jobs created this year by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can also filter nested fields. For example, you could specify **reverseSshConnectivity.vmIp = \"1.2.3.4\"** to select all migration jobs connecting through the specific SSH tunnel bastion.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Sort the results based on the migration job name. Valid values are: \"name\", \"name asc\", and \"name desc\".", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of migration jobs to return. The service may return fewer than this value. If unspecified, at most 50 migration jobs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The nextPageToken value received in the previous call to migrationJobs.list, used in the subsequent request to retrieve the next page of results. On first call this should be left blank. When paginating, all other parameters provided to migrationJobs.list must match the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent, which owns this collection of migrationJobs.", + // "name": { + // "description": "Name of the migration job resource to resume.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/migrationJobs", + // "path": "v1/{+name}:resume", + // "request": { + // "$ref": "ResumeMigrationJobRequest" + // }, // "response": { - // "$ref": "ListMigrationJobsResponse" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -5049,74 +9824,36 @@ func (c *ProjectsLocationsMigrationJobsListCall) Do(opts ...googleapi.CallOption } -// 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 *ProjectsLocationsMigrationJobsListCall) Pages(ctx context.Context, f func(*ListMigrationJobsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "datamigration.projects.locations.migrationJobs.patch": +// method id "datamigration.projects.locations.migrationJobs.setIamPolicy": -type ProjectsLocationsMigrationJobsPatchCall struct { - s *Service - name string - migrationjob *MigrationJob - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMigrationJobsSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single migration job. +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. // -// - name: The name (URI) of this migration job resource, in the form -// of: -// projects/{project}/locations/{location}/migrationJobs/{migrationJob} -// . -func (r *ProjectsLocationsMigrationJobsService) Patch(name string, migrationjob *MigrationJob) *ProjectsLocationsMigrationJobsPatchCall { - c := &ProjectsLocationsMigrationJobsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.migrationjob = migrationjob - return c -} - -// RequestId sets the optional parameter "requestId": A unique id used -// to identify the request. If the server receives two requests with the -// same id, then the second request will be ignored. It is recommended -// to always set this value to a UUID. The id must contain only letters -// (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The -// maximum length is 40 characters. -func (c *ProjectsLocationsMigrationJobsPatchCall) RequestId(requestId string) *ProjectsLocationsMigrationJobsPatchCall { - 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 migration -// job resource by the update. -func (c *ProjectsLocationsMigrationJobsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsMigrationJobsPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// - 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 *ProjectsLocationsMigrationJobsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsMigrationJobsSetIamPolicyCall { + c := &ProjectsLocationsMigrationJobsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMigrationJobsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsPatchCall { +func (c *ProjectsLocationsMigrationJobsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5124,21 +9861,21 @@ func (c *ProjectsLocationsMigrationJobsPatchCall) Fields(s ...googleapi.Field) * // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsMigrationJobsPatchCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsPatchCall { +func (c *ProjectsLocationsMigrationJobsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsSetIamPolicyCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsMigrationJobsPatchCall) Header() http.Header { +func (c *ProjectsLocationsMigrationJobsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMigrationJobsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMigrationJobsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -5146,34 +9883,34 @@ func (c *ProjectsLocationsMigrationJobsPatchCall) doRequest(alt string) (*http.R } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.migrationjob) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.migrationJobs.patch" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsMigrationJobsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// Do executes the "datamigration.projects.locations.migrationJobs.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsMigrationJobsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5192,7 +9929,7 @@ func (c *ProjectsLocationsMigrationJobsPatchCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5204,39 +9941,28 @@ func (c *ProjectsLocationsMigrationJobsPatchCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Updates the parameters of a single migration job.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}", - // "httpMethod": "PATCH", - // "id": "datamigration.projects.locations.migrationJobs.patch", + // "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}/migrationJobs/{migrationJobsId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.migrationJobs.setIamPolicy", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/migrationJobs/{migrationJob}.", + // "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/[^/]+/migrationJobs/[^/]+$", // "required": true, // "type": "string" - // }, - // "requestId": { - // "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", - // "location": "query", - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. Field mask is used to specify the fields to be overwritten in the migration job resource by the update.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+resource}:setIamPolicy", // "request": { - // "$ref": "MigrationJob" + // "$ref": "SetIamPolicyRequest" // }, // "response": { - // "$ref": "Operation" + // "$ref": "Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -5245,33 +9971,31 @@ func (c *ProjectsLocationsMigrationJobsPatchCall) Do(opts ...googleapi.CallOptio } -// method id "datamigration.projects.locations.migrationJobs.promote": +// method id "datamigration.projects.locations.migrationJobs.start": -type ProjectsLocationsMigrationJobsPromoteCall struct { - s *Service - name string - promotemigrationjobrequest *PromoteMigrationJobRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMigrationJobsStartCall struct { + s *Service + name string + startmigrationjobrequest *StartMigrationJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Promote: Promote a migration job, stopping replication to the -// destination and promoting the destination to be a standalone -// database. +// Start: Start an already created migration job. // -// - name: Name of the migration job resource to promote. -func (r *ProjectsLocationsMigrationJobsService) Promote(name string, promotemigrationjobrequest *PromoteMigrationJobRequest) *ProjectsLocationsMigrationJobsPromoteCall { - c := &ProjectsLocationsMigrationJobsPromoteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Name of the migration job resource to start. +func (r *ProjectsLocationsMigrationJobsService) Start(name string, startmigrationjobrequest *StartMigrationJobRequest) *ProjectsLocationsMigrationJobsStartCall { + c := &ProjectsLocationsMigrationJobsStartCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.promotemigrationjobrequest = promotemigrationjobrequest + c.startmigrationjobrequest = startmigrationjobrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMigrationJobsPromoteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsPromoteCall { +func (c *ProjectsLocationsMigrationJobsStartCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsStartCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5279,21 +10003,21 @@ func (c *ProjectsLocationsMigrationJobsPromoteCall) Fields(s ...googleapi.Field) // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsMigrationJobsPromoteCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsPromoteCall { +func (c *ProjectsLocationsMigrationJobsStartCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsStartCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsMigrationJobsPromoteCall) Header() http.Header { +func (c *ProjectsLocationsMigrationJobsStartCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMigrationJobsPromoteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMigrationJobsStartCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -5301,14 +10025,14 @@ func (c *ProjectsLocationsMigrationJobsPromoteCall) doRequest(alt string) (*http } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.promotemigrationjobrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.startmigrationjobrequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:promote") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:start") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -5321,14 +10045,14 @@ func (c *ProjectsLocationsMigrationJobsPromoteCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.migrationJobs.promote" call. +// Do executes the "datamigration.projects.locations.migrationJobs.start" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsMigrationJobsPromoteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsMigrationJobsStartCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5359,25 +10083,25 @@ func (c *ProjectsLocationsMigrationJobsPromoteCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Promote a migration job, stopping replication to the destination and promoting the destination to be a standalone database.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:promote", + // "description": "Start an already created migration job.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:start", // "httpMethod": "POST", - // "id": "datamigration.projects.locations.migrationJobs.promote", + // "id": "datamigration.projects.locations.migrationJobs.start", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Name of the migration job resource to promote.", + // "description": "Name of the migration job resource to start.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}:promote", + // "path": "v1/{+name}:start", // "request": { - // "$ref": "PromoteMigrationJobRequest" + // "$ref": "StartMigrationJobRequest" // }, // "response": { // "$ref": "Operation" @@ -5389,33 +10113,31 @@ func (c *ProjectsLocationsMigrationJobsPromoteCall) Do(opts ...googleapi.CallOpt } -// method id "datamigration.projects.locations.migrationJobs.restart": +// method id "datamigration.projects.locations.migrationJobs.stop": -type ProjectsLocationsMigrationJobsRestartCall struct { - s *Service - name string - restartmigrationjobrequest *RestartMigrationJobRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMigrationJobsStopCall struct { + s *Service + name string + stopmigrationjobrequest *StopMigrationJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Restart: Restart a stopped or failed migration job, resetting the -// destination instance to its original state and starting the migration -// process from scratch. +// Stop: Stops a running migration job. // -// - name: Name of the migration job resource to restart. -func (r *ProjectsLocationsMigrationJobsService) Restart(name string, restartmigrationjobrequest *RestartMigrationJobRequest) *ProjectsLocationsMigrationJobsRestartCall { - c := &ProjectsLocationsMigrationJobsRestartCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Name of the migration job resource to stop. +func (r *ProjectsLocationsMigrationJobsService) Stop(name string, stopmigrationjobrequest *StopMigrationJobRequest) *ProjectsLocationsMigrationJobsStopCall { + c := &ProjectsLocationsMigrationJobsStopCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.restartmigrationjobrequest = restartmigrationjobrequest + c.stopmigrationjobrequest = stopmigrationjobrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMigrationJobsRestartCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsRestartCall { +func (c *ProjectsLocationsMigrationJobsStopCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsStopCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5423,21 +10145,21 @@ func (c *ProjectsLocationsMigrationJobsRestartCall) Fields(s ...googleapi.Field) // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsMigrationJobsRestartCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsRestartCall { +func (c *ProjectsLocationsMigrationJobsStopCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsStopCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsMigrationJobsRestartCall) Header() http.Header { +func (c *ProjectsLocationsMigrationJobsStopCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMigrationJobsRestartCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMigrationJobsStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -5445,14 +10167,14 @@ func (c *ProjectsLocationsMigrationJobsRestartCall) doRequest(alt string) (*http } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.restartmigrationjobrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.stopmigrationjobrequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:restart") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:stop") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -5465,14 +10187,14 @@ func (c *ProjectsLocationsMigrationJobsRestartCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.migrationJobs.restart" call. +// Do executes the "datamigration.projects.locations.migrationJobs.stop" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsMigrationJobsRestartCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsMigrationJobsStopCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5503,25 +10225,25 @@ func (c *ProjectsLocationsMigrationJobsRestartCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Restart a stopped or failed migration job, resetting the destination instance to its original state and starting the migration process from scratch.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:restart", + // "description": "Stops a running migration job.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:stop", // "httpMethod": "POST", - // "id": "datamigration.projects.locations.migrationJobs.restart", + // "id": "datamigration.projects.locations.migrationJobs.stop", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Name of the migration job resource to restart.", + // "description": "Name of the migration job resource to stop.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}:restart", + // "path": "v1/{+name}:stop", // "request": { - // "$ref": "RestartMigrationJobRequest" + // "$ref": "StopMigrationJobRequest" // }, // "response": { // "$ref": "Operation" @@ -5533,32 +10255,39 @@ func (c *ProjectsLocationsMigrationJobsRestartCall) Do(opts ...googleapi.CallOpt } -// method id "datamigration.projects.locations.migrationJobs.resume": +// method id "datamigration.projects.locations.migrationJobs.testIamPermissions": -type ProjectsLocationsMigrationJobsResumeCall struct { +type ProjectsLocationsMigrationJobsTestIamPermissionsCall struct { s *Service - name string - resumemigrationjobrequest *ResumeMigrationJobRequest + resource string + testiampermissionsrequest *TestIamPermissionsRequest urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Resume: Resume a migration job that is currently stopped and is -// resumable (was stopped during CDC phase). +// 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. // -// - name: Name of the migration job resource to resume. -func (r *ProjectsLocationsMigrationJobsService) Resume(name string, resumemigrationjobrequest *ResumeMigrationJobRequest) *ProjectsLocationsMigrationJobsResumeCall { - c := &ProjectsLocationsMigrationJobsResumeCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.resumemigrationjobrequest = resumemigrationjobrequest +// - 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 *ProjectsLocationsMigrationJobsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsMigrationJobsTestIamPermissionsCall { + c := &ProjectsLocationsMigrationJobsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMigrationJobsResumeCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsResumeCall { +func (c *ProjectsLocationsMigrationJobsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5566,21 +10295,21 @@ func (c *ProjectsLocationsMigrationJobsResumeCall) Fields(s ...googleapi.Field) // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsMigrationJobsResumeCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsResumeCall { +func (c *ProjectsLocationsMigrationJobsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsTestIamPermissionsCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsMigrationJobsResumeCall) Header() http.Header { +func (c *ProjectsLocationsMigrationJobsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMigrationJobsResumeCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMigrationJobsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -5588,14 +10317,14 @@ func (c *ProjectsLocationsMigrationJobsResumeCall) doRequest(alt string) (*http. } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.resumemigrationjobrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:resume") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -5603,19 +10332,19 @@ func (c *ProjectsLocationsMigrationJobsResumeCall) doRequest(alt string) (*http. } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.migrationJobs.resume" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsMigrationJobsResumeCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// Do executes the "datamigration.projects.locations.migrationJobs.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsMigrationJobsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5634,7 +10363,7 @@ func (c *ProjectsLocationsMigrationJobsResumeCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5646,28 +10375,28 @@ func (c *ProjectsLocationsMigrationJobsResumeCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Resume a migration job that is currently stopped and is resumable (was stopped during CDC phase).", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:resume", + // "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}/migrationJobs/{migrationJobsId}:testIamPermissions", // "httpMethod": "POST", - // "id": "datamigration.projects.locations.migrationJobs.resume", + // "id": "datamigration.projects.locations.migrationJobs.testIamPermissions", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "Name of the migration job resource to resume.", + // "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/[^/]+/migrationJobs/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}:resume", + // "path": "v1/{+resource}:testIamPermissions", // "request": { - // "$ref": "ResumeMigrationJobRequest" + // "$ref": "TestIamPermissionsRequest" // }, // "response": { - // "$ref": "Operation" + // "$ref": "TestIamPermissionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -5676,36 +10405,32 @@ func (c *ProjectsLocationsMigrationJobsResumeCall) Do(opts ...googleapi.CallOpti } -// method id "datamigration.projects.locations.migrationJobs.setIamPolicy": +// method id "datamigration.projects.locations.migrationJobs.verify": -type ProjectsLocationsMigrationJobsSetIamPolicyCall struct { - s *Service - resource string - setiampolicyrequest *SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMigrationJobsVerifyCall struct { + s *Service + name string + verifymigrationjobrequest *VerifyMigrationJobRequest + 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. +// Verify: Verify a migration job, making sure the destination can reach +// the source and that all configuration and prerequisites are met. // -// - 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 *ProjectsLocationsMigrationJobsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsMigrationJobsSetIamPolicyCall { - c := &ProjectsLocationsMigrationJobsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.setiampolicyrequest = setiampolicyrequest +// - name: Name of the migration job resource to verify. +func (r *ProjectsLocationsMigrationJobsService) Verify(name string, verifymigrationjobrequest *VerifyMigrationJobRequest) *ProjectsLocationsMigrationJobsVerifyCall { + c := &ProjectsLocationsMigrationJobsVerifyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.verifymigrationjobrequest = verifymigrationjobrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMigrationJobsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsSetIamPolicyCall { +func (c *ProjectsLocationsMigrationJobsVerifyCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsVerifyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5713,21 +10438,21 @@ func (c *ProjectsLocationsMigrationJobsSetIamPolicyCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsMigrationJobsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsSetIamPolicyCall { +func (c *ProjectsLocationsMigrationJobsVerifyCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsVerifyCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsMigrationJobsSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsMigrationJobsVerifyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMigrationJobsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMigrationJobsVerifyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -5735,14 +10460,14 @@ func (c *ProjectsLocationsMigrationJobsSetIamPolicyCall) doRequest(alt string) ( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.verifymigrationjobrequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:verify") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -5750,19 +10475,19 @@ func (c *ProjectsLocationsMigrationJobsSetIamPolicyCall) doRequest(alt string) ( } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.migrationJobs.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *ProjectsLocationsMigrationJobsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { +// Do executes the "datamigration.projects.locations.migrationJobs.verify" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsMigrationJobsVerifyCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5781,7 +10506,7 @@ func (c *ProjectsLocationsMigrationJobsSetIamPolicyCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Policy{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5793,28 +10518,28 @@ func (c *ProjectsLocationsMigrationJobsSetIamPolicyCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "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}/migrationJobs/{migrationJobsId}:setIamPolicy", + // "description": "Verify a migration job, making sure the destination can reach the source and that all configuration and prerequisites are met.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:verify", // "httpMethod": "POST", - // "id": "datamigration.projects.locations.migrationJobs.setIamPolicy", + // "id": "datamigration.projects.locations.migrationJobs.verify", // "parameterOrder": [ - // "resource" + // "name" // ], // "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.", + // "name": { + // "description": "Name of the migration job resource to verify.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+resource}:setIamPolicy", + // "path": "v1/{+name}:verify", // "request": { - // "$ref": "SetIamPolicyRequest" + // "$ref": "VerifyMigrationJobRequest" // }, // "response": { - // "$ref": "Policy" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -5823,31 +10548,40 @@ func (c *ProjectsLocationsMigrationJobsSetIamPolicyCall) Do(opts ...googleapi.Ca } -// method id "datamigration.projects.locations.migrationJobs.start": +// method id "datamigration.projects.locations.operations.cancel": -type ProjectsLocationsMigrationJobsStartCall struct { - s *Service - name string - startmigrationjobrequest *StartMigrationJobRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsOperationsCancelCall struct { + s *Service + name string + canceloperationrequest *CancelOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Start: Start an already created migration job. +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. // -// - name: Name of the migration job resource to start. -func (r *ProjectsLocationsMigrationJobsService) Start(name string, startmigrationjobrequest *StartMigrationJobRequest) *ProjectsLocationsMigrationJobsStartCall { - c := &ProjectsLocationsMigrationJobsStartCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall { + c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.startmigrationjobrequest = startmigrationjobrequest + c.canceloperationrequest = canceloperationrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMigrationJobsStartCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsStartCall { +func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5855,21 +10589,21 @@ func (c *ProjectsLocationsMigrationJobsStartCall) Fields(s ...googleapi.Field) * // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsMigrationJobsStartCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsStartCall { +func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsMigrationJobsStartCall) Header() http.Header { +func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMigrationJobsStartCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -5877,14 +10611,14 @@ func (c *ProjectsLocationsMigrationJobsStartCall) doRequest(alt string) (*http.R } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.startmigrationjobrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:start") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -5897,14 +10631,14 @@ func (c *ProjectsLocationsMigrationJobsStartCall) doRequest(alt string) (*http.R return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.migrationJobs.start" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsMigrationJobsStartCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// Do executes the "datamigration.projects.locations.operations.cancel" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5923,7 +10657,7 @@ func (c *ProjectsLocationsMigrationJobsStartCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5935,28 +10669,28 @@ func (c *ProjectsLocationsMigrationJobsStartCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Start an already created migration job.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:start", + // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "datamigration.projects.locations.migrationJobs.start", + // "id": "datamigration.projects.locations.operations.cancel", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Name of the migration job resource to start.", + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}:start", + // "path": "v1/{+name}:cancel", // "request": { - // "$ref": "StartMigrationJobRequest" + // "$ref": "CancelOperationRequest" // }, // "response": { - // "$ref": "Operation" + // "$ref": "Empty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -5965,31 +10699,32 @@ func (c *ProjectsLocationsMigrationJobsStartCall) Do(opts ...googleapi.CallOptio } -// method id "datamigration.projects.locations.migrationJobs.stop": +// method id "datamigration.projects.locations.operations.delete": -type ProjectsLocationsMigrationJobsStopCall struct { - s *Service - name string - stopmigrationjobrequest *StopMigrationJobRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Stop: Stops a running migration job. +// Delete: Deletes a long-running operation. This method indicates that +// the client is no longer interested in the operation result. It does +// not cancel the operation. If the server doesn't support this method, +// it returns `google.rpc.Code.UNIMPLEMENTED`. // -// - name: Name of the migration job resource to stop. -func (r *ProjectsLocationsMigrationJobsService) Stop(name string, stopmigrationjobrequest *StopMigrationJobRequest) *ProjectsLocationsMigrationJobsStopCall { - c := &ProjectsLocationsMigrationJobsStopCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { + c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.stopmigrationjobrequest = stopmigrationjobrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMigrationJobsStopCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsStopCall { +func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5997,21 +10732,21 @@ func (c *ProjectsLocationsMigrationJobsStopCall) Fields(s ...googleapi.Field) *P // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsMigrationJobsStopCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsStopCall { +func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsMigrationJobsStopCall) Header() http.Header { +func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMigrationJobsStopCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -6019,16 +10754,11 @@ func (c *ProjectsLocationsMigrationJobsStopCall) doRequest(alt string) (*http.Re } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.stopmigrationjobrequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:stop") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -6039,14 +10769,14 @@ func (c *ProjectsLocationsMigrationJobsStopCall) doRequest(alt string) (*http.Re return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.migrationJobs.stop" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsMigrationJobsStopCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// Do executes the "datamigration.projects.locations.operations.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6065,7 +10795,7 @@ func (c *ProjectsLocationsMigrationJobsStopCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6077,28 +10807,25 @@ func (c *ProjectsLocationsMigrationJobsStopCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Stops a running migration job.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:stop", - // "httpMethod": "POST", - // "id": "datamigration.projects.locations.migrationJobs.stop", + // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "datamigration.projects.locations.operations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Name of the migration job resource to stop.", + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}:stop", - // "request": { - // "$ref": "StopMigrationJobRequest" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "Operation" + // "$ref": "Empty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -6107,96 +10834,97 @@ func (c *ProjectsLocationsMigrationJobsStopCall) Do(opts ...googleapi.CallOption } -// method id "datamigration.projects.locations.migrationJobs.testIamPermissions": - -type ProjectsLocationsMigrationJobsTestIamPermissionsCall struct { - s *Service - resource string - testiampermissionsrequest *TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "datamigration.projects.locations.operations.get": + +type ProjectsLocationsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + 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. +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. // -// - 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 *ProjectsLocationsMigrationJobsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsMigrationJobsTestIamPermissionsCall { - c := &ProjectsLocationsMigrationJobsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.testiampermissionsrequest = testiampermissionsrequest +// - name: The name of the operation resource. +func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { + c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMigrationJobsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsTestIamPermissionsCall { +func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsMigrationJobsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsTestIamPermissionsCall { +func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsMigrationJobsTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMigrationJobsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.migrationJobs.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsMigrationJobsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { +// Do executes the "datamigration.projects.locations.operations.get" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6215,7 +10943,7 @@ func (c *ProjectsLocationsMigrationJobsTestIamPermissionsCall) Do(opts ...google if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &TestIamPermissionsResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6227,28 +10955,25 @@ func (c *ProjectsLocationsMigrationJobsTestIamPermissionsCall) Do(opts ...google } return ret, nil // { - // "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}/migrationJobs/{migrationJobsId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "datamigration.projects.locations.migrationJobs.testIamPermissions", + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.operations.get", // "parameterOrder": [ - // "resource" + // "name" // ], // "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.", + // "name": { + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "TestIamPermissionsResponse" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -6257,71 +10982,107 @@ func (c *ProjectsLocationsMigrationJobsTestIamPermissionsCall) Do(opts ...google } -// method id "datamigration.projects.locations.migrationJobs.verify": +// method id "datamigration.projects.locations.operations.list": -type ProjectsLocationsMigrationJobsVerifyCall struct { - s *Service - name string - verifymigrationjobrequest *VerifyMigrationJobRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Verify: Verify a migration job, making sure the destination can reach -// the source and that all configuration and prerequisites are met. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to +// override the binding to use different resource name schemes, such as +// `users/*/operations`. To override the binding, API services can add a +// binding such as "/v1/{name=users/*}/operations" to their service +// configuration. For backwards compatibility, the default name includes +// the operations collection id, however overriding users must ensure +// the name binding is the parent resource, without the operations +// collection id. // -// - name: Name of the migration job resource to verify. -func (r *ProjectsLocationsMigrationJobsService) Verify(name string, verifymigrationjobrequest *VerifyMigrationJobRequest) *ProjectsLocationsMigrationJobsVerifyCall { - c := &ProjectsLocationsMigrationJobsVerifyCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { + c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.verifymigrationjobrequest = verifymigrationjobrequest + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMigrationJobsVerifyCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsVerifyCall { +func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsMigrationJobsVerifyCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsVerifyCall { +func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsMigrationJobsVerifyCall) Header() http.Header { +func (c *ProjectsLocationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMigrationJobsVerifyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.verifymigrationjobrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:verify") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -6332,14 +11093,14 @@ func (c *ProjectsLocationsMigrationJobsVerifyCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.migrationJobs.verify" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsMigrationJobsVerifyCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// Do executes the "datamigration.projects.locations.operations.list" call. +// Exactly one of *ListOperationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.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 *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6358,7 +11119,7 @@ func (c *ProjectsLocationsMigrationJobsVerifyCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &ListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6370,28 +11131,41 @@ func (c *ProjectsLocationsMigrationJobsVerifyCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Verify a migration job, making sure the destination can reach the source and that all configuration and prerequisites are met.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:verify", - // "httpMethod": "POST", - // "id": "datamigration.projects.locations.migrationJobs.verify", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.operations.list", // "parameterOrder": [ // "name" // ], // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Name of the migration job resource to verify.", + // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+name}:verify", - // "request": { - // "$ref": "VerifyMigrationJobRequest" - // }, + // "path": "v1/{+name}/operations", // "response": { - // "$ref": "Operation" + // "$ref": "ListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -6400,40 +11174,71 @@ func (c *ProjectsLocationsMigrationJobsVerifyCall) Do(opts ...googleapi.CallOpti } -// method id "datamigration.projects.locations.operations.cancel": +// 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 *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "datamigration.projects.locations.privateConnections.create": -type ProjectsLocationsOperationsCancelCall struct { - s *Service - name string - canceloperationrequest *CancelOperationRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsPrivateConnectionsCreateCall struct { + s *Service + parent string + privateconnection *PrivateConnection + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to -// `Code.CANCELLED`. +// Create: Creates a new private connection in a given project and +// location. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall { - c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.canceloperationrequest = canceloperationrequest +// - parent: The parent that owns the collection of PrivateConnections. +func (r *ProjectsLocationsPrivateConnectionsService) Create(parent string, privateconnection *PrivateConnection) *ProjectsLocationsPrivateConnectionsCreateCall { + c := &ProjectsLocationsPrivateConnectionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.privateconnection = privateconnection + return c +} + +// PrivateConnectionId sets the optional parameter +// "privateConnectionId": Required. The private connection identifier. +func (c *ProjectsLocationsPrivateConnectionsCreateCall) PrivateConnectionId(privateConnectionId string) *ProjectsLocationsPrivateConnectionsCreateCall { + c.urlParams_.Set("privateConnectionId", privateConnectionId) + return c +} + +// RequestId sets the optional parameter "requestId": A unique id used +// to identify the request. If the server receives two requests with the +// same id, then the second request will be ignored. It is recommended +// to always set this value to a UUID. The id must contain only letters +// (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The +// maximum length is 40 characters. +func (c *ProjectsLocationsPrivateConnectionsCreateCall) RequestId(requestId string) *ProjectsLocationsPrivateConnectionsCreateCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { +func (c *ProjectsLocationsPrivateConnectionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsPrivateConnectionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6441,21 +11246,21 @@ func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *Pr // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { +func (c *ProjectsLocationsPrivateConnectionsCreateCall) Context(ctx context.Context) *ProjectsLocationsPrivateConnectionsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsPrivateConnectionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPrivateConnectionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -6463,14 +11268,14 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.privateconnection) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/privateConnections") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -6478,19 +11283,19 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.operations.cancel" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// Do executes the "datamigration.projects.locations.privateConnections.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsPrivateConnectionsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6509,7 +11314,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Empty{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6521,28 +11326,38 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + // "description": "Creates a new private connection in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/privateConnections", // "httpMethod": "POST", - // "id": "datamigration.projects.locations.operations.cancel", + // "id": "datamigration.projects.locations.privateConnections.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "parent": { + // "description": "Required. The parent that owns the collection of PrivateConnections.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" + // }, + // "privateConnectionId": { + // "description": "Required. The private connection identifier.", + // "location": "query", + // "type": "string" + // }, + // "requestId": { + // "description": "Optional. A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+name}:cancel", + // "path": "v1/{+parent}/privateConnections", // "request": { - // "$ref": "CancelOperationRequest" + // "$ref": "PrivateConnection" // }, // "response": { - // "$ref": "Empty" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -6551,9 +11366,9 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) } -// method id "datamigration.projects.locations.operations.delete": +// method id "datamigration.projects.locations.privateConnections.delete": -type ProjectsLocationsOperationsDeleteCall struct { +type ProjectsLocationsPrivateConnectionsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -6561,22 +11376,31 @@ type ProjectsLocationsOperationsDeleteCall struct { header_ http.Header } -// Delete: Deletes a long-running operation. This method indicates that -// the client is no longer interested in the operation result. It does -// not cancel the operation. If the server doesn't support this method, -// it returns `google.rpc.Code.UNIMPLEMENTED`. +// Delete: Deletes a single Database Migration Service private +// connection. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { - c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the private connection to delete. +func (r *ProjectsLocationsPrivateConnectionsService) Delete(name string) *ProjectsLocationsPrivateConnectionsDeleteCall { + c := &ProjectsLocationsPrivateConnectionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// RequestId sets the optional parameter "requestId": A unique id used +// to identify the request. If the server receives two requests with the +// same id, then the second request will be ignored. It is recommended +// to always set this value to a UUID. The id must contain only letters +// (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The +// maximum length is 40 characters. +func (c *ProjectsLocationsPrivateConnectionsDeleteCall) RequestId(requestId string) *ProjectsLocationsPrivateConnectionsDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { +func (c *ProjectsLocationsPrivateConnectionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsPrivateConnectionsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6584,21 +11408,21 @@ func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *Pr // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { +func (c *ProjectsLocationsPrivateConnectionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsPrivateConnectionsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsPrivateConnectionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPrivateConnectionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -6621,14 +11445,14 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.operations.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// Do executes the "datamigration.projects.locations.privateConnections.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsPrivateConnectionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6647,7 +11471,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Empty{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6659,25 +11483,30 @@ func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "description": "Deletes a single Database Migration Service private connection.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/privateConnections/{privateConnectionsId}", // "httpMethod": "DELETE", - // "id": "datamigration.projects.locations.operations.delete", + // "id": "datamigration.projects.locations.privateConnections.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to be deleted.", + // "description": "Required. The name of the private connection to delete.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/privateConnections/[^/]+$", // "required": true, // "type": "string" + // }, + // "requestId": { + // "description": "Optional. A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + // "location": "query", + // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "Empty" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -6686,9 +11515,9 @@ func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) } -// method id "datamigration.projects.locations.operations.get": +// method id "datamigration.projects.locations.privateConnections.get": -type ProjectsLocationsOperationsGetCall struct { +type ProjectsLocationsPrivateConnectionsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -6697,13 +11526,11 @@ type ProjectsLocationsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets details of a single private connection. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { - c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the private connection to get. +func (r *ProjectsLocationsPrivateConnectionsService) Get(name string) *ProjectsLocationsPrivateConnectionsGetCall { + c := &ProjectsLocationsPrivateConnectionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -6711,7 +11538,7 @@ func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocations // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { +func (c *ProjectsLocationsPrivateConnectionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPrivateConnectionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6721,7 +11548,7 @@ func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *Proje // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { +func (c *ProjectsLocationsPrivateConnectionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsPrivateConnectionsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -6729,21 +11556,21 @@ func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *Proj // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { +func (c *ProjectsLocationsPrivateConnectionsGetCall) Context(ctx context.Context) *ProjectsLocationsPrivateConnectionsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsPrivateConnectionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPrivateConnectionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -6769,14 +11596,14 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// Do executes the "datamigration.projects.locations.privateConnections.get" call. +// Exactly one of *PrivateConnection or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *PrivateConnection.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 *ProjectsLocationsPrivateConnectionsGetCall) Do(opts ...googleapi.CallOption) (*PrivateConnection, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6795,7 +11622,7 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &PrivateConnection{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6807,25 +11634,25 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "description": "Gets details of a single private connection.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/privateConnections/{privateConnectionsId}", // "httpMethod": "GET", - // "id": "datamigration.projects.locations.operations.get", + // "id": "datamigration.projects.locations.privateConnections.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Required. The name of the private connection to get.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/privateConnections/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "Operation" + // "$ref": "PrivateConnection" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -6834,52 +11661,61 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* } -// method id "datamigration.projects.locations.operations.list": +// method id "datamigration.projects.locations.privateConnections.list": -type ProjectsLocationsOperationsListCall struct { +type ProjectsLocationsPrivateConnectionsListCall struct { s *Service - name string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// List: Retrieves a list of private connections in a given project and +// location. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { - c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The parent that owns the collection of private connections. +func (r *ProjectsLocationsPrivateConnectionsService) List(parent string) *ProjectsLocationsPrivateConnectionsListCall { + c := &ProjectsLocationsPrivateConnectionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { +// Filter sets the optional parameter "filter": A filter expression that +// filters private connections listed in the response. The expression +// must specify the field name, a comparison operator, and the value +// that you want to use for filtering. The value must be a string, a +// number, or a boolean. The comparison operator must be either =, !=, +// >, or <. For example, list private connections created this year by +// specifying **createTime %gt; 2021-01-01T00:00:00.000000000Z**. +func (c *ProjectsLocationsPrivateConnectionsListCall) Filter(filter string) *ProjectsLocationsPrivateConnectionsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { +// OrderBy sets the optional parameter "orderBy": Order by fields for +// the result. +func (c *ProjectsLocationsPrivateConnectionsListCall) OrderBy(orderBy string) *ProjectsLocationsPrivateConnectionsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// private connections to return. If unspecified, at most 50 private +// connections that will be returned. The maximum value is 1000; values +// above 1000 will be coerced to 1000. +func (c *ProjectsLocationsPrivateConnectionsListCall) PageSize(pageSize int64) *ProjectsLocationsPrivateConnectionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { +// PageToken sets the optional parameter "pageToken": Page token +// received from a previous `ListPrivateConnections` call. Provide this +// to retrieve the subsequent page. When paginating, all other +// parameters provided to `ListPrivateConnections` must match the call +// that provided the page token. +func (c *ProjectsLocationsPrivateConnectionsListCall) PageToken(pageToken string) *ProjectsLocationsPrivateConnectionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -6887,7 +11723,7 @@ func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *Proje // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { +func (c *ProjectsLocationsPrivateConnectionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPrivateConnectionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6897,7 +11733,7 @@ func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *Proj // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { +func (c *ProjectsLocationsPrivateConnectionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPrivateConnectionsListCall { c.ifNoneMatch_ = entityTag return c } @@ -6905,21 +11741,21 @@ func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *Pro // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { +func (c *ProjectsLocationsPrivateConnectionsListCall) Context(ctx context.Context) *ProjectsLocationsPrivateConnectionsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsPrivateConnectionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPrivateConnectionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -6932,7 +11768,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/privateConnections") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -6940,19 +11776,19 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.operations.list" call. -// Exactly one of *ListOperationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "datamigration.projects.locations.privateConnections.list" call. +// Exactly one of *ListPrivateConnectionsResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListPrivateConnectionsResponse.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 *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { +func (c *ProjectsLocationsPrivateConnectionsListCall) Do(opts ...googleapi.CallOption) (*ListPrivateConnectionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6971,7 +11807,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListOperationsResponse{ + ret := &ListPrivateConnectionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6983,41 +11819,46 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", + // "description": "Retrieves a list of private connections in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/privateConnections", // "httpMethod": "GET", - // "id": "datamigration.projects.locations.operations.list", + // "id": "datamigration.projects.locations.privateConnections.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { // "filter": { - // "description": "The standard list filter.", + // "description": "A filter expression that filters private connections listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, \u003e, or \u003c. For example, list private connections created this year by specifying **createTime %gt; 2021-01-01T00:00:00.000000000Z**.", // "location": "query", // "type": "string" // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, + // "orderBy": { + // "description": "Order by fields for the result.", + // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The standard list page size.", + // "description": "Maximum number of private connections to return. If unspecified, at most 50 private connections that will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The standard list page token.", + // "description": "Page token received from a previous `ListPrivateConnections` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPrivateConnections` must match the call that provided the page token.", // "location": "query", // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent that owns the collection of private connections.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" // } // }, - // "path": "v1/{+name}/operations", + // "path": "v1/{+parent}/privateConnections", // "response": { - // "$ref": "ListOperationsResponse" + // "$ref": "ListPrivateConnectionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -7029,7 +11870,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( // 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 *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { +func (c *ProjectsLocationsPrivateConnectionsListCall) Pages(ctx context.Context, f func(*ListPrivateConnectionsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { diff --git a/datapipelines/v1/datapipelines-api.json b/datapipelines/v1/datapipelines-api.json index 919052caa24..8610f9b2a04 100644 --- a/datapipelines/v1/datapipelines-api.json +++ b/datapipelines/v1/datapipelines-api.json @@ -108,77 +108,6 @@ "projects": { "resources": { "locations": { - "methods": { - "computeSchema": { - "description": "Computes the schema for the transform. Computation from `raw_schema` will always occur if it is set. This requires that the transform supports that encoding. If no raw schema is provided and if the transform is for an IO, then this will attempt to connect to the resource using the details provided in `config` and infer the schema from that. If the transform is not an IO, is a sink that doesn't exist yet, or is a sink with no schema requirement, then this will fall back to basing the schema off the one provided in `input_schemas`. The computed schema will be validated.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:computeSchema", - "httpMethod": "POST", - "id": "datapipelines.projects.locations.computeSchema", - "parameterOrder": [ - "location" - ], - "parameters": { - "location": { - "description": "Required. The full location formatted as \"projects/{your-project}/locations/{google-cloud-region}\". If attempting to infer the schema from an existing Google Cloud resource, the default Data Pipelines service account for this project will be used in making requests for the resource. If the region given for \"{google-cloud-region}\" is different than the region where the resource is stored, then the data will be transferred to and processed in the region specified here, but it will not be persistently stored in this region.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+location}:computeSchema", - "request": { - "$ref": "GoogleCloudDatapipelinesV1ComputeSchemaRequest" - }, - "response": { - "$ref": "GoogleCloudDatapipelinesV1Schema" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "listPipelines": { - "description": "Lists pipelines. Returns a \"FORBIDDEN\" error if the caller doesn't have permission to access it.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", - "httpMethod": "GET", - "id": "datapipelines.projects.locations.listPipelines", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "An expression for filtering the results of the request. If unspecified, all pipelines will be returned. Multiple filters can be applied and must be comma separated. Fields eligible for filtering are: + `type`: The type of the pipeline (streaming or batch). Allowed values are `ALL`, `BATCH`, and `STREAMING`. + `status`: The activity status of the pipeline. Allowed values are `ALL`, `ACTIVE`, `ARCHIVED`, and `PAUSED`. For example, to limit results to active batch processing pipelines: type:BATCH,status:ACTIVE", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "The maximum number of entities to return. The service may return fewer than this value, even if there are additional pages. If unspecified, the max limit is yet to be determined by the backend implementation.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "A page token, received from a previous `ListPipelines` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPipelines` must match the call that provided the page token.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}", - "response": { - "$ref": "GoogleCloudDatapipelinesV1ListPipelinesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - }, "resources": { "pipelines": { "methods": { @@ -260,6 +189,47 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "list": { + "description": "Lists pipelines. Returns a \"FORBIDDEN\" error if the caller doesn't have permission to access it.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/pipelines", + "httpMethod": "GET", + "id": "datapipelines.projects.locations.pipelines.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "An expression for filtering the results of the request. If unspecified, all pipelines will be returned. Multiple filters can be applied and must be comma separated. Fields eligible for filtering are: + `type`: The type of the pipeline (streaming or batch). Allowed values are `ALL`, `BATCH`, and `STREAMING`. + `status`: The activity status of the pipeline. Allowed values are `ALL`, `ACTIVE`, `ARCHIVED`, and `PAUSED`. For example, to limit results to active batch processing pipelines: type:BATCH,status:ACTIVE", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of entities to return. The service may return fewer than this value, even if there are additional pages. If unspecified, the max limit is yet to be determined by the backend implementation.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListPipelines` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPipelines` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/pipelines", + "response": { + "$ref": "GoogleCloudDatapipelinesV1ListPipelinesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "patch": { "description": "Updates a pipeline. If successful, the updated Pipeline is returned. Returns `NOT_FOUND` if the pipeline doesn't exist. If UpdatePipeline does not return successfully, you can retry the UpdatePipeline request until you receive a successful response.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/pipelines/{pipelinesId}", @@ -393,198 +363,15 @@ } } } - }, - "transformDescriptions": { - "methods": { - "batchGet": { - "description": "Gets transform descriptions in a batch, associated with a list of provided uniform resource names.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/transformDescriptions:batchGet", - "httpMethod": "GET", - "id": "datapipelines.projects.locations.transformDescriptions.batchGet", - "parameterOrder": [ - "parent" - ], - "parameters": { - "names": { - "description": "Optional. The names of the transform descriptions being retrieved, formatted as \"projects/{project}/locations/{location}/transformdescriptions/{transform_description}\". If no name is provided, all of the transform descriptions will be returned.", - "location": "query", - "repeated": true, - "type": "string" - }, - "parent": { - "description": "Required. The project and location shared by all transform descriptions being retrieved, formatted as \"projects/{project}/locations/{location}\".", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/transformDescriptions:batchGet", - "response": { - "$ref": "GoogleCloudDatapipelinesV1BatchGetTransformDescriptionsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets the transform description associated with the provided uniform resource name.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/transformDescriptions/{transformDescriptionsId}", - "httpMethod": "GET", - "id": "datapipelines.projects.locations.transformDescriptions.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The full name formatted as \"projects/{your-project}/locations/{google-cloud-region}/transformdescriptions/{uniform-resource-name}\".", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/transformDescriptions/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleCloudDatapipelinesV1TransformDescription" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } } } } } } }, - "revision": "20221106", + "revision": "20221210", "rootUrl": "https://datapipelines.googleapis.com/", "schemas": { - "GoogleCloudDatapipelinesV1ArrayValue": { - "description": "Represents an array of values. The elements can be of any type.", - "id": "GoogleCloudDatapipelinesV1ArrayValue", - "properties": { - "elements": { - "description": "The elements of the array.", - "items": { - "$ref": "GoogleCloudDatapipelinesV1FieldValue" - }, - "type": "array" - } - }, - "type": "object" - }, - "GoogleCloudDatapipelinesV1AtomicValue": { - "description": "Represents a non-dividable value.", - "id": "GoogleCloudDatapipelinesV1AtomicValue", - "properties": { - "booleanValue": { - "description": "A boolean value.", - "type": "boolean" - }, - "byteValue": { - "description": "An 8-bit signed value.", - "format": "int32", - "type": "integer" - }, - "bytesValue": { - "description": "An array of raw bytes.", - "format": "byte", - "type": "string" - }, - "datetimeValue": { - "$ref": "GoogleTypeDateTime", - "description": "A datetime value." - }, - "decimalValue": { - "$ref": "GoogleTypeDecimal", - "description": "A large decimal value, equivalent to Java BigDecimal." - }, - "doubleValue": { - "description": "A 64-bit floating point value.", - "format": "double", - "type": "number" - }, - "floatValue": { - "description": "A 32-bit floating point value.", - "format": "float", - "type": "number" - }, - "int16Value": { - "description": "A 16-bit signed value.", - "format": "int32", - "type": "integer" - }, - "int32Value": { - "description": "A 32-bit signed value.", - "format": "int32", - "type": "integer" - }, - "int64Value": { - "description": "A 64-bit signed value.", - "format": "int64", - "type": "string" - }, - "stringValue": { - "description": "A string value.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudDatapipelinesV1BatchGetTransformDescriptionsResponse": { - "description": "Response message for BatchGetTransformDescriptions", - "id": "GoogleCloudDatapipelinesV1BatchGetTransformDescriptionsResponse", - "properties": { - "transformDescriptions": { - "description": "List of requested transform descriptions.", - "items": { - "$ref": "GoogleCloudDatapipelinesV1TransformDescription" - }, - "type": "array" - } - }, - "type": "object" - }, - "GoogleCloudDatapipelinesV1ComputeSchemaRequest": { - "description": "Request message for ComputeSchema", - "id": "GoogleCloudDatapipelinesV1ComputeSchemaRequest", - "properties": { - "config": { - "$ref": "GoogleCloudDatapipelinesV1ConfiguredTransform", - "description": "Required. The configuration for the transform. If this is not a source, then each input with its schema must be set. It is not required to have any outputs set." - }, - "inputSchemas": { - "description": "Optional. In relation to the full pipeline graph, the schemas of the transforms that are used as inputs to the one for `config`. If `config` represents a transform for reading from some resource, then this should be empty. For all other transforms, at least one value must be provided.", - "items": { - "$ref": "GoogleCloudDatapipelinesV1Schema" - }, - "type": "array" - }, - "rawSchema": { - "$ref": "GoogleCloudDatapipelinesV1RawSchemaInfo", - "description": "Optional. If set, this will use the provided raw schema to compute the schema rather than connecting to any resources. Validation will still occur to make sure it is compatible with all input schemas. If the transform is an IO, the IO must support that schema type." - } - }, - "type": "object" - }, - "GoogleCloudDatapipelinesV1ConfiguredTransform": { - "description": "A fully configured transform that can be validated.", - "id": "GoogleCloudDatapipelinesV1ConfiguredTransform", - "properties": { - "config": { - "$ref": "GoogleCloudDatapipelinesV1Row", - "description": "Configuration values provided. These must match the schema provided in the row's schema." - }, - "uniformResourceName": { - "description": "Unique resource name of the transform. This should be the same as the equivalent `TransformDescription` value.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudDatapipelinesV1DataflowJobDetails": { "description": "Pipeline job details specific to the Dataflow API. This is encapsulated here to allow for more executors to store their specific details separately.", "id": "GoogleCloudDatapipelinesV1DataflowJobDetails", @@ -611,148 +398,6 @@ }, "type": "object" }, - "GoogleCloudDatapipelinesV1EnumerationValue": { - "description": "Represents a selected value from an EnumerationType.", - "id": "GoogleCloudDatapipelinesV1EnumerationValue", - "properties": { - "name": { - "description": "Name of the enum option.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudDatapipelinesV1Field": { - "description": "Info for a single field in the schema.", - "id": "GoogleCloudDatapipelinesV1Field", - "properties": { - "name": { - "description": "Name of the field.", - "type": "string" - }, - "type": { - "$ref": "GoogleCloudDatapipelinesV1FieldType", - "description": "Type info for the field." - } - }, - "type": "object" - }, - "GoogleCloudDatapipelinesV1FieldType": { - "description": "Type info about a field.", - "id": "GoogleCloudDatapipelinesV1FieldType", - "properties": { - "collectionElementType": { - "$ref": "GoogleCloudDatapipelinesV1FieldType", - "description": "If `type` is an array or iterable, this is the type contained in that array or iterable." - }, - "logicalType": { - "$ref": "GoogleCloudDatapipelinesV1LogicalType", - "description": "If `type` is a logical type, this is the info for the specific logical type." - }, - "mapType": { - "$ref": "GoogleCloudDatapipelinesV1MapType", - "description": "If `type` is a map, this is the key and value types for that map." - }, - "nullable": { - "description": "Whether or not this field is nullable.", - "type": "boolean" - }, - "rowSchema": { - "$ref": "GoogleCloudDatapipelinesV1Schema", - "description": "If `type` is a row, this is the schema of that row." - }, - "type": { - "description": "Specific type of the field. For non-atomic types, the corresponding type info for that non-atomic must be set.", - "enum": [ - "TYPE_NAME_UNSPECIFIED", - "TYPE_NAME_BYTE", - "TYPE_NAME_INT16", - "TYPE_NAME_INT32", - "TYPE_NAME_INT64", - "TYPE_NAME_DECIMAL", - "TYPE_NAME_FLOAT", - "TYPE_NAME_DOUBLE", - "TYPE_NAME_STRING", - "TYPE_NAME_DATETIME", - "TYPE_NAME_BOOLEAN", - "TYPE_NAME_BYTES", - "TYPE_NAME_ARRAY", - "TYPE_NAME_ITERABLE", - "TYPE_NAME_MAP", - "TYPE_NAME_ROW", - "TYPE_NAME_LOGICAL_TYPE" - ], - "enumDescriptions": [ - "Type name is not set (generally an error)", - "8-bit signed integer", - "16-bit signed integer", - "32-bit signed integer", - "64-bit signed integer", - "Large decimal type (equivalent to Java BigDecimal)", - "32-bit floating point integer", - "64-bit floating point integer", - "String", - "Datetime", - "Bool", - "Convenience for an ARRAY of BYTE values", - "Array of some other values.", - "Iterable of some other values.", - "Key/Value mapping between values.", - "Struct that follows a particular schema", - "Beam logical type" - ], - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudDatapipelinesV1FieldValue": { - "description": "A single value in a row. The value set must correspond to the correct type from the row's schema.", - "id": "GoogleCloudDatapipelinesV1FieldValue", - "properties": { - "arrayValue": { - "$ref": "GoogleCloudDatapipelinesV1ArrayValue", - "description": "The array value of this field. Corresponds to TYPE_NAME_ARRAY in the schema." - }, - "atomicValue": { - "$ref": "GoogleCloudDatapipelinesV1AtomicValue", - "description": "The atomic value of this field. Must correspond to the correct atomic type in the schema." - }, - "enumValue": { - "$ref": "GoogleCloudDatapipelinesV1EnumerationValue", - "description": "The enum value of this field. Corresponds to TYPE_NAME_LOGICAL_TYPE in the schema if that logical type represents an `EnumerationType` type." - }, - "fixedBytesValue": { - "$ref": "GoogleCloudDatapipelinesV1FixedBytesValue", - "description": "The fixed-length byte collection of this field. Corresponds to TYPE_NAME_LOGICAL_TYPE in the schema if that logical type represents a `FixedBytes` type." - }, - "iterableValue": { - "$ref": "GoogleCloudDatapipelinesV1IterableValue", - "description": "The iterable value of this field. Corresponds to TYPE_NAME_ITERABLE in the schema." - }, - "mapValue": { - "$ref": "GoogleCloudDatapipelinesV1MapValue", - "description": "The map value of this field. Corresponds to TYPE_NAME_MAP in the schema." - }, - "rowValue": { - "$ref": "GoogleCloudDatapipelinesV1Row", - "description": "The row value of this field. Corresponds to TYPE_NAME_ROW in the schema. This row also holds to its own schema." - } - }, - "type": "object" - }, - "GoogleCloudDatapipelinesV1FixedBytesValue": { - "description": "Represents a collection of bytes whose size is the same as the associated FixedBytes size value.", - "id": "GoogleCloudDatapipelinesV1FixedBytesValue", - "properties": { - "value": { - "description": "The raw bytes. It must be exactly the size specified in the schema.", - "format": "byte", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudDatapipelinesV1FlexTemplateRuntimeEnvironment": { "description": "The environment values to be set at runtime for a Flex Template.", "id": "GoogleCloudDatapipelinesV1FlexTemplateRuntimeEnvironment", @@ -852,20 +497,6 @@ }, "type": "object" }, - "GoogleCloudDatapipelinesV1IterableValue": { - "description": "Represents an iterable of values. The elements can be of any type.", - "id": "GoogleCloudDatapipelinesV1IterableValue", - "properties": { - "elements": { - "description": "The elements of the iterable.", - "items": { - "$ref": "GoogleCloudDatapipelinesV1FieldValue" - }, - "type": "array" - } - }, - "type": "object" - }, "GoogleCloudDatapipelinesV1Job": { "description": "Definition of the job information maintained by the pipeline. Fields in this entity are retrieved from the executor API (e.g. Dataflow API).", "id": "GoogleCloudDatapipelinesV1Job", @@ -1085,91 +716,6 @@ }, "type": "object" }, - "GoogleCloudDatapipelinesV1LogicalType": { - "description": "Represents the input for creating a specified logical type.", - "id": "GoogleCloudDatapipelinesV1LogicalType", - "properties": { - "enumerationType": { - "$ref": "GoogleCloudDatapipelinesV1LogicalTypeEnumerationType", - "description": "The enum represented by this logical type." - }, - "fixedBytes": { - "$ref": "GoogleCloudDatapipelinesV1LogicalTypeFixedBytes", - "description": "The fixed-size byte collection represented by this logical type." - } - }, - "type": "object" - }, - "GoogleCloudDatapipelinesV1LogicalTypeEnumerationType": { - "description": "Represents the Beam EnumerationType logical type.", - "id": "GoogleCloudDatapipelinesV1LogicalTypeEnumerationType", - "properties": { - "values": { - "description": "Names of the values. The numeric value is the same as the index.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "GoogleCloudDatapipelinesV1LogicalTypeFixedBytes": { - "description": "Represents the Beam FixedBytes logical type.", - "id": "GoogleCloudDatapipelinesV1LogicalTypeFixedBytes", - "properties": { - "sizeBytes": { - "description": "Number of bytes to allocate.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "GoogleCloudDatapipelinesV1MapType": { - "description": "Represents a map in a schema.", - "id": "GoogleCloudDatapipelinesV1MapType", - "properties": { - "mapKeyType": { - "$ref": "GoogleCloudDatapipelinesV1FieldType", - "description": "Key type of the map. Only atomic types are supported." - }, - "mapValueType": { - "$ref": "GoogleCloudDatapipelinesV1FieldType", - "description": "Value type of the map." - } - }, - "type": "object" - }, - "GoogleCloudDatapipelinesV1MapValue": { - "description": "Represents a key/value pairing.", - "id": "GoogleCloudDatapipelinesV1MapValue", - "properties": { - "entries": { - "description": "The entries in the map.", - "items": { - "$ref": "GoogleCloudDatapipelinesV1MapValueEntry" - }, - "type": "array" - } - }, - "type": "object" - }, - "GoogleCloudDatapipelinesV1MapValueEntry": { - "description": "A single entry in the map. Each entry must have a unique key.", - "id": "GoogleCloudDatapipelinesV1MapValueEntry", - "properties": { - "key": { - "$ref": "GoogleCloudDatapipelinesV1FieldValue", - "description": "The key value. Only atomic values are supported." - }, - "value": { - "$ref": "GoogleCloudDatapipelinesV1FieldValue", - "description": "The value associated with the key. It may be of any type." - } - }, - "type": "object" - }, "GoogleCloudDatapipelinesV1Pipeline": { "description": "The main pipeline entity and all the necessary metadata for launching and managing linked jobs.", "id": "GoogleCloudDatapipelinesV1Pipeline", @@ -1256,47 +802,6 @@ }, "type": "object" }, - "GoogleCloudDatapipelinesV1RawSchemaInfo": { - "description": "The raw schema and its type.", - "id": "GoogleCloudDatapipelinesV1RawSchemaInfo", - "properties": { - "rawSchema": { - "description": "The schema.", - "type": "string" - }, - "type": { - "description": "The type of the schema.", - "enum": [ - "RAW_SCHEMA_TYPE_UNSPECIFIED", - "RAW_SCHEMA_TYPE_AVRO" - ], - "enumDescriptions": [ - "The schema type is unknown.", - "The schema is an Avro schema." - ], - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudDatapipelinesV1Row": { - "description": "Represents an Apache Beam row, though the `Any` nature of values is replaced with more concrete representations of valid values.", - "id": "GoogleCloudDatapipelinesV1Row", - "properties": { - "schema": { - "$ref": "GoogleCloudDatapipelinesV1SchemaSource", - "description": "Required. The schema of the row's data." - }, - "values": { - "description": "Required. The values of this Row. A fully built row is required to hold to the schema specified by `schema`.", - "items": { - "$ref": "GoogleCloudDatapipelinesV1FieldValue" - }, - "type": "array" - } - }, - "type": "object" - }, "GoogleCloudDatapipelinesV1RunPipelineRequest": { "description": "Request message for RunPipeline", "id": "GoogleCloudDatapipelinesV1RunPipelineRequest", @@ -1424,39 +929,6 @@ }, "type": "object" }, - "GoogleCloudDatapipelinesV1Schema": { - "description": "Represents a simplified Apache Beam schema.", - "id": "GoogleCloudDatapipelinesV1Schema", - "properties": { - "fields": { - "description": "Fields in the schema. Every field within a schema must have a unique name.", - "items": { - "$ref": "GoogleCloudDatapipelinesV1Field" - }, - "type": "array" - }, - "referenceId": { - "description": "An identifier of the schema for looking it up in a repository. This only needs to be set if the schema is stored in a repository.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudDatapipelinesV1SchemaSource": { - "description": "Holds a schema or a reference to a schema in some repository.", - "id": "GoogleCloudDatapipelinesV1SchemaSource", - "properties": { - "localSchema": { - "$ref": "GoogleCloudDatapipelinesV1Schema", - "description": "Schema located locally with the message." - }, - "referenceId": { - "description": "The `reference_id` value of a schema in a repository.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudDatapipelinesV1SdkVersion": { "description": "The version of the SDK used to run the job.", "id": "GoogleCloudDatapipelinesV1SdkVersion", @@ -1496,26 +968,6 @@ "properties": {}, "type": "object" }, - "GoogleCloudDatapipelinesV1TransformDescription": { - "description": "Description of a schema-aware transform, which provides info on how it can be configured.", - "id": "GoogleCloudDatapipelinesV1TransformDescription", - "properties": { - "name": { - "description": "Output only. The full name of this resource formatted as: projects/{project}/locations/{location}/transformDescriptions/{transform_description} `transform_description` is the same as the `uniform_resource_name` field.", - "readOnly": true, - "type": "string" - }, - "options": { - "$ref": "GoogleCloudDatapipelinesV1Schema", - "description": "Available options for configuring the transform." - }, - "uniformResourceName": { - "description": "Unique resource name of the transform.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudDatapipelinesV1Workload": { "description": "Workload details for creating the pipeline jobs.", "id": "GoogleCloudDatapipelinesV1Workload", @@ -1563,83 +1015,6 @@ } }, "type": "object" - }, - "GoogleTypeDateTime": { - "description": "Represents civil time (or occasionally physical time). This type can represent a civil time in one of a few possible ways: * When utc_offset is set and time_zone is unset: a civil time on a calendar day with a particular offset from UTC. * When time_zone is set and utc_offset is unset: a civil time on a calendar day in a particular time zone. * When neither time_zone nor utc_offset is set: a civil time on a calendar day in local time. The date is relative to the Proleptic Gregorian Calendar. If year, month, or day are 0, the DateTime is considered not to have a specific year, month, or day respectively. This type may also be used to represent a physical time if all the date and time fields are set and either case of the `time_offset` oneof is set. Consider using `Timestamp` message for physical time instead. If your use case also would like to store the user's timezone, that can be done in another field. This type is more flexible than some applications may want. Make sure to document and validate your application's limitations.", - "id": "GoogleTypeDateTime", - "properties": { - "day": { - "description": "Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day.", - "format": "int32", - "type": "integer" - }, - "hours": { - "description": "Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", - "format": "int32", - "type": "integer" - }, - "minutes": { - "description": "Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.", - "format": "int32", - "type": "integer" - }, - "month": { - "description": "Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month.", - "format": "int32", - "type": "integer" - }, - "nanos": { - "description": "Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0.", - "format": "int32", - "type": "integer" - }, - "seconds": { - "description": "Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds.", - "format": "int32", - "type": "integer" - }, - "timeZone": { - "$ref": "GoogleTypeTimeZone", - "description": "Time zone." - }, - "utcOffset": { - "description": "UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.", - "format": "google-duration", - "type": "string" - }, - "year": { - "description": "Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "GoogleTypeDecimal": { - "description": "A representation of a decimal value, such as 2.5. Clients may convert values into language-native decimal formats, such as Java's BigDecimal or Python's decimal.Decimal. [BigDecimal]: https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html [decimal.Decimal]: https://docs.python.org/3/library/decimal.html", - "id": "GoogleTypeDecimal", - "properties": { - "value": { - "description": "The decimal value, as a string. The string representation consists of an optional sign, `+` (`U+002B`) or `-` (`U+002D`), followed by a sequence of zero or more decimal digits (\"the integer\"), optionally followed by a fraction, optionally followed by an exponent. An empty string **should** be interpreted as `0`. The fraction consists of a decimal point followed by zero or more decimal digits. The string must contain at least one digit in either the integer or the fraction. The number formed by the sign, the integer and the fraction is referred to as the significand. The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) followed by one or more decimal digits. Services **should** normalize decimal values before storing them by: - Removing an explicitly-provided `+` sign (`+2.5` -\u003e `2.5`). - Replacing a zero-length integer value with `0` (`.5` -\u003e `0.5`). - Coercing the exponent character to upper-case, with explicit sign (`2.5e8` -\u003e `2.5E+8`). - Removing an explicitly-provided zero exponent (`2.5E0` -\u003e `2.5`). Services **may** perform additional normalization based on its own needs and the internal decimal implementation selected, such as shifting the decimal point and exponent value together (example: `2.5E-1` \u003c-\u003e `0.25`). Additionally, services **may** preserve trailing zeroes in the fraction to indicate increased precision, but are not required to do so. Note that only the `.` character is supported to divide the integer and the fraction; `,` **should not** be supported regardless of locale. Additionally, thousand separators **should not** be supported. If a service does support them, values **must** be normalized. The ENBF grammar is: DecimalString = '' | [Sign] Significand [Exponent]; Sign = '+' | '-'; Significand = Digits '.' | [Digits] '.' Digits; Exponent = ('e' | 'E') [Sign] Digits; Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; Services **should** clearly document the range of supported values, the maximum supported precision (total number of digits), and, if applicable, the scale (number of digits after the decimal point), as well as how it behaves when receiving out-of-bounds values. Services **may** choose to accept values passed as input even when the value has a higher precision or scale than the service supports, and **should** round the value to fit the supported scale. Alternatively, the service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) if precision would be lost. Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) if the service receives a value outside of the supported range.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleTypeTimeZone": { - "description": "Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones).", - "id": "GoogleTypeTimeZone", - "properties": { - "id": { - "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", - "type": "string" - }, - "version": { - "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", - "type": "string" - } - }, - "type": "object" } }, "servicePath": "", diff --git a/datapipelines/v1/datapipelines-gen.go b/datapipelines/v1/datapipelines-gen.go index bffd8160300..5f8ce087cd6 100644 --- a/datapipelines/v1/datapipelines-gen.go +++ b/datapipelines/v1/datapipelines-gen.go @@ -152,7 +152,6 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} rs.Pipelines = NewProjectsLocationsPipelinesService(s) - rs.TransformDescriptions = NewProjectsLocationsTransformDescriptionsService(s) return rs } @@ -160,8 +159,6 @@ type ProjectsLocationsService struct { s *Service Pipelines *ProjectsLocationsPipelinesService - - TransformDescriptions *ProjectsLocationsTransformDescriptionsService } func NewProjectsLocationsPipelinesService(s *Service) *ProjectsLocationsPipelinesService { @@ -185,233 +182,6 @@ type ProjectsLocationsPipelinesJobsService struct { s *Service } -func NewProjectsLocationsTransformDescriptionsService(s *Service) *ProjectsLocationsTransformDescriptionsService { - rs := &ProjectsLocationsTransformDescriptionsService{s: s} - return rs -} - -type ProjectsLocationsTransformDescriptionsService struct { - s *Service -} - -// GoogleCloudDatapipelinesV1ArrayValue: Represents an array of values. -// The elements can be of any type. -type GoogleCloudDatapipelinesV1ArrayValue struct { - // Elements: The elements of the array. - Elements []*GoogleCloudDatapipelinesV1FieldValue `json:"elements,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Elements") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Elements") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatapipelinesV1ArrayValue) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatapipelinesV1ArrayValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDatapipelinesV1AtomicValue: Represents a non-dividable -// value. -type GoogleCloudDatapipelinesV1AtomicValue struct { - // BooleanValue: A boolean value. - BooleanValue bool `json:"booleanValue,omitempty"` - - // ByteValue: An 8-bit signed value. - ByteValue int64 `json:"byteValue,omitempty"` - - // BytesValue: An array of raw bytes. - BytesValue string `json:"bytesValue,omitempty"` - - // DatetimeValue: A datetime value. - DatetimeValue *GoogleTypeDateTime `json:"datetimeValue,omitempty"` - - // DecimalValue: A large decimal value, equivalent to Java BigDecimal. - DecimalValue *GoogleTypeDecimal `json:"decimalValue,omitempty"` - - // DoubleValue: A 64-bit floating point value. - DoubleValue float64 `json:"doubleValue,omitempty"` - - // FloatValue: A 32-bit floating point value. - FloatValue float64 `json:"floatValue,omitempty"` - - // Int16Value: A 16-bit signed value. - Int16Value int64 `json:"int16Value,omitempty"` - - // Int32Value: A 32-bit signed value. - Int32Value int64 `json:"int32Value,omitempty"` - - // Int64Value: A 64-bit signed value. - Int64Value int64 `json:"int64Value,omitempty,string"` - - // StringValue: A string value. - StringValue string `json:"stringValue,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BooleanValue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BooleanValue") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatapipelinesV1AtomicValue) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatapipelinesV1AtomicValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *GoogleCloudDatapipelinesV1AtomicValue) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudDatapipelinesV1AtomicValue - var s1 struct { - DoubleValue gensupport.JSONFloat64 `json:"doubleValue"` - FloatValue gensupport.JSONFloat64 `json:"floatValue"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.DoubleValue = float64(s1.DoubleValue) - s.FloatValue = float64(s1.FloatValue) - return nil -} - -// GoogleCloudDatapipelinesV1BatchGetTransformDescriptionsResponse: -// Response message for BatchGetTransformDescriptions -type GoogleCloudDatapipelinesV1BatchGetTransformDescriptionsResponse struct { - // TransformDescriptions: List of requested transform descriptions. - TransformDescriptions []*GoogleCloudDatapipelinesV1TransformDescription `json:"transformDescriptions,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "TransformDescriptions") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TransformDescriptions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatapipelinesV1BatchGetTransformDescriptionsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatapipelinesV1BatchGetTransformDescriptionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDatapipelinesV1ComputeSchemaRequest: Request message for -// ComputeSchema -type GoogleCloudDatapipelinesV1ComputeSchemaRequest struct { - // Config: Required. The configuration for the transform. If this is not - // a source, then each input with its schema must be set. It is not - // required to have any outputs set. - Config *GoogleCloudDatapipelinesV1ConfiguredTransform `json:"config,omitempty"` - - // InputSchemas: Optional. In relation to the full pipeline graph, the - // schemas of the transforms that are used as inputs to the one for - // `config`. If `config` represents a transform for reading from some - // resource, then this should be empty. For all other transforms, at - // least one value must be provided. - InputSchemas []*GoogleCloudDatapipelinesV1Schema `json:"inputSchemas,omitempty"` - - // RawSchema: Optional. If set, this will use the provided raw schema to - // compute the schema rather than connecting to any resources. - // Validation will still occur to make sure it is compatible with all - // input schemas. If the transform is an IO, the IO must support that - // schema type. - RawSchema *GoogleCloudDatapipelinesV1RawSchemaInfo `json:"rawSchema,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Config") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Config") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatapipelinesV1ComputeSchemaRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatapipelinesV1ComputeSchemaRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDatapipelinesV1ConfiguredTransform: A fully configured -// transform that can be validated. -type GoogleCloudDatapipelinesV1ConfiguredTransform struct { - // Config: Configuration values provided. These must match the schema - // provided in the row's schema. - Config *GoogleCloudDatapipelinesV1Row `json:"config,omitempty"` - - // UniformResourceName: Unique resource name of the transform. This - // should be the same as the equivalent `TransformDescription` value. - UniformResourceName string `json:"uniformResourceName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Config") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Config") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatapipelinesV1ConfiguredTransform) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatapipelinesV1ConfiguredTransform - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudDatapipelinesV1DataflowJobDetails: Pipeline job details // specific to the Dataflow API. This is encapsulated here to allow for // more executors to store their specific details separately. @@ -452,222 +222,6 @@ func (s *GoogleCloudDatapipelinesV1DataflowJobDetails) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDatapipelinesV1EnumerationValue: Represents a selected -// value from an EnumerationType. -type GoogleCloudDatapipelinesV1EnumerationValue struct { - // Name: Name of the enum option. - Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatapipelinesV1EnumerationValue) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatapipelinesV1EnumerationValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDatapipelinesV1Field: Info for a single field in the -// schema. -type GoogleCloudDatapipelinesV1Field struct { - // Name: Name of the field. - Name string `json:"name,omitempty"` - - // Type: Type info for the field. - Type *GoogleCloudDatapipelinesV1FieldType `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatapipelinesV1Field) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatapipelinesV1Field - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDatapipelinesV1FieldType: Type info about a field. -type GoogleCloudDatapipelinesV1FieldType struct { - // CollectionElementType: If `type` is an array or iterable, this is the - // type contained in that array or iterable. - CollectionElementType *GoogleCloudDatapipelinesV1FieldType `json:"collectionElementType,omitempty"` - - // LogicalType: If `type` is a logical type, this is the info for the - // specific logical type. - LogicalType *GoogleCloudDatapipelinesV1LogicalType `json:"logicalType,omitempty"` - - // MapType: If `type` is a map, this is the key and value types for that - // map. - MapType *GoogleCloudDatapipelinesV1MapType `json:"mapType,omitempty"` - - // Nullable: Whether or not this field is nullable. - Nullable bool `json:"nullable,omitempty"` - - // RowSchema: If `type` is a row, this is the schema of that row. - RowSchema *GoogleCloudDatapipelinesV1Schema `json:"rowSchema,omitempty"` - - // Type: Specific type of the field. For non-atomic types, the - // corresponding type info for that non-atomic must be set. - // - // Possible values: - // "TYPE_NAME_UNSPECIFIED" - Type name is not set (generally an error) - // "TYPE_NAME_BYTE" - 8-bit signed integer - // "TYPE_NAME_INT16" - 16-bit signed integer - // "TYPE_NAME_INT32" - 32-bit signed integer - // "TYPE_NAME_INT64" - 64-bit signed integer - // "TYPE_NAME_DECIMAL" - Large decimal type (equivalent to Java - // BigDecimal) - // "TYPE_NAME_FLOAT" - 32-bit floating point integer - // "TYPE_NAME_DOUBLE" - 64-bit floating point integer - // "TYPE_NAME_STRING" - String - // "TYPE_NAME_DATETIME" - Datetime - // "TYPE_NAME_BOOLEAN" - Bool - // "TYPE_NAME_BYTES" - Convenience for an ARRAY of BYTE values - // "TYPE_NAME_ARRAY" - Array of some other values. - // "TYPE_NAME_ITERABLE" - Iterable of some other values. - // "TYPE_NAME_MAP" - Key/Value mapping between values. - // "TYPE_NAME_ROW" - Struct that follows a particular schema - // "TYPE_NAME_LOGICAL_TYPE" - Beam logical type - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CollectionElementType") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CollectionElementType") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatapipelinesV1FieldType) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatapipelinesV1FieldType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDatapipelinesV1FieldValue: A single value in a row. The -// value set must correspond to the correct type from the row's schema. -type GoogleCloudDatapipelinesV1FieldValue struct { - // ArrayValue: The array value of this field. Corresponds to - // TYPE_NAME_ARRAY in the schema. - ArrayValue *GoogleCloudDatapipelinesV1ArrayValue `json:"arrayValue,omitempty"` - - // AtomicValue: The atomic value of this field. Must correspond to the - // correct atomic type in the schema. - AtomicValue *GoogleCloudDatapipelinesV1AtomicValue `json:"atomicValue,omitempty"` - - // EnumValue: The enum value of this field. Corresponds to - // TYPE_NAME_LOGICAL_TYPE in the schema if that logical type represents - // an `EnumerationType` type. - EnumValue *GoogleCloudDatapipelinesV1EnumerationValue `json:"enumValue,omitempty"` - - // FixedBytesValue: The fixed-length byte collection of this field. - // Corresponds to TYPE_NAME_LOGICAL_TYPE in the schema if that logical - // type represents a `FixedBytes` type. - FixedBytesValue *GoogleCloudDatapipelinesV1FixedBytesValue `json:"fixedBytesValue,omitempty"` - - // IterableValue: The iterable value of this field. Corresponds to - // TYPE_NAME_ITERABLE in the schema. - IterableValue *GoogleCloudDatapipelinesV1IterableValue `json:"iterableValue,omitempty"` - - // MapValue: The map value of this field. Corresponds to TYPE_NAME_MAP - // in the schema. - MapValue *GoogleCloudDatapipelinesV1MapValue `json:"mapValue,omitempty"` - - // RowValue: The row value of this field. Corresponds to TYPE_NAME_ROW - // in the schema. This row also holds to its own schema. - RowValue *GoogleCloudDatapipelinesV1Row `json:"rowValue,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ArrayValue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ArrayValue") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatapipelinesV1FieldValue) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatapipelinesV1FieldValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDatapipelinesV1FixedBytesValue: Represents a collection of -// bytes whose size is the same as the associated FixedBytes size value. -type GoogleCloudDatapipelinesV1FixedBytesValue struct { - // Value: The raw bytes. It must be exactly the size specified in the - // schema. - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Value") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Value") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatapipelinesV1FixedBytesValue) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatapipelinesV1FixedBytesValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudDatapipelinesV1FlexTemplateRuntimeEnvironment: The // environment values to be set at runtime for a Flex Template. type GoogleCloudDatapipelinesV1FlexTemplateRuntimeEnvironment struct { @@ -788,41 +342,12 @@ func (s *GoogleCloudDatapipelinesV1FlexTemplateRuntimeEnvironment) MarshalJSON() return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDatapipelinesV1IterableValue: Represents an iterable of -// values. The elements can be of any type. -type GoogleCloudDatapipelinesV1IterableValue struct { - // Elements: The elements of the iterable. - Elements []*GoogleCloudDatapipelinesV1FieldValue `json:"elements,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Elements") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Elements") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatapipelinesV1IterableValue) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatapipelinesV1IterableValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDatapipelinesV1Job: Definition of the job information -// maintained by the pipeline. Fields in this entity are retrieved from -// the executor API (e.g. Dataflow API). -type GoogleCloudDatapipelinesV1Job struct { - // CreateTime: Output only. The time of job creation. - CreateTime string `json:"createTime,omitempty"` +// GoogleCloudDatapipelinesV1Job: Definition of the job information +// maintained by the pipeline. Fields in this entity are retrieved from +// the executor API (e.g. Dataflow API). +type GoogleCloudDatapipelinesV1Job struct { + // CreateTime: Output only. The time of job creation. + CreateTime string `json:"createTime,omitempty"` // DataflowJobDetails: All the details that are specific to a Dataflow // job. @@ -1150,190 +675,6 @@ func (s *GoogleCloudDatapipelinesV1ListPipelinesResponse) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDatapipelinesV1LogicalType: Represents the input for -// creating a specified logical type. -type GoogleCloudDatapipelinesV1LogicalType struct { - // EnumerationType: The enum represented by this logical type. - EnumerationType *GoogleCloudDatapipelinesV1LogicalTypeEnumerationType `json:"enumerationType,omitempty"` - - // FixedBytes: The fixed-size byte collection represented by this - // logical type. - FixedBytes *GoogleCloudDatapipelinesV1LogicalTypeFixedBytes `json:"fixedBytes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EnumerationType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EnumerationType") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatapipelinesV1LogicalType) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatapipelinesV1LogicalType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDatapipelinesV1LogicalTypeEnumerationType: Represents the -// Beam EnumerationType logical type. -type GoogleCloudDatapipelinesV1LogicalTypeEnumerationType struct { - // Values: Names of the values. The numeric value is the same as the - // index. - Values []string `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Values") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Values") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatapipelinesV1LogicalTypeEnumerationType) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatapipelinesV1LogicalTypeEnumerationType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDatapipelinesV1LogicalTypeFixedBytes: Represents the Beam -// FixedBytes logical type. -type GoogleCloudDatapipelinesV1LogicalTypeFixedBytes struct { - // SizeBytes: Number of bytes to allocate. - SizeBytes int64 `json:"sizeBytes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "SizeBytes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SizeBytes") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatapipelinesV1LogicalTypeFixedBytes) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatapipelinesV1LogicalTypeFixedBytes - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDatapipelinesV1MapType: Represents a map in a schema. -type GoogleCloudDatapipelinesV1MapType struct { - // MapKeyType: Key type of the map. Only atomic types are supported. - MapKeyType *GoogleCloudDatapipelinesV1FieldType `json:"mapKeyType,omitempty"` - - // MapValueType: Value type of the map. - MapValueType *GoogleCloudDatapipelinesV1FieldType `json:"mapValueType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "MapKeyType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MapKeyType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatapipelinesV1MapType) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatapipelinesV1MapType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDatapipelinesV1MapValue: Represents a key/value pairing. -type GoogleCloudDatapipelinesV1MapValue struct { - // Entries: The entries in the map. - Entries []*GoogleCloudDatapipelinesV1MapValueEntry `json:"entries,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatapipelinesV1MapValue) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatapipelinesV1MapValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDatapipelinesV1MapValueEntry: A single entry in the map. -// Each entry must have a unique key. -type GoogleCloudDatapipelinesV1MapValueEntry struct { - // Key: The key value. Only atomic values are supported. - Key *GoogleCloudDatapipelinesV1FieldValue `json:"key,omitempty"` - - // Value: The value associated with the key. It may be of any type. - Value *GoogleCloudDatapipelinesV1FieldValue `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatapipelinesV1MapValueEntry) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatapipelinesV1MapValueEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudDatapipelinesV1Pipeline: The main pipeline entity and all // the necessary metadata for launching and managing linked jobs. type GoogleCloudDatapipelinesV1Pipeline struct { @@ -1451,75 +792,6 @@ func (s *GoogleCloudDatapipelinesV1Pipeline) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDatapipelinesV1RawSchemaInfo: The raw schema and its type. -type GoogleCloudDatapipelinesV1RawSchemaInfo struct { - // RawSchema: The schema. - RawSchema string `json:"rawSchema,omitempty"` - - // Type: The type of the schema. - // - // Possible values: - // "RAW_SCHEMA_TYPE_UNSPECIFIED" - The schema type is unknown. - // "RAW_SCHEMA_TYPE_AVRO" - The schema is an Avro schema. - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "RawSchema") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RawSchema") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatapipelinesV1RawSchemaInfo) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatapipelinesV1RawSchemaInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDatapipelinesV1Row: Represents an Apache Beam row, though -// the `Any` nature of values is replaced with more concrete -// representations of valid values. -type GoogleCloudDatapipelinesV1Row struct { - // Schema: Required. The schema of the row's data. - Schema *GoogleCloudDatapipelinesV1SchemaSource `json:"schema,omitempty"` - - // Values: Required. The values of this Row. A fully built row is - // required to hold to the schema specified by `schema`. - Values []*GoogleCloudDatapipelinesV1FieldValue `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Schema") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Schema") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatapipelinesV1Row) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatapipelinesV1Row - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudDatapipelinesV1RunPipelineRequest: Request message for // RunPipeline type GoogleCloudDatapipelinesV1RunPipelineRequest struct { @@ -1711,77 +983,6 @@ func (s *GoogleCloudDatapipelinesV1ScheduleSpec) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDatapipelinesV1Schema: Represents a simplified Apache Beam -// schema. -type GoogleCloudDatapipelinesV1Schema struct { - // Fields: Fields in the schema. Every field within a schema must have a - // unique name. - Fields []*GoogleCloudDatapipelinesV1Field `json:"fields,omitempty"` - - // ReferenceId: An identifier of the schema for looking it up in a - // repository. This only needs to be set if the schema is stored in a - // repository. - ReferenceId string `json:"referenceId,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Fields") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Fields") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatapipelinesV1Schema) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatapipelinesV1Schema - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDatapipelinesV1SchemaSource: Holds a schema or a reference -// to a schema in some repository. -type GoogleCloudDatapipelinesV1SchemaSource struct { - // LocalSchema: Schema located locally with the message. - LocalSchema *GoogleCloudDatapipelinesV1Schema `json:"localSchema,omitempty"` - - // ReferenceId: The `reference_id` value of a schema in a repository. - ReferenceId string `json:"referenceId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LocalSchema") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LocalSchema") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatapipelinesV1SchemaSource) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatapipelinesV1SchemaSource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudDatapipelinesV1SdkVersion: The version of the SDK used to // run the job. type GoogleCloudDatapipelinesV1SdkVersion struct { @@ -1834,69 +1035,26 @@ func (s *GoogleCloudDatapipelinesV1SdkVersion) MarshalJSON() ([]byte, error) { type GoogleCloudDatapipelinesV1StopPipelineRequest struct { } -// GoogleCloudDatapipelinesV1TransformDescription: Description of a -// schema-aware transform, which provides info on how it can be -// configured. -type GoogleCloudDatapipelinesV1TransformDescription struct { - // Name: Output only. The full name of this resource formatted as: - // projects/{project}/locations/{location}/transformDescriptions/{transfo - // rm_description} `transform_description` is the same as the - // `uniform_resource_name` field. - Name string `json:"name,omitempty"` +// GoogleCloudDatapipelinesV1Workload: Workload details for creating the +// pipeline jobs. +type GoogleCloudDatapipelinesV1Workload struct { + // DataflowFlexTemplateRequest: Template information and additional + // parameters needed to launch a Dataflow job using the flex launch API. + DataflowFlexTemplateRequest *GoogleCloudDatapipelinesV1LaunchFlexTemplateRequest `json:"dataflowFlexTemplateRequest,omitempty"` - // Options: Available options for configuring the transform. - Options *GoogleCloudDatapipelinesV1Schema `json:"options,omitempty"` + // DataflowLaunchTemplateRequest: Template information and additional + // parameters needed to launch a Dataflow job using the standard launch + // API. + DataflowLaunchTemplateRequest *GoogleCloudDatapipelinesV1LaunchTemplateRequest `json:"dataflowLaunchTemplateRequest,omitempty"` - // UniformResourceName: Unique resource name of the transform. - UniformResourceName string `json:"uniformResourceName,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatapipelinesV1TransformDescription) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatapipelinesV1TransformDescription - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDatapipelinesV1Workload: Workload details for creating the -// pipeline jobs. -type GoogleCloudDatapipelinesV1Workload struct { - // DataflowFlexTemplateRequest: Template information and additional - // parameters needed to launch a Dataflow job using the flex launch API. - DataflowFlexTemplateRequest *GoogleCloudDatapipelinesV1LaunchFlexTemplateRequest `json:"dataflowFlexTemplateRequest,omitempty"` - - // DataflowLaunchTemplateRequest: Template information and additional - // parameters needed to launch a Dataflow job using the standard launch - // API. - DataflowLaunchTemplateRequest *GoogleCloudDatapipelinesV1LaunchTemplateRequest `json:"dataflowLaunchTemplateRequest,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "DataflowFlexTemplateRequest") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. - ForceSendFields []string `json:"-"` + // ForceSendFields is a list of field names (e.g. + // "DataflowFlexTemplateRequest") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "DataflowFlexTemplateRequest") to include in API requests with the @@ -1931,604 +1089,42 @@ type GoogleProtobufEmpty struct { // `Status` message contains three pieces of data: error code, error // message, and error details. You can find out more about this error // model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). -type GoogleRpcStatus struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. - Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. - Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. - Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { - type NoMethod GoogleRpcStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleTypeDateTime: Represents civil time (or occasionally physical -// time). This type can represent a civil time in one of a few possible -// ways: * When utc_offset is set and time_zone is unset: a civil time -// on a calendar day with a particular offset from UTC. * When time_zone -// is set and utc_offset is unset: a civil time on a calendar day in a -// particular time zone. * When neither time_zone nor utc_offset is set: -// a civil time on a calendar day in local time. The date is relative to -// the Proleptic Gregorian Calendar. If year, month, or day are 0, the -// DateTime is considered not to have a specific year, month, or day -// respectively. This type may also be used to represent a physical time -// if all the date and time fields are set and either case of the -// `time_offset` oneof is set. Consider using `Timestamp` message for -// physical time instead. If your use case also would like to store the -// user's timezone, that can be done in another field. This type is more -// flexible than some applications may want. Make sure to document and -// validate your application's limitations. -type GoogleTypeDateTime struct { - // Day: Optional. Day of month. Must be from 1 to 31 and valid for the - // year and month, or 0 if specifying a datetime without a day. - Day int64 `json:"day,omitempty"` - - // Hours: Optional. Hours of day in 24 hour format. Should be from 0 to - // 23, defaults to 0 (midnight). An API may choose to allow the value - // "24:00:00" for scenarios like business closing time. - Hours int64 `json:"hours,omitempty"` - - // Minutes: Optional. Minutes of hour of day. Must be from 0 to 59, - // defaults to 0. - Minutes int64 `json:"minutes,omitempty"` - - // Month: Optional. Month of year. Must be from 1 to 12, or 0 if - // specifying a datetime without a month. - Month int64 `json:"month,omitempty"` - - // Nanos: Optional. Fractions of seconds in nanoseconds. Must be from 0 - // to 999,999,999, defaults to 0. - Nanos int64 `json:"nanos,omitempty"` - - // Seconds: Optional. Seconds of minutes of the time. Must normally be - // from 0 to 59, defaults to 0. An API may allow the value 60 if it - // allows leap-seconds. - Seconds int64 `json:"seconds,omitempty"` - - // TimeZone: Time zone. - TimeZone *GoogleTypeTimeZone `json:"timeZone,omitempty"` - - // UtcOffset: UTC offset. Must be whole seconds, between -18 hours and - // +18 hours. For example, a UTC offset of -4:00 would be represented as - // { seconds: -14400 }. - UtcOffset string `json:"utcOffset,omitempty"` - - // Year: Optional. Year of date. Must be from 1 to 9999, or 0 if - // specifying a datetime without a year. - Year int64 `json:"year,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Day") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Day") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleTypeDateTime) MarshalJSON() ([]byte, error) { - type NoMethod GoogleTypeDateTime - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleTypeDecimal: A representation of a decimal value, such as 2.5. -// Clients may convert values into language-native decimal formats, such -// as Java's BigDecimal or Python's decimal.Decimal. [BigDecimal]: -// https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html -// [decimal.Decimal]: https://docs.python.org/3/library/decimal.html -type GoogleTypeDecimal struct { - // Value: The decimal value, as a string. The string representation - // consists of an optional sign, `+` (`U+002B`) or `-` (`U+002D`), - // followed by a sequence of zero or more decimal digits ("the - // integer"), optionally followed by a fraction, optionally followed by - // an exponent. An empty string **should** be interpreted as `0`. The - // fraction consists of a decimal point followed by zero or more decimal - // digits. The string must contain at least one digit in either the - // integer or the fraction. The number formed by the sign, the integer - // and the fraction is referred to as the significand. The exponent - // consists of the character `e` (`U+0065`) or `E` (`U+0045`) followed - // by one or more decimal digits. Services **should** normalize decimal - // values before storing them by: - Removing an explicitly-provided `+` - // sign (`+2.5` -> `2.5`). - Replacing a zero-length integer value with - // `0` (`.5` -> `0.5`). - Coercing the exponent character to upper-case, - // with explicit sign (`2.5e8` -> `2.5E+8`). - Removing an - // explicitly-provided zero exponent (`2.5E0` -> `2.5`). Services - // **may** perform additional normalization based on its own needs and - // the internal decimal implementation selected, such as shifting the - // decimal point and exponent value together (example: `2.5E-1` <-> - // `0.25`). Additionally, services **may** preserve trailing zeroes in - // the fraction to indicate increased precision, but are not required to - // do so. Note that only the `.` character is supported to divide the - // integer and the fraction; `,` **should not** be supported regardless - // of locale. Additionally, thousand separators **should not** be - // supported. If a service does support them, values **must** be - // normalized. The ENBF grammar is: DecimalString = '' | [Sign] - // Significand [Exponent]; Sign = '+' | '-'; Significand = Digits '.' | - // [Digits] '.' Digits; Exponent = ('e' | 'E') [Sign] Digits; Digits = { - // '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; Services - // **should** clearly document the range of supported values, the - // maximum supported precision (total number of digits), and, if - // applicable, the scale (number of digits after the decimal point), as - // well as how it behaves when receiving out-of-bounds values. Services - // **may** choose to accept values passed as input even when the value - // has a higher precision or scale than the service supports, and - // **should** round the value to fit the supported scale. Alternatively, - // the service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` - // in gRPC) if precision would be lost. Services **should** error with - // `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) if the service - // receives a value outside of the supported range. - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Value") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Value") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleTypeDecimal) MarshalJSON() ([]byte, error) { - type NoMethod GoogleTypeDecimal - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleTypeTimeZone: Represents a time zone from the IANA Time Zone -// Database (https://www.iana.org/time-zones). -type GoogleTypeTimeZone struct { - // Id: IANA Time Zone Database time zone, e.g. "America/New_York". - Id string `json:"id,omitempty"` - - // Version: Optional. IANA Time Zone Database version number, e.g. - // "2019a". - Version string `json:"version,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleTypeTimeZone) MarshalJSON() ([]byte, error) { - type NoMethod GoogleTypeTimeZone - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// method id "datapipelines.projects.locations.computeSchema": - -type ProjectsLocationsComputeSchemaCall struct { - s *Service - location string - googleclouddatapipelinesv1computeschemarequest *GoogleCloudDatapipelinesV1ComputeSchemaRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// ComputeSchema: Computes the schema for the transform. Computation -// from `raw_schema` will always occur if it is set. This requires that -// the transform supports that encoding. If no raw schema is provided -// and if the transform is for an IO, then this will attempt to connect -// to the resource using the details provided in `config` and infer the -// schema from that. If the transform is not an IO, is a sink that -// doesn't exist yet, or is a sink with no schema requirement, then this -// will fall back to basing the schema off the one provided in -// `input_schemas`. The computed schema will be validated. -// -// - location: The full location formatted as -// "projects/{your-project}/locations/{google-cloud-region}". If -// attempting to infer the schema from an existing Google Cloud -// resource, the default Data Pipelines service account for this -// project will be used in making requests for the resource. If the -// region given for "{google-cloud-region}" is different than the -// region where the resource is stored, then the data will be -// transferred to and processed in the region specified here, but it -// will not be persistently stored in this region. -func (r *ProjectsLocationsService) ComputeSchema(location string, googleclouddatapipelinesv1computeschemarequest *GoogleCloudDatapipelinesV1ComputeSchemaRequest) *ProjectsLocationsComputeSchemaCall { - c := &ProjectsLocationsComputeSchemaCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.location = location - c.googleclouddatapipelinesv1computeschemarequest = googleclouddatapipelinesv1computeschemarequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsComputeSchemaCall) Fields(s ...googleapi.Field) *ProjectsLocationsComputeSchemaCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsComputeSchemaCall) Context(ctx context.Context) *ProjectsLocationsComputeSchemaCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsComputeSchemaCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsComputeSchemaCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatapipelinesv1computeschemarequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}:computeSchema") - 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, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "datapipelines.projects.locations.computeSchema" call. -// Exactly one of *GoogleCloudDatapipelinesV1Schema or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudDatapipelinesV1Schema.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 *ProjectsLocationsComputeSchemaCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatapipelinesV1Schema, 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 := &GoogleCloudDatapipelinesV1Schema{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Computes the schema for the transform. Computation from `raw_schema` will always occur if it is set. This requires that the transform supports that encoding. If no raw schema is provided and if the transform is for an IO, then this will attempt to connect to the resource using the details provided in `config` and infer the schema from that. If the transform is not an IO, is a sink that doesn't exist yet, or is a sink with no schema requirement, then this will fall back to basing the schema off the one provided in `input_schemas`. The computed schema will be validated.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:computeSchema", - // "httpMethod": "POST", - // "id": "datapipelines.projects.locations.computeSchema", - // "parameterOrder": [ - // "location" - // ], - // "parameters": { - // "location": { - // "description": "Required. The full location formatted as \"projects/{your-project}/locations/{google-cloud-region}\". If attempting to infer the schema from an existing Google Cloud resource, the default Data Pipelines service account for this project will be used in making requests for the resource. If the region given for \"{google-cloud-region}\" is different than the region where the resource is stored, then the data will be transferred to and processed in the region specified here, but it will not be persistently stored in this region.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+location}:computeSchema", - // "request": { - // "$ref": "GoogleCloudDatapipelinesV1ComputeSchemaRequest" - // }, - // "response": { - // "$ref": "GoogleCloudDatapipelinesV1Schema" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "datapipelines.projects.locations.listPipelines": - -type ProjectsLocationsListPipelinesCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// ListPipelines: Lists pipelines. Returns a "FORBIDDEN" error if the -// caller doesn't have permission to access it. -// -// - parent: The location name. For example: -// `projects/PROJECT_ID/locations/LOCATION_ID`. -func (r *ProjectsLocationsService) ListPipelines(parent string) *ProjectsLocationsListPipelinesCall { - c := &ProjectsLocationsListPipelinesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": An expression for -// filtering the results of the request. If unspecified, all pipelines -// will be returned. Multiple filters can be applied and must be comma -// separated. Fields eligible for filtering are: + `type`: The type of -// the pipeline (streaming or batch). Allowed values are `ALL`, `BATCH`, -// and `STREAMING`. + `status`: The activity status of the pipeline. -// Allowed values are `ALL`, `ACTIVE`, `ARCHIVED`, and `PAUSED`. For -// example, to limit results to active batch processing pipelines: -// type:BATCH,status:ACTIVE -func (c *ProjectsLocationsListPipelinesCall) Filter(filter string) *ProjectsLocationsListPipelinesCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of entities to return. The service may return fewer than this value, -// even if there are additional pages. If unspecified, the max limit is -// yet to be determined by the backend implementation. -func (c *ProjectsLocationsListPipelinesCall) PageSize(pageSize int64) *ProjectsLocationsListPipelinesCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `ListPipelines` call. Provide this to -// retrieve the subsequent page. When paginating, all other parameters -// provided to `ListPipelines` must match the call that provided the -// page token. -func (c *ProjectsLocationsListPipelinesCall) PageToken(pageToken string) *ProjectsLocationsListPipelinesCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsListPipelinesCall) Fields(s ...googleapi.Field) *ProjectsLocationsListPipelinesCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsListPipelinesCall) IfNoneMatch(entityTag string) *ProjectsLocationsListPipelinesCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsListPipelinesCall) Context(ctx context.Context) *ProjectsLocationsListPipelinesCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsListPipelinesCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsListPipelinesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "datapipelines.projects.locations.listPipelines" call. -// Exactly one of *GoogleCloudDatapipelinesV1ListPipelinesResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudDatapipelinesV1ListPipelinesResponse.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 *ProjectsLocationsListPipelinesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatapipelinesV1ListPipelinesResponse, 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 := &GoogleCloudDatapipelinesV1ListPipelinesResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Lists pipelines. Returns a \"FORBIDDEN\" error if the caller doesn't have permission to access it.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", - // "httpMethod": "GET", - // "id": "datapipelines.projects.locations.listPipelines", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "An expression for filtering the results of the request. If unspecified, all pipelines will be returned. Multiple filters can be applied and must be comma separated. Fields eligible for filtering are: + `type`: The type of the pipeline (streaming or batch). Allowed values are `ALL`, `BATCH`, and `STREAMING`. + `status`: The activity status of the pipeline. Allowed values are `ALL`, `ACTIVE`, `ARCHIVED`, and `PAUSED`. For example, to limit results to active batch processing pipelines: type:BATCH,status:ACTIVE", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of entities to return. The service may return fewer than this value, even if there are additional pages. If unspecified, the max limit is yet to be determined by the backend implementation.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous `ListPipelines` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPipelines` must match the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}", - // "response": { - // "$ref": "GoogleCloudDatapipelinesV1ListPipelinesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } +// (https://cloud.google.com/apis/design/errors). +type GoogleRpcStatus struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` } -// 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 *ProjectsLocationsListPipelinesCall) Pages(ctx context.Context, f func(*GoogleCloudDatapipelinesV1ListPipelinesResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } +func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { + type NoMethod GoogleRpcStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // method id "datapipelines.projects.locations.pipelines.create": @@ -2963,6 +1559,228 @@ func (c *ProjectsLocationsPipelinesGetCall) Do(opts ...googleapi.CallOption) (*G } +// method id "datapipelines.projects.locations.pipelines.list": + +type ProjectsLocationsPipelinesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists pipelines. Returns a "FORBIDDEN" error if the caller +// doesn't have permission to access it. +// +// - parent: The location name. For example: +// `projects/PROJECT_ID/locations/LOCATION_ID`. +func (r *ProjectsLocationsPipelinesService) List(parent string) *ProjectsLocationsPipelinesListCall { + c := &ProjectsLocationsPipelinesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": An expression for +// filtering the results of the request. If unspecified, all pipelines +// will be returned. Multiple filters can be applied and must be comma +// separated. Fields eligible for filtering are: + `type`: The type of +// the pipeline (streaming or batch). Allowed values are `ALL`, `BATCH`, +// and `STREAMING`. + `status`: The activity status of the pipeline. +// Allowed values are `ALL`, `ACTIVE`, `ARCHIVED`, and `PAUSED`. For +// example, to limit results to active batch processing pipelines: +// type:BATCH,status:ACTIVE +func (c *ProjectsLocationsPipelinesListCall) Filter(filter string) *ProjectsLocationsPipelinesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of entities to return. The service may return fewer than this value, +// even if there are additional pages. If unspecified, the max limit is +// yet to be determined by the backend implementation. +func (c *ProjectsLocationsPipelinesListCall) PageSize(pageSize int64) *ProjectsLocationsPipelinesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListPipelines` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to `ListPipelines` must match the call that provided the +// page token. +func (c *ProjectsLocationsPipelinesListCall) PageToken(pageToken string) *ProjectsLocationsPipelinesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsPipelinesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelinesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsPipelinesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPipelinesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsPipelinesListCall) Context(ctx context.Context) *ProjectsLocationsPipelinesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsPipelinesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsPipelinesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/pipelines") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datapipelines.projects.locations.pipelines.list" call. +// Exactly one of *GoogleCloudDatapipelinesV1ListPipelinesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatapipelinesV1ListPipelinesResponse.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 *ProjectsLocationsPipelinesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatapipelinesV1ListPipelinesResponse, 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 := &GoogleCloudDatapipelinesV1ListPipelinesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists pipelines. Returns a \"FORBIDDEN\" error if the caller doesn't have permission to access it.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/pipelines", + // "httpMethod": "GET", + // "id": "datapipelines.projects.locations.pipelines.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "An expression for filtering the results of the request. If unspecified, all pipelines will be returned. Multiple filters can be applied and must be comma separated. Fields eligible for filtering are: + `type`: The type of the pipeline (streaming or batch). Allowed values are `ALL`, `BATCH`, and `STREAMING`. + `status`: The activity status of the pipeline. Allowed values are `ALL`, `ACTIVE`, `ARCHIVED`, and `PAUSED`. For example, to limit results to active batch processing pipelines: type:BATCH,status:ACTIVE", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of entities to return. The service may return fewer than this value, even if there are additional pages. If unspecified, the max limit is yet to be determined by the backend implementation.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListPipelines` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPipelines` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/pipelines", + // "response": { + // "$ref": "GoogleCloudDatapipelinesV1ListPipelinesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsPipelinesListCall) Pages(ctx context.Context, f func(*GoogleCloudDatapipelinesV1ListPipelinesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + // method id "datapipelines.projects.locations.pipelines.patch": type ProjectsLocationsPipelinesPatchCall struct { @@ -3631,322 +2449,3 @@ func (c *ProjectsLocationsPipelinesJobsListCall) Pages(ctx context.Context, f fu c.PageToken(x.NextPageToken) } } - -// method id "datapipelines.projects.locations.transformDescriptions.batchGet": - -type ProjectsLocationsTransformDescriptionsBatchGetCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// BatchGet: Gets transform descriptions in a batch, associated with a -// list of provided uniform resource names. -// -// - parent: The project and location shared by all transform -// descriptions being retrieved, formatted as -// "projects/{project}/locations/{location}". -func (r *ProjectsLocationsTransformDescriptionsService) BatchGet(parent string) *ProjectsLocationsTransformDescriptionsBatchGetCall { - c := &ProjectsLocationsTransformDescriptionsBatchGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Names sets the optional parameter "names": The names of the transform -// descriptions being retrieved, formatted as -// "projects/{project}/locations/{location}/transformdescriptions/{transf -// orm_description}". If no name is provided, all of the transform -// descriptions will be returned. -func (c *ProjectsLocationsTransformDescriptionsBatchGetCall) Names(names ...string) *ProjectsLocationsTransformDescriptionsBatchGetCall { - c.urlParams_.SetMulti("names", append([]string{}, names...)) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsTransformDescriptionsBatchGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTransformDescriptionsBatchGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsTransformDescriptionsBatchGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTransformDescriptionsBatchGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsTransformDescriptionsBatchGetCall) Context(ctx context.Context) *ProjectsLocationsTransformDescriptionsBatchGetCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsTransformDescriptionsBatchGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsTransformDescriptionsBatchGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/transformDescriptions:batchGet") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "datapipelines.projects.locations.transformDescriptions.batchGet" call. -// Exactly one of -// *GoogleCloudDatapipelinesV1BatchGetTransformDescriptionsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudDatapipelinesV1BatchGetTransformDescriptionsResponse.Serve -// rResponse.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 *ProjectsLocationsTransformDescriptionsBatchGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatapipelinesV1BatchGetTransformDescriptionsResponse, 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 := &GoogleCloudDatapipelinesV1BatchGetTransformDescriptionsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Gets transform descriptions in a batch, associated with a list of provided uniform resource names.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/transformDescriptions:batchGet", - // "httpMethod": "GET", - // "id": "datapipelines.projects.locations.transformDescriptions.batchGet", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "names": { - // "description": "Optional. The names of the transform descriptions being retrieved, formatted as \"projects/{project}/locations/{location}/transformdescriptions/{transform_description}\". If no name is provided, all of the transform descriptions will be returned.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "parent": { - // "description": "Required. The project and location shared by all transform descriptions being retrieved, formatted as \"projects/{project}/locations/{location}\".", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/transformDescriptions:batchGet", - // "response": { - // "$ref": "GoogleCloudDatapipelinesV1BatchGetTransformDescriptionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "datapipelines.projects.locations.transformDescriptions.get": - -type ProjectsLocationsTransformDescriptionsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets the transform description associated with the provided -// uniform resource name. -// -// - name: The full name formatted as -// "projects/{your-project}/locations/{google-cloud-region}/transformde -// scriptions/{uniform-resource-name}". -func (r *ProjectsLocationsTransformDescriptionsService) Get(name string) *ProjectsLocationsTransformDescriptionsGetCall { - c := &ProjectsLocationsTransformDescriptionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsTransformDescriptionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTransformDescriptionsGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsTransformDescriptionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTransformDescriptionsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsTransformDescriptionsGetCall) Context(ctx context.Context) *ProjectsLocationsTransformDescriptionsGetCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsTransformDescriptionsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsTransformDescriptionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "datapipelines.projects.locations.transformDescriptions.get" call. -// Exactly one of *GoogleCloudDatapipelinesV1TransformDescription or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudDatapipelinesV1TransformDescription.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 *ProjectsLocationsTransformDescriptionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatapipelinesV1TransformDescription, 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 := &GoogleCloudDatapipelinesV1TransformDescription{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Gets the transform description associated with the provided uniform resource name.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/transformDescriptions/{transformDescriptionsId}", - // "httpMethod": "GET", - // "id": "datapipelines.projects.locations.transformDescriptions.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The full name formatted as \"projects/{your-project}/locations/{google-cloud-region}/transformdescriptions/{uniform-resource-name}\".", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/transformDescriptions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleCloudDatapipelinesV1TransformDescription" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} diff --git a/dataplex/v1/dataplex-api.json b/dataplex/v1/dataplex-api.json index 7dcf582a9d9..11df6f14583 100644 --- a/dataplex/v1/dataplex-api.json +++ b/dataplex/v1/dataplex-api.json @@ -2190,6 +2190,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "run": { + "description": "Run an on demand execution of a Task.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}/tasks/{tasksId}:run", + "httpMethod": "POST", + "id": "dataplex.projects.locations.lakes.tasks.run", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the task: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+/tasks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:run", + "request": { + "$ref": "GoogleCloudDataplexV1RunTaskRequest" + }, + "response": { + "$ref": "GoogleCloudDataplexV1RunTaskResponse" + }, + "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}/lakes/{lakesId}/tasks/{tasksId}:setIamPolicy", @@ -3418,7 +3446,7 @@ } } }, - "revision": "20221130", + "revision": "20221212", "rootUrl": "https://dataplex.googleapis.com/", "schemas": { "Empty": { @@ -3881,6 +3909,20 @@ "description": "Immutable. Relative name of the cloud resource that contains the data that is being managed within a lake. For example: projects/{project_number}/buckets/{bucket_id} projects/{project_number}/datasets/{dataset_id}", "type": "string" }, + "readAccessMode": { + "description": "Optional. Determines how read permissions are handled for each asset and their associated tables. Only available to storage buckets assets.", + "enum": [ + "ACCESS_MODE_UNSPECIFIED", + "DIRECT", + "MANAGED" + ], + "enumDescriptions": [ + "Access mode unspecified.", + "Default. Data is accessed directly using storage APIs.", + "Data is accessed through a managed interface using BigQuery APIs." + ], + "type": "string" + }, "type": { "description": "Required. Immutable. Type of resource.", "enum": [ @@ -5096,6 +5138,11 @@ "description": "Represents tables and fileset metadata contained within a zone.", "id": "GoogleCloudDataplexV1Entity", "properties": { + "access": { + "$ref": "GoogleCloudDataplexV1StorageAccess", + "description": "Output only. Identifies the access mechanism to the entity. Not user settable.", + "readOnly": true + }, "asset": { "description": "Required. Immutable. The ID of the asset associated with the storage location containing the entity data. The entity must be with in the same zone with the asset.", "type": "string" @@ -6049,6 +6096,21 @@ }, "type": "object" }, + "GoogleCloudDataplexV1RunTaskRequest": { + "id": "GoogleCloudDataplexV1RunTaskRequest", + "properties": {}, + "type": "object" + }, + "GoogleCloudDataplexV1RunTaskResponse": { + "id": "GoogleCloudDataplexV1RunTaskResponse", + "properties": { + "job": { + "$ref": "GoogleCloudDataplexV1Job", + "description": "Jobs created by RunTask API." + } + }, + "type": "object" + }, "GoogleCloudDataplexV1ScannedData": { "description": "The data scanned during processing (e.g. in incremental DataScan)", "id": "GoogleCloudDataplexV1ScannedData", @@ -6384,6 +6446,28 @@ }, "type": "object" }, + "GoogleCloudDataplexV1StorageAccess": { + "description": "Describes the access mechanism of the data within its storage location.", + "id": "GoogleCloudDataplexV1StorageAccess", + "properties": { + "read": { + "description": "Output only. Describes the read access mechanism of the data. Not user settable.", + "enum": [ + "ACCESS_MODE_UNSPECIFIED", + "DIRECT", + "MANAGED" + ], + "enumDescriptions": [ + "Access mode unspecified.", + "Default. Data is accessed directly using storage APIs.", + "Data is accessed through a managed interface using BigQuery APIs." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDataplexV1StorageFormat": { "description": "Describes the format of the data within its storage location.", "id": "GoogleCloudDataplexV1StorageFormat", diff --git a/dataplex/v1/dataplex-gen.go b/dataplex/v1/dataplex-gen.go index bc87ba05999..ab218c47b18 100644 --- a/dataplex/v1/dataplex-gen.go +++ b/dataplex/v1/dataplex-gen.go @@ -1030,6 +1030,17 @@ type GoogleCloudDataplexV1AssetResourceSpec struct { // projects/{project_number}/datasets/{dataset_id} Name string `json:"name,omitempty"` + // ReadAccessMode: Optional. Determines how read permissions are handled + // for each asset and their associated tables. Only available to storage + // buckets assets. + // + // Possible values: + // "ACCESS_MODE_UNSPECIFIED" - Access mode unspecified. + // "DIRECT" - Default. Data is accessed directly using storage APIs. + // "MANAGED" - Data is accessed through a managed interface using + // BigQuery APIs. + ReadAccessMode string `json:"readAccessMode,omitempty"` + // Type: Required. Immutable. Type of resource. // // Possible values: @@ -2891,6 +2902,10 @@ func (s *GoogleCloudDataplexV1DiscoveryEventPartitionDetails) MarshalJSON() ([]b // GoogleCloudDataplexV1Entity: Represents tables and fileset metadata // contained within a zone. type GoogleCloudDataplexV1Entity struct { + // Access: Output only. Identifies the access mechanism to the entity. + // Not user settable. + Access *GoogleCloudDataplexV1StorageAccess `json:"access,omitempty"` + // Asset: Required. Immutable. The ID of the asset associated with the // storage location containing the entity data. The entity must be with // in the same zone with the asset. @@ -2979,7 +2994,7 @@ type GoogleCloudDataplexV1Entity struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Asset") to + // ForceSendFields is a list of field names (e.g. "Access") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2987,7 +3002,7 @@ type GoogleCloudDataplexV1Entity struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Asset") to include in API + // NullFields is a list of field names (e.g. "Access") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -4296,6 +4311,40 @@ func (s *GoogleCloudDataplexV1RunDataScanResponse) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type GoogleCloudDataplexV1RunTaskRequest struct { +} + +type GoogleCloudDataplexV1RunTaskResponse struct { + // Job: Jobs created by RunTask API. + Job *GoogleCloudDataplexV1Job `json:"job,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Job") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Job") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDataplexV1RunTaskResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1RunTaskResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDataplexV1ScannedData: The data scanned during processing // (e.g. in incremental DataScan) type GoogleCloudDataplexV1ScannedData struct { @@ -4707,6 +4756,42 @@ func (s *GoogleCloudDataplexV1SessionEventQueryDetail) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDataplexV1StorageAccess: Describes the access mechanism of +// the data within its storage location. +type GoogleCloudDataplexV1StorageAccess struct { + // Read: Output only. Describes the read access mechanism of the data. + // Not user settable. + // + // Possible values: + // "ACCESS_MODE_UNSPECIFIED" - Access mode unspecified. + // "DIRECT" - Default. Data is accessed directly using storage APIs. + // "MANAGED" - Data is accessed through a managed interface using + // BigQuery APIs. + Read string `json:"read,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Read") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Read") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDataplexV1StorageAccess) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1StorageAccess + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDataplexV1StorageFormat: Describes the format of the data // within its storage location. type GoogleCloudDataplexV1StorageFormat struct { @@ -16784,6 +16869,151 @@ func (c *ProjectsLocationsLakesTasksPatchCall) Do(opts ...googleapi.CallOption) } +// method id "dataplex.projects.locations.lakes.tasks.run": + +type ProjectsLocationsLakesTasksRunCall struct { + s *Service + name string + googleclouddataplexv1runtaskrequest *GoogleCloudDataplexV1RunTaskRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Run: Run an on demand execution of a Task. +// +// - name: The resource name of the task: +// projects/{project_number}/locations/{location_id}/lakes/{lake_id}/ta +// sks/{task_id}. +func (r *ProjectsLocationsLakesTasksService) Run(name string, googleclouddataplexv1runtaskrequest *GoogleCloudDataplexV1RunTaskRequest) *ProjectsLocationsLakesTasksRunCall { + c := &ProjectsLocationsLakesTasksRunCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleclouddataplexv1runtaskrequest = googleclouddataplexv1runtaskrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsLakesTasksRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksRunCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsLakesTasksRunCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksRunCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsLakesTasksRunCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsLakesTasksRunCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1runtaskrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:run") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.projects.locations.lakes.tasks.run" call. +// Exactly one of *GoogleCloudDataplexV1RunTaskResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudDataplexV1RunTaskResponse.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 *ProjectsLocationsLakesTasksRunCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1RunTaskResponse, 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 := &GoogleCloudDataplexV1RunTaskResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Run an on demand execution of a Task.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}/tasks/{tasksId}:run", + // "httpMethod": "POST", + // "id": "dataplex.projects.locations.lakes.tasks.run", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the task: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+/tasks/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:run", + // "request": { + // "$ref": "GoogleCloudDataplexV1RunTaskRequest" + // }, + // "response": { + // "$ref": "GoogleCloudDataplexV1RunTaskResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "dataplex.projects.locations.lakes.tasks.setIamPolicy": type ProjectsLocationsLakesTasksSetIamPolicyCall struct { diff --git a/dataproc/v1/dataproc-api.json b/dataproc/v1/dataproc-api.json index 0fc15a9ddfd..cc645938239 100644 --- a/dataproc/v1/dataproc-api.json +++ b/dataproc/v1/dataproc-api.json @@ -1663,6 +1663,103 @@ "https://www.googleapis.com/auth/cloud-platform" ] } + }, + "resources": { + "nodeGroups": { + "methods": { + "create": { + "description": "Creates a node group in a cluster. The returned Operation.metadata is NodeGroupOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}/nodeGroups", + "httpMethod": "POST", + "id": "dataproc.projects.regions.clusters.nodeGroups.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "nodeGroupId": { + "description": "Optional. An optional node group ID. Generated if not specified.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33 characters.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource where this node group will be created. Format: projects/{project}/regions/{region}/clusters/{cluster}", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A unique ID used to identify the request. If the server receives two CreateNodeGroupRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequests) with the same ID, the second request is ignored and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/nodeGroups", + "request": { + "$ref": "NodeGroup" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the resource representation for a node group in a cluster.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}/nodeGroups/{nodeGroupsId}", + "httpMethod": "GET", + "id": "dataproc.projects.regions.clusters.nodeGroups.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the node group to retrieve. Format: projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+/nodeGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "NodeGroup" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "resize": { + "description": "Resizes a node group in a cluster. The returned Operation.metadata is NodeGroupOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}/nodeGroups/{nodeGroupsId}:resize", + "httpMethod": "POST", + "id": "dataproc.projects.regions.clusters.nodeGroups.resize", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the node group to resize. Format: projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+/nodeGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:resize", + "request": { + "$ref": "ResizeNodeGroupRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } } }, "jobs": { @@ -2564,7 +2661,7 @@ } } }, - "revision": "20221114", + "revision": "20221207", "rootUrl": "https://dataproc.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2628,6 +2725,21 @@ }, "type": "object" }, + "AuxiliaryNodeGroup": { + "description": "Node group identification and configuration information.", + "id": "AuxiliaryNodeGroup", + "properties": { + "nodeGroup": { + "$ref": "NodeGroup", + "description": "Required. Node group configuration." + }, + "nodeGroupId": { + "description": "Optional. A node group ID. Generated if not specified.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33 characters.", + "type": "string" + } + }, + "type": "object" + }, "AuxiliaryServicesConfig": { "description": "Auxiliary services configuration for a Cluster.", "id": "AuxiliaryServicesConfig", @@ -2950,6 +3062,13 @@ "$ref": "AutoscalingConfig", "description": "Optional. Autoscaling config for the policy associated with the cluster. Cluster does not autoscale if this field is unset." }, + "auxiliaryNodeGroups": { + "description": "Optional. The node group settings.", + "items": { + "$ref": "AuxiliaryNodeGroup" + }, + "type": "array" + }, "configBucket": { "description": "Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Dataproc staging and temp buckets (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket.", "type": "string" @@ -3315,6 +3434,23 @@ }, "type": "object" }, + "DriverSchedulingConfig": { + "description": "Driver scheduling configuration.", + "id": "DriverSchedulingConfig", + "properties": { + "memoryMb": { + "description": "Required. The amount of memory in MB the driver is requesting.", + "format": "int32", + "type": "integer" + }, + "vcores": { + "description": "Required. The number of vCPUs the driver is requesting.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } ", "id": "Empty", @@ -3371,7 +3507,7 @@ "id": "ExecutionConfig", "properties": { "idleTtl": { - "description": "Optional. The duration to keep the session alive while it's idling. Passing this threshold will cause the session to be terminated. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 10 minutes if not set.", + "description": "Optional. The duration to keep the session alive while it's idling. Passing this threshold will cause the session to be terminated. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 4 hours if not set.", "format": "google-duration", "type": "string" }, @@ -3970,6 +4106,10 @@ "readOnly": true, "type": "string" }, + "driverSchedulingConfig": { + "$ref": "DriverSchedulingConfig", + "description": "Optional. Driver scheduling configuration." + }, "hadoopJob": { "$ref": "HadoopJob", "description": "Optional. Job is a Hadoop job." @@ -4125,12 +4265,12 @@ "id": "JobScheduling", "properties": { "maxFailuresPerHour": { - "description": "Optional. Maximum number of times per hour a driver may be restarted as a result of driver exiting with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10.Note: Currently, this restartable job option is not supported in Dataproc workflow template (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template) jobs.", + "description": "Optional. Maximum number of times per hour a driver may be restarted as a result of driver exiting with non-zero code before job is reported failed.A job may be reported as thrashing if the driver exits with a non-zero code four times within a 10-minute window.Maximum value is 10.Note: This restartable job option is not supported in Dataproc workflow templates (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template).", "format": "int32", "type": "integer" }, "maxFailuresTotal": { - "description": "Optional. Maximum number of times in total a driver may be restarted as a result of driver exiting with non-zero code before job is reported failed. Maximum value is 240.Note: Currently, this restartable job option is not supported in Dataproc workflow template (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template) jobs.", + "description": "Optional. Maximum total number of times a driver may be restarted as a result of the driver exiting with a non-zero code. After the maximum number is reached, the job will be reported as failed.Maximum value is 240.Note: Currently, this restartable job option is not supported in Dataproc workflow templates (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template).", "format": "int32", "type": "integer" } @@ -4589,8 +4729,45 @@ }, "type": "object" }, + "NodeGroup": { + "description": "Dataproc Node Group. The Dataproc NodeGroup resource is not related to the Dataproc NodeGroupAffinity resource.", + "id": "NodeGroup", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Node group labels. Label keys must consist of from 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty. If specified, they must consist of from 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). The node group must have no more than 32 labelsn.", + "type": "object" + }, + "name": { + "description": "The Node group resource name (https://aip.dev/122).", + "type": "string" + }, + "nodeGroupConfig": { + "$ref": "InstanceGroupConfig", + "description": "Optional. The node group instance group configuration." + }, + "roles": { + "description": "Required. Node group roles.", + "items": { + "enum": [ + "ROLE_UNSPECIFIED", + "DRIVER" + ], + "enumDescriptions": [ + "Required unspecified role.", + "Job drivers run on the node pool." + ], + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "NodeGroupAffinity": { - "description": "Node Group Affinity for clusters using sole-tenant node groups.", + "description": "Node Group Affinity for clusters using sole-tenant node groups. The Dataproc NodeGroupAffinity resource is not related to the Dataproc NodeGroup resource.", "id": "NodeGroupAffinity", "properties": { "nodeGroupUri": { @@ -5150,6 +5327,27 @@ }, "type": "object" }, + "ResizeNodeGroupRequest": { + "description": "A request to resize a node group.", + "id": "ResizeNodeGroupRequest", + "properties": { + "gracefulDecommissionTimeout": { + "description": "Optional. Timeout for graceful YARN decomissioning. Graceful decommissioning (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning) allows the removal of nodes from the Compute Engine node group without interrupting jobs in progress. This timeout specifies how long to wait for jobs in progress to finish before forcefully removing nodes (and potentially interrupting jobs). Default timeout is 0 (for forceful decommission), and the maximum allowed timeout is 1 day. (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Only supported on Dataproc image versions 1.2 and higher.", + "format": "google-duration", + "type": "string" + }, + "requestId": { + "description": "Optional. A unique ID used to identify the request. If the server receives two ResizeNodeGroupRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests) with the same ID, the second request is ignored and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "type": "string" + }, + "size": { + "description": "Required. The number of running instances for the node group to maintain. The group adds or removes instances to maintain the number of instances specified by this parameter.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "RuntimeConfig": { "description": "Runtime configuration for a workload.", "id": "RuntimeConfig", @@ -5181,6 +5379,11 @@ "description": "Output only. Approximate workload resource usage calculated after workload finishes (see Dataproc Serverless pricing (https://cloud.google.com/dataproc-serverless/pricing)).", "readOnly": true }, + "currentUsage": { + "$ref": "UsageSnapshot", + "description": "Output only. Snapshot of current workload resource usage.", + "readOnly": true + }, "diagnosticOutputUri": { "description": "Output only. A URI pointing to the location of the diagnostics tarball.", "readOnly": true, @@ -5868,6 +6071,28 @@ }, "type": "object" }, + "UsageSnapshot": { + "description": "The usage snaphot represents the resources consumed by a workload at a specified time.", + "id": "UsageSnapshot", + "properties": { + "milliDcu": { + "description": "Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) (see Dataproc Serverless pricing (https://cloud.google.com/dataproc-serverless/pricing)).", + "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", + "type": "string" + }, + "snapshotTime": { + "description": "Optional. The timestamp of the usage snapshot.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "ValueValidation": { "description": "Validation based on a list of allowed values.", "id": "ValueValidation", diff --git a/dataproc/v1/dataproc-gen.go b/dataproc/v1/dataproc-gen.go index 2a36c50704d..78711646e95 100644 --- a/dataproc/v1/dataproc-gen.go +++ b/dataproc/v1/dataproc-gen.go @@ -246,11 +246,23 @@ type ProjectsRegionsAutoscalingPoliciesService struct { func NewProjectsRegionsClustersService(s *Service) *ProjectsRegionsClustersService { rs := &ProjectsRegionsClustersService{s: s} + rs.NodeGroups = NewProjectsRegionsClustersNodeGroupsService(s) return rs } type ProjectsRegionsClustersService struct { s *Service + + NodeGroups *ProjectsRegionsClustersNodeGroupsService +} + +func NewProjectsRegionsClustersNodeGroupsService(s *Service) *ProjectsRegionsClustersNodeGroupsService { + rs := &ProjectsRegionsClustersNodeGroupsService{s: s} + return rs +} + +type ProjectsRegionsClustersNodeGroupsService struct { + s *Service } func NewProjectsRegionsJobsService(s *Service) *ProjectsRegionsJobsService { @@ -426,6 +438,41 @@ func (s *AutoscalingPolicy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AuxiliaryNodeGroup: Node group identification and configuration +// information. +type AuxiliaryNodeGroup struct { + // NodeGroup: Required. Node group configuration. + NodeGroup *NodeGroup `json:"nodeGroup,omitempty"` + + // NodeGroupId: Optional. A node group ID. Generated if not + // specified.The ID must contain only letters (a-z, A-Z), numbers (0-9), + // underscores (_), and hyphens (-). Cannot begin or end with underscore + // or hyphen. Must consist of from 3 to 33 characters. + NodeGroupId string `json:"nodeGroupId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "NodeGroup") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NodeGroup") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AuxiliaryNodeGroup) MarshalJSON() ([]byte, error) { + type NoMethod AuxiliaryNodeGroup + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AuxiliaryServicesConfig: Auxiliary services configuration for a // Cluster. type AuxiliaryServicesConfig struct { @@ -914,6 +961,9 @@ type ClusterConfig struct { // is unset. AutoscalingConfig *AutoscalingConfig `json:"autoscalingConfig,omitempty"` + // AuxiliaryNodeGroups: Optional. The node group settings. + AuxiliaryNodeGroups []*AuxiliaryNodeGroup `json:"auxiliaryNodeGroups,omitempty"` + // ConfigBucket: Optional. A Cloud Storage bucket used to stage job // dependencies, config files, and job driver console output. If you do // not specify a staging bucket, Cloud Dataproc will determine a Cloud @@ -1443,6 +1493,38 @@ func (s *DiskConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DriverSchedulingConfig: Driver scheduling configuration. +type DriverSchedulingConfig struct { + // MemoryMb: Required. The amount of memory in MB the driver is + // requesting. + MemoryMb int64 `json:"memoryMb,omitempty"` + + // Vcores: Required. The number of vCPUs the driver is requesting. + Vcores int64 `json:"vcores,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MemoryMb") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MemoryMb") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DriverSchedulingConfig) MarshalJSON() ([]byte, error) { + type NoMethod DriverSchedulingConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For @@ -1560,7 +1642,7 @@ type ExecutionConfig struct { // terminated. Minimum value is 10 minutes; maximum value is 14 days // (see JSON representation of Duration // (https://developers.google.com/protocol-buffers/docs/proto3#json)). - // Defaults to 10 minutes if not set. + // Defaults to 4 hours if not set. IdleTtl string `json:"idleTtl,omitempty"` // KmsKey: Optional. The Cloud KMS key to use for encryption. @@ -2621,6 +2703,9 @@ type Job struct { // of the stdout of the job's driver program. DriverOutputResourceUri string `json:"driverOutputResourceUri,omitempty"` + // DriverSchedulingConfig: Optional. Driver scheduling configuration. + DriverSchedulingConfig *DriverSchedulingConfig `json:"driverSchedulingConfig,omitempty"` + // HadoopJob: Optional. Job is a Hadoop job. HadoopJob *HadoopJob `json:"hadoopJob,omitempty"` @@ -2829,20 +2914,18 @@ type JobScheduling struct { // MaxFailuresPerHour: Optional. Maximum number of times per hour a // driver may be restarted as a result of driver exiting with non-zero // code before job is reported failed.A job may be reported as thrashing - // if driver exits with non-zero code 4 times within 10 minute - // window.Maximum value is 10.Note: Currently, this restartable job - // option is not supported in Dataproc workflow template - // (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template) - // jobs. + // if the driver exits with a non-zero code four times within a + // 10-minute window.Maximum value is 10.Note: This restartable job + // option is not supported in Dataproc workflow templates + // (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template). MaxFailuresPerHour int64 `json:"maxFailuresPerHour,omitempty"` - // MaxFailuresTotal: Optional. Maximum number of times in total a driver - // may be restarted as a result of driver exiting with non-zero code - // before job is reported failed. Maximum value is 240.Note: Currently, - // this restartable job option is not supported in Dataproc workflow - // template - // (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template) - // jobs. + // MaxFailuresTotal: Optional. Maximum total number of times a driver + // may be restarted as a result of the driver exiting with a non-zero + // code. After the maximum number is reached, the job will be reported + // as failed.Maximum value is 240.Note: Currently, this restartable job + // option is not supported in Dataproc workflow templates + // (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template). MaxFailuresTotal int64 `json:"maxFailuresTotal,omitempty"` // ForceSendFields is a list of field names (e.g. "MaxFailuresPerHour") @@ -3642,8 +3725,61 @@ func (s *NamespacedGkeDeploymentTarget) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// NodeGroup: Dataproc Node Group. The Dataproc NodeGroup resource is +// not related to the Dataproc NodeGroupAffinity resource. +type NodeGroup struct { + // Labels: Optional. Node group labels. Label keys must consist of from + // 1 to 63 characters and conform to RFC 1035 + // (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty. If + // specified, they must consist of from 1 to 63 characters and conform + // to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). The node group + // must have no more than 32 labelsn. + Labels map[string]string `json:"labels,omitempty"` + + // Name: The Node group resource name (https://aip.dev/122). + Name string `json:"name,omitempty"` + + // NodeGroupConfig: Optional. The node group instance group + // configuration. + NodeGroupConfig *InstanceGroupConfig `json:"nodeGroupConfig,omitempty"` + + // Roles: Required. Node group roles. + // + // Possible values: + // "ROLE_UNSPECIFIED" - Required unspecified role. + // "DRIVER" - Job drivers run on the node pool. + Roles []string `json:"roles,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Labels") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Labels") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *NodeGroup) MarshalJSON() ([]byte, error) { + type NoMethod NodeGroup + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // NodeGroupAffinity: Node Group Affinity for clusters using sole-tenant -// node groups. +// node groups. The Dataproc NodeGroupAffinity resource is not related +// to the Dataproc NodeGroup resource. type NodeGroupAffinity struct { // NodeGroupUri: Required. The URI of a sole-tenant node group resource // (https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups) @@ -4523,6 +4659,62 @@ func (s *ReservationAffinity) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ResizeNodeGroupRequest: A request to resize a node group. +type ResizeNodeGroupRequest struct { + // GracefulDecommissionTimeout: Optional. Timeout for graceful YARN + // decomissioning. Graceful decommissioning + // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning) + // allows the removal of nodes from the Compute Engine node group + // without interrupting jobs in progress. This timeout specifies how + // long to wait for jobs in progress to finish before forcefully + // removing nodes (and potentially interrupting jobs). Default timeout + // is 0 (for forceful decommission), and the maximum allowed timeout is + // 1 day. (see JSON representation of Duration + // (https://developers.google.com/protocol-buffers/docs/proto3#json)).Only + // supported on Dataproc image versions 1.2 and higher. + GracefulDecommissionTimeout string `json:"gracefulDecommissionTimeout,omitempty"` + + // RequestId: Optional. A unique ID used to identify the request. If the + // server receives two ResizeNodeGroupRequest + // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests) + // with the same ID, the second request is ignored and the first + // google.longrunning.Operation created and stored in the backend is + // returned.Recommendation: Set this value to a UUID + // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID + // must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), + // and hyphens (-). The maximum length is 40 characters. + RequestId string `json:"requestId,omitempty"` + + // Size: Required. The number of running instances for the node group to + // maintain. The group adds or removes instances to maintain the number + // of instances specified by this parameter. + Size int64 `json:"size,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "GracefulDecommissionTimeout") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "GracefulDecommissionTimeout") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ResizeNodeGroupRequest) MarshalJSON() ([]byte, error) { + type NoMethod ResizeNodeGroupRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // RuntimeConfig: Runtime configuration for a workload. type RuntimeConfig struct { // ContainerImage: Optional. Optional custom container image for the job @@ -4568,6 +4760,10 @@ type RuntimeInfo struct { // (https://cloud.google.com/dataproc-serverless/pricing)). ApproximateUsage *UsageMetrics `json:"approximateUsage,omitempty"` + // CurrentUsage: Output only. Snapshot of current workload resource + // usage. + CurrentUsage *UsageSnapshot `json:"currentUsage,omitempty"` + // DiagnosticOutputUri: Output only. A URI pointing to the location of // the diagnostics tarball. DiagnosticOutputUri string `json:"diagnosticOutputUri,omitempty"` @@ -5698,6 +5894,45 @@ func (s *UsageMetrics) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UsageSnapshot: The usage snaphot represents the resources consumed by +// a workload at a specified time. +type UsageSnapshot struct { + // MilliDcu: Optional. Milli (one-thousandth) Dataproc Compute Units + // (DCUs) (see Dataproc Serverless pricing + // (https://cloud.google.com/dataproc-serverless/pricing)). + MilliDcu int64 `json:"milliDcu,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"` + + // SnapshotTime: Optional. The timestamp of the usage snapshot. + SnapshotTime string `json:"snapshotTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MilliDcu") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MilliDcu") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *UsageSnapshot) MarshalJSON() ([]byte, error) { + type NoMethod UsageSnapshot + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ValueValidation: Validation based on a list of allowed values. type ValueValidation struct { // Values: Required. List of allowed values for the parameter. @@ -13817,6 +14052,480 @@ func (c *ProjectsRegionsClustersTestIamPermissionsCall) Do(opts ...googleapi.Cal } +// method id "dataproc.projects.regions.clusters.nodeGroups.create": + +type ProjectsRegionsClustersNodeGroupsCreateCall struct { + s *Service + parent string + nodegroup *NodeGroup + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a node group in a cluster. The returned +// Operation.metadata is NodeGroupOperationMetadata +// (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata). +// +// - parent: The parent resource where this node group will be created. +// Format: projects/{project}/regions/{region}/clusters/{cluster}. +func (r *ProjectsRegionsClustersNodeGroupsService) Create(parent string, nodegroup *NodeGroup) *ProjectsRegionsClustersNodeGroupsCreateCall { + c := &ProjectsRegionsClustersNodeGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.nodegroup = nodegroup + return c +} + +// NodeGroupId sets the optional parameter "nodeGroupId": An optional +// node group ID. Generated if not specified.The ID must contain only +// letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). +// Cannot begin or end with underscore or hyphen. Must consist of from 3 +// to 33 characters. +func (c *ProjectsRegionsClustersNodeGroupsCreateCall) NodeGroupId(nodeGroupId string) *ProjectsRegionsClustersNodeGroupsCreateCall { + c.urlParams_.Set("nodeGroupId", nodeGroupId) + return c +} + +// RequestId sets the optional parameter "requestId": A unique ID used +// to identify the request. If the server receives two +// CreateNodeGroupRequest +// (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequests) +// with the same ID, the second request is ignored and the first +// google.longrunning.Operation created and stored in the backend is +// returned.Recommendation: Set this value to a UUID +// (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID +// must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), +// and hyphens (-). The maximum length is 40 characters. +func (c *ProjectsRegionsClustersNodeGroupsCreateCall) RequestId(requestId string) *ProjectsRegionsClustersNodeGroupsCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsRegionsClustersNodeGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersNodeGroupsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsRegionsClustersNodeGroupsCreateCall) Context(ctx context.Context) *ProjectsRegionsClustersNodeGroupsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsRegionsClustersNodeGroupsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsRegionsClustersNodeGroupsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.nodegroup) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/nodeGroups") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataproc.projects.regions.clusters.nodeGroups.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsRegionsClustersNodeGroupsCreateCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a node group in a cluster. The returned Operation.metadata is NodeGroupOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).", + // "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}/nodeGroups", + // "httpMethod": "POST", + // "id": "dataproc.projects.regions.clusters.nodeGroups.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "nodeGroupId": { + // "description": "Optional. An optional node group ID. Generated if not specified.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33 characters.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource where this node group will be created. Format: projects/{project}/regions/{region}/clusters/{cluster}", + // "location": "path", + // "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "Optional. A unique ID used to identify the request. If the server receives two CreateNodeGroupRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequests) with the same ID, the second request is ignored and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/nodeGroups", + // "request": { + // "$ref": "NodeGroup" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataproc.projects.regions.clusters.nodeGroups.get": + +type ProjectsRegionsClustersNodeGroupsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the resource representation for a node group in a cluster. +// +// - name: The name of the node group to retrieve. Format: +// projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{n +// odeGroup}. +func (r *ProjectsRegionsClustersNodeGroupsService) Get(name string) *ProjectsRegionsClustersNodeGroupsGetCall { + c := &ProjectsRegionsClustersNodeGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsRegionsClustersNodeGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersNodeGroupsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsRegionsClustersNodeGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsRegionsClustersNodeGroupsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsRegionsClustersNodeGroupsGetCall) Context(ctx context.Context) *ProjectsRegionsClustersNodeGroupsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsRegionsClustersNodeGroupsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsRegionsClustersNodeGroupsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataproc.projects.regions.clusters.nodeGroups.get" call. +// Exactly one of *NodeGroup or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *NodeGroup.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 *ProjectsRegionsClustersNodeGroupsGetCall) Do(opts ...googleapi.CallOption) (*NodeGroup, 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 := &NodeGroup{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the resource representation for a node group in a cluster.", + // "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}/nodeGroups/{nodeGroupsId}", + // "httpMethod": "GET", + // "id": "dataproc.projects.regions.clusters.nodeGroups.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the node group to retrieve. Format: projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}", + // "location": "path", + // "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+/nodeGroups/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "NodeGroup" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataproc.projects.regions.clusters.nodeGroups.resize": + +type ProjectsRegionsClustersNodeGroupsResizeCall struct { + s *Service + name string + resizenodegrouprequest *ResizeNodeGroupRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Resize: Resizes a node group in a cluster. The returned +// Operation.metadata is NodeGroupOperationMetadata +// (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata). +// +// - name: The name of the node group to resize. Format: +// projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{n +// odeGroup}. +func (r *ProjectsRegionsClustersNodeGroupsService) Resize(name string, resizenodegrouprequest *ResizeNodeGroupRequest) *ProjectsRegionsClustersNodeGroupsResizeCall { + c := &ProjectsRegionsClustersNodeGroupsResizeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.resizenodegrouprequest = resizenodegrouprequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsRegionsClustersNodeGroupsResizeCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersNodeGroupsResizeCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsRegionsClustersNodeGroupsResizeCall) Context(ctx context.Context) *ProjectsRegionsClustersNodeGroupsResizeCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsRegionsClustersNodeGroupsResizeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsRegionsClustersNodeGroupsResizeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.resizenodegrouprequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:resize") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataproc.projects.regions.clusters.nodeGroups.resize" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsRegionsClustersNodeGroupsResizeCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Resizes a node group in a cluster. The returned Operation.metadata is NodeGroupOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).", + // "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}/nodeGroups/{nodeGroupsId}:resize", + // "httpMethod": "POST", + // "id": "dataproc.projects.regions.clusters.nodeGroups.resize", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the node group to resize. Format: projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}", + // "location": "path", + // "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+/nodeGroups/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:resize", + // "request": { + // "$ref": "ResizeNodeGroupRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "dataproc.projects.regions.jobs.cancel": type ProjectsRegionsJobsCancelCall struct { diff --git a/datastream/v1/datastream-api.json b/datastream/v1/datastream-api.json index 40f4231b6dd..503d7e4aa5f 100644 --- a/datastream/v1/datastream-api.json +++ b/datastream/v1/datastream-api.json @@ -577,6 +577,11 @@ "parent" ], "parameters": { + "force": { + "description": "Optional. If set to true, will skip validations.", + "location": "query", + "type": "boolean" + }, "parent": { "description": "Required. The parent that owns the collection of PrivateConnections.", "location": "path", @@ -1217,7 +1222,7 @@ } } }, - "revision": "20221026", + "revision": "20221128", "rootUrl": "https://datastream.googleapis.com/", "schemas": { "AvroFileFormat": { @@ -2601,6 +2606,7 @@ "id": "SingleTargetDataset", "properties": { "datasetId": { + "description": "The dataset ID of the target dataset.", "type": "string" } }, diff --git a/datastream/v1/datastream-gen.go b/datastream/v1/datastream-gen.go index 2b89dad4ae4..07f5cca88d4 100644 --- a/datastream/v1/datastream-gen.go +++ b/datastream/v1/datastream-gen.go @@ -2322,6 +2322,7 @@ func (s *Route) MarshalJSON() ([]byte, error) { // SingleTargetDataset: A single target dataset to which all data will // be streamed. type SingleTargetDataset struct { + // DatasetId: The dataset ID of the target dataset. DatasetId string `json:"datasetId,omitempty"` // ForceSendFields is a list of field names (e.g. "DatasetId") to @@ -5162,6 +5163,13 @@ func (r *ProjectsLocationsPrivateConnectionsService) Create(parent string, priva return c } +// Force sets the optional parameter "force": If set to true, will skip +// validations. +func (c *ProjectsLocationsPrivateConnectionsCreateCall) Force(force bool) *ProjectsLocationsPrivateConnectionsCreateCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + return c +} + // PrivateConnectionId sets the optional parameter // "privateConnectionId": Required. The private connectivity identifier. func (c *ProjectsLocationsPrivateConnectionsCreateCall) PrivateConnectionId(privateConnectionId string) *ProjectsLocationsPrivateConnectionsCreateCall { @@ -5285,6 +5293,11 @@ func (c *ProjectsLocationsPrivateConnectionsCreateCall) Do(opts ...googleapi.Cal // "parent" // ], // "parameters": { + // "force": { + // "description": "Optional. If set to true, will skip validations.", + // "location": "query", + // "type": "boolean" + // }, // "parent": { // "description": "Required. The parent that owns the collection of PrivateConnections.", // "location": "path", diff --git a/discoveryengine/v1alpha/discoveryengine-api.json b/discoveryengine/v1alpha/discoveryengine-api.json index 741e72c0380..f96b25815db 100644 --- a/discoveryengine/v1alpha/discoveryengine-api.json +++ b/discoveryengine/v1alpha/discoveryengine-api.json @@ -793,7 +793,7 @@ } } }, - "revision": "20221130", + "revision": "20221212", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -1282,7 +1282,7 @@ "additionalProperties": { "type": "string" }, - "description": "The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.", + "description": "The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.", "type": "object" }, "validateOnly": { diff --git a/discoveryengine/v1alpha/discoveryengine-gen.go b/discoveryengine/v1alpha/discoveryengine-gen.go index f53b521af5d..c1825714aa1 100644 --- a/discoveryengine/v1alpha/discoveryengine-gen.go +++ b/discoveryengine/v1alpha/discoveryengine-gen.go @@ -1223,8 +1223,8 @@ type GoogleCloudDiscoveryengineV1alphaRecommendRequest struct { // characters must use UTF-8 encoding, and international characters are // allowed. * The key portion of a label must be unique. However, you // can use the same key with multiple resources. * Keys must start with - // a lowercase letter or international character. See Google Cloud - // Document + // a lowercase letter or international character. See Requirements for + // labels // (https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) // for more details. UserLabels map[string]string `json:"userLabels,omitempty"` diff --git a/discoveryengine/v1beta/discoveryengine-api.json b/discoveryengine/v1beta/discoveryengine-api.json index ca7a16adf52..61d332a6f24 100644 --- a/discoveryengine/v1beta/discoveryengine-api.json +++ b/discoveryengine/v1beta/discoveryengine-api.json @@ -793,7 +793,7 @@ } } }, - "revision": "20221130", + "revision": "20221212", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -1393,7 +1393,7 @@ "additionalProperties": { "type": "string" }, - "description": "The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.", + "description": "The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.", "type": "object" }, "validateOnly": { diff --git a/discoveryengine/v1beta/discoveryengine-gen.go b/discoveryengine/v1beta/discoveryengine-gen.go index 2c5e198be41..57e6b63e54c 100644 --- a/discoveryengine/v1beta/discoveryengine-gen.go +++ b/discoveryengine/v1beta/discoveryengine-gen.go @@ -1419,8 +1419,8 @@ type GoogleCloudDiscoveryengineV1betaRecommendRequest struct { // characters must use UTF-8 encoding, and international characters are // allowed. * The key portion of a label must be unique. However, you // can use the same key with multiple resources. * Keys must start with - // a lowercase letter or international character. See Google Cloud - // Document + // a lowercase letter or international character. See Requirements for + // labels // (https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) // for more details. UserLabels map[string]string `json:"userLabels,omitempty"` diff --git a/displayvideo/v2/displayvideo-api.json b/displayvideo/v2/displayvideo-api.json index e9b0a1a3745..3df6e46874d 100644 --- a/displayvideo/v2/displayvideo-api.json +++ b/displayvideo/v2/displayvideo-api.json @@ -8491,7 +8491,7 @@ } } }, - "revision": "20221205", + "revision": "20221208", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -8756,7 +8756,7 @@ "id": "AdvertiserBillingConfig", "properties": { "billingProfileId": { - "description": "The ID of a billing profile assigned to the advertiser.", + "description": "The ID of a billing profile assigned to the advertiser. This field will default to the default billing profile ID of the advertiser's parent partner if a value is not provided.", "format": "int64", "type": "string" } @@ -9164,7 +9164,7 @@ "type": "string" }, "assignedTargetingOptionIdAlias": { - "description": "Output only. An alias for the assigned targeting option id field. This field is only supported for targeting types with enum targeting enabled. This value can be used in place of the assignedTargetingOptionId required for GET and DELETE targeting methods. An alias for the assignedTargetingOptionId. This value can be used in place of `assignedTargetingOptionId` when retrieving or deleting existing targeting. This field will only be supported for all assigned targeting options of the following targeting types: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY` This field is also supported for line item assigned targeting options of the following targeting types: * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`", + "description": "Output only. An alias for the assigned_targeting_option_id. This value can be used in place of `assignedTargetingOptionId` when retrieving or deleting existing targeting. This field will only be supported for all assigned targeting options of the following targeting types: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY` This field is also supported for line item assigned targeting options of the following targeting types: * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`", "readOnly": true, "type": "string" }, diff --git a/displayvideo/v2/displayvideo-gen.go b/displayvideo/v2/displayvideo-gen.go index 83f1ff6dd2d..80e9f9a62a0 100644 --- a/displayvideo/v2/displayvideo-gen.go +++ b/displayvideo/v2/displayvideo-gen.go @@ -973,7 +973,8 @@ func (s *AdvertiserAdServerConfig) MarshalJSON() ([]byte, error) { // AdvertiserBillingConfig: Billing related settings of an advertiser. type AdvertiserBillingConfig struct { // BillingProfileId: The ID of a billing profile assigned to the - // advertiser. + // advertiser. This field will default to the default billing profile ID + // of the advertiser's parent partner if a value is not provided. BillingProfileId int64 `json:"billingProfileId,omitempty,string"` // ForceSendFields is a list of field names (e.g. "BillingProfileId") to @@ -1769,15 +1770,11 @@ type AssignedTargetingOption struct { AssignedTargetingOptionId string `json:"assignedTargetingOptionId,omitempty"` // AssignedTargetingOptionIdAlias: Output only. An alias for the - // assigned targeting option id field. This field is only supported for - // targeting types with enum targeting enabled. This value can be used - // in place of the assignedTargetingOptionId required for GET and DELETE - // targeting methods. An alias for the assignedTargetingOptionId. This - // value can be used in place of `assignedTargetingOptionId` when - // retrieving or deleting existing targeting. This field will only be - // supported for all assigned targeting options of the following - // targeting types: * `TARGETING_TYPE_AGE_RANGE` * - // `TARGETING_TYPE_DEVICE_TYPE` * + // assigned_targeting_option_id. This value can be used in place of + // `assignedTargetingOptionId` when retrieving or deleting existing + // targeting. This field will only be supported for all assigned + // targeting options of the following targeting types: * + // `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_DEVICE_TYPE` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * // `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * // `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * diff --git a/dlp/v2/dlp-api.json b/dlp/v2/dlp-api.json index 1c88821d69e..1fcad43a84a 100644 --- a/dlp/v2/dlp-api.json +++ b/dlp/v2/dlp-api.json @@ -3412,7 +3412,7 @@ } } }, - "revision": "20221115", + "revision": "20221210", "rootUrl": "https://dlp.googleapis.com/", "schemas": { "GooglePrivacyDlpV2Action": { @@ -7047,7 +7047,7 @@ "type": "object" }, "GooglePrivacyDlpV2PublishSummaryToCscc": { - "description": "Publish the result summary of a DlpJob to the Cloud Security Command Center (CSCC Alpha). This action is only available for projects which are parts of an organization and whitelisted for the alpha Cloud Security Command Center. The action will publish the count of finding instances and their info types. The summary of findings will be persisted in CSCC and are governed by CSCC service-specific policy, see https://cloud.google.com/terms/service-terms Only a single instance of this action can be specified. Compatible with: Inspect", + "description": "Publish the result summary of a DlpJob to [Security Command Center](https://cloud.google.com/security-command-center). This action is available for only projects that belong to an organization. This action publishes the count of finding instances and their infoTypes. The summary of findings are persisted in Security Command Center and are governed by [service-specific policies for Security Command Center](https://cloud.google.com/terms/service-terms). Only a single instance of this action can be specified. Compatible with: Inspect", "id": "GooglePrivacyDlpV2PublishSummaryToCscc", "properties": {}, "type": "object" diff --git a/dlp/v2/dlp-gen.go b/dlp/v2/dlp-gen.go index f2a7841311f..acf682c3ee2 100644 --- a/dlp/v2/dlp-gen.go +++ b/dlp/v2/dlp-gen.go @@ -6890,14 +6890,14 @@ type GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog struct { } // GooglePrivacyDlpV2PublishSummaryToCscc: Publish the result summary of -// a DlpJob to the Cloud Security Command Center (CSCC Alpha). This -// action is only available for projects which are parts of an -// organization and whitelisted for the alpha Cloud Security Command -// Center. The action will publish the count of finding instances and -// their info types. The summary of findings will be persisted in CSCC -// and are governed by CSCC service-specific policy, see -// https://cloud.google.com/terms/service-terms Only a single instance -// of this action can be specified. Compatible with: Inspect +// a DlpJob to Security Command Center +// (https://cloud.google.com/security-command-center). This action is +// available for only projects that belong to an organization. This +// action publishes the count of finding instances and their infoTypes. +// The summary of findings are persisted in Security Command Center and +// are governed by service-specific policies for Security Command Center +// (https://cloud.google.com/terms/service-terms). Only a single +// instance of this action can be specified. Compatible with: Inspect type GooglePrivacyDlpV2PublishSummaryToCscc struct { } diff --git a/drive/v3/drive-api.json b/drive/v3/drive-api.json index dfe5ce214f3..8b634f2eed5 100644 --- a/drive/v3/drive-api.json +++ b/drive/v3/drive-api.json @@ -35,7 +35,7 @@ "description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/drive/", - "etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/i6TQ0TGQtceOw3gUFmDQmrB6DWw\"", + "etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/2TMpck7GTrbcyLtBRwI3Q7B24jA\"", "icons": { "x16": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_16.png", "x32": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_32.png" @@ -228,7 +228,7 @@ }, "spaces": { "default": "drive", - "description": "A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.", + "description": "A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'.", "location": "query", "type": "string" }, @@ -335,7 +335,7 @@ }, "spaces": { "default": "drive", - "description": "A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.", + "description": "A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'.", "location": "query", "type": "string" }, @@ -404,7 +404,7 @@ "comments": { "methods": { "create": { - "description": "Creates a new comment on a file.", + "description": "Creates a comment on a file.", "httpMethod": "POST", "id": "drive.comments.create", "parameterOrder": [ @@ -585,7 +585,7 @@ "drives": { "methods": { "create": { - "description": "Creates a new shared drive.", + "description": "Creates a shared drive.", "httpMethod": "POST", "id": "drive.drives.create", "parameterOrder": [ @@ -869,7 +869,7 @@ ] }, "create": { - "description": "Creates a new file.", + "description": "Creates a file.", "httpMethod": "POST", "id": "drive.files.create", "mediaUpload": { @@ -1216,7 +1216,7 @@ }, "spaces": { "default": "drive", - "description": "A comma-separated list of spaces to query within the corpus. Supported values are 'drive' and 'appDataFolder'.", + "description": "A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'.", "location": "query", "type": "string" }, @@ -1796,7 +1796,7 @@ "replies": { "methods": { "create": { - "description": "Creates a new reply to a comment.", + "description": "Creates a reply to a comment.", "httpMethod": "POST", "id": "drive.replies.create", "parameterOrder": [ @@ -2312,7 +2312,7 @@ } } }, - "revision": "20221023", + "revision": "20221219", "rootUrl": "https://www.googleapis.com/", "schemas": { "About": { diff --git a/drive/v3/drive-gen.go b/drive/v3/drive-gen.go index 13187f5a66c..6ef6df23c7a 100644 --- a/drive/v3/drive-gen.go +++ b/drive/v3/drive-gen.go @@ -3814,8 +3814,8 @@ func (c *ChangesListCall) RestrictToMyDrive(restrictToMyDrive bool) *ChangesList } // Spaces sets the optional parameter "spaces": A comma-separated list -// of spaces to query within the user corpus. Supported values are -// 'drive', 'appDataFolder' and 'photos'. +// of spaces to query within the corpora. Supported values are 'drive' +// and 'appDataFolder'. func (c *ChangesListCall) Spaces(spaces string) *ChangesListCall { c.urlParams_.Set("spaces", spaces) return c @@ -4008,7 +4008,7 @@ func (c *ChangesListCall) Do(opts ...googleapi.CallOption) (*ChangeList, error) // }, // "spaces": { // "default": "drive", - // "description": "A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.", + // "description": "A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'.", // "location": "query", // "type": "string" // }, @@ -4149,8 +4149,8 @@ func (c *ChangesWatchCall) RestrictToMyDrive(restrictToMyDrive bool) *ChangesWat } // Spaces sets the optional parameter "spaces": A comma-separated list -// of spaces to query within the user corpus. Supported values are -// 'drive', 'appDataFolder' and 'photos'. +// of spaces to query within the corpora. Supported values are 'drive' +// and 'appDataFolder'. func (c *ChangesWatchCall) Spaces(spaces string) *ChangesWatchCall { c.urlParams_.Set("spaces", spaces) return c @@ -4335,7 +4335,7 @@ func (c *ChangesWatchCall) Do(opts ...googleapi.CallOption) (*Channel, error) { // }, // "spaces": { // "default": "drive", - // "description": "A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.", + // "description": "A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'.", // "location": "query", // "type": "string" // }, @@ -4491,7 +4491,7 @@ type CommentsCreateCall struct { header_ http.Header } -// Create: Creates a new comment on a file. +// Create: Creates a comment on a file. // // - fileId: The ID of the file. func (r *CommentsService) Create(fileId string, comment *Comment) *CommentsCreateCall { @@ -4592,7 +4592,7 @@ func (c *CommentsCreateCall) Do(opts ...googleapi.CallOption) (*Comment, error) } return ret, nil // { - // "description": "Creates a new comment on a file.", + // "description": "Creates a comment on a file.", // "httpMethod": "POST", // "id": "drive.comments.create", // "parameterOrder": [ @@ -5291,7 +5291,7 @@ type DrivesCreateCall struct { header_ http.Header } -// Create: Creates a new shared drive. +// Create: Creates a shared drive. // // - requestId: An ID, such as a random UUID, which uniquely identifies // this user's request for idempotent creation of a shared drive. A @@ -5394,7 +5394,7 @@ func (c *DrivesCreateCall) Do(opts ...googleapi.CallOption) (*Drive, error) { } return ret, nil // { - // "description": "Creates a new shared drive.", + // "description": "Creates a shared drive.", // "httpMethod": "POST", // "id": "drive.drives.create", // "parameterOrder": [ @@ -6603,7 +6603,7 @@ type FilesCreateCall struct { header_ http.Header } -// Create: Creates a new file. +// Create: Creates a file. func (r *FilesService) Create(file *File) *FilesCreateCall { c := &FilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.file = file @@ -6841,7 +6841,7 @@ func (c *FilesCreateCall) Do(opts ...googleapi.CallOption) (*File, error) { } return ret, nil // { - // "description": "Creates a new file.", + // "description": "Creates a file.", // "httpMethod": "POST", // "id": "drive.files.create", // "mediaUpload": { @@ -7863,7 +7863,7 @@ func (c *FilesListCall) Q(q string) *FilesListCall { } // Spaces sets the optional parameter "spaces": A comma-separated list -// of spaces to query within the corpus. Supported values are 'drive' +// of spaces to query within the corpora. Supported values are 'drive' // and 'appDataFolder'. func (c *FilesListCall) Spaces(spaces string) *FilesListCall { c.urlParams_.Set("spaces", spaces) @@ -8063,7 +8063,7 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { // }, // "spaces": { // "default": "drive", - // "description": "A comma-separated list of spaces to query within the corpus. Supported values are 'drive' and 'appDataFolder'.", + // "description": "A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'.", // "location": "query", // "type": "string" // }, @@ -10186,7 +10186,7 @@ type RepliesCreateCall struct { header_ http.Header } -// Create: Creates a new reply to a comment. +// Create: Creates a reply to a comment. // // - commentId: The ID of the comment. // - fileId: The ID of the file. @@ -10290,7 +10290,7 @@ func (c *RepliesCreateCall) Do(opts ...googleapi.CallOption) (*Reply, error) { } return ret, nil // { - // "description": "Creates a new reply to a comment.", + // "description": "Creates a reply to a comment.", // "httpMethod": "POST", // "id": "drive.replies.create", // "parameterOrder": [ diff --git a/driveactivity/v2/driveactivity-api.json b/driveactivity/v2/driveactivity-api.json index b5a0641e604..24ca0055749 100644 --- a/driveactivity/v2/driveactivity-api.json +++ b/driveactivity/v2/driveactivity-api.json @@ -132,7 +132,7 @@ } } }, - "revision": "20220926", + "revision": "20221220", "rootUrl": "https://driveactivity.googleapis.com/", "schemas": { "Action": { @@ -1264,7 +1264,7 @@ "type": "object" }, "Target": { - "description": "Information about the target of activity.", + "description": "Information about the target of activity. For more information on how activity history is shared with users, see [Activity history visibility](https://developers.google.com/drive/activity/v2#activityhistory).", "id": "Target", "properties": { "drive": { diff --git a/driveactivity/v2/driveactivity-gen.go b/driveactivity/v2/driveactivity-gen.go index acaf70fc220..738e8ec8960 100644 --- a/driveactivity/v2/driveactivity-gen.go +++ b/driveactivity/v2/driveactivity-gen.go @@ -1936,7 +1936,10 @@ func (s *SystemEvent) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Target: Information about the target of activity. +// Target: Information about the target of activity. For more +// information on how activity history is shared with users, see +// Activity history visibility +// (https://developers.google.com/drive/activity/v2#activityhistory). type Target struct { // Drive: The target is a shared drive. Drive *Drive `json:"drive,omitempty"` diff --git a/eventarc/v1/eventarc-api.json b/eventarc/v1/eventarc-api.json index 679581b56cc..3a4136bff7b 100644 --- a/eventarc/v1/eventarc-api.json +++ b/eventarc/v1/eventarc-api.json @@ -1197,7 +1197,7 @@ } } }, - "revision": "20221021", + "revision": "20221207", "rootUrl": "https://eventarc.googleapis.com/", "schemas": { "AuditConfig": { @@ -1393,7 +1393,7 @@ "id": "Destination", "properties": { "cloudFunction": { - "description": "The Cloud Function resource name. Only Cloud Functions V2 is supported. Format: `projects/{project}/locations/{location}/functions/{function}`", + "description": "The Cloud Function resource name. Only Cloud Functions V2 is supported. Format: `projects/{project}/locations/{location}/functions/{function}` This is a read-only field. Creating Cloud Functions V2 triggers is only supported via the Cloud Functions product. An error will be returned if the user sets this value.", "type": "string" }, "cloudRun": { diff --git a/eventarc/v1/eventarc-gen.go b/eventarc/v1/eventarc-gen.go index 05fb6d3a659..c126d91258b 100644 --- a/eventarc/v1/eventarc-gen.go +++ b/eventarc/v1/eventarc-gen.go @@ -588,7 +588,10 @@ func (s *CloudRun) MarshalJSON() ([]byte, error) { type Destination struct { // CloudFunction: The Cloud Function resource name. Only Cloud Functions // V2 is supported. Format: - // `projects/{project}/locations/{location}/functions/{function}` + // `projects/{project}/locations/{location}/functions/{function}` This + // is a read-only field. Creating Cloud Functions V2 triggers is only + // supported via the Cloud Functions product. An error will be returned + // if the user sets this value. CloudFunction string `json:"cloudFunction,omitempty"` // CloudRun: Cloud Run fully-managed resource that receives the events. diff --git a/file/v1/file-api.json b/file/v1/file-api.json index 3ffc50742f9..e5d84df98f8 100644 --- a/file/v1/file-api.json +++ b/file/v1/file-api.json @@ -846,7 +846,7 @@ } } }, - "revision": "20221111", + "revision": "20221207", "rootUrl": "https://file.googleapis.com/", "schemas": { "Backup": { @@ -1587,7 +1587,7 @@ "type": "object" }, "MaintenancePolicy": { - "description": "Defines policies to service maintenance events.", + "description": "LINT.IfChange Defines policies to service maintenance events.", "id": "MaintenancePolicy", "properties": { "createTime": { diff --git a/file/v1/file-gen.go b/file/v1/file-gen.go index 55c03366795..8668617431d 100644 --- a/file/v1/file-gen.go +++ b/file/v1/file-gen.go @@ -1314,7 +1314,8 @@ func (s *Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// MaintenancePolicy: Defines policies to service maintenance events. +// MaintenancePolicy: LINT.IfChange Defines policies to service +// maintenance events. type MaintenancePolicy struct { // CreateTime: Output only. The time when the resource was created. CreateTime string `json:"createTime,omitempty"` diff --git a/file/v1beta1/file-api.json b/file/v1beta1/file-api.json index 8ad2b624d10..bde83bd3222 100644 --- a/file/v1beta1/file-api.json +++ b/file/v1beta1/file-api.json @@ -1041,7 +1041,7 @@ } } }, - "revision": "20221111", + "revision": "20221207", "rootUrl": "https://file.googleapis.com/", "schemas": { "Backup": { @@ -1840,7 +1840,7 @@ "type": "object" }, "MaintenancePolicy": { - "description": "Defines policies to service maintenance events.", + "description": "LINT.IfChange Defines policies to service maintenance events.", "id": "MaintenancePolicy", "properties": { "createTime": { diff --git a/file/v1beta1/file-gen.go b/file/v1beta1/file-gen.go index 7806e0037a3..28aa7761a7a 100644 --- a/file/v1beta1/file-gen.go +++ b/file/v1beta1/file-gen.go @@ -1392,7 +1392,8 @@ func (s *Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// MaintenancePolicy: Defines policies to service maintenance events. +// MaintenancePolicy: LINT.IfChange Defines policies to service +// maintenance events. type MaintenancePolicy struct { // CreateTime: Output only. The time when the resource was created. CreateTime string `json:"createTime,omitempty"` diff --git a/firebase/v1beta1/firebase-api.json b/firebase/v1beta1/firebase-api.json index dad52c71400..a6da5029874 100644 --- a/firebase/v1beta1/firebase-api.json +++ b/firebase/v1beta1/firebase-api.json @@ -433,7 +433,7 @@ ], "parameters": { "filter": { - "description": "A query string compatible with Google's [AIP-160](https://google.aip.dev/160) standard. Use any of the following fields in a query: * [`app_id`](../projects.apps#FirebaseAppInfo.FIELDS.app_id) * [`namespace`](../projects.apps#FirebaseAppInfo.FIELDS.namespace) * [`platform`](../projects.apps#FirebaseAppInfo.FIELDS.platform) We also support the following \"virtual\" fields (fields which are not actually part of the returned resource object, but can be queried as if they are pre-populated with specific values): * `sha1_hash` or `sha1_hashes`: This field is considered to be a repeated `string` field, populated with the list of all SHA-1 certificate fingerprints registered with the app. This list is empty if the app is not an Android app. * `sha256_hash` or `sha256_hashes`: This field is considered to be a repeated `string` field, populated with the list of all SHA-256 certificate fingerprints registered with the app. This list is empty if the app is not an Android app. * `app_store_id`: This field is considered to be a singular `string` field, populated with the Apple App Store ID registered with the app. This field is empty if the app is not an iOS app. * `team_id`: This field is considered to be a singular `string` field, populated with the Apple team ID registered with the app. This field is empty if the app is not an iOS app.", + "description": "A query string compatible with Google's [AIP-160 standard](https://google.aip.dev/160). Use any of the following fields in a query: * [`app_id`](../projects/searchApps#FirebaseAppInfo.FIELDS.app_id) * [`namespace`](../projects/searchApps#FirebaseAppInfo.FIELDS.namespace) * [`platform`](../projects/searchApps#FirebaseAppInfo.FIELDS.platform) This query also supports the following \"virtual\" fields. These are fields which are not actually part of the returned resource object, but they can be queried as if they are pre-populated with specific values. * `sha1_hash` or `sha1_hashes`: This field is considered to be a _repeated_ `string` field, populated with the list of all SHA-1 certificate fingerprints registered with the AndroidApp. This list is empty if the App is not an `AndroidApp`. * `sha256_hash` or `sha256_hashes`: This field is considered to be a _repeated_ `string` field, populated with the list of all SHA-256 certificate fingerprints registered with the AndroidApp. This list is empty if the App is not an `AndroidApp`. * `app_store_id`: This field is considered to be a _singular_ `string` field, populated with the Apple App Store ID registered with the IosApp. This field is empty if the App is not an `IosApp`. * `team_id`: This field is considered to be a _singular_ `string` field, populated with the Apple team ID registered with the IosApp. This field is empty if the App is not an `IosApp`.", "location": "query", "type": "string" }, @@ -1320,7 +1320,7 @@ } } }, - "revision": "20221012", + "revision": "20221221", "rootUrl": "https://firebase.googleapis.com/", "schemas": { "AddFirebaseRequest": { @@ -1424,6 +1424,10 @@ "description": "The user-assigned display name for the `AndroidApp`.", "type": "string" }, + "etag": { + "description": "This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding. Learn more about `etag` in Google's [AIP-154 standard](https://google.aip.dev/154#declarative-friendly-resources). This etag is strongly validated.", + "type": "string" + }, "name": { "description": "The resource name of the AndroidApp, in the format: projects/ PROJECT_IDENTIFIER/androidApps/APP_ID * PROJECT_IDENTIFIER: the parent Project's [`ProjectNumber`](../projects#FirebaseProject.FIELDS.project_number) ***(recommended)*** or its [`ProjectId`](../projects#FirebaseProject.FIELDS.project_id). Learn more about using project identifiers in Google's [AIP 2510 standard](https://google.aip.dev/cloud/2510). Note that the value for PROJECT_IDENTIFIER in any response body will be the `ProjectId`. * APP_ID: the globally unique, Firebase-assigned identifier for the App (see [`appId`](../projects.androidApps#AndroidApp.FIELDS.app_id)).", "type": "string" @@ -1596,7 +1600,7 @@ "additionalProperties": { "type": "string" }, - "description": "Set of user-defined annotations for the FirebaseProject as per [AIP-128](https://google.aip.dev/128#annotations). These annotations are intended solely for developers and client-side tools Firebase services will not mutate this annotation set.", + "description": "A set of user-defined annotations for the FirebaseProject. Learn more about annotations in Google's [AIP-128 standard](https://google.aip.dev/128#annotations). These annotations are intended solely for developers and client-side tools. Firebase services will not mutate this annotations set.", "type": "object" }, "displayName": { @@ -1604,7 +1608,7 @@ "type": "string" }, "etag": { - "description": "This checksum is computed by the server based on the value of other fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding. [AIP-154](https://google.aip.dev/154#declarative-friendly-resources). This etag is strongly validated.", + "description": "This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding. Learn more about `etag` in Google's [AIP-154 standard](https://google.aip.dev/154#declarative-friendly-resources). This etag is strongly validated.", "type": "string" }, "name": { @@ -1670,6 +1674,10 @@ "description": "The user-assigned display name for the `IosApp`.", "type": "string" }, + "etag": { + "description": "This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding. Learn more about `etag` in Google's [AIP-154 standard](https://google.aip.dev/154#declarative-friendly-resources). This etag is strongly validated.", + "type": "string" + }, "name": { "description": "The resource name of the IosApp, in the format: projects/PROJECT_IDENTIFIER /iosApps/APP_ID * PROJECT_IDENTIFIER: the parent Project's [`ProjectNumber`](../projects#FirebaseProject.FIELDS.project_number) ***(recommended)*** or its [`ProjectId`](../projects#FirebaseProject.FIELDS.project_id). Learn more about using project identifiers in Google's [AIP 2510 standard](https://google.aip.dev/cloud/2510). Note that the value for PROJECT_IDENTIFIER in any response body will be the `ProjectId`. * APP_ID: the globally unique, Firebase-assigned identifier for the App (see [`appId`](../projects.iosApps#IosApp.FIELDS.app_id)).", "type": "string" @@ -1954,7 +1962,7 @@ "type": "boolean" }, "etag": { - "description": "Checksum provided in the AndroidApp entity, which if provided ensures the client has an up-to-date value before proceeding.", + "description": "Checksum provided in the AndroidApp resource. If provided, this checksum ensures that the client has an up-to-date value before proceeding.", "type": "string" }, "immediate": { @@ -1976,7 +1984,7 @@ "type": "boolean" }, "etag": { - "description": "Checksum provided in the IosApp entity, which if provided ensures the client has an up-to-date value before proceeding.", + "description": "Checksum provided in the IosApp resource. If provided, this checksum ensures that the client has an up-to-date value before proceeding.", "type": "string" }, "immediate": { @@ -1998,7 +2006,7 @@ "type": "boolean" }, "etag": { - "description": "Checksum provided in the WebApp entity, which if provided ensures the client has an up-to-date value before proceeding.", + "description": "Checksum provided in the WebApp resource. If provided, this checksum ensures that the client has an up-to-date value before proceeding.", "type": "string" }, "immediate": { @@ -2138,7 +2146,7 @@ "id": "UndeleteAndroidAppRequest", "properties": { "etag": { - "description": "Checksum provided in the AndroidApp entity, which if provided ensures the client has an up-to-date value before proceeding.", + "description": "Checksum provided in the AndroidApp resource. If provided, this checksum ensures that the client has an up-to-date value before proceeding.", "type": "string" }, "validateOnly": { @@ -2152,7 +2160,7 @@ "id": "UndeleteIosAppRequest", "properties": { "etag": { - "description": "Checksum provided in the IosApp entity, which if provided ensures the client has an up-to-date value before proceeding.", + "description": "Checksum provided in the IosApp resource. If provided, this checksum ensures that the client has an up-to-date value before proceeding.", "type": "string" }, "validateOnly": { @@ -2166,7 +2174,7 @@ "id": "UndeleteWebAppRequest", "properties": { "etag": { - "description": "Checksum provided in the WebApp entity, which if provided ensures the client has an up-to-date value before proceeding.", + "description": "Checksum provided in the WebApp resource. If provided, this checksum ensures that the client has an up-to-date value before proceeding.", "type": "string" }, "validateOnly": { @@ -2200,6 +2208,10 @@ "description": "The user-assigned display name for the `WebApp`.", "type": "string" }, + "etag": { + "description": "This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding. Learn more about `etag` in Google's [AIP-154 standard](https://google.aip.dev/154#declarative-friendly-resources). This etag is strongly validated.", + "type": "string" + }, "name": { "description": "The resource name of the WebApp, in the format: projects/PROJECT_IDENTIFIER /webApps/APP_ID * PROJECT_IDENTIFIER: the parent Project's [`ProjectNumber`](../projects#FirebaseProject.FIELDS.project_number) ***(recommended)*** or its [`ProjectId`](../projects#FirebaseProject.FIELDS.project_id). Learn more about using project identifiers in Google's [AIP 2510 standard](https://google.aip.dev/cloud/2510). Note that the value for PROJECT_IDENTIFIER in any response body will be the `ProjectId`. * APP_ID: the globally unique, Firebase-assigned identifier for the App (see [`appId`](../projects.webApps#WebApp.FIELDS.app_id)).", "type": "string" diff --git a/firebase/v1beta1/firebase-gen.go b/firebase/v1beta1/firebase-gen.go index 0df12cb90b0..7de35c029e1 100644 --- a/firebase/v1beta1/firebase-gen.go +++ b/firebase/v1beta1/firebase-gen.go @@ -494,6 +494,14 @@ type AndroidApp struct { // DisplayName: The user-assigned display name for the `AndroidApp`. DisplayName string `json:"displayName,omitempty"` + // Etag: This checksum is computed by the server based on the value of + // other fields, and it may be sent with update requests to ensure the + // client has an up-to-date value before proceeding. Learn more about + // `etag` in Google's AIP-154 standard + // (https://google.aip.dev/154#declarative-friendly-resources). This + // etag is strongly validated. + Etag string `json:"etag,omitempty"` + // Name: The resource name of the AndroidApp, in the format: projects/ // PROJECT_IDENTIFIER/androidApps/APP_ID * PROJECT_IDENTIFIER: the // parent Project's `ProjectNumber` @@ -802,18 +810,20 @@ func (s *FirebaseAppInfo) MarshalJSON() ([]byte, error) { // has the same underlying GCP identifiers (`projectNumber` and // `projectId`). This allows for easy interop with Google APIs. type FirebaseProject struct { - // Annotations: Set of user-defined annotations for the FirebaseProject - // as per AIP-128 (https://google.aip.dev/128#annotations). These - // annotations are intended solely for developers and client-side tools - // Firebase services will not mutate this annotation set. + // Annotations: A set of user-defined annotations for the + // FirebaseProject. Learn more about annotations in Google's AIP-128 + // standard (https://google.aip.dev/128#annotations). These annotations + // are intended solely for developers and client-side tools. Firebase + // services will not mutate this annotations set. Annotations map[string]string `json:"annotations,omitempty"` // DisplayName: The user-assigned display name of the Project. DisplayName string `json:"displayName,omitempty"` // Etag: This checksum is computed by the server based on the value of - // other fields, and may be sent on update requests to ensure the client - // has an up-to-date value before proceeding. AIP-154 + // other fields, and it may be sent with update requests to ensure the + // client has an up-to-date value before proceeding. Learn more about + // `etag` in Google's AIP-154 standard // (https://google.aip.dev/154#declarative-friendly-resources). This // etag is strongly validated. Etag string `json:"etag,omitempty"` @@ -916,6 +926,14 @@ type IosApp struct { // DisplayName: The user-assigned display name for the `IosApp`. DisplayName string `json:"displayName,omitempty"` + // Etag: This checksum is computed by the server based on the value of + // other fields, and it may be sent with update requests to ensure the + // client has an up-to-date value before proceeding. Learn more about + // `etag` in Google's AIP-154 standard + // (https://google.aip.dev/154#declarative-friendly-resources). This + // etag is strongly validated. + Etag string `json:"etag,omitempty"` + // Name: The resource name of the IosApp, in the format: // projects/PROJECT_IDENTIFIER /iosApps/APP_ID * PROJECT_IDENTIFIER: the // parent Project's `ProjectNumber` @@ -1499,8 +1517,9 @@ type RemoveAndroidAppRequest struct { // will succeed but no action will be taken on the server. AllowMissing bool `json:"allowMissing,omitempty"` - // Etag: Checksum provided in the AndroidApp entity, which if provided - // ensures the client has an up-to-date value before proceeding. + // Etag: Checksum provided in the AndroidApp resource. If provided, this + // checksum ensures that the client has an up-to-date value before + // proceeding. Etag string `json:"etag,omitempty"` // Immediate: Determines whether to _immediately_ delete the App. If set @@ -1542,8 +1561,9 @@ type RemoveIosAppRequest struct { // will succeed but no action will be taken on the server. AllowMissing bool `json:"allowMissing,omitempty"` - // Etag: Checksum provided in the IosApp entity, which if provided - // ensures the client has an up-to-date value before proceeding. + // Etag: Checksum provided in the IosApp resource. If provided, this + // checksum ensures that the client has an up-to-date value before + // proceeding. Etag string `json:"etag,omitempty"` // Immediate: Determines whether to _immediately_ delete the App. If set @@ -1585,8 +1605,9 @@ type RemoveWebAppRequest struct { // will succeed but no action will be taken on the server. AllowMissing bool `json:"allowMissing,omitempty"` - // Etag: Checksum provided in the WebApp entity, which if provided - // ensures the client has an up-to-date value before proceeding. + // Etag: Checksum provided in the WebApp resource. If provided, this + // checksum ensures that the client has an up-to-date value before + // proceeding. Etag string `json:"etag,omitempty"` // Immediate: Determines whether to _immediately_ delete the App. If set @@ -1857,8 +1878,9 @@ func (s *StreamMapping) MarshalJSON() ([]byte, error) { } type UndeleteAndroidAppRequest struct { - // Etag: Checksum provided in the AndroidApp entity, which if provided - // ensures the client has an up-to-date value before proceeding. + // Etag: Checksum provided in the AndroidApp resource. If provided, this + // checksum ensures that the client has an up-to-date value before + // proceeding. Etag string `json:"etag,omitempty"` // ValidateOnly: If set to true, the request is only validated. The App @@ -1889,8 +1911,9 @@ func (s *UndeleteAndroidAppRequest) MarshalJSON() ([]byte, error) { } type UndeleteIosAppRequest struct { - // Etag: Checksum provided in the IosApp entity, which if provided - // ensures the client has an up-to-date value before proceeding. + // Etag: Checksum provided in the IosApp resource. If provided, this + // checksum ensures that the client has an up-to-date value before + // proceeding. Etag string `json:"etag,omitempty"` // ValidateOnly: If set to true, the request is only validated. The App @@ -1921,8 +1944,9 @@ func (s *UndeleteIosAppRequest) MarshalJSON() ([]byte, error) { } type UndeleteWebAppRequest struct { - // Etag: Checksum provided in the WebApp entity, which if provided - // ensures the client has an up-to-date value before proceeding. + // Etag: Checksum provided in the WebApp resource. If provided, this + // checksum ensures that the client has an up-to-date value before + // proceeding. Etag string `json:"etag,omitempty"` // ValidateOnly: If set to true, the request is only validated. The App @@ -1984,6 +2008,14 @@ type WebApp struct { // DisplayName: The user-assigned display name for the `WebApp`. DisplayName string `json:"displayName,omitempty"` + // Etag: This checksum is computed by the server based on the value of + // other fields, and it may be sent with update requests to ensure the + // client has an up-to-date value before proceeding. Learn more about + // `etag` in Google's AIP-154 standard + // (https://google.aip.dev/154#declarative-friendly-resources). This + // etag is strongly validated. + Etag string `json:"etag,omitempty"` + // Name: The resource name of the WebApp, in the format: // projects/PROJECT_IDENTIFIER /webApps/APP_ID * PROJECT_IDENTIFIER: the // parent Project's `ProjectNumber` @@ -3858,26 +3890,29 @@ func (r *ProjectsService) SearchApps(parent string) *ProjectsSearchAppsCall { } // Filter sets the optional parameter "filter": A query string -// compatible with Google's AIP-160 (https://google.aip.dev/160) -// standard. Use any of the following fields in a query: * `app_id` -// (../projects.apps#FirebaseAppInfo.FIELDS.app_id) * `namespace` -// (../projects.apps#FirebaseAppInfo.FIELDS.namespace) * `platform` -// (../projects.apps#FirebaseAppInfo.FIELDS.platform) We also support -// the following "virtual" fields (fields which are not actually part of -// the returned resource object, but can be queried as if they are -// pre-populated with specific values): * `sha1_hash` or `sha1_hashes`: -// This field is considered to be a repeated `string` field, populated -// with the list of all SHA-1 certificate fingerprints registered with -// the app. This list is empty if the app is not an Android app. * -// `sha256_hash` or `sha256_hashes`: This field is considered to be a -// repeated `string` field, populated with the list of all SHA-256 -// certificate fingerprints registered with the app. This list is empty -// if the app is not an Android app. * `app_store_id`: This field is -// considered to be a singular `string` field, populated with the Apple -// App Store ID registered with the app. This field is empty if the app -// is not an iOS app. * `team_id`: This field is considered to be a -// singular `string` field, populated with the Apple team ID registered -// with the app. This field is empty if the app is not an iOS app. +// compatible with Google's AIP-160 standard +// (https://google.aip.dev/160). Use any of the following fields in a +// query: * `app_id` +// (../projects/searchApps#FirebaseAppInfo.FIELDS.app_id) * `namespace` +// (../projects/searchApps#FirebaseAppInfo.FIELDS.namespace) * +// `platform` (../projects/searchApps#FirebaseAppInfo.FIELDS.platform) +// This query also supports the following "virtual" fields. These are +// fields which are not actually part of the returned resource object, +// but they can be queried as if they are pre-populated with specific +// values. * `sha1_hash` or `sha1_hashes`: This field is considered to +// be a _repeated_ `string` field, populated with the list of all SHA-1 +// certificate fingerprints registered with the AndroidApp. This list is +// empty if the App is not an `AndroidApp`. * `sha256_hash` or +// `sha256_hashes`: This field is considered to be a _repeated_ `string` +// field, populated with the list of all SHA-256 certificate +// fingerprints registered with the AndroidApp. This list is empty if +// the App is not an `AndroidApp`. * `app_store_id`: This field is +// considered to be a _singular_ `string` field, populated with the +// Apple App Store ID registered with the IosApp. This field is empty if +// the App is not an `IosApp`. * `team_id`: This field is considered to +// be a _singular_ `string` field, populated with the Apple team ID +// registered with the IosApp. This field is empty if the App is not an +// `IosApp`. func (c *ProjectsSearchAppsCall) Filter(filter string) *ProjectsSearchAppsCall { c.urlParams_.Set("filter", filter) return c @@ -4017,7 +4052,7 @@ func (c *ProjectsSearchAppsCall) Do(opts ...googleapi.CallOption) (*SearchFireba // ], // "parameters": { // "filter": { - // "description": "A query string compatible with Google's [AIP-160](https://google.aip.dev/160) standard. Use any of the following fields in a query: * [`app_id`](../projects.apps#FirebaseAppInfo.FIELDS.app_id) * [`namespace`](../projects.apps#FirebaseAppInfo.FIELDS.namespace) * [`platform`](../projects.apps#FirebaseAppInfo.FIELDS.platform) We also support the following \"virtual\" fields (fields which are not actually part of the returned resource object, but can be queried as if they are pre-populated with specific values): * `sha1_hash` or `sha1_hashes`: This field is considered to be a repeated `string` field, populated with the list of all SHA-1 certificate fingerprints registered with the app. This list is empty if the app is not an Android app. * `sha256_hash` or `sha256_hashes`: This field is considered to be a repeated `string` field, populated with the list of all SHA-256 certificate fingerprints registered with the app. This list is empty if the app is not an Android app. * `app_store_id`: This field is considered to be a singular `string` field, populated with the Apple App Store ID registered with the app. This field is empty if the app is not an iOS app. * `team_id`: This field is considered to be a singular `string` field, populated with the Apple team ID registered with the app. This field is empty if the app is not an iOS app.", + // "description": "A query string compatible with Google's [AIP-160 standard](https://google.aip.dev/160). Use any of the following fields in a query: * [`app_id`](../projects/searchApps#FirebaseAppInfo.FIELDS.app_id) * [`namespace`](../projects/searchApps#FirebaseAppInfo.FIELDS.namespace) * [`platform`](../projects/searchApps#FirebaseAppInfo.FIELDS.platform) This query also supports the following \"virtual\" fields. These are fields which are not actually part of the returned resource object, but they can be queried as if they are pre-populated with specific values. * `sha1_hash` or `sha1_hashes`: This field is considered to be a _repeated_ `string` field, populated with the list of all SHA-1 certificate fingerprints registered with the AndroidApp. This list is empty if the App is not an `AndroidApp`. * `sha256_hash` or `sha256_hashes`: This field is considered to be a _repeated_ `string` field, populated with the list of all SHA-256 certificate fingerprints registered with the AndroidApp. This list is empty if the App is not an `AndroidApp`. * `app_store_id`: This field is considered to be a _singular_ `string` field, populated with the Apple App Store ID registered with the IosApp. This field is empty if the App is not an `IosApp`. * `team_id`: This field is considered to be a _singular_ `string` field, populated with the Apple team ID registered with the IosApp. This field is empty if the App is not an `IosApp`.", // "location": "query", // "type": "string" // }, diff --git a/firebasedatabase/v1beta/firebasedatabase-api.json b/firebasedatabase/v1beta/firebasedatabase-api.json index a2d87b2c41b..7c48d5afe37 100644 --- a/firebasedatabase/v1beta/firebasedatabase-api.json +++ b/firebasedatabase/v1beta/firebasedatabase-api.json @@ -21,7 +21,7 @@ "baseUrl": "https://firebasedatabase.googleapis.com/", "batchPath": "batch", "canonicalName": "Firebase Realtime Database", - "description": "The Firebase Realtime Database Management API enables programmatic provisioning and management of Realtime Database instances.", + "description": "The Firebase Realtime Database API enables programmatic provisioning and management of Realtime Database instances.", "discoveryVersion": "v1", "documentationLink": "https://firebase.google.com/docs/reference/rest/database/database-management/rest/", "fullyEncodeReservedExpansion": true, @@ -351,7 +351,7 @@ } } }, - "revision": "20221114", + "revision": "20221221", "rootUrl": "https://firebasedatabase.googleapis.com/", "schemas": { "DatabaseInstance": { diff --git a/firestore/v1/firestore-api.json b/firestore/v1/firestore-api.json index 23cf94090a1..abd78da901b 100644 --- a/firestore/v1/firestore-api.json +++ b/firestore/v1/firestore-api.json @@ -146,6 +146,47 @@ "https://www.googleapis.com/auth/datastore" ] }, + "delete": { + "description": "Deletes a database.", + "flatPath": "v1/projects/{projectsId}/databases/{databasesId}", + "httpMethod": "DELETE", + "id": "firestore.projects.databases.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "allowMissing": { + "description": "If set to true and the Database is not found, the request will succeed but no action will be taken.", + "location": "query", + "type": "boolean" + }, + "etag": { + "description": "The current etag of the Database. If an etag is provided and does not match the current etag of the database, deletion will be blocked and a FAILED_PRECONDITION error will be returned.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. A name of the form `projects/{project_id}/databases/{database_id}`", + "location": "path", + "pattern": "^projects/[^/]+/databases/[^/]+$", + "required": true, + "type": "string" + }, + "validateOnly": { + "description": "If set, validate the request and preview the response, but do not actually delete the database.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/datastore" + ] + }, "exportDocuments": { "description": "Exports a copy of all or a subset of documents from Google Cloud Firestore to another storage system, such as Google Cloud Storage. Recent updates to documents may not be reflected in the export. The export occurs in the background and its progress can be monitored and managed via the Operation resource that is created. The output of an export may only be used once the associated operation is done. If an export operation is cancelled before completion it may leave partial data behind in Google Cloud Storage. For more details on export behavior and output format, refer to: https://cloud.google.com/firestore/docs/manage-data/export-import", "flatPath": "v1/projects/{projectsId}/databases/{databasesId}:exportDocuments", @@ -788,7 +829,7 @@ ], "parameters": { "collectionId": { - "description": "Required. The collection ID, relative to `parent`, to list. For example: `chatrooms` or `messages`.", + "description": "Optional. The collection ID, relative to `parent`, to list. For example: `chatrooms` or `messages`. This is optional, and when not provided, Firestore will list documents from all collections under the provided `parent`.", "location": "path", "required": true, "type": "string" @@ -800,18 +841,18 @@ "type": "string" }, "orderBy": { - "description": "The order to sort results by. For example: `priority desc, name`.", + "description": "Optional. The optional ordering of the documents to return. For example: `priority desc, __name__ desc`. This mirrors the `ORDER BY` used in Firestore queries but in a string representation. When absent, documents are ordered based on `__name__ ASC`.", "location": "query", "type": "string" }, "pageSize": { - "description": "The maximum number of documents to return.", + "description": "Optional. The maximum number of documents to return in a single response. Firestore may return fewer than this value.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "The `next_page_token` value returned from a previous List request, if any.", + "description": "Optional. A page token, received from a previous `ListDocuments` response. Provide this to retrieve the subsequent page. When paginating, all other parameters (with the exception of `page_size`) must match the values set in the request that generated the page token.", "location": "query", "type": "string" }, @@ -823,18 +864,18 @@ "type": "string" }, "readTime": { - "description": "Reads documents as they were at the given time. This may not be older than 270 seconds.", + "description": "Perform the read at the provided time. This may not be older than 270 seconds.", "format": "google-datetime", "location": "query", "type": "string" }, "showMissing": { - "description": "If the list should show missing documents. A missing document is a document that does not exist but has sub-documents. These documents will be returned with a key but will not have fields, Document.create_time, or Document.update_time set. Requests with `show_missing` may not specify `where` or `order_by`.", + "description": "If the list should show missing documents. A document is missing if it does not exist, but there are sub-documents nested underneath it. When true, such missing documents will be returned with a key but will not have fields, `create_time`, or `update_time` set. Requests with `show_missing` may not specify `where` or `order_by`.", "location": "query", "type": "boolean" }, "transaction": { - "description": "Reads documents in a transaction.", + "description": "Perform the read as part of an already active transaction.", "format": "byte", "location": "query", "type": "string" @@ -889,7 +930,7 @@ ], "parameters": { "collectionId": { - "description": "Required. The collection ID, relative to `parent`, to list. For example: `chatrooms` or `messages`.", + "description": "Optional. The collection ID, relative to `parent`, to list. For example: `chatrooms` or `messages`. This is optional, and when not provided, Firestore will list documents from all collections under the provided `parent`.", "location": "path", "required": true, "type": "string" @@ -901,18 +942,18 @@ "type": "string" }, "orderBy": { - "description": "The order to sort results by. For example: `priority desc, name`.", + "description": "Optional. The optional ordering of the documents to return. For example: `priority desc, __name__ desc`. This mirrors the `ORDER BY` used in Firestore queries but in a string representation. When absent, documents are ordered based on `__name__ ASC`.", "location": "query", "type": "string" }, "pageSize": { - "description": "The maximum number of documents to return.", + "description": "Optional. The maximum number of documents to return in a single response. Firestore may return fewer than this value.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "The `next_page_token` value returned from a previous List request, if any.", + "description": "Optional. A page token, received from a previous `ListDocuments` response. Provide this to retrieve the subsequent page. When paginating, all other parameters (with the exception of `page_size`) must match the values set in the request that generated the page token.", "location": "query", "type": "string" }, @@ -924,18 +965,18 @@ "type": "string" }, "readTime": { - "description": "Reads documents as they were at the given time. This may not be older than 270 seconds.", + "description": "Perform the read at the provided time. This may not be older than 270 seconds.", "format": "google-datetime", "location": "query", "type": "string" }, "showMissing": { - "description": "If the list should show missing documents. A missing document is a document that does not exist but has sub-documents. These documents will be returned with a key but will not have fields, Document.create_time, or Document.update_time set. Requests with `show_missing` may not specify `where` or `order_by`.", + "description": "If the list should show missing documents. A document is missing if it does not exist, but there are sub-documents nested underneath it. When true, such missing documents will be returned with a key but will not have fields, `create_time`, or `update_time` set. Requests with `show_missing` may not specify `where` or `order_by`.", "location": "query", "type": "boolean" }, "transaction": { - "description": "Reads documents in a transaction.", + "description": "Perform the read as part of an already active transaction.", "format": "byte", "location": "query", "type": "string" @@ -1382,7 +1423,7 @@ } } }, - "revision": "20221029", + "revision": "20221210", "rootUrl": "https://firestore.googleapis.com/", "schemas": { "Aggregation": { @@ -2088,13 +2129,6 @@ }, "type": "array" }, - "namespaceIds": { - "description": "An empty list represents all namespaces. This is the preferred usage for databases that don't use namespaces. An empty string element represents the default namespace. This should be used if the database has data in non-default namespaces, but doesn't want to include them. Each namespace in this list must be unique.", - "items": { - "type": "string" - }, - "type": "array" - }, "outputUriPrefix": { "description": "The output URI. Currently only supports Google Cloud Storage URIs of the form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional Google Cloud Storage namespace path. When choosing a name, be sure to consider Google Cloud Storage naming guidelines: https://cloud.google.com/storage/docs/naming. If the URI is a bucket (without a namespace path), a prefix will be generated based on the start time.", "type": "string" @@ -2270,13 +2304,6 @@ "inputUriPrefix": { "description": "Location of the exported files. This must match the output_uri_prefix of an ExportDocumentsResponse from an export that has completed successfully. See: google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix.", "type": "string" - }, - "namespaceIds": { - "description": "An empty list represents all namespaces. This is the preferred usage for databases that don't use namespaces. An empty string element represents the default namespace. This should be used if the database has data in non-default namespaces, but doesn't want to include them. Each namespace in this list must be unique.", - "items": { - "type": "string" - }, - "type": "array" } }, "type": "object" @@ -2735,7 +2762,7 @@ "type": "array" }, "nextPageToken": { - "description": "The next page token.", + "description": "A token to retrieve the next page of documents. If this field is omitted, there are no subsequent pages.", "type": "string" } }, diff --git a/firestore/v1/firestore-gen.go b/firestore/v1/firestore-gen.go index 40bc2b5e533..66c7d7ec60e 100644 --- a/firestore/v1/firestore-gen.go +++ b/firestore/v1/firestore-gen.go @@ -1507,13 +1507,6 @@ type GoogleFirestoreAdminV1ExportDocumentsRequest struct { // collections. CollectionIds []string `json:"collectionIds,omitempty"` - // NamespaceIds: An empty list represents all namespaces. This is the - // preferred usage for databases that don't use namespaces. An empty - // string element represents the default namespace. This should be used - // if the database has data in non-default namespaces, but doesn't want - // to include them. Each namespace in this list must be unique. - NamespaceIds []string `json:"namespaceIds,omitempty"` - // OutputUriPrefix: The output URI. Currently only supports Google Cloud // Storage URIs of the form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where // `BUCKET_NAME` is the name of the Google Cloud Storage bucket and @@ -1790,13 +1783,6 @@ type GoogleFirestoreAdminV1ImportDocumentsRequest struct { // google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix. InputUriPrefix string `json:"inputUriPrefix,omitempty"` - // NamespaceIds: An empty list represents all namespaces. This is the - // preferred usage for databases that don't use namespaces. An empty - // string element represents the default namespace. This should be used - // if the database has data in non-default namespaces, but doesn't want - // to include them. Each namespace in this list must be unique. - NamespaceIds []string `json:"namespaceIds,omitempty"` - // ForceSendFields is a list of field names (e.g. "CollectionIds") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -2586,7 +2572,8 @@ type ListDocumentsResponse struct { // Documents: The Documents found. Documents []*Document `json:"documents,omitempty"` - // NextPageToken: The next page token. + // NextPageToken: A token to retrieve the next page of documents. If + // this field is omitted, there are no subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -4123,6 +4110,180 @@ func (c *ProjectsDatabasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleL } +// method id "firestore.projects.databases.delete": + +type ProjectsDatabasesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a database. +// +// - name: A name of the form +// `projects/{project_id}/databases/{database_id}`. +func (r *ProjectsDatabasesService) Delete(name string) *ProjectsDatabasesDeleteCall { + c := &ProjectsDatabasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// AllowMissing sets the optional parameter "allowMissing": If set to +// true and the Database is not found, the request will succeed but no +// action will be taken. +func (c *ProjectsDatabasesDeleteCall) AllowMissing(allowMissing bool) *ProjectsDatabasesDeleteCall { + c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) + return c +} + +// Etag sets the optional parameter "etag": The current etag of the +// Database. If an etag is provided and does not match the current etag +// of the database, deletion will be blocked and a FAILED_PRECONDITION +// error will be returned. +func (c *ProjectsDatabasesDeleteCall) Etag(etag string) *ProjectsDatabasesDeleteCall { + c.urlParams_.Set("etag", etag) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": If set, +// validate the request and preview the response, but do not actually +// delete the database. +func (c *ProjectsDatabasesDeleteCall) ValidateOnly(validateOnly bool) *ProjectsDatabasesDeleteCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatabasesDeleteCall) Fields(s ...googleapi.Field) *ProjectsDatabasesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatabasesDeleteCall) Context(ctx context.Context) *ProjectsDatabasesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatabasesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatabasesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firestore.projects.databases.delete" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsDatabasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a database.", + // "flatPath": "v1/projects/{projectsId}/databases/{databasesId}", + // "httpMethod": "DELETE", + // "id": "firestore.projects.databases.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "allowMissing": { + // "description": "If set to true and the Database is not found, the request will succeed but no action will be taken.", + // "location": "query", + // "type": "boolean" + // }, + // "etag": { + // "description": "The current etag of the Database. If an etag is provided and does not match the current etag of the database, deletion will be blocked and a FAILED_PRECONDITION error will be returned.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "Required. A name of the form `projects/{project_id}/databases/{database_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/databases/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "validateOnly": { + // "description": "If set, validate the request and preview the response, but do not actually delete the database.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/datastore" + // ] + // } + +} + // method id "firestore.projects.databases.exportDocuments": type ProjectsDatabasesExportDocumentsCall struct { @@ -7210,8 +7371,10 @@ type ProjectsDatabasesDocumentsListCall struct { // List: Lists documents. // -// - collectionId: The collection ID, relative to `parent`, to list. For -// example: `chatrooms` or `messages`. +// - collectionId: Optional. The collection ID, relative to `parent`, to +// list. For example: `chatrooms` or `messages`. This is optional, and +// when not provided, Firestore will list documents from all +// collections under the provided `parent`. // - parent: The parent resource name. In the format: // `projects/{project_id}/databases/{database_id}/documents` or // `projects/{project_id}/databases/{database_id}/documents/{document_p @@ -7234,48 +7397,54 @@ func (c *ProjectsDatabasesDocumentsListCall) MaskFieldPaths(maskFieldPaths ...st return c } -// OrderBy sets the optional parameter "orderBy": The order to sort -// results by. For example: `priority desc, name`. +// OrderBy sets the optional parameter "orderBy": The optional ordering +// of the documents to return. For example: `priority desc, __name__ +// desc`. This mirrors the `ORDER BY` used in Firestore queries but in a +// string representation. When absent, documents are ordered based on +// `__name__ ASC`. func (c *ProjectsDatabasesDocumentsListCall) OrderBy(orderBy string) *ProjectsDatabasesDocumentsListCall { c.urlParams_.Set("orderBy", orderBy) return c } // PageSize sets the optional parameter "pageSize": The maximum number -// of documents to return. +// of documents to return in a single response. Firestore may return +// fewer than this value. func (c *ProjectsDatabasesDocumentsListCall) PageSize(pageSize int64) *ProjectsDatabasesDocumentsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The -// `next_page_token` value returned from a previous List request, if -// any. +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListDocuments` response. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// (with the exception of `page_size`) must match the values set in the +// request that generated the page token. func (c *ProjectsDatabasesDocumentsListCall) PageToken(pageToken string) *ProjectsDatabasesDocumentsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadTime sets the optional parameter "readTime": Reads documents as -// they were at the given time. This may not be older than 270 seconds. +// ReadTime sets the optional parameter "readTime": Perform the read at +// the provided time. This may not be older than 270 seconds. func (c *ProjectsDatabasesDocumentsListCall) ReadTime(readTime string) *ProjectsDatabasesDocumentsListCall { c.urlParams_.Set("readTime", readTime) return c } // ShowMissing sets the optional parameter "showMissing": If the list -// should show missing documents. A missing document is a document that -// does not exist but has sub-documents. These documents will be -// returned with a key but will not have fields, Document.create_time, -// or Document.update_time set. Requests with `show_missing` may not -// specify `where` or `order_by`. +// should show missing documents. A document is missing if it does not +// exist, but there are sub-documents nested underneath it. When true, +// such missing documents will be returned with a key but will not have +// fields, `create_time`, or `update_time` set. Requests with +// `show_missing` may not specify `where` or `order_by`. func (c *ProjectsDatabasesDocumentsListCall) ShowMissing(showMissing bool) *ProjectsDatabasesDocumentsListCall { c.urlParams_.Set("showMissing", fmt.Sprint(showMissing)) return c } -// Transaction sets the optional parameter "transaction": Reads -// documents in a transaction. +// Transaction sets the optional parameter "transaction": Perform the +// read as part of an already active transaction. func (c *ProjectsDatabasesDocumentsListCall) Transaction(transaction string) *ProjectsDatabasesDocumentsListCall { c.urlParams_.Set("transaction", transaction) return c @@ -7391,7 +7560,7 @@ func (c *ProjectsDatabasesDocumentsListCall) Do(opts ...googleapi.CallOption) (* // ], // "parameters": { // "collectionId": { - // "description": "Required. The collection ID, relative to `parent`, to list. For example: `chatrooms` or `messages`.", + // "description": "Optional. The collection ID, relative to `parent`, to list. For example: `chatrooms` or `messages`. This is optional, and when not provided, Firestore will list documents from all collections under the provided `parent`.", // "location": "path", // "required": true, // "type": "string" @@ -7403,18 +7572,18 @@ func (c *ProjectsDatabasesDocumentsListCall) Do(opts ...googleapi.CallOption) (* // "type": "string" // }, // "orderBy": { - // "description": "The order to sort results by. For example: `priority desc, name`.", + // "description": "Optional. The optional ordering of the documents to return. For example: `priority desc, __name__ desc`. This mirrors the `ORDER BY` used in Firestore queries but in a string representation. When absent, documents are ordered based on `__name__ ASC`.", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of documents to return.", + // "description": "Optional. The maximum number of documents to return in a single response. Firestore may return fewer than this value.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The `next_page_token` value returned from a previous List request, if any.", + // "description": "Optional. A page token, received from a previous `ListDocuments` response. Provide this to retrieve the subsequent page. When paginating, all other parameters (with the exception of `page_size`) must match the values set in the request that generated the page token.", // "location": "query", // "type": "string" // }, @@ -7426,18 +7595,18 @@ func (c *ProjectsDatabasesDocumentsListCall) Do(opts ...googleapi.CallOption) (* // "type": "string" // }, // "readTime": { - // "description": "Reads documents as they were at the given time. This may not be older than 270 seconds.", + // "description": "Perform the read at the provided time. This may not be older than 270 seconds.", // "format": "google-datetime", // "location": "query", // "type": "string" // }, // "showMissing": { - // "description": "If the list should show missing documents. A missing document is a document that does not exist but has sub-documents. These documents will be returned with a key but will not have fields, Document.create_time, or Document.update_time set. Requests with `show_missing` may not specify `where` or `order_by`.", + // "description": "If the list should show missing documents. A document is missing if it does not exist, but there are sub-documents nested underneath it. When true, such missing documents will be returned with a key but will not have fields, `create_time`, or `update_time` set. Requests with `show_missing` may not specify `where` or `order_by`.", // "location": "query", // "type": "boolean" // }, // "transaction": { - // "description": "Reads documents in a transaction.", + // "description": "Perform the read as part of an already active transaction.", // "format": "byte", // "location": "query", // "type": "string" @@ -7659,8 +7828,10 @@ type ProjectsDatabasesDocumentsListDocumentsCall struct { // ListDocuments: Lists documents. // -// - collectionId: The collection ID, relative to `parent`, to list. For -// example: `chatrooms` or `messages`. +// - collectionId: Optional. The collection ID, relative to `parent`, to +// list. For example: `chatrooms` or `messages`. This is optional, and +// when not provided, Firestore will list documents from all +// collections under the provided `parent`. // - parent: The parent resource name. In the format: // `projects/{project_id}/databases/{database_id}/documents` or // `projects/{project_id}/databases/{database_id}/documents/{document_p @@ -7683,48 +7854,54 @@ func (c *ProjectsDatabasesDocumentsListDocumentsCall) MaskFieldPaths(maskFieldPa return c } -// OrderBy sets the optional parameter "orderBy": The order to sort -// results by. For example: `priority desc, name`. +// OrderBy sets the optional parameter "orderBy": The optional ordering +// of the documents to return. For example: `priority desc, __name__ +// desc`. This mirrors the `ORDER BY` used in Firestore queries but in a +// string representation. When absent, documents are ordered based on +// `__name__ ASC`. func (c *ProjectsDatabasesDocumentsListDocumentsCall) OrderBy(orderBy string) *ProjectsDatabasesDocumentsListDocumentsCall { c.urlParams_.Set("orderBy", orderBy) return c } // PageSize sets the optional parameter "pageSize": The maximum number -// of documents to return. +// of documents to return in a single response. Firestore may return +// fewer than this value. func (c *ProjectsDatabasesDocumentsListDocumentsCall) PageSize(pageSize int64) *ProjectsDatabasesDocumentsListDocumentsCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The -// `next_page_token` value returned from a previous List request, if -// any. +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListDocuments` response. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// (with the exception of `page_size`) must match the values set in the +// request that generated the page token. func (c *ProjectsDatabasesDocumentsListDocumentsCall) PageToken(pageToken string) *ProjectsDatabasesDocumentsListDocumentsCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadTime sets the optional parameter "readTime": Reads documents as -// they were at the given time. This may not be older than 270 seconds. +// ReadTime sets the optional parameter "readTime": Perform the read at +// the provided time. This may not be older than 270 seconds. func (c *ProjectsDatabasesDocumentsListDocumentsCall) ReadTime(readTime string) *ProjectsDatabasesDocumentsListDocumentsCall { c.urlParams_.Set("readTime", readTime) return c } // ShowMissing sets the optional parameter "showMissing": If the list -// should show missing documents. A missing document is a document that -// does not exist but has sub-documents. These documents will be -// returned with a key but will not have fields, Document.create_time, -// or Document.update_time set. Requests with `show_missing` may not -// specify `where` or `order_by`. +// should show missing documents. A document is missing if it does not +// exist, but there are sub-documents nested underneath it. When true, +// such missing documents will be returned with a key but will not have +// fields, `create_time`, or `update_time` set. Requests with +// `show_missing` may not specify `where` or `order_by`. func (c *ProjectsDatabasesDocumentsListDocumentsCall) ShowMissing(showMissing bool) *ProjectsDatabasesDocumentsListDocumentsCall { c.urlParams_.Set("showMissing", fmt.Sprint(showMissing)) return c } -// Transaction sets the optional parameter "transaction": Reads -// documents in a transaction. +// Transaction sets the optional parameter "transaction": Perform the +// read as part of an already active transaction. func (c *ProjectsDatabasesDocumentsListDocumentsCall) Transaction(transaction string) *ProjectsDatabasesDocumentsListDocumentsCall { c.urlParams_.Set("transaction", transaction) return c @@ -7840,7 +8017,7 @@ func (c *ProjectsDatabasesDocumentsListDocumentsCall) Do(opts ...googleapi.CallO // ], // "parameters": { // "collectionId": { - // "description": "Required. The collection ID, relative to `parent`, to list. For example: `chatrooms` or `messages`.", + // "description": "Optional. The collection ID, relative to `parent`, to list. For example: `chatrooms` or `messages`. This is optional, and when not provided, Firestore will list documents from all collections under the provided `parent`.", // "location": "path", // "required": true, // "type": "string" @@ -7852,18 +8029,18 @@ func (c *ProjectsDatabasesDocumentsListDocumentsCall) Do(opts ...googleapi.CallO // "type": "string" // }, // "orderBy": { - // "description": "The order to sort results by. For example: `priority desc, name`.", + // "description": "Optional. The optional ordering of the documents to return. For example: `priority desc, __name__ desc`. This mirrors the `ORDER BY` used in Firestore queries but in a string representation. When absent, documents are ordered based on `__name__ ASC`.", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of documents to return.", + // "description": "Optional. The maximum number of documents to return in a single response. Firestore may return fewer than this value.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The `next_page_token` value returned from a previous List request, if any.", + // "description": "Optional. A page token, received from a previous `ListDocuments` response. Provide this to retrieve the subsequent page. When paginating, all other parameters (with the exception of `page_size`) must match the values set in the request that generated the page token.", // "location": "query", // "type": "string" // }, @@ -7875,18 +8052,18 @@ func (c *ProjectsDatabasesDocumentsListDocumentsCall) Do(opts ...googleapi.CallO // "type": "string" // }, // "readTime": { - // "description": "Reads documents as they were at the given time. This may not be older than 270 seconds.", + // "description": "Perform the read at the provided time. This may not be older than 270 seconds.", // "format": "google-datetime", // "location": "query", // "type": "string" // }, // "showMissing": { - // "description": "If the list should show missing documents. A missing document is a document that does not exist but has sub-documents. These documents will be returned with a key but will not have fields, Document.create_time, or Document.update_time set. Requests with `show_missing` may not specify `where` or `order_by`.", + // "description": "If the list should show missing documents. A document is missing if it does not exist, but there are sub-documents nested underneath it. When true, such missing documents will be returned with a key but will not have fields, `create_time`, or `update_time` set. Requests with `show_missing` may not specify `where` or `order_by`.", // "location": "query", // "type": "boolean" // }, // "transaction": { - // "description": "Reads documents in a transaction.", + // "description": "Perform the read as part of an already active transaction.", // "format": "byte", // "location": "query", // "type": "string" diff --git a/firestore/v1beta1/firestore-api.json b/firestore/v1beta1/firestore-api.json index e190623e967..d1220c10626 100644 --- a/firestore/v1beta1/firestore-api.json +++ b/firestore/v1beta1/firestore-api.json @@ -429,7 +429,7 @@ ], "parameters": { "collectionId": { - "description": "Required. The collection ID, relative to `parent`, to list. For example: `chatrooms` or `messages`.", + "description": "Optional. The collection ID, relative to `parent`, to list. For example: `chatrooms` or `messages`. This is optional, and when not provided, Firestore will list documents from all collections under the provided `parent`.", "location": "path", "required": true, "type": "string" @@ -441,18 +441,18 @@ "type": "string" }, "orderBy": { - "description": "The order to sort results by. For example: `priority desc, name`.", + "description": "Optional. The optional ordering of the documents to return. For example: `priority desc, __name__ desc`. This mirrors the `ORDER BY` used in Firestore queries but in a string representation. When absent, documents are ordered based on `__name__ ASC`.", "location": "query", "type": "string" }, "pageSize": { - "description": "The maximum number of documents to return.", + "description": "Optional. The maximum number of documents to return in a single response. Firestore may return fewer than this value.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "The `next_page_token` value returned from a previous List request, if any.", + "description": "Optional. A page token, received from a previous `ListDocuments` response. Provide this to retrieve the subsequent page. When paginating, all other parameters (with the exception of `page_size`) must match the values set in the request that generated the page token.", "location": "query", "type": "string" }, @@ -464,18 +464,18 @@ "type": "string" }, "readTime": { - "description": "Reads documents as they were at the given time. This may not be older than 270 seconds.", + "description": "Perform the read at the provided time. This may not be older than 270 seconds.", "format": "google-datetime", "location": "query", "type": "string" }, "showMissing": { - "description": "If the list should show missing documents. A missing document is a document that does not exist but has sub-documents. These documents will be returned with a key but will not have fields, Document.create_time, or Document.update_time set. Requests with `show_missing` may not specify `where` or `order_by`.", + "description": "If the list should show missing documents. A document is missing if it does not exist, but there are sub-documents nested underneath it. When true, such missing documents will be returned with a key but will not have fields, `create_time`, or `update_time` set. Requests with `show_missing` may not specify `where` or `order_by`.", "location": "query", "type": "boolean" }, "transaction": { - "description": "Reads documents in a transaction.", + "description": "Perform the read as part of an already active transaction.", "format": "byte", "location": "query", "type": "string" @@ -530,7 +530,7 @@ ], "parameters": { "collectionId": { - "description": "Required. The collection ID, relative to `parent`, to list. For example: `chatrooms` or `messages`.", + "description": "Optional. The collection ID, relative to `parent`, to list. For example: `chatrooms` or `messages`. This is optional, and when not provided, Firestore will list documents from all collections under the provided `parent`.", "location": "path", "required": true, "type": "string" @@ -542,18 +542,18 @@ "type": "string" }, "orderBy": { - "description": "The order to sort results by. For example: `priority desc, name`.", + "description": "Optional. The optional ordering of the documents to return. For example: `priority desc, __name__ desc`. This mirrors the `ORDER BY` used in Firestore queries but in a string representation. When absent, documents are ordered based on `__name__ ASC`.", "location": "query", "type": "string" }, "pageSize": { - "description": "The maximum number of documents to return.", + "description": "Optional. The maximum number of documents to return in a single response. Firestore may return fewer than this value.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "The `next_page_token` value returned from a previous List request, if any.", + "description": "Optional. A page token, received from a previous `ListDocuments` response. Provide this to retrieve the subsequent page. When paginating, all other parameters (with the exception of `page_size`) must match the values set in the request that generated the page token.", "location": "query", "type": "string" }, @@ -565,18 +565,18 @@ "type": "string" }, "readTime": { - "description": "Reads documents as they were at the given time. This may not be older than 270 seconds.", + "description": "Perform the read at the provided time. This may not be older than 270 seconds.", "format": "google-datetime", "location": "query", "type": "string" }, "showMissing": { - "description": "If the list should show missing documents. A missing document is a document that does not exist but has sub-documents. These documents will be returned with a key but will not have fields, Document.create_time, or Document.update_time set. Requests with `show_missing` may not specify `where` or `order_by`.", + "description": "If the list should show missing documents. A document is missing if it does not exist, but there are sub-documents nested underneath it. When true, such missing documents will be returned with a key but will not have fields, `create_time`, or `update_time` set. Requests with `show_missing` may not specify `where` or `order_by`.", "location": "query", "type": "boolean" }, "transaction": { - "description": "Reads documents in a transaction.", + "description": "Perform the read as part of an already active transaction.", "format": "byte", "location": "query", "type": "string" @@ -950,7 +950,7 @@ } } }, - "revision": "20220915", + "revision": "20221210", "rootUrl": "https://firestore.googleapis.com/", "schemas": { "Aggregation": { @@ -1940,7 +1940,7 @@ "type": "array" }, "nextPageToken": { - "description": "The next page token.", + "description": "A token to retrieve the next page of documents. If this field is omitted, there are no subsequent pages.", "type": "string" } }, diff --git a/firestore/v1beta1/firestore-gen.go b/firestore/v1beta1/firestore-gen.go index 4747e645623..e92033beff0 100644 --- a/firestore/v1beta1/firestore-gen.go +++ b/firestore/v1beta1/firestore-gen.go @@ -1957,7 +1957,8 @@ type ListDocumentsResponse struct { // Documents: The Documents found. Documents []*Document `json:"documents,omitempty"` - // NextPageToken: The next page token. + // NextPageToken: A token to retrieve the next page of documents. If + // this field is omitted, there are no subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -4682,8 +4683,10 @@ type ProjectsDatabasesDocumentsListCall struct { // List: Lists documents. // -// - collectionId: The collection ID, relative to `parent`, to list. For -// example: `chatrooms` or `messages`. +// - collectionId: Optional. The collection ID, relative to `parent`, to +// list. For example: `chatrooms` or `messages`. This is optional, and +// when not provided, Firestore will list documents from all +// collections under the provided `parent`. // - parent: The parent resource name. In the format: // `projects/{project_id}/databases/{database_id}/documents` or // `projects/{project_id}/databases/{database_id}/documents/{document_p @@ -4706,48 +4709,54 @@ func (c *ProjectsDatabasesDocumentsListCall) MaskFieldPaths(maskFieldPaths ...st return c } -// OrderBy sets the optional parameter "orderBy": The order to sort -// results by. For example: `priority desc, name`. +// OrderBy sets the optional parameter "orderBy": The optional ordering +// of the documents to return. For example: `priority desc, __name__ +// desc`. This mirrors the `ORDER BY` used in Firestore queries but in a +// string representation. When absent, documents are ordered based on +// `__name__ ASC`. func (c *ProjectsDatabasesDocumentsListCall) OrderBy(orderBy string) *ProjectsDatabasesDocumentsListCall { c.urlParams_.Set("orderBy", orderBy) return c } // PageSize sets the optional parameter "pageSize": The maximum number -// of documents to return. +// of documents to return in a single response. Firestore may return +// fewer than this value. func (c *ProjectsDatabasesDocumentsListCall) PageSize(pageSize int64) *ProjectsDatabasesDocumentsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The -// `next_page_token` value returned from a previous List request, if -// any. +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListDocuments` response. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// (with the exception of `page_size`) must match the values set in the +// request that generated the page token. func (c *ProjectsDatabasesDocumentsListCall) PageToken(pageToken string) *ProjectsDatabasesDocumentsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadTime sets the optional parameter "readTime": Reads documents as -// they were at the given time. This may not be older than 270 seconds. +// ReadTime sets the optional parameter "readTime": Perform the read at +// the provided time. This may not be older than 270 seconds. func (c *ProjectsDatabasesDocumentsListCall) ReadTime(readTime string) *ProjectsDatabasesDocumentsListCall { c.urlParams_.Set("readTime", readTime) return c } // ShowMissing sets the optional parameter "showMissing": If the list -// should show missing documents. A missing document is a document that -// does not exist but has sub-documents. These documents will be -// returned with a key but will not have fields, Document.create_time, -// or Document.update_time set. Requests with `show_missing` may not -// specify `where` or `order_by`. +// should show missing documents. A document is missing if it does not +// exist, but there are sub-documents nested underneath it. When true, +// such missing documents will be returned with a key but will not have +// fields, `create_time`, or `update_time` set. Requests with +// `show_missing` may not specify `where` or `order_by`. func (c *ProjectsDatabasesDocumentsListCall) ShowMissing(showMissing bool) *ProjectsDatabasesDocumentsListCall { c.urlParams_.Set("showMissing", fmt.Sprint(showMissing)) return c } -// Transaction sets the optional parameter "transaction": Reads -// documents in a transaction. +// Transaction sets the optional parameter "transaction": Perform the +// read as part of an already active transaction. func (c *ProjectsDatabasesDocumentsListCall) Transaction(transaction string) *ProjectsDatabasesDocumentsListCall { c.urlParams_.Set("transaction", transaction) return c @@ -4863,7 +4872,7 @@ func (c *ProjectsDatabasesDocumentsListCall) Do(opts ...googleapi.CallOption) (* // ], // "parameters": { // "collectionId": { - // "description": "Required. The collection ID, relative to `parent`, to list. For example: `chatrooms` or `messages`.", + // "description": "Optional. The collection ID, relative to `parent`, to list. For example: `chatrooms` or `messages`. This is optional, and when not provided, Firestore will list documents from all collections under the provided `parent`.", // "location": "path", // "required": true, // "type": "string" @@ -4875,18 +4884,18 @@ func (c *ProjectsDatabasesDocumentsListCall) Do(opts ...googleapi.CallOption) (* // "type": "string" // }, // "orderBy": { - // "description": "The order to sort results by. For example: `priority desc, name`.", + // "description": "Optional. The optional ordering of the documents to return. For example: `priority desc, __name__ desc`. This mirrors the `ORDER BY` used in Firestore queries but in a string representation. When absent, documents are ordered based on `__name__ ASC`.", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of documents to return.", + // "description": "Optional. The maximum number of documents to return in a single response. Firestore may return fewer than this value.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The `next_page_token` value returned from a previous List request, if any.", + // "description": "Optional. A page token, received from a previous `ListDocuments` response. Provide this to retrieve the subsequent page. When paginating, all other parameters (with the exception of `page_size`) must match the values set in the request that generated the page token.", // "location": "query", // "type": "string" // }, @@ -4898,18 +4907,18 @@ func (c *ProjectsDatabasesDocumentsListCall) Do(opts ...googleapi.CallOption) (* // "type": "string" // }, // "readTime": { - // "description": "Reads documents as they were at the given time. This may not be older than 270 seconds.", + // "description": "Perform the read at the provided time. This may not be older than 270 seconds.", // "format": "google-datetime", // "location": "query", // "type": "string" // }, // "showMissing": { - // "description": "If the list should show missing documents. A missing document is a document that does not exist but has sub-documents. These documents will be returned with a key but will not have fields, Document.create_time, or Document.update_time set. Requests with `show_missing` may not specify `where` or `order_by`.", + // "description": "If the list should show missing documents. A document is missing if it does not exist, but there are sub-documents nested underneath it. When true, such missing documents will be returned with a key but will not have fields, `create_time`, or `update_time` set. Requests with `show_missing` may not specify `where` or `order_by`.", // "location": "query", // "type": "boolean" // }, // "transaction": { - // "description": "Reads documents in a transaction.", + // "description": "Perform the read as part of an already active transaction.", // "format": "byte", // "location": "query", // "type": "string" @@ -5131,8 +5140,10 @@ type ProjectsDatabasesDocumentsListDocumentsCall struct { // ListDocuments: Lists documents. // -// - collectionId: The collection ID, relative to `parent`, to list. For -// example: `chatrooms` or `messages`. +// - collectionId: Optional. The collection ID, relative to `parent`, to +// list. For example: `chatrooms` or `messages`. This is optional, and +// when not provided, Firestore will list documents from all +// collections under the provided `parent`. // - parent: The parent resource name. In the format: // `projects/{project_id}/databases/{database_id}/documents` or // `projects/{project_id}/databases/{database_id}/documents/{document_p @@ -5155,48 +5166,54 @@ func (c *ProjectsDatabasesDocumentsListDocumentsCall) MaskFieldPaths(maskFieldPa return c } -// OrderBy sets the optional parameter "orderBy": The order to sort -// results by. For example: `priority desc, name`. +// OrderBy sets the optional parameter "orderBy": The optional ordering +// of the documents to return. For example: `priority desc, __name__ +// desc`. This mirrors the `ORDER BY` used in Firestore queries but in a +// string representation. When absent, documents are ordered based on +// `__name__ ASC`. func (c *ProjectsDatabasesDocumentsListDocumentsCall) OrderBy(orderBy string) *ProjectsDatabasesDocumentsListDocumentsCall { c.urlParams_.Set("orderBy", orderBy) return c } // PageSize sets the optional parameter "pageSize": The maximum number -// of documents to return. +// of documents to return in a single response. Firestore may return +// fewer than this value. func (c *ProjectsDatabasesDocumentsListDocumentsCall) PageSize(pageSize int64) *ProjectsDatabasesDocumentsListDocumentsCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The -// `next_page_token` value returned from a previous List request, if -// any. +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListDocuments` response. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// (with the exception of `page_size`) must match the values set in the +// request that generated the page token. func (c *ProjectsDatabasesDocumentsListDocumentsCall) PageToken(pageToken string) *ProjectsDatabasesDocumentsListDocumentsCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadTime sets the optional parameter "readTime": Reads documents as -// they were at the given time. This may not be older than 270 seconds. +// ReadTime sets the optional parameter "readTime": Perform the read at +// the provided time. This may not be older than 270 seconds. func (c *ProjectsDatabasesDocumentsListDocumentsCall) ReadTime(readTime string) *ProjectsDatabasesDocumentsListDocumentsCall { c.urlParams_.Set("readTime", readTime) return c } // ShowMissing sets the optional parameter "showMissing": If the list -// should show missing documents. A missing document is a document that -// does not exist but has sub-documents. These documents will be -// returned with a key but will not have fields, Document.create_time, -// or Document.update_time set. Requests with `show_missing` may not -// specify `where` or `order_by`. +// should show missing documents. A document is missing if it does not +// exist, but there are sub-documents nested underneath it. When true, +// such missing documents will be returned with a key but will not have +// fields, `create_time`, or `update_time` set. Requests with +// `show_missing` may not specify `where` or `order_by`. func (c *ProjectsDatabasesDocumentsListDocumentsCall) ShowMissing(showMissing bool) *ProjectsDatabasesDocumentsListDocumentsCall { c.urlParams_.Set("showMissing", fmt.Sprint(showMissing)) return c } -// Transaction sets the optional parameter "transaction": Reads -// documents in a transaction. +// Transaction sets the optional parameter "transaction": Perform the +// read as part of an already active transaction. func (c *ProjectsDatabasesDocumentsListDocumentsCall) Transaction(transaction string) *ProjectsDatabasesDocumentsListDocumentsCall { c.urlParams_.Set("transaction", transaction) return c @@ -5312,7 +5329,7 @@ func (c *ProjectsDatabasesDocumentsListDocumentsCall) Do(opts ...googleapi.CallO // ], // "parameters": { // "collectionId": { - // "description": "Required. The collection ID, relative to `parent`, to list. For example: `chatrooms` or `messages`.", + // "description": "Optional. The collection ID, relative to `parent`, to list. For example: `chatrooms` or `messages`. This is optional, and when not provided, Firestore will list documents from all collections under the provided `parent`.", // "location": "path", // "required": true, // "type": "string" @@ -5324,18 +5341,18 @@ func (c *ProjectsDatabasesDocumentsListDocumentsCall) Do(opts ...googleapi.CallO // "type": "string" // }, // "orderBy": { - // "description": "The order to sort results by. For example: `priority desc, name`.", + // "description": "Optional. The optional ordering of the documents to return. For example: `priority desc, __name__ desc`. This mirrors the `ORDER BY` used in Firestore queries but in a string representation. When absent, documents are ordered based on `__name__ ASC`.", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of documents to return.", + // "description": "Optional. The maximum number of documents to return in a single response. Firestore may return fewer than this value.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The `next_page_token` value returned from a previous List request, if any.", + // "description": "Optional. A page token, received from a previous `ListDocuments` response. Provide this to retrieve the subsequent page. When paginating, all other parameters (with the exception of `page_size`) must match the values set in the request that generated the page token.", // "location": "query", // "type": "string" // }, @@ -5347,18 +5364,18 @@ func (c *ProjectsDatabasesDocumentsListDocumentsCall) Do(opts ...googleapi.CallO // "type": "string" // }, // "readTime": { - // "description": "Reads documents as they were at the given time. This may not be older than 270 seconds.", + // "description": "Perform the read at the provided time. This may not be older than 270 seconds.", // "format": "google-datetime", // "location": "query", // "type": "string" // }, // "showMissing": { - // "description": "If the list should show missing documents. A missing document is a document that does not exist but has sub-documents. These documents will be returned with a key but will not have fields, Document.create_time, or Document.update_time set. Requests with `show_missing` may not specify `where` or `order_by`.", + // "description": "If the list should show missing documents. A document is missing if it does not exist, but there are sub-documents nested underneath it. When true, such missing documents will be returned with a key but will not have fields, `create_time`, or `update_time` set. Requests with `show_missing` may not specify `where` or `order_by`.", // "location": "query", // "type": "boolean" // }, // "transaction": { - // "description": "Reads documents in a transaction.", + // "description": "Perform the read as part of an already active transaction.", // "format": "byte", // "location": "query", // "type": "string" diff --git a/gkehub/v1/gkehub-api.json b/gkehub/v1/gkehub-api.json index 1eec1783c8a..ebd89d73948 100644 --- a/gkehub/v1/gkehub-api.json +++ b/gkehub/v1/gkehub-api.json @@ -905,7 +905,7 @@ } } }, - "revision": "20221031", + "revision": "20221207", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceFeatureSpec": { @@ -1082,7 +1082,7 @@ "id": "ConfigManagementConfigSync", "properties": { "allowVerticalScale": { - "description": "Set to true to allow the vertical scaling. Defaults to false which disallows vertical scaling.", + "description": "Set to true to allow the vertical scaling. Defaults to false which disallows vertical scaling. This field is deprecated.", "type": "boolean" }, "enabled": { @@ -2561,6 +2561,10 @@ "$ref": "ConfigManagementMembershipSpec", "description": "Config Management-specific spec." }, + "fleetInherited": { + "description": "True if value of `feature_spec` was inherited from a fleet-level default.", + "type": "boolean" + }, "fleetobservability": { "$ref": "FleetObservabilityMembershipSpec", "description": "Fleet observability membership spec" diff --git a/gkehub/v1/gkehub-gen.go b/gkehub/v1/gkehub-gen.go index c4db34c2a3a..a2fd4609998 100644 --- a/gkehub/v1/gkehub-gen.go +++ b/gkehub/v1/gkehub-gen.go @@ -574,7 +574,8 @@ func (s *CommonFeatureState) MarshalJSON() ([]byte, error) { // ConfigManagementConfigSync: Configuration for Config Sync type ConfigManagementConfigSync struct { // AllowVerticalScale: Set to true to allow the vertical scaling. - // Defaults to false which disallows vertical scaling. + // Defaults to false which disallows vertical scaling. This field is + // deprecated. AllowVerticalScale bool `json:"allowVerticalScale,omitempty"` // Enabled: Enables the installation of ConfigSync. If set to true, @@ -2824,6 +2825,10 @@ type MembershipFeatureSpec struct { // Configmanagement: Config Management-specific spec. Configmanagement *ConfigManagementMembershipSpec `json:"configmanagement,omitempty"` + // FleetInherited: True if value of `feature_spec` was inherited from a + // fleet-level default. + FleetInherited bool `json:"fleetInherited,omitempty"` + // Fleetobservability: Fleet observability membership spec Fleetobservability *FleetObservabilityMembershipSpec `json:"fleetobservability,omitempty"` diff --git a/gkehub/v1alpha/gkehub-api.json b/gkehub/v1alpha/gkehub-api.json index 02c99b843f4..c640b145b68 100644 --- a/gkehub/v1alpha/gkehub-api.json +++ b/gkehub/v1alpha/gkehub-api.json @@ -1179,7 +1179,7 @@ } } }, - "revision": "20221031", + "revision": "20221207", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -1490,7 +1490,7 @@ "id": "ConfigManagementConfigSync", "properties": { "allowVerticalScale": { - "description": "Set to true to allow the vertical scaling. Defaults to false which disallows vertical scaling.", + "description": "Set to true to allow the vertical scaling. Defaults to false which disallows vertical scaling. This field is deprecated.", "type": "boolean" }, "enabled": { @@ -3123,6 +3123,10 @@ "$ref": "ConfigManagementMembershipSpec", "description": "Config Management-specific spec." }, + "fleetInherited": { + "description": "True if value of `feature_spec` was inherited from a fleet-level default.", + "type": "boolean" + }, "fleetobservability": { "$ref": "FleetObservabilityMembershipSpec", "description": "Fleet observability membership spec" diff --git a/gkehub/v1alpha/gkehub-gen.go b/gkehub/v1alpha/gkehub-gen.go index 51364ca2ad6..7ec3741ba4a 100644 --- a/gkehub/v1alpha/gkehub-gen.go +++ b/gkehub/v1alpha/gkehub-gen.go @@ -875,7 +875,8 @@ func (s *ConfigManagementBinauthzVersion) MarshalJSON() ([]byte, error) { // ConfigManagementConfigSync: Configuration for Config Sync type ConfigManagementConfigSync struct { // AllowVerticalScale: Set to true to allow the vertical scaling. - // Defaults to false which disallows vertical scaling. + // Defaults to false which disallows vertical scaling. This field is + // deprecated. AllowVerticalScale bool `json:"allowVerticalScale,omitempty"` // Enabled: Enables the installation of ConfigSync. If set to true, @@ -3355,6 +3356,10 @@ type MembershipFeatureSpec struct { // Configmanagement: Config Management-specific spec. Configmanagement *ConfigManagementMembershipSpec `json:"configmanagement,omitempty"` + // FleetInherited: True if value of `feature_spec` was inherited from a + // fleet-level default. + FleetInherited bool `json:"fleetInherited,omitempty"` + // Fleetobservability: Fleet observability membership spec Fleetobservability *FleetObservabilityMembershipSpec `json:"fleetobservability,omitempty"` diff --git a/gkehub/v1beta/gkehub-api.json b/gkehub/v1beta/gkehub-api.json index 7d05bc39e30..d44d32728ca 100644 --- a/gkehub/v1beta/gkehub-api.json +++ b/gkehub/v1beta/gkehub-api.json @@ -670,7 +670,7 @@ } } }, - "revision": "20221031", + "revision": "20221207", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -893,7 +893,7 @@ "id": "ConfigManagementConfigSync", "properties": { "allowVerticalScale": { - "description": "Set to true to allow the vertical scaling. Defaults to false which disallows vertical scaling.", + "description": "Set to true to allow the vertical scaling. Defaults to false which disallows vertical scaling. This field is deprecated.", "type": "boolean" }, "enabled": { @@ -2129,6 +2129,10 @@ "$ref": "ConfigManagementMembershipSpec", "description": "Config Management-specific spec." }, + "fleetInherited": { + "description": "True if value of `feature_spec` was inherited from a fleet-level default.", + "type": "boolean" + }, "fleetobservability": { "$ref": "FleetObservabilityMembershipSpec", "description": "Fleet observability membership spec" diff --git a/gkehub/v1beta/gkehub-gen.go b/gkehub/v1beta/gkehub-gen.go index dbb4888ef24..ee68be848be 100644 --- a/gkehub/v1beta/gkehub-gen.go +++ b/gkehub/v1beta/gkehub-gen.go @@ -653,7 +653,8 @@ func (s *ConfigManagementBinauthzVersion) MarshalJSON() ([]byte, error) { // ConfigManagementConfigSync: Configuration for Config Sync type ConfigManagementConfigSync struct { // AllowVerticalScale: Set to true to allow the vertical scaling. - // Defaults to false which disallows vertical scaling. + // Defaults to false which disallows vertical scaling. This field is + // deprecated. AllowVerticalScale bool `json:"allowVerticalScale,omitempty"` // Enabled: Enables the installation of ConfigSync. If set to true, @@ -2474,6 +2475,10 @@ type MembershipFeatureSpec struct { // Configmanagement: Config Management-specific spec. Configmanagement *ConfigManagementMembershipSpec `json:"configmanagement,omitempty"` + // FleetInherited: True if value of `feature_spec` was inherited from a + // fleet-level default. + FleetInherited bool `json:"fleetInherited,omitempty"` + // Fleetobservability: Fleet observability membership spec Fleetobservability *FleetObservabilityMembershipSpec `json:"fleetobservability,omitempty"` diff --git a/gmail/v1/gmail-api.json b/gmail/v1/gmail-api.json index ce704e4916b..50fae143316 100644 --- a/gmail/v1/gmail-api.json +++ b/gmail/v1/gmail-api.json @@ -1633,6 +1633,401 @@ } }, "resources": { + "cse": { + "resources": { + "identities": { + "methods": { + "create": { + "description": "Creates and configures a client-side encryption identity that's authorized to send mail from the user account. Google publishes the S/MIME certificate to a shared domain-wide directory so that people within a Google Workspace organization can encrypt and send mail to the identity. [Beta](https://workspace.google.com/terms/service-terms/index.html).", + "flatPath": "gmail/v1/users/{userId}/settings/cse/identities", + "httpMethod": "POST", + "id": "gmail.users.settings.cse.identities.create", + "parameterOrder": [ + "userId" + ], + "parameters": { + "userId": { + "default": "me", + "description": "The requester's primary email address. To indicate the authenticated user, you can use the special value `me`.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "gmail/v1/users/{userId}/settings/cse/identities", + "request": { + "$ref": "CseIdentity" + }, + "response": { + "$ref": "CseIdentity" + }, + "scopes": [ + "https://www.googleapis.com/auth/gmail.settings.basic", + "https://www.googleapis.com/auth/gmail.settings.sharing" + ] + }, + "delete": { + "description": "Deletes a client-side encryption identity. The authenticated user can no longer use the identity to send encrypted messages. You cannot restore the identity after you delete it. Instead, use the CreateCseIdentity method to create another identity with the same configuration. [Beta](https://workspace.google.com/terms/service-terms/index.html).", + "flatPath": "gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}", + "httpMethod": "DELETE", + "id": "gmail.users.settings.cse.identities.delete", + "parameterOrder": [ + "userId", + "cseEmailAddress" + ], + "parameters": { + "cseEmailAddress": { + "description": "The primary email address associated with the client-side encryption identity configuration that's removed.", + "location": "path", + "required": true, + "type": "string" + }, + "userId": { + "default": "me", + "description": "The requester's primary email address. To indicate the authenticated user, you can use the special value `me`.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}", + "scopes": [ + "https://www.googleapis.com/auth/gmail.settings.basic", + "https://www.googleapis.com/auth/gmail.settings.sharing" + ] + }, + "get": { + "description": "Retrieves a client-side encryption identity configuration. [Beta](https://workspace.google.com/terms/service-terms/index.html).", + "flatPath": "gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}", + "httpMethod": "GET", + "id": "gmail.users.settings.cse.identities.get", + "parameterOrder": [ + "userId", + "cseEmailAddress" + ], + "parameters": { + "cseEmailAddress": { + "description": "The primary email address associated with the client-side encryption identity configuration that's retrieved.", + "location": "path", + "required": true, + "type": "string" + }, + "userId": { + "default": "me", + "description": "The requester's primary email address. To indicate the authenticated user, you can use the special value `me`.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}", + "response": { + "$ref": "CseIdentity" + }, + "scopes": [ + "https://mail.google.com/", + "https://www.googleapis.com/auth/gmail.modify", + "https://www.googleapis.com/auth/gmail.readonly", + "https://www.googleapis.com/auth/gmail.settings.basic", + "https://www.googleapis.com/auth/gmail.settings.sharing" + ] + }, + "list": { + "description": "Lists the client-side encrypted identities for an authenticated user. [Beta](https://workspace.google.com/terms/service-terms/index.html).", + "flatPath": "gmail/v1/users/{userId}/settings/cse/identities", + "httpMethod": "GET", + "id": "gmail.users.settings.cse.identities.list", + "parameterOrder": [ + "userId" + ], + "parameters": { + "pageSize": { + "default": "20", + "description": "The number of identities to return. If not provided, the page size will default to 20 entries.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Pagination token indicating which page of identities to return. If the token is not supplied, then the API will return the first page of results.", + "location": "query", + "type": "string" + }, + "userId": { + "default": "me", + "description": "The requester's primary email address. To indicate the authenticated user, you can use the special value `me`.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "gmail/v1/users/{userId}/settings/cse/identities", + "response": { + "$ref": "ListCseIdentitiesResponse" + }, + "scopes": [ + "https://mail.google.com/", + "https://www.googleapis.com/auth/gmail.modify", + "https://www.googleapis.com/auth/gmail.readonly", + "https://www.googleapis.com/auth/gmail.settings.basic", + "https://www.googleapis.com/auth/gmail.settings.sharing" + ] + }, + "patch": { + "description": "Associates a different key pair with an existing client-side encryption identity. The updated key pair must validate against Google's [S/MIME certificate profiles](https://support.google.com/a/answer/7300887). [Beta](https://workspace.google.com/terms/service-terms/index.html).", + "flatPath": "gmail/v1/users/{userId}/settings/cse/identities/{emailAddress}", + "httpMethod": "PATCH", + "id": "gmail.users.settings.cse.identities.patch", + "parameterOrder": [ + "userId", + "emailAddress" + ], + "parameters": { + "emailAddress": { + "description": "The email address of the client-side encryption identity to update.", + "location": "path", + "required": true, + "type": "string" + }, + "userId": { + "default": "me", + "description": "The requester's primary email address. To indicate the authenticated user, you can use the special value `me`.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "gmail/v1/users/{userId}/settings/cse/identities/{emailAddress}", + "request": { + "$ref": "CseIdentity" + }, + "response": { + "$ref": "CseIdentity" + }, + "scopes": [ + "https://www.googleapis.com/auth/gmail.settings.basic", + "https://www.googleapis.com/auth/gmail.settings.sharing" + ] + } + } + }, + "keypairs": { + "methods": { + "create": { + "description": "Creates and uploads a client-side encryption S/MIME public key certificate chain and private key metadata for the authenticated user. [Beta](https://workspace.google.com/terms/service-terms/index.html).", + "flatPath": "gmail/v1/users/{userId}/settings/cse/keypairs", + "httpMethod": "POST", + "id": "gmail.users.settings.cse.keypairs.create", + "parameterOrder": [ + "userId" + ], + "parameters": { + "userId": { + "default": "me", + "description": "The requester's primary email address. To indicate the authenticated user, you can use the special value `me`.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "gmail/v1/users/{userId}/settings/cse/keypairs", + "request": { + "$ref": "CseKeyPair" + }, + "response": { + "$ref": "CseKeyPair" + }, + "scopes": [ + "https://www.googleapis.com/auth/gmail.settings.basic", + "https://www.googleapis.com/auth/gmail.settings.sharing" + ] + }, + "disable": { + "description": "Turns off a client-side encryption key pair. The authenticated user can no longer use the key pair to decrypt incoming CSE message texts or sign outgoing CSE mail. To regain access, use the EnableCseKeyPair to turn on the key pair. After 30 days, you can permanently delete the key pair by using the ObliterateCseKeyPair method. [Beta](https://workspace.google.com/terms/service-terms/index.html).", + "flatPath": "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:disable", + "httpMethod": "POST", + "id": "gmail.users.settings.cse.keypairs.disable", + "parameterOrder": [ + "userId", + "keyPairId" + ], + "parameters": { + "keyPairId": { + "description": "The identifier of the key pair to turn off.", + "location": "path", + "required": true, + "type": "string" + }, + "userId": { + "default": "me", + "description": "The requester's primary email address. To indicate the authenticated user, you can use the special value `me`.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:disable", + "request": { + "$ref": "DisableCseKeyPairRequest" + }, + "response": { + "$ref": "CseKeyPair" + }, + "scopes": [ + "https://www.googleapis.com/auth/gmail.settings.basic", + "https://www.googleapis.com/auth/gmail.settings.sharing" + ] + }, + "enable": { + "description": "Turns on a client-side encryption key pair that was turned off. The key pair becomes active again for any associated client-side encryption identities. [Beta](https://workspace.google.com/terms/service-terms/index.html).", + "flatPath": "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:enable", + "httpMethod": "POST", + "id": "gmail.users.settings.cse.keypairs.enable", + "parameterOrder": [ + "userId", + "keyPairId" + ], + "parameters": { + "keyPairId": { + "description": "The identifier of the key pair to turn on.", + "location": "path", + "required": true, + "type": "string" + }, + "userId": { + "default": "me", + "description": "The requester's primary email address. To indicate the authenticated user, you can use the special value `me`.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:enable", + "request": { + "$ref": "EnableCseKeyPairRequest" + }, + "response": { + "$ref": "CseKeyPair" + }, + "scopes": [ + "https://www.googleapis.com/auth/gmail.settings.basic", + "https://www.googleapis.com/auth/gmail.settings.sharing" + ] + }, + "get": { + "description": "Retrieves an existing client-side encryption key pair. [Beta](https://workspace.google.com/terms/service-terms/index.html).", + "flatPath": "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}", + "httpMethod": "GET", + "id": "gmail.users.settings.cse.keypairs.get", + "parameterOrder": [ + "userId", + "keyPairId" + ], + "parameters": { + "keyPairId": { + "description": "The identifier of the key pair to retrieve.", + "location": "path", + "required": true, + "type": "string" + }, + "userId": { + "default": "me", + "description": "The requester's primary email address. To indicate the authenticated user, you can use the special value `me`.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}", + "response": { + "$ref": "CseKeyPair" + }, + "scopes": [ + "https://mail.google.com/", + "https://www.googleapis.com/auth/gmail.modify", + "https://www.googleapis.com/auth/gmail.readonly", + "https://www.googleapis.com/auth/gmail.settings.basic", + "https://www.googleapis.com/auth/gmail.settings.sharing" + ] + }, + "list": { + "description": "Lists client-side encryption key pairs for an authenticated user. [Beta](https://workspace.google.com/terms/service-terms/index.html).", + "flatPath": "gmail/v1/users/{userId}/settings/cse/keypairs", + "httpMethod": "GET", + "id": "gmail.users.settings.cse.keypairs.list", + "parameterOrder": [ + "userId" + ], + "parameters": { + "pageSize": { + "default": "20", + "description": "The number of key pairs to return. If not provided, the page size will default to 20 entries.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Pagination token indicating which page of key pairs to return. If the token is not supplied, then the API will return the first page of results.", + "location": "query", + "type": "string" + }, + "userId": { + "default": "me", + "description": "The requester's primary email address. To indicate the authenticated user, you can use the special value `me`.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "gmail/v1/users/{userId}/settings/cse/keypairs", + "response": { + "$ref": "ListCseKeyPairsResponse" + }, + "scopes": [ + "https://mail.google.com/", + "https://www.googleapis.com/auth/gmail.modify", + "https://www.googleapis.com/auth/gmail.readonly", + "https://www.googleapis.com/auth/gmail.settings.basic", + "https://www.googleapis.com/auth/gmail.settings.sharing" + ] + }, + "obliterate": { + "description": "Deletes a client-side encryption key pair permanently and immediately. You can only permanently delete key pairs that have been turned off for more than 30 days. To turn off a key pair, use the DisableCseKeyPair method. Gmail can't restore or decrypt any messages that were encrypted by an obliterated key. Authenticated users and Google Workspace administrators lose access to reading the encrypted messages. [Beta](https://workspace.google.com/terms/service-terms/index.html).", + "flatPath": "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:obliterate", + "httpMethod": "POST", + "id": "gmail.users.settings.cse.keypairs.obliterate", + "parameterOrder": [ + "userId", + "keyPairId" + ], + "parameters": { + "keyPairId": { + "description": "The identifier of the key pair to obliterate.", + "location": "path", + "required": true, + "type": "string" + }, + "userId": { + "default": "me", + "description": "The requester's primary email address. To indicate the authenticated user, you can use the special value `me`.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:obliterate", + "request": { + "$ref": "ObliterateCseKeyPairRequest" + }, + "scopes": [ + "https://www.googleapis.com/auth/gmail.settings.basic", + "https://www.googleapis.com/auth/gmail.settings.sharing" + ] + } + } + } + } + }, "delegates": { "methods": { "create": { @@ -2682,7 +3077,7 @@ } } }, - "revision": "20220404", + "revision": "20221219", "rootUrl": "https://gmail.googleapis.com/", "schemas": { "AutoForwarding": { @@ -2758,6 +3153,94 @@ }, "type": "object" }, + "CseIdentity": { + "description": "[Beta](https://workspace.google.com/terms/service-terms/index.html). The client-side encryption (CSE) configuration for the email address of an authenticated user. Gmail uses CSE configurations to save drafts of client-side encrypted email messages, and to sign and send encrypted email messages.", + "id": "CseIdentity", + "properties": { + "emailAddress": { + "description": "The email address for the sending identity. The email address must be the primary email address of the authenticated user.", + "type": "string" + }, + "primaryKeyPairId": { + "description": "If a key pair is associated, the identifier of the key pair, CseKeyPair.", + "type": "string" + } + }, + "type": "object" + }, + "CseKeyPair": { + "description": "[Beta](https://workspace.google.com/terms/service-terms/index.html). A client-side encryption S/MIME key pair, which is comprised of a public key, its certificate chain, and metadata for its paired private key. Gmail uses the key pair to complete the following tasks: - Sign outgoing client-side encrypted messages. - Save and reopen drafts of client-side encrypted messages. - Save and reopen sent messages. - Decrypt incoming or archived S/MIME messages.", + "id": "CseKeyPair", + "properties": { + "disableTime": { + "description": "Output only. If a key pair is set to `DISABLED`, the time that the key pair's state changed from `ENABLED` to `DISABLED`. This field is present only when the key pair is in state `DISABLED`.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "enablementState": { + "description": "Output only. The current state of the key pair.", + "enum": [ + "stateUnspecified", + "enabled", + "disabled" + ], + "enumDescriptions": [ + "The current state of the key pair is not set. The key pair is neither turned on nor turned off.", + "The key pair is turned on. For any email messages that this key pair encrypts, Gmail decrypts the messages and signs any outgoing mail with the private key. To turn on a key pair, use the EnableCseKeyPair method.", + "The key pair is turned off. Authenticated users cannot decrypt email messages nor sign outgoing messages. If a key pair is turned off for more than 30 days, you can permanently delete it. To turn off a key pair, use the DisableCseKeyPair method." + ], + "readOnly": true, + "type": "string" + }, + "keyPairId": { + "description": "Output only. The immutable ID for the client-side encryption S/MIME key pair.", + "readOnly": true, + "type": "string" + }, + "pem": { + "description": "Output only. The public key and its certificate chain, in [PEM](https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail) format.", + "readOnly": true, + "type": "string" + }, + "pkcs7": { + "description": "Input only. The public key and its certificate chain. The chain must be in [PKCS#7](https://en.wikipedia.org/wiki/PKCS_7) format and use PEM encoding and ASCII armor.", + "type": "string" + }, + "privateKeyMetadata": { + "description": "Metadata for instances of this key pair's private key.", + "items": { + "$ref": "CsePrivateKeyMetadata" + }, + "type": "array" + }, + "subjectEmailAddresses": { + "description": "Output only. The email address identities that are specified on the leaf certificate.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "CsePrivateKeyMetadata": { + "description": "Metadata for a private key instance.", + "id": "CsePrivateKeyMetadata", + "properties": { + "kaclsKeyMetadata": { + "$ref": "KaclsKeyMetadata", + "description": "Metadata for a private key instance managed by an external key access control list service." + }, + "privateKeyMetadataId": { + "description": "Output only. The immutable ID for the private key metadata instance.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "Delegate": { "description": "Settings for a delegate. Delegates can read, send, and delete messages, as well as view and add contacts, for the delegator's account. See \"Set up mail delegation\" for more information about delegates.", "id": "Delegate", @@ -2787,6 +3270,12 @@ }, "type": "object" }, + "DisableCseKeyPairRequest": { + "description": "Requests to turn off a client-side encryption key pair.", + "id": "DisableCseKeyPairRequest", + "properties": {}, + "type": "object" + }, "Draft": { "description": "A draft email in the user's mailbox.", "id": "Draft", @@ -2807,6 +3296,12 @@ }, "type": "object" }, + "EnableCseKeyPairRequest": { + "description": "Requests to turn on a client-side encryption key pair.", + "id": "EnableCseKeyPairRequest", + "properties": {}, + "type": "object" + }, "Filter": { "description": "Resource definition for Gmail filters. Filters apply to specific messages instead of an entire email thread.", "id": "Filter", @@ -3063,6 +3558,21 @@ }, "type": "object" }, + "KaclsKeyMetadata": { + "description": "Metadata for private keys managed by an external key access control list service. For details about managing key access, see [Google Workspace CSE API Reference](https://developers.google.com/workspace/cse/reference).", + "id": "KaclsKeyMetadata", + "properties": { + "kaclsData": { + "description": "Opaque data generated and used by the key access control list service. Maximum size: 8 KiB.", + "type": "string" + }, + "kaclsUri": { + "description": "The URI of the key access control list service that manages the private key.", + "type": "string" + } + }, + "type": "object" + }, "Label": { "description": "Labels are used to categorize messages and threads within the user's mailbox. The maximum number of labels supported for a user's mailbox is 10,000.", "id": "Label", @@ -3188,6 +3698,40 @@ }, "type": "object" }, + "ListCseIdentitiesResponse": { + "id": "ListCseIdentitiesResponse", + "properties": { + "cseIdentities": { + "description": "One page of the list of CSE identities configured for the user.", + "items": { + "$ref": "CseIdentity" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Pagination token to be passed to a subsequent ListCseIdentities call in order to retrieve the next page of identities. If this value is not returned or is the empty string, then no further pages remain.", + "type": "string" + } + }, + "type": "object" + }, + "ListCseKeyPairsResponse": { + "id": "ListCseKeyPairsResponse", + "properties": { + "cseKeyPairs": { + "description": "One page of the list of CSE key pairs installed for the user.", + "items": { + "$ref": "CseKeyPair" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Pagination token to be passed to a subsequent ListCseKeyPairs call in order to retrieve the next page of key pairs. If this value is not returned, then no further pages remain.", + "type": "string" + } + }, + "type": "object" + }, "ListDelegatesResponse": { "description": "Response for the ListDelegates method.", "id": "ListDelegatesResponse", @@ -3528,6 +4072,12 @@ }, "type": "object" }, + "ObliterateCseKeyPairRequest": { + "description": "Request to obliterate a CSE key pair.", + "id": "ObliterateCseKeyPairRequest", + "properties": {}, + "type": "object" + }, "PopSettings": { "description": "POP settings for an account.", "id": "PopSettings", diff --git a/gmail/v1/gmail-gen.go b/gmail/v1/gmail-gen.go index 43705806500..01decdbc1b6 100644 --- a/gmail/v1/gmail-gen.go +++ b/gmail/v1/gmail-gen.go @@ -271,6 +271,7 @@ type UsersMessagesAttachmentsService struct { func NewUsersSettingsService(s *Service) *UsersSettingsService { rs := &UsersSettingsService{s: s} + rs.Cse = NewUsersSettingsCseService(s) rs.Delegates = NewUsersSettingsDelegatesService(s) rs.Filters = NewUsersSettingsFiltersService(s) rs.ForwardingAddresses = NewUsersSettingsForwardingAddressesService(s) @@ -281,6 +282,8 @@ func NewUsersSettingsService(s *Service) *UsersSettingsService { type UsersSettingsService struct { s *Service + Cse *UsersSettingsCseService + Delegates *UsersSettingsDelegatesService Filters *UsersSettingsFiltersService @@ -290,6 +293,39 @@ type UsersSettingsService struct { SendAs *UsersSettingsSendAsService } +func NewUsersSettingsCseService(s *Service) *UsersSettingsCseService { + rs := &UsersSettingsCseService{s: s} + rs.Identities = NewUsersSettingsCseIdentitiesService(s) + rs.Keypairs = NewUsersSettingsCseKeypairsService(s) + return rs +} + +type UsersSettingsCseService struct { + s *Service + + Identities *UsersSettingsCseIdentitiesService + + Keypairs *UsersSettingsCseKeypairsService +} + +func NewUsersSettingsCseIdentitiesService(s *Service) *UsersSettingsCseIdentitiesService { + rs := &UsersSettingsCseIdentitiesService{s: s} + return rs +} + +type UsersSettingsCseIdentitiesService struct { + s *Service +} + +func NewUsersSettingsCseKeypairsService(s *Service) *UsersSettingsCseKeypairsService { + rs := &UsersSettingsCseKeypairsService{s: s} + return rs +} + +type UsersSettingsCseKeypairsService struct { + s *Service +} + func NewUsersSettingsDelegatesService(s *Service) *UsersSettingsDelegatesService { rs := &UsersSettingsDelegatesService{s: s} return rs @@ -457,6 +493,159 @@ func (s *BatchModifyMessagesRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CseIdentity: Beta +// (https://workspace.google.com/terms/service-terms/index.html). The +// client-side encryption (CSE) configuration for the email address of +// an authenticated user. Gmail uses CSE configurations to save drafts +// of client-side encrypted email messages, and to sign and send +// encrypted email messages. +type CseIdentity struct { + // EmailAddress: The email address for the sending identity. The email + // address must be the primary email address of the authenticated user. + EmailAddress string `json:"emailAddress,omitempty"` + + // PrimaryKeyPairId: If a key pair is associated, the identifier of the + // key pair, CseKeyPair. + PrimaryKeyPairId string `json:"primaryKeyPairId,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "EmailAddress") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EmailAddress") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CseIdentity) MarshalJSON() ([]byte, error) { + type NoMethod CseIdentity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CseKeyPair: Beta +// (https://workspace.google.com/terms/service-terms/index.html). A +// client-side encryption S/MIME key pair, which is comprised of a +// public key, its certificate chain, and metadata for its paired +// private key. Gmail uses the key pair to complete the following tasks: +// - Sign outgoing client-side encrypted messages. - Save and reopen +// drafts of client-side encrypted messages. - Save and reopen sent +// messages. - Decrypt incoming or archived S/MIME messages. +type CseKeyPair struct { + // DisableTime: Output only. If a key pair is set to `DISABLED`, the + // time that the key pair's state changed from `ENABLED` to `DISABLED`. + // This field is present only when the key pair is in state `DISABLED`. + DisableTime string `json:"disableTime,omitempty"` + + // EnablementState: Output only. The current state of the key pair. + // + // Possible values: + // "stateUnspecified" - The current state of the key pair is not set. + // The key pair is neither turned on nor turned off. + // "enabled" - The key pair is turned on. For any email messages that + // this key pair encrypts, Gmail decrypts the messages and signs any + // outgoing mail with the private key. To turn on a key pair, use the + // EnableCseKeyPair method. + // "disabled" - The key pair is turned off. Authenticated users cannot + // decrypt email messages nor sign outgoing messages. If a key pair is + // turned off for more than 30 days, you can permanently delete it. To + // turn off a key pair, use the DisableCseKeyPair method. + EnablementState string `json:"enablementState,omitempty"` + + // KeyPairId: Output only. The immutable ID for the client-side + // encryption S/MIME key pair. + KeyPairId string `json:"keyPairId,omitempty"` + + // Pem: Output only. The public key and its certificate chain, in PEM + // (https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail) format. + Pem string `json:"pem,omitempty"` + + // Pkcs7: Input only. The public key and its certificate chain. The + // chain must be in PKCS#7 (https://en.wikipedia.org/wiki/PKCS_7) format + // and use PEM encoding and ASCII armor. + Pkcs7 string `json:"pkcs7,omitempty"` + + // PrivateKeyMetadata: Metadata for instances of this key pair's private + // key. + PrivateKeyMetadata []*CsePrivateKeyMetadata `json:"privateKeyMetadata,omitempty"` + + // SubjectEmailAddresses: Output only. The email address identities that + // are specified on the leaf certificate. + SubjectEmailAddresses []string `json:"subjectEmailAddresses,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DisableTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisableTime") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CseKeyPair) MarshalJSON() ([]byte, error) { + type NoMethod CseKeyPair + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CsePrivateKeyMetadata: Metadata for a private key instance. +type CsePrivateKeyMetadata struct { + // KaclsKeyMetadata: Metadata for a private key instance managed by an + // external key access control list service. + KaclsKeyMetadata *KaclsKeyMetadata `json:"kaclsKeyMetadata,omitempty"` + + // PrivateKeyMetadataId: Output only. The immutable ID for the private + // key metadata instance. + PrivateKeyMetadataId string `json:"privateKeyMetadataId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "KaclsKeyMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "KaclsKeyMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CsePrivateKeyMetadata) MarshalJSON() ([]byte, error) { + type NoMethod CsePrivateKeyMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Delegate: Settings for a delegate. Delegates can read, send, and // delete messages, as well as view and add contacts, for the // delegator's account. See "Set up mail delegation" for more @@ -506,6 +695,11 @@ func (s *Delegate) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DisableCseKeyPairRequest: Requests to turn off a client-side +// encryption key pair. +type DisableCseKeyPairRequest struct { +} + // Draft: A draft email in the user's mailbox. type Draft struct { // Id: The immutable ID of the draft. @@ -541,6 +735,11 @@ func (s *Draft) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// EnableCseKeyPairRequest: Requests to turn on a client-side encryption +// key pair. +type EnableCseKeyPairRequest struct { +} + // Filter: Resource definition for Gmail filters. Filters apply to // specific messages instead of an entire email thread. type Filter struct { @@ -938,6 +1137,42 @@ func (s *ImapSettings) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// KaclsKeyMetadata: Metadata for private keys managed by an external +// key access control list service. For details about managing key +// access, see Google Workspace CSE API Reference +// (https://developers.google.com/workspace/cse/reference). +type KaclsKeyMetadata struct { + // KaclsData: Opaque data generated and used by the key access control + // list service. Maximum size: 8 KiB. + KaclsData string `json:"kaclsData,omitempty"` + + // KaclsUri: The URI of the key access control list service that manages + // the private key. + KaclsUri string `json:"kaclsUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "KaclsData") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "KaclsData") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *KaclsKeyMetadata) MarshalJSON() ([]byte, error) { + type NoMethod KaclsKeyMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Label: Labels are used to categorize messages and threads within the // user's mailbox. The maximum number of labels supported for a user's // mailbox is 10,000. @@ -1133,6 +1368,81 @@ func (s *LanguageSettings) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type ListCseIdentitiesResponse struct { + // CseIdentities: One page of the list of CSE identities configured for + // the user. + CseIdentities []*CseIdentity `json:"cseIdentities,omitempty"` + + // NextPageToken: Pagination token to be passed to a subsequent + // ListCseIdentities call in order to retrieve the next page of + // identities. If this value is not returned or is the empty string, + // then no further pages remain. + 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. "CseIdentities") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CseIdentities") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListCseIdentitiesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListCseIdentitiesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type ListCseKeyPairsResponse struct { + // CseKeyPairs: One page of the list of CSE key pairs installed for the + // user. + CseKeyPairs []*CseKeyPair `json:"cseKeyPairs,omitempty"` + + // NextPageToken: Pagination token to be passed to a subsequent + // ListCseKeyPairs call in order to retrieve the next page of key pairs. + // If this value is not returned, then no further pages remain. + 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. "CseKeyPairs") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CseKeyPairs") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListCseKeyPairsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListCseKeyPairsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListDelegatesResponse: Response for the ListDelegates method. type ListDelegatesResponse struct { // Delegates: List of the user's delegates (with any verification @@ -1753,6 +2063,10 @@ func (s *ModifyThreadRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ObliterateCseKeyPairRequest: Request to obliterate a CSE key pair. +type ObliterateCseKeyPairRequest struct { +} + // PopSettings: POP settings for an account. type PopSettings struct { // AccessWindow: The range of messages which are accessible via POP. @@ -8804,6 +9118,1769 @@ func (c *UsersSettingsUpdateVacationCall) Do(opts ...googleapi.CallOption) (*Vac } +// method id "gmail.users.settings.cse.identities.create": + +type UsersSettingsCseIdentitiesCreateCall struct { + s *Service + userId string + cseidentity *CseIdentity + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates and configures a client-side encryption identity +// that's authorized to send mail from the user account. Google +// publishes the S/MIME certificate to a shared domain-wide directory so +// that people within a Google Workspace organization can encrypt and +// send mail to the identity. Beta +// (https://workspace.google.com/terms/service-terms/index.html). +// +// - userId: The requester's primary email address. To indicate the +// authenticated user, you can use the special value `me`. +func (r *UsersSettingsCseIdentitiesService) Create(userId string, cseidentity *CseIdentity) *UsersSettingsCseIdentitiesCreateCall { + c := &UsersSettingsCseIdentitiesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.userId = userId + c.cseidentity = cseidentity + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *UsersSettingsCseIdentitiesCreateCall) Fields(s ...googleapi.Field) *UsersSettingsCseIdentitiesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *UsersSettingsCseIdentitiesCreateCall) Context(ctx context.Context) *UsersSettingsCseIdentitiesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *UsersSettingsCseIdentitiesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *UsersSettingsCseIdentitiesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.cseidentity) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "gmail/v1/users/{userId}/settings/cse/identities") + 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{ + "userId": c.userId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "gmail.users.settings.cse.identities.create" call. +// Exactly one of *CseIdentity or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *CseIdentity.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 *UsersSettingsCseIdentitiesCreateCall) Do(opts ...googleapi.CallOption) (*CseIdentity, 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 := &CseIdentity{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates and configures a client-side encryption identity that's authorized to send mail from the user account. Google publishes the S/MIME certificate to a shared domain-wide directory so that people within a Google Workspace organization can encrypt and send mail to the identity. [Beta](https://workspace.google.com/terms/service-terms/index.html).", + // "flatPath": "gmail/v1/users/{userId}/settings/cse/identities", + // "httpMethod": "POST", + // "id": "gmail.users.settings.cse.identities.create", + // "parameterOrder": [ + // "userId" + // ], + // "parameters": { + // "userId": { + // "default": "me", + // "description": "The requester's primary email address. To indicate the authenticated user, you can use the special value `me`.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "gmail/v1/users/{userId}/settings/cse/identities", + // "request": { + // "$ref": "CseIdentity" + // }, + // "response": { + // "$ref": "CseIdentity" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/gmail.settings.basic", + // "https://www.googleapis.com/auth/gmail.settings.sharing" + // ] + // } + +} + +// method id "gmail.users.settings.cse.identities.delete": + +type UsersSettingsCseIdentitiesDeleteCall struct { + s *Service + userId string + cseEmailAddress string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a client-side encryption identity. The authenticated +// user can no longer use the identity to send encrypted messages. You +// cannot restore the identity after you delete it. Instead, use the +// CreateCseIdentity method to create another identity with the same +// configuration. Beta +// (https://workspace.google.com/terms/service-terms/index.html). +// +// - cseEmailAddress: The primary email address associated with the +// client-side encryption identity configuration that's removed. +// - userId: The requester's primary email address. To indicate the +// authenticated user, you can use the special value `me`. +func (r *UsersSettingsCseIdentitiesService) Delete(userId string, cseEmailAddress string) *UsersSettingsCseIdentitiesDeleteCall { + c := &UsersSettingsCseIdentitiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.userId = userId + c.cseEmailAddress = cseEmailAddress + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *UsersSettingsCseIdentitiesDeleteCall) Fields(s ...googleapi.Field) *UsersSettingsCseIdentitiesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *UsersSettingsCseIdentitiesDeleteCall) Context(ctx context.Context) *UsersSettingsCseIdentitiesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *UsersSettingsCseIdentitiesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *UsersSettingsCseIdentitiesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "userId": c.userId, + "cseEmailAddress": c.cseEmailAddress, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "gmail.users.settings.cse.identities.delete" call. +func (c *UsersSettingsCseIdentitiesDeleteCall) Do(opts ...googleapi.CallOption) error { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if err != nil { + return err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return gensupport.WrapError(err) + } + return nil + // { + // "description": "Deletes a client-side encryption identity. The authenticated user can no longer use the identity to send encrypted messages. You cannot restore the identity after you delete it. Instead, use the CreateCseIdentity method to create another identity with the same configuration. [Beta](https://workspace.google.com/terms/service-terms/index.html).", + // "flatPath": "gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}", + // "httpMethod": "DELETE", + // "id": "gmail.users.settings.cse.identities.delete", + // "parameterOrder": [ + // "userId", + // "cseEmailAddress" + // ], + // "parameters": { + // "cseEmailAddress": { + // "description": "The primary email address associated with the client-side encryption identity configuration that's removed.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "userId": { + // "default": "me", + // "description": "The requester's primary email address. To indicate the authenticated user, you can use the special value `me`.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}", + // "scopes": [ + // "https://www.googleapis.com/auth/gmail.settings.basic", + // "https://www.googleapis.com/auth/gmail.settings.sharing" + // ] + // } + +} + +// method id "gmail.users.settings.cse.identities.get": + +type UsersSettingsCseIdentitiesGetCall struct { + s *Service + userId string + cseEmailAddress string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Retrieves a client-side encryption identity configuration. Beta +// (https://workspace.google.com/terms/service-terms/index.html). +// +// - cseEmailAddress: The primary email address associated with the +// client-side encryption identity configuration that's retrieved. +// - userId: The requester's primary email address. To indicate the +// authenticated user, you can use the special value `me`. +func (r *UsersSettingsCseIdentitiesService) Get(userId string, cseEmailAddress string) *UsersSettingsCseIdentitiesGetCall { + c := &UsersSettingsCseIdentitiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.userId = userId + c.cseEmailAddress = cseEmailAddress + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *UsersSettingsCseIdentitiesGetCall) Fields(s ...googleapi.Field) *UsersSettingsCseIdentitiesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *UsersSettingsCseIdentitiesGetCall) IfNoneMatch(entityTag string) *UsersSettingsCseIdentitiesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *UsersSettingsCseIdentitiesGetCall) Context(ctx context.Context) *UsersSettingsCseIdentitiesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *UsersSettingsCseIdentitiesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *UsersSettingsCseIdentitiesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "userId": c.userId, + "cseEmailAddress": c.cseEmailAddress, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "gmail.users.settings.cse.identities.get" call. +// Exactly one of *CseIdentity or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *CseIdentity.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 *UsersSettingsCseIdentitiesGetCall) Do(opts ...googleapi.CallOption) (*CseIdentity, 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 := &CseIdentity{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieves a client-side encryption identity configuration. [Beta](https://workspace.google.com/terms/service-terms/index.html).", + // "flatPath": "gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}", + // "httpMethod": "GET", + // "id": "gmail.users.settings.cse.identities.get", + // "parameterOrder": [ + // "userId", + // "cseEmailAddress" + // ], + // "parameters": { + // "cseEmailAddress": { + // "description": "The primary email address associated with the client-side encryption identity configuration that's retrieved.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "userId": { + // "default": "me", + // "description": "The requester's primary email address. To indicate the authenticated user, you can use the special value `me`.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}", + // "response": { + // "$ref": "CseIdentity" + // }, + // "scopes": [ + // "https://mail.google.com/", + // "https://www.googleapis.com/auth/gmail.modify", + // "https://www.googleapis.com/auth/gmail.readonly", + // "https://www.googleapis.com/auth/gmail.settings.basic", + // "https://www.googleapis.com/auth/gmail.settings.sharing" + // ] + // } + +} + +// method id "gmail.users.settings.cse.identities.list": + +type UsersSettingsCseIdentitiesListCall struct { + s *Service + userId string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the client-side encrypted identities for an authenticated +// user. Beta +// (https://workspace.google.com/terms/service-terms/index.html). +// +// - userId: The requester's primary email address. To indicate the +// authenticated user, you can use the special value `me`. +func (r *UsersSettingsCseIdentitiesService) List(userId string) *UsersSettingsCseIdentitiesListCall { + c := &UsersSettingsCseIdentitiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.userId = userId + return c +} + +// PageSize sets the optional parameter "pageSize": The number of +// identities to return. If not provided, the page size will default to +// 20 entries. +func (c *UsersSettingsCseIdentitiesListCall) PageSize(pageSize int64) *UsersSettingsCseIdentitiesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Pagination token +// indicating which page of identities to return. If the token is not +// supplied, then the API will return the first page of results. +func (c *UsersSettingsCseIdentitiesListCall) PageToken(pageToken string) *UsersSettingsCseIdentitiesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *UsersSettingsCseIdentitiesListCall) Fields(s ...googleapi.Field) *UsersSettingsCseIdentitiesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *UsersSettingsCseIdentitiesListCall) IfNoneMatch(entityTag string) *UsersSettingsCseIdentitiesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *UsersSettingsCseIdentitiesListCall) Context(ctx context.Context) *UsersSettingsCseIdentitiesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *UsersSettingsCseIdentitiesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *UsersSettingsCseIdentitiesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "gmail/v1/users/{userId}/settings/cse/identities") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "userId": c.userId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "gmail.users.settings.cse.identities.list" call. +// Exactly one of *ListCseIdentitiesResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListCseIdentitiesResponse.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 *UsersSettingsCseIdentitiesListCall) Do(opts ...googleapi.CallOption) (*ListCseIdentitiesResponse, 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 := &ListCseIdentitiesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists the client-side encrypted identities for an authenticated user. [Beta](https://workspace.google.com/terms/service-terms/index.html).", + // "flatPath": "gmail/v1/users/{userId}/settings/cse/identities", + // "httpMethod": "GET", + // "id": "gmail.users.settings.cse.identities.list", + // "parameterOrder": [ + // "userId" + // ], + // "parameters": { + // "pageSize": { + // "default": "20", + // "description": "The number of identities to return. If not provided, the page size will default to 20 entries.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Pagination token indicating which page of identities to return. If the token is not supplied, then the API will return the first page of results.", + // "location": "query", + // "type": "string" + // }, + // "userId": { + // "default": "me", + // "description": "The requester's primary email address. To indicate the authenticated user, you can use the special value `me`.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "gmail/v1/users/{userId}/settings/cse/identities", + // "response": { + // "$ref": "ListCseIdentitiesResponse" + // }, + // "scopes": [ + // "https://mail.google.com/", + // "https://www.googleapis.com/auth/gmail.modify", + // "https://www.googleapis.com/auth/gmail.readonly", + // "https://www.googleapis.com/auth/gmail.settings.basic", + // "https://www.googleapis.com/auth/gmail.settings.sharing" + // ] + // } + +} + +// 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 *UsersSettingsCseIdentitiesListCall) Pages(ctx context.Context, f func(*ListCseIdentitiesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "gmail.users.settings.cse.identities.patch": + +type UsersSettingsCseIdentitiesPatchCall struct { + s *Service + userId string + emailAddress string + cseidentity *CseIdentity + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Associates a different key pair with an existing client-side +// encryption identity. The updated key pair must validate against +// Google's S/MIME certificate profiles +// (https://support.google.com/a/answer/7300887). Beta +// (https://workspace.google.com/terms/service-terms/index.html). +// +// - emailAddress: The email address of the client-side encryption +// identity to update. +// - userId: The requester's primary email address. To indicate the +// authenticated user, you can use the special value `me`. +func (r *UsersSettingsCseIdentitiesService) Patch(userId string, emailAddress string, cseidentity *CseIdentity) *UsersSettingsCseIdentitiesPatchCall { + c := &UsersSettingsCseIdentitiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.userId = userId + c.emailAddress = emailAddress + c.cseidentity = cseidentity + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *UsersSettingsCseIdentitiesPatchCall) Fields(s ...googleapi.Field) *UsersSettingsCseIdentitiesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *UsersSettingsCseIdentitiesPatchCall) Context(ctx context.Context) *UsersSettingsCseIdentitiesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *UsersSettingsCseIdentitiesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *UsersSettingsCseIdentitiesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.cseidentity) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "gmail/v1/users/{userId}/settings/cse/identities/{emailAddress}") + 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{ + "userId": c.userId, + "emailAddress": c.emailAddress, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "gmail.users.settings.cse.identities.patch" call. +// Exactly one of *CseIdentity or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *CseIdentity.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 *UsersSettingsCseIdentitiesPatchCall) Do(opts ...googleapi.CallOption) (*CseIdentity, 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 := &CseIdentity{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Associates a different key pair with an existing client-side encryption identity. The updated key pair must validate against Google's [S/MIME certificate profiles](https://support.google.com/a/answer/7300887). [Beta](https://workspace.google.com/terms/service-terms/index.html).", + // "flatPath": "gmail/v1/users/{userId}/settings/cse/identities/{emailAddress}", + // "httpMethod": "PATCH", + // "id": "gmail.users.settings.cse.identities.patch", + // "parameterOrder": [ + // "userId", + // "emailAddress" + // ], + // "parameters": { + // "emailAddress": { + // "description": "The email address of the client-side encryption identity to update.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "userId": { + // "default": "me", + // "description": "The requester's primary email address. To indicate the authenticated user, you can use the special value `me`.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "gmail/v1/users/{userId}/settings/cse/identities/{emailAddress}", + // "request": { + // "$ref": "CseIdentity" + // }, + // "response": { + // "$ref": "CseIdentity" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/gmail.settings.basic", + // "https://www.googleapis.com/auth/gmail.settings.sharing" + // ] + // } + +} + +// method id "gmail.users.settings.cse.keypairs.create": + +type UsersSettingsCseKeypairsCreateCall struct { + s *Service + userId string + csekeypair *CseKeyPair + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates and uploads a client-side encryption S/MIME public +// key certificate chain and private key metadata for the authenticated +// user. Beta +// (https://workspace.google.com/terms/service-terms/index.html). +// +// - userId: The requester's primary email address. To indicate the +// authenticated user, you can use the special value `me`. +func (r *UsersSettingsCseKeypairsService) Create(userId string, csekeypair *CseKeyPair) *UsersSettingsCseKeypairsCreateCall { + c := &UsersSettingsCseKeypairsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.userId = userId + c.csekeypair = csekeypair + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *UsersSettingsCseKeypairsCreateCall) Fields(s ...googleapi.Field) *UsersSettingsCseKeypairsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *UsersSettingsCseKeypairsCreateCall) Context(ctx context.Context) *UsersSettingsCseKeypairsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *UsersSettingsCseKeypairsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *UsersSettingsCseKeypairsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.csekeypair) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "gmail/v1/users/{userId}/settings/cse/keypairs") + 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{ + "userId": c.userId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "gmail.users.settings.cse.keypairs.create" call. +// Exactly one of *CseKeyPair or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *CseKeyPair.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 *UsersSettingsCseKeypairsCreateCall) Do(opts ...googleapi.CallOption) (*CseKeyPair, 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 := &CseKeyPair{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates and uploads a client-side encryption S/MIME public key certificate chain and private key metadata for the authenticated user. [Beta](https://workspace.google.com/terms/service-terms/index.html).", + // "flatPath": "gmail/v1/users/{userId}/settings/cse/keypairs", + // "httpMethod": "POST", + // "id": "gmail.users.settings.cse.keypairs.create", + // "parameterOrder": [ + // "userId" + // ], + // "parameters": { + // "userId": { + // "default": "me", + // "description": "The requester's primary email address. To indicate the authenticated user, you can use the special value `me`.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "gmail/v1/users/{userId}/settings/cse/keypairs", + // "request": { + // "$ref": "CseKeyPair" + // }, + // "response": { + // "$ref": "CseKeyPair" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/gmail.settings.basic", + // "https://www.googleapis.com/auth/gmail.settings.sharing" + // ] + // } + +} + +// method id "gmail.users.settings.cse.keypairs.disable": + +type UsersSettingsCseKeypairsDisableCall struct { + s *Service + userId string + keyPairId string + disablecsekeypairrequest *DisableCseKeyPairRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Disable: Turns off a client-side encryption key pair. The +// authenticated user can no longer use the key pair to decrypt incoming +// CSE message texts or sign outgoing CSE mail. To regain access, use +// the EnableCseKeyPair to turn on the key pair. After 30 days, you can +// permanently delete the key pair by using the ObliterateCseKeyPair +// method. Beta +// (https://workspace.google.com/terms/service-terms/index.html). +// +// - keyPairId: The identifier of the key pair to turn off. +// - userId: The requester's primary email address. To indicate the +// authenticated user, you can use the special value `me`. +func (r *UsersSettingsCseKeypairsService) Disable(userId string, keyPairId string, disablecsekeypairrequest *DisableCseKeyPairRequest) *UsersSettingsCseKeypairsDisableCall { + c := &UsersSettingsCseKeypairsDisableCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.userId = userId + c.keyPairId = keyPairId + c.disablecsekeypairrequest = disablecsekeypairrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *UsersSettingsCseKeypairsDisableCall) Fields(s ...googleapi.Field) *UsersSettingsCseKeypairsDisableCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *UsersSettingsCseKeypairsDisableCall) Context(ctx context.Context) *UsersSettingsCseKeypairsDisableCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *UsersSettingsCseKeypairsDisableCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *UsersSettingsCseKeypairsDisableCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.disablecsekeypairrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:disable") + 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{ + "userId": c.userId, + "keyPairId": c.keyPairId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "gmail.users.settings.cse.keypairs.disable" call. +// Exactly one of *CseKeyPair or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *CseKeyPair.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 *UsersSettingsCseKeypairsDisableCall) Do(opts ...googleapi.CallOption) (*CseKeyPair, 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 := &CseKeyPair{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Turns off a client-side encryption key pair. The authenticated user can no longer use the key pair to decrypt incoming CSE message texts or sign outgoing CSE mail. To regain access, use the EnableCseKeyPair to turn on the key pair. After 30 days, you can permanently delete the key pair by using the ObliterateCseKeyPair method. [Beta](https://workspace.google.com/terms/service-terms/index.html).", + // "flatPath": "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:disable", + // "httpMethod": "POST", + // "id": "gmail.users.settings.cse.keypairs.disable", + // "parameterOrder": [ + // "userId", + // "keyPairId" + // ], + // "parameters": { + // "keyPairId": { + // "description": "The identifier of the key pair to turn off.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "userId": { + // "default": "me", + // "description": "The requester's primary email address. To indicate the authenticated user, you can use the special value `me`.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:disable", + // "request": { + // "$ref": "DisableCseKeyPairRequest" + // }, + // "response": { + // "$ref": "CseKeyPair" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/gmail.settings.basic", + // "https://www.googleapis.com/auth/gmail.settings.sharing" + // ] + // } + +} + +// method id "gmail.users.settings.cse.keypairs.enable": + +type UsersSettingsCseKeypairsEnableCall struct { + s *Service + userId string + keyPairId string + enablecsekeypairrequest *EnableCseKeyPairRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Enable: Turns on a client-side encryption key pair that was turned +// off. The key pair becomes active again for any associated client-side +// encryption identities. Beta +// (https://workspace.google.com/terms/service-terms/index.html). +// +// - keyPairId: The identifier of the key pair to turn on. +// - userId: The requester's primary email address. To indicate the +// authenticated user, you can use the special value `me`. +func (r *UsersSettingsCseKeypairsService) Enable(userId string, keyPairId string, enablecsekeypairrequest *EnableCseKeyPairRequest) *UsersSettingsCseKeypairsEnableCall { + c := &UsersSettingsCseKeypairsEnableCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.userId = userId + c.keyPairId = keyPairId + c.enablecsekeypairrequest = enablecsekeypairrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *UsersSettingsCseKeypairsEnableCall) Fields(s ...googleapi.Field) *UsersSettingsCseKeypairsEnableCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *UsersSettingsCseKeypairsEnableCall) Context(ctx context.Context) *UsersSettingsCseKeypairsEnableCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *UsersSettingsCseKeypairsEnableCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *UsersSettingsCseKeypairsEnableCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.enablecsekeypairrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:enable") + 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{ + "userId": c.userId, + "keyPairId": c.keyPairId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "gmail.users.settings.cse.keypairs.enable" call. +// Exactly one of *CseKeyPair or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *CseKeyPair.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 *UsersSettingsCseKeypairsEnableCall) Do(opts ...googleapi.CallOption) (*CseKeyPair, 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 := &CseKeyPair{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Turns on a client-side encryption key pair that was turned off. The key pair becomes active again for any associated client-side encryption identities. [Beta](https://workspace.google.com/terms/service-terms/index.html).", + // "flatPath": "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:enable", + // "httpMethod": "POST", + // "id": "gmail.users.settings.cse.keypairs.enable", + // "parameterOrder": [ + // "userId", + // "keyPairId" + // ], + // "parameters": { + // "keyPairId": { + // "description": "The identifier of the key pair to turn on.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "userId": { + // "default": "me", + // "description": "The requester's primary email address. To indicate the authenticated user, you can use the special value `me`.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:enable", + // "request": { + // "$ref": "EnableCseKeyPairRequest" + // }, + // "response": { + // "$ref": "CseKeyPair" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/gmail.settings.basic", + // "https://www.googleapis.com/auth/gmail.settings.sharing" + // ] + // } + +} + +// method id "gmail.users.settings.cse.keypairs.get": + +type UsersSettingsCseKeypairsGetCall struct { + s *Service + userId string + keyPairId string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Retrieves an existing client-side encryption key pair. Beta +// (https://workspace.google.com/terms/service-terms/index.html). +// +// - keyPairId: The identifier of the key pair to retrieve. +// - userId: The requester's primary email address. To indicate the +// authenticated user, you can use the special value `me`. +func (r *UsersSettingsCseKeypairsService) Get(userId string, keyPairId string) *UsersSettingsCseKeypairsGetCall { + c := &UsersSettingsCseKeypairsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.userId = userId + c.keyPairId = keyPairId + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *UsersSettingsCseKeypairsGetCall) Fields(s ...googleapi.Field) *UsersSettingsCseKeypairsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *UsersSettingsCseKeypairsGetCall) IfNoneMatch(entityTag string) *UsersSettingsCseKeypairsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *UsersSettingsCseKeypairsGetCall) Context(ctx context.Context) *UsersSettingsCseKeypairsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *UsersSettingsCseKeypairsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *UsersSettingsCseKeypairsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "userId": c.userId, + "keyPairId": c.keyPairId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "gmail.users.settings.cse.keypairs.get" call. +// Exactly one of *CseKeyPair or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *CseKeyPair.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 *UsersSettingsCseKeypairsGetCall) Do(opts ...googleapi.CallOption) (*CseKeyPair, 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 := &CseKeyPair{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieves an existing client-side encryption key pair. [Beta](https://workspace.google.com/terms/service-terms/index.html).", + // "flatPath": "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}", + // "httpMethod": "GET", + // "id": "gmail.users.settings.cse.keypairs.get", + // "parameterOrder": [ + // "userId", + // "keyPairId" + // ], + // "parameters": { + // "keyPairId": { + // "description": "The identifier of the key pair to retrieve.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "userId": { + // "default": "me", + // "description": "The requester's primary email address. To indicate the authenticated user, you can use the special value `me`.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}", + // "response": { + // "$ref": "CseKeyPair" + // }, + // "scopes": [ + // "https://mail.google.com/", + // "https://www.googleapis.com/auth/gmail.modify", + // "https://www.googleapis.com/auth/gmail.readonly", + // "https://www.googleapis.com/auth/gmail.settings.basic", + // "https://www.googleapis.com/auth/gmail.settings.sharing" + // ] + // } + +} + +// method id "gmail.users.settings.cse.keypairs.list": + +type UsersSettingsCseKeypairsListCall struct { + s *Service + userId string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists client-side encryption key pairs for an authenticated +// user. Beta +// (https://workspace.google.com/terms/service-terms/index.html). +// +// - userId: The requester's primary email address. To indicate the +// authenticated user, you can use the special value `me`. +func (r *UsersSettingsCseKeypairsService) List(userId string) *UsersSettingsCseKeypairsListCall { + c := &UsersSettingsCseKeypairsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.userId = userId + return c +} + +// PageSize sets the optional parameter "pageSize": The number of key +// pairs to return. If not provided, the page size will default to 20 +// entries. +func (c *UsersSettingsCseKeypairsListCall) PageSize(pageSize int64) *UsersSettingsCseKeypairsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Pagination token +// indicating which page of key pairs to return. If the token is not +// supplied, then the API will return the first page of results. +func (c *UsersSettingsCseKeypairsListCall) PageToken(pageToken string) *UsersSettingsCseKeypairsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *UsersSettingsCseKeypairsListCall) Fields(s ...googleapi.Field) *UsersSettingsCseKeypairsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *UsersSettingsCseKeypairsListCall) IfNoneMatch(entityTag string) *UsersSettingsCseKeypairsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *UsersSettingsCseKeypairsListCall) Context(ctx context.Context) *UsersSettingsCseKeypairsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *UsersSettingsCseKeypairsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *UsersSettingsCseKeypairsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "gmail/v1/users/{userId}/settings/cse/keypairs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "userId": c.userId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "gmail.users.settings.cse.keypairs.list" call. +// Exactly one of *ListCseKeyPairsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListCseKeyPairsResponse.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 *UsersSettingsCseKeypairsListCall) Do(opts ...googleapi.CallOption) (*ListCseKeyPairsResponse, 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 := &ListCseKeyPairsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists client-side encryption key pairs for an authenticated user. [Beta](https://workspace.google.com/terms/service-terms/index.html).", + // "flatPath": "gmail/v1/users/{userId}/settings/cse/keypairs", + // "httpMethod": "GET", + // "id": "gmail.users.settings.cse.keypairs.list", + // "parameterOrder": [ + // "userId" + // ], + // "parameters": { + // "pageSize": { + // "default": "20", + // "description": "The number of key pairs to return. If not provided, the page size will default to 20 entries.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Pagination token indicating which page of key pairs to return. If the token is not supplied, then the API will return the first page of results.", + // "location": "query", + // "type": "string" + // }, + // "userId": { + // "default": "me", + // "description": "The requester's primary email address. To indicate the authenticated user, you can use the special value `me`.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "gmail/v1/users/{userId}/settings/cse/keypairs", + // "response": { + // "$ref": "ListCseKeyPairsResponse" + // }, + // "scopes": [ + // "https://mail.google.com/", + // "https://www.googleapis.com/auth/gmail.modify", + // "https://www.googleapis.com/auth/gmail.readonly", + // "https://www.googleapis.com/auth/gmail.settings.basic", + // "https://www.googleapis.com/auth/gmail.settings.sharing" + // ] + // } + +} + +// 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 *UsersSettingsCseKeypairsListCall) Pages(ctx context.Context, f func(*ListCseKeyPairsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "gmail.users.settings.cse.keypairs.obliterate": + +type UsersSettingsCseKeypairsObliterateCall struct { + s *Service + userId string + keyPairId string + obliteratecsekeypairrequest *ObliterateCseKeyPairRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Obliterate: Deletes a client-side encryption key pair permanently and +// immediately. You can only permanently delete key pairs that have been +// turned off for more than 30 days. To turn off a key pair, use the +// DisableCseKeyPair method. Gmail can't restore or decrypt any messages +// that were encrypted by an obliterated key. Authenticated users and +// Google Workspace administrators lose access to reading the encrypted +// messages. Beta +// (https://workspace.google.com/terms/service-terms/index.html). +// +// - keyPairId: The identifier of the key pair to obliterate. +// - userId: The requester's primary email address. To indicate the +// authenticated user, you can use the special value `me`. +func (r *UsersSettingsCseKeypairsService) Obliterate(userId string, keyPairId string, obliteratecsekeypairrequest *ObliterateCseKeyPairRequest) *UsersSettingsCseKeypairsObliterateCall { + c := &UsersSettingsCseKeypairsObliterateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.userId = userId + c.keyPairId = keyPairId + c.obliteratecsekeypairrequest = obliteratecsekeypairrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *UsersSettingsCseKeypairsObliterateCall) Fields(s ...googleapi.Field) *UsersSettingsCseKeypairsObliterateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *UsersSettingsCseKeypairsObliterateCall) Context(ctx context.Context) *UsersSettingsCseKeypairsObliterateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *UsersSettingsCseKeypairsObliterateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *UsersSettingsCseKeypairsObliterateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.obliteratecsekeypairrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:obliterate") + 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{ + "userId": c.userId, + "keyPairId": c.keyPairId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "gmail.users.settings.cse.keypairs.obliterate" call. +func (c *UsersSettingsCseKeypairsObliterateCall) Do(opts ...googleapi.CallOption) error { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if err != nil { + return err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return gensupport.WrapError(err) + } + return nil + // { + // "description": "Deletes a client-side encryption key pair permanently and immediately. You can only permanently delete key pairs that have been turned off for more than 30 days. To turn off a key pair, use the DisableCseKeyPair method. Gmail can't restore or decrypt any messages that were encrypted by an obliterated key. Authenticated users and Google Workspace administrators lose access to reading the encrypted messages. [Beta](https://workspace.google.com/terms/service-terms/index.html).", + // "flatPath": "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:obliterate", + // "httpMethod": "POST", + // "id": "gmail.users.settings.cse.keypairs.obliterate", + // "parameterOrder": [ + // "userId", + // "keyPairId" + // ], + // "parameters": { + // "keyPairId": { + // "description": "The identifier of the key pair to obliterate.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "userId": { + // "default": "me", + // "description": "The requester's primary email address. To indicate the authenticated user, you can use the special value `me`.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:obliterate", + // "request": { + // "$ref": "ObliterateCseKeyPairRequest" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/gmail.settings.basic", + // "https://www.googleapis.com/auth/gmail.settings.sharing" + // ] + // } + +} + // method id "gmail.users.settings.delegates.create": type UsersSettingsDelegatesCreateCall struct { diff --git a/go.mod b/go.mod index d64df798c76..2d845c545ca 100644 --- a/go.mod +++ b/go.mod @@ -3,23 +3,23 @@ module google.golang.org/api go 1.19 require ( - cloud.google.com/go/compute/metadata v0.2.2 + cloud.google.com/go/compute/metadata v0.2.3 github.com/google/go-cmp v0.5.9 github.com/google/uuid v1.3.0 - github.com/googleapis/enterprise-certificate-proxy v0.2.0 + github.com/googleapis/enterprise-certificate-proxy v0.2.1 github.com/googleapis/gax-go/v2 v2.7.0 go.opencensus.io v0.24.0 golang.org/x/net v0.0.0-20221014081412-f15817d10f9b golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 golang.org/x/sync v0.1.0 google.golang.org/appengine v1.6.7 - google.golang.org/genproto v0.0.0-20221206210731-b1a01be3a5f6 + google.golang.org/genproto v0.0.0-20221227171554-f9683d7f8bef google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.13.0 // indirect + cloud.google.com/go/compute v1.14.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect diff --git a/go.sum b/go.sum index 3387e76c043..44c266858aa 100644 --- a/go.sum +++ b/go.sum @@ -1,9 +1,9 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.13.0 h1:AYrLkB8NPdDRslNp4Jxmzrhdr03fUAIDbiGFjLWowoU= -cloud.google.com/go/compute v1.13.0/go.mod h1:5aPTS0cUNMIc1CE546K+Th6weJUNQErARyZtRXDJ8GE= -cloud.google.com/go/compute/metadata v0.2.2 h1:aWKAjYaBaOSrpKl57+jnS/3fJRQnxL7TvR/u1VVbt6k= -cloud.google.com/go/compute/metadata v0.2.2/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221206210731-b1a01be3a5f6 h1:AGXp12e/9rItf6/4QymU7WsAUwCf+ICW75cuR91nJIc= -google.golang.org/genproto v0.0.0-20221206210731-b1a01be3a5f6/go.mod h1:1dOng4TWOomJrDGhpXjfCD35wQC6jnC7HpRmOFRqEV0= +google.golang.org/genproto v0.0.0-20221227171554-f9683d7f8bef h1:uQ2vjV/sHTsWSqdKeLqmwitzgvjMl7o4IdtHwUDXSJY= +google.golang.org/genproto v0.0.0-20221227171554-f9683d7f8bef/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= diff --git a/google-api-go-generator/gen.go b/google-api-go-generator/gen.go index 3db6e1c6b38..9f09583e4c6 100644 --- a/google-api-go-generator/gen.go +++ b/google-api-go-generator/gen.go @@ -66,6 +66,12 @@ var ( errNoDoc = errors.New("could not read discovery doc") ) +// skipAPIGeneration is a set of APIs to not generate when generating all clients. +var skipAPIGeneration = map[string]bool{ + "sql:v1beta4": true, + "integrations:v1": true, +} + // API represents an API to generate, as well as its state while it's // generating. type API struct { @@ -122,11 +128,6 @@ func (e *compileError) Error() string { return fmt.Sprintf("API %s failed to compile:\n%v", e.api.ID, e.output) } -// skipAPIGeneration is a set of APIs to not generate when generating all clients. -var skipAPIGeneration = map[string]bool{ - "sql:v1beta4": true, -} - func main() { flag.Parse() diff --git a/healthcare/v1/healthcare-api.json b/healthcare/v1/healthcare-api.json index 1bf0e78e3f1..dd04cdd5a64 100644 --- a/healthcare/v1/healthcare-api.json +++ b/healthcare/v1/healthcare-api.json @@ -4053,7 +4053,7 @@ } } }, - "revision": "20221122", + "revision": "20221207", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "ActivateConsentRequest": { @@ -4583,13 +4583,13 @@ "id": "DateShiftConfig", "properties": { "cryptoKey": { - "description": "An AES 128/192/256 bit key. Causes the shift to be computed based on this key and the patient ID. A default key is generated for each de-identification operation and is used when neither `crypto_key` nor `kms_wrapped` is specified. Must not be set if `kms_wrapped` is set.", + "description": "An AES 128/192/256 bit key. The date shift is computed based on this key and the patient ID. If the patient ID is empty for a DICOM resource, the date shift is computed based on this key and the study instance UID. If `crypto_key` is not set, then `kms_wrapped` is used to calculate the date shift. If neither is set, a default key is generated for each de-identify operation. Must not be set if `kms_wrapped` is set.", "format": "byte", "type": "string" }, "kmsWrapped": { "$ref": "KmsWrappedCryptoKey", - "description": "KMS wrapped key. Must not be set if `crypto_key` is set." + "description": "KMS wrapped key. If `kms_wrapped` is not set, then `crypto_key` is used to calculate the date shift. If neither is set, a default key is generated for each de-identify operation. Must not be set if `crypto_key` is set." } }, "type": "object" diff --git a/healthcare/v1/healthcare-gen.go b/healthcare/v1/healthcare-gen.go index 0bab962b7a8..3508304b422 100644 --- a/healthcare/v1/healthcare-gen.go +++ b/healthcare/v1/healthcare-gen.go @@ -1336,14 +1336,19 @@ func (s *Dataset) MarshalJSON() ([]byte, error) { // amount which is consistent for a given patient and crypto key // combination. type DateShiftConfig struct { - // CryptoKey: An AES 128/192/256 bit key. Causes the shift to be - // computed based on this key and the patient ID. A default key is - // generated for each de-identification operation and is used when - // neither `crypto_key` nor `kms_wrapped` is specified. Must not be set - // if `kms_wrapped` is set. + // CryptoKey: An AES 128/192/256 bit key. The date shift is computed + // based on this key and the patient ID. If the patient ID is empty for + // a DICOM resource, the date shift is computed based on this key and + // the study instance UID. If `crypto_key` is not set, then + // `kms_wrapped` is used to calculate the date shift. If neither is set, + // a default key is generated for each de-identify operation. Must not + // be set if `kms_wrapped` is set. CryptoKey string `json:"cryptoKey,omitempty"` - // KmsWrapped: KMS wrapped key. Must not be set if `crypto_key` is set. + // KmsWrapped: KMS wrapped key. If `kms_wrapped` is not set, then + // `crypto_key` is used to calculate the date shift. If neither is set, + // a default key is generated for each de-identify operation. Must not + // be set if `crypto_key` is set. KmsWrapped *KmsWrappedCryptoKey `json:"kmsWrapped,omitempty"` // ForceSendFields is a list of field names (e.g. "CryptoKey") to diff --git a/healthcare/v1beta1/healthcare-api.json b/healthcare/v1beta1/healthcare-api.json index 7bc67dca1cb..b8c0a0e1f61 100644 --- a/healthcare/v1beta1/healthcare-api.json +++ b/healthcare/v1beta1/healthcare-api.json @@ -4865,7 +4865,7 @@ } } }, - "revision": "20221122", + "revision": "20221207", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "Action": { @@ -5616,13 +5616,13 @@ "id": "DateShiftConfig", "properties": { "cryptoKey": { - "description": "An AES 128/192/256 bit key. Causes the shift to be computed based on this key and the patient ID. A default key is generated for each de-identification operation and is used when neither `crypto_key` nor `kms_wrapped` is specified. Must not be set if `kms_wrapped` is set.", + "description": "An AES 128/192/256 bit key. The date shift is computed based on this key and the patient ID. If the patient ID is empty for a DICOM resource, the date shift is computed based on this key and the study instance UID. If `crypto_key` is not set, then `kms_wrapped` is used to calculate the date shift. If neither is set, a default key is generated for each de-identify operation. Must not be set if `kms_wrapped` is set.", "format": "byte", "type": "string" }, "kmsWrapped": { "$ref": "KmsWrappedCryptoKey", - "description": "KMS wrapped key. Must not be set if `crypto_key` is set." + "description": "KMS wrapped key. If `kms_wrapped` is not set, then `crypto_key` is used to calculate the date shift. If neither is set, a default key is generated for each de-identify operation. Must not be set if `crypto_key` is set." } }, "type": "object" diff --git a/healthcare/v1beta1/healthcare-gen.go b/healthcare/v1beta1/healthcare-gen.go index 0655404c994..a89dd8167f8 100644 --- a/healthcare/v1beta1/healthcare-gen.go +++ b/healthcare/v1beta1/healthcare-gen.go @@ -1779,14 +1779,19 @@ func (s *Dataset) MarshalJSON() ([]byte, error) { // amount which is consistent for a given patient and crypto key // combination. type DateShiftConfig struct { - // CryptoKey: An AES 128/192/256 bit key. Causes the shift to be - // computed based on this key and the patient ID. A default key is - // generated for each de-identification operation and is used when - // neither `crypto_key` nor `kms_wrapped` is specified. Must not be set - // if `kms_wrapped` is set. + // CryptoKey: An AES 128/192/256 bit key. The date shift is computed + // based on this key and the patient ID. If the patient ID is empty for + // a DICOM resource, the date shift is computed based on this key and + // the study instance UID. If `crypto_key` is not set, then + // `kms_wrapped` is used to calculate the date shift. If neither is set, + // a default key is generated for each de-identify operation. Must not + // be set if `kms_wrapped` is set. CryptoKey string `json:"cryptoKey,omitempty"` - // KmsWrapped: KMS wrapped key. Must not be set if `crypto_key` is set. + // KmsWrapped: KMS wrapped key. If `kms_wrapped` is not set, then + // `crypto_key` is used to calculate the date shift. If neither is set, + // a default key is generated for each de-identify operation. Must not + // be set if `crypto_key` is set. KmsWrapped *KmsWrappedCryptoKey `json:"kmsWrapped,omitempty"` // ForceSendFields is a list of field names (e.g. "CryptoKey") to diff --git a/ids/v1/ids-api.json b/ids/v1/ids-api.json index 074ec74a781..19d6d33a5ba 100644 --- a/ids/v1/ids-api.json +++ b/ids/v1/ids-api.json @@ -349,6 +349,45 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "patch": { + "description": "Updates the parameters of a single Endpoint.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}", + "httpMethod": "PATCH", + "id": "ids.projects.locations.endpoints.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The name of the endpoint.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Field mask is used to specify the fields to be overwritten in the Endpoint resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "Endpoint" + }, + "response": { + "$ref": "Operation" + }, + "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}/endpoints/{endpointsId}:setIamPolicy", @@ -535,7 +574,7 @@ } } }, - "revision": "20220828", + "revision": "20221113", "rootUrl": "https://ids.googleapis.com/", "schemas": { "AuditConfig": { @@ -699,6 +738,13 @@ "readOnly": true, "type": "string" }, + "threatExceptions": { + "description": "List of threat IDs to be excepted from generating alerts.", + "items": { + "type": "string" + }, + "type": "array" + }, "trafficLogs": { "description": "Whether the endpoint should report traffic logs in addition to threat logs.", "type": "boolean" diff --git a/ids/v1/ids-gen.go b/ids/v1/ids-gen.go index 1b5aadbe32d..bfa3e5156c0 100644 --- a/ids/v1/ids-gen.go +++ b/ids/v1/ids-gen.go @@ -421,6 +421,10 @@ type Endpoint struct { // "UPDATING" - Being updated. State string `json:"state,omitempty"` + // ThreatExceptions: List of threat IDs to be excepted from generating + // alerts. + ThreatExceptions []string `json:"threatExceptions,omitempty"` + // TrafficLogs: Whether the endpoint should report traffic logs in // addition to threat logs. TrafficLogs bool `json:"trafficLogs,omitempty"` @@ -2282,6 +2286,188 @@ func (c *ProjectsLocationsEndpointsListCall) Pages(ctx context.Context, f func(* } } +// method id "ids.projects.locations.endpoints.patch": + +type ProjectsLocationsEndpointsPatchCall struct { + s *Service + name string + endpoint *Endpoint + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the parameters of a single Endpoint. +// +// - name: Output only. The name of the endpoint. +func (r *ProjectsLocationsEndpointsService) Patch(name string, endpoint *Endpoint) *ProjectsLocationsEndpointsPatchCall { + c := &ProjectsLocationsEndpointsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.endpoint = endpoint + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. The server will guarantee +// that for at least 60 minutes since the first request. For example, +// consider a situation where you make an initial request and t he +// request times out. If you make the request again with the same +// request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate +// commitments. The request ID must be a valid UUID with the exception +// that zero UUID is not supported +// (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsEndpointsPatchCall) RequestId(requestId string) *ProjectsLocationsEndpointsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask is +// used to specify the fields to be overwritten in the Endpoint resource +// by the update. The fields specified in the update_mask are relative +// to the resource, not the full request. A field will be overwritten if +// it is in the mask. If the user does not provide a mask then all +// fields will be overwritten. +func (c *ProjectsLocationsEndpointsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEndpointsPatchCall { + 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 information. +func (c *ProjectsLocationsEndpointsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsEndpointsPatchCall) Context(ctx context.Context) *ProjectsLocationsEndpointsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsEndpointsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEndpointsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.endpoint) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "ids.projects.locations.endpoints.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsEndpointsPatchCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates the parameters of a single Endpoint.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}", + // "httpMethod": "PATCH", + // "id": "ids.projects.locations.endpoints.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. The name of the endpoint.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask is used to specify the fields to be overwritten in the Endpoint resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "Endpoint" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "ids.projects.locations.endpoints.setIamPolicy": type ProjectsLocationsEndpointsSetIamPolicyCall struct { diff --git a/idtoken/idtoken.go b/idtoken/idtoken.go index 3dce463bd61..b7a82e92bf0 100644 --- a/idtoken/idtoken.go +++ b/idtoken/idtoken.go @@ -9,11 +9,14 @@ import ( "encoding/json" "fmt" "net/http" + "path/filepath" + "strings" "cloud.google.com/go/compute/metadata" "golang.org/x/oauth2" "golang.org/x/oauth2/google" + "google.golang.org/api/impersonate" "google.golang.org/api/internal" "google.golang.org/api/option" "google.golang.org/api/option/internaloption" @@ -25,6 +28,14 @@ import ( // ClientOption is for configuring a Google API client or transport. type ClientOption = option.ClientOption +type credentialsType int + +const ( + unknownCredType credentialsType = iota + serviceAccount + impersonatedServiceAccount +) + // NewClient creates a HTTP Client that automatically adds an ID token to each // request via an Authorization header. The token will have the audience // provided and be configured with the supplied options. The parameter audience @@ -103,45 +114,83 @@ func newTokenSource(ctx context.Context, audience string, ds *internal.DialSetti } func tokenSourceFromBytes(ctx context.Context, data []byte, audience string, ds *internal.DialSettings) (oauth2.TokenSource, error) { - if err := isServiceAccount(data); err != nil { - return nil, err - } - cfg, err := google.JWTConfigFromJSON(data, ds.GetScopes()...) + allowedType, err := getAllowedType(data) if err != nil { return nil, err } - - customClaims := ds.CustomClaims - if customClaims == nil { - customClaims = make(map[string]interface{}) + switch allowedType { + case serviceAccount: + cfg, err := google.JWTConfigFromJSON(data, ds.GetScopes()...) + if err != nil { + return nil, err + } + customClaims := ds.CustomClaims + if customClaims == nil { + customClaims = make(map[string]interface{}) + } + customClaims["target_audience"] = audience + + cfg.PrivateClaims = customClaims + cfg.UseIDToken = true + + ts := cfg.TokenSource(ctx) + tok, err := ts.Token() + if err != nil { + return nil, err + } + return oauth2.ReuseTokenSource(tok, ts), nil + case impersonatedServiceAccount: + type url struct { + ServiceAccountImpersonationURL string `json:"service_account_impersonation_url"` + } + var accountURL *url + if err := json.Unmarshal(data, &accountURL); err != nil { + return nil, err + } + account := filepath.Base(accountURL.ServiceAccountImpersonationURL) + account = strings.Split(account, ":")[0] + + config := impersonate.IDTokenConfig{ + Audience: audience, + TargetPrincipal: account, + IncludeEmail: true, + } + ts, err := impersonate.IDTokenSource(ctx, config) + if err != nil { + return nil, err + } + return ts, nil + default: + return nil, fmt.Errorf("idtoken: unsupported credentials type") } - customClaims["target_audience"] = audience - - cfg.PrivateClaims = customClaims - cfg.UseIDToken = true - - ts := cfg.TokenSource(ctx) - tok, err := ts.Token() - if err != nil { - return nil, err - } - return oauth2.ReuseTokenSource(tok, ts), nil } -func isServiceAccount(data []byte) error { +// getAllowedType returns the credentials type of type credentialsType, and an error. +// allowed types are "service_account" and "impersonated_service_account" +func getAllowedType(data []byte) (credentialsType, error) { + var t credentialsType if len(data) == 0 { - return fmt.Errorf("idtoken: credential provided is 0 bytes") + return t, fmt.Errorf("idtoken: credential provided is 0 bytes") } var f struct { Type string `json:"type"` } if err := json.Unmarshal(data, &f); err != nil { - return err + return t, err } - if f.Type != "service_account" { - return fmt.Errorf("idtoken: credential must be service_account, found %q", f.Type) + t = parseCredType(f.Type) + return t, nil +} + +func parseCredType(typeString string) credentialsType { + switch typeString { + case "service_account": + return serviceAccount + case "impersonated_service_account": + return impersonatedServiceAccount + default: + return unknownCredType } - return nil } // WithCustomClaims optionally specifies custom private claims for an ID token. diff --git a/idtoken/validate.go b/idtoken/validate.go index e2b84f0b67a..5f89b9b630e 100644 --- a/idtoken/validate.go +++ b/idtoken/validate.go @@ -19,6 +19,7 @@ import ( "strings" "time" + "google.golang.org/api/option" "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -36,7 +37,10 @@ var ( ) func defaultValidatorOpts() []ClientOption { - return []ClientOption{internaloption.WithDefaultScopes("https://www.googleapis.com/auth/cloud-platform")} + return []ClientOption{ + internaloption.WithDefaultScopes("https://www.googleapis.com/auth/cloud-platform"), + option.WithoutAuthentication(), + } } // Payload represents a decoded payload of an ID Token. diff --git a/integration-tests/byoid/integration_test.go b/integration-tests/byoid/integration_test.go index da3074c4233..612cf8eae4c 100644 --- a/integration-tests/byoid/integration_test.go +++ b/integration-tests/byoid/integration_test.go @@ -443,8 +443,8 @@ func TestConfigurableTokenLifetime(t *testing.T) { } now := time.Now() - expiryMax := now.Add(tokenLifetimeSeconds * time.Second) - expiryMin := expiryMax.Add(-safetyBuffer * time.Second) + expiryMax := now.Add((safetyBuffer + tokenLifetimeSeconds) * time.Second) + expiryMin := now.Add((tokenLifetimeSeconds - safetyBuffer) * time.Second) if token.Expiry.Before(expiryMin) || token.Expiry.After(expiryMax) { t.Fatalf("Expiry time not set correctly. Got %v, want %v", token.Expiry, expiryMax) } diff --git a/integrations/v1/integrations-api.json b/integrations/v1/integrations-api.json new file mode 100644 index 00000000000..032bc43c24e --- /dev/null +++ b/integrations/v1/integrations-api.json @@ -0,0 +1,12134 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/cloud-platform": { + "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account." + } + } + } + }, + "basePath": "", + "baseUrl": "https://integrations.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Integrations", + "description": "", + "discoveryVersion": "v1", + "documentationLink": "https://cloud.google.com/application-integration", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "integrations:v1", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://integrations.mtls.googleapis.com/", + "name": "integrations", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "callback": { + "methods": { + "generateToken": { + "description": "Receives the auth code and auth config id to combine that with the client id and secret to retrieve access tokens from the token endpoint. Returns either a success or error message when it's done.", + "flatPath": "v1/callback:generateToken", + "httpMethod": "GET", + "id": "integrations.callback.generateToken", + "parameterOrder": [], + "parameters": { + "code": { + "description": "The auth code for the given request", + "location": "query", + "type": "string" + }, + "gcpProjectId": { + "description": "The gcp project id of the request", + "location": "query", + "type": "string" + }, + "product": { + "description": "Which product sends the request", + "enum": [ + "UNSPECIFIED_PRODUCT", + "IP", + "APIGEE", + "SECURITY" + ], + "enumDescriptions": [ + "", + "", + "", + "" + ], + "location": "query", + "type": "string" + }, + "redirectUri": { + "description": "Redirect uri of the auth code request", + "location": "query", + "type": "string" + }, + "state": { + "description": "The auth config id for the given request", + "location": "query", + "type": "string" + } + }, + "path": "v1/callback:generateToken", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaGenerateTokenResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "connectorPlatformRegions": { + "methods": { + "enumerate": { + "description": "Enumerates the regions for which Connector Platform is provisioned.", + "flatPath": "v1/connectorPlatformRegions:enumerate", + "httpMethod": "GET", + "id": "integrations.connectorPlatformRegions.enumerate", + "parameterOrder": [], + "parameters": {}, + "path": "v1/connectorPlatformRegions:enumerate", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "projects": { + "methods": { + "getClientmetadata": { + "description": "Gets the metadata info for the requested client", + "flatPath": "v1/projects/{projectsId}/clientmetadata", + "httpMethod": "GET", + "id": "integrations.projects.getClientmetadata", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Required: The ID of the GCP Project to be provisioned.", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/clientmetadata", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaGetClientMetadataResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "locations": { + "methods": { + "getClients": { + "description": "Gets the client configuration for the given project and location resource name", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/clients", + "httpMethod": "GET", + "id": "integrations.projects.locations.getClients", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Required: The ID of the GCP Project to be provisioned.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/clients", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaGetClientResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "listTaskEntities": { + "description": "This is a UI only method and will be moved away. Returns a list of common tasks.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:listTaskEntities", + "httpMethod": "GET", + "id": "integrations.projects.locations.listTaskEntities", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The location resource of the request. This is not going to be used but preserve the field for future.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}:listTaskEntities", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "appsScriptProjects": { + "methods": { + "create": { + "description": "Creates an Apps Script project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/appsScriptProjects", + "httpMethod": "POST", + "id": "integrations.projects.locations.appsScriptProjects.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The project that the executed integration belongs to.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/appsScriptProjects", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "link": { + "description": "Links a existing Apps Script project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/appsScriptProjects:link", + "httpMethod": "POST", + "id": "integrations.projects.locations.appsScriptProjects.link", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The project that the executed integration belongs to.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/appsScriptProjects:link", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "authConfigs": { + "methods": { + "create": { + "description": "Creates an auth config record. Fetch corresponding credentials for specific auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the auth config with Cloud KMS and store the encrypted credentials in Spanner. Returns the encrypted auth config.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authConfigs", + "httpMethod": "POST", + "id": "integrations.projects.locations.authConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "clientCertificate.encryptedPrivateKey": { + "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + "location": "query", + "type": "string" + }, + "clientCertificate.passphrase": { + "description": "'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key.", + "location": "query", + "type": "string" + }, + "clientCertificate.sslCertificate": { + "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. \"projects/{project}/locations/{location}\" format.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/authConfigs", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an auth config.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authConfigs/{authConfigsId}", + "httpMethod": "DELETE", + "id": "integrations.projects.locations.authConfigs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name that is associated with the AuthConfig.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a complete auth config. If the auth config doesn't exist, Code.NOT_FOUND exception will be thrown. Returns the decrypted auth config.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authConfigs/{authConfigsId}", + "httpMethod": "GET", + "id": "integrations.projects.locations.authConfigs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name that is associated with the AuthConfig.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all auth configs that match the filter. Restrict to auth configs belong to the current client only.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authConfigs", + "httpMethod": "GET", + "id": "integrations.projects.locations.authConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The size of entries in the response. If unspecified, defaults to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The token returned in the previous response.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The client, which owns this collection of AuthConfigs.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "readMask": { + "description": "The mask which specifies fields that need to be returned in the AuthConfig's response.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/authConfigs", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListAuthConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an auth config. If credential is updated, fetch the encrypted auth config from Spanner, decrypt with Cloud KMS key, update the credential fields, re-encrypt with Cloud KMS key and update the Spanner record. For other fields, directly update the Spanner record. Returns the encrypted auth config.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authConfigs/{authConfigsId}", + "httpMethod": "PATCH", + "id": "integrations.projects.locations.authConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "clientCertificate.encryptedPrivateKey": { + "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + "location": "query", + "type": "string" + }, + "clientCertificate.passphrase": { + "description": "'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key.", + "location": "query", + "type": "string" + }, + "clientCertificate.sslCertificate": { + "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + "location": "query", + "type": "string" + }, + "name": { + "description": "Resource name of the SFDC instance projects/{project}/locations/{location}/authConfigs/{authConfig}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Field mask specifying the fields in the above AuthConfig that have been modified and need to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "certificates": { + "methods": { + "create": { + "description": "Creates a new certificate. The certificate will be registered to the trawler service and will be encrypted using cloud KMS and stored in Spanner Returns the certificate.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/certificates", + "httpMethod": "POST", + "id": "integrations.projects.locations.certificates.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. \"projects/{project}/locations/{location}\" format.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/certificates", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Delete a certificate", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/certificates/{certificatesId}", + "httpMethod": "DELETE", + "id": "integrations.projects.locations.certificates.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name that is associated with the Certificate.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Get a certificates in the specified project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/certificates/{certificatesId}", + "httpMethod": "GET", + "id": "integrations.projects.locations.certificates.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The certificate to retrieve. Format: projects/{project}/locations/{location}/certificates/{certificate}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "List all the certificates that match the filter. Restrict to certificate of current client only.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/certificates", + "httpMethod": "GET", + "id": "integrations.projects.locations.certificates.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The size of entries in the response. If unspecified, defaults to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The token returned in the previous response.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The client, which owns this collection of Certificates.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "readMask": { + "description": "The mask which specifies fields that need to be returned in the Certificate's response.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/certificates", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListCertificatesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the certificate by id. If new certificate file is updated, it will register with the trawler service, re-encrypt with cloud KMS and update the Spanner record. Other fields will directly update the Spanner record. Returns the Certificate.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/certificates/{certificatesId}", + "httpMethod": "PATCH", + "id": "integrations.projects.locations.certificates.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Auto generated primary key", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificates/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Field mask specifying the fields in the above Certificate that have been modified and need to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "clients": { + "methods": { + "deprovision": { + "description": "Perform the deprovisioning steps to disable a user GCP project to use IP and purge all related data in a wipeout-compliant way.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/clients:deprovision", + "httpMethod": "POST", + "id": "integrations.projects.locations.clients.deprovision", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Required: The ID of the GCP Project to be deprovisioned.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/clients:deprovision", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaDeprovisionClientRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "provision": { + "description": "Perform the provisioning steps to enable a user GCP project to use IP. If GCP project already registered on IP end via Apigee Integration, provisioning will fail.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/clients:provision", + "httpMethod": "POST", + "id": "integrations.projects.locations.clients.provision", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Required: The ID of the GCP Project to be provisioned.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/clients:provision", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaProvisionClientRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "cloudFunctions": { + "methods": { + "create": { + "description": "Creates an cloud function project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cloudFunctions", + "httpMethod": "POST", + "id": "integrations.projects.locations.cloudFunctions.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The project that the executed integration belongs to.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/cloudFunctions", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "connections": { + "methods": { + "getConnectionSchemaMetadata": { + "description": "Lists the available entities and actions associated with a Connection.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/connectionSchemaMetadata", + "httpMethod": "GET", + "id": "integrations.projects.locations.connections.getConnectionSchemaMetadata", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. ConnectionSchemaMetadata name. Format: projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+/connectionSchemaMetadata$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Connections in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections", + "httpMethod": "GET", + "id": "integrations.projects.locations.connections.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Filter.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Order by parameters.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent resource of the Connection, of the form: `projects/*/locations/*`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/connections", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListConnectionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "runtimeActionSchemas": { + "methods": { + "list": { + "description": "Lists the JSON schemas for the inputs and outputs of actions, filtered by action name.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/runtimeActionSchemas", + "httpMethod": "GET", + "id": "integrations.projects.locations.connections.runtimeActionSchemas.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Filter. Only the action field with literal equality operator is supported.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent resource of RuntimeActionSchema. Format: projects/{project}/locations/{location}/connections/{connection}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/runtimeActionSchemas", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "runtimeEntitySchemas": { + "methods": { + "list": { + "description": "Lists the JSON schemas for the properties of runtime entities, filtered by entity name.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/runtimeEntitySchemas", + "httpMethod": "GET", + "id": "integrations.projects.locations.connections.runtimeEntitySchemas.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Filter. Only the entity field with literal equality operator is supported.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent resource of RuntimeEntitySchema. Format: projects/{project}/locations/{location}/connections/{connection}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/runtimeEntitySchemas", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "integrations": { + "methods": { + "delete": { + "description": "Delete the selected integration and all versions inside", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}", + "httpMethod": "DELETE", + "id": "integrations.projects.locations.integrations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The location resource of the request.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "execute": { + "description": "Executes integrations synchronously by passing the trigger id in the request body. The request is not returned until the requested executions are either fulfilled or experienced an error. If the integration name is not specified (passing `-`), all of the associated integration under the given trigger_id will be executed. Otherwise only the specified integration for the given `trigger_id` is executed. This is helpful for execution the integration from UI.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}:execute", + "httpMethod": "POST", + "id": "integrations.projects.locations.integrations.execute", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The integration resource name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:execute", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Returns the list of all integrations in the specified project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations", + "httpMethod": "GET", + "id": "integrations.projects.locations.integrations.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of \":\" (containment), \"=\" (equality), \"\u003e\" (greater), \"\u003c\" (less than), \u003e=\" (greater than or equal to), \"\u003c=\" (less than or equal to), and \"!=\" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\\"1\\\" AND state=ACTIVE AND description:\"test\". Filtering cannot be performed on repeated fields like `task_config`.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "The results would be returned in order you specified here. Supported sort keys are: Descending sort order by \"last_modified_time\", \"created_time\", \"snapshot_number\". Ascending sort order by the integration name.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The page size for the resquest.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The page token for the resquest.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Project and location from which the integrations should be listed. Format: projects/{project}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/integrations", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "monitorexecutionstats": { + "description": "Get execution stats", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}:monitorexecutionstats", + "httpMethod": "POST", + "id": "integrations.projects.locations.integrations.monitorexecutionstats", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource name: {parent=projects/*/locations/*}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}:monitorexecutionstats", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "schedule": { + "description": "Schedules an integration for execution by passing the trigger id and the scheduled time in the request body.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}:schedule", + "httpMethod": "POST", + "id": "integrations.projects.locations.integrations.schedule", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The integration resource name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:schedule", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "test": { + "description": "Execute the integration in draft state", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}:test", + "httpMethod": "POST", + "id": "integrations.projects.locations.integrations.test", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Auto-generated primary key.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:test", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaTestIntegrationsRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaTestIntegrationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "executions": { + "methods": { + "download": { + "description": "Download the execution.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executions/{executionsId}:download", + "httpMethod": "GET", + "id": "integrations.projects.locations.integrations.executions.download", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_id}/executions/{execution_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/executions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:download", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaDownloadExecutionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Get an execution in the specified project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executions/{executionsId}", + "httpMethod": "GET", + "id": "integrations.projects.locations.integrations.executions.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_id}/executions/{execution_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/executions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaExecution" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists the results of all the integration executions. The response includes the same information as the [execution log](https://cloud.google.com/application-integration/docs/viewing-logs) in the Integration UI.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executions", + "httpMethod": "GET", + "id": "integrations.projects.locations.integrations.executions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Standard filter field, we support filtering on all fields in EventExecutionParamIndexes table. All fields support for EQUALS, in additional: CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterKey, ParameterValue, ParameterType support for HAS For example: \"parameter_value\" HAS \\\"parameter1\\\" Also supports operators like AND, OR, NOT For example, trigger_id=\\\"id1\\\" AND event_execution_state=\\\"FAILED\\\"", + "location": "query", + "type": "string" + }, + "filterParams.customFilter": { + "description": "Optional user-provided custom filter.", + "location": "query", + "type": "string" + }, + "filterParams.endTime": { + "description": "End timestamp.", + "format": "int64", + "location": "query", + "type": "string" + }, + "filterParams.eventStatuses": { + "description": "List of possible event statuses.", + "location": "query", + "repeated": true, + "type": "string" + }, + "filterParams.executionId": { + "description": "Execution id.", + "location": "query", + "type": "string" + }, + "filterParams.parameterKey": { + "description": "Param key. DEPRECATED. User parameter_pair_key instead.", + "location": "query", + "type": "string" + }, + "filterParams.parameterPairKey": { + "description": "Param key in the key value pair filter.", + "location": "query", + "type": "string" + }, + "filterParams.parameterPairValue": { + "description": "Param value in the key value pair filter.", + "location": "query", + "type": "string" + }, + "filterParams.parameterType": { + "description": "Param type.", + "location": "query", + "type": "string" + }, + "filterParams.parameterValue": { + "description": "Param value. DEPRECATED. User parameter_pair_value instead.", + "location": "query", + "type": "string" + }, + "filterParams.startTime": { + "description": "Start timestamp.", + "format": "int64", + "location": "query", + "type": "string" + }, + "filterParams.taskStatuses": { + "description": "List of possible task statuses.", + "location": "query", + "repeated": true, + "type": "string" + }, + "filterParams.workflowName": { + "description": "Workflow name.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. The results would be returned in order you specified here. Currently supporting \"last_modified_time\" and \"create_time\".", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The size of entries in the response.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The token returned in the previous response.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource name of the integration execution.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + }, + "readMask": { + "description": "Optional. View mask for the response data. If set, only the field specified will be returned as part of the result. If not set, all fields in event execution info will be filled and returned.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "refreshAcl": { + "description": "Optional. If true, the service will use the most recent acl information to list event execution infos and renew the acl cache. Note that fetching the most recent acl is synchronous, so it will increase RPC call latency.", + "location": "query", + "type": "boolean" + }, + "truncateParams": { + "description": "Optional. If true, the service will truncate the params to only keep the first 1000 characters of string params and empty the executions in order to make response smaller. Only works for UI and when the params fields are not filtered out.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+parent}/executions", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListExecutionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "suspensions": { + "methods": { + "lift": { + "description": "* Lifts suspension for advanced suspension task. Fetch corresponding suspension with provided suspension Id, resolve suspension, and set up suspension result for the Suspension Task.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions/{suspensionsId}:lift", + "httpMethod": "POST", + "id": "integrations.projects.locations.integrations.executions.suspensions.lift", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource that the suspension belongs to. \"projects/{project}/locations/{location}/products/{product}/integrations/{integration}/executions/{execution}/suspensions/{suspenion}\" format.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/executions/[^/]+/suspensions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:lift", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaLiftSuspensionRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaLiftSuspensionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "* Lists suspensions associated with a specific execution. Only those with permissions to resolve the relevant suspensions will be able to view them.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions", + "httpMethod": "GET", + "id": "integrations.projects.locations.integrations.executions.suspensions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Standard filter field.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Field name to order by.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Maximum number of entries in the response.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Token to retrieve a specific page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_name}/executions/{execution_name}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/executions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/suspensions", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListSuspensionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "resolve": { + "description": "* Resolves (lifts/rejects) any number of suspensions. If the integration is already running, only the status of the suspension is updated. Otherwise, the suspended integration will begin execution again.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions/{suspensionsId}:resolve", + "httpMethod": "POST", + "id": "integrations.projects.locations.integrations.executions.suspensions.resolve", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_name}/executions/{execution_name}/suspensions/{suspension_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/executions/[^/]+/suspensions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:resolve", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaResolveSuspensionRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaResolveSuspensionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "executionsnapshots": { + "methods": { + "list": { + "description": "Lists the snapshots of a given integration executions. This RPC is not being used.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executionsnapshots", + "httpMethod": "GET", + "id": "integrations.projects.locations.integrations.executionsnapshots.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Currently supports filter by `execution_info_id` or `execution_snapshot_id`.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Number of entries to be returned in a page.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The token used to retrieve the next page results.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource name of the integration execution.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + }, + "readMask": { + "description": "View mask for the response data. If set, only the field specified will be returned as part of the result. If not set, all fields in event execution snapshot will be filled and returned.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/executionsnapshots", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "versions": { + "methods": { + "archive": { + "description": "Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as \"HEAD\", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being archived is DRAFT, and if the `locked_by` user is not the same as the user performing the Archive. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Archiving a integration. Currently, there is no unarchive mechanism.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:archive", + "httpMethod": "POST", + "id": "integrations.projects.locations.integrations.versions.archive", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The version to archive. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:archive", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "create": { + "description": "Create a integration with a draft version in the specified project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions", + "httpMethod": "POST", + "id": "integrations.projects.locations.integrations.versions.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "newIntegration": { + "description": "Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created.", + "location": "query", + "type": "boolean" + }, + "parent": { + "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/versions", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "deactivate": { + "description": "Sets the status of the ACTIVE integration to SNAPSHOT with a new tag \"PREVIOUSLY_PUBLISHED\" after validating it. The \"HEAD\" and \"PUBLISH_REQUESTED\" tags do not change. This RPC throws an exception if the version being snapshot is not ACTIVE. Audit fields added include action, action_by, action_timestamp.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:deactivate", + "httpMethod": "POST", + "id": "integrations.projects.locations.integrations.versions.deactivate", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:deactivate", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as \"HEAD\", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being deleted is DRAFT, and if the `locked_by` user is not the same as the user performing the Delete. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Deleting a integration. Currently, there is no undelete mechanism.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}", + "httpMethod": "DELETE", + "id": "integrations.projects.locations.integrations.versions.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The version to delete. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "download": { + "description": "Downloads an integration. Retrieves the `IntegrationVersion` for a given `integration_id` and returns the response as a string.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:download", + "httpMethod": "GET", + "id": "integrations.projects.locations.integrations.versions.download", + "parameterOrder": [ + "name" + ], + "parameters": { + "fileFormat": { + "description": "File format for download request.", + "enum": [ + "FILE_FORMAT_UNSPECIFIED", + "JSON", + "YAML" + ], + "enumDescriptions": [ + "Unspecified file format", + "JSON File Format", + "YAML File Format" + ], + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The version to download. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:download", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Get a integration in the specified project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}", + "httpMethod": "GET", + "id": "integrations.projects.locations.integrations.versions.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The version to retrieve. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Returns the list of all integration versions in the specified project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions", + "httpMethod": "GET", + "id": "integrations.projects.locations.integrations.versions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "fieldMask": { + "description": "The field mask which specifies the particular data to be returned.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "filter": { + "description": "Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of \":\" (containment), \"=\" (equality), \"\u003e\" (greater), \"\u003c\" (less than), \u003e=\" (greater than or equal to), \"\u003c=\" (less than or equal to), and \"!=\" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\\"1\\\" AND state=ACTIVE AND description:\"test\". Filtering cannot be performed on repeated fields like `task_config`.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "The results would be returned in order you specified here. Currently supported sort keys are: Descending sort order for \"last_modified_time\", \"created_time\", \"snapshot_number\" Ascending sort order for \"name\".", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of versions to return. The service may return fewer than this value. If unspecified, at most 50 versions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListIntegrationVersions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListIntegrationVersions` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration} Specifically, when parent equals: 1. projects//locations//integrations/, Meaning: \"List versions (with filter) for a particular integration\". 2. projects//locations//integrations/- Meaning: \"List versions (with filter) for a client within a particular region\". 3. projects//locations/-/integrations/- Meaning: \"List versions (with filter) for a client\".", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/versions", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Update a integration with a draft version in the specified project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}", + "httpMethod": "PATCH", + "id": "integrations.projects.locations.integrations.versions.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Auto-generated primary key.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Field mask specifying the fields in the above integration that have been modified and need to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "publish": { + "description": "This RPC throws an exception if the integration is in ARCHIVED or ACTIVE state. This RPC throws an exception if the version being published is DRAFT, and if the `locked_by` user is not the same as the user performing the Publish. Audit fields updated include last_published_timestamp, last_published_by, last_modified_timestamp, last_modified_by. Any existing lock is on this integration is released.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:publish", + "httpMethod": "POST", + "id": "integrations.projects.locations.integrations.versions.publish", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The version to publish. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:publish", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "unpublish": { + "description": "Sets the status of the ACTIVE integration to SNAPSHOT with a new tag \"PREVIOUSLY_PUBLISHED\" after validating it. The \"HEAD\" and \"PUBLISH_REQUESTED\" tags do not change. This RPC throws an exception if the version being snapshot is not ACTIVE. Audit fields added include action, action_by, action_timestamp.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:unpublish", + "httpMethod": "POST", + "id": "integrations.projects.locations.integrations.versions.unpublish", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:unpublish", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "upload": { + "description": "Uploads an integration. The content can be a previously downloaded integration. Performs the same function as CreateDraftIntegrationVersion, but accepts input in a string format, which holds the complete representation of the IntegrationVersion content.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions:upload", + "httpMethod": "POST", + "id": "integrations.projects.locations.integrations.versions.upload", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The version to upload. Format: projects/{project}/locations/{location}/integrations/{integration}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/versions:upload", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "validate": { + "description": "Validates the given integration. If the id doesn't exist, a NotFoundException is thrown. If validation fails a CanonicalCodeException is thrown. If there was no failure an empty response is returned.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:validate", + "httpMethod": "POST", + "id": "integrations.projects.locations.integrations.versions.validate", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The version to validate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:validate", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "products": { + "methods": { + "createBundle": { + "description": "PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. Create a bundle.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}:createBundle", + "httpMethod": "POST", + "id": "integrations.projects.locations.products.createBundle", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The location resource of the request.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}:createBundle", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaCreateBundleRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaCreateBundleResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "listTaskEntities": { + "description": "This is a UI only method and will be moved away. Returns a list of common tasks.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}:listTaskEntities", + "httpMethod": "GET", + "id": "integrations.projects.locations.products.listTaskEntities", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The location resource of the request. This is not going to be used but preserve the field for future.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}:listTaskEntities", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "authConfigs": { + "methods": { + "create": { + "description": "Creates an auth config record. Fetch corresponding credentials for specific auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the auth config with Cloud KMS and store the encrypted credentials in Spanner. Returns the encrypted auth config.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs", + "httpMethod": "POST", + "id": "integrations.projects.locations.products.authConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "clientCertificate.encryptedPrivateKey": { + "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + "location": "query", + "type": "string" + }, + "clientCertificate.passphrase": { + "description": "'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key.", + "location": "query", + "type": "string" + }, + "clientCertificate.sslCertificate": { + "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. \"projects/{project}/locations/{location}\" format.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/authConfigs", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an auth config.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs/{authConfigsId}", + "httpMethod": "DELETE", + "id": "integrations.projects.locations.products.authConfigs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name that is associated with the AuthConfig.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/authConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a complete auth config. If the auth config doesn't exist, Code.NOT_FOUND exception will be thrown. Returns the decrypted auth config.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs/{authConfigsId}", + "httpMethod": "GET", + "id": "integrations.projects.locations.products.authConfigs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name that is associated with the AuthConfig.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/authConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all auth configs that match the filter. Restrict to auth configs belong to the current client only.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs", + "httpMethod": "GET", + "id": "integrations.projects.locations.products.authConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The size of entries in the response. If unspecified, defaults to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The token returned in the previous response.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The client, which owns this collection of AuthConfigs.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", + "required": true, + "type": "string" + }, + "readMask": { + "description": "The mask which specifies fields that need to be returned in the AuthConfig's response.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/authConfigs", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListAuthConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an auth config. If credential is updated, fetch the encrypted auth config from Spanner, decrypt with Cloud KMS key, update the credential fields, re-encrypt with Cloud KMS key and update the Spanner record. For other fields, directly update the Spanner record. Returns the encrypted auth config.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs/{authConfigsId}", + "httpMethod": "PATCH", + "id": "integrations.projects.locations.products.authConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "clientCertificate.encryptedPrivateKey": { + "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + "location": "query", + "type": "string" + }, + "clientCertificate.passphrase": { + "description": "'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key.", + "location": "query", + "type": "string" + }, + "clientCertificate.sslCertificate": { + "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + "location": "query", + "type": "string" + }, + "name": { + "description": "Resource name of the SFDC instance projects/{project}/locations/{location}/authConfigs/{authConfig}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/authConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Field mask specifying the fields in the above AuthConfig that have been modified and need to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "certificates": { + "methods": { + "create": { + "description": "Creates a new certificate. The certificate will be registered to the trawler service and will be encrypted using cloud KMS and stored in Spanner Returns the certificate.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates", + "httpMethod": "POST", + "id": "integrations.projects.locations.products.certificates.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. \"projects/{project}/locations/{location}\" format.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/certificates", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Delete a certificate", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates/{certificatesId}", + "httpMethod": "DELETE", + "id": "integrations.projects.locations.products.certificates.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name that is associated with the Certificate.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/certificates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Get a certificates in the specified project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates/{certificatesId}", + "httpMethod": "GET", + "id": "integrations.projects.locations.products.certificates.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The certificate to retrieve. Format: projects/{project}/locations/{location}/certificates/{certificate}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/certificates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "List all the certificates that match the filter. Restrict to certificate of current client only.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates", + "httpMethod": "GET", + "id": "integrations.projects.locations.products.certificates.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The size of entries in the response. If unspecified, defaults to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The token returned in the previous response.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The client, which owns this collection of Certificates.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", + "required": true, + "type": "string" + }, + "readMask": { + "description": "The mask which specifies fields that need to be returned in the Certificate's response.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/certificates", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListCertificatesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the certificate by id. If new certificate file is updated, it will register with the trawler service, re-encrypt with cloud KMS and update the Spanner record. Other fields will directly update the Spanner record. Returns the Certificate.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates/{certificatesId}", + "httpMethod": "PATCH", + "id": "integrations.projects.locations.products.certificates.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Auto generated primary key", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/certificates/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Field mask specifying the fields in the above Certificate that have been modified and need to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "cloudFunctions": { + "methods": { + "create": { + "description": "Creates an cloud function project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/cloudFunctions", + "httpMethod": "POST", + "id": "integrations.projects.locations.products.cloudFunctions.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The project that the executed integration belongs to.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/cloudFunctions", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "integrations": { + "methods": { + "archiveBundle": { + "description": "PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. Soft-deletes the bundle.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:archiveBundle", + "httpMethod": "POST", + "id": "integrations.projects.locations.products.integrations.archiveBundle", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The bundle to archive. Format: projects/{project}/locations/{location}/integrations/{integration}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:archiveBundle", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaArchiveBundleRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaArchiveBundleResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "execute": { + "description": "Executes integrations synchronously by passing the trigger id in the request body. The request is not returned until the requested executions are either fulfilled or experienced an error. If the integration name is not specified (passing `-`), all of the associated integration under the given trigger_id will be executed. Otherwise only the specified integration for the given `trigger_id` is executed. This is helpful for execution the integration from UI.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:execute", + "httpMethod": "POST", + "id": "integrations.projects.locations.products.integrations.execute", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The integration resource name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:execute", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Returns the list of all integrations in the specified project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations", + "httpMethod": "GET", + "id": "integrations.projects.locations.products.integrations.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of \":\" (containment), \"=\" (equality), \"\u003e\" (greater), \"\u003c\" (less than), \u003e=\" (greater than or equal to), \"\u003c=\" (less than or equal to), and \"!=\" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\\"1\\\" AND state=ACTIVE AND description:\"test\". Filtering cannot be performed on repeated fields like `task_config`.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "The results would be returned in order you specified here. Supported sort keys are: Descending sort order by \"last_modified_time\", \"created_time\", \"snapshot_number\". Ascending sort order by the integration name.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The page size for the resquest.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The page token for the resquest.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Project and location from which the integrations should be listed. Format: projects/{project}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/integrations", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "monitorexecutionstats": { + "description": "Get execution stats", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:monitorexecutionstats", + "httpMethod": "POST", + "id": "integrations.projects.locations.products.integrations.monitorexecutionstats", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource name: {parent=projects/*/locations/*}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}:monitorexecutionstats", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "schedule": { + "description": "Schedules an integration for execution by passing the trigger id and the scheduled time in the request body.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:schedule", + "httpMethod": "POST", + "id": "integrations.projects.locations.products.integrations.schedule", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The integration resource name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:schedule", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "test": { + "description": "Execute the integration in draft state", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:test", + "httpMethod": "POST", + "id": "integrations.projects.locations.products.integrations.test", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Auto-generated primary key.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:test", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaTestIntegrationsRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaTestIntegrationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "executions": { + "methods": { + "cancel": { + "description": "Cancellation of an execution", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}:cancel", + "httpMethod": "POST", + "id": "integrations.projects.locations.products.integrations.executions.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_id}/executions/{execution_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaCancelExecutionRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaCancelExecutionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "download": { + "description": "Download the execution.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}:download", + "httpMethod": "GET", + "id": "integrations.projects.locations.products.integrations.executions.download", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_id}/executions/{execution_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:download", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaDownloadExecutionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Get an execution in the specified project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}", + "httpMethod": "GET", + "id": "integrations.projects.locations.products.integrations.executions.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_id}/executions/{execution_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaExecution" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists the results of all the integration executions. The response includes the same information as the [execution log](https://cloud.google.com/application-integration/docs/viewing-logs) in the Integration UI.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions", + "httpMethod": "GET", + "id": "integrations.projects.locations.products.integrations.executions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Standard filter field, we support filtering on all fields in EventExecutionParamIndexes table. All fields support for EQUALS, in additional: CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterKey, ParameterValue, ParameterType support for HAS For example: \"parameter_value\" HAS \\\"parameter1\\\" Also supports operators like AND, OR, NOT For example, trigger_id=\\\"id1\\\" AND event_execution_state=\\\"FAILED\\\"", + "location": "query", + "type": "string" + }, + "filterParams.customFilter": { + "description": "Optional user-provided custom filter.", + "location": "query", + "type": "string" + }, + "filterParams.endTime": { + "description": "End timestamp.", + "format": "int64", + "location": "query", + "type": "string" + }, + "filterParams.eventStatuses": { + "description": "List of possible event statuses.", + "location": "query", + "repeated": true, + "type": "string" + }, + "filterParams.executionId": { + "description": "Execution id.", + "location": "query", + "type": "string" + }, + "filterParams.parameterKey": { + "description": "Param key. DEPRECATED. User parameter_pair_key instead.", + "location": "query", + "type": "string" + }, + "filterParams.parameterPairKey": { + "description": "Param key in the key value pair filter.", + "location": "query", + "type": "string" + }, + "filterParams.parameterPairValue": { + "description": "Param value in the key value pair filter.", + "location": "query", + "type": "string" + }, + "filterParams.parameterType": { + "description": "Param type.", + "location": "query", + "type": "string" + }, + "filterParams.parameterValue": { + "description": "Param value. DEPRECATED. User parameter_pair_value instead.", + "location": "query", + "type": "string" + }, + "filterParams.startTime": { + "description": "Start timestamp.", + "format": "int64", + "location": "query", + "type": "string" + }, + "filterParams.taskStatuses": { + "description": "List of possible task statuses.", + "location": "query", + "repeated": true, + "type": "string" + }, + "filterParams.workflowName": { + "description": "Workflow name.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. The results would be returned in order you specified here. Currently supporting \"last_modified_time\" and \"create_time\".", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The size of entries in the response.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The token returned in the previous response.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource name of the integration execution.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + }, + "readMask": { + "description": "Optional. View mask for the response data. If set, only the field specified will be returned as part of the result. If not set, all fields in event execution info will be filled and returned.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "refreshAcl": { + "description": "Optional. If true, the service will use the most recent acl information to list event execution infos and renew the acl cache. Note that fetching the most recent acl is synchronous, so it will increase RPC call latency.", + "location": "query", + "type": "boolean" + }, + "truncateParams": { + "description": "Optional. If true, the service will truncate the params to only keep the first 1000 characters of string params and empty the executions in order to make response smaller. Only works for UI and when the params fields are not filtered out.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+parent}/executions", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListExecutionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "suspensions": { + "methods": { + "lift": { + "description": "* Lifts suspension for advanced suspension task. Fetch corresponding suspension with provided suspension Id, resolve suspension, and set up suspension result for the Suspension Task.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions/{suspensionsId}:lift", + "httpMethod": "POST", + "id": "integrations.projects.locations.products.integrations.executions.suspensions.lift", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource that the suspension belongs to. \"projects/{project}/locations/{location}/products/{product}/integrations/{integration}/executions/{execution}/suspensions/{suspenion}\" format.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+/suspensions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:lift", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaLiftSuspensionRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaLiftSuspensionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "* Lists suspensions associated with a specific execution. Only those with permissions to resolve the relevant suspensions will be able to view them.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions", + "httpMethod": "GET", + "id": "integrations.projects.locations.products.integrations.executions.suspensions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Standard filter field.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Field name to order by.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Maximum number of entries in the response.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Token to retrieve a specific page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_name}/executions/{execution_name}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/suspensions", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListSuspensionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "resolve": { + "description": "* Resolves (lifts/rejects) any number of suspensions. If the integration is already running, only the status of the suspension is updated. Otherwise, the suspended integration will begin execution again.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions/{suspensionsId}:resolve", + "httpMethod": "POST", + "id": "integrations.projects.locations.products.integrations.executions.suspensions.resolve", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_name}/executions/{execution_name}/suspensions/{suspension_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+/suspensions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:resolve", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaResolveSuspensionRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaResolveSuspensionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "executionsnapshots": { + "methods": { + "list": { + "description": "Lists the snapshots of a given integration executions. This RPC is not being used.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executionsnapshots", + "httpMethod": "GET", + "id": "integrations.projects.locations.products.integrations.executionsnapshots.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Currently supports filter by `execution_info_id` or `execution_snapshot_id`.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Number of entries to be returned in a page.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The token used to retrieve the next page results.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource name of the integration execution.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + }, + "readMask": { + "description": "View mask for the response data. If set, only the field specified will be returned as part of the result. If not set, all fields in event execution snapshot will be filled and returned.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/executionsnapshots", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "versions": { + "methods": { + "archive": { + "description": "Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as \"HEAD\", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being archived is DRAFT, and if the `locked_by` user is not the same as the user performing the Archive. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Archiving a integration. Currently, there is no unarchive mechanism.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:archive", + "httpMethod": "POST", + "id": "integrations.projects.locations.products.integrations.versions.archive", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The version to archive. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:archive", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "create": { + "description": "Create a integration with a draft version in the specified project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions", + "httpMethod": "POST", + "id": "integrations.projects.locations.products.integrations.versions.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "newIntegration": { + "description": "Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created.", + "location": "query", + "type": "boolean" + }, + "parent": { + "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/versions", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "deactivate": { + "description": "Sets the status of the ACTIVE integration to SNAPSHOT with a new tag \"PREVIOUSLY_PUBLISHED\" after validating it. The \"HEAD\" and \"PUBLISH_REQUESTED\" tags do not change. This RPC throws an exception if the version being snapshot is not ACTIVE. Audit fields added include action, action_by, action_timestamp.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:deactivate", + "httpMethod": "POST", + "id": "integrations.projects.locations.products.integrations.versions.deactivate", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:deactivate", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as \"HEAD\", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being deleted is DRAFT, and if the `locked_by` user is not the same as the user performing the Delete. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Deleting a integration. Currently, there is no undelete mechanism.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}", + "httpMethod": "DELETE", + "id": "integrations.projects.locations.products.integrations.versions.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The version to delete. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "download": { + "description": "Downloads an integration. Retrieves the `IntegrationVersion` for a given `integration_id` and returns the response as a string.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:download", + "httpMethod": "GET", + "id": "integrations.projects.locations.products.integrations.versions.download", + "parameterOrder": [ + "name" + ], + "parameters": { + "fileFormat": { + "description": "File format for download request.", + "enum": [ + "FILE_FORMAT_UNSPECIFIED", + "JSON", + "YAML" + ], + "enumDescriptions": [ + "Unspecified file format", + "JSON File Format", + "YAML File Format" + ], + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The version to download. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:download", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Get a integration in the specified project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}", + "httpMethod": "GET", + "id": "integrations.projects.locations.products.integrations.versions.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The version to retrieve. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getBundle": { + "description": "PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. RPC to get details of the Bundle", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:getBundle", + "httpMethod": "GET", + "id": "integrations.projects.locations.products.integrations.versions.getBundle", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The bundle name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:getBundle", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaGetBundleResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Returns the list of all integration versions in the specified project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions", + "httpMethod": "GET", + "id": "integrations.projects.locations.products.integrations.versions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "fieldMask": { + "description": "The field mask which specifies the particular data to be returned.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "filter": { + "description": "Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of \":\" (containment), \"=\" (equality), \"\u003e\" (greater), \"\u003c\" (less than), \u003e=\" (greater than or equal to), \"\u003c=\" (less than or equal to), and \"!=\" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\\"1\\\" AND state=ACTIVE AND description:\"test\". Filtering cannot be performed on repeated fields like `task_config`.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "The results would be returned in order you specified here. Currently supported sort keys are: Descending sort order for \"last_modified_time\", \"created_time\", \"snapshot_number\" Ascending sort order for \"name\".", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of versions to return. The service may return fewer than this value. If unspecified, at most 50 versions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListIntegrationVersions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListIntegrationVersions` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration} Specifically, when parent equals: 1. projects//locations//integrations/, Meaning: \"List versions (with filter) for a particular integration\". 2. projects//locations//integrations/- Meaning: \"List versions (with filter) for a client within a particular region\". 3. projects//locations/-/integrations/- Meaning: \"List versions (with filter) for a client\".", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/versions", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Update a integration with a draft version in the specified project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}", + "httpMethod": "PATCH", + "id": "integrations.projects.locations.products.integrations.versions.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Auto-generated primary key.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Field mask specifying the fields in the above integration that have been modified and need to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "publish": { + "description": "This RPC throws an exception if the integration is in ARCHIVED or ACTIVE state. This RPC throws an exception if the version being published is DRAFT, and if the `locked_by` user is not the same as the user performing the Publish. Audit fields updated include last_published_timestamp, last_published_by, last_modified_timestamp, last_modified_by. Any existing lock is on this integration is released.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:publish", + "httpMethod": "POST", + "id": "integrations.projects.locations.products.integrations.versions.publish", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The version to publish. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:publish", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "takeoverEditLock": { + "description": "Clears the `locked_by` and `locked_at_timestamp`in the DRAFT version of this integration. It then performs the same action as the CreateDraftIntegrationVersion (i.e., copies the DRAFT version of the integration as a SNAPSHOT and then creates a new DRAFT version with the `locked_by` set to the `user_taking_over` and the `locked_at_timestamp` set to the current timestamp). Both the `locked_by` and `user_taking_over` are notified via email about the takeover. This RPC throws an exception if the integration is not in DRAFT status or if the `locked_by` and `locked_at_timestamp` fields are not set.The TakeoverEdit lock is treated the same as an edit of the integration, and hence shares ACLs with edit. Audit fields updated include last_modified_timestamp, last_modified_by.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:takeoverEditLock", + "httpMethod": "POST", + "id": "integrations.projects.locations.products.integrations.versions.takeoverEditLock", + "parameterOrder": [ + "integrationVersion" + ], + "parameters": { + "integrationVersion": { + "description": "Required. The version to take over edit lock. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+integrationVersion}:takeoverEditLock", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "unpublish": { + "description": "Sets the status of the ACTIVE integration to SNAPSHOT with a new tag \"PREVIOUSLY_PUBLISHED\" after validating it. The \"HEAD\" and \"PUBLISH_REQUESTED\" tags do not change. This RPC throws an exception if the version being snapshot is not ACTIVE. Audit fields added include action, action_by, action_timestamp.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:unpublish", + "httpMethod": "POST", + "id": "integrations.projects.locations.products.integrations.versions.unpublish", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:unpublish", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "updateBundle": { + "description": "THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. RPC to update the Bundle", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:updateBundle", + "httpMethod": "PATCH", + "id": "integrations.projects.locations.products.integrations.versions.updateBundle", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Bundle name", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:updateBundle", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaUpdateBundleRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaUpdateBundleResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "upload": { + "description": "Uploads an integration. The content can be a previously downloaded integration. Performs the same function as CreateDraftIntegrationVersion, but accepts input in a string format, which holds the complete representation of the IntegrationVersion content.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions:upload", + "httpMethod": "POST", + "id": "integrations.projects.locations.products.integrations.versions.upload", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The version to upload. Format: projects/{project}/locations/{location}/integrations/{integration}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/versions:upload", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "validate": { + "description": "Validates the given integration. If the id doesn't exist, a NotFoundException is thrown. If validation fails a CanonicalCodeException is thrown. If there was no failure an empty response is returned.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:validate", + "httpMethod": "POST", + "id": "integrations.projects.locations.products.integrations.versions.validate", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The version to validate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:validate", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "sfdcInstances": { + "methods": { + "create": { + "description": "Creates an sfdc instance record. Store the sfdc instance in Spanner. Returns the sfdc instance.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances", + "httpMethod": "POST", + "id": "integrations.projects.locations.products.sfdcInstances.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. \"projects/{project}/locations/{location}\" format.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/sfdcInstances", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an sfdc instance.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}", + "httpMethod": "DELETE", + "id": "integrations.projects.locations.products.sfdcInstances.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name that is associated with the SfdcInstance.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets an sfdc instance. If the instance doesn't exist, Code.NOT_FOUND exception will be thrown.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}", + "httpMethod": "GET", + "id": "integrations.projects.locations.products.sfdcInstances.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name that is associated with the SfdcInstance.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all sfdc instances that match the filter. Restrict to sfdc instances belonging to the current client only.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances", + "httpMethod": "GET", + "id": "integrations.projects.locations.products.sfdcInstances.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The size of entries in the response. If unspecified, defaults to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The token returned in the previous response.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The client, which owns this collection of SfdcInstances.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", + "required": true, + "type": "string" + }, + "readMask": { + "description": "The mask which specifies fields that need to be returned in the SfdcInstance's response.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/sfdcInstances", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an sfdc instance. Updates the sfdc instance in spanner. Returns the sfdc instance.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}", + "httpMethod": "PATCH", + "id": "integrations.projects.locations.products.sfdcInstances.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Resource name of the SFDC instance projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Field mask specifying the fields in the above SfdcInstance that have been modified and need to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "sfdcChannels": { + "methods": { + "create": { + "description": "Creates an sfdc channel record. Store the sfdc channel in Spanner. Returns the sfdc channel.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels", + "httpMethod": "POST", + "id": "integrations.projects.locations.products.sfdcInstances.sfdcChannels.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. \"projects/{project}/locations/{location}\" format.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/sfdcChannels", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an sfdc channel.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels/{sfdcChannelsId}", + "httpMethod": "DELETE", + "id": "integrations.projects.locations.products.sfdcInstances.sfdcChannels.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name that is associated with the SfdcChannel.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+/sfdcChannels/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND exception will be thrown.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels/{sfdcChannelsId}", + "httpMethod": "GET", + "id": "integrations.projects.locations.products.sfdcInstances.sfdcChannels.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name that is associated with the SfdcChannel.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+/sfdcChannels/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all sfdc channels that match the filter. Restrict to sfdc channels belonging to the current client only.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels", + "httpMethod": "GET", + "id": "integrations.projects.locations.products.sfdcInstances.sfdcChannels.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The size of entries in the response. If unspecified, defaults to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The token returned in the previous response.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The client, which owns this collection of SfdcChannels.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+$", + "required": true, + "type": "string" + }, + "readMask": { + "description": "The mask which specifies fields that need to be returned in the SfdcChannel's response.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/sfdcChannels", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an sfdc channel. Updates the sfdc channel in spanner. Returns the sfdc channel.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels/{sfdcChannelsId}", + "httpMethod": "PATCH", + "id": "integrations.projects.locations.products.sfdcInstances.sfdcChannels.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Resource name of the SFDC channel projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance}/sfdcChannels/{sfdc_channel}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+/sfdcChannels/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Field mask specifying the fields in the above SfdcChannel that have been modified and need to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + }, + "sfdcInstances": { + "methods": { + "create": { + "description": "Creates an sfdc instance record. Store the sfdc instance in Spanner. Returns the sfdc instance.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances", + "httpMethod": "POST", + "id": "integrations.projects.locations.sfdcInstances.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. \"projects/{project}/locations/{location}\" format.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/sfdcInstances", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an sfdc instance.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}", + "httpMethod": "DELETE", + "id": "integrations.projects.locations.sfdcInstances.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name that is associated with the SfdcInstance.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets an sfdc instance. If the instance doesn't exist, Code.NOT_FOUND exception will be thrown.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}", + "httpMethod": "GET", + "id": "integrations.projects.locations.sfdcInstances.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name that is associated with the SfdcInstance.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all sfdc instances that match the filter. Restrict to sfdc instances belonging to the current client only.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances", + "httpMethod": "GET", + "id": "integrations.projects.locations.sfdcInstances.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The size of entries in the response. If unspecified, defaults to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The token returned in the previous response.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The client, which owns this collection of SfdcInstances.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "readMask": { + "description": "The mask which specifies fields that need to be returned in the SfdcInstance's response.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/sfdcInstances", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an sfdc instance. Updates the sfdc instance in spanner. Returns the sfdc instance.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}", + "httpMethod": "PATCH", + "id": "integrations.projects.locations.sfdcInstances.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Resource name of the SFDC instance projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Field mask specifying the fields in the above SfdcInstance that have been modified and need to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "sfdcChannels": { + "methods": { + "create": { + "description": "Creates an sfdc channel record. Store the sfdc channel in Spanner. Returns the sfdc channel.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels", + "httpMethod": "POST", + "id": "integrations.projects.locations.sfdcInstances.sfdcChannels.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. \"projects/{project}/locations/{location}\" format.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/sfdcChannels", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an sfdc channel.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels/{sfdcChannelsId}", + "httpMethod": "DELETE", + "id": "integrations.projects.locations.sfdcInstances.sfdcChannels.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name that is associated with the SfdcChannel.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+/sfdcChannels/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND exception will be thrown.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels/{sfdcChannelsId}", + "httpMethod": "GET", + "id": "integrations.projects.locations.sfdcInstances.sfdcChannels.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name that is associated with the SfdcChannel.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+/sfdcChannels/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all sfdc channels that match the filter. Restrict to sfdc channels belonging to the current client only.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels", + "httpMethod": "GET", + "id": "integrations.projects.locations.sfdcInstances.sfdcChannels.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The size of entries in the response. If unspecified, defaults to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The token returned in the previous response.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The client, which owns this collection of SfdcChannels.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+$", + "required": true, + "type": "string" + }, + "readMask": { + "description": "The mask which specifies fields that need to be returned in the SfdcChannel's response.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/sfdcChannels", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an sfdc channel. Updates the sfdc channel in spanner. Returns the sfdc channel.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels/{sfdcChannelsId}", + "httpMethod": "PATCH", + "id": "integrations.projects.locations.sfdcInstances.sfdcChannels.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Resource name of the SFDC channel projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance}/sfdcChannels/{sfdc_channel}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+/sfdcChannels/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Field mask specifying the fields in the above SfdcChannel that have been modified and need to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + } + } + } + }, + "revision": "20221122", + "rootUrl": "https://integrations.googleapis.com/", + "schemas": { + "CrmlogErrorCode": { + "description": "Registered ids for errors, as \"oneof\" enums. Each task or logical grouping of tasks may share the same enum.", + "id": "CrmlogErrorCode", + "properties": { + "commonErrorCode": { + "enum": [ + "COMMON_ERROR_CODE_UNSPECIFIED", + "INVALID_CREDENTIALS", + "REQUIRED_FIELDS_MISSING", + "INVALID_FIELDS", + "BACKEND", + "GENERAL", + "INTERNAL", + "IO_ERROR", + "NOT_FOUND", + "EVENT_BUS", + "ALREADY_EXISTS", + "CONCORD", + "CONVERSION", + "FLUME", + "PERMISSION", + "SALES_FORCE", + "SPANNER", + "UNIMPLEMENTED", + "RELTIO", + "WORKFLOW_NOT_FOUND", + "QUOTA_THROTTLED", + "QUOTA_ENQUEUED", + "INVALID_QUOTA_CONFIGURATION", + "TASK_NOT_FOUND", + "EXECUTION_TIMEOUT", + "INVALID_EVENT_EXECUTION_STATE", + "INVALID_ATTRIBUTE", + "MISSING_ATTRIBUTE", + "CLIENT_UNAUTHORIZED_FOR_WORKFLOW", + "INVALID_PARAMETER", + "MISSING_PARAMETER", + "UNAUTHROIZED_WORKFLOW_EDITOR_ACTION", + "FAILED_PRECONDITION", + "INVALID_CLIENT", + "MISSING_CLIENT", + "INVALID_WORKFLOW", + "MISSING_QUOTA_CONFIGURATION", + "UNHANDLED_TASK_ERROR", + "SCRIPT_TASK_RUNTIME_ERROR", + "RPC", + "INVALID_PROTO", + "UNHANDLED_EVENTBUS_ERROR", + "INVALID_TASK_STATE", + "TYPED_TASK_INVALID_INPUT_OPERATION", + "TYPED_TASK_INVALID_OUTPUT_OPERATION", + "VALIDATION_ERROR", + "RESUME_ERROR", + "APPS_SCRIPT_EXECUTION_ERROR", + "INVALID_VECTOR_USER", + "INFORMATICA", + "RETRYABLE_TASK_ERROR", + "INVALID_TENANT", + "WRONG_TENANT", + "INFORMATICA_BACKEND_UNAVAILABLE", + "RPC_PERMISSION_DENIED", + "SYNC_EVENTBUS_EXECUTION_TIMEOUT", + "ASYNC_EVENTBUS_EXECUTION_TIMEOUT", + "NOT_SUPPORTED_DATA_TYPE", + "UNSANITIZED_USER_INPUT", + "TRANSFORM_EXPRESSION_EVALUATION_ERROR", + "HTTP_EXCEPTION", + "EXECUTION_CANCELLED" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "SYNC_EVENTBUS_EXECUTION_TIMEOUT is for eventbus internal use only.", + "ASYNC_EVENTBUS_EXECUTION_TIMEOUT is for eventbus internal use only. This error will be counted as server availability error.", + "", + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmCardsCellValue": { + "id": "EnterpriseCrmCardsCellValue", + "properties": { + "booleanValue": { + "type": "boolean" + }, + "doubleValue": { + "format": "double", + "type": "number" + }, + "empty": { + "$ref": "GoogleProtobufEmpty" + }, + "longValue": { + "format": "int64", + "type": "string" + }, + "stringValue": { + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmCardsRow": { + "id": "EnterpriseCrmCardsRow", + "properties": { + "cells": { + "description": "Ordered list of cell values within a row.", + "items": { + "$ref": "EnterpriseCrmCardsCellValue" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmCardsTabularData": { + "description": "The generic data format returned from all connectors.", + "id": "EnterpriseCrmCardsTabularData", + "properties": { + "headers": { + "description": "Ordered list of column headers.", + "items": { + "type": "string" + }, + "type": "array" + }, + "rows": { + "description": "Ordered list of table rows.", + "items": { + "$ref": "EnterpriseCrmCardsRow" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmCardsTemplatesAplosSeriesData": { + "description": "Data used to render an Aplos Series card.", + "id": "EnterpriseCrmCardsTemplatesAplosSeriesData", + "properties": { + "rows": { + "description": "A single Series Row", + "items": { + "$ref": "EnterpriseCrmCardsTemplatesAplosSeriesDataRow" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmCardsTemplatesAplosSeriesDataRow": { + "description": "Aplos series row is exactly two columns labeled x and y.", + "id": "EnterpriseCrmCardsTemplatesAplosSeriesDataRow", + "properties": { + "x": { + "$ref": "EnterpriseCrmCardsCellValue" + }, + "y": { + "$ref": "EnterpriseCrmCardsCellValue" + } + }, + "type": "object" + }, + "EnterpriseCrmCardsTemplatesAplosSeriesListData": { + "description": "Data used for Aplos charts that accept multiple Series.", + "id": "EnterpriseCrmCardsTemplatesAplosSeriesListData", + "properties": { + "series": { + "items": { + "$ref": "EnterpriseCrmCardsTemplatesAplosSeriesListDataSeries" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmCardsTemplatesAplosSeriesListDataSeries": { + "id": "EnterpriseCrmCardsTemplatesAplosSeriesListDataSeries", + "properties": { + "data": { + "$ref": "EnterpriseCrmCardsTemplatesAplosSeriesData" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusAuthconfigAuthConfigTaskParam": { + "id": "EnterpriseCrmEventbusAuthconfigAuthConfigTaskParam", + "properties": { + "allowedCredentialTypes": { + "description": "Defines the credential types to be supported as Task may restrict specific types to use, e.g. Cloud SQL Task will use username/password type only.", + "items": { + "enum": [ + "CREDENTIAL_TYPE_UNSPECIFIED", + "USERNAME_AND_PASSWORD", + "API_KEY", + "OAUTH2_AUTHORIZATION_CODE", + "OAUTH2_IMPLICIT", + "OAUTH2_CLIENT_CREDENTIALS", + "OAUTH2_RESOURCE_OWNER_CREDENTIALS", + "JWT", + "AUTH_TOKEN", + "SERVICE_ACCOUNT", + "CLIENT_CERTIFICATE_ONLY", + "OIDC_TOKEN" + ], + "enumDescriptions": [ + "", + "Regular username/password pair.", + "API key.", + "OAuth 2.0 Authorization Code Grant Type.", + "OAuth 2.0 Implicit Grant Type.", + "OAuth 2.0 Client Credentials Grant Type.", + "OAuth 2.0 Resource Owner Credentials Grant Type.", + "JWT Token.", + "Auth Token, e.g. bearer token.", + "Service Account which can be used to generate token for authentication.", + "Client Certificate only.", + "Google OIDC ID Token" + ], + "type": "string" + }, + "type": "array" + }, + "allowedServiceAccountInContext": { + "type": "boolean" + }, + "authConfigId": { + "description": "UUID of the AuthConfig.", + "type": "string" + }, + "scope": { + "description": "A space-delimited list of requested scope permissions.", + "type": "string" + }, + "useServiceAccountInContext": { + "type": "boolean" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoAddress": { + "description": "Email address along with optional name and tokens. These tokens will be substituted for the variables in the form of [{var_name}], where var_name could be any string of no more than 32 bytes.", + "id": "EnterpriseCrmEventbusProtoAddress", + "properties": { + "email": { + "description": "Required.", + "type": "string" + }, + "name": { + "type": "string" + }, + "tokens": { + "items": { + "$ref": "EnterpriseCrmEventbusProtoToken" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoAttributes": { + "description": "Attributes are additional options that can be associated with each event property. For more information, see go/integration-platform/event_bus/attributes_registry.md. Next available: 8", + "id": "EnterpriseCrmEventbusProtoAttributes", + "properties": { + "dataType": { + "description": "Things like URL, Email, Currency, Timestamp (rather than string, int64...)", + "enum": [ + "DATA_TYPE_UNSPECIFIED", + "EMAIL", + "URL", + "CURRENCY", + "TIMESTAMP", + "DOMAIN_NAME" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "Domain is a web url string with one top-level private domain and a suffix (for example: google.com, walmart.com)" + ], + "type": "string" + }, + "defaultValue": { + "$ref": "EnterpriseCrmEventbusProtoValueType", + "description": "Used to define defaults." + }, + "isRequired": { + "description": "Required for event execution. The validation will be done by the event bus when the event is triggered.", + "type": "boolean" + }, + "isSearchable": { + "description": "Used to indicate if a ParameterEntry should be converted to ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable.", + "type": "boolean" + }, + "logSettings": { + "$ref": "EnterpriseCrmEventbusProtoLogSettings", + "description": "See go/integration-platform/analytics/logging_task.md for details." + }, + "searchable": { + "enum": [ + "UNSPECIFIED", + "YES", + "NO" + ], + "enumDescriptions": [ + "", + "If yes, the parameter key and value will be full-text indexed. In a proto, this value will propagate to all children whose searchable is unspecified.", + "If no, the parameter key and value will not be full-text indexed. In a proto, this value will propagate to all children whose searchable is unspecified." + ], + "type": "string" + }, + "taskVisibility": { + "description": "List of tasks that can view this property, if empty then all.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList": { + "description": "List of error enums for alerts.", + "id": "EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList", + "properties": { + "enumStrings": { + "items": { + "type": "string" + }, + "type": "array" + }, + "filterType": { + "enum": [ + "DEFAULT_INCLUSIVE", + "EXCLUSIVE" + ], + "enumDescriptions": [ + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue": { + "description": "The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. See go/eventbus-alert-config-examples", + "id": "EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue", + "properties": { + "absolute": { + "format": "int64", + "type": "string" + }, + "percentage": { + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoBaseFunction": { + "id": "EnterpriseCrmEventbusProtoBaseFunction", + "properties": { + "functionName": { + "enum": [ + "UNSPECIFIED", + "NOW_IN_MILLIS", + "INT_LIST", + "ENVIRONMENT", + "GET_EXECUTION_ID", + "GET_INTEGRATION_NAME", + "GET_REGION", + "GET_UUID", + "GET_PROJECT_ID" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoBaseValue": { + "id": "EnterpriseCrmEventbusProtoBaseValue", + "properties": { + "baseFunction": { + "$ref": "EnterpriseCrmEventbusProtoFunction", + "description": "Start with a function that does not build on existing values. Eg. CurrentTime, Min, Max, Exists, etc." + }, + "literalValue": { + "$ref": "EnterpriseCrmEventbusProtoParameterValueType", + "description": "Start with a literal value." + }, + "referenceValue": { + "description": "Start with a reference value to dereference.", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoBooleanArrayFunction": { + "id": "EnterpriseCrmEventbusProtoBooleanArrayFunction", + "properties": { + "functionName": { + "enum": [ + "UNSPECIFIED", + "GET", + "APPEND", + "SIZE", + "TO_SET", + "APPEND_ALL", + "TO_JSON", + "SET", + "REMOVE", + "REMOVE_AT", + "CONTAINS", + "FOR_EACH", + "FILTER" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoBooleanFunction": { + "id": "EnterpriseCrmEventbusProtoBooleanFunction", + "properties": { + "functionName": { + "enum": [ + "UNSPECIFIED", + "TO_JSON", + "NOT", + "AND", + "NAND", + "OR", + "XOR", + "NOR", + "XNOR", + "TO_STRING", + "EQUALS" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoBooleanParameterArray": { + "id": "EnterpriseCrmEventbusProtoBooleanParameterArray", + "properties": { + "booleanValues": { + "items": { + "type": "boolean" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoBuganizerNotification": { + "id": "EnterpriseCrmEventbusProtoBuganizerNotification", + "properties": { + "assigneeEmailAddress": { + "description": "Whom to assign the new bug. Optional.", + "type": "string" + }, + "componentId": { + "description": "ID of the buganizer component within which to create a new issue. Required.", + "format": "int64", + "type": "string" + }, + "templateId": { + "description": "ID of the buganizer template to use. Optional.", + "format": "int64", + "type": "string" + }, + "title": { + "description": "Title of the issue to be created. Required.", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoCloudSchedulerConfig": { + "description": "Cloud Scheduler Trigger configuration", + "id": "EnterpriseCrmEventbusProtoCloudSchedulerConfig", + "properties": { + "cronTab": { + "description": "Required. The cron tab of cloud scheduler trigger.", + "type": "string" + }, + "errorMessage": { + "description": "Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations", + "type": "string" + }, + "location": { + "description": "Required. The location where associated cloud scheduler job will be created", + "type": "string" + }, + "serviceAccountEmail": { + "description": "Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoCombinedCondition": { + "description": "This message recursively combines constituent conditions using logical AND.", + "id": "EnterpriseCrmEventbusProtoCombinedCondition", + "properties": { + "conditions": { + "description": "A set of individual constituent conditions.", + "items": { + "$ref": "EnterpriseCrmEventbusProtoCondition" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoCondition": { + "description": "Condition that uses `operator` to evaluate the key against the value.", + "id": "EnterpriseCrmEventbusProtoCondition", + "properties": { + "eventPropertyKey": { + "description": "Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown.", + "type": "string" + }, + "operator": { + "description": "Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair.", + "enum": [ + "UNSET", + "EQUALS", + "CONTAINS", + "LESS_THAN", + "GREATER_THAN", + "EXISTS", + "DOES_NOT_EXIST", + "IS_EMPTY", + "IS_NOT_EMPTY" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "value": { + "$ref": "EnterpriseCrmEventbusProtoValueType", + "description": "Value that's checked for the key." + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoConditionResult": { + "description": "Contains the combined condition calculation results.", + "id": "EnterpriseCrmEventbusProtoConditionResult", + "properties": { + "currentTaskNumber": { + "description": "the current task number.", + "type": "string" + }, + "nextTaskNumber": { + "description": "the next task number.", + "type": "string" + }, + "result": { + "description": "the result comes out after evaluate the combined condition. True if there's no combined condition specified.", + "type": "boolean" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoConnectorsConnection": { + "id": "EnterpriseCrmEventbusProtoConnectorsConnection", + "properties": { + "connectionName": { + "description": "Connection name Format: projects/{project}/locations/{location}/connections/{connection}", + "type": "string" + }, + "connectorVersion": { + "description": "Connector version Format: projects/{project}/locations/{location}/providers/{provider}/connectors/{connector}/versions/{version}", + "type": "string" + }, + "serviceName": { + "description": "Service name Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoConnectorsGenericConnectorTaskConfig": { + "id": "EnterpriseCrmEventbusProtoConnectorsGenericConnectorTaskConfig", + "properties": { + "connection": { + "$ref": "EnterpriseCrmEventbusProtoConnectorsConnection", + "description": "User-selected connection." + }, + "operation": { + "description": "Operation to perform using the configured connection.", + "enum": [ + "OPERATION_UNSPECIFIED", + "EXECUTE_ACTION", + "LIST_ENTITIES", + "GET_ENTITY", + "CREATE_ENTITY", + "UPDATE_ENTITY", + "DELETE_ENTITY" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoCoordinate": { + "description": "Represents two-dimensional positions.", + "id": "EnterpriseCrmEventbusProtoCoordinate", + "properties": { + "x": { + "format": "int32", + "type": "integer" + }, + "y": { + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoCustomSuspensionRequest": { + "id": "EnterpriseCrmEventbusProtoCustomSuspensionRequest", + "properties": { + "postToQueueWithTriggerIdRequest": { + "$ref": "GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest", + "description": "Request to fire an event containing the SuspensionInfo message." + }, + "suspensionInfoEventParameterKey": { + "description": "In the fired event, set the SuspensionInfo message as the value for this key.", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoDoubleArray": { + "id": "EnterpriseCrmEventbusProtoDoubleArray", + "properties": { + "values": { + "items": { + "format": "double", + "type": "number" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoDoubleArrayFunction": { + "id": "EnterpriseCrmEventbusProtoDoubleArrayFunction", + "properties": { + "functionName": { + "enum": [ + "UNSPECIFIED", + "GET", + "APPEND", + "SIZE", + "SUM", + "AVG", + "MAX", + "MIN", + "TO_SET", + "APPEND_ALL", + "TO_JSON", + "SET", + "REMOVE", + "REMOVE_AT", + "CONTAINS", + "FOR_EACH", + "FILTER" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoDoubleFunction": { + "id": "EnterpriseCrmEventbusProtoDoubleFunction", + "properties": { + "functionName": { + "enum": [ + "UNSPECIFIED", + "TO_JSON", + "TO_STRING", + "ADD", + "SUBTRACT", + "MULTIPLY", + "DIVIDE", + "EXPONENT", + "ROUND", + "FLOOR", + "CEIL", + "GREATER_THAN", + "LESS_THAN", + "EQUALS", + "GREATER_THAN_EQUALS", + "LESS_THAN_EQUALS", + "MOD" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoDoubleParameterArray": { + "id": "EnterpriseCrmEventbusProtoDoubleParameterArray", + "properties": { + "doubleValues": { + "items": { + "format": "double", + "type": "number" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoErrorDetail": { + "description": "An error, warning, or information message associated with a workflow.", + "id": "EnterpriseCrmEventbusProtoErrorDetail", + "properties": { + "errorCode": { + "$ref": "CrmlogErrorCode", + "description": "The associated error-code, which can be a common or internal code." + }, + "errorMessage": { + "description": "The full text of the error message, including any parameters that were thrown along with the exception.", + "type": "string" + }, + "severity": { + "description": "The severity of the error: ERROR|WARN|INFO.", + "enum": [ + "SEVERITY_UNSPECIFIED", + "ERROR", + "WARN", + "INFO" + ], + "enumDescriptions": [ + "", + "", + "", + "" + ], + "type": "string" + }, + "taskNumber": { + "description": "The task try-number, in which, the error occurred. If zero, the error happened at the event level.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoEventBusProperties": { + "description": "LINT.IfChange This message is used for storing key value pair properties for each Event / Task in the EventBus. Please see go/cloud-crm-eng/platform/event_bus.md for more details.", + "id": "EnterpriseCrmEventbusProtoEventBusProperties", + "properties": { + "properties": { + "description": "An unordered list of property entries.", + "items": { + "$ref": "EnterpriseCrmEventbusProtoPropertyEntry" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoEventExecutionDetails": { + "description": "Contains the details of the execution info of this event: this includes the tasks execution details plus the event execution statistics. Next available id: 10", + "id": "EnterpriseCrmEventbusProtoEventExecutionDetails", + "properties": { + "eventAttemptStats": { + "items": { + "$ref": "EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats" + }, + "type": "array" + }, + "eventExecutionSnapshot": { + "items": { + "$ref": "EnterpriseCrmEventbusProtoEventExecutionSnapshot" + }, + "type": "array" + }, + "eventExecutionState": { + "enum": [ + "UNSPECIFIED", + "ON_HOLD", + "IN_PROCESS", + "SUCCEEDED", + "FAILED", + "CANCELED", + "RETRY_ON_HOLD", + "SUSPENDED" + ], + "enumDescriptions": [ + "", + "Event is received and waiting for the execution. This happens when firing the event via \"postToQueue\" or \"schedule\".", + "Event is under processing.", + "Event execution successfully finished. There's no more change after this state.", + "Event execution failed. There's no more change after this state.", + "Event execution canceled by user. There's no more change after this state.", + "Event execution failed and waiting for retry.", + "Event execution suspended and waiting for manual intervention." + ], + "type": "string" + }, + "eventRetriesFromBeginningCount": { + "description": "Indicates the number of times the execution has restarted from the beginning.", + "format": "int32", + "type": "integer" + }, + "logFilePath": { + "description": "The log file path (aka. cns address) for this event.", + "type": "string" + }, + "networkAddress": { + "description": "The network address (aka. bns address) that indicates where the event executor is running.", + "type": "string" + }, + "nextExecutionTime": { + "description": "Next scheduled execution time in case the execution status was RETRY_ON_HOLD.", + "format": "int64", + "type": "string" + }, + "ryeLockUnheldCount": { + "description": "Used internally and shouldn't be exposed to users. A counter for the cron job to record how many times this event is in in_process state but don't have a lock consecutively/", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats": { + "id": "EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats", + "properties": { + "endTime": { + "description": "The end time of the event execution for current attempt.", + "format": "int64", + "type": "string" + }, + "startTime": { + "description": "The start time of the event execution for current attempt. This could be in the future if it's been scheduled.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoEventExecutionSnapshot": { + "description": "Contains the snapshot of the event execution for a given checkpoint. Next available id: 13", + "id": "EnterpriseCrmEventbusProtoEventExecutionSnapshot", + "properties": { + "checkpointTaskNumber": { + "description": "Indicates \"right after which checkpoint task's execution\" this snapshot is taken.", + "type": "string" + }, + "conditionResults": { + "description": "All of the computed conditions that been calculated.", + "items": { + "$ref": "EnterpriseCrmEventbusProtoConditionResult" + }, + "type": "array" + }, + "diffParams": { + "$ref": "EnterpriseCrmEventbusProtoEventParameters", + "description": "The parameters in Event object that differs from last snapshot." + }, + "eventExecutionInfoId": { + "description": "Points to the event execution info this snapshot belongs to.", + "type": "string" + }, + "eventExecutionSnapshotId": { + "description": "Auto-generated. Used as primary key for EventExecutionSnapshots table.", + "type": "string" + }, + "eventExecutionSnapshotMetadata": { + "$ref": "EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata" + }, + "eventParams": { + "$ref": "EnterpriseCrmEventbusProtoEventParameters", + "description": "The parameters in Event object." + }, + "exceedMaxSize": { + "description": "indicate whether snapshot exceeded maximum size before clean up", + "type": "boolean" + }, + "snapshotTime": { + "description": "Indicates when this snapshot is taken.", + "format": "int64", + "type": "string" + }, + "taskExecutionDetails": { + "description": "All of the task execution details at the given point of time.", + "items": { + "$ref": "EnterpriseCrmEventbusProtoTaskExecutionDetails" + }, + "type": "array" + }, + "taskName": { + "description": "The task name associated with this snapshot. Could be empty.", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata": { + "id": "EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata", + "properties": { + "eventAttemptNum": { + "description": "the event attempt number this snapshot belongs to.", + "format": "int32", + "type": "integer" + }, + "taskAttemptNum": { + "description": "the task attempt number this snapshot belongs to. Could be empty.", + "format": "int32", + "type": "integer" + }, + "taskName": { + "description": "the task name associated with this snapshot. Could be empty.", + "type": "string" + }, + "taskNumber": { + "description": "The task number associated with this snapshot. Could be empty.", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoEventParameters": { + "description": "LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see go/integration-platform/event_bus.md for more details. Next id: 4", + "id": "EnterpriseCrmEventbusProtoEventParameters", + "properties": { + "parameters": { + "description": "Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution.", + "items": { + "$ref": "EnterpriseCrmEventbusProtoParameterEntry" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoExecutionTraceInfo": { + "description": "Message that helps aggregate all sub-executions triggered by one execution and keeps track of child-parent relationships.", + "id": "EnterpriseCrmEventbusProtoExecutionTraceInfo", + "properties": { + "parentEventExecutionInfoId": { + "description": "Parent event execution info id that triggers the current execution through SubWorkflowExecutorTask.", + "type": "string" + }, + "traceId": { + "description": "Used to aggregate ExecutionTraceInfo.", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoExternalTraffic": { + "description": "Represents external traffic type and id.", + "id": "EnterpriseCrmEventbusProtoExternalTraffic", + "properties": { + "gcpProjectId": { + "description": "User’s GCP project id the traffic is referring to.", + "type": "string" + }, + "gcpProjectNumber": { + "description": "User’s GCP project number the traffic is referring to.", + "type": "string" + }, + "location": { + "description": "Location for the user's request.", + "type": "string" + }, + "source": { + "description": "LINT.ThenChange(//depot/google3/enterprise/crm/eventbus/proto/product.proto:product, //depot/google3/java/com/google/enterprise/crm/integrationplatform/api/utils/ConverterUtils.java:source_to_product)", + "enum": [ + "SOURCE_UNSPECIFIED", + "APIGEE", + "SECURITY" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoFailurePolicy": { + "description": "Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied).", + "id": "EnterpriseCrmEventbusProtoFailurePolicy", + "properties": { + "intervalInSeconds": { + "description": "Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff.", + "format": "int64", + "type": "string" + }, + "maxNumRetries": { + "description": "Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed.", + "format": "int32", + "type": "integer" + }, + "retryStrategy": { + "description": "Defines what happens to the task upon failure.", + "enum": [ + "UNSPECIFIED", + "IGNORE", + "NONE", + "FATAL", + "FIXED_INTERVAL", + "LINEAR_BACKOFF", + "EXPONENTIAL_BACKOFF", + "RESTART_WORKFLOW_WITH_BACKOFF" + ], + "enumDescriptions": [ + "", + "Ignores the failure of this task. The rest of the workflow will be executed Assuming this task succeeded.", + "Causes a permanent failure of the task. However, if the last task(s) of event was successfully completed despite the failure of this task, it has no impact on the workflow.", + "Causes a permanent failure of the event. It is different from NONE because this will mark the event as FAILED by shutting down the event execution.", + "The task will be retried from the failed task onwards after a fixed delay. A max-retry count is required to be specified with this strategy. A jitter is added to each exponential interval so that concurrently failing tasks of the same type do not end up retrying after the exact same exponential interval. Max_num_retries and interval_in_seconds must be specified.", + "The task will be retried from the failed task onwards after a fixed delay that linearly increases with each retry attempt. A jitter is added to each exponential interval so that concurrently failing tasks of the same type do not end up retrying after the exact same exponential interval. A max-retry count is required to be specified with this strategy. Max_num_retries and interval_in_seconds must be specified.", + "The task will be retried after an exponentially increasing period of time with each failure. A jitter is added to each exponential interval so that concurrently failing tasks of the same type do not end up retrying after the exact same exponential interval. A max-retry count is required to be specified with this strategy. `max_num_retries` and `interval_in_seconds` must be specified.", + "The entire workflow will be restarted with the initial parameters that were set when the event was fired. A max-retry count is required to be specified with this strategy. `max_num_retries` and `interval_in_seconds` must be specified." + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoField": { + "description": "Information about the value and type of the field. Next Id: 8", + "id": "EnterpriseCrmEventbusProtoField", + "properties": { + "cardinality": { + "description": "By default, if the cardinality is unspecified the field is considered required while mapping.", + "enum": [ + "UNSPECIFIED", + "OPTIONAL" + ], + "enumDescriptions": [ + "For fields with unspecified cardinality.", + "If field cardinality is set to optional, ignore errors if input field value is null or the reference_key is not found." + ], + "type": "string" + }, + "defaultValue": { + "$ref": "EnterpriseCrmEventbusProtoParameterValueType", + "description": "This holds the default values for the fields. This value is supplied by user so may or may not contain PII or SPII data. This field will be scrubbed using DatapolScrubber#maybeScrub() with go/proto-sanitizer#level3" + }, + "fieldType": { + "description": "Specifies the data type of the field.", + "enum": [ + "DATA_TYPE_UNSPECIFIED", + "STRING_VALUE", + "INT_VALUE", + "DOUBLE_VALUE", + "BOOLEAN_VALUE", + "PROTO_VALUE", + "SERIALIZED_OBJECT_VALUE", + "STRING_ARRAY", + "INT_ARRAY", + "DOUBLE_ARRAY", + "PROTO_ARRAY", + "PROTO_ENUM", + "BOOLEAN_ARRAY", + "PROTO_ENUM_ARRAY", + "BYTES", + "BYTES_ARRAY", + "NON_SERIALIZABLE_OBJECT", + "JSON_VALUE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "BYTES and BYTES_ARRAY data types are not allowed for top-level params. They're only meant to support protobufs with BYTES (sub)fields.", + "", + "", + "" + ], + "type": "string" + }, + "protoDefPath": { + "description": "Optional. The fully qualified proto name (e.g. enterprise.crm.storage.Account). Required for output field of type PROTO_VALUE or PROTO_ARRAY. For e.g., if input field_type is BYTES and output field_type is PROTO_VALUE, then fully qualified proto type url should be provided to parse the input bytes. If field_type is *_ARRAY, then all the converted protos are of the same type.", + "type": "string" + }, + "referenceKey": { + "description": "This holds the reference key of the workflow or task parameter. 1. Any workflow parameter, for e.g. $workflowParam1$. 2. Any task input or output parameter, for e.g. $task1_param1$. 3. Any workflow or task parameters with subfield references, for e.g., $task1_param1.employee.id$", + "type": "string" + }, + "transformExpression": { + "$ref": "EnterpriseCrmEventbusProtoTransformExpression", + "description": "This is the transform expression to fetch the input field value. for e.g. $param1$.CONCAT('test'). See go/transform-functions-design for more details. Keep points - 1. Only input field can have a transform expression. 2. If a transform expression is provided, reference_key will be ignored. 3. If no value is returned after evaluation of transform expression, default_value can be mapped if provided. 4. The field_type should be the type of the final object returned after the transform expression is evaluated. Scrubs the transform expression before logging as value provided by user so may or may not contain PII or SPII data." + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoFieldMappingConfig": { + "description": "Field Mapping Config to map multiple output fields values from input fields values. Next id: 2", + "id": "EnterpriseCrmEventbusProtoFieldMappingConfig", + "properties": { + "mappedFields": { + "items": { + "$ref": "EnterpriseCrmEventbusProtoMappedField" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoFunction": { + "id": "EnterpriseCrmEventbusProtoFunction", + "properties": { + "functionType": { + "$ref": "EnterpriseCrmEventbusProtoFunctionType", + "description": "The name of the function to perform." + }, + "parameters": { + "description": "List of parameters required for the transformation.", + "items": { + "$ref": "EnterpriseCrmEventbusProtoTransformExpression" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoFunctionType": { + "id": "EnterpriseCrmEventbusProtoFunctionType", + "properties": { + "baseFunction": { + "$ref": "EnterpriseCrmEventbusProtoBaseFunction", + "description": "LINT.IfChange" + }, + "booleanArrayFunction": { + "$ref": "EnterpriseCrmEventbusProtoBooleanArrayFunction" + }, + "booleanFunction": { + "$ref": "EnterpriseCrmEventbusProtoBooleanFunction" + }, + "doubleArrayFunction": { + "$ref": "EnterpriseCrmEventbusProtoDoubleArrayFunction" + }, + "doubleFunction": { + "$ref": "EnterpriseCrmEventbusProtoDoubleFunction" + }, + "intArrayFunction": { + "$ref": "EnterpriseCrmEventbusProtoIntArrayFunction" + }, + "intFunction": { + "$ref": "EnterpriseCrmEventbusProtoIntFunction" + }, + "jsonFunction": { + "$ref": "EnterpriseCrmEventbusProtoJsonFunction", + "description": "LINT.ThenChange(//depot/google3/alkali/apps/integrationplatform/client/workflow_editor/utils/transform_function.ts)" + }, + "protoArrayFunction": { + "$ref": "EnterpriseCrmEventbusProtoProtoArrayFunction" + }, + "protoFunction": { + "$ref": "EnterpriseCrmEventbusProtoProtoFunction" + }, + "stringArrayFunction": { + "$ref": "EnterpriseCrmEventbusProtoStringArrayFunction" + }, + "stringFunction": { + "$ref": "EnterpriseCrmEventbusProtoStringFunction" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoIntArray": { + "id": "EnterpriseCrmEventbusProtoIntArray", + "properties": { + "values": { + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoIntArrayFunction": { + "id": "EnterpriseCrmEventbusProtoIntArrayFunction", + "properties": { + "functionName": { + "enum": [ + "UNSPECIFIED", + "GET", + "APPEND", + "SIZE", + "SUM", + "AVG", + "MAX", + "MIN", + "TO_SET", + "APPEND_ALL", + "TO_JSON", + "SET", + "REMOVE", + "REMOVE_AT", + "CONTAINS", + "FOR_EACH", + "FILTER" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoIntFunction": { + "id": "EnterpriseCrmEventbusProtoIntFunction", + "properties": { + "functionName": { + "enum": [ + "UNSPECIFIED", + "ADD", + "SUBTRACT", + "MULTIPLY", + "DIVIDE", + "EXPONENT", + "GREATER_THAN_EQUAL_TO", + "GREATER_THAN", + "LESS_THAN_EQUAL_TO", + "LESS_THAN", + "TO_DOUBLE", + "TO_STRING", + "EQUALS", + "TO_JSON", + "MOD", + "EPOCH_TO_HUMAN_READABLE_TIME" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoIntParameterArray": { + "id": "EnterpriseCrmEventbusProtoIntParameterArray", + "properties": { + "intValues": { + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoJsonFunction": { + "id": "EnterpriseCrmEventbusProtoJsonFunction", + "properties": { + "functionName": { + "enum": [ + "UNSPECIFIED", + "GET_PROPERTY", + "GET_ELEMENT", + "APPEND_ELEMENT", + "SIZE", + "SET_PROPERTY", + "FLATTEN", + "FLATTEN_ONCE", + "MERGE", + "TO_STRING", + "TO_INT", + "TO_DOUBLE", + "TO_BOOLEAN", + "TO_PROTO", + "TO_STRING_ARRAY", + "TO_INT_ARRAY", + "TO_DOUBLE_ARRAY", + "TO_PROTO_ARRAY", + "TO_BOOLEAN_ARRAY", + "REMOVE_PROPERTY", + "RESOLVE_TEMPLATE", + "EQUALS", + "FOR_EACH", + "FILTER_ELEMENTS" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "next id: 24" + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoLogSettings": { + "description": "The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information. See go/integration-platform/analytics/logging_task.md for details.", + "id": "EnterpriseCrmEventbusProtoLogSettings", + "properties": { + "logFieldName": { + "description": "The name of corresponding logging field of the event property. If omitted, assumes the same name as the event property key.", + "type": "string" + }, + "sanitizeOptions": { + "$ref": "EnterpriseCrmLoggingGwsSanitizeOptions", + "description": "Contains the scrubbing options, such as whether to scrub, obfuscate, etc." + }, + "seedPeriod": { + "enum": [ + "SEED_PERIOD_UNSPECIFIED", + "DAY", + "WEEK", + "MONTH" + ], + "enumDescriptions": [ + "", + "Sanitized values remain constant for the day of the event.", + "Sanitized values remain constant for the week of the event; may cross month boundaries.", + "Sanitized values remain constant for the month of the event." + ], + "type": "string" + }, + "seedScope": { + "enum": [ + "SEED_SCOPE_UNSPECIFIED", + "EVENT_NAME", + "TIME_PERIOD", + "PARAM_NAME" + ], + "enumDescriptions": [ + "", + "Hash computations include the event name.", + "Hash computations include a time period.", + "Hash computations include the param name." + ], + "type": "string" + }, + "shorteningLimits": { + "$ref": "EnterpriseCrmLoggingGwsFieldLimits", + "description": "Contains the field limits for shortening, such as max string length and max array length." + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoLoopMetadata": { + "id": "EnterpriseCrmEventbusProtoLoopMetadata", + "properties": { + "currentIterationCount": { + "description": "Starting from 1, not 0.", + "format": "int64", + "type": "string" + }, + "currentIterationDetail": { + "description": "Needs to be set by the loop impl class before each iteration. The abstract loop class will append the request and response to it. Eg. The foreach Loop will clean up and set it as the current iteration element at the start of each loop. The post request and response will be appended to the value once they are available.", + "type": "string" + }, + "errorMsg": { + "description": "Add the error message when loops fail.", + "type": "string" + }, + "failureLocation": { + "description": "Indicates where in the loop logic did it error out.", + "enum": [ + "UNKNOWN", + "SUBWORKFLOW", + "PARAM_OVERRIDING", + "PARAM_AGGREGATING", + "SETTING_ITERATION_ELEMENT", + "GETTING_LIST_TO_ITERATE", + "CONDITION_EVALUATION", + "BUILDING_REQUEST" + ], + "enumDescriptions": [ + "No error or Unknown.", + "Subworkflow failed while firing/running.", + "Param overrides failed.", + "Param aggregation failed.", + "Setting for loop current element failed.", + "Getting the list to iterate.", + "Evaluating the while loop condition.", + "Building the iteration request" + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoMappedField": { + "description": "Mapped field is a pair of input field and output field. Next Id: 3", + "id": "EnterpriseCrmEventbusProtoMappedField", + "properties": { + "inputField": { + "$ref": "EnterpriseCrmEventbusProtoField", + "description": "The input field being mapped from." + }, + "outputField": { + "$ref": "EnterpriseCrmEventbusProtoField", + "description": "The output field being mapped to." + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoNextTask": { + "description": "The task that is next in line to be executed, if the condition specified evaluated to true.", + "id": "EnterpriseCrmEventbusProtoNextTask", + "properties": { + "combinedConditions": { + "description": "Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition`", + "items": { + "$ref": "EnterpriseCrmEventbusProtoCombinedCondition" + }, + "type": "array" + }, + "condition": { + "description": "Standard filter expression for this task to become an eligible next task.", + "type": "string" + }, + "description": { + "description": "User-provided description intended to give more business context about the next task edge or condition.", + "type": "string" + }, + "label": { + "description": "User-provided label that is attached to this edge in the UI.", + "type": "string" + }, + "taskConfigId": { + "description": "ID of the next task.", + "type": "string" + }, + "taskNumber": { + "description": "Task number of the next task.", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoNextTeardownTask": { + "description": "The teardown task that is next in line to be executed. We support only sequential execution of teardown tasks (i.e. no branching).", + "id": "EnterpriseCrmEventbusProtoNextTeardownTask", + "properties": { + "name": { + "description": "Required. Name of the next teardown task.", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoNodeIdentifier": { + "description": "Represents a node identifier (type + id). Next highest id: 3", + "id": "EnterpriseCrmEventbusProtoNodeIdentifier", + "properties": { + "elementIdentifier": { + "description": "Configuration of the edge.", + "type": "string" + }, + "elementType": { + "description": "Destination node where the edge ends. It can only be a task config.", + "enum": [ + "UNKNOWN_TYPE", + "TASK_CONFIG", + "TRIGGER_CONFIG" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoNotification": { + "id": "EnterpriseCrmEventbusProtoNotification", + "properties": { + "buganizerNotification": { + "$ref": "EnterpriseCrmEventbusProtoBuganizerNotification" + }, + "emailAddress": { + "$ref": "EnterpriseCrmEventbusProtoAddress" + }, + "escalatorQueue": { + "type": "string" + }, + "pubsubTopic": { + "type": "string" + }, + "request": { + "$ref": "EnterpriseCrmEventbusProtoCustomSuspensionRequest", + "description": "If the out-of-the-box email/pubsub notifications are not suitable and custom logic is required, fire a workflow containing all info needed to notify users to resume execution." + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoParamSpecEntryConfig": { + "id": "EnterpriseCrmEventbusProtoParamSpecEntryConfig", + "properties": { + "descriptivePhrase": { + "description": "A short phrase to describe what this parameter contains.", + "type": "string" + }, + "helpText": { + "description": "Detailed help text for this parameter containing information not provided elsewhere. For example, instructions on how to migrate from a deprecated parameter.", + "type": "string" + }, + "hideDefaultValue": { + "description": "Whether the default value is hidden in the UI.", + "type": "boolean" + }, + "inputDisplayOption": { + "enum": [ + "DEFAULT", + "STRING_MULTI_LINE", + "NUMBER_SLIDER", + "BOOLEAN_TOGGLE" + ], + "enumDescriptions": [ + "A single-line input for strings, a numeric input box for numbers, or a checkbox for booleans.", + "A multi-line input box for longer strings/string templates.", + "A slider to select a numerical value. The default range is [0, 100].", + "A toggle button for boolean parameters." + ], + "type": "string" + }, + "isHidden": { + "description": "Whether this field is hidden in the UI.", + "type": "boolean" + }, + "label": { + "description": "A user-friendly label for the parameter.", + "type": "string" + }, + "parameterNameOption": { + "enum": [ + "DEFAULT_NOT_PARAMETER_NAME", + "IS_PARAMETER_NAME", + "KEY_IS_PARAMETER_NAME", + "VALUE_IS_PARAMETER_NAME" + ], + "enumDescriptions": [ + "This field is not a parameter name.", + "If this field is a string and this option is selected, the field will be interpreted as a parameter name. Users will be able to choose a variable using the autocomplete, but the name will be stored as a literal string.", + "If this field is a ParameterMap and this option is selected, the map's keys will be interpreted as parameter names. Ignored if this field is not a ParameterMap.", + "If this field is a ParameterMap and this option is selected, the map's values will be interpreted as parameter names. Ignored if this field is not a ParameterMap." + ], + "type": "string" + }, + "subSectionLabel": { + "description": "A user-friendly label for subSection under which the parameter will be displayed.", + "type": "string" + }, + "uiPlaceholderText": { + "description": "Placeholder text which will appear in the UI input form for this parameter.", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoParamSpecEntryProtoDefinition": { + "id": "EnterpriseCrmEventbusProtoParamSpecEntryProtoDefinition", + "properties": { + "fullName": { + "description": "The fully-qualified proto name. This message, for example, would be \"enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition\".", + "type": "string" + }, + "path": { + "description": "Path to the proto file that contains the message type's definition.", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoParamSpecEntryValidationRule": { + "id": "EnterpriseCrmEventbusProtoParamSpecEntryValidationRule", + "properties": { + "doubleRange": { + "$ref": "EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange" + }, + "intRange": { + "$ref": "EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange" + }, + "stringRegex": { + "$ref": "EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange": { + "description": "Range used to validate doubles and floats.", + "id": "EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange", + "properties": { + "max": { + "description": "The inclusive maximum of the acceptable range.", + "format": "double", + "type": "number" + }, + "min": { + "description": "The inclusive minimum of the acceptable range.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange": { + "description": "Range used to validate longs and ints.", + "id": "EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange", + "properties": { + "max": { + "description": "The inclusive maximum of the acceptable range.", + "format": "int64", + "type": "string" + }, + "min": { + "description": "The inclusive minimum of the acceptable range.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex": { + "description": "Rule used to validate strings.", + "id": "EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex", + "properties": { + "exclusive": { + "description": "Whether the regex matcher is applied exclusively (if true, matching values will be rejected).", + "type": "boolean" + }, + "regex": { + "description": "The regex applied to the input value(s).", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoParameterEntry": { + "description": "Key-value pair of EventBus parameters.", + "id": "EnterpriseCrmEventbusProtoParameterEntry", + "properties": { + "key": { + "description": "Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.", + "type": "string" + }, + "value": { + "$ref": "EnterpriseCrmEventbusProtoParameterValueType", + "description": "Values for the defined keys. Each value can either be string, int, double or any proto message." + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoParameterMap": { + "description": "A generic multi-map that holds key value pairs. They keys and values can be of any type, unless specified.", + "id": "EnterpriseCrmEventbusProtoParameterMap", + "properties": { + "entries": { + "items": { + "$ref": "EnterpriseCrmEventbusProtoParameterMapEntry" + }, + "type": "array" + }, + "keyType": { + "description": "Option to specify key value type for all entries of the map. If provided then field types for all entries must conform to this.", + "enum": [ + "DATA_TYPE_UNSPECIFIED", + "STRING_VALUE", + "INT_VALUE", + "DOUBLE_VALUE", + "BOOLEAN_VALUE", + "PROTO_VALUE", + "SERIALIZED_OBJECT_VALUE", + "STRING_ARRAY", + "INT_ARRAY", + "DOUBLE_ARRAY", + "PROTO_ARRAY", + "PROTO_ENUM", + "BOOLEAN_ARRAY", + "PROTO_ENUM_ARRAY", + "BYTES", + "BYTES_ARRAY", + "NON_SERIALIZABLE_OBJECT", + "JSON_VALUE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "BYTES and BYTES_ARRAY data types are not allowed for top-level params. They're only meant to support protobufs with BYTES (sub)fields.", + "", + "", + "" + ], + "type": "string" + }, + "valueType": { + "enum": [ + "DATA_TYPE_UNSPECIFIED", + "STRING_VALUE", + "INT_VALUE", + "DOUBLE_VALUE", + "BOOLEAN_VALUE", + "PROTO_VALUE", + "SERIALIZED_OBJECT_VALUE", + "STRING_ARRAY", + "INT_ARRAY", + "DOUBLE_ARRAY", + "PROTO_ARRAY", + "PROTO_ENUM", + "BOOLEAN_ARRAY", + "PROTO_ENUM_ARRAY", + "BYTES", + "BYTES_ARRAY", + "NON_SERIALIZABLE_OBJECT", + "JSON_VALUE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "BYTES and BYTES_ARRAY data types are not allowed for top-level params. They're only meant to support protobufs with BYTES (sub)fields.", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoParameterMapEntry": { + "description": "Entry is a pair of key and value.", + "id": "EnterpriseCrmEventbusProtoParameterMapEntry", + "properties": { + "key": { + "$ref": "EnterpriseCrmEventbusProtoParameterMapField" + }, + "value": { + "$ref": "EnterpriseCrmEventbusProtoParameterMapField" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoParameterMapField": { + "description": "Field represents either the key or value in an entry.", + "id": "EnterpriseCrmEventbusProtoParameterMapField", + "properties": { + "literalValue": { + "$ref": "EnterpriseCrmEventbusProtoParameterValueType", + "description": "Passing a literal value." + }, + "referenceKey": { + "description": "Referencing one of the WF variables.", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoParameterValueType": { + "description": "LINT.IfChange To support various types of parameter values. Next available id: 14", + "id": "EnterpriseCrmEventbusProtoParameterValueType", + "properties": { + "booleanArray": { + "$ref": "EnterpriseCrmEventbusProtoBooleanParameterArray" + }, + "booleanValue": { + "type": "boolean" + }, + "doubleArray": { + "$ref": "EnterpriseCrmEventbusProtoDoubleParameterArray" + }, + "doubleValue": { + "format": "double", + "type": "number" + }, + "intArray": { + "$ref": "EnterpriseCrmEventbusProtoIntParameterArray" + }, + "intValue": { + "format": "int64", + "type": "string" + }, + "protoArray": { + "$ref": "EnterpriseCrmEventbusProtoProtoParameterArray" + }, + "protoValue": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "serializedObjectValue": { + "$ref": "EnterpriseCrmEventbusProtoSerializedObjectParameter" + }, + "stringArray": { + "$ref": "EnterpriseCrmEventbusProtoStringParameterArray" + }, + "stringValue": { + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoPropertyEntry": { + "description": "Key-value pair of EventBus property.", + "id": "EnterpriseCrmEventbusProtoPropertyEntry", + "properties": { + "key": { + "description": "Key is used to retrieve the corresponding property value. This should be unique for a given fired event. The Tasks should be aware of the keys used while firing the events for them to be able to retrieve the values.", + "type": "string" + }, + "value": { + "$ref": "EnterpriseCrmEventbusProtoValueType", + "description": "Values for the defined keys. Each value can either be string, int, double or any proto message." + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoProtoArrayFunction": { + "id": "EnterpriseCrmEventbusProtoProtoArrayFunction", + "properties": { + "functionName": { + "enum": [ + "UNSPECIFIED", + "GET", + "APPEND", + "SIZE", + "TO_SET", + "APPEND_ALL", + "TO_JSON", + "SET", + "REMOVE", + "REMOVE_AT", + "CONTAINS", + "FOR_EACH", + "FILTER" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoProtoFunction": { + "id": "EnterpriseCrmEventbusProtoProtoFunction", + "properties": { + "functionName": { + "enum": [ + "UNSPECIFIED", + "GET_STRING_SUBFIELD", + "GET_INT_SUBFIELD", + "GET_DOUBLE_SUBFIELD", + "GET_BOOLEAN_SUBFIELD", + "GET_STRING_ARRAY_SUBFIELD", + "GET_INT_ARRAY_SUBFIELD", + "GET_DOUBLE_ARRAY_SUBFIELD", + "GET_BOOLEAN_ARRAY_SUBFIELD", + "GET_PROTO_ARRAY_SUBFIELD", + "GET_PROTO_SUBFIELD", + "TO_JSON", + "GET_BYTES_SUBFIELD_AS_UTF_8_STRING", + "GET_BYTES_SUBFIELD_AS_PROTO", + "EQUALS" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoProtoParameterArray": { + "id": "EnterpriseCrmEventbusProtoProtoParameterArray", + "properties": { + "protoValues": { + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoScatterResponse": { + "id": "EnterpriseCrmEventbusProtoScatterResponse", + "properties": { + "errorMsg": { + "description": "The error message of the failure if applicable.", + "type": "string" + }, + "executionIds": { + "description": "The execution ids of each Subworkflow fired by this scatter.", + "items": { + "type": "string" + }, + "type": "array" + }, + "isSuccessful": { + "description": "If execution is sync, this is true if the execution passed and false if it failed. If the execution is async, this is true if the WF was fired off successfully, and false if it failed to execute. The success or failure of the subworkflows executed are not captured.", + "type": "boolean" + }, + "responseParams": { + "description": "A list of all the response parameters in the aggregtorMap stored with the remapped key.", + "items": { + "$ref": "EnterpriseCrmEventbusProtoParameterEntry" + }, + "type": "array" + }, + "scatterElement": { + "$ref": "EnterpriseCrmEventbusProtoParameterValueType", + "description": "The element that was scattered for this execution." + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoSerializedObjectParameter": { + "id": "EnterpriseCrmEventbusProtoSerializedObjectParameter", + "properties": { + "objectValue": { + "format": "byte", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoStringArray": { + "id": "EnterpriseCrmEventbusProtoStringArray", + "properties": { + "values": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoStringArrayFunction": { + "id": "EnterpriseCrmEventbusProtoStringArrayFunction", + "properties": { + "functionName": { + "enum": [ + "UNSPECIFIED", + "GET", + "APPEND", + "SIZE", + "TO_SET", + "APPEND_ALL", + "TO_JSON", + "SET", + "REMOVE", + "REMOVE_AT", + "CONTAINS", + "FOR_EACH", + "FILTER" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoStringFunction": { + "id": "EnterpriseCrmEventbusProtoStringFunction", + "properties": { + "functionName": { + "enum": [ + "UNSPECIFIED", + "CONCAT", + "TO_UPPERCASE", + "TO_LOWERCASE", + "CONTAINS", + "SPLIT", + "LENGTH", + "EQUALS", + "TO_INT", + "TO_DOUBLE", + "TO_BOOLEAN", + "TO_BASE_64", + "TO_JSON", + "EQUALS_IGNORE_CASE", + "REPLACE_ALL", + "SUBSTRING", + "RESOLVE_TEMPLATE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoStringParameterArray": { + "id": "EnterpriseCrmEventbusProtoStringParameterArray", + "properties": { + "stringValues": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoSuccessPolicy": { + "description": "Policy that dictates the behavior for the task after it completes successfully.", + "id": "EnterpriseCrmEventbusProtoSuccessPolicy", + "properties": { + "finalState": { + "description": "State to which the execution snapshot status will be set if the task succeeds.", + "enum": [ + "UNSPECIFIED", + "SUCCEEDED", + "SUSPENDED" + ], + "enumDescriptions": [ + "", + "The default behavior, where successful tasks will be marked as SUCCEEDED.", + "Sets the state to SUSPENDED after executing. This is required for SuspensionTask; event execution will continue once the user calls ResolveSuspensions with the event_execution_info_id and the task number." + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoSuspensionAuthPermissions": { + "description": "LINT.IfChange", + "id": "EnterpriseCrmEventbusProtoSuspensionAuthPermissions", + "properties": { + "gaiaIdentity": { + "$ref": "EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity", + "description": "Represents a Gaia identity for a person or service account." + }, + "googleGroup": { + "$ref": "EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity" + }, + "loasRole": { + "type": "string" + }, + "mdbGroup": { + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity": { + "id": "EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity", + "properties": { + "emailAddress": { + "type": "string" + }, + "gaiaId": { + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoSuspensionConfig": { + "id": "EnterpriseCrmEventbusProtoSuspensionConfig", + "properties": { + "customMessage": { + "description": "Optional information to provide recipients of the suspension in addition to the resolution URL, typically containing relevant parameter values from the originating workflow.", + "type": "string" + }, + "notifications": { + "items": { + "$ref": "EnterpriseCrmEventbusProtoNotification" + }, + "type": "array" + }, + "suspensionExpiration": { + "$ref": "EnterpriseCrmEventbusProtoSuspensionExpiration", + "description": "Indicates the next steps when no external actions happen on the suspension." + }, + "whoMayResolve": { + "description": "Identities able to resolve this suspension.", + "items": { + "$ref": "EnterpriseCrmEventbusProtoSuspensionAuthPermissions" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoSuspensionExpiration": { + "id": "EnterpriseCrmEventbusProtoSuspensionExpiration", + "properties": { + "expireAfterMs": { + "description": "Milliseconds after which the suspension expires, if no action taken.", + "format": "int32", + "type": "integer" + }, + "liftWhenExpired": { + "description": "Whether the suspension will be REJECTED or LIFTED upon expiration. REJECTED is the default behavior.", + "type": "boolean" + }, + "remindAfterMs": { + "description": "Milliseconds after which the previous suspension action reminder, if any, is sent using the selected notification option, for a suspension which is still PENDING_UNSPECIFIED.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoSuspensionResolutionInfo": { + "id": "EnterpriseCrmEventbusProtoSuspensionResolutionInfo", + "properties": { + "audit": { + "$ref": "EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit" + }, + "createdTimestamp": { + "description": "Auto-generated.", + "format": "google-datetime", + "type": "string" + }, + "eventExecutionInfoId": { + "description": "Required. ID of the associated execution.", + "type": "string" + }, + "externalTraffic": { + "$ref": "EnterpriseCrmEventbusProtoExternalTraffic", + "description": "The origin of the suspension for periodic notifications." + }, + "lastModifiedTimestamp": { + "description": "Auto-generated.", + "format": "google-datetime", + "type": "string" + }, + "product": { + "description": "Which Google product the suspension belongs to. If not set, the suspension belongs to Integration Platform by default.", + "enum": [ + "UNSPECIFIED_PRODUCT", + "IP", + "APIGEE", + "SECURITY" + ], + "enumDescriptions": [ + "", + "", + "", + "" + ], + "type": "string" + }, + "status": { + "enum": [ + "PENDING_UNSPECIFIED", + "REJECTED", + "LIFTED" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + }, + "suspensionConfig": { + "$ref": "EnterpriseCrmEventbusProtoSuspensionConfig" + }, + "suspensionId": { + "description": "Primary key for the SuspensionResolutionInfoTable.", + "type": "string" + }, + "taskNumber": { + "description": "Required. Task number of the associated SuspensionTask.", + "type": "string" + }, + "workflowName": { + "description": "Required. The name of the originating workflow.", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit": { + "id": "EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit", + "properties": { + "resolvedBy": { + "type": "string" + }, + "timestamp": { + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoTaskAlertConfig": { + "description": "Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event. See go/eventbus-alert-config-examples for examples of the different alerts that can be configured.", + "id": "EnterpriseCrmEventbusProtoTaskAlertConfig", + "properties": { + "aggregationPeriod": { + "description": "The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week).", + "type": "string" + }, + "alertDisabled": { + "description": "Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert.", + "type": "boolean" + }, + "alertName": { + "description": "A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique in within the scope of the containing workflow.", + "type": "string" + }, + "clientId": { + "description": "Client associated with this alert configuration. Must be a client enabled in one of the containing workflow's triggers.", + "type": "string" + }, + "durationThresholdMs": { + "description": "Should be specified only for TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger.", + "format": "int64", + "type": "string" + }, + "errorEnumList": { + "$ref": "EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList" + }, + "metricType": { + "enum": [ + "METRIC_TYPE_UNSPECIFIED", + "TASK_ERROR_RATE", + "TASK_WARNING_RATE", + "TASK_RATE", + "TASK_AVERAGE_DURATION", + "TASK_PERCENTILE_DURATION" + ], + "enumDescriptions": [ + "The default value. Metric type should always be set to one of the other non-default values, otherwise it will result in an INVALID_ARGUMENT error.", + "Specifies alerting on the rate of errors (potentially for a specific set of enum values) for the enclosing TaskConfig.", + "Specifies alerting on the rate of warnings (potentially for a specific set of enum values) for the enclosing TaskConfig. Warnings use the same enum values as errors.", + "Specifies alerting on the number of instances for the enclosing TaskConfig executed in the given aggregation_period.", + "Specifies alerting on the average duration of execution for the enclosing task.", + "Specifies alerting on the duration of a particular percentile of task executions. E.g. If 10% or more of the task executions have durations above 5 seconds, alert." + ], + "type": "string" + }, + "numAggregationPeriods": { + "description": "For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired.", + "format": "int32", + "type": "integer" + }, + "onlyFinalAttempt": { + "description": "Only count final task attempts, not retries.", + "type": "boolean" + }, + "playbookUrl": { + "description": "Link to a playbook for resolving the issue that triggered this alert.", + "type": "string" + }, + "thresholdType": { + "description": "The threshold type for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired.", + "enum": [ + "UNSPECIFIED_THRESHOLD_TYPE", + "EXPECTED_MIN", + "EXPECTED_MAX" + ], + "enumDescriptions": [ + "", + "Note that this field will only trigger alerts if the workflow specifying it runs at least once in 24 hours (which is our in-memory retention period for monarch streams). Also note that `aggregation_period` for this alert configuration must be less than 24 hours.", + "" + ], + "type": "string" + }, + "thresholdValue": { + "$ref": "EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue", + "description": "The metric value, above or below which the alert should be triggered." + }, + "warningEnumList": { + "$ref": "EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoTaskExecutionDetails": { + "description": "Contains the details of the execution of this task. Next available id: 11", + "id": "EnterpriseCrmEventbusProtoTaskExecutionDetails", + "properties": { + "taskAttemptStats": { + "items": { + "$ref": "EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats" + }, + "type": "array" + }, + "taskExecutionState": { + "enum": [ + "UNSPECIFIED", + "PENDING_EXECUTION", + "IN_PROCESS", + "SUCCEED", + "FAILED", + "FATAL", + "RETRY_ON_HOLD", + "SKIPPED", + "CANCELED", + "PENDING_ROLLBACK", + "ROLLBACK_IN_PROCESS", + "ROLLEDBACK", + "SUSPENDED" + ], + "enumDescriptions": [ + "", + "Task is waiting for its precondition tasks to finish to start the execution.", + "Task is under processing.", + "Task execution successfully finished. There's no more change after this state.", + "Task execution failed. There's no more change after this state.", + "Task execution failed and cause the whole event execution to fail immediately. There's no more change after this state.", + "Task execution failed and waiting for retry.", + "Task execution skipped. This happens when its precondition wasn't met, or the event execution been canceled before reach to the task. There's no more changes after this state.", + "Task execution canceled when in progress. This happens when event execution been canceled or any other task fall in fatal state.", + "Task is waiting for its dependency tasks' rollback to finish to start its rollback.", + "Task is rolling back.", + "Task is rolled back. This is the state we will set regardless of rollback succeeding or failing.", + "Task is a SuspensionTask which has executed once, creating a pending suspension." + ], + "type": "string" + }, + "taskNumber": { + "description": "Pointer to the task config it used for execution.", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats": { + "id": "EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats", + "properties": { + "endTime": { + "description": "The end time of the task execution for current attempt.", + "format": "int64", + "type": "string" + }, + "startTime": { + "description": "The start time of the task execution for current attempt. This could be in the future if it's been scheduled.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoTaskMetadata": { + "description": "TaskMetadata are attributes that are associated to every common Task we have. Next available: 26", + "id": "EnterpriseCrmEventbusProtoTaskMetadata", + "properties": { + "activeTaskName": { + "description": "The new task name to replace the current task if it is deprecated. Otherwise, it is the same as the current task name.", + "type": "string" + }, + "admins": { + "items": { + "$ref": "EnterpriseCrmEventbusProtoTaskMetadataAdmin" + }, + "type": "array" + }, + "category": { + "enum": [ + "UNSPECIFIED_CATEGORY", + "CUSTOM", + "FLOW_CONTROL", + "DATA_MANIPULATION", + "SCRIPTING", + "CONNECTOR", + "HIDDEN", + "CLOUD_SYSTEMS", + "CUSTOM_TASK_TEMPLATE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "Internal IP tasks that should not be available in the UI.", + "Tasks that are relevant to cloud systems teams and typically", + "include connecting to Vector salesforce, CRM Hub Spanner etc. Task entities that derive from a custom task template." + ], + "type": "string" + }, + "codeSearchLink": { + "description": "The Code Search link to the Task Java file.", + "type": "string" + }, + "defaultJsonValidationOption": { + "description": "Controls whether JSON workflow parameters are validated against provided schemas before and/or after this task's execution.", + "enum": [ + "UNSPECIFIED_JSON_VALIDATION_OPTION", + "SKIP", + "PRE_EXECUTION", + "POST_EXECUTION", + "PRE_POST_EXECUTION" + ], + "enumDescriptions": [ + "As per the default behavior, no validation will be run. Will not override any option set in a Task.", + "Do not run any validation against JSON schemas.", + "Validate all potential input JSON parameters against schemas specified in WorkflowParameters.", + "Validate all potential output JSON parameters against schemas specified in WorkflowParameters.", + "Perform both PRE_EXECUTION and POST_EXECUTION validations." + ], + "type": "string" + }, + "defaultSpec": { + "description": "Contains the initial configuration of the task with default values set. For now, The string should be compatible to an ASCII-proto format.", + "type": "string" + }, + "description": { + "description": "In a few sentences, describe the purpose and usage of the task.", + "type": "string" + }, + "descriptiveName": { + "description": "The string name to show on the task list on the Workflow editor screen. This should be a very short, one to two words name for the task. (e.g. \"Send Mail\")", + "type": "string" + }, + "docMarkdown": { + "description": "Snippet of markdown documentation to embed in the RHP for this task.", + "type": "string" + }, + "externalCategory": { + "enum": [ + "UNSPECIFIED_EXTERNAL_CATEGORY", + "CORE", + "CONNECTORS" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + }, + "externalCategorySequence": { + "description": "Sequence with which the task in specific category to be displayed in task discovery panel for external users.", + "format": "int32", + "type": "integer" + }, + "externalDocHtml": { + "description": "External-facing documention embedded in the RHP for this task.", + "type": "string" + }, + "externalDocLink": { + "description": "Doc link for external-facing documentation (separate from g3doc).", + "type": "string" + }, + "externalDocMarkdown": { + "description": "DEPRECATED: Use external_doc_html.", + "type": "string" + }, + "g3DocLink": { + "description": "URL to the associated G3 Doc for the task if available", + "type": "string" + }, + "iconLink": { + "description": "URL to gstatic image icon for this task. This icon shows up on the task list panel along with the task name in the Workflow Editor screen. Use the 24p, 2x, gray color icon image format. See go/icons.", + "type": "string" + }, + "isDeprecated": { + "description": "The deprecation status of the current task. Default value is false;", + "type": "boolean" + }, + "name": { + "description": "The actual class name or the annotated name of the task. Task Author should initialize this field with value from the getName() method of the Task class.", + "type": "string" + }, + "standaloneExternalDocHtml": { + "description": "External-facing documention for standalone IP in pantheon embedded in the RHP for this task. Non null only if different from external_doc_html", + "type": "string" + }, + "status": { + "description": "Allows author to indicate if the task is ready to use or not. If not set, then it will default to INACTIVE.", + "enum": [ + "UNSPECIFIED_STATUS", + "DEFAULT_INACTIVE", + "ACTIVE" + ], + "enumDescriptions": [ + "Default value. Actual Task Status should always be set to either INACTIVE or ACTIVE. If none is specified at runtime, it will be set to INACTIVE.", + "Still in-progress or incomplete, and not intended for use.", + "Available for use." + ], + "type": "string" + }, + "system": { + "enum": [ + "UNSPECIFIED_SYSTEM", + "GENERIC", + "BUGANIZER", + "SALESFORCE", + "CLOUD_SQL", + "PLX", + "SHEETS", + "GOOGLE_GROUPS", + "EMAIL", + "SPANNER", + "DATA_BRIDGE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "tags": { + "description": "A set of tags that pertain to a particular task. This can be used to improve the searchability of tasks with several names (\"REST Caller\" vs. \"Call REST Endpoint\") or to help users find tasks based on related words.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoTaskMetadataAdmin": { + "description": "Admins are owners of a Task, and have all permissions on a particular task identified by the task name. By default, Eventbus periodically scans all task metadata and syncs (adds) any new admins defined here to Zanzibar.", + "id": "EnterpriseCrmEventbusProtoTaskMetadataAdmin", + "properties": { + "googleGroupEmail": { + "type": "string" + }, + "userEmail": { + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoTaskUiConfig": { + "description": "Task authors would use this type to configure the UI for a particular task by specifying what UI config modules should be included to compose the UI. Learn more about config module framework: go/integration-platform-config-module-framework", + "id": "EnterpriseCrmEventbusProtoTaskUiConfig", + "properties": { + "taskUiModuleConfigs": { + "description": "Configurations of included config modules.", + "items": { + "$ref": "EnterpriseCrmEventbusProtoTaskUiModuleConfig" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoTaskUiModuleConfig": { + "description": "Task author would use this type to configure a config module.", + "id": "EnterpriseCrmEventbusProtoTaskUiModuleConfig", + "properties": { + "moduleId": { + "description": "ID of the config module.", + "enum": [ + "UNSPECIFIED_TASK_MODULE", + "LABEL", + "ERROR_HANDLING", + "TASK_PARAM_TABLE", + "TASK_PARAM_FORM", + "PRECONDITION", + "SCRIPT_EDITOR", + "RPC", + "TASK_SUMMARY", + "SUSPENSION", + "RPC_TYPED", + "SUB_WORKFLOW", + "APPS_SCRIPT_NAVIGATOR", + "SUB_WORKFLOW_FOR_EACH_LOOP", + "FIELD_MAPPING", + "README", + "REST_CALLER", + "SUB_WORKFLOW_SCATTER_GATHER", + "CLOUD_SQL", + "GENERIC_CONNECTOR_TASK" + ], + "enumDescriptions": [ + "Default", + "Supports editing label of a task config.", + "Supports editing error handling settings such as retry strategy.", + "Supports adding, removing and editing task parameter values in a table with little assistance or restriction.", + "Supports editing values of declared input parameters of a task. Think of it as a \"strongly typed\" upgrade to the TASK_PARAM_TABLE.", + "Supports editing preconditions of a task config.", + "Supports adding, editing, and deleting the scripts associated with a script task, as well as modifying the input/output parameters.", + "Supports editing task parameters associated with an RPC/stubby task.", + "Contains readonly task information, including input/output type info.", + "Configures a SuspensionTask.", + "Configures a GenericStubbyTypedTask.", + "Configures a SubWorkflowExecutorTask.", + "Supports navigating to Apps Script editor", + "Configures a SubWorkflowForEachLoopTask.", + "Configures a FieldMappingTask.", + "Contains embedded in-product documentation for a task.", + "UI widget for the rest caller task.", + "Configures a SubWorkflowScatterGatherTask.", + "Configures a CloudSql Task.", + "Configure a GenericConnectorTask." + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoTeardown": { + "id": "EnterpriseCrmEventbusProtoTeardown", + "properties": { + "teardownTaskConfigs": { + "description": "Required.", + "items": { + "$ref": "EnterpriseCrmEventbusProtoTeardownTaskConfig" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoTeardownTaskConfig": { + "id": "EnterpriseCrmEventbusProtoTeardownTaskConfig", + "properties": { + "creatorEmail": { + "description": "The creator's email address.", + "type": "string" + }, + "name": { + "description": "Required. Unique identifier of the teardown task within this Config. We use this field as the identifier to find next teardown tasks.", + "type": "string" + }, + "nextTeardownTask": { + "$ref": "EnterpriseCrmEventbusProtoNextTeardownTask" + }, + "parameters": { + "$ref": "EnterpriseCrmEventbusProtoEventParameters", + "description": "The parameters the user can pass to this task." + }, + "properties": { + "$ref": "EnterpriseCrmEventbusProtoEventBusProperties" + }, + "teardownTaskImplementationClassName": { + "description": "Required. Implementation class name.", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoToken": { + "id": "EnterpriseCrmEventbusProtoToken", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoTransformExpression": { + "id": "EnterpriseCrmEventbusProtoTransformExpression", + "properties": { + "initialValue": { + "$ref": "EnterpriseCrmEventbusProtoBaseValue", + "description": "Initial value upon which to perform transformations." + }, + "transformationFunctions": { + "description": "Transformations to be applied sequentially.", + "items": { + "$ref": "EnterpriseCrmEventbusProtoFunction" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoTriggerCriteria": { + "id": "EnterpriseCrmEventbusProtoTriggerCriteria", + "properties": { + "condition": { + "description": "Required. Standard filter expression, when true the workflow will be executed. If there's no trigger_criteria_task_implementation_class_name specified, the condition will be validated directly.", + "type": "string" + }, + "parameters": { + "$ref": "EnterpriseCrmEventbusProtoEventParameters", + "description": "Optional. To be used in TaskConfig for the implementation class." + }, + "triggerCriteriaTaskImplementationClassName": { + "description": "Optional. Implementation class name. The class should implement the “TypedTask” interface.", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoValueType": { + "description": "Used for define type for values. Currently supported value types include int, string, double, array, and any proto message.", + "id": "EnterpriseCrmEventbusProtoValueType", + "properties": { + "booleanValue": { + "type": "boolean" + }, + "doubleArray": { + "$ref": "EnterpriseCrmEventbusProtoDoubleArray" + }, + "doubleValue": { + "format": "double", + "type": "number" + }, + "intArray": { + "$ref": "EnterpriseCrmEventbusProtoIntArray" + }, + "intValue": { + "format": "int64", + "type": "string" + }, + "protoValue": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "stringArray": { + "$ref": "EnterpriseCrmEventbusProtoStringArray" + }, + "stringValue": { + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusProtoWorkflowAlertConfig": { + "description": "Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. See go/eventbus-alert-config-examples for examples of the different alerts that can be configured.", + "id": "EnterpriseCrmEventbusProtoWorkflowAlertConfig", + "properties": { + "aggregationPeriod": { + "description": "For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours.", + "type": "string" + }, + "alertDisabled": { + "description": "Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert.", + "type": "boolean" + }, + "alertName": { + "description": "A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the workflow.", + "type": "string" + }, + "clientId": { + "description": "Client associated with this alert configuration.", + "type": "string" + }, + "durationThresholdMs": { + "description": "Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger.", + "format": "int64", + "type": "string" + }, + "errorEnumList": { + "$ref": "EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList" + }, + "metricType": { + "enum": [ + "METRIC_TYPE_UNSPECIFIED", + "EVENT_ERROR_RATE", + "EVENT_WARNING_RATE", + "TASK_ERROR_RATE", + "TASK_WARNING_RATE", + "TASK_RATE", + "EVENT_RATE", + "EVENT_AVERAGE_DURATION", + "EVENT_PERCENTILE_DURATION", + "TASK_AVERAGE_DURATION", + "TASK_PERCENTILE_DURATION" + ], + "enumDescriptions": [ + "The default value. Metric type should always be set to one of the other non-default values, otherwise it will result in an INVALID_ARGUMENT error.", + "Specifies alerting on the rate of errors for the enclosing workflow.", + "Specifies alerting on the rate of warnings for the enclosing workflow. Warnings use the same enum values as errors.", + "Specifies alerting on the rate of errors for any task in the enclosing workflow.", + "Specifies alerting on the rate of warnings for any task in the enclosing workflow.", + "Specifies alerting on the rate of executions over all tasks in the enclosing workflow.", + "Specifies alerting on the number of events executed in the given aggregation_period.", + "Specifies alerting on the average duration of executions for this workflow.", + "Specifies alerting on the duration value of a particular percentile of workflow executions. E.g. If 10% or more of the workflow executions have durations above 5 seconds, alert.", + "Specifies alerting on the average duration of any task in the enclosing workflow,", + "Specifies alerting on the duration value of a particular percentile of any task executions within the enclosing workflow. E.g. If 10% or more of the task executions in the workflow have durations above 5 seconds, alert." + ], + "type": "string" + }, + "numAggregationPeriods": { + "description": "For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired.", + "format": "int32", + "type": "integer" + }, + "onlyFinalAttempt": { + "description": "For either events or tasks, depending on the type of alert, count only final attempts, not retries.", + "type": "boolean" + }, + "playbookUrl": { + "description": "Link to a playbook for resolving the issue that triggered this alert.", + "type": "string" + }, + "thresholdType": { + "description": "The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired.", + "enum": [ + "UNSPECIFIED_THRESHOLD_TYPE", + "EXPECTED_MIN", + "EXPECTED_MAX" + ], + "enumDescriptions": [ + "", + "Note that this field will only trigger alerts if the workflow specifying it runs at least once in 24 hours (which is our in-memory retention period for monarch streams). Also note that `aggregation_period` for this alert configuration must be less than 24 hours.", + "" + ], + "type": "string" + }, + "thresholdValue": { + "$ref": "EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue", + "description": "The metric value, above or below which the alert should be triggered. See go/eventbus-alert-config-examples." + }, + "warningEnumList": { + "$ref": "EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusStats": { + "description": "Stats for the requested dimensions: QPS, duration, and error/warning rate", + "id": "EnterpriseCrmEventbusStats", + "properties": { + "dimensions": { + "$ref": "EnterpriseCrmEventbusStatsDimensions", + "description": "Dimensions that these stats have been aggregated on." + }, + "durationInSeconds": { + "description": "Average duration in seconds.", + "format": "double", + "type": "number" + }, + "errorRate": { + "description": "Average error rate.", + "format": "double", + "type": "number" + }, + "qps": { + "description": "Queries per second.", + "format": "double", + "type": "number" + }, + "warningRate": { + "description": "Average warning rate.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "EnterpriseCrmEventbusStatsDimensions": { + "id": "EnterpriseCrmEventbusStatsDimensions", + "properties": { + "clientId": { + "type": "string" + }, + "enumFilterType": { + "description": "Whether to include or exclude the enums matching the regex.", + "enum": [ + "DEFAULT_INCLUSIVE", + "EXCLUSIVE" + ], + "enumDescriptions": [ + "", + "" + ], + "type": "string" + }, + "errorEnumString": { + "type": "string" + }, + "retryAttempt": { + "enum": [ + "UNSPECIFIED", + "FINAL", + "RETRYABLE", + "CANCELED" + ], + "enumDescriptions": [ + "", + "Task has completed successfully or has depleted all retry attempts.", + "Task has failed but may be retried.", + "Task has been deliberately canceled." + ], + "type": "string" + }, + "taskName": { + "type": "string" + }, + "taskNumber": { + "type": "string" + }, + "triggerId": { + "description": "Stats have been or will be aggregated on set fields for any semantically-meaningful combination.", + "type": "string" + }, + "warningEnumString": { + "type": "string" + }, + "workflowId": { + "type": "string" + }, + "workflowName": { + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray": { + "id": "EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray", + "properties": { + "booleanValues": { + "items": { + "type": "boolean" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray": { + "id": "EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray", + "properties": { + "doubleValues": { + "items": { + "format": "double", + "type": "number" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails": { + "description": "Contains the details of the execution info of this event: this includes the tasks execution details plus the event execution statistics. Next available id: 10", + "id": "EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails", + "properties": { + "eventAttemptStats": { + "items": { + "$ref": "EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats" + }, + "type": "array" + }, + "eventExecutionSnapshot": { + "description": "After snapshot migration, this field will no longer be populated, but old execution snapshots will still be accessible.", + "items": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot" + }, + "type": "array" + }, + "eventExecutionState": { + "description": "The execution state of this event.", + "enum": [ + "UNSPECIFIED", + "ON_HOLD", + "IN_PROCESS", + "SUCCEEDED", + "FAILED", + "CANCELED", + "RETRY_ON_HOLD", + "SUSPENDED" + ], + "enumDescriptions": [ + "", + "Event is received and waiting for the execution. This happens when firing the event via \"postToQueue\" or \"schedule\".", + "Event is under processing.", + "Event execution successfully finished. There's no more change after this state.", + "Event execution failed. There's no more change after this state.", + "Event execution canceled by user. There's no more change after this state.", + "Event execution failed and waiting for retry.", + "Event execution suspended and waiting for manual intervention." + ], + "type": "string" + }, + "eventRetriesFromBeginningCount": { + "description": "Indicates the number of times the execution has restarted from the beginning.", + "format": "int32", + "type": "integer" + }, + "logFilePath": { + "description": "The log file path (aka. cns address) for this event.", + "type": "string" + }, + "networkAddress": { + "description": "The network address (aka. bns address) that indicates where the event executor is running.", + "type": "string" + }, + "nextExecutionTime": { + "description": "Next scheduled execution time in case the execution status was RETRY_ON_HOLD.", + "format": "int64", + "type": "string" + }, + "ryeLockUnheldCount": { + "description": "Used internally and shouldn't be exposed to users. A counter for the cron job to record how many times this event is in in_process state but don't have a lock consecutively/", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo": { + "description": "Contains all the execution details for a workflow instance. Next available id: 24", + "id": "EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo", + "properties": { + "clientId": { + "description": "The event data user sends as request.", + "type": "string" + }, + "createTime": { + "description": "Auto-generated.", + "format": "int64", + "type": "string" + }, + "errorCode": { + "$ref": "CrmlogErrorCode", + "description": "Final error-code if event failed." + }, + "errors": { + "description": "Errors, warnings, and informationals associated with the workflow/task. The order in which the errors were added by the workflow/task is maintained.", + "items": { + "$ref": "EnterpriseCrmEventbusProtoErrorDetail" + }, + "type": "array" + }, + "eventExecutionDetails": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails", + "description": "The execution info about this event." + }, + "eventExecutionInfoId": { + "description": "Auto-generated primary key.", + "type": "string" + }, + "executionTraceInfo": { + "$ref": "EnterpriseCrmEventbusProtoExecutionTraceInfo", + "description": "Execution trace info to aggregate parent-child executions." + }, + "lastModifiedTime": { + "description": "Auto-generated.", + "format": "int64", + "type": "string" + }, + "postMethod": { + "description": "The ways user posts this event.", + "enum": [ + "UNSPECIFIED", + "POST", + "POST_TO_QUEUE", + "SCHEDULE", + "POST_BY_EVENT_CONFIG_ID", + "POST_WITH_EVENT_DETAILS" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "product": { + "description": "Which Google product the execution_info belongs to. If not set, the execution_info belongs to Integration Platform by default.", + "enum": [ + "UNSPECIFIED_PRODUCT", + "IP", + "APIGEE", + "SECURITY" + ], + "enumDescriptions": [ + "", + "", + "", + "" + ], + "type": "string" + }, + "requestId": { + "description": "Optional. This is used to de-dup incoming request.", + "type": "string" + }, + "requestParams": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoEventParameters", + "description": "Event parameters come in as part of the request." + }, + "responseParams": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoEventParameters", + "description": "Event parameters come out as part of the response." + }, + "snapshotNumber": { + "description": "Workflow snapshot number.", + "format": "int64", + "type": "string" + }, + "tenant": { + "description": "Tenant this event is created. Used to reschedule the event to correct tenant.", + "type": "string" + }, + "triggerId": { + "description": "The trigger id of the workflow trigger config. If both trigger_id and client_id is present, the workflow is executed from the start tasks provided by the matching trigger config otherwise it is executed from the default start tasks.", + "type": "string" + }, + "workflowId": { + "description": "Required. Pointer to the workflow it is executing.", + "type": "string" + }, + "workflowName": { + "description": "Name of the workflow.", + "type": "string" + }, + "workflowRetryBackoffIntervalSeconds": { + "description": "Time interval in seconds to schedule retry of workflow in manifold when workflow is already running", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot": { + "id": "EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot", + "properties": { + "checkpointTaskNumber": { + "description": "Indicates \"right after which checkpoint task's execution\" this snapshot is taken.", + "type": "string" + }, + "conditionResults": { + "description": "All of the computed conditions that been calculated.", + "items": { + "$ref": "EnterpriseCrmEventbusProtoConditionResult" + }, + "type": "array" + }, + "diffParams": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoEventParameters", + "description": "The parameters in Event object that differs from last snapshot." + }, + "eventExecutionInfoId": { + "description": "Points to the event execution info this snapshot belongs to.", + "type": "string" + }, + "eventExecutionSnapshotId": { + "description": "Auto-generated. Used as primary key for EventExecutionSnapshots table.", + "type": "string" + }, + "eventExecutionSnapshotMetadata": { + "$ref": "EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata" + }, + "eventParams": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoEventParameters", + "description": "The parameters in Event object." + }, + "snapshotTime": { + "description": "Indicates when this snapshot is taken.", + "format": "int64", + "type": "string" + }, + "taskExecutionDetails": { + "description": "All of the task execution details at the given point of time.", + "items": { + "$ref": "EnterpriseCrmEventbusProtoTaskExecutionDetails" + }, + "type": "array" + }, + "taskName": { + "description": "The task name associated with this snapshot. Could be empty.", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmFrontendsEventbusProtoEventParameters": { + "description": "LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see go/integration-platform/event_bus.md for more details. Next id: 4", + "id": "EnterpriseCrmFrontendsEventbusProtoEventParameters", + "properties": { + "parameters": { + "description": "Parameters are a part of Event and can be used to communicate between different tasks that are part of the same workflow execution.", + "items": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoParameterEntry" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmFrontendsEventbusProtoIntParameterArray": { + "id": "EnterpriseCrmFrontendsEventbusProtoIntParameterArray", + "properties": { + "intValues": { + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmFrontendsEventbusProtoParamSpecEntry": { + "description": "Key-value pair of EventBus task parameters. Next id: 13", + "id": "EnterpriseCrmFrontendsEventbusProtoParamSpecEntry", + "properties": { + "className": { + "description": "The FQCN of the Java object this represents. A string, for example, would be \"java.lang.String\". If this is \"java.lang.Object\", the parameter can be of any type.", + "type": "string" + }, + "collectionElementClassName": { + "description": "If it is a collection of objects, this would be the FCQN of every individual element in the collection. If this is \"java.lang.Object\", the parameter is a collection of any type.", + "type": "string" + }, + "config": { + "$ref": "EnterpriseCrmEventbusProtoParamSpecEntryConfig", + "description": "Optional fields, such as help text and other useful info." + }, + "dataType": { + "description": "The data type of the parameter.", + "enum": [ + "DATA_TYPE_UNSPECIFIED", + "STRING_VALUE", + "INT_VALUE", + "DOUBLE_VALUE", + "BOOLEAN_VALUE", + "PROTO_VALUE", + "SERIALIZED_OBJECT_VALUE", + "STRING_ARRAY", + "INT_ARRAY", + "DOUBLE_ARRAY", + "PROTO_ARRAY", + "PROTO_ENUM", + "BOOLEAN_ARRAY", + "PROTO_ENUM_ARRAY", + "BYTES", + "BYTES_ARRAY", + "NON_SERIALIZABLE_OBJECT", + "JSON_VALUE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "BYTES and BYTES_ARRAY data types are not allowed for top-level params. They're only meant to support protobufs with BYTES (sub)fields.", + "", + "", + "" + ], + "type": "string" + }, + "defaultValue": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoParameterValueType", + "description": "Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object." + }, + "isDeprecated": { + "description": "If set, this entry is deprecated, so further use of this parameter should be prohibited.", + "type": "boolean" + }, + "isOutput": { + "type": "boolean" + }, + "jsonSchema": { + "description": "If the data_type is JSON_VALUE, then this will define its schema.", + "type": "string" + }, + "key": { + "description": "Key is used to retrieve the corresponding parameter value. This should be unique for a given task. These parameters must be predefined in the workflow definition.", + "type": "string" + }, + "protoDef": { + "$ref": "EnterpriseCrmEventbusProtoParamSpecEntryProtoDefinition", + "description": "Populated if this represents a proto or proto array." + }, + "required": { + "description": "If set, the user must provide an input value for this parameter.", + "type": "boolean" + }, + "validationRule": { + "$ref": "EnterpriseCrmEventbusProtoParamSpecEntryValidationRule", + "description": "Rule used to validate inputs (individual values and collection elements) for this parameter." + } + }, + "type": "object" + }, + "EnterpriseCrmFrontendsEventbusProtoParamSpecsMessage": { + "id": "EnterpriseCrmFrontendsEventbusProtoParamSpecsMessage", + "properties": { + "parameters": { + "items": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoParamSpecEntry" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmFrontendsEventbusProtoParameterEntry": { + "description": "Key-value pair of EventBus parameters.", + "id": "EnterpriseCrmFrontendsEventbusProtoParameterEntry", + "properties": { + "dataType": { + "description": "Explicitly getting the type of the parameter.", + "enum": [ + "DATA_TYPE_UNSPECIFIED", + "STRING_VALUE", + "INT_VALUE", + "DOUBLE_VALUE", + "BOOLEAN_VALUE", + "PROTO_VALUE", + "SERIALIZED_OBJECT_VALUE", + "STRING_ARRAY", + "INT_ARRAY", + "DOUBLE_ARRAY", + "PROTO_ARRAY", + "PROTO_ENUM", + "BOOLEAN_ARRAY", + "PROTO_ENUM_ARRAY", + "BYTES", + "BYTES_ARRAY", + "NON_SERIALIZABLE_OBJECT", + "JSON_VALUE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "BYTES and BYTES_ARRAY data types are not allowed for top-level params. They're only meant to support protobufs with BYTES (sub)fields.", + "", + "", + "" + ], + "type": "string" + }, + "key": { + "description": "Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition.", + "type": "string" + }, + "value": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoParameterValueType", + "description": "Values for the defined keys. Each value can either be string, int, double or any proto message." + } + }, + "type": "object" + }, + "EnterpriseCrmFrontendsEventbusProtoParameterMap": { + "description": "A generic multi-map that holds key value pairs. They keys and values can be of any type, unless specified.", + "id": "EnterpriseCrmFrontendsEventbusProtoParameterMap", + "properties": { + "entries": { + "items": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoParameterMapEntry" + }, + "type": "array" + }, + "keyType": { + "description": "Option to specify key value type for all entries of the map. If provided then field types for all entries must conform to this.", + "enum": [ + "DATA_TYPE_UNSPECIFIED", + "STRING_VALUE", + "INT_VALUE", + "DOUBLE_VALUE", + "BOOLEAN_VALUE", + "PROTO_VALUE", + "SERIALIZED_OBJECT_VALUE", + "STRING_ARRAY", + "INT_ARRAY", + "DOUBLE_ARRAY", + "PROTO_ARRAY", + "PROTO_ENUM", + "BOOLEAN_ARRAY", + "PROTO_ENUM_ARRAY", + "BYTES", + "BYTES_ARRAY", + "NON_SERIALIZABLE_OBJECT", + "JSON_VALUE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "BYTES and BYTES_ARRAY data types are not allowed for top-level params. They're only meant to support protobufs with BYTES (sub)fields.", + "", + "", + "" + ], + "type": "string" + }, + "valueType": { + "enum": [ + "DATA_TYPE_UNSPECIFIED", + "STRING_VALUE", + "INT_VALUE", + "DOUBLE_VALUE", + "BOOLEAN_VALUE", + "PROTO_VALUE", + "SERIALIZED_OBJECT_VALUE", + "STRING_ARRAY", + "INT_ARRAY", + "DOUBLE_ARRAY", + "PROTO_ARRAY", + "PROTO_ENUM", + "BOOLEAN_ARRAY", + "PROTO_ENUM_ARRAY", + "BYTES", + "BYTES_ARRAY", + "NON_SERIALIZABLE_OBJECT", + "JSON_VALUE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "BYTES and BYTES_ARRAY data types are not allowed for top-level params. They're only meant to support protobufs with BYTES (sub)fields.", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmFrontendsEventbusProtoParameterMapEntry": { + "description": "Entry is a pair of key and value.", + "id": "EnterpriseCrmFrontendsEventbusProtoParameterMapEntry", + "properties": { + "key": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoParameterMapField" + }, + "value": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoParameterMapField" + } + }, + "type": "object" + }, + "EnterpriseCrmFrontendsEventbusProtoParameterMapField": { + "description": "Field represents either the key or value in an entry.", + "id": "EnterpriseCrmFrontendsEventbusProtoParameterMapField", + "properties": { + "literalValue": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoParameterValueType", + "description": "Passing a literal value." + }, + "referenceKey": { + "description": "Referencing one of the WF variables.", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmFrontendsEventbusProtoParameterValueType": { + "description": "To support various types of parameter values. Next available id: 14", + "id": "EnterpriseCrmFrontendsEventbusProtoParameterValueType", + "properties": { + "booleanArray": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray" + }, + "booleanValue": { + "type": "boolean" + }, + "doubleArray": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray" + }, + "doubleValue": { + "format": "double", + "type": "number" + }, + "intArray": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoIntParameterArray" + }, + "intValue": { + "format": "int64", + "type": "string" + }, + "jsonValue": { + "type": "string" + }, + "protoArray": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoProtoParameterArray" + }, + "protoValue": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "serializedObjectValue": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter" + }, + "stringArray": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoStringParameterArray" + }, + "stringValue": { + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmFrontendsEventbusProtoProtoParameterArray": { + "id": "EnterpriseCrmFrontendsEventbusProtoProtoParameterArray", + "properties": { + "protoValues": { + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmFrontendsEventbusProtoRollbackStrategy": { + "description": "Next available id: 4", + "id": "EnterpriseCrmFrontendsEventbusProtoRollbackStrategy", + "properties": { + "parameters": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoEventParameters", + "description": "Optional. The customized parameters the user can pass to this task." + }, + "rollbackTaskImplementationClassName": { + "description": "Required. This is the name of the task that needs to be executed upon rollback of this task.", + "type": "string" + }, + "taskNumbersToRollback": { + "description": "Required. These are the tasks numbers of the tasks whose `rollback_strategy.rollback_task_implementation_class_name` needs to be executed upon failure of this task.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter": { + "id": "EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter", + "properties": { + "objectValue": { + "format": "byte", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmFrontendsEventbusProtoStringParameterArray": { + "id": "EnterpriseCrmFrontendsEventbusProtoStringParameterArray", + "properties": { + "stringValues": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmFrontendsEventbusProtoTaskConfig": { + "description": "The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. Next available id: 27", + "id": "EnterpriseCrmFrontendsEventbusProtoTaskConfig", + "properties": { + "alertConfigs": { + "description": "Alert configurations on error rate, warning rate, number of runs, durations, etc.", + "items": { + "$ref": "EnterpriseCrmEventbusProtoTaskAlertConfig" + }, + "type": "array" + }, + "createTime": { + "description": "Auto-generated.", + "format": "google-datetime", + "type": "string" + }, + "creatorEmail": { + "description": "The creator's email address. Auto-generated from the user's email.", + "type": "string" + }, + "description": { + "description": "User-provided description intended to give more business context about the task.", + "type": "string" + }, + "disableStrictTypeValidation": { + "description": "If this config contains a TypedTask, allow validation to succeed if an input is read from the output of another TypedTask whose output type is declared as a superclass of the requested input type. For instance, if the previous task declares an output of type Message, any task with this flag enabled will pass validation when attempting to read any proto Message type from the resultant Event parameter.", + "type": "boolean" + }, + "failurePolicy": { + "$ref": "EnterpriseCrmEventbusProtoFailurePolicy", + "description": "Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.)." + }, + "incomingEdgeCount": { + "description": "The number of edges leading into this TaskConfig.", + "format": "int32", + "type": "integer" + }, + "jsonValidationOption": { + "description": "If set, overrides the option configured in the Task implementation class.", + "enum": [ + "UNSPECIFIED_JSON_VALIDATION_OPTION", + "SKIP", + "PRE_EXECUTION", + "POST_EXECUTION", + "PRE_POST_EXECUTION" + ], + "enumDescriptions": [ + "As per the default behavior, no validation will be run. Will not override any option set in a Task.", + "Do not run any validation against JSON schemas.", + "Validate all potential input JSON parameters against schemas specified in WorkflowParameters.", + "Validate all potential output JSON parameters against schemas specified in WorkflowParameters.", + "Perform both PRE_EXECUTION and POST_EXECUTION validations." + ], + "type": "string" + }, + "label": { + "description": "User-provided label that is attached to this TaskConfig in the UI.", + "type": "string" + }, + "lastModifiedTime": { + "description": "Auto-generated.", + "format": "google-datetime", + "type": "string" + }, + "nextTasks": { + "description": "The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true.", + "items": { + "$ref": "EnterpriseCrmEventbusProtoNextTask" + }, + "type": "array" + }, + "nextTasksExecutionPolicy": { + "description": "The policy dictating the execution of the next set of tasks for the current task.", + "enum": [ + "UNSPECIFIED", + "RUN_ALL_MATCH", + "RUN_FIRST_MATCH" + ], + "enumDescriptions": [ + "Default", + "Execute all the tasks that satisfy their associated condition.", + "Execute the first task that satisfies the associated condition." + ], + "type": "string" + }, + "parameters": { + "additionalProperties": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoParameterEntry" + }, + "description": "The customized parameters the user can pass to this task.", + "type": "object" + }, + "position": { + "$ref": "EnterpriseCrmEventbusProtoCoordinate", + "description": "Optional. Informs the front-end application where to draw this task config on the UI." + }, + "precondition": { + "description": "Optional. Standard filter expression evaluated before execution. Independent of other conditions and tasks. Can be used to enable rollout. e.g. \"rollout(5)\" will only allow 5% of incoming traffic to task.", + "type": "string" + }, + "preconditionLabel": { + "description": "Optional. User-provided label that is attached to precondition in the UI.", + "type": "string" + }, + "rollbackStrategy": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoRollbackStrategy", + "description": "Optional. Contains information about what needs to be done upon failure (either a permanent error or after it has been retried too many times)." + }, + "successPolicy": { + "$ref": "EnterpriseCrmEventbusProtoSuccessPolicy", + "description": "Determines what action to take upon successful task completion." + }, + "synchronousCallFailurePolicy": { + "$ref": "EnterpriseCrmEventbusProtoFailurePolicy", + "description": "Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post)." + }, + "taskEntity": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoTaskEntity", + "description": "Copy of the task entity that this task config is an instance of." + }, + "taskExecutionStrategy": { + "description": "The policy dictating the execution strategy of this task.", + "enum": [ + "WHEN_ALL_SUCCEED", + "WHEN_ANY_SUCCEED", + "WHEN_ALL_TASKS_AND_CONDITIONS_SUCCEED" + ], + "enumDescriptions": [ + "Wait until all of its previous tasks finished execution, then verify at least one of the edge conditions is met, and execute if possible. This should be considered as WHEN_ALL_TASKS_SUCCEED.", + "Start execution as long as any of its previous tasks finished execution and the corresponding edge condition is met (since we will execute if only that succeeding edge condition is met).", + "Wait until all of its previous tasks finished execution, then verify the all edge conditions are met and execute if possible." + ], + "type": "string" + }, + "taskName": { + "description": "The name for the task.", + "type": "string" + }, + "taskNumber": { + "description": "REQUIRED: the identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_number`).", + "type": "string" + }, + "taskSpec": { + "description": "A string template that allows user to configure task parameters (with either literal default values or tokens which will be resolved at execution time) for the task. It will eventually replace the old \"parameters\" field. Please refer to go/eventbus-task-spec-example for detailed usage example.", + "type": "string" + }, + "taskTemplateName": { + "description": "Used to define task-template name if task is of type task-template", + "type": "string" + }, + "taskType": { + "description": "Defines the type of the task", + "enum": [ + "TASK", + "ASIS_TEMPLATE", + "IO_TEMPLATE" + ], + "enumDescriptions": [ + "Normal IP task", + "Task is of As-Is Template type", + "Task is of I/O template type with a different underlying task" + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmFrontendsEventbusProtoTaskEntity": { + "description": "Contains a task's metadata and associated information. Next available id: 7", + "id": "EnterpriseCrmFrontendsEventbusProtoTaskEntity", + "properties": { + "disabledForVpcSc": { + "description": "True if the task has conflict with vpcsc", + "type": "boolean" + }, + "metadata": { + "$ref": "EnterpriseCrmEventbusProtoTaskMetadata", + "description": "Metadata inclueds the task name, author and so on." + }, + "paramSpecs": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoParamSpecsMessage", + "description": "Declarations for inputs/outputs for a TypedTask. This is also associated with the METADATA mask." + }, + "stats": { + "$ref": "EnterpriseCrmEventbusStats", + "description": "Deprecated - statistics from the Monarch query." + }, + "taskType": { + "description": "Defines the type of the task", + "enum": [ + "TASK", + "ASIS_TEMPLATE", + "IO_TEMPLATE" + ], + "enumDescriptions": [ + "Normal IP task", + "Task is of As-Is Template type", + "Task is of I/O template type with a different underlying task" + ], + "type": "string" + }, + "uiConfig": { + "$ref": "EnterpriseCrmEventbusProtoTaskUiConfig", + "description": "UI configuration for this task Also associated with the METADATA mask." + } + }, + "type": "object" + }, + "EnterpriseCrmFrontendsEventbusProtoTriggerConfig": { + "description": "Configuration detail of a trigger. Next available id: 17", + "id": "EnterpriseCrmFrontendsEventbusProtoTriggerConfig", + "properties": { + "alertConfig": { + "description": "An alert threshold configuration for the [trigger + client + workflow] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + workflow] when published.", + "items": { + "$ref": "EnterpriseCrmEventbusProtoWorkflowAlertConfig" + }, + "type": "array" + }, + "cloudSchedulerConfig": { + "$ref": "EnterpriseCrmEventbusProtoCloudSchedulerConfig" + }, + "description": { + "description": "User-provided description intended to give more business context about the task.", + "type": "string" + }, + "enabledClients": { + "description": "Required. The list of client ids which are enabled to execute the workflow using this trigger. In other words, these clients have the workflow execution privledges for this trigger. For API trigger, the client id in the incoming request is validated against the list of enabled clients. For non-API triggers, one workflow execution is triggered on behalf of each enabled client.", + "items": { + "type": "string" + }, + "type": "array" + }, + "label": { + "description": "The user created label for a particular trigger.", + "type": "string" + }, + "nextTasksExecutionPolicy": { + "description": "Dictates how next tasks will be executed.", + "enum": [ + "UNSPECIFIED", + "RUN_ALL_MATCH", + "RUN_FIRST_MATCH" + ], + "enumDescriptions": [ + "Default", + "Execute all the tasks that satisfy their associated condition.", + "Execute the first task that satisfies the associated condition." + ], + "type": "string" + }, + "pauseWorkflowExecutions": { + "description": "Optional. If set to true, any upcoming requests for this trigger config will be paused and the executions will be resumed later when the flag is reset. The workflow to which this trigger config belongs has to be in ACTIVE status for the executions to be paused or resumed.", + "type": "boolean" + }, + "position": { + "$ref": "EnterpriseCrmEventbusProtoCoordinate", + "description": "Optional. Informs the front-end application where to draw this trigger config on the UI." + }, + "properties": { + "additionalProperties": { + "type": "string" + }, + "description": "Configurable properties of the trigger, not to be confused with workflow parameters. E.g. \"name\" is a property for API triggers and \"subscription\" is a property for Cloud Pubsub triggers.", + "type": "object" + }, + "startTasks": { + "description": "Set of tasks numbers from where the workflow execution is started by this trigger. If this is empty, then workflow is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same workflow execution graph).", + "items": { + "$ref": "EnterpriseCrmEventbusProtoNextTask" + }, + "type": "array" + }, + "triggerCriteria": { + "$ref": "EnterpriseCrmEventbusProtoTriggerCriteria", + "description": "Optional. When set, Eventbus will run the task specified in the trigger_criteria and validate the result using the trigger_criteria.condition, and only execute the workflow when result is true." + }, + "triggerId": { + "description": "The backend trigger ID.", + "type": "string" + }, + "triggerNumber": { + "description": "Required. A number to uniquely identify each trigger config within the workflow on UI.", + "type": "string" + }, + "triggerType": { + "enum": [ + "UNKNOWN", + "CLOUD_PUBSUB", + "GOOPS", + "SFDC_SYNC", + "CRON", + "API", + "MANIFOLD_TRIGGER", + "DATALAYER_DATA_CHANGE", + "SFDC_CHANNEL", + "CLOUD_PUBSUB_EXTERNAL", + "SFDC_CDC_CHANNEL", + "SFDC_PLATFORM_EVENTS_CHANNEL", + "CLOUD_SCHEDULER" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry": { + "id": "EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry", + "properties": { + "attributes": { + "$ref": "EnterpriseCrmEventbusProtoAttributes", + "description": "Metadata information about the parameters." + }, + "children": { + "description": "Child parameters nested within this parameter. This field only applies to protobuf parameters", + "items": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry" + }, + "type": "array" + }, + "dataType": { + "description": "The data type of the parameter.", + "enum": [ + "DATA_TYPE_UNSPECIFIED", + "STRING_VALUE", + "INT_VALUE", + "DOUBLE_VALUE", + "BOOLEAN_VALUE", + "PROTO_VALUE", + "SERIALIZED_OBJECT_VALUE", + "STRING_ARRAY", + "INT_ARRAY", + "DOUBLE_ARRAY", + "PROTO_ARRAY", + "PROTO_ENUM", + "BOOLEAN_ARRAY", + "PROTO_ENUM_ARRAY", + "BYTES", + "BYTES_ARRAY", + "NON_SERIALIZABLE_OBJECT", + "JSON_VALUE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "BYTES and BYTES_ARRAY data types are not allowed for top-level params. They're only meant to support protobufs with BYTES (sub)fields.", + "", + "", + "" + ], + "type": "string" + }, + "defaultValue": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoParameterValueType", + "description": "Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object." + }, + "inOutType": { + "description": "Specifies the input/output type for the parameter.", + "enum": [ + "IN_OUT_TYPE_UNSPECIFIED", + "IN", + "OUT", + "IN_OUT" + ], + "enumDescriptions": [ + "", + "Input parameters for the workflow. EventBus validates that these parameters exist in the workflows before execution.", + "Output Parameters for the workflow. EventBus will only return the workflow parameters tagged with OUT in the response back.", + "Input or Output Parameters. These can be used as both input and output. EventBus will validate for the existence of these parameters before execution and will also return this parameter back in the response." + ], + "type": "string" + }, + "isTransient": { + "description": "Whether this parameter is a transient parameter. go/ip-transient-parameters", + "type": "boolean" + }, + "jsonSchema": { + "description": "This schema will be used to validate runtime JSON-typed values of this parameter.", + "type": "string" + }, + "key": { + "description": "Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition.", + "type": "string" + }, + "name": { + "description": "The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is \"foo.bar.myName\", then the name would be \"myName\".", + "type": "string" + }, + "producedBy": { + "$ref": "EnterpriseCrmEventbusProtoNodeIdentifier", + "description": "The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param." + }, + "producer": { + "type": "string" + }, + "protoDefName": { + "description": "The name of the protobuf type if the parameter has a protobuf data type.", + "type": "string" + }, + "protoDefPath": { + "description": "If the data type is of type proto or proto array, this field needs to be populated with the fully qualified proto name. This message, for example, would be \"enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry\".", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmFrontendsEventbusProtoWorkflowParameters": { + "description": "LINT.IfChange This is the frontend version of WorkflowParameters. It's exactly like the backend version except that instead of flattening protobuf parameters and treating every field and subfield of a protobuf parameter as a separate parameter, the fields/subfields of a protobuf parameter will be nested as \"children\" (see 'children' field below) parameters of the parent parameter. Please refer to enterprise/crm/eventbus/proto/workflow_parameters.proto for more information about WorkflowParameters.", + "id": "EnterpriseCrmFrontendsEventbusProtoWorkflowParameters", + "properties": { + "parameters": { + "description": "Parameters are a part of Event and can be used to communiticate between different tasks that are part of the same workflow execution.", + "items": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseCrmLoggingGwsFieldLimits": { + "description": "Describes string and array limits when writing to logs. When a limit is exceeded the *shortener_type* describes how to shorten the field. next_id: 6", + "id": "EnterpriseCrmLoggingGwsFieldLimits", + "properties": { + "logAction": { + "enum": [ + "LOG_ACTION_UNSPECIFIED", + "DONT_LOG", + "LOG" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + }, + "logType": { + "description": "To which type(s) of logs the limits apply.", + "items": { + "enum": [ + "LOG_TYPE_UNSPECIFIED", + "GWS", + "GTS", + "ALL" + ], + "enumDescriptions": [ + "", + "Limits apply when log detail records are written to GWS.", + "Limits apply when log detail records are written to GTS (e.g., RecordIO files).", + "Limits apply to *all* output log types." + ], + "type": "string" + }, + "type": "array" + }, + "maxArraySize": { + "description": "maximum array size. If the array exceds this size, the field (list) is truncated.", + "format": "int32", + "type": "integer" + }, + "maxStringLength": { + "description": "maximum string length. If the field exceeds this amount the field is shortened.", + "format": "int32", + "type": "integer" + }, + "shortenerType": { + "enum": [ + "SHORTENER_TYPE_UNSPECIFIED", + "SHORTEN", + "HASH", + "SHORTEN_WITH_HASH", + "SHORTEN_EMAIL", + "SHORTEN_EMAIL_WITH_HASH", + "SHORTEN_DOMAIN" + ], + "enumDescriptions": [ + "", + "String is shortened to max_string_length.", + "String is replaced by its hex-string hash.", + "String is replaced by a combination of string shortening and a hex-string hash.", + "String shortening for email addresses. Shortening may be done on the user and/or domain portion of the email address.", + "String is replaced by a combination of string shortening and a hex-string hash for an email address.", + "Shortens a domain name (e.g., as part of an email address or URL)." + ], + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseCrmLoggingGwsSanitizeOptions": { + "description": "Identifies whether a field contains, or may contain, PII or sensitive data, and how to sanitize the field if it does. If a field's privacy type cannot be determined then it is sanitized (e.g., scrubbed). The specific sanitizer implementation is determined by run-time configuration and environment options (e.g., prod vs. qa). next_id: 5", + "id": "EnterpriseCrmLoggingGwsSanitizeOptions", + "properties": { + "isAlreadySanitized": { + "description": "If true, the value has already been sanitized and needs no further sanitization. For instance, a D3 customer id is already an obfuscated entity and *might not* need further sanitization.", + "type": "boolean" + }, + "logType": { + "description": "To which type(s) of logs the sanitize options apply.", + "items": { + "enum": [ + "LOG_TYPE_UNSPECIFIED", + "GWS", + "GTS", + "ALL" + ], + "enumDescriptions": [ + "", + "Limits apply when log detail records are written to GWS.", + "Limits apply when log detail records are written to GTS (e.g., RecordIO files).", + "Limits apply to *all* output log types." + ], + "type": "string" + }, + "type": "array" + }, + "privacy": { + "enum": [ + "PRIVACY_TYPE_UNSPECIFIED", + "NOT_PII", + "PII", + "SPII", + "UNSURE" + ], + "enumDescriptions": [ + "", + "Field does *NOT* contain PII or sensitive data.", + "Field contains PII.", + "Field contains Sensitive PII.", + "Unsure if field contains PII." + ], + "type": "string" + }, + "sanitizeType": { + "enum": [ + "SANITIZE_TYPE_UNSPECIFIED", + "SCRUB", + "ANONYMIZE", + "ANONYMIZE_LIMITED_REPEATABLE", + "OBFUSCATE", + "ENCRYPT", + "DO_NOT_SANITIZE" + ], + "enumDescriptions": [ + "", + "Replace value with a scrubbed value (usu. a constant).", + "Transform a value so that it cannot be tracked across events. However, a given value, is transformed to the same value *within* an event. E.g., \"foo.com\" is transformed to \"0xabcdef\" for event 1001, and to \"0xfedcba\" for event 1002.", + "Transform values as with ANONYMIZER, but the same transformation is repeated for a limited time (e.g., 1 day).", + "The value is transformed using a well-defined obfuscator (e.g., D3_CUSTOMER_ID).", + "The value is encrypted.", + "No sanitization is required." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudConnectorsV1AuthConfig": { + "description": "AuthConfig defines details of a authentication type.", + "id": "GoogleCloudConnectorsV1AuthConfig", + "properties": { + "additionalVariables": { + "description": "List containing additional auth configs.", + "items": { + "$ref": "GoogleCloudConnectorsV1ConfigVariable" + }, + "type": "array" + }, + "authType": { + "description": "The type of authentication configured.", + "enum": [ + "AUTH_TYPE_UNSPECIFIED", + "USER_PASSWORD", + "OAUTH2_JWT_BEARER", + "OAUTH2_CLIENT_CREDENTIALS", + "SSH_PUBLIC_KEY", + "OAUTH2_AUTH_CODE_FLOW" + ], + "enumDescriptions": [ + "Authentication type not specified.", + "Username and Password Authentication.", + "JSON Web Token (JWT) Profile for Oauth 2.0 Authorization Grant based authentication", + "Oauth 2.0 Client Credentials Grant Authentication", + "SSH Public Key Authentication", + "Oauth 2.0 Authorization Code Flow" + ], + "type": "string" + }, + "oauth2ClientCredentials": { + "$ref": "GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials", + "description": "Oauth2ClientCredentials." + }, + "oauth2JwtBearer": { + "$ref": "GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer", + "description": "Oauth2JwtBearer." + }, + "sshPublicKey": { + "$ref": "GoogleCloudConnectorsV1AuthConfigSshPublicKey", + "description": "SSH Public Key." + }, + "userPassword": { + "$ref": "GoogleCloudConnectorsV1AuthConfigUserPassword", + "description": "UserPassword." + } + }, + "type": "object" + }, + "GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials": { + "description": "Parameters to support Oauth 2.0 Client Credentials Grant Authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details.", + "id": "GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials", + "properties": { + "clientId": { + "description": "The client identifier.", + "type": "string" + }, + "clientSecret": { + "$ref": "GoogleCloudConnectorsV1Secret", + "description": "Secret version reference containing the client secret." + } + }, + "type": "object" + }, + "GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer": { + "description": "Parameters to support JSON Web Token (JWT) Profile for Oauth 2.0 Authorization Grant based authentication. See https://tools.ietf.org/html/rfc7523 for more details.", + "id": "GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer", + "properties": { + "clientKey": { + "$ref": "GoogleCloudConnectorsV1Secret", + "description": "Secret version reference containing a PKCS#8 PEM-encoded private key associated with the Client Certificate. This private key will be used to sign JWTs used for the jwt-bearer authorization grant. Specified in the form as: `projects/*/secrets/*/versions/*`." + }, + "jwtClaims": { + "$ref": "GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims", + "description": "JwtClaims providers fields to generate the token." + } + }, + "type": "object" + }, + "GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims": { + "description": "JWT claims used for the jwt-bearer authorization grant.", + "id": "GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims", + "properties": { + "audience": { + "description": "Value for the \"aud\" claim.", + "type": "string" + }, + "issuer": { + "description": "Value for the \"iss\" claim.", + "type": "string" + }, + "subject": { + "description": "Value for the \"sub\" claim.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudConnectorsV1AuthConfigSshPublicKey": { + "description": "Parameters to support Ssh public key Authentication.", + "id": "GoogleCloudConnectorsV1AuthConfigSshPublicKey", + "properties": { + "certType": { + "description": "Format of SSH Client cert.", + "type": "string" + }, + "sshClientCert": { + "$ref": "GoogleCloudConnectorsV1Secret", + "description": "SSH Client Cert. It should contain both public and private key." + }, + "sshClientCertPass": { + "$ref": "GoogleCloudConnectorsV1Secret", + "description": "Password (passphrase) for ssh client certificate if it has one." + }, + "username": { + "description": "The user account used to authenticate.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudConnectorsV1AuthConfigUserPassword": { + "description": "Parameters to support Username and Password Authentication.", + "id": "GoogleCloudConnectorsV1AuthConfigUserPassword", + "properties": { + "password": { + "$ref": "GoogleCloudConnectorsV1Secret", + "description": "Secret version reference containing the password." + }, + "username": { + "description": "Username.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudConnectorsV1ConfigVariable": { + "description": "ConfigVariable represents a configuration variable present in a Connection. or AuthConfig.", + "id": "GoogleCloudConnectorsV1ConfigVariable", + "properties": { + "boolValue": { + "description": "Value is a bool.", + "type": "boolean" + }, + "intValue": { + "description": "Value is an integer", + "format": "int64", + "type": "string" + }, + "key": { + "description": "Key of the config variable.", + "type": "string" + }, + "secretValue": { + "$ref": "GoogleCloudConnectorsV1Secret", + "description": "Value is a secret." + }, + "stringValue": { + "description": "Value is a string.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudConnectorsV1Connection": { + "description": "Connection represents an instance of connector.", + "id": "GoogleCloudConnectorsV1Connection", + "properties": { + "authConfig": { + "$ref": "GoogleCloudConnectorsV1AuthConfig", + "description": "Optional. Configuration for establishing the connection's authentication with an external system." + }, + "configVariables": { + "description": "Optional. Configuration for configuring the connection with an external system.", + "items": { + "$ref": "GoogleCloudConnectorsV1ConfigVariable" + }, + "type": "array" + }, + "connectorVersion": { + "description": "Required. Connector version on which the connection is created. The format is: projects/*/locations/*/providers/*/connectors/*/versions/* Only global location is supported for ConnectorVersion resource.", + "type": "string" + }, + "createTime": { + "description": "Output only. Created time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. Description of the resource.", + "type": "string" + }, + "destinationConfigs": { + "description": "Optional. Configuration of the Connector's destination. Only accepted for Connectors that accepts user defined destination(s).", + "items": { + "$ref": "GoogleCloudConnectorsV1DestinationConfig" + }, + "type": "array" + }, + "envoyImageLocation": { + "description": "Output only. GCR location where the envoy image is stored. formatted like: gcr.io/{bucketName}/{imageName}", + "readOnly": true, + "type": "string" + }, + "imageLocation": { + "description": "Output only. GCR location where the runtime image is stored. formatted like: gcr.io/{bucketName}/{imageName}", + "readOnly": true, + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources", + "type": "object" + }, + "lockConfig": { + "$ref": "GoogleCloudConnectorsV1LockConfig", + "description": "Optional. Configuration that indicates whether or not the Connection can be edited." + }, + "name": { + "description": "Output only. Resource name of the Connection. Format: projects/{project}/locations/{location}/connections/{connection}", + "readOnly": true, + "type": "string" + }, + "nodeConfig": { + "$ref": "GoogleCloudConnectorsV1NodeConfig", + "description": "Optional. Configuration for the connection." + }, + "serviceAccount": { + "description": "Optional. Service account needed for runtime plane to access GCP resources.", + "type": "string" + }, + "serviceDirectory": { + "description": "Output only. The name of the Service Directory service name. Used for Private Harpoon to resolve the ILB address. e.g. \"projects/cloud-connectors-e2e-testing/locations/us-central1/namespaces/istio-system/services/istio-ingressgateway-connectors\"", + "readOnly": true, + "type": "string" + }, + "status": { + "$ref": "GoogleCloudConnectorsV1ConnectionStatus", + "description": "Output only. Current status of the connection.", + "readOnly": true + }, + "suspended": { + "description": "Optional. Suspended indicates if a user has suspended a connection or not.", + "type": "boolean" + }, + "updateTime": { + "description": "Output only. Updated time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudConnectorsV1ConnectionStatus": { + "description": "ConnectionStatus indicates the state of the connection.", + "id": "GoogleCloudConnectorsV1ConnectionStatus", + "properties": { + "description": { + "description": "Description.", + "type": "string" + }, + "state": { + "description": "State.", + "enum": [ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "UPDATING", + "ERROR" + ], + "enumDescriptions": [ + "Connection does not have a state yet.", + "Connection is being created.", + "Connection is running and ready for requests.", + "Connection is stopped.", + "Connection is being deleted.", + "Connection is being updated.", + "Connection is not running due to an error." + ], + "type": "string" + }, + "status": { + "description": "Status provides detailed information for the state.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudConnectorsV1Destination": { + "id": "GoogleCloudConnectorsV1Destination", + "properties": { + "host": { + "description": "For publicly routable host.", + "type": "string" + }, + "port": { + "description": "The port is the target port number that is accepted by the destination.", + "format": "int32", + "type": "integer" + }, + "serviceAttachment": { + "description": "PSC service attachments. Format: projects/*/regions/*/serviceAttachments/*", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudConnectorsV1DestinationConfig": { + "description": "Define the Connectors target endpoint.", + "id": "GoogleCloudConnectorsV1DestinationConfig", + "properties": { + "destinations": { + "description": "The destinations for the key.", + "items": { + "$ref": "GoogleCloudConnectorsV1Destination" + }, + "type": "array" + }, + "key": { + "description": "The key is the destination identifier that is supported by the Connector.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudConnectorsV1LockConfig": { + "description": "Determines whether or no a connection is locked. If locked, a reason must be specified.", + "id": "GoogleCloudConnectorsV1LockConfig", + "properties": { + "locked": { + "description": "Indicates whether or not the connection is locked.", + "type": "boolean" + }, + "reason": { + "description": "Describes why a connection is locked.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudConnectorsV1NodeConfig": { + "description": "Configuration for the connection.", + "id": "GoogleCloudConnectorsV1NodeConfig", + "properties": { + "maxNodeCount": { + "description": "Maximum number of nodes in the runtime nodes.", + "format": "int32", + "type": "integer" + }, + "minNodeCount": { + "description": "Minimum number of nodes in the runtime nodes.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudConnectorsV1Secret": { + "description": "Secret provides a reference to entries in Secret Manager.", + "id": "GoogleCloudConnectorsV1Secret", + "properties": { + "secretVersion": { + "description": "The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaAccessToken": { + "description": "The access token represents the authorization of a specific application to access specific parts of a user’s data.", + "id": "GoogleCloudIntegrationsV1alphaAccessToken", + "properties": { + "accessToken": { + "description": "The access token encapsulating the security identity of a process or thread.", + "type": "string" + }, + "accessTokenExpireTime": { + "description": "Required. The approximate time until the access token retrieved is valid.", + "format": "google-datetime", + "type": "string" + }, + "refreshToken": { + "description": "If the access token will expire, use the refresh token to obtain another access token.", + "type": "string" + }, + "refreshTokenExpireTime": { + "description": "The approximate time until the refresh token retrieved is valid.", + "format": "google-datetime", + "type": "string" + }, + "tokenType": { + "description": "Only support \"bearer\" token in v1 as bearer token is the predominant type used with OAuth 2.0.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaArchiveBundleRequest": { + "description": "Request for ArchiveBundle.", + "id": "GoogleCloudIntegrationsV1alphaArchiveBundleRequest", + "properties": {}, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaArchiveBundleResponse": { + "description": "Response for ArchiveBundle.", + "id": "GoogleCloudIntegrationsV1alphaArchiveBundleResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest": { + "description": "Request for ArchiveIntegrationVersion.", + "id": "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest", + "properties": {}, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse": { + "description": "Response for ArchiveIntegrationVersion.", + "id": "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaAttemptStats": { + "description": "Status for the execution attempt.", + "id": "GoogleCloudIntegrationsV1alphaAttemptStats", + "properties": { + "endTime": { + "description": "The end time of the event execution for current attempt.", + "format": "google-datetime", + "type": "string" + }, + "startTime": { + "description": "The start time of the event execution for current attempt. This could be in the future if it's been scheduled.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaAuthConfig": { + "description": "The AuthConfig resource use to hold channels and connection config data.", + "id": "GoogleCloudIntegrationsV1alphaAuthConfig", + "properties": { + "certificateId": { + "description": "Certificate id for client certificate", + "type": "string" + }, + "createTime": { + "description": "Output only. The timestamp when the auth config is created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "creatorEmail": { + "description": "The creator's email address. Generated based on the End User Credentials/LOAS role of the user making the call.", + "type": "string" + }, + "credentialType": { + "description": "Credential type of the encrypted credential.", + "enum": [ + "CREDENTIAL_TYPE_UNSPECIFIED", + "USERNAME_AND_PASSWORD", + "API_KEY", + "OAUTH2_AUTHORIZATION_CODE", + "OAUTH2_IMPLICIT", + "OAUTH2_CLIENT_CREDENTIALS", + "OAUTH2_RESOURCE_OWNER_CREDENTIALS", + "JWT", + "AUTH_TOKEN", + "SERVICE_ACCOUNT", + "CLIENT_CERTIFICATE_ONLY", + "OIDC_TOKEN" + ], + "enumDescriptions": [ + "Unspecified credential type", + "Regular username/password pair.", + "API key.", + "OAuth 2.0 Authorization Code Grant Type.", + "OAuth 2.0 Implicit Grant Type.", + "OAuth 2.0 Client Credentials Grant Type.", + "OAuth 2.0 Resource Owner Credentials Grant Type.", + "JWT Token.", + "Auth Token, e.g. bearer token.", + "Service Account which can be used to generate token for authentication.", + "Client Certificate only.", + "Google OIDC ID Token" + ], + "type": "string" + }, + "decryptedCredential": { + "$ref": "GoogleCloudIntegrationsV1alphaCredential", + "description": "Raw auth credentials." + }, + "description": { + "description": "A description of the auth config.", + "type": "string" + }, + "displayName": { + "description": "The name of the auth config.", + "type": "string" + }, + "encryptedCredential": { + "description": "Auth credential encrypted by Cloud KMS. Can be decrypted as Credential with proper KMS key.", + "format": "byte", + "type": "string" + }, + "expiryNotificationDuration": { + "description": "User can define the time to receive notification after which the auth config becomes invalid. Support up to 30 days. Support granularity in hours.", + "items": { + "format": "google-duration", + "type": "string" + }, + "type": "array" + }, + "lastModifierEmail": { + "description": "The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call.", + "type": "string" + }, + "name": { + "description": "Resource name of the SFDC instance projects/{project}/locations/{location}/authConfigs/{authConfig}.", + "type": "string" + }, + "overrideValidTime": { + "description": "User provided expiry time to override. For the example of Salesforce, username/password credentials can be valid for 6 months depending on the instance settings.", + "format": "google-datetime", + "type": "string" + }, + "reason": { + "description": "The reason / details of the current status.", + "type": "string" + }, + "state": { + "description": "The status of the auth config.", + "enum": [ + "STATE_UNSPECIFIED", + "VALID", + "INVALID", + "SOFT_DELETED", + "EXPIRED", + "UNAUTHORIZED", + "UNSUPPORTED" + ], + "enumDescriptions": [ + "Status not specified.", + "Valid Auth config.", + "General invalidity, if it doesn't fits in the detailed issue below.", + "Auth config soft deleted.", + "Auth config expired.", + "Auth config unauthorized.", + "Auth config not supported." + ], + "type": "string" + }, + "updateTime": { + "description": "Output only. The timestamp when the auth config is modified.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "validTime": { + "description": "The time until the auth config is valid. Empty or max value is considered the auth config won't expire.", + "format": "google-datetime", + "type": "string" + }, + "visibility": { + "description": "The visibility of the auth config.", + "enum": [ + "AUTH_CONFIG_VISIBILITY_UNSPECIFIED", + "PRIVATE", + "CLIENT_VISIBLE" + ], + "enumDescriptions": [ + "Visibility not specified.", + "Profile visible to the creator only.", + "Profile visible within the client." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaAuthToken": { + "description": "The credentials to authenticate a user agent with a server that is put in HTTP Authorization request header.", + "id": "GoogleCloudIntegrationsV1alphaAuthToken", + "properties": { + "token": { + "description": "The token for the auth type.", + "type": "string" + }, + "type": { + "description": "Authentication type, e.g. \"Basic\", \"Bearer\", etc.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaBooleanParameterArray": { + "description": "This message only contains a field of boolean array.", + "id": "GoogleCloudIntegrationsV1alphaBooleanParameterArray", + "properties": { + "booleanValues": { + "description": "Boolean array.", + "items": { + "type": "boolean" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaCancelExecutionRequest": { + "description": "Request for cancelling an execution.", + "id": "GoogleCloudIntegrationsV1alphaCancelExecutionRequest", + "properties": {}, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaCancelExecutionResponse": { + "description": "Response for cancelling an execution.", + "id": "GoogleCloudIntegrationsV1alphaCancelExecutionResponse", + "properties": { + "isCanceled": { + "description": "True if cancellation performed successfully", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaCertificate": { + "description": "The certificate definition", + "id": "GoogleCloudIntegrationsV1alphaCertificate", + "properties": { + "certificateStatus": { + "description": "Status of the certificate", + "enum": [ + "STATE_UNSPECIFIED", + "ACTIVE", + "EXPIRED" + ], + "enumDescriptions": [ + "Unspecified certificate status", + "Certificate in active state will be able to use", + "Certificate in expired state needs to be updated" + ], + "type": "string" + }, + "credentialId": { + "description": "Immutable. Credential id that will be used to register with trawler INTERNAL_ONLY", + "type": "string" + }, + "description": { + "description": "Description of the certificate", + "type": "string" + }, + "displayName": { + "description": "Name of the certificate", + "type": "string" + }, + "name": { + "description": "Output only. Auto generated primary key", + "readOnly": true, + "type": "string" + }, + "rawCertificate": { + "$ref": "GoogleCloudIntegrationsV1alphaClientCertificate", + "description": "Input only. Raw client certificate which would be registered with trawler" + }, + "requestorId": { + "description": "Immutable. Requestor ID to be used to register certificate with trawler", + "type": "string" + }, + "validEndTime": { + "description": "Output only. The timestamp after which certificate will expire", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "validStartTime": { + "description": "Output only. The timestamp after which certificate will be valid", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaClientCertificate": { + "description": "Contains client certificate information", + "id": "GoogleCloudIntegrationsV1alphaClientCertificate", + "properties": { + "encryptedPrivateKey": { + "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + "type": "string" + }, + "passphrase": { + "description": "'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key.", + "type": "string" + }, + "sslCertificate": { + "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaClientConfig": { + "description": "The configuration information for the Client", + "id": "GoogleCloudIntegrationsV1alphaClientConfig", + "properties": { + "billingType": { + "description": "Indicates the billing type of the client", + "enum": [ + "BILLING_TYPE_UNSPECIFIED", + "BILLING_TYPE_APIGEE_TRIALS", + "BILLING_TYPE_APIGEE_SUBSCRIPTION", + "BILLING_TYPE_PAYG" + ], + "enumDescriptions": [ + "Unspecified billing type", + "A trial org provisioned through Apigee Provisioning Wizard", + "Subscription based users of Apigee", + "Consumption based users of IP" + ], + "type": "string" + }, + "clientState": { + "description": "Indicates the activity state the client", + "enum": [ + "CLIENT_STATE_UNSPECIFIED", + "CLIENT_STATE_ACTIVE", + "CLIENT_STATE_DISABLED" + ], + "enumDescriptions": [ + "The client state is unspecified", + "The client is active and able to make calls to the IP APIs", + "The client is disabled and will soon be deleted" + ], + "type": "string" + }, + "cloudKmsConfig": { + "$ref": "GoogleCloudIntegrationsV1alphaCloudKmsConfig", + "description": "Cloud KMS config for Auth Module to encrypt/decrypt credentials." + }, + "cloudLoggingConfig": { + "$ref": "GoogleCloudIntegrationsV1alphaCloudLoggingConfig", + "description": "Determines the cloud logging configuration for the project" + }, + "createTime": { + "description": "The timestamp when the client was first created.", + "format": "google-datetime", + "type": "string" + }, + "description": { + "description": "Description of what the client is used for", + "type": "string" + }, + "id": { + "description": "Globally unique ID (project_id + region)", + "type": "string" + }, + "p4ServiceAccount": { + "description": "The P4SA account associated with this client", + "type": "string" + }, + "projectId": { + "description": "The GCP project id of the client associated with", + "type": "string" + }, + "region": { + "description": "The region the client is linked to.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaCloudKmsConfig": { + "description": "Configuration information for Client's Cloud KMS information", + "id": "GoogleCloudIntegrationsV1alphaCloudKmsConfig", + "properties": { + "key": { + "description": "Required. A Cloud KMS key is a named object containing one or more key versions, along with metadata for the key. A key exists on exactly one key ring tied to a specific location.", + "type": "string" + }, + "keyVersion": { + "description": "Optional. Each version of a key contains key material used for encryption or signing. A key's version is represented by an integer, starting at 1. To decrypt data or verify a signature, you must use the same key version that was used to encrypt or sign the data.", + "type": "string" + }, + "kmsLocation": { + "description": "Required. Location name of the key ring, e.g. \"us-west1\".", + "type": "string" + }, + "kmsRing": { + "description": "Required. A key ring organizes keys in a specific Google Cloud location and allows you to manage access control on groups of keys. A key ring's name does not need to be unique across a Google Cloud project, but must be unique within a given location.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaCloudLoggingConfig": { + "description": "Config info for Cloud Logging", + "id": "GoogleCloudIntegrationsV1alphaCloudLoggingConfig", + "properties": { + "bucket": { + "description": "Cloud bucket name for the project.", + "type": "string" + }, + "enableCloudLogging": { + "description": "This field determines whether the logs should be sent to cloud logging api", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaCloudSchedulerConfig": { + "description": "Cloud Scheduler Trigger configuration", + "id": "GoogleCloudIntegrationsV1alphaCloudSchedulerConfig", + "properties": { + "cronTab": { + "description": "Required. The cron tab of cloud scheduler trigger.", + "type": "string" + }, + "errorMessage": { + "description": "Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations", + "type": "string" + }, + "location": { + "description": "Required. The location where associated cloud scheduler job will be created", + "type": "string" + }, + "serviceAccountEmail": { + "description": "Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata": { + "description": "Metadata of runtime connection schema.", + "id": "GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata", + "properties": { + "actions": { + "description": "List of actions.", + "items": { + "type": "string" + }, + "type": "array" + }, + "entities": { + "description": "List of entity names.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest": { + "description": "Request for CreateAppsScriptProject rpc call.", + "id": "GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest", + "properties": { + "appsScriptProject": { + "description": "The name of the Apps Script project to be created.", + "type": "string" + }, + "authConfigId": { + "description": "The auth config id necessary to fetch the necessary credentials to create the project for external clients", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse": { + "description": "Response for CreateAppsScriptProject rpc call.", + "id": "GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse", + "properties": { + "projectId": { + "description": "The created AppsScriptProject ID.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaCreateBundleRequest": { + "description": "PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. Request to create a new Bundle.", + "id": "GoogleCloudIntegrationsV1alphaCreateBundleRequest", + "properties": { + "bundleId": { + "description": "Required. name of the bundle that will be created", + "type": "string" + }, + "integrations": { + "description": "A list of integrations that can be executed by the bundle", + "items": { + "type": "string" + }, + "type": "array" + }, + "secondaryCustomerOrgId": { + "description": "Optional. The prefix for the SA, it should be in the format \"o\". This is an optional field, and if empty service account will be created per project, where we are creating bundle. This should only be used as the org ID for which we want to run the integrations in the bundle.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaCreateBundleResponse": { + "description": "Response for create bundle.", + "id": "GoogleCloudIntegrationsV1alphaCreateBundleResponse", + "properties": { + "config": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationBundleConfig", + "description": "It contains the bundle data" + }, + "triggerId": { + "description": "trigger_id of the bundle task", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest": { + "description": "Request for Creating Cloud Function rpc call.", + "id": "GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest", + "properties": { + "functionName": { + "description": "The function name of CF to be created", + "type": "string" + }, + "functionRegion": { + "description": "The function region of CF to be created", + "type": "string" + }, + "projectId": { + "description": "Indicates the id of the GCP project that the function will be created in.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse": { + "description": "Response for Creating Cloud Function rpc call.", + "id": "GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse", + "properties": { + "triggerUrl": { + "description": "The trigger url that will be returned", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaCredential": { + "description": "Defines parameters for a single, canonical credential.", + "id": "GoogleCloudIntegrationsV1alphaCredential", + "properties": { + "authToken": { + "$ref": "GoogleCloudIntegrationsV1alphaAuthToken", + "description": "Auth token credential" + }, + "credentialType": { + "description": "Credential type associated with auth config.", + "enum": [ + "CREDENTIAL_TYPE_UNSPECIFIED", + "USERNAME_AND_PASSWORD", + "API_KEY", + "OAUTH2_AUTHORIZATION_CODE", + "OAUTH2_IMPLICIT", + "OAUTH2_CLIENT_CREDENTIALS", + "OAUTH2_RESOURCE_OWNER_CREDENTIALS", + "JWT", + "AUTH_TOKEN", + "SERVICE_ACCOUNT", + "CLIENT_CERTIFICATE_ONLY", + "OIDC_TOKEN" + ], + "enumDescriptions": [ + "Unspecified credential type", + "Regular username/password pair.", + "API key.", + "OAuth 2.0 Authorization Code Grant Type.", + "OAuth 2.0 Implicit Grant Type.", + "OAuth 2.0 Client Credentials Grant Type.", + "OAuth 2.0 Resource Owner Credentials Grant Type.", + "JWT Token.", + "Auth Token, e.g. bearer token.", + "Service Account which can be used to generate token for authentication.", + "Client Certificate only.", + "Google OIDC ID Token" + ], + "type": "string" + }, + "jwt": { + "$ref": "GoogleCloudIntegrationsV1alphaJwt", + "description": "JWT credential" + }, + "oauth2AuthorizationCode": { + "$ref": "GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode", + "description": "The api_key and oauth2_implicit are not covered in v1 and will be picked up once v1 is implemented. ApiKey api_key = 3; OAuth2 authorization code credential" + }, + "oauth2ClientCredentials": { + "$ref": "GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials", + "description": "OAuth2Implicit oauth2_implicit = 5; OAuth2 client credentials" + }, + "oauth2ResourceOwnerCredentials": { + "$ref": "GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials", + "description": "OAuth2 resource owner credentials" + }, + "oidcToken": { + "$ref": "GoogleCloudIntegrationsV1alphaOidcToken", + "description": "Google OIDC ID Token" + }, + "serviceAccountCredentials": { + "$ref": "GoogleCloudIntegrationsV1alphaServiceAccountCredentials", + "description": "Service account credential" + }, + "usernameAndPassword": { + "$ref": "GoogleCloudIntegrationsV1alphaUsernameAndPassword", + "description": "Username and password credential" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest": { + "description": "Request for DeactivateIntegrationVersion.", + "id": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest", + "properties": {}, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse": { + "description": "Response for DeactivateIntegrationVersion.", + "id": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaDeprovisionClientRequest": { + "description": "Request for the Deprovision rpc", + "id": "GoogleCloudIntegrationsV1alphaDeprovisionClientRequest", + "properties": {}, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaDoubleParameterArray": { + "description": "This message only contains a field of double number array.", + "id": "GoogleCloudIntegrationsV1alphaDoubleParameterArray", + "properties": { + "doubleValues": { + "description": "Double number array.", + "items": { + "format": "double", + "type": "number" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaDownloadExecutionResponse": { + "description": "Response for downloading an execution.", + "id": "GoogleCloudIntegrationsV1alphaDownloadExecutionResponse", + "properties": { + "content": { + "description": "The content of downloaded execution.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse": { + "description": "Response for DownloadIntegrationVersion.", + "id": "GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse", + "properties": { + "content": { + "description": "String representation of the integration version.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse": { + "description": "Response containing all provisioned regions for Connector Platform.", + "id": "GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse", + "properties": { + "regions": { + "description": "All regions where Connector Platform is provisioned.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaEventParameter": { + "description": "This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus.", + "id": "GoogleCloudIntegrationsV1alphaEventParameter", + "properties": { + "key": { + "description": "Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.", + "type": "string" + }, + "value": { + "$ref": "GoogleCloudIntegrationsV1alphaValueType", + "description": "Values for the defined keys. Each value can either be string, int, double or any proto message." + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest": { + "description": "The request for executing an integration.", + "id": "GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest", + "properties": { + "doNotPropagateError": { + "description": "Optional. Flag to determine how to should propagate errors. If this flag is set to be true, it will not throw an exception. Instead, it will return a {@link ExecuteIntegrationsResponse} with an execution id and error messages as PostWithTriggerIdExecutionException in {@link EventParameters}. The flag is set to be false by default.", + "type": "boolean" + }, + "executionId": { + "description": "Optional. The id of the ON_HOLD execution to be resumed.", + "type": "string" + }, + "inputParameters": { + "additionalProperties": { + "$ref": "GoogleCloudIntegrationsV1alphaValueType" + }, + "description": "Optional. Input parameters used by integration execution.", + "type": "object" + }, + "parameterEntries": { + "description": "Optional. Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution.", + "items": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoParameterEntry" + }, + "type": "array" + }, + "parameters": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoEventParameters", + "description": "Optional. Passed in as parameters to each integration execution. Redacted" + }, + "requestId": { + "description": "Optional. This is used to de-dup incoming request: if the duplicate request was detected, the response from the previous execution is returned.", + "type": "string" + }, + "triggerId": { + "description": "Required. Matched against all {@link TriggerConfig}s across all integrations. i.e. TriggerConfig.trigger_id.equals(trigger_id). The trigger_id is in the format of `api_trigger/TRIGGER_NAME`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse": { + "description": "The response for executing an integration.", + "id": "GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse", + "properties": { + "eventParameters": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoEventParameters", + "description": "Details for the integration that were executed." + }, + "executionFailed": { + "description": "Is true if any execution in the integration failed. False otherwise.", + "type": "boolean" + }, + "executionId": { + "description": "The id of the execution corresponding to this run of integration.", + "type": "string" + }, + "outputParameters": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "OUTPUT parameters in format of Map. Where Key is the name of the parameter. Note: Name of the system generated parameters are wrapped by backtick(`) to distinguish them from the user defined parameters.", + "type": "object" + }, + "parameterEntries": { + "description": "Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution.", + "items": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoParameterEntry" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaExecution": { + "description": "The Execution resource contains detailed information of an individual integration execution.", + "id": "GoogleCloudIntegrationsV1alphaExecution", + "properties": { + "createTime": { + "description": "Output only. Created time of the execution.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "directSubExecutions": { + "description": "Direct sub executions of the following Execution.", + "items": { + "$ref": "GoogleCloudIntegrationsV1alphaExecution" + }, + "type": "array" + }, + "eventExecutionDetails": { + "$ref": "EnterpriseCrmEventbusProtoEventExecutionDetails", + "description": "The execution info about this event." + }, + "executionDetails": { + "$ref": "GoogleCloudIntegrationsV1alphaExecutionDetails", + "description": "Detailed info of this execution." + }, + "executionMethod": { + "description": "The ways user posts this event.", + "enum": [ + "EXECUTION_METHOD_UNSPECIFIED", + "POST", + "POST_TO_QUEUE", + "SCHEDULE" + ], + "enumDescriptions": [ + "Default value.", + "Sync post.", + "Async post.", + "Async post with schedule time." + ], + "type": "string" + }, + "name": { + "description": "Auto-generated primary key.", + "type": "string" + }, + "requestParameters": { + "additionalProperties": { + "$ref": "GoogleCloudIntegrationsV1alphaValueType" + }, + "description": "Event parameters come in as part of the request.", + "type": "object" + }, + "requestParams": { + "description": "Event parameters come in as part of the request.", + "items": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoParameterEntry" + }, + "type": "array" + }, + "responseParameters": { + "additionalProperties": { + "$ref": "GoogleCloudIntegrationsV1alphaValueType" + }, + "description": "Event parameters returned as part of the response.", + "type": "object" + }, + "responseParams": { + "description": "Event parameters come out as part of the response.", + "items": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoParameterEntry" + }, + "type": "array" + }, + "triggerId": { + "description": "The trigger id of the integration trigger config. If both trigger_id and client_id is present, the integration is executed from the start tasks provided by the matching trigger config otherwise it is executed from the default start tasks.", + "type": "string" + }, + "updateTime": { + "description": "Output only. Last modified time of the execution.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaExecutionDetails": { + "description": "Contains the details of the execution info: this includes the tasks execution details plus the event execution statistics.", + "id": "GoogleCloudIntegrationsV1alphaExecutionDetails", + "properties": { + "attemptStats": { + "description": "List of Start and end time of the execution attempts.", + "items": { + "$ref": "GoogleCloudIntegrationsV1alphaAttemptStats" + }, + "type": "array" + }, + "executionSnapshots": { + "description": "List of snapshots taken during the execution.", + "items": { + "$ref": "GoogleCloudIntegrationsV1alphaExecutionSnapshot" + }, + "type": "array" + }, + "state": { + "description": "Status of the execution.", + "enum": [ + "STATE_UNSPECIFIED", + "PENDING", + "PROCESSING", + "SUCCEEDED", + "FAILED", + "CANCELLED", + "RETRY_ON_HOLD", + "SUSPENDED" + ], + "enumDescriptions": [ + "Default.", + "Execution is scheduled and awaiting to be triggered.", + "Execution is processing.", + "Execution successfully finished. There's no more change after this state.", + "Execution failed. There's no more change after this state.", + "Execution canceled by user. There's no more change after this state.", + "Execution failed and waiting for retry.", + "Execution suspended and waiting for manual intervention." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaExecutionSnapshot": { + "description": "Contains the snapshot of the execution for a given checkpoint.", + "id": "GoogleCloudIntegrationsV1alphaExecutionSnapshot", + "properties": { + "checkpointTaskNumber": { + "description": "Indicates \"after which checkpoint task's execution\" this snapshot is taken.", + "type": "string" + }, + "executionSnapshotMetadata": { + "$ref": "GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata", + "description": "Metadata of the execution snapshot." + }, + "params": { + "additionalProperties": { + "$ref": "GoogleCloudIntegrationsV1alphaValueType" + }, + "description": "Parameters used during the execution.", + "type": "object" + }, + "taskExecutionDetails": { + "description": "All of the task execution details at the given point of time.", + "items": { + "$ref": "GoogleCloudIntegrationsV1alphaTaskExecutionDetails" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata": { + "description": "Metadata of the execution snapshot.", + "id": "GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata", + "properties": { + "executionAttempt": { + "description": "the execution attempt number this snapshot belongs to.", + "format": "int32", + "type": "integer" + }, + "task": { + "description": "the task name associated with this snapshot.", + "type": "string" + }, + "taskAttempt": { + "description": "the task attempt number this snapshot belongs to.", + "format": "int32", + "type": "integer" + }, + "taskNumber": { + "description": "The task number associated with this snapshot.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaFailurePolicy": { + "description": "Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied).", + "id": "GoogleCloudIntegrationsV1alphaFailurePolicy", + "properties": { + "intervalTime": { + "description": "Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.", + "format": "google-datetime", + "type": "string" + }, + "maxRetries": { + "description": "Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.", + "format": "int32", + "type": "integer" + }, + "retryStrategy": { + "description": "Defines what happens to the task upon failure.", + "enum": [ + "RETRY_STRATEGY_UNSPECIFIED", + "IGNORE", + "NONE", + "FATAL", + "FIXED_INTERVAL", + "LINEAR_BACKOFF", + "EXPONENTIAL_BACKOFF", + "RESTART_INTEGRATION_WITH_BACKOFF" + ], + "enumDescriptions": [ + "UNSPECIFIED.", + "Ignores the failure of this task. The rest of the integration will be executed Assuming this task succeeded.", + "Causes a permanent failure of the task. However, if the last task(s) of event was successfully completed despite the failure of this task, it has no impact on the integration.", + "Causes a permanent failure of the event. It is different from NONE because this will mark the event as FAILED by shutting down the event execution.", + "The task will be retried from the failed task onwards after a fixed delay. A max-retry count is required to be specified with this strategy. A jitter is added to each exponential interval so that concurrently failing tasks of the same type do not end up retrying after the exact same exponential interval. max_retries and interval_in_seconds must be specified.", + "The task will be retried from the failed task onwards after a fixed delay that linearly increases with each retry attempt. A jitter is added to each exponential interval so that concurrently failing tasks of the same type do not end up retrying after the exact same exponential interval. A max-retry count is required to be specified with this strategy. max_retries and interval_in_seconds must be specified.", + "The task will be retried after an exponentially increasing period of time with each failure. A jitter is added to each exponential interval so that concurrently failing tasks of the same type do not end up retrying after the exact same exponential interval. A max-retry count is required to be specified with this strategy. `max_retries` and `interval_in_seconds` must be specified.", + "The entire integration will be restarted with the initial parameters that were set when the event was fired. A max-retry count is required to be specified with this strategy. `max_retries` and `interval_in_seconds` must be specified." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaGenerateTokenResponse": { + "description": "Returns success or error message", + "id": "GoogleCloudIntegrationsV1alphaGenerateTokenResponse", + "properties": { + "message": { + "description": "The message that notifies the user if the request succeeded or not.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaGetBundleResponse": { + "description": "Response for GetBundle.", + "id": "GoogleCloudIntegrationsV1alphaGetBundleResponse", + "properties": { + "config": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationBundleConfig", + "description": "It contains the bundle data" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaGetClientMetadataResponse": { + "description": "Response for the GetClientMetadata rpc", + "id": "GoogleCloudIntegrationsV1alphaGetClientMetadataResponse", + "properties": { + "properties": { + "$ref": "GoogleCloudIntegrationsV1alphaProjectProperties", + "description": "Required. Required: The client configuration that was requested" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaGetClientResponse": { + "description": "Response for the GetClient rpc", + "id": "GoogleCloudIntegrationsV1alphaGetClientResponse", + "properties": { + "client": { + "$ref": "GoogleCloudIntegrationsV1alphaClientConfig", + "description": "Required. Required: The client configuration that was requested" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaIntParameterArray": { + "description": "This message only contains a field of integer array.", + "id": "GoogleCloudIntegrationsV1alphaIntParameterArray", + "properties": { + "intValues": { + "description": "Integer array.", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaIntegration": { + "description": "The integration definition.", + "id": "GoogleCloudIntegrationsV1alphaIntegration", + "properties": { + "active": { + "description": "Required. If any integration version is published.", + "type": "boolean" + }, + "description": { + "description": "Optional.", + "type": "string" + }, + "name": { + "description": "Required. The resource name of the integration.", + "type": "string" + }, + "updateTime": { + "description": "Output only. Auto-generated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaIntegrationAlertConfig": { + "description": "Message to be used to configure custom alerting in the {@code EventConfig} protos for an event.", + "id": "GoogleCloudIntegrationsV1alphaIntegrationAlertConfig", + "properties": { + "aggregationPeriod": { + "description": "The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours.", + "type": "string" + }, + "alertThreshold": { + "description": "For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired.", + "format": "int32", + "type": "integer" + }, + "disableAlert": { + "description": "Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert.", + "type": "boolean" + }, + "displayName": { + "description": "Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration.", + "type": "string" + }, + "durationThreshold": { + "description": "Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger.", + "format": "google-duration", + "type": "string" + }, + "metricType": { + "description": "The type of metric.", + "enum": [ + "METRIC_TYPE_UNSPECIFIED", + "EVENT_ERROR_RATE", + "EVENT_WARNING_RATE", + "TASK_ERROR_RATE", + "TASK_WARNING_RATE", + "TASK_RATE", + "EVENT_RATE", + "EVENT_AVERAGE_DURATION", + "EVENT_PERCENTILE_DURATION", + "TASK_AVERAGE_DURATION", + "TASK_PERCENTILE_DURATION" + ], + "enumDescriptions": [ + "The default value. Metric type should always be set to one of the other non-default values, otherwise it will result in an INVALID_ARGUMENT error.", + "Specifies alerting on the rate of errors for the enclosing integration.", + "Specifies alerting on the rate of warnings for the enclosing integration. Warnings use the same enum values as errors.", + "Specifies alerting on the rate of errors for any task in the enclosing integration.", + "Specifies alerting on the rate of warnings for any task in the enclosing integration.", + "Specifies alerting on the rate of executions over all tasks in the enclosing integration.", + "Specifies alerting on the number of events executed in the given aggregation_period.", + "Specifies alerting on the average duration of executions for this integration.", + "Specifies alerting on the duration value of a particular percentile of integration executions. E.g. If 10% or more of the integration executions have durations above 5 seconds, alert.", + "Specifies alerting on the average duration of any task in the enclosing integration,", + "Specifies alerting on the duration value of a particular percentile of any task executions within the enclosing integration. E.g. If 10% or more of the task executions in the integration have durations above 5 seconds, alert." + ], + "type": "string" + }, + "onlyFinalAttempt": { + "description": "For either events or tasks, depending on the type of alert, count only final attempts, not retries.", + "type": "boolean" + }, + "thresholdType": { + "description": "The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired.", + "enum": [ + "THRESHOLD_TYPE_UNSPECIFIED", + "EXPECTED_MIN", + "EXPECTED_MAX" + ], + "enumDescriptions": [ + "Default.", + "Note that this field will only trigger alerts if the integration specifying it runs at least once in 24 hours (which is our in-memory retention period for monarch streams). Also note that `aggregation_period` for this alert configuration must be less than 24 hours. Min value threshold.", + "Max value threshold." + ], + "type": "string" + }, + "thresholdValue": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue", + "description": "The metric value, above or below which the alert should be triggered." + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue": { + "description": "The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig.", + "id": "GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue", + "properties": { + "absolute": { + "description": "Absolute value threshold.", + "format": "int64", + "type": "string" + }, + "percentage": { + "description": "Percentage threshold.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaIntegrationBundleConfig": { + "description": "This proto holds the core runner data in the bundle task. It is not expected to be directly edited by the user. Instead, a default value will be provided at the task creation time.", + "id": "GoogleCloudIntegrationsV1alphaIntegrationBundleConfig", + "properties": { + "integrations": { + "description": "A bundle of integrations that can be executed by the task at runtime.", + "items": { + "type": "string" + }, + "type": "array" + }, + "serviceAccount": { + "description": "Output only. The service account created and owned by IP and added to the customers GCP project.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaIntegrationParameter": { + "description": "Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition.", + "id": "GoogleCloudIntegrationsV1alphaIntegrationParameter", + "properties": { + "dataType": { + "description": "Type of the parameter.", + "enum": [ + "INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED", + "STRING_VALUE", + "INT_VALUE", + "DOUBLE_VALUE", + "BOOLEAN_VALUE", + "STRING_ARRAY", + "INT_ARRAY", + "DOUBLE_ARRAY", + "BOOLEAN_ARRAY", + "JSON_VALUE", + "PROTO_VALUE", + "PROTO_ARRAY" + ], + "enumDescriptions": [ + "Unspecified.", + "String.", + "Integer.", + "Double Number.", + "Boolean.", + "String Array.", + "Integer Array.", + "Double Number Array.", + "Boolean Array.", + "Json.", + "Proto Value (Internal use only).", + "Proto Array (Internal use only)." + ], + "type": "string" + }, + "defaultValue": { + "$ref": "GoogleCloudIntegrationsV1alphaValueType", + "description": "Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object." + }, + "displayName": { + "description": "The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is \"foo.bar.myName\", then the name would be \"myName\".", + "type": "string" + }, + "inputOutputType": { + "description": "Specifies the input/output type for the parameter.", + "enum": [ + "IN_OUT_TYPE_UNSPECIFIED", + "IN", + "OUT", + "IN_OUT" + ], + "enumDescriptions": [ + "Default.", + "Input parameters for the integration. EventBus validates that these parameters exist in the integrations before execution.", + "Output Parameters for the integration. EventBus will only return the integration parameters tagged with OUT in the response back.", + "Input and Output Parameters. These can be used as both input and output. EventBus will validate for the existence of these parameters before execution and will also return this parameter back in the response." + ], + "type": "string" + }, + "isTransient": { + "description": "Whether this parameter is a transient parameter.", + "type": "boolean" + }, + "jsonSchema": { + "description": "This schema will be used to validate runtime JSON-typed values of this parameter.", + "type": "string" + }, + "key": { + "description": "Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.", + "type": "string" + }, + "producer": { + "description": "The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param.", + "type": "string" + }, + "searchable": { + "description": "Searchable in the execution log or not.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaIntegrationVersion": { + "description": "The integration version definition.", + "id": "GoogleCloudIntegrationsV1alphaIntegrationVersion", + "properties": { + "createTime": { + "description": "Output only. Auto-generated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "databasePersistencePolicy": { + "description": "Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index.", + "enum": [ + "DATABASE_PERSISTENCE_POLICY_UNSPECIFIED", + "DATABASE_PERSISTENCE_DISABLED" + ], + "enumDescriptions": [ + "Enables persistence for all execution data.", + "Disables persistence for all execution data." + ], + "type": "string" + }, + "description": { + "description": "Optional. The integration description.", + "type": "string" + }, + "integrationParameters": { + "description": "Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter.", + "items": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationParameter" + }, + "type": "array" + }, + "integrationParametersInternal": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoWorkflowParameters", + "description": "Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter." + }, + "lastModifierEmail": { + "description": "Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call.", + "type": "string" + }, + "lockHolder": { + "description": "Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call.", + "type": "string" + }, + "name": { + "description": "Output only. Auto-generated primary key.", + "readOnly": true, + "type": "string" + }, + "origin": { + "description": "Optional. The origin that indicates where this integration is coming from.", + "enum": [ + "UNSPECIFIED", + "UI", + "PIPER_V2", + "PIPER_V3", + "APPLICATION_IP_PROVISIONING" + ], + "enumDescriptions": [ + "", + "Workflow is being created via event bus UI.", + "User checked in this workflow in Piper as v2 textproto format and we synced it into spanner.", + "User checked in this workflow in piper as v3 textproto format and we synced it into spanner.", + "Workflow is being created via Standalone IP Provisioning" + ], + "type": "string" + }, + "parentTemplateId": { + "description": "Optional. The id of the template which was used to create this integration_version.", + "type": "string" + }, + "snapshotNumber": { + "description": "Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use \"HEAD\" tag to identify the head.", + "format": "int64", + "type": "string" + }, + "state": { + "description": "Output only. User should not set it as an input.", + "enum": [ + "INTEGRATION_STATE_UNSPECIFIED", + "DRAFT", + "ACTIVE", + "ARCHIVED", + "SNAPSHOT" + ], + "enumDescriptions": [ + "Default.", + "Draft.", + "Active.", + "Archived.", + "Snapshot." + ], + "readOnly": true, + "type": "string" + }, + "status": { + "description": "Output only. Generated by eventbus. User should not set it as an input.", + "enum": [ + "UNKNOWN", + "DRAFT", + "ACTIVE", + "ARCHIVED", + "SNAPSHOT" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "" + ], + "readOnly": true, + "type": "string" + }, + "taskConfigs": { + "description": "Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs.", + "items": { + "$ref": "GoogleCloudIntegrationsV1alphaTaskConfig" + }, + "type": "array" + }, + "taskConfigsInternal": { + "description": "Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs.", + "items": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoTaskConfig" + }, + "type": "array" + }, + "teardown": { + "$ref": "EnterpriseCrmEventbusProtoTeardown", + "description": "Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to \"finally\" in code." + }, + "triggerConfigs": { + "description": "Optional. Trigger configurations.", + "items": { + "$ref": "GoogleCloudIntegrationsV1alphaTriggerConfig" + }, + "type": "array" + }, + "triggerConfigsInternal": { + "description": "Optional. Trigger configurations.", + "items": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoTriggerConfig" + }, + "type": "array" + }, + "updateTime": { + "description": "Output only. Auto-generated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "userLabel": { + "description": "Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaJwt": { + "description": "Represents JSON web token(JWT), which is a compact, URL-safe means of representing claims to be transferred between two parties, enabling the claims to be digitally signed or integrity protected.", + "id": "GoogleCloudIntegrationsV1alphaJwt", + "properties": { + "jwt": { + "description": "The token calculated by the header, payload and signature.", + "type": "string" + }, + "jwtHeader": { + "description": "Identifies which algorithm is used to generate the signature.", + "type": "string" + }, + "jwtPayload": { + "description": "Contains a set of claims. The JWT specification defines seven Registered Claim Names which are the standard fields commonly included in tokens. Custom claims are usually also included, depending on the purpose of the token.", + "type": "string" + }, + "secret": { + "description": "User's pre-shared secret to sign the token.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaLiftSuspensionRequest": { + "description": "Request for lift Suspension", + "id": "GoogleCloudIntegrationsV1alphaLiftSuspensionRequest", + "properties": { + "suspensionResult": { + "description": "User passed in suspension result and will be used to control workflow execution branching behavior by setting up corresponnding edge condition with suspension result. For example, if you want to lift the suspension, you can pass \"Approved\", or if you want to reject the suspension and terminate workfloe execution, you can pass \"Rejected\" and terminate the workflow execution with configuring the edge condition.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaLiftSuspensionResponse": { + "description": "Response of lift Suspense", + "id": "GoogleCloudIntegrationsV1alphaLiftSuspensionResponse", + "properties": { + "eventExecutionInfoId": { + "description": "Execution Id that will be returned", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest": { + "description": "Request for LinkAppsScriptProject rpc call.", + "id": "GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest", + "properties": { + "scriptId": { + "description": "The id of the Apps Script project to be linked.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse": { + "description": "Response for LinkAppsScriptProject rpc call.", + "id": "GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse", + "properties": { + "scriptId": { + "description": "The id of the linked Apps Script project.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaListAuthConfigsResponse": { + "description": "Response to list AuthConfigs.", + "id": "GoogleCloudIntegrationsV1alphaListAuthConfigsResponse", + "properties": { + "authConfigs": { + "description": "The list of AuthConfigs retrieved.", + "items": { + "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The token used to retrieve the next page of results.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaListCertificatesResponse": { + "description": "Response to list Certificates.", + "id": "GoogleCloudIntegrationsV1alphaListCertificatesResponse", + "properties": { + "certificates": { + "description": "The list of Certificates retrieved.", + "items": { + "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The token used to retrieve the next page of results.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaListConnectionsResponse": { + "description": "Response containing Connections listed by region.", + "id": "GoogleCloudIntegrationsV1alphaListConnectionsResponse", + "properties": { + "connections": { + "description": "Connections.", + "items": { + "$ref": "GoogleCloudConnectorsV1Connection" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Next page token.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse": { + "description": "Response for listing the integration execution snapshot.", + "id": "GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse", + "properties": { + "executionSnapshots": { + "description": "Required. The detailed information for the execution snapshot.", + "items": { + "$ref": "EnterpriseCrmEventbusProtoEventExecutionSnapshot" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The token returned in the previous response.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaListExecutionsResponse": { + "description": "Response for listing the integration execution data.", + "id": "GoogleCloudIntegrationsV1alphaListExecutionsResponse", + "properties": { + "executionInfos": { + "description": "Required. The detailed information of requested executions.", + "items": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo" + }, + "type": "array" + }, + "executions": { + "description": "The detailed information of requested executions", + "items": { + "$ref": "GoogleCloudIntegrationsV1alphaExecution" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The token used to retrieve the next page results.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse": { + "description": "Response for ListIntegrationVersions.", + "id": "GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse", + "properties": { + "integrationVersions": { + "description": "The integrations which match the request.", + "items": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "noPermission": { + "description": "Whether the user has no permission on the version or not.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaListIntegrationsResponse": { + "description": "Response for ListIntegrations.", + "id": "GoogleCloudIntegrationsV1alphaListIntegrationsResponse", + "properties": { + "integrations": { + "description": "The integrations which match the request.", + "items": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegration" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The next page token for the response.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse": { + "description": "Response for listing RuntimeActionSchemas for a specific Connection.", + "id": "GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse", + "properties": { + "nextPageToken": { + "description": "Next page token.", + "type": "string" + }, + "runtimeActionSchemas": { + "description": "Runtime action schemas.", + "items": { + "$ref": "GoogleCloudIntegrationsV1alphaRuntimeActionSchema" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse": { + "description": "Response for listing RuntimeEntitySchemas for a specific Connection.", + "id": "GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse", + "properties": { + "nextPageToken": { + "description": "Next page token.", + "type": "string" + }, + "runtimeEntitySchemas": { + "description": "Runtime entity schemas.", + "items": { + "$ref": "GoogleCloudIntegrationsV1alphaRuntimeEntitySchema" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse": { + "description": "Response to list SfdcChannels.", + "id": "GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse", + "properties": { + "nextPageToken": { + "description": "The token used to retrieve the next page of results.", + "type": "string" + }, + "sfdcChannels": { + "description": "The list of SfdcChannels retrieved.", + "items": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse": { + "description": "Response to list SfdcInstances.", + "id": "GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse", + "properties": { + "nextPageToken": { + "description": "The token used to retrieve the next page of results.", + "type": "string" + }, + "sfdcInstances": { + "description": "The list of SfdcInstances retrieved.", + "items": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaListSuspensionsResponse": { + "description": "Response for Suspensions.ListSuspensions.", + "id": "GoogleCloudIntegrationsV1alphaListSuspensionsResponse", + "properties": { + "nextPageToken": { + "description": "Token to retrieve the next page of results.", + "type": "string" + }, + "suspensions": { + "description": "The suspensions for the relevant execution which the caller has permissions to view and resolve.", + "items": { + "$ref": "GoogleCloudIntegrationsV1alphaSuspension" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse": { + "description": "This is a UI only method and will be moved away. Response for ListTaskEntities.", + "id": "GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse", + "properties": { + "taskEntities": { + "description": "The list of the tasks.", + "items": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoTaskEntity" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest": { + "description": "The request to get data for monarch connector config.", + "id": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest", + "properties": { + "duration": { + "description": "How long the series data range: \"1h\",\"1d\",etc.", + "format": "google-duration", + "type": "string" + }, + "endTime": { + "description": "Final time to query over, or the current time if left unset.", + "format": "google-datetime", + "type": "string" + }, + "mashQuery": { + "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQuery", + "description": "Required. Query for searching data in monarch." + }, + "metricFieldTable": { + "description": "Returns a table of all possible metric field values within the specified duration, ignoring any data samples. Useful for autocomplete functionality.", + "type": "boolean" + }, + "outputPeriod": { + "description": "The output period for the query. Must be set if there is a window operation within the query and unset otherwise.", + "format": "google-duration", + "type": "string" + }, + "responseTemplate": { + "description": "Required. Template for response.", + "enum": [ + "DATA_FORMAT_UNSPECIFIED", + "TABLE_CONFIG", + "APLOSE_SERIES_LIST_CONFIG" + ], + "enumDescriptions": [ + "Unknown data format", + "Table data", + "Aplose series data" + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestGroupBy": { + "description": "MashQuery GroupBy parameters.", + "id": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestGroupBy", + "properties": { + "fields": { + "description": "Optional. optional, metrics list for GroupBy.", + "items": { + "type": "string" + }, + "type": "array" + }, + "reducer": { + "description": "Optional. optional, reduce function for GroupBy.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQuery": { + "description": "The MashQuery for searching data, set both queries for Join Operation.", + "id": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQuery", + "properties": { + "firstQuery": { + "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryComponent", + "description": "Required. The components for constructing a mash query. Set \"point_operation\" if this is a single query" + }, + "operationMode": { + "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationMode", + "description": "Optional. optional, only set when joining 2 queries. By default join 2 queries with join operation." + }, + "secondQuery": { + "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryComponent", + "description": "Optional. optional, only set when joining 2 queries. Set \"point_operation\" for joined query." + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryComponent": { + "description": "The components for constructing MashQuery.", + "id": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryComponent", + "properties": { + "borgTaskMetric": { + "description": "Required. The metric for monarch.BorgTask.", + "enum": [ + "BORG_TASK_METRIC_UNSPECIFIED", + "TASK_INDIVIDUAL_COUNT", + "EVENT_COUNT", + "EVENT_DURATION", + "TASK_INDIVIDUAL_DURATION" + ], + "enumDescriptions": [ + "Unknown metric", + "Metric end with: \"/task/individual_count\".", + "Metric end with: \"/event/count\".", + "Metric end with: \"/event/duration\".", + "Metric end with: \"/task/individual_duration\"." + ], + "type": "string" + }, + "dataFilters": { + "description": "Optional. optional, filters on fetched data, \"metric:client_id\" not supported.", + "items": { + "type": "string" + }, + "type": "array" + }, + "fetchFilters": { + "description": "Optional. optional, filters for Fetch Raw, \"metric:client_id\" not supported.", + "items": { + "type": "string" + }, + "type": "array" + }, + "groupBy": { + "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestGroupBy", + "description": "Optional. optional, GroupBy variables." + }, + "pointOperation": { + "description": "Optional. optional, Point Operation on single query or joined query.", + "type": "string" + }, + "timeDelta": { + "description": "Required. Window time delta.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationMode": { + "description": "Operation between 2 query", + "id": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationMode", + "properties": { + "joinConfig": { + "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationModeJoinConfig", + "description": "Optional. join operation" + }, + "operationType": { + "description": "Optional. optional operation types.", + "enum": [ + "OPERATION_TYPE_UNSPECIFIED", + "UNION", + "JOIN" + ], + "enumDescriptions": [ + "By default join.", + "Union operation", + "Join Operation" + ], + "type": "string" + }, + "unionConfig": { + "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationModeUnionConfig", + "description": "Optional. union operation" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationModeJoinConfig": { + "description": "Join Operation", + "id": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationModeJoinConfig", + "properties": {}, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationModeUnionConfig": { + "description": "Union operation", + "id": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationModeUnionConfig", + "properties": { + "reducer": { + "description": "Optional. optional, reduce function", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse": { + "description": "The response for getting Execution stats.", + "id": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse", + "properties": { + "aplosSeriesListData": { + "$ref": "EnterpriseCrmCardsTemplatesAplosSeriesListData", + "description": "List of points." + }, + "tableData": { + "$ref": "EnterpriseCrmCardsTabularData", + "description": "Data in form of table." + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaNextTask": { + "description": "The task that is next in line to be executed, if the condition specified evaluated to true.", + "id": "GoogleCloudIntegrationsV1alphaNextTask", + "properties": { + "condition": { + "description": "Standard filter expression for this task to become an eligible next task.", + "type": "string" + }, + "description": { + "description": "User-provided description intended to give additional business context about the task.", + "type": "string" + }, + "displayName": { + "description": "User-provided label that is attached to this edge in the UI.", + "type": "string" + }, + "taskConfigId": { + "description": "ID of the next task.", + "type": "string" + }, + "taskId": { + "description": "Task number of the next task.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode": { + "description": "The OAuth Type where the client sends request with the client id and requested scopes to auth endpoint. User sees a consent screen and auth code is received at specified redirect url afterwards. The auth code is then combined with the client id and secret and sent to the token endpoint in exchange for the access and refresh token. The refresh token can be used to fetch new access tokens.", + "id": "GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode", + "properties": { + "accessToken": { + "$ref": "GoogleCloudIntegrationsV1alphaAccessToken", + "description": "The access token received from the token endpoint." + }, + "applyReauthPolicy": { + "description": "Indicates if the user has opted in Google Reauth Policy. If opted in, the refresh token will be valid for 20 hours, after which time users must re-authenticate in order to obtain a new one.", + "type": "boolean" + }, + "authCode": { + "description": "The Auth Code that is used to initially retrieve the access token.", + "type": "string" + }, + "authEndpoint": { + "description": "The auth url endpoint to send the auth code request to.", + "type": "string" + }, + "authParams": { + "$ref": "GoogleCloudIntegrationsV1alphaParameterMap", + "description": "The auth parameters sent along with the auth code request." + }, + "clientId": { + "description": "The client's id.", + "type": "string" + }, + "clientSecret": { + "description": "The client's secret.", + "type": "string" + }, + "requestType": { + "description": "Represent how to pass parameters to fetch access token", + "enum": [ + "REQUEST_TYPE_UNSPECIFIED", + "REQUEST_BODY", + "QUERY_PARAMETERS", + "ENCODED_HEADER" + ], + "enumDescriptions": [ + "Unspecified request type", + "To pass all the parameters in post body.", + "To pass all the parameters as a part of query parameter.", + "To pass client id and client secret as base 64 encoding of client_id:client_password and rest parameters in post body." + ], + "type": "string" + }, + "scope": { + "description": "A space-delimited list of requested scope permissions.", + "type": "string" + }, + "tokenEndpoint": { + "description": "The token url endpoint to send the token request to.", + "type": "string" + }, + "tokenParams": { + "$ref": "GoogleCloudIntegrationsV1alphaParameterMap", + "description": "The token parameters sent along with the token request." + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials": { + "description": "For client credentials grant, the client sends a POST request with grant_type as 'client_credentials' to the authorization server. The authorization server will respond with a JSON object containing the access token.", + "id": "GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials", + "properties": { + "accessToken": { + "$ref": "GoogleCloudIntegrationsV1alphaAccessToken", + "description": "Access token fetched from the authorization server." + }, + "clientId": { + "description": "The client's ID.", + "type": "string" + }, + "clientSecret": { + "description": "The client's secret.", + "type": "string" + }, + "requestType": { + "description": "Represent how to pass parameters to fetch access token", + "enum": [ + "REQUEST_TYPE_UNSPECIFIED", + "REQUEST_BODY", + "QUERY_PARAMETERS", + "ENCODED_HEADER" + ], + "enumDescriptions": [ + "Unspecified request type", + "To pass all the parameters in post body.", + "To pass all the parameters as a part of query parameter.", + "To pass client id and client secret as base 64 encoding of client_id:client_password and rest parameters in post body." + ], + "type": "string" + }, + "scope": { + "description": "A space-delimited list of requested scope permissions.", + "type": "string" + }, + "tokenEndpoint": { + "description": "The token endpoint is used by the client to obtain an access token by presenting its authorization grant or refresh token.", + "type": "string" + }, + "tokenParams": { + "$ref": "GoogleCloudIntegrationsV1alphaParameterMap", + "description": "Token parameters for the auth request." + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials": { + "description": "For resource owner credentials grant, the client will ask the user for their authorization credentials (ususally a username and password) and send a POST request to the authorization server. The authorization server will respond with a JSON object containing the access token.", + "id": "GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials", + "properties": { + "accessToken": { + "$ref": "GoogleCloudIntegrationsV1alphaAccessToken", + "description": "Access token fetched from the authorization server." + }, + "clientId": { + "description": "The client's ID.", + "type": "string" + }, + "clientSecret": { + "description": "The client's secret.", + "type": "string" + }, + "password": { + "description": "The user's password.", + "type": "string" + }, + "requestType": { + "description": "Represent how to pass parameters to fetch access token", + "enum": [ + "REQUEST_TYPE_UNSPECIFIED", + "REQUEST_BODY", + "QUERY_PARAMETERS", + "ENCODED_HEADER" + ], + "enumDescriptions": [ + "Unspecified request type", + "To pass all the parameters in post body.", + "To pass all the parameters as a part of query parameter.", + "To pass client id and client secret as base 64 encoding of client_id:client_password and rest parameters in post body." + ], + "type": "string" + }, + "scope": { + "description": "A space-delimited list of requested scope permissions.", + "type": "string" + }, + "tokenEndpoint": { + "description": "The token endpoint is used by the client to obtain an access token by presenting its authorization grant or refresh token.", + "type": "string" + }, + "tokenParams": { + "$ref": "GoogleCloudIntegrationsV1alphaParameterMap", + "description": "Token parameters for the auth request." + }, + "username": { + "description": "The user's username.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaOidcToken": { + "description": "OIDC Token", + "id": "GoogleCloudIntegrationsV1alphaOidcToken", + "properties": { + "audience": { + "description": "Audience to be used when generating OIDC token. The audience claim identifies the recipients that the JWT is intended for.", + "type": "string" + }, + "serviceAccountEmail": { + "description": "The service account email to be used as the identity for the token.", + "type": "string" + }, + "token": { + "description": "ID token obtained for the service account", + "type": "string" + }, + "tokenExpireTime": { + "description": "The approximate time until the token retrieved is valid.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaParameterMap": { + "description": "A generic multi-map that holds key value pairs. They keys and values can be of any type, unless specified.", + "id": "GoogleCloudIntegrationsV1alphaParameterMap", + "properties": { + "entries": { + "description": "A list of parameter map entries.", + "items": { + "$ref": "GoogleCloudIntegrationsV1alphaParameterMapEntry" + }, + "type": "array" + }, + "keyType": { + "description": "Option to specify key type for all entries of the map. If provided then field types for all entries must conform to this.", + "enum": [ + "INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED", + "STRING_VALUE", + "INT_VALUE", + "DOUBLE_VALUE", + "BOOLEAN_VALUE", + "STRING_ARRAY", + "INT_ARRAY", + "DOUBLE_ARRAY", + "BOOLEAN_ARRAY", + "JSON_VALUE", + "PROTO_VALUE", + "PROTO_ARRAY" + ], + "enumDescriptions": [ + "Unspecified.", + "String.", + "Integer.", + "Double Number.", + "Boolean.", + "String Array.", + "Integer Array.", + "Double Number Array.", + "Boolean Array.", + "Json.", + "Proto Value (Internal use only).", + "Proto Array (Internal use only)." + ], + "type": "string" + }, + "valueType": { + "description": "Option to specify value type for all entries of the map. If provided then field types for all entries must conform to this.", + "enum": [ + "INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED", + "STRING_VALUE", + "INT_VALUE", + "DOUBLE_VALUE", + "BOOLEAN_VALUE", + "STRING_ARRAY", + "INT_ARRAY", + "DOUBLE_ARRAY", + "BOOLEAN_ARRAY", + "JSON_VALUE", + "PROTO_VALUE", + "PROTO_ARRAY" + ], + "enumDescriptions": [ + "Unspecified.", + "String.", + "Integer.", + "Double Number.", + "Boolean.", + "String Array.", + "Integer Array.", + "Double Number Array.", + "Boolean Array.", + "Json.", + "Proto Value (Internal use only).", + "Proto Array (Internal use only)." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaParameterMapEntry": { + "description": "Entry is a pair of key and value.", + "id": "GoogleCloudIntegrationsV1alphaParameterMapEntry", + "properties": { + "key": { + "$ref": "GoogleCloudIntegrationsV1alphaParameterMapField", + "description": "Key of the map entry." + }, + "value": { + "$ref": "GoogleCloudIntegrationsV1alphaParameterMapField", + "description": "Value of the map entry." + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaParameterMapField": { + "description": "Field represents either the key or value in an entry.", + "id": "GoogleCloudIntegrationsV1alphaParameterMapField", + "properties": { + "literalValue": { + "$ref": "GoogleCloudIntegrationsV1alphaValueType", + "description": "Passing a literal value." + }, + "referenceKey": { + "description": "Referencing one of the Integration variables.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaProjectProperties": { + "description": "Metadata information for the given project", + "id": "GoogleCloudIntegrationsV1alphaProjectProperties", + "properties": { + "ipEnablementState": { + "description": "An enum value of what the enablement state is for the given project", + "enum": [ + "IP_ENABLEMENT_STATE_UNSPECIFIED", + "IP_ENABLEMENT_STATE_STANDALONE", + "IP_ENABLEMENT_STATE_APIGEE", + "IP_ENABLEMENT_STATE_APIGEE_ENTITLED" + ], + "enumDescriptions": [ + "The client enablement status is unspecified", + "The client is enabled on Standalone IP", + "The client is enabled on Apigee", + "The client is entitled for Apigee but not enabled" + ], + "type": "string" + }, + "provisionedRegions": { + "description": "A list of provisioned regions on the current project", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaProvisionClientRequest": { + "description": "Request for the Provision rpc", + "id": "GoogleCloudIntegrationsV1alphaProvisionClientRequest", + "properties": { + "cloudKmsConfig": { + "$ref": "GoogleCloudIntegrationsV1alphaCloudKmsConfig", + "description": "Required. Required: Cloud KMS config for AuthModule to encrypt/decrypt credentials." + }, + "createSampleWorkflows": { + "description": "Optional. Indicates if sample workflow should be created along with provisioning", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest": { + "description": "Request for PublishIntegrationVersion.", + "id": "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest", + "properties": {}, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse": { + "description": "Response for PublishIntegrationVersion.", + "id": "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaResolveSuspensionRequest": { + "description": "Request for [Suspensions.ResolveSuspensions].", + "id": "GoogleCloudIntegrationsV1alphaResolveSuspensionRequest", + "properties": { + "suspension": { + "$ref": "GoogleCloudIntegrationsV1alphaSuspension", + "description": "Suspension, containing the event_execution_info_id, task_id, and state to set on the corresponding suspension record." + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaResolveSuspensionResponse": { + "description": "Response for Suspensions.ResolveSuspensions.", + "id": "GoogleCloudIntegrationsV1alphaResolveSuspensionResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaRuntimeActionSchema": { + "description": "Metadata of an action, including schemas for its inputs and outputs.", + "id": "GoogleCloudIntegrationsV1alphaRuntimeActionSchema", + "properties": { + "action": { + "description": "Name of the action.", + "type": "string" + }, + "inputSchema": { + "description": "Input parameter schema for the action.", + "type": "string" + }, + "outputSchema": { + "description": "Output parameter schema for the action.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaRuntimeEntitySchema": { + "description": "Metadata of an entity, including a schema for its properties.", + "id": "GoogleCloudIntegrationsV1alphaRuntimeEntitySchema", + "properties": { + "arrayFieldSchema": { + "description": "The above schema, but for an array of the associated entity.", + "type": "string" + }, + "entity": { + "description": "Name of the entity.", + "type": "string" + }, + "fieldSchema": { + "description": "List of fields in the entity.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest": { + "description": "The request for scheduling an integration.", + "id": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest", + "properties": { + "inputParameters": { + "additionalProperties": { + "$ref": "GoogleCloudIntegrationsV1alphaValueType" + }, + "description": "Optional. Input parameters used by integration execution.", + "type": "object" + }, + "parameterEntries": { + "description": "Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution.", + "items": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoParameterEntry" + }, + "type": "array" + }, + "parameters": { + "$ref": "EnterpriseCrmEventbusProtoEventParameters", + "description": "Passed in as parameters to each integration execution." + }, + "requestId": { + "description": "This is used to de-dup incoming request: if the duplicate request was detected, the response from the previous execution is returned.", + "type": "string" + }, + "scheduleTime": { + "description": "The time that the integration should be executed. If the time is less or equal to the current time, the integration is executed immediately.", + "format": "google-datetime", + "type": "string" + }, + "triggerId": { + "description": "Matched against all {@link TriggerConfig}s across all integrations. i.e. TriggerConfig.trigger_id.equals(trigger_id)", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse": { + "description": "The response for executing an integration.", + "id": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse", + "properties": { + "executionInfoIds": { + "description": "The execution info id for the executed integrations.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaServiceAccountCredentials": { + "description": "Represents the service account which can be used to generate access token for authenticating the service call.", + "id": "GoogleCloudIntegrationsV1alphaServiceAccountCredentials", + "properties": { + "scope": { + "description": "A space-delimited list of requested scope permissions.", + "type": "string" + }, + "serviceAccount": { + "description": "Name of the service account that has the permission to make the request.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaSfdcChannel": { + "description": "The SfdcChannel that points to a CDC or Platform Event Channel.", + "id": "GoogleCloudIntegrationsV1alphaSfdcChannel", + "properties": { + "channelTopic": { + "description": "The Channel topic defined by salesforce once an channel is opened", + "type": "string" + }, + "createTime": { + "description": "Output only. Time when the channel is created", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "deleteTime": { + "description": "Output only. Time when the channel was deleted. Empty if not deleted.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "The description for this channel", + "type": "string" + }, + "displayName": { + "description": "Client level unique name/alias to easily reference a channel.", + "type": "string" + }, + "isActive": { + "description": "Indicated if a channel has any active integrations referencing it. Set to false when the channel is created, and set to true if there is any integration published with the channel configured in it.", + "type": "boolean" + }, + "lastReplayId": { + "description": "Last sfdc messsage replay id for channel", + "type": "string" + }, + "name": { + "description": "Resource name of the SFDC channel projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance}/sfdcChannels/{sfdc_channel}.", + "type": "string" + }, + "updateTime": { + "description": "Output only. Time when the channel was last updated", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaSfdcInstance": { + "description": "The SfdcInstance resource use to hold channels and connection config data.", + "id": "GoogleCloudIntegrationsV1alphaSfdcInstance", + "properties": { + "authConfigId": { + "description": "A list of AuthConfigs that can be tried to open the channel to SFDC", + "items": { + "type": "string" + }, + "type": "array" + }, + "createTime": { + "description": "Output only. Time when the instance is created", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "deleteTime": { + "description": "Output only. Time when the instance was deleted. Empty if not deleted.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "A description of the sfdc instance.", + "type": "string" + }, + "displayName": { + "description": "User selected unique name/alias to easily reference an instance.", + "type": "string" + }, + "name": { + "description": "Resource name of the SFDC instance projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance}.", + "type": "string" + }, + "serviceAuthority": { + "description": "URL used for API calls after authentication (the login authority is configured within the referenced AuthConfig).", + "type": "string" + }, + "sfdcOrgId": { + "description": "The SFDC Org Id. This is defined in salesforce.", + "type": "string" + }, + "updateTime": { + "description": "Output only. Time when the instance was last updated", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaStringParameterArray": { + "description": "This message only contains a field of string array.", + "id": "GoogleCloudIntegrationsV1alphaStringParameterArray", + "properties": { + "stringValues": { + "description": "String array.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaSuccessPolicy": { + "description": "Policy that dictates the behavior for the task after it completes successfully.", + "id": "GoogleCloudIntegrationsV1alphaSuccessPolicy", + "properties": { + "finalState": { + "description": "State to which the execution snapshot status will be set if the task succeeds.", + "enum": [ + "FINAL_STATE_UNSPECIFIED", + "SUCCEEDED", + "SUSPENDED" + ], + "enumDescriptions": [ + "UNSPECIFIED.", + "The default behavior, where successful tasks will be marked as SUCCEEDED.", + "Sets the state to SUSPENDED after executing. This is required for SuspensionTask; event execution will continue once the user calls ResolveSuspensions with the event_execution_info_id and the task number." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaSuspension": { + "description": "A record representing a suspension.", + "id": "GoogleCloudIntegrationsV1alphaSuspension", + "properties": { + "approvalConfig": { + "$ref": "GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig", + "description": "Controls the notifications and approval permissions for this suspension." + }, + "audit": { + "$ref": "GoogleCloudIntegrationsV1alphaSuspensionAudit", + "description": "Metadata pertaining to the resolution of this suspension." + }, + "createTime": { + "description": "Output only. Auto-generated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "eventExecutionInfoId": { + "description": "Required. ID of the associated execution.", + "type": "string" + }, + "integration": { + "description": "Required. The name of the originating integration.", + "type": "string" + }, + "lastModifyTime": { + "description": "Output only. Auto-generated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Resource name for suspensions suspension/{suspension_id}", + "type": "string" + }, + "state": { + "description": "Required. State of this suspension, indicating what action a resolver has taken.", + "enum": [ + "RESOLUTION_STATE_UNSPECIFIED", + "PENDING", + "REJECTED", + "LIFTED" + ], + "enumDescriptions": [ + "Unset state.", + "The suspension has not yet been resolved.", + "The resolver has rejected the suspension.", + "The resolver has lifted the suspension." + ], + "type": "string" + }, + "suspensionConfig": { + "$ref": "EnterpriseCrmEventbusProtoSuspensionConfig", + "description": "Controls the notifications and resolver permissions for this suspension." + }, + "taskId": { + "description": "Required. Task id of the associated SuspensionTask.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig": { + "description": "Configurations for approving the Suspension.", + "id": "GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig", + "properties": { + "customMessage": { + "description": "Information to provide for recipients.", + "type": "string" + }, + "emailAddresses": { + "description": "Email addresses to send approval request to.", + "items": { + "type": "string" + }, + "type": "array" + }, + "expiration": { + "$ref": "GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration", + "description": "Indicates the next steps when no external actions happen on the suspension." + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration": { + "description": "Expiration configs for the approval request.", + "id": "GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration", + "properties": { + "expireTime": { + "description": "Output only. Time after which the suspension expires, if no action taken.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "liftWhenExpired": { + "description": "Whether the suspension will be REJECTED or LIFTED upon expiration. REJECTED is the default behavior.", + "type": "boolean" + }, + "remindTime": { + "description": "Time after the previous suspension action reminder, if any, is sent using the selected notification option, for a suspension which is still PENDING_UNSPECIFIED.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaSuspensionAudit": { + "description": "Contains when and by whom the suspension was resolved.", + "id": "GoogleCloudIntegrationsV1alphaSuspensionAudit", + "properties": { + "resolveTime": { + "description": "Time at which this suspension was resolved.", + "format": "google-datetime", + "type": "string" + }, + "resolver": { + "description": "Email address of the person who resolved this suspension.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest": { + "description": "Request for TakeoverEditLock.", + "id": "GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest", + "properties": {}, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse": { + "description": "Response for TakeoverEditLock.", + "id": "GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse", + "properties": { + "integrationVersion": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion", + "description": "Version after the lock is acquired by the new user." + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaTaskConfig": { + "description": "The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task.", + "id": "GoogleCloudIntegrationsV1alphaTaskConfig", + "properties": { + "description": { + "description": "Optional. User-provided description intended to give additional business context about the task.", + "type": "string" + }, + "displayName": { + "description": "Optional. User-provided label that is attached to this TaskConfig in the UI.", + "type": "string" + }, + "failurePolicy": { + "$ref": "GoogleCloudIntegrationsV1alphaFailurePolicy", + "description": "Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.)." + }, + "jsonValidationOption": { + "description": "Optional. If set, overrides the option configured in the Task implementation class.", + "enum": [ + "JSON_VALIDATION_OPTION_UNSPECIFIED", + "SKIP", + "PRE_EXECUTION", + "POST_EXECUTION", + "PRE_POST_EXECUTION" + ], + "enumDescriptions": [ + "As per the default behavior, no validation will be run. Will not override any option set in a Task.", + "Do not run any validation against JSON schemas.", + "Validate all potential input JSON parameters against schemas specified in IntegrationParameter.", + "Validate all potential output JSON parameters against schemas specified in IntegrationParameter.", + "Perform both PRE_EXECUTION and POST_EXECUTION validations." + ], + "type": "string" + }, + "nextTasks": { + "description": "Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true.", + "items": { + "$ref": "GoogleCloudIntegrationsV1alphaNextTask" + }, + "type": "array" + }, + "nextTasksExecutionPolicy": { + "description": "Optional. The policy dictating the execution of the next set of tasks for the current task.", + "enum": [ + "NEXT_TASKS_EXECUTION_POLICY_UNSPECIFIED", + "RUN_ALL_MATCH", + "RUN_FIRST_MATCH" + ], + "enumDescriptions": [ + "Default.", + "Execute all the tasks that satisfy their associated condition.", + "Execute the first task that satisfies the associated condition." + ], + "type": "string" + }, + "parameters": { + "additionalProperties": { + "$ref": "GoogleCloudIntegrationsV1alphaEventParameter" + }, + "description": "Optional. The customized parameters the user can pass to this task.", + "type": "object" + }, + "successPolicy": { + "$ref": "GoogleCloudIntegrationsV1alphaSuccessPolicy", + "description": "Optional. Determines what action to take upon successful task completion." + }, + "synchronousCallFailurePolicy": { + "$ref": "GoogleCloudIntegrationsV1alphaFailurePolicy", + "description": "Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post)." + }, + "task": { + "description": "Optional. The name for the task.", + "type": "string" + }, + "taskExecutionStrategy": { + "description": "Optional. The policy dictating the execution strategy of this task.", + "enum": [ + "TASK_EXECUTION_STRATEGY_UNSPECIFIED", + "WHEN_ALL_SUCCEED", + "WHEN_ANY_SUCCEED", + "WHEN_ALL_TASKS_AND_CONDITIONS_SUCCEED" + ], + "enumDescriptions": [ + "Default. If the strategy is not set explicitly, it will default to `WHEN_ALL_SUCCEED`.", + "Wait until all of its previous tasks finished execution, then verify at least one of the edge conditions is met, and execute if possible. This should be considered as WHEN_ALL_TASKS_SUCCEED.", + "Start execution as long as any of its previous tasks finished execution and the corresponding edge condition is met (since we will execute if only that succeeding edge condition is met).", + "Wait until all of its previous tasks finished execution, then verify the all edge conditions are met and execute if possible." + ], + "type": "string" + }, + "taskId": { + "description": "Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`).", + "type": "string" + }, + "taskTemplate": { + "description": "Optional. Used to define task-template name if task is of type task-template", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaTaskExecutionDetails": { + "description": "Contains the details of the execution of this task.", + "id": "GoogleCloudIntegrationsV1alphaTaskExecutionDetails", + "properties": { + "taskAttemptStats": { + "description": "Status for the current task execution attempt.", + "items": { + "$ref": "GoogleCloudIntegrationsV1alphaAttemptStats" + }, + "type": "array" + }, + "taskExecutionState": { + "description": "The execution state of this task.", + "enum": [ + "TASK_EXECUTION_STATE_UNSPECIFIED", + "PENDING_EXECUTION", + "IN_PROCESS", + "SUCCEED", + "FAILED", + "FATAL", + "RETRY_ON_HOLD", + "SKIPPED", + "CANCELLED", + "PENDING_ROLLBACK", + "ROLLBACK_IN_PROCESS", + "ROLLEDBACK", + "SUSPENDED" + ], + "enumDescriptions": [ + "Default value.", + "Task is waiting for its precondition tasks to finish to start the execution.", + "Task is under processing.", + "Task execution successfully finished. There's no more change after this state.", + "Task execution failed. There's no more change after this state.", + "Task execution failed and cause the whole event execution to fail immediately. There's no more change after this state.", + "Task execution failed and waiting for retry.", + "Task execution skipped. This happens when its precondition wasn't met, or the event execution been canceled before reach to the task. There's no more changes after this state.", + "Task execution canceled when in progress. This happens when event execution been canceled or any other task fall in fatal state.", + "Task is waiting for its dependency tasks' rollback to finish to start its rollback.", + "Task is rolling back.", + "Task is rolled back. This is the state we will set regardless of rollback succeeding or failing.", + "Task is a SuspensionTask which has executed once, creating a pending suspension." + ], + "type": "string" + }, + "taskNumber": { + "description": "Pointer to the task config it used for execution.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaTestIntegrationsRequest": { + "description": "The request for testing an integration.", + "id": "GoogleCloudIntegrationsV1alphaTestIntegrationsRequest", + "properties": { + "clientId": { + "description": "Required. This is used to identify the client on whose behalf the event will be executed.", + "type": "string" + }, + "deadlineSecondsTime": { + "description": "Optional. custom deadline of the rpc", + "format": "google-datetime", + "type": "string" + }, + "inputParameters": { + "additionalProperties": { + "$ref": "GoogleCloudIntegrationsV1alphaValueType" + }, + "description": "Optional. Input parameters used during integration execution.", + "type": "object" + }, + "integrationVersion": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion", + "description": "Required. integration config to execute the workflow" + }, + "parameters": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoEventParameters", + "description": "Optional. Passed in as parameters to each integration execution." + }, + "testMode": { + "description": "Optional. Can be specified in the event request, otherwise false (default). If true, enables tasks with condition \"test_mode = true\". If false, disables tasks with condition \"test_mode = true\" if global test mode (set by platform) is also false {@link EventBusConfig}.", + "type": "boolean" + }, + "triggerId": { + "description": "Required. The trigger id of the integration trigger config. If both trigger_id and client_id is present, the integration is executed from the start tasks provided by the matching trigger config otherwise it is executed from the default start tasks.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaTestIntegrationsResponse": { + "description": "The response for testing an integration.", + "id": "GoogleCloudIntegrationsV1alphaTestIntegrationsResponse", + "properties": { + "eventParameters": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoEventParameters", + "description": "Details for the integration that were executed." + }, + "executionFailed": { + "description": "Is true if any execution in the integration failed. False otherwise.", + "type": "boolean" + }, + "executionId": { + "description": "The id of the execution corresponding to this run of integration.", + "type": "string" + }, + "parameterEntries": { + "description": "Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution.", + "items": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoParameterEntry" + }, + "type": "array" + }, + "parameters": { + "additionalProperties": { + "$ref": "GoogleCloudIntegrationsV1alphaValueType" + }, + "description": "Optional. Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaTriggerConfig": { + "description": "Configuration detail of a trigger.", + "id": "GoogleCloudIntegrationsV1alphaTriggerConfig", + "properties": { + "alertConfig": { + "description": "Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published.", + "items": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationAlertConfig" + }, + "type": "array" + }, + "cloudSchedulerConfig": { + "$ref": "GoogleCloudIntegrationsV1alphaCloudSchedulerConfig", + "description": "Optional. Cloud Scheduler Trigger related metadata" + }, + "description": { + "description": "Optional. User-provided description intended to give additional business context about the task.", + "type": "string" + }, + "label": { + "description": "Optional. The user created label for a particular trigger.", + "type": "string" + }, + "nextTasksExecutionPolicy": { + "description": "Optional. Dictates how next tasks will be executed.", + "enum": [ + "NEXT_TASKS_EXECUTION_POLICY_UNSPECIFIED", + "RUN_ALL_MATCH", + "RUN_FIRST_MATCH" + ], + "enumDescriptions": [ + "Default.", + "Execute all the tasks that satisfy their associated condition.", + "Execute the first task that satisfies the associated condition." + ], + "type": "string" + }, + "properties": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. \"name\" is a property for API triggers and \"subscription\" is a property for Pub/sub triggers.", + "type": "object" + }, + "startTasks": { + "description": "Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph).", + "items": { + "$ref": "GoogleCloudIntegrationsV1alphaNextTask" + }, + "type": "array" + }, + "triggerId": { + "description": "Optional. The backend trigger ID.", + "type": "string" + }, + "triggerNumber": { + "description": "Required. A number to uniquely identify each trigger config within the integration on UI.", + "type": "string" + }, + "triggerType": { + "description": "Optional. Type of trigger", + "enum": [ + "TRIGGER_TYPE_UNSPECIFIED", + "CRON", + "API", + "SFDC_CHANNEL", + "CLOUD_PUBSUB_EXTERNAL", + "SFDC_CDC_CHANNEL", + "CLOUD_SCHEDULER" + ], + "enumDescriptions": [ + "Unknown.", + "Trigger by scheduled time.", + "Trigger by API call.", + "Trigger by Salesforce Channel.", + "Trigger by Pub/Sub external.", + "SFDC Channel Trigger for CDC.", + "Trigger by Cloud Scheduler job." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest": { + "description": "Request for UnpublishIntegrationVersion.", + "id": "GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest", + "properties": {}, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaUpdateBundleRequest": { + "description": "THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. Request message for Bundle update", + "id": "GoogleCloudIntegrationsV1alphaUpdateBundleRequest", + "properties": { + "config": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationBundleConfig", + "description": "It contains the updated bundle data" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaUpdateBundleResponse": { + "description": "Response message for Bundle update", + "id": "GoogleCloudIntegrationsV1alphaUpdateBundleResponse", + "properties": { + "config": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationBundleConfig", + "description": "Contains updated bundle config" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest": { + "description": "Request for UploadIntegrationVersion.", + "id": "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest", + "properties": { + "content": { + "description": "The textproto of the integration_version.", + "type": "string" + }, + "fileFormat": { + "description": "File format for upload request.", + "enum": [ + "FILE_FORMAT_UNSPECIFIED", + "JSON", + "YAML" + ], + "enumDescriptions": [ + "Unspecified file format", + "JSON File Format", + "YAML File Format" + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse": { + "description": "Response for UploadIntegrationVersion.", + "id": "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse", + "properties": { + "integrationVersion": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion", + "description": "The uploaded integration." + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaUsernameAndPassword": { + "description": "Username and password pair.", + "id": "GoogleCloudIntegrationsV1alphaUsernameAndPassword", + "properties": { + "password": { + "description": "Password to be used", + "type": "string" + }, + "username": { + "description": "Username to be used", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest": { + "description": "Request for ValidateIntegrationVersion.", + "id": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest", + "properties": {}, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse": { + "description": "Response for ValidateIntegrationVersion.", + "id": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudIntegrationsV1alphaValueType": { + "description": "The type of the parameter.", + "id": "GoogleCloudIntegrationsV1alphaValueType", + "properties": { + "booleanArray": { + "$ref": "GoogleCloudIntegrationsV1alphaBooleanParameterArray", + "description": "Boolean Array." + }, + "booleanValue": { + "description": "Boolean.", + "type": "boolean" + }, + "doubleArray": { + "$ref": "GoogleCloudIntegrationsV1alphaDoubleParameterArray", + "description": "Double Number Array." + }, + "doubleValue": { + "description": "Double Number.", + "format": "double", + "type": "number" + }, + "intArray": { + "$ref": "GoogleCloudIntegrationsV1alphaIntParameterArray", + "description": "Integer Array." + }, + "intValue": { + "description": "Integer.", + "format": "int64", + "type": "string" + }, + "jsonValue": { + "description": "Json.", + "type": "string" + }, + "stringArray": { + "$ref": "GoogleCloudIntegrationsV1alphaStringParameterArray", + "description": "String Array." + }, + "stringValue": { + "description": "String.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest": { + "description": "Use this request to post all workflows associated with a given trigger id. Next available id: 10", + "id": "GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest", + "properties": { + "clientId": { + "description": "Optional. If the client id is provided, then the combination of trigger id and client id is matched across all the workflows. If the client id is not provided, then workflows with matching trigger id are executed for each client id in the {@link TriggerConfig}. For Api Trigger, the client id is required and will be validated against the allowed clients.", + "type": "string" + }, + "ignoreErrorIfNoActiveWorkflow": { + "description": "Optional. Flag to determine whether clients would suppress a warning when no ACTIVE workflows are not found. If this flag is set to be true, an error will not be thrown if the requested trigger_id or client_id is not found in any ACTIVE workflow. Otherwise, the error is always thrown. The flag is set to be false by default.", + "type": "boolean" + }, + "parameters": { + "$ref": "EnterpriseCrmEventbusProtoEventParameters", + "description": "Passed in as parameters to each workflow execution. Optional." + }, + "priority": { + "description": "The request priority this request should be processed at. For internal users:", + "enum": [ + "UNSPCIFIED", + "SHEDDABLE", + "SHEDDABLE_PLUS", + "CRITICAL", + "CRITICAL_PLUS" + ], + "enumDescriptions": [ + "Unspecified", + "Frequent partial and occasional full unavailability is expected and not pageable. * Requests to this band will be shed before all other requests. * This is the default for async calls sent from batch jobs.", + "Partial unavailability is expected and is not necessarily pageable. * Requests to this band will be shed before any critical traffic. * This is the default for async calls sent from production jobs.", + "Any outage is a pageable event. * During a production outage requests in this band will only be shed before CRITICAL_PLUS. * This is the default for sync calls sent from production jobs.", + "Any outage is a pageable event. * The guideline is for \u003c 10% of requests to a service to be in this band. * During a production outage requests in this band will be prioritized above all others. * Opt-in to CRITICAL_PLUS when your workflow triggers by human." + ], + "type": "string" + }, + "requestId": { + "description": "Optional. This is used to de-dup incoming request: if the duplicate request was detected, the response from the previous execution is returned. Must have no more than 36 characters and contain only alphanumeric characters and hyphens.", + "type": "string" + }, + "scheduledTime": { + "description": "Optional. Time in milliseconds since epoch when the given event would be scheduled.", + "format": "int64", + "type": "string" + }, + "testMode": { + "description": "Optional. Sets test mode in {@link enterprise/crm/eventbus/event_message.proto}.", + "type": "boolean" + }, + "triggerId": { + "description": "Matched against all {@link TriggerConfig}s across all workflows. i.e. TriggerConfig.trigger_id.equals(trigger_id) Required.", + "type": "string" + }, + "workflowName": { + "description": "Optional. If provided, the workflow_name is used to filter all the matched workflows having same trigger_id+client_id. A combination of trigger_id, client_id and workflow_name identifies a unique workflow.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleProtobufEmpty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", + "id": "GoogleProtobufEmpty", + "properties": {}, + "type": "object" + } + }, + "servicePath": "", + "title": "Application Integration API", + "version": "v1", + "version_module": true +} \ No newline at end of file diff --git a/integrations/v1/integrations-gen.go b/integrations/v1/integrations-gen.go new file mode 100644 index 00000000000..1af95b4a26d --- /dev/null +++ b/integrations/v1/integrations-gen.go @@ -0,0 +1,30904 @@ +// Copyright 2022 Google LLC. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated file. DO NOT EDIT. + +// Package integrations provides access to the Application Integration API. +// +// For product documentation, see: https://cloud.google.com/application-integration +// +// # Creating a client +// +// Usage example: +// +// import "google.golang.org/api/integrations/v1" +// ... +// ctx := context.Background() +// integrationsService, err := integrations.NewService(ctx) +// +// In this example, Google Application Default Credentials are used for authentication. +// +// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// +// # Other authentication options +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// integrationsService, err := integrations.NewService(ctx, option.WithAPIKey("AIza...")) +// +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// +// config := &oauth2.Config{...} +// // ... +// token, err := config.Exchange(ctx, ...) +// integrationsService, err := integrations.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package integrations // import "google.golang.org/api/integrations/v1" + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" + gensupport "google.golang.org/api/internal/gensupport" + option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" + htransport "google.golang.org/api/transport/http" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = gensupport.MarshalJSON +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint + +const apiId = "integrations:v1" +const apiName = "integrations" +const apiVersion = "v1" +const basePath = "https://integrations.googleapis.com/" +const mtlsBasePath = "https://integrations.mtls.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // See, edit, configure, and delete your Google Cloud data and see the + // email address for your Google Account. + CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" +) + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + scopesOption := internaloption.WithDefaultScopes( + "https://www.googleapis.com/auth/cloud-platform", + ) + // NOTE: prepend, so we don't override user-specified scopes. + opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + client, endpoint, err := htransport.NewClient(ctx, opts...) + if err != nil { + return nil, err + } + s, err := New(client) + if err != nil { + return nil, err + } + if endpoint != "" { + s.BasePath = endpoint + } + return s, nil +} + +// New creates a new Service. It uses the provided http.Client for requests. +// +// Deprecated: please use NewService instead. +// To provide a custom HTTP client, use option.WithHTTPClient. +// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.Callback = NewCallbackService(s) + s.ConnectorPlatformRegions = NewConnectorPlatformRegionsService(s) + s.Projects = NewProjectsService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Callback *CallbackService + + ConnectorPlatformRegions *ConnectorPlatformRegionsService + + Projects *ProjectsService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewCallbackService(s *Service) *CallbackService { + rs := &CallbackService{s: s} + return rs +} + +type CallbackService struct { + s *Service +} + +func NewConnectorPlatformRegionsService(s *Service) *ConnectorPlatformRegionsService { + rs := &ConnectorPlatformRegionsService{s: s} + return rs +} + +type ConnectorPlatformRegionsService struct { + s *Service +} + +func NewProjectsService(s *Service) *ProjectsService { + rs := &ProjectsService{s: s} + rs.Locations = NewProjectsLocationsService(s) + return rs +} + +type ProjectsService struct { + s *Service + + Locations *ProjectsLocationsService +} + +func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { + rs := &ProjectsLocationsService{s: s} + rs.AppsScriptProjects = NewProjectsLocationsAppsScriptProjectsService(s) + rs.AuthConfigs = NewProjectsLocationsAuthConfigsService(s) + rs.Certificates = NewProjectsLocationsCertificatesService(s) + rs.Clients = NewProjectsLocationsClientsService(s) + rs.CloudFunctions = NewProjectsLocationsCloudFunctionsService(s) + rs.Connections = NewProjectsLocationsConnectionsService(s) + rs.Integrations = NewProjectsLocationsIntegrationsService(s) + rs.Products = NewProjectsLocationsProductsService(s) + rs.SfdcInstances = NewProjectsLocationsSfdcInstancesService(s) + return rs +} + +type ProjectsLocationsService struct { + s *Service + + AppsScriptProjects *ProjectsLocationsAppsScriptProjectsService + + AuthConfigs *ProjectsLocationsAuthConfigsService + + Certificates *ProjectsLocationsCertificatesService + + Clients *ProjectsLocationsClientsService + + CloudFunctions *ProjectsLocationsCloudFunctionsService + + Connections *ProjectsLocationsConnectionsService + + Integrations *ProjectsLocationsIntegrationsService + + Products *ProjectsLocationsProductsService + + SfdcInstances *ProjectsLocationsSfdcInstancesService +} + +func NewProjectsLocationsAppsScriptProjectsService(s *Service) *ProjectsLocationsAppsScriptProjectsService { + rs := &ProjectsLocationsAppsScriptProjectsService{s: s} + return rs +} + +type ProjectsLocationsAppsScriptProjectsService struct { + s *Service +} + +func NewProjectsLocationsAuthConfigsService(s *Service) *ProjectsLocationsAuthConfigsService { + rs := &ProjectsLocationsAuthConfigsService{s: s} + return rs +} + +type ProjectsLocationsAuthConfigsService struct { + s *Service +} + +func NewProjectsLocationsCertificatesService(s *Service) *ProjectsLocationsCertificatesService { + rs := &ProjectsLocationsCertificatesService{s: s} + return rs +} + +type ProjectsLocationsCertificatesService struct { + s *Service +} + +func NewProjectsLocationsClientsService(s *Service) *ProjectsLocationsClientsService { + rs := &ProjectsLocationsClientsService{s: s} + return rs +} + +type ProjectsLocationsClientsService struct { + s *Service +} + +func NewProjectsLocationsCloudFunctionsService(s *Service) *ProjectsLocationsCloudFunctionsService { + rs := &ProjectsLocationsCloudFunctionsService{s: s} + return rs +} + +type ProjectsLocationsCloudFunctionsService struct { + s *Service +} + +func NewProjectsLocationsConnectionsService(s *Service) *ProjectsLocationsConnectionsService { + rs := &ProjectsLocationsConnectionsService{s: s} + rs.RuntimeActionSchemas = NewProjectsLocationsConnectionsRuntimeActionSchemasService(s) + rs.RuntimeEntitySchemas = NewProjectsLocationsConnectionsRuntimeEntitySchemasService(s) + return rs +} + +type ProjectsLocationsConnectionsService struct { + s *Service + + RuntimeActionSchemas *ProjectsLocationsConnectionsRuntimeActionSchemasService + + RuntimeEntitySchemas *ProjectsLocationsConnectionsRuntimeEntitySchemasService +} + +func NewProjectsLocationsConnectionsRuntimeActionSchemasService(s *Service) *ProjectsLocationsConnectionsRuntimeActionSchemasService { + rs := &ProjectsLocationsConnectionsRuntimeActionSchemasService{s: s} + return rs +} + +type ProjectsLocationsConnectionsRuntimeActionSchemasService struct { + s *Service +} + +func NewProjectsLocationsConnectionsRuntimeEntitySchemasService(s *Service) *ProjectsLocationsConnectionsRuntimeEntitySchemasService { + rs := &ProjectsLocationsConnectionsRuntimeEntitySchemasService{s: s} + return rs +} + +type ProjectsLocationsConnectionsRuntimeEntitySchemasService struct { + s *Service +} + +func NewProjectsLocationsIntegrationsService(s *Service) *ProjectsLocationsIntegrationsService { + rs := &ProjectsLocationsIntegrationsService{s: s} + rs.Executions = NewProjectsLocationsIntegrationsExecutionsService(s) + rs.Executionsnapshots = NewProjectsLocationsIntegrationsExecutionsnapshotsService(s) + rs.Versions = NewProjectsLocationsIntegrationsVersionsService(s) + return rs +} + +type ProjectsLocationsIntegrationsService struct { + s *Service + + Executions *ProjectsLocationsIntegrationsExecutionsService + + Executionsnapshots *ProjectsLocationsIntegrationsExecutionsnapshotsService + + Versions *ProjectsLocationsIntegrationsVersionsService +} + +func NewProjectsLocationsIntegrationsExecutionsService(s *Service) *ProjectsLocationsIntegrationsExecutionsService { + rs := &ProjectsLocationsIntegrationsExecutionsService{s: s} + rs.Suspensions = NewProjectsLocationsIntegrationsExecutionsSuspensionsService(s) + return rs +} + +type ProjectsLocationsIntegrationsExecutionsService struct { + s *Service + + Suspensions *ProjectsLocationsIntegrationsExecutionsSuspensionsService +} + +func NewProjectsLocationsIntegrationsExecutionsSuspensionsService(s *Service) *ProjectsLocationsIntegrationsExecutionsSuspensionsService { + rs := &ProjectsLocationsIntegrationsExecutionsSuspensionsService{s: s} + return rs +} + +type ProjectsLocationsIntegrationsExecutionsSuspensionsService struct { + s *Service +} + +func NewProjectsLocationsIntegrationsExecutionsnapshotsService(s *Service) *ProjectsLocationsIntegrationsExecutionsnapshotsService { + rs := &ProjectsLocationsIntegrationsExecutionsnapshotsService{s: s} + return rs +} + +type ProjectsLocationsIntegrationsExecutionsnapshotsService struct { + s *Service +} + +func NewProjectsLocationsIntegrationsVersionsService(s *Service) *ProjectsLocationsIntegrationsVersionsService { + rs := &ProjectsLocationsIntegrationsVersionsService{s: s} + return rs +} + +type ProjectsLocationsIntegrationsVersionsService struct { + s *Service +} + +func NewProjectsLocationsProductsService(s *Service) *ProjectsLocationsProductsService { + rs := &ProjectsLocationsProductsService{s: s} + rs.AuthConfigs = NewProjectsLocationsProductsAuthConfigsService(s) + rs.Certificates = NewProjectsLocationsProductsCertificatesService(s) + rs.CloudFunctions = NewProjectsLocationsProductsCloudFunctionsService(s) + rs.Integrations = NewProjectsLocationsProductsIntegrationsService(s) + rs.SfdcInstances = NewProjectsLocationsProductsSfdcInstancesService(s) + return rs +} + +type ProjectsLocationsProductsService struct { + s *Service + + AuthConfigs *ProjectsLocationsProductsAuthConfigsService + + Certificates *ProjectsLocationsProductsCertificatesService + + CloudFunctions *ProjectsLocationsProductsCloudFunctionsService + + Integrations *ProjectsLocationsProductsIntegrationsService + + SfdcInstances *ProjectsLocationsProductsSfdcInstancesService +} + +func NewProjectsLocationsProductsAuthConfigsService(s *Service) *ProjectsLocationsProductsAuthConfigsService { + rs := &ProjectsLocationsProductsAuthConfigsService{s: s} + return rs +} + +type ProjectsLocationsProductsAuthConfigsService struct { + s *Service +} + +func NewProjectsLocationsProductsCertificatesService(s *Service) *ProjectsLocationsProductsCertificatesService { + rs := &ProjectsLocationsProductsCertificatesService{s: s} + return rs +} + +type ProjectsLocationsProductsCertificatesService struct { + s *Service +} + +func NewProjectsLocationsProductsCloudFunctionsService(s *Service) *ProjectsLocationsProductsCloudFunctionsService { + rs := &ProjectsLocationsProductsCloudFunctionsService{s: s} + return rs +} + +type ProjectsLocationsProductsCloudFunctionsService struct { + s *Service +} + +func NewProjectsLocationsProductsIntegrationsService(s *Service) *ProjectsLocationsProductsIntegrationsService { + rs := &ProjectsLocationsProductsIntegrationsService{s: s} + rs.Executions = NewProjectsLocationsProductsIntegrationsExecutionsService(s) + rs.Executionsnapshots = NewProjectsLocationsProductsIntegrationsExecutionsnapshotsService(s) + rs.Versions = NewProjectsLocationsProductsIntegrationsVersionsService(s) + return rs +} + +type ProjectsLocationsProductsIntegrationsService struct { + s *Service + + Executions *ProjectsLocationsProductsIntegrationsExecutionsService + + Executionsnapshots *ProjectsLocationsProductsIntegrationsExecutionsnapshotsService + + Versions *ProjectsLocationsProductsIntegrationsVersionsService +} + +func NewProjectsLocationsProductsIntegrationsExecutionsService(s *Service) *ProjectsLocationsProductsIntegrationsExecutionsService { + rs := &ProjectsLocationsProductsIntegrationsExecutionsService{s: s} + rs.Suspensions = NewProjectsLocationsProductsIntegrationsExecutionsSuspensionsService(s) + return rs +} + +type ProjectsLocationsProductsIntegrationsExecutionsService struct { + s *Service + + Suspensions *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsService +} + +func NewProjectsLocationsProductsIntegrationsExecutionsSuspensionsService(s *Service) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsService { + rs := &ProjectsLocationsProductsIntegrationsExecutionsSuspensionsService{s: s} + return rs +} + +type ProjectsLocationsProductsIntegrationsExecutionsSuspensionsService struct { + s *Service +} + +func NewProjectsLocationsProductsIntegrationsExecutionsnapshotsService(s *Service) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsService { + rs := &ProjectsLocationsProductsIntegrationsExecutionsnapshotsService{s: s} + return rs +} + +type ProjectsLocationsProductsIntegrationsExecutionsnapshotsService struct { + s *Service +} + +func NewProjectsLocationsProductsIntegrationsVersionsService(s *Service) *ProjectsLocationsProductsIntegrationsVersionsService { + rs := &ProjectsLocationsProductsIntegrationsVersionsService{s: s} + return rs +} + +type ProjectsLocationsProductsIntegrationsVersionsService struct { + s *Service +} + +func NewProjectsLocationsProductsSfdcInstancesService(s *Service) *ProjectsLocationsProductsSfdcInstancesService { + rs := &ProjectsLocationsProductsSfdcInstancesService{s: s} + rs.SfdcChannels = NewProjectsLocationsProductsSfdcInstancesSfdcChannelsService(s) + return rs +} + +type ProjectsLocationsProductsSfdcInstancesService struct { + s *Service + + SfdcChannels *ProjectsLocationsProductsSfdcInstancesSfdcChannelsService +} + +func NewProjectsLocationsProductsSfdcInstancesSfdcChannelsService(s *Service) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsService { + rs := &ProjectsLocationsProductsSfdcInstancesSfdcChannelsService{s: s} + return rs +} + +type ProjectsLocationsProductsSfdcInstancesSfdcChannelsService struct { + s *Service +} + +func NewProjectsLocationsSfdcInstancesService(s *Service) *ProjectsLocationsSfdcInstancesService { + rs := &ProjectsLocationsSfdcInstancesService{s: s} + rs.SfdcChannels = NewProjectsLocationsSfdcInstancesSfdcChannelsService(s) + return rs +} + +type ProjectsLocationsSfdcInstancesService struct { + s *Service + + SfdcChannels *ProjectsLocationsSfdcInstancesSfdcChannelsService +} + +func NewProjectsLocationsSfdcInstancesSfdcChannelsService(s *Service) *ProjectsLocationsSfdcInstancesSfdcChannelsService { + rs := &ProjectsLocationsSfdcInstancesSfdcChannelsService{s: s} + return rs +} + +type ProjectsLocationsSfdcInstancesSfdcChannelsService struct { + s *Service +} + +// CrmlogErrorCode: Registered ids for errors, as "oneof" enums. Each +// task or logical grouping of tasks may share the same enum. +type CrmlogErrorCode struct { + // Possible values: + // "COMMON_ERROR_CODE_UNSPECIFIED" + // "INVALID_CREDENTIALS" + // "REQUIRED_FIELDS_MISSING" + // "INVALID_FIELDS" + // "BACKEND" + // "GENERAL" + // "INTERNAL" + // "IO_ERROR" + // "NOT_FOUND" + // "EVENT_BUS" + // "ALREADY_EXISTS" + // "CONCORD" + // "CONVERSION" + // "FLUME" + // "PERMISSION" + // "SALES_FORCE" + // "SPANNER" + // "UNIMPLEMENTED" + // "RELTIO" + // "WORKFLOW_NOT_FOUND" + // "QUOTA_THROTTLED" + // "QUOTA_ENQUEUED" + // "INVALID_QUOTA_CONFIGURATION" + // "TASK_NOT_FOUND" + // "EXECUTION_TIMEOUT" + // "INVALID_EVENT_EXECUTION_STATE" + // "INVALID_ATTRIBUTE" + // "MISSING_ATTRIBUTE" + // "CLIENT_UNAUTHORIZED_FOR_WORKFLOW" + // "INVALID_PARAMETER" + // "MISSING_PARAMETER" + // "UNAUTHROIZED_WORKFLOW_EDITOR_ACTION" + // "FAILED_PRECONDITION" + // "INVALID_CLIENT" + // "MISSING_CLIENT" + // "INVALID_WORKFLOW" + // "MISSING_QUOTA_CONFIGURATION" + // "UNHANDLED_TASK_ERROR" + // "SCRIPT_TASK_RUNTIME_ERROR" + // "RPC" + // "INVALID_PROTO" + // "UNHANDLED_EVENTBUS_ERROR" + // "INVALID_TASK_STATE" + // "TYPED_TASK_INVALID_INPUT_OPERATION" + // "TYPED_TASK_INVALID_OUTPUT_OPERATION" + // "VALIDATION_ERROR" + // "RESUME_ERROR" + // "APPS_SCRIPT_EXECUTION_ERROR" + // "INVALID_VECTOR_USER" + // "INFORMATICA" + // "RETRYABLE_TASK_ERROR" + // "INVALID_TENANT" + // "WRONG_TENANT" + // "INFORMATICA_BACKEND_UNAVAILABLE" + // "RPC_PERMISSION_DENIED" + // "SYNC_EVENTBUS_EXECUTION_TIMEOUT" - SYNC_EVENTBUS_EXECUTION_TIMEOUT + // is for eventbus internal use only. + // "ASYNC_EVENTBUS_EXECUTION_TIMEOUT" - + // ASYNC_EVENTBUS_EXECUTION_TIMEOUT is for eventbus internal use only. + // This error will be counted as server availability error. + // "NOT_SUPPORTED_DATA_TYPE" + // "UNSANITIZED_USER_INPUT" + // "TRANSFORM_EXPRESSION_EVALUATION_ERROR" + // "HTTP_EXCEPTION" + // "EXECUTION_CANCELLED" + CommonErrorCode string `json:"commonErrorCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommonErrorCode") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommonErrorCode") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CrmlogErrorCode) MarshalJSON() ([]byte, error) { + type NoMethod CrmlogErrorCode + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmCardsCellValue struct { + BooleanValue bool `json:"booleanValue,omitempty"` + + DoubleValue float64 `json:"doubleValue,omitempty"` + + Empty *GoogleProtobufEmpty `json:"empty,omitempty"` + + LongValue int64 `json:"longValue,omitempty,string"` + + StringValue string `json:"stringValue,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BooleanValue") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BooleanValue") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmCardsCellValue) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmCardsCellValue + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *EnterpriseCrmCardsCellValue) UnmarshalJSON(data []byte) error { + type NoMethod EnterpriseCrmCardsCellValue + var s1 struct { + DoubleValue gensupport.JSONFloat64 `json:"doubleValue"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.DoubleValue = float64(s1.DoubleValue) + return nil +} + +type EnterpriseCrmCardsRow struct { + // Cells: Ordered list of cell values within a row. + Cells []*EnterpriseCrmCardsCellValue `json:"cells,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Cells") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Cells") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmCardsRow) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmCardsRow + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmCardsTabularData: The generic data format returned from +// all connectors. +type EnterpriseCrmCardsTabularData struct { + // Headers: Ordered list of column headers. + Headers []string `json:"headers,omitempty"` + + // Rows: Ordered list of table rows. + Rows []*EnterpriseCrmCardsRow `json:"rows,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Headers") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Headers") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmCardsTabularData) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmCardsTabularData + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmCardsTemplatesAplosSeriesData: Data used to render an +// Aplos Series card. +type EnterpriseCrmCardsTemplatesAplosSeriesData struct { + // Rows: A single Series Row + Rows []*EnterpriseCrmCardsTemplatesAplosSeriesDataRow `json:"rows,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Rows") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Rows") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmCardsTemplatesAplosSeriesData) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmCardsTemplatesAplosSeriesData + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmCardsTemplatesAplosSeriesDataRow: Aplos series row is +// exactly two columns labeled x and y. +type EnterpriseCrmCardsTemplatesAplosSeriesDataRow struct { + X *EnterpriseCrmCardsCellValue `json:"x,omitempty"` + + Y *EnterpriseCrmCardsCellValue `json:"y,omitempty"` + + // ForceSendFields is a list of field names (e.g. "X") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "X") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmCardsTemplatesAplosSeriesDataRow) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmCardsTemplatesAplosSeriesDataRow + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmCardsTemplatesAplosSeriesListData: Data used for Aplos +// charts that accept multiple Series. +type EnterpriseCrmCardsTemplatesAplosSeriesListData struct { + Series []*EnterpriseCrmCardsTemplatesAplosSeriesListDataSeries `json:"series,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Series") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Series") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmCardsTemplatesAplosSeriesListData) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmCardsTemplatesAplosSeriesListData + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmCardsTemplatesAplosSeriesListDataSeries struct { + Data *EnterpriseCrmCardsTemplatesAplosSeriesData `json:"data,omitempty"` + + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Data") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Data") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmCardsTemplatesAplosSeriesListDataSeries) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmCardsTemplatesAplosSeriesListDataSeries + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusAuthconfigAuthConfigTaskParam struct { + // AllowedCredentialTypes: Defines the credential types to be supported + // as Task may restrict specific types to use, e.g. Cloud SQL Task will + // use username/password type only. + // + // Possible values: + // "CREDENTIAL_TYPE_UNSPECIFIED" + // "USERNAME_AND_PASSWORD" - Regular username/password pair. + // "API_KEY" - API key. + // "OAUTH2_AUTHORIZATION_CODE" - OAuth 2.0 Authorization Code Grant + // Type. + // "OAUTH2_IMPLICIT" - OAuth 2.0 Implicit Grant Type. + // "OAUTH2_CLIENT_CREDENTIALS" - OAuth 2.0 Client Credentials Grant + // Type. + // "OAUTH2_RESOURCE_OWNER_CREDENTIALS" - OAuth 2.0 Resource Owner + // Credentials Grant Type. + // "JWT" - JWT Token. + // "AUTH_TOKEN" - Auth Token, e.g. bearer token. + // "SERVICE_ACCOUNT" - Service Account which can be used to generate + // token for authentication. + // "CLIENT_CERTIFICATE_ONLY" - Client Certificate only. + // "OIDC_TOKEN" - Google OIDC ID Token + AllowedCredentialTypes []string `json:"allowedCredentialTypes,omitempty"` + + AllowedServiceAccountInContext bool `json:"allowedServiceAccountInContext,omitempty"` + + // AuthConfigId: UUID of the AuthConfig. + AuthConfigId string `json:"authConfigId,omitempty"` + + // Scope: A space-delimited list of requested scope permissions. + Scope string `json:"scope,omitempty"` + + UseServiceAccountInContext bool `json:"useServiceAccountInContext,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AllowedCredentialTypes") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AllowedCredentialTypes") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusAuthconfigAuthConfigTaskParam) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusAuthconfigAuthConfigTaskParam + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoAddress: Email address along with optional +// name and tokens. These tokens will be substituted for the variables +// in the form of [{var_name}], where var_name could be any string of no +// more than 32 bytes. +type EnterpriseCrmEventbusProtoAddress struct { + // Email: Required. + Email string `json:"email,omitempty"` + + Name string `json:"name,omitempty"` + + Tokens []*EnterpriseCrmEventbusProtoToken `json:"tokens,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Email") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Email") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoAddress) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoAddress + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoAttributes: Attributes are additional +// options that can be associated with each event property. For more +// information, see +// go/integration-platform/event_bus/attributes_registry.md. Next +// available: 8 +type EnterpriseCrmEventbusProtoAttributes struct { + // DataType: Things like URL, Email, Currency, Timestamp (rather than + // string, int64...) + // + // Possible values: + // "DATA_TYPE_UNSPECIFIED" + // "EMAIL" + // "URL" + // "CURRENCY" + // "TIMESTAMP" + // "DOMAIN_NAME" - Domain is a web url string with one top-level + // private domain and a suffix (for example: google.com, walmart.com) + DataType string `json:"dataType,omitempty"` + + // DefaultValue: Used to define defaults. + DefaultValue *EnterpriseCrmEventbusProtoValueType `json:"defaultValue,omitempty"` + + // IsRequired: Required for event execution. The validation will be done + // by the event bus when the event is triggered. + IsRequired bool `json:"isRequired,omitempty"` + + // IsSearchable: Used to indicate if a ParameterEntry should be + // converted to ParamIndexes for ST-Spanner full-text search. + // DEPRECATED: use searchable. + IsSearchable bool `json:"isSearchable,omitempty"` + + // LogSettings: See go/integration-platform/analytics/logging_task.md + // for details. + LogSettings *EnterpriseCrmEventbusProtoLogSettings `json:"logSettings,omitempty"` + + // Possible values: + // "UNSPECIFIED" + // "YES" - If yes, the parameter key and value will be full-text + // indexed. In a proto, this value will propagate to all children whose + // searchable is unspecified. + // "NO" - If no, the parameter key and value will not be full-text + // indexed. In a proto, this value will propagate to all children whose + // searchable is unspecified. + Searchable string `json:"searchable,omitempty"` + + // TaskVisibility: List of tasks that can view this property, if empty + // then all. + TaskVisibility []string `json:"taskVisibility,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DataType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DataType") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoAttributes) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoAttributes + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList: List of error +// enums for alerts. +type EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList struct { + EnumStrings []string `json:"enumStrings,omitempty"` + + // Possible values: + // "DEFAULT_INCLUSIVE" + // "EXCLUSIVE" + FilterType string `json:"filterType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EnumStrings") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EnumStrings") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue: The +// threshold value of the metric, above or below which the alert should +// be triggered. See EventAlertConfig or TaskAlertConfig for the +// different alert metric types in each case. For the *RATE metrics, one +// or both of these fields may be set. Zero is the default value and can +// be left at that. For *PERCENTILE_DURATION metrics, one or both of +// these fields may be set, and also, the duration threshold value +// should be specified in the threshold_duration_ms member below. For +// *AVERAGE_DURATION metrics, these fields should not be set at all. A +// different member, threshold_duration_ms, must be set in the +// EventAlertConfig or the TaskAlertConfig. See +// go/eventbus-alert-config-examples +type EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue struct { + Absolute int64 `json:"absolute,omitempty,string"` + + Percentage int64 `json:"percentage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Absolute") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Absolute") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoBaseFunction struct { + // Possible values: + // "UNSPECIFIED" + // "NOW_IN_MILLIS" + // "INT_LIST" + // "ENVIRONMENT" + // "GET_EXECUTION_ID" + // "GET_INTEGRATION_NAME" + // "GET_REGION" + // "GET_UUID" + // "GET_PROJECT_ID" + FunctionName string `json:"functionName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FunctionName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FunctionName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoBaseFunction) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoBaseFunction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoBaseValue struct { + // BaseFunction: Start with a function that does not build on existing + // values. Eg. CurrentTime, Min, Max, Exists, etc. + BaseFunction *EnterpriseCrmEventbusProtoFunction `json:"baseFunction,omitempty"` + + // LiteralValue: Start with a literal value. + LiteralValue *EnterpriseCrmEventbusProtoParameterValueType `json:"literalValue,omitempty"` + + // ReferenceValue: Start with a reference value to dereference. + ReferenceValue string `json:"referenceValue,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BaseFunction") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BaseFunction") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoBaseValue) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoBaseValue + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoBooleanArrayFunction struct { + // Possible values: + // "UNSPECIFIED" + // "GET" + // "APPEND" + // "SIZE" + // "TO_SET" + // "APPEND_ALL" + // "TO_JSON" + // "SET" + // "REMOVE" + // "REMOVE_AT" + // "CONTAINS" + // "FOR_EACH" + // "FILTER" + FunctionName string `json:"functionName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FunctionName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FunctionName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoBooleanArrayFunction) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoBooleanArrayFunction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoBooleanFunction struct { + // Possible values: + // "UNSPECIFIED" + // "TO_JSON" + // "NOT" + // "AND" + // "NAND" + // "OR" + // "XOR" + // "NOR" + // "XNOR" + // "TO_STRING" + // "EQUALS" + FunctionName string `json:"functionName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FunctionName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FunctionName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoBooleanFunction) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoBooleanFunction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoBooleanParameterArray struct { + BooleanValues []bool `json:"booleanValues,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BooleanValues") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BooleanValues") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoBooleanParameterArray) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoBooleanParameterArray + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoBuganizerNotification struct { + // AssigneeEmailAddress: Whom to assign the new bug. Optional. + AssigneeEmailAddress string `json:"assigneeEmailAddress,omitempty"` + + // ComponentId: ID of the buganizer component within which to create a + // new issue. Required. + ComponentId int64 `json:"componentId,omitempty,string"` + + // TemplateId: ID of the buganizer template to use. Optional. + TemplateId int64 `json:"templateId,omitempty,string"` + + // Title: Title of the issue to be created. Required. + Title string `json:"title,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AssigneeEmailAddress") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AssigneeEmailAddress") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoBuganizerNotification) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoBuganizerNotification + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoCloudSchedulerConfig: Cloud Scheduler +// Trigger configuration +type EnterpriseCrmEventbusProtoCloudSchedulerConfig struct { + // CronTab: Required. The cron tab of cloud scheduler trigger. + CronTab string `json:"cronTab,omitempty"` + + // ErrorMessage: Optional. When the job was deleted from Pantheon UI, + // error_message will be populated when Get/List integrations + ErrorMessage string `json:"errorMessage,omitempty"` + + // Location: Required. The location where associated cloud scheduler job + // will be created + Location string `json:"location,omitempty"` + + // ServiceAccountEmail: Required. Service account used by Cloud + // Scheduler to trigger the integration at scheduled time + ServiceAccountEmail string `json:"serviceAccountEmail,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CronTab") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CronTab") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoCloudSchedulerConfig) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoCloudSchedulerConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoCombinedCondition: This message recursively +// combines constituent conditions using logical AND. +type EnterpriseCrmEventbusProtoCombinedCondition struct { + // Conditions: A set of individual constituent conditions. + Conditions []*EnterpriseCrmEventbusProtoCondition `json:"conditions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Conditions") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Conditions") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoCombinedCondition) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoCombinedCondition + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoCondition: Condition that uses `operator` +// to evaluate the key against the value. +type EnterpriseCrmEventbusProtoCondition struct { + // EventPropertyKey: Key that's evaluated against the `value`. Please + // note the data type of the runtime value associated with the key + // should match the data type of `value`, else an + // IllegalArgumentException is thrown. + EventPropertyKey string `json:"eventPropertyKey,omitempty"` + + // Operator: Operator used to evaluate the condition. Please note that + // an operator with an inappropriate key/value operand will result in + // IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. + // + // Possible values: + // "UNSET" + // "EQUALS" + // "CONTAINS" + // "LESS_THAN" + // "GREATER_THAN" + // "EXISTS" + // "DOES_NOT_EXIST" + // "IS_EMPTY" + // "IS_NOT_EMPTY" + Operator string `json:"operator,omitempty"` + + // Value: Value that's checked for the key. + Value *EnterpriseCrmEventbusProtoValueType `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EventPropertyKey") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EventPropertyKey") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoCondition) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoCondition + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoConditionResult: Contains the combined +// condition calculation results. +type EnterpriseCrmEventbusProtoConditionResult struct { + // CurrentTaskNumber: the current task number. + CurrentTaskNumber string `json:"currentTaskNumber,omitempty"` + + // NextTaskNumber: the next task number. + NextTaskNumber string `json:"nextTaskNumber,omitempty"` + + // Result: the result comes out after evaluate the combined condition. + // True if there's no combined condition specified. + Result bool `json:"result,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CurrentTaskNumber") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CurrentTaskNumber") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoConditionResult) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoConditionResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoConnectorsConnection struct { + // ConnectionName: Connection name Format: + // projects/{project}/locations/{location}/connections/{connection} + ConnectionName string `json:"connectionName,omitempty"` + + // ConnectorVersion: Connector version Format: + // projects/{project}/locations/{location}/providers/{provider}/connector + // s/{connector}/versions/{version} + ConnectorVersion string `json:"connectorVersion,omitempty"` + + // ServiceName: Service name Format: + // projects/{project}/locations/{location}/namespaces/{namespace}/service + // s/{service} + ServiceName string `json:"serviceName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConnectionName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConnectionName") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoConnectorsConnection) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoConnectorsConnection + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoConnectorsGenericConnectorTaskConfig struct { + // Connection: User-selected connection. + Connection *EnterpriseCrmEventbusProtoConnectorsConnection `json:"connection,omitempty"` + + // Operation: Operation to perform using the configured connection. + // + // Possible values: + // "OPERATION_UNSPECIFIED" + // "EXECUTE_ACTION" + // "LIST_ENTITIES" + // "GET_ENTITY" + // "CREATE_ENTITY" + // "UPDATE_ENTITY" + // "DELETE_ENTITY" + Operation string `json:"operation,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Connection") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Connection") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoConnectorsGenericConnectorTaskConfig) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoConnectorsGenericConnectorTaskConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoCoordinate: Represents two-dimensional +// positions. +type EnterpriseCrmEventbusProtoCoordinate struct { + X int64 `json:"x,omitempty"` + + Y int64 `json:"y,omitempty"` + + // ForceSendFields is a list of field names (e.g. "X") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "X") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoCoordinate) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoCoordinate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoCustomSuspensionRequest struct { + // PostToQueueWithTriggerIdRequest: Request to fire an event containing + // the SuspensionInfo message. + PostToQueueWithTriggerIdRequest *GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest `json:"postToQueueWithTriggerIdRequest,omitempty"` + + // SuspensionInfoEventParameterKey: In the fired event, set the + // SuspensionInfo message as the value for this key. + SuspensionInfoEventParameterKey string `json:"suspensionInfoEventParameterKey,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "PostToQueueWithTriggerIdRequest") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "PostToQueueWithTriggerIdRequest") to include in API requests with + // the JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoCustomSuspensionRequest) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoCustomSuspensionRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoDoubleArray struct { + Values []float64 `json:"values,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Values") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Values") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoDoubleArray) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoDoubleArray + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoDoubleArrayFunction struct { + // Possible values: + // "UNSPECIFIED" + // "GET" + // "APPEND" + // "SIZE" + // "SUM" + // "AVG" + // "MAX" + // "MIN" + // "TO_SET" + // "APPEND_ALL" + // "TO_JSON" + // "SET" + // "REMOVE" + // "REMOVE_AT" + // "CONTAINS" + // "FOR_EACH" + // "FILTER" + FunctionName string `json:"functionName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FunctionName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FunctionName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoDoubleArrayFunction) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoDoubleArrayFunction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoDoubleFunction struct { + // Possible values: + // "UNSPECIFIED" + // "TO_JSON" + // "TO_STRING" + // "ADD" + // "SUBTRACT" + // "MULTIPLY" + // "DIVIDE" + // "EXPONENT" + // "ROUND" + // "FLOOR" + // "CEIL" + // "GREATER_THAN" + // "LESS_THAN" + // "EQUALS" + // "GREATER_THAN_EQUALS" + // "LESS_THAN_EQUALS" + // "MOD" + FunctionName string `json:"functionName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FunctionName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FunctionName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoDoubleFunction) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoDoubleFunction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoDoubleParameterArray struct { + DoubleValues []float64 `json:"doubleValues,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DoubleValues") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DoubleValues") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoDoubleParameterArray) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoDoubleParameterArray + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoErrorDetail: An error, warning, or +// information message associated with a workflow. +type EnterpriseCrmEventbusProtoErrorDetail struct { + // ErrorCode: The associated error-code, which can be a common or + // internal code. + ErrorCode *CrmlogErrorCode `json:"errorCode,omitempty"` + + // ErrorMessage: The full text of the error message, including any + // parameters that were thrown along with the exception. + ErrorMessage string `json:"errorMessage,omitempty"` + + // Severity: The severity of the error: ERROR|WARN|INFO. + // + // Possible values: + // "SEVERITY_UNSPECIFIED" + // "ERROR" + // "WARN" + // "INFO" + Severity string `json:"severity,omitempty"` + + // TaskNumber: The task try-number, in which, the error occurred. If + // zero, the error happened at the event level. + TaskNumber int64 `json:"taskNumber,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ErrorCode") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ErrorCode") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoErrorDetail) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoErrorDetail + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoEventBusProperties: LINT.IfChange This +// message is used for storing key value pair properties for each Event +// / Task in the EventBus. Please see +// go/cloud-crm-eng/platform/event_bus.md for more details. +type EnterpriseCrmEventbusProtoEventBusProperties struct { + // Properties: An unordered list of property entries. + Properties []*EnterpriseCrmEventbusProtoPropertyEntry `json:"properties,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Properties") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Properties") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoEventBusProperties) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoEventBusProperties + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoEventExecutionDetails: Contains the details +// of the execution info of this event: this includes the tasks +// execution details plus the event execution statistics. Next available +// id: 10 +type EnterpriseCrmEventbusProtoEventExecutionDetails struct { + EventAttemptStats []*EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats `json:"eventAttemptStats,omitempty"` + + EventExecutionSnapshot []*EnterpriseCrmEventbusProtoEventExecutionSnapshot `json:"eventExecutionSnapshot,omitempty"` + + // Possible values: + // "UNSPECIFIED" + // "ON_HOLD" - Event is received and waiting for the execution. This + // happens when firing the event via "postToQueue" or "schedule". + // "IN_PROCESS" - Event is under processing. + // "SUCCEEDED" - Event execution successfully finished. There's no + // more change after this state. + // "FAILED" - Event execution failed. There's no more change after + // this state. + // "CANCELED" - Event execution canceled by user. There's no more + // change after this state. + // "RETRY_ON_HOLD" - Event execution failed and waiting for retry. + // "SUSPENDED" - Event execution suspended and waiting for manual + // intervention. + EventExecutionState string `json:"eventExecutionState,omitempty"` + + // EventRetriesFromBeginningCount: Indicates the number of times the + // execution has restarted from the beginning. + EventRetriesFromBeginningCount int64 `json:"eventRetriesFromBeginningCount,omitempty"` + + // LogFilePath: The log file path (aka. cns address) for this event. + LogFilePath string `json:"logFilePath,omitempty"` + + // NetworkAddress: The network address (aka. bns address) that indicates + // where the event executor is running. + NetworkAddress string `json:"networkAddress,omitempty"` + + // NextExecutionTime: Next scheduled execution time in case the + // execution status was RETRY_ON_HOLD. + NextExecutionTime int64 `json:"nextExecutionTime,omitempty,string"` + + // RyeLockUnheldCount: Used internally and shouldn't be exposed to + // users. A counter for the cron job to record how many times this event + // is in in_process state but don't have a lock consecutively/ + RyeLockUnheldCount int64 `json:"ryeLockUnheldCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EventAttemptStats") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EventAttemptStats") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoEventExecutionDetails) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoEventExecutionDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats struct { + // EndTime: The end time of the event execution for current attempt. + EndTime int64 `json:"endTime,omitempty,string"` + + // StartTime: The start time of the event execution for current attempt. + // This could be in the future if it's been scheduled. + StartTime int64 `json:"startTime,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "EndTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EndTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoEventExecutionSnapshot: Contains the +// snapshot of the event execution for a given checkpoint. Next +// available id: 13 +type EnterpriseCrmEventbusProtoEventExecutionSnapshot struct { + // CheckpointTaskNumber: Indicates "right after which checkpoint task's + // execution" this snapshot is taken. + CheckpointTaskNumber string `json:"checkpointTaskNumber,omitempty"` + + // ConditionResults: All of the computed conditions that been + // calculated. + ConditionResults []*EnterpriseCrmEventbusProtoConditionResult `json:"conditionResults,omitempty"` + + // DiffParams: The parameters in Event object that differs from last + // snapshot. + DiffParams *EnterpriseCrmEventbusProtoEventParameters `json:"diffParams,omitempty"` + + // EventExecutionInfoId: Points to the event execution info this + // snapshot belongs to. + EventExecutionInfoId string `json:"eventExecutionInfoId,omitempty"` + + // EventExecutionSnapshotId: Auto-generated. Used as primary key for + // EventExecutionSnapshots table. + EventExecutionSnapshotId string `json:"eventExecutionSnapshotId,omitempty"` + + EventExecutionSnapshotMetadata *EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata `json:"eventExecutionSnapshotMetadata,omitempty"` + + // EventParams: The parameters in Event object. + EventParams *EnterpriseCrmEventbusProtoEventParameters `json:"eventParams,omitempty"` + + // ExceedMaxSize: indicate whether snapshot exceeded maximum size before + // clean up + ExceedMaxSize bool `json:"exceedMaxSize,omitempty"` + + // SnapshotTime: Indicates when this snapshot is taken. + SnapshotTime int64 `json:"snapshotTime,omitempty,string"` + + // TaskExecutionDetails: All of the task execution details at the given + // point of time. + TaskExecutionDetails []*EnterpriseCrmEventbusProtoTaskExecutionDetails `json:"taskExecutionDetails,omitempty"` + + // TaskName: The task name associated with this snapshot. Could be + // empty. + TaskName string `json:"taskName,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CheckpointTaskNumber") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CheckpointTaskNumber") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoEventExecutionSnapshot) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoEventExecutionSnapshot + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata struct { + // EventAttemptNum: the event attempt number this snapshot belongs to. + EventAttemptNum int64 `json:"eventAttemptNum,omitempty"` + + // TaskAttemptNum: the task attempt number this snapshot belongs to. + // Could be empty. + TaskAttemptNum int64 `json:"taskAttemptNum,omitempty"` + + // TaskName: the task name associated with this snapshot. Could be + // empty. + TaskName string `json:"taskName,omitempty"` + + // TaskNumber: The task number associated with this snapshot. Could be + // empty. + TaskNumber string `json:"taskNumber,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EventAttemptNum") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EventAttemptNum") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoEventParameters: LINT.IfChange This message +// is used for processing and persisting (when applicable) key value +// pair parameters for each event in the event bus. Please see +// go/integration-platform/event_bus.md for more details. Next id: 4 +type EnterpriseCrmEventbusProtoEventParameters struct { + // Parameters: Parameters are a part of Event and can be used to + // communicate between different tasks that are part of the same + // integration execution. + Parameters []*EnterpriseCrmEventbusProtoParameterEntry `json:"parameters,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Parameters") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Parameters") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoEventParameters) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoEventParameters + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoExecutionTraceInfo: Message that helps +// aggregate all sub-executions triggered by one execution and keeps +// track of child-parent relationships. +type EnterpriseCrmEventbusProtoExecutionTraceInfo struct { + // ParentEventExecutionInfoId: Parent event execution info id that + // triggers the current execution through SubWorkflowExecutorTask. + ParentEventExecutionInfoId string `json:"parentEventExecutionInfoId,omitempty"` + + // TraceId: Used to aggregate ExecutionTraceInfo. + TraceId string `json:"traceId,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ParentEventExecutionInfoId") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "ParentEventExecutionInfoId") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoExecutionTraceInfo) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoExecutionTraceInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoExternalTraffic: Represents external +// traffic type and id. +type EnterpriseCrmEventbusProtoExternalTraffic struct { + // GcpProjectId: User’s GCP project id the traffic is referring to. + GcpProjectId string `json:"gcpProjectId,omitempty"` + + // GcpProjectNumber: User’s GCP project number the traffic is + // referring to. + GcpProjectNumber string `json:"gcpProjectNumber,omitempty"` + + // Location: Location for the user's request. + Location string `json:"location,omitempty"` + + // Source: + // LINT.ThenChange(//depot/google3/enterprise/crm/eventbus/proto/product. + // proto:product, + // //depot/google3/java/com/google/enterprise/crm/integrationplatform/api + // /utils/ConverterUtils.java:source_to_product) + // + // Possible values: + // "SOURCE_UNSPECIFIED" + // "APIGEE" + // "SECURITY" + Source string `json:"source,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GcpProjectId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GcpProjectId") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoExternalTraffic) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoExternalTraffic + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoFailurePolicy: Policy that defines the task +// retry logic and failure type. If no FailurePolicy is defined for a +// task, all its dependent tasks will not be executed (i.e, a +// `retry_strategy` of NONE will be applied). +type EnterpriseCrmEventbusProtoFailurePolicy struct { + // IntervalInSeconds: Required if retry_strategy is FIXED_INTERVAL or + // LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the + // initial interval for backoff. + IntervalInSeconds int64 `json:"intervalInSeconds,omitempty,string"` + + // MaxNumRetries: Required if retry_strategy is FIXED_INTERVAL or + // LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the + // number of times the task will be retried if failed. + MaxNumRetries int64 `json:"maxNumRetries,omitempty"` + + // RetryStrategy: Defines what happens to the task upon failure. + // + // Possible values: + // "UNSPECIFIED" + // "IGNORE" - Ignores the failure of this task. The rest of the + // workflow will be executed Assuming this task succeeded. + // "NONE" - Causes a permanent failure of the task. However, if the + // last task(s) of event was successfully completed despite the failure + // of this task, it has no impact on the workflow. + // "FATAL" - Causes a permanent failure of the event. It is different + // from NONE because this will mark the event as FAILED by shutting down + // the event execution. + // "FIXED_INTERVAL" - The task will be retried from the failed task + // onwards after a fixed delay. A max-retry count is required to be + // specified with this strategy. A jitter is added to each exponential + // interval so that concurrently failing tasks of the same type do not + // end up retrying after the exact same exponential interval. + // Max_num_retries and interval_in_seconds must be specified. + // "LINEAR_BACKOFF" - The task will be retried from the failed task + // onwards after a fixed delay that linearly increases with each retry + // attempt. A jitter is added to each exponential interval so that + // concurrently failing tasks of the same type do not end up retrying + // after the exact same exponential interval. A max-retry count is + // required to be specified with this strategy. Max_num_retries and + // interval_in_seconds must be specified. + // "EXPONENTIAL_BACKOFF" - The task will be retried after an + // exponentially increasing period of time with each failure. A jitter + // is added to each exponential interval so that concurrently failing + // tasks of the same type do not end up retrying after the exact same + // exponential interval. A max-retry count is required to be specified + // with this strategy. `max_num_retries` and `interval_in_seconds` must + // be specified. + // "RESTART_WORKFLOW_WITH_BACKOFF" - The entire workflow will be + // restarted with the initial parameters that were set when the event + // was fired. A max-retry count is required to be specified with this + // strategy. `max_num_retries` and `interval_in_seconds` must be + // specified. + RetryStrategy string `json:"retryStrategy,omitempty"` + + // ForceSendFields is a list of field names (e.g. "IntervalInSeconds") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "IntervalInSeconds") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoFailurePolicy) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoFailurePolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoField: Information about the value and type +// of the field. Next Id: 8 +type EnterpriseCrmEventbusProtoField struct { + // Cardinality: By default, if the cardinality is unspecified the field + // is considered required while mapping. + // + // Possible values: + // "UNSPECIFIED" - For fields with unspecified cardinality. + // "OPTIONAL" - If field cardinality is set to optional, ignore errors + // if input field value is null or the reference_key is not found. + Cardinality string `json:"cardinality,omitempty"` + + // DefaultValue: This holds the default values for the fields. This + // value is supplied by user so may or may not contain PII or SPII data. + // This field will be scrubbed using DatapolScrubber#maybeScrub() with + // go/proto-sanitizer#level3 + DefaultValue *EnterpriseCrmEventbusProtoParameterValueType `json:"defaultValue,omitempty"` + + // FieldType: Specifies the data type of the field. + // + // Possible values: + // "DATA_TYPE_UNSPECIFIED" + // "STRING_VALUE" + // "INT_VALUE" + // "DOUBLE_VALUE" + // "BOOLEAN_VALUE" + // "PROTO_VALUE" + // "SERIALIZED_OBJECT_VALUE" + // "STRING_ARRAY" + // "INT_ARRAY" + // "DOUBLE_ARRAY" + // "PROTO_ARRAY" + // "PROTO_ENUM" + // "BOOLEAN_ARRAY" + // "PROTO_ENUM_ARRAY" + // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for + // top-level params. They're only meant to support protobufs with BYTES + // (sub)fields. + // "BYTES_ARRAY" + // "NON_SERIALIZABLE_OBJECT" + // "JSON_VALUE" + FieldType string `json:"fieldType,omitempty"` + + // ProtoDefPath: Optional. The fully qualified proto name (e.g. + // enterprise.crm.storage.Account). Required for output field of type + // PROTO_VALUE or PROTO_ARRAY. For e.g., if input field_type is BYTES + // and output field_type is PROTO_VALUE, then fully qualified proto type + // url should be provided to parse the input bytes. If field_type is + // *_ARRAY, then all the converted protos are of the same type. + ProtoDefPath string `json:"protoDefPath,omitempty"` + + // ReferenceKey: This holds the reference key of the workflow or task + // parameter. 1. Any workflow parameter, for e.g. $workflowParam1$. 2. + // Any task input or output parameter, for e.g. $task1_param1$. 3. Any + // workflow or task parameters with subfield references, for e.g., + // $task1_param1.employee.id$ + ReferenceKey string `json:"referenceKey,omitempty"` + + // TransformExpression: This is the transform expression to fetch the + // input field value. for e.g. $param1$.CONCAT('test'). See + // go/transform-functions-design for more details. Keep points - 1. Only + // input field can have a transform expression. 2. If a transform + // expression is provided, reference_key will be ignored. 3. If no value + // is returned after evaluation of transform expression, default_value + // can be mapped if provided. 4. The field_type should be the type of + // the final object returned after the transform expression is + // evaluated. Scrubs the transform expression before logging as value + // provided by user so may or may not contain PII or SPII data. + TransformExpression *EnterpriseCrmEventbusProtoTransformExpression `json:"transformExpression,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Cardinality") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Cardinality") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoField) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoField + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoFieldMappingConfig: Field Mapping Config to +// map multiple output fields values from input fields values. Next id: +// 2 +type EnterpriseCrmEventbusProtoFieldMappingConfig struct { + MappedFields []*EnterpriseCrmEventbusProtoMappedField `json:"mappedFields,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MappedFields") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MappedFields") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoFieldMappingConfig) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoFieldMappingConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoFunction struct { + // FunctionType: The name of the function to perform. + FunctionType *EnterpriseCrmEventbusProtoFunctionType `json:"functionType,omitempty"` + + // Parameters: List of parameters required for the transformation. + Parameters []*EnterpriseCrmEventbusProtoTransformExpression `json:"parameters,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FunctionType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FunctionType") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoFunction) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoFunction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoFunctionType struct { + // BaseFunction: LINT.IfChange + BaseFunction *EnterpriseCrmEventbusProtoBaseFunction `json:"baseFunction,omitempty"` + + BooleanArrayFunction *EnterpriseCrmEventbusProtoBooleanArrayFunction `json:"booleanArrayFunction,omitempty"` + + BooleanFunction *EnterpriseCrmEventbusProtoBooleanFunction `json:"booleanFunction,omitempty"` + + DoubleArrayFunction *EnterpriseCrmEventbusProtoDoubleArrayFunction `json:"doubleArrayFunction,omitempty"` + + DoubleFunction *EnterpriseCrmEventbusProtoDoubleFunction `json:"doubleFunction,omitempty"` + + IntArrayFunction *EnterpriseCrmEventbusProtoIntArrayFunction `json:"intArrayFunction,omitempty"` + + IntFunction *EnterpriseCrmEventbusProtoIntFunction `json:"intFunction,omitempty"` + + // JsonFunction: + // LINT.ThenChange(//depot/google3/alkali/apps/integrationplatform/client + // /workflow_editor/utils/transform_function.ts) + JsonFunction *EnterpriseCrmEventbusProtoJsonFunction `json:"jsonFunction,omitempty"` + + ProtoArrayFunction *EnterpriseCrmEventbusProtoProtoArrayFunction `json:"protoArrayFunction,omitempty"` + + ProtoFunction *EnterpriseCrmEventbusProtoProtoFunction `json:"protoFunction,omitempty"` + + StringArrayFunction *EnterpriseCrmEventbusProtoStringArrayFunction `json:"stringArrayFunction,omitempty"` + + StringFunction *EnterpriseCrmEventbusProtoStringFunction `json:"stringFunction,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BaseFunction") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BaseFunction") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoFunctionType) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoFunctionType + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoIntArray struct { + Values googleapi.Int64s `json:"values,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Values") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Values") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoIntArray) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoIntArray + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoIntArrayFunction struct { + // Possible values: + // "UNSPECIFIED" + // "GET" + // "APPEND" + // "SIZE" + // "SUM" + // "AVG" + // "MAX" + // "MIN" + // "TO_SET" + // "APPEND_ALL" + // "TO_JSON" + // "SET" + // "REMOVE" + // "REMOVE_AT" + // "CONTAINS" + // "FOR_EACH" + // "FILTER" + FunctionName string `json:"functionName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FunctionName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FunctionName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoIntArrayFunction) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoIntArrayFunction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoIntFunction struct { + // Possible values: + // "UNSPECIFIED" + // "ADD" + // "SUBTRACT" + // "MULTIPLY" + // "DIVIDE" + // "EXPONENT" + // "GREATER_THAN_EQUAL_TO" + // "GREATER_THAN" + // "LESS_THAN_EQUAL_TO" + // "LESS_THAN" + // "TO_DOUBLE" + // "TO_STRING" + // "EQUALS" + // "TO_JSON" + // "MOD" + // "EPOCH_TO_HUMAN_READABLE_TIME" + FunctionName string `json:"functionName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FunctionName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FunctionName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoIntFunction) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoIntFunction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoIntParameterArray struct { + IntValues googleapi.Int64s `json:"intValues,omitempty"` + + // ForceSendFields is a list of field names (e.g. "IntValues") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "IntValues") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoIntParameterArray) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoIntParameterArray + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoJsonFunction struct { + // Possible values: + // "UNSPECIFIED" + // "GET_PROPERTY" + // "GET_ELEMENT" + // "APPEND_ELEMENT" + // "SIZE" + // "SET_PROPERTY" + // "FLATTEN" + // "FLATTEN_ONCE" + // "MERGE" + // "TO_STRING" + // "TO_INT" + // "TO_DOUBLE" + // "TO_BOOLEAN" + // "TO_PROTO" + // "TO_STRING_ARRAY" + // "TO_INT_ARRAY" + // "TO_DOUBLE_ARRAY" + // "TO_PROTO_ARRAY" + // "TO_BOOLEAN_ARRAY" + // "REMOVE_PROPERTY" + // "RESOLVE_TEMPLATE" + // "EQUALS" + // "FOR_EACH" + // "FILTER_ELEMENTS" - next id: 24 + FunctionName string `json:"functionName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FunctionName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FunctionName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoJsonFunction) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoJsonFunction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoLogSettings: The LogSettings define the +// logging attributes for an event property. These attributes are used +// to map the property to the parameter in the log proto. Also used to +// define scrubbing/truncation behavior and PII information. See +// go/integration-platform/analytics/logging_task.md for details. +type EnterpriseCrmEventbusProtoLogSettings struct { + // LogFieldName: The name of corresponding logging field of the event + // property. If omitted, assumes the same name as the event property + // key. + LogFieldName string `json:"logFieldName,omitempty"` + + // SanitizeOptions: Contains the scrubbing options, such as whether to + // scrub, obfuscate, etc. + SanitizeOptions *EnterpriseCrmLoggingGwsSanitizeOptions `json:"sanitizeOptions,omitempty"` + + // Possible values: + // "SEED_PERIOD_UNSPECIFIED" + // "DAY" - Sanitized values remain constant for the day of the event. + // "WEEK" - Sanitized values remain constant for the week of the + // event; may cross month boundaries. + // "MONTH" - Sanitized values remain constant for the month of the + // event. + SeedPeriod string `json:"seedPeriod,omitempty"` + + // Possible values: + // "SEED_SCOPE_UNSPECIFIED" + // "EVENT_NAME" - Hash computations include the event name. + // "TIME_PERIOD" - Hash computations include a time period. + // "PARAM_NAME" - Hash computations include the param name. + SeedScope string `json:"seedScope,omitempty"` + + // ShorteningLimits: Contains the field limits for shortening, such as + // max string length and max array length. + ShorteningLimits *EnterpriseCrmLoggingGwsFieldLimits `json:"shorteningLimits,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LogFieldName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LogFieldName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoLogSettings) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoLogSettings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoLoopMetadata struct { + // CurrentIterationCount: Starting from 1, not 0. + CurrentIterationCount int64 `json:"currentIterationCount,omitempty,string"` + + // CurrentIterationDetail: Needs to be set by the loop impl class before + // each iteration. The abstract loop class will append the request and + // response to it. Eg. The foreach Loop will clean up and set it as the + // current iteration element at the start of each loop. The post request + // and response will be appended to the value once they are available. + CurrentIterationDetail string `json:"currentIterationDetail,omitempty"` + + // ErrorMsg: Add the error message when loops fail. + ErrorMsg string `json:"errorMsg,omitempty"` + + // FailureLocation: Indicates where in the loop logic did it error out. + // + // Possible values: + // "UNKNOWN" - No error or Unknown. + // "SUBWORKFLOW" - Subworkflow failed while firing/running. + // "PARAM_OVERRIDING" - Param overrides failed. + // "PARAM_AGGREGATING" - Param aggregation failed. + // "SETTING_ITERATION_ELEMENT" - Setting for loop current element + // failed. + // "GETTING_LIST_TO_ITERATE" - Getting the list to iterate. + // "CONDITION_EVALUATION" - Evaluating the while loop condition. + // "BUILDING_REQUEST" - Building the iteration request + FailureLocation string `json:"failureLocation,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CurrentIterationCount") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CurrentIterationCount") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoLoopMetadata) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoLoopMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoMappedField: Mapped field is a pair of +// input field and output field. Next Id: 3 +type EnterpriseCrmEventbusProtoMappedField struct { + // InputField: The input field being mapped from. + InputField *EnterpriseCrmEventbusProtoField `json:"inputField,omitempty"` + + // OutputField: The output field being mapped to. + OutputField *EnterpriseCrmEventbusProtoField `json:"outputField,omitempty"` + + // ForceSendFields is a list of field names (e.g. "InputField") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "InputField") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoMappedField) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoMappedField + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoNextTask: The task that is next in line to +// be executed, if the condition specified evaluated to true. +type EnterpriseCrmEventbusProtoNextTask struct { + // CombinedConditions: Combined condition for this task to become an + // eligible next task. Each of these combined_conditions are joined with + // logical OR. DEPRECATED: use `condition` + CombinedConditions []*EnterpriseCrmEventbusProtoCombinedCondition `json:"combinedConditions,omitempty"` + + // Condition: Standard filter expression for this task to become an + // eligible next task. + Condition string `json:"condition,omitempty"` + + // Description: User-provided description intended to give more business + // context about the next task edge or condition. + Description string `json:"description,omitempty"` + + // Label: User-provided label that is attached to this edge in the UI. + Label string `json:"label,omitempty"` + + // TaskConfigId: ID of the next task. + TaskConfigId string `json:"taskConfigId,omitempty"` + + // TaskNumber: Task number of the next task. + TaskNumber string `json:"taskNumber,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CombinedConditions") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CombinedConditions") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoNextTask) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoNextTask + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoNextTeardownTask: The teardown task that is +// next in line to be executed. We support only sequential execution of +// teardown tasks (i.e. no branching). +type EnterpriseCrmEventbusProtoNextTeardownTask struct { + // Name: Required. Name of the next teardown task. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoNextTeardownTask) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoNextTeardownTask + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoNodeIdentifier: Represents a node +// identifier (type + id). Next highest id: 3 +type EnterpriseCrmEventbusProtoNodeIdentifier struct { + // ElementIdentifier: Configuration of the edge. + ElementIdentifier string `json:"elementIdentifier,omitempty"` + + // ElementType: Destination node where the edge ends. It can only be a + // task config. + // + // Possible values: + // "UNKNOWN_TYPE" + // "TASK_CONFIG" + // "TRIGGER_CONFIG" + ElementType string `json:"elementType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ElementIdentifier") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ElementIdentifier") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoNodeIdentifier) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoNodeIdentifier + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoNotification struct { + BuganizerNotification *EnterpriseCrmEventbusProtoBuganizerNotification `json:"buganizerNotification,omitempty"` + + EmailAddress *EnterpriseCrmEventbusProtoAddress `json:"emailAddress,omitempty"` + + EscalatorQueue string `json:"escalatorQueue,omitempty"` + + PubsubTopic string `json:"pubsubTopic,omitempty"` + + // Request: If the out-of-the-box email/pubsub notifications are not + // suitable and custom logic is required, fire a workflow containing all + // info needed to notify users to resume execution. + Request *EnterpriseCrmEventbusProtoCustomSuspensionRequest `json:"request,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "BuganizerNotification") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BuganizerNotification") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoNotification) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoNotification + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoParamSpecEntryConfig struct { + // DescriptivePhrase: A short phrase to describe what this parameter + // contains. + DescriptivePhrase string `json:"descriptivePhrase,omitempty"` + + // HelpText: Detailed help text for this parameter containing + // information not provided elsewhere. For example, instructions on how + // to migrate from a deprecated parameter. + HelpText string `json:"helpText,omitempty"` + + // HideDefaultValue: Whether the default value is hidden in the UI. + HideDefaultValue bool `json:"hideDefaultValue,omitempty"` + + // Possible values: + // "DEFAULT" - A single-line input for strings, a numeric input box + // for numbers, or a checkbox for booleans. + // "STRING_MULTI_LINE" - A multi-line input box for longer + // strings/string templates. + // "NUMBER_SLIDER" - A slider to select a numerical value. The default + // range is [0, 100]. + // "BOOLEAN_TOGGLE" - A toggle button for boolean parameters. + InputDisplayOption string `json:"inputDisplayOption,omitempty"` + + // IsHidden: Whether this field is hidden in the UI. + IsHidden bool `json:"isHidden,omitempty"` + + // Label: A user-friendly label for the parameter. + Label string `json:"label,omitempty"` + + // Possible values: + // "DEFAULT_NOT_PARAMETER_NAME" - This field is not a parameter name. + // "IS_PARAMETER_NAME" - If this field is a string and this option is + // selected, the field will be interpreted as a parameter name. Users + // will be able to choose a variable using the autocomplete, but the + // name will be stored as a literal string. + // "KEY_IS_PARAMETER_NAME" - If this field is a ParameterMap and this + // option is selected, the map's keys will be interpreted as parameter + // names. Ignored if this field is not a ParameterMap. + // "VALUE_IS_PARAMETER_NAME" - If this field is a ParameterMap and + // this option is selected, the map's values will be interpreted as + // parameter names. Ignored if this field is not a ParameterMap. + ParameterNameOption string `json:"parameterNameOption,omitempty"` + + // SubSectionLabel: A user-friendly label for subSection under which the + // parameter will be displayed. + SubSectionLabel string `json:"subSectionLabel,omitempty"` + + // UiPlaceholderText: Placeholder text which will appear in the UI input + // form for this parameter. + UiPlaceholderText string `json:"uiPlaceholderText,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DescriptivePhrase") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DescriptivePhrase") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoParamSpecEntryConfig) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoParamSpecEntryConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoParamSpecEntryProtoDefinition struct { + // FullName: The fully-qualified proto name. This message, for example, + // would be + // "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". + FullName string `json:"fullName,omitempty"` + + // Path: Path to the proto file that contains the message type's + // definition. + Path string `json:"path,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FullName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FullName") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoParamSpecEntryProtoDefinition) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoParamSpecEntryProtoDefinition + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoParamSpecEntryValidationRule struct { + DoubleRange *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange `json:"doubleRange,omitempty"` + + IntRange *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange `json:"intRange,omitempty"` + + StringRegex *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex `json:"stringRegex,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DoubleRange") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DoubleRange") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoParamSpecEntryValidationRule) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoParamSpecEntryValidationRule + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange: +// Range used to validate doubles and floats. +type EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange struct { + // Max: The inclusive maximum of the acceptable range. + Max float64 `json:"max,omitempty"` + + // Min: The inclusive minimum of the acceptable range. + Min float64 `json:"min,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Max") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Max") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange) UnmarshalJSON(data []byte) error { + type NoMethod EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange + var s1 struct { + Max gensupport.JSONFloat64 `json:"max"` + Min gensupport.JSONFloat64 `json:"min"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Max = float64(s1.Max) + s.Min = float64(s1.Min) + return nil +} + +// EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange: Range +// used to validate longs and ints. +type EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange struct { + // Max: The inclusive maximum of the acceptable range. + Max int64 `json:"max,omitempty,string"` + + // Min: The inclusive minimum of the acceptable range. + Min int64 `json:"min,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "Max") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Max") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex: +// Rule used to validate strings. +type EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex struct { + // Exclusive: Whether the regex matcher is applied exclusively (if true, + // matching values will be rejected). + Exclusive bool `json:"exclusive,omitempty"` + + // Regex: The regex applied to the input value(s). + Regex string `json:"regex,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Exclusive") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Exclusive") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoParameterEntry: Key-value pair of EventBus +// parameters. +type EnterpriseCrmEventbusProtoParameterEntry struct { + // Key: Key is used to retrieve the corresponding parameter value. This + // should be unique for a given fired event. These parameters must be + // predefined in the integration definition. + Key string `json:"key,omitempty"` + + // Value: Values for the defined keys. Each value can either be string, + // int, double or any proto message. + Value *EnterpriseCrmEventbusProtoParameterValueType `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Key") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Key") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoParameterEntry) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoParameterEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoParameterMap: A generic multi-map that +// holds key value pairs. They keys and values can be of any type, +// unless specified. +type EnterpriseCrmEventbusProtoParameterMap struct { + Entries []*EnterpriseCrmEventbusProtoParameterMapEntry `json:"entries,omitempty"` + + // KeyType: Option to specify key value type for all entries of the map. + // If provided then field types for all entries must conform to this. + // + // Possible values: + // "DATA_TYPE_UNSPECIFIED" + // "STRING_VALUE" + // "INT_VALUE" + // "DOUBLE_VALUE" + // "BOOLEAN_VALUE" + // "PROTO_VALUE" + // "SERIALIZED_OBJECT_VALUE" + // "STRING_ARRAY" + // "INT_ARRAY" + // "DOUBLE_ARRAY" + // "PROTO_ARRAY" + // "PROTO_ENUM" + // "BOOLEAN_ARRAY" + // "PROTO_ENUM_ARRAY" + // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for + // top-level params. They're only meant to support protobufs with BYTES + // (sub)fields. + // "BYTES_ARRAY" + // "NON_SERIALIZABLE_OBJECT" + // "JSON_VALUE" + KeyType string `json:"keyType,omitempty"` + + // Possible values: + // "DATA_TYPE_UNSPECIFIED" + // "STRING_VALUE" + // "INT_VALUE" + // "DOUBLE_VALUE" + // "BOOLEAN_VALUE" + // "PROTO_VALUE" + // "SERIALIZED_OBJECT_VALUE" + // "STRING_ARRAY" + // "INT_ARRAY" + // "DOUBLE_ARRAY" + // "PROTO_ARRAY" + // "PROTO_ENUM" + // "BOOLEAN_ARRAY" + // "PROTO_ENUM_ARRAY" + // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for + // top-level params. They're only meant to support protobufs with BYTES + // (sub)fields. + // "BYTES_ARRAY" + // "NON_SERIALIZABLE_OBJECT" + // "JSON_VALUE" + ValueType string `json:"valueType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Entries") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Entries") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoParameterMap) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoParameterMap + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoParameterMapEntry: Entry is a pair of key +// and value. +type EnterpriseCrmEventbusProtoParameterMapEntry struct { + Key *EnterpriseCrmEventbusProtoParameterMapField `json:"key,omitempty"` + + Value *EnterpriseCrmEventbusProtoParameterMapField `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Key") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Key") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoParameterMapEntry) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoParameterMapEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoParameterMapField: Field represents either +// the key or value in an entry. +type EnterpriseCrmEventbusProtoParameterMapField struct { + // LiteralValue: Passing a literal value. + LiteralValue *EnterpriseCrmEventbusProtoParameterValueType `json:"literalValue,omitempty"` + + // ReferenceKey: Referencing one of the WF variables. + ReferenceKey string `json:"referenceKey,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LiteralValue") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LiteralValue") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoParameterMapField) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoParameterMapField + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoParameterValueType: LINT.IfChange To +// support various types of parameter values. Next available id: 14 +type EnterpriseCrmEventbusProtoParameterValueType struct { + BooleanArray *EnterpriseCrmEventbusProtoBooleanParameterArray `json:"booleanArray,omitempty"` + + BooleanValue bool `json:"booleanValue,omitempty"` + + DoubleArray *EnterpriseCrmEventbusProtoDoubleParameterArray `json:"doubleArray,omitempty"` + + DoubleValue float64 `json:"doubleValue,omitempty"` + + IntArray *EnterpriseCrmEventbusProtoIntParameterArray `json:"intArray,omitempty"` + + IntValue int64 `json:"intValue,omitempty,string"` + + ProtoArray *EnterpriseCrmEventbusProtoProtoParameterArray `json:"protoArray,omitempty"` + + ProtoValue googleapi.RawMessage `json:"protoValue,omitempty"` + + SerializedObjectValue *EnterpriseCrmEventbusProtoSerializedObjectParameter `json:"serializedObjectValue,omitempty"` + + StringArray *EnterpriseCrmEventbusProtoStringParameterArray `json:"stringArray,omitempty"` + + StringValue string `json:"stringValue,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BooleanArray") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BooleanArray") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoParameterValueType) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoParameterValueType + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *EnterpriseCrmEventbusProtoParameterValueType) UnmarshalJSON(data []byte) error { + type NoMethod EnterpriseCrmEventbusProtoParameterValueType + var s1 struct { + DoubleValue gensupport.JSONFloat64 `json:"doubleValue"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.DoubleValue = float64(s1.DoubleValue) + return nil +} + +// EnterpriseCrmEventbusProtoPropertyEntry: Key-value pair of EventBus +// property. +type EnterpriseCrmEventbusProtoPropertyEntry struct { + // Key: Key is used to retrieve the corresponding property value. This + // should be unique for a given fired event. The Tasks should be aware + // of the keys used while firing the events for them to be able to + // retrieve the values. + Key string `json:"key,omitempty"` + + // Value: Values for the defined keys. Each value can either be string, + // int, double or any proto message. + Value *EnterpriseCrmEventbusProtoValueType `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Key") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Key") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoPropertyEntry) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoPropertyEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoProtoArrayFunction struct { + // Possible values: + // "UNSPECIFIED" + // "GET" + // "APPEND" + // "SIZE" + // "TO_SET" + // "APPEND_ALL" + // "TO_JSON" + // "SET" + // "REMOVE" + // "REMOVE_AT" + // "CONTAINS" + // "FOR_EACH" + // "FILTER" + FunctionName string `json:"functionName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FunctionName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FunctionName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoProtoArrayFunction) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoProtoArrayFunction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoProtoFunction struct { + // Possible values: + // "UNSPECIFIED" + // "GET_STRING_SUBFIELD" + // "GET_INT_SUBFIELD" + // "GET_DOUBLE_SUBFIELD" + // "GET_BOOLEAN_SUBFIELD" + // "GET_STRING_ARRAY_SUBFIELD" + // "GET_INT_ARRAY_SUBFIELD" + // "GET_DOUBLE_ARRAY_SUBFIELD" + // "GET_BOOLEAN_ARRAY_SUBFIELD" + // "GET_PROTO_ARRAY_SUBFIELD" + // "GET_PROTO_SUBFIELD" + // "TO_JSON" + // "GET_BYTES_SUBFIELD_AS_UTF_8_STRING" + // "GET_BYTES_SUBFIELD_AS_PROTO" + // "EQUALS" + FunctionName string `json:"functionName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FunctionName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FunctionName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoProtoFunction) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoProtoFunction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoProtoParameterArray struct { + ProtoValues []googleapi.RawMessage `json:"protoValues,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ProtoValues") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ProtoValues") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoProtoParameterArray) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoProtoParameterArray + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoScatterResponse struct { + // ErrorMsg: The error message of the failure if applicable. + ErrorMsg string `json:"errorMsg,omitempty"` + + // ExecutionIds: The execution ids of each Subworkflow fired by this + // scatter. + ExecutionIds []string `json:"executionIds,omitempty"` + + // IsSuccessful: If execution is sync, this is true if the execution + // passed and false if it failed. If the execution is async, this is + // true if the WF was fired off successfully, and false if it failed to + // execute. The success or failure of the subworkflows executed are not + // captured. + IsSuccessful bool `json:"isSuccessful,omitempty"` + + // ResponseParams: A list of all the response parameters in the + // aggregtorMap stored with the remapped key. + ResponseParams []*EnterpriseCrmEventbusProtoParameterEntry `json:"responseParams,omitempty"` + + // ScatterElement: The element that was scattered for this execution. + ScatterElement *EnterpriseCrmEventbusProtoParameterValueType `json:"scatterElement,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ErrorMsg") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ErrorMsg") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoScatterResponse) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoScatterResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoSerializedObjectParameter struct { + ObjectValue string `json:"objectValue,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ObjectValue") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ObjectValue") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoSerializedObjectParameter) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoSerializedObjectParameter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoStringArray struct { + Values []string `json:"values,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Values") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Values") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoStringArray) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoStringArray + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoStringArrayFunction struct { + // Possible values: + // "UNSPECIFIED" + // "GET" + // "APPEND" + // "SIZE" + // "TO_SET" + // "APPEND_ALL" + // "TO_JSON" + // "SET" + // "REMOVE" + // "REMOVE_AT" + // "CONTAINS" + // "FOR_EACH" + // "FILTER" + FunctionName string `json:"functionName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FunctionName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FunctionName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoStringArrayFunction) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoStringArrayFunction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoStringFunction struct { + // Possible values: + // "UNSPECIFIED" + // "CONCAT" + // "TO_UPPERCASE" + // "TO_LOWERCASE" + // "CONTAINS" + // "SPLIT" + // "LENGTH" + // "EQUALS" + // "TO_INT" + // "TO_DOUBLE" + // "TO_BOOLEAN" + // "TO_BASE_64" + // "TO_JSON" + // "EQUALS_IGNORE_CASE" + // "REPLACE_ALL" + // "SUBSTRING" + // "RESOLVE_TEMPLATE" + FunctionName string `json:"functionName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FunctionName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FunctionName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoStringFunction) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoStringFunction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoStringParameterArray struct { + StringValues []string `json:"stringValues,omitempty"` + + // ForceSendFields is a list of field names (e.g. "StringValues") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "StringValues") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoStringParameterArray) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoStringParameterArray + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoSuccessPolicy: Policy that dictates the +// behavior for the task after it completes successfully. +type EnterpriseCrmEventbusProtoSuccessPolicy struct { + // FinalState: State to which the execution snapshot status will be set + // if the task succeeds. + // + // Possible values: + // "UNSPECIFIED" + // "SUCCEEDED" - The default behavior, where successful tasks will be + // marked as SUCCEEDED. + // "SUSPENDED" - Sets the state to SUSPENDED after executing. This is + // required for SuspensionTask; event execution will continue once the + // user calls ResolveSuspensions with the event_execution_info_id and + // the task number. + FinalState string `json:"finalState,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FinalState") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FinalState") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoSuccessPolicy) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoSuccessPolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoSuspensionAuthPermissions: LINT.IfChange +type EnterpriseCrmEventbusProtoSuspensionAuthPermissions struct { + // GaiaIdentity: Represents a Gaia identity for a person or service + // account. + GaiaIdentity *EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity `json:"gaiaIdentity,omitempty"` + + GoogleGroup *EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity `json:"googleGroup,omitempty"` + + LoasRole string `json:"loasRole,omitempty"` + + MdbGroup string `json:"mdbGroup,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GaiaIdentity") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GaiaIdentity") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoSuspensionAuthPermissions) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoSuspensionAuthPermissions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity struct { + EmailAddress string `json:"emailAddress,omitempty"` + + GaiaId int64 `json:"gaiaId,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "EmailAddress") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EmailAddress") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoSuspensionConfig struct { + // CustomMessage: Optional information to provide recipients of the + // suspension in addition to the resolution URL, typically containing + // relevant parameter values from the originating workflow. + CustomMessage string `json:"customMessage,omitempty"` + + Notifications []*EnterpriseCrmEventbusProtoNotification `json:"notifications,omitempty"` + + // SuspensionExpiration: Indicates the next steps when no external + // actions happen on the suspension. + SuspensionExpiration *EnterpriseCrmEventbusProtoSuspensionExpiration `json:"suspensionExpiration,omitempty"` + + // WhoMayResolve: Identities able to resolve this suspension. + WhoMayResolve []*EnterpriseCrmEventbusProtoSuspensionAuthPermissions `json:"whoMayResolve,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CustomMessage") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CustomMessage") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoSuspensionConfig) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoSuspensionConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoSuspensionExpiration struct { + // ExpireAfterMs: Milliseconds after which the suspension expires, if no + // action taken. + ExpireAfterMs int64 `json:"expireAfterMs,omitempty"` + + // LiftWhenExpired: Whether the suspension will be REJECTED or LIFTED + // upon expiration. REJECTED is the default behavior. + LiftWhenExpired bool `json:"liftWhenExpired,omitempty"` + + // RemindAfterMs: Milliseconds after which the previous suspension + // action reminder, if any, is sent using the selected notification + // option, for a suspension which is still PENDING_UNSPECIFIED. + RemindAfterMs int64 `json:"remindAfterMs,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExpireAfterMs") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExpireAfterMs") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoSuspensionExpiration) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoSuspensionExpiration + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoSuspensionResolutionInfo struct { + Audit *EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit `json:"audit,omitempty"` + + // CreatedTimestamp: Auto-generated. + CreatedTimestamp string `json:"createdTimestamp,omitempty"` + + // EventExecutionInfoId: Required. ID of the associated execution. + EventExecutionInfoId string `json:"eventExecutionInfoId,omitempty"` + + // ExternalTraffic: The origin of the suspension for periodic + // notifications. + ExternalTraffic *EnterpriseCrmEventbusProtoExternalTraffic `json:"externalTraffic,omitempty"` + + // LastModifiedTimestamp: Auto-generated. + LastModifiedTimestamp string `json:"lastModifiedTimestamp,omitempty"` + + // Product: Which Google product the suspension belongs to. If not set, + // the suspension belongs to Integration Platform by default. + // + // Possible values: + // "UNSPECIFIED_PRODUCT" + // "IP" + // "APIGEE" + // "SECURITY" + Product string `json:"product,omitempty"` + + // Possible values: + // "PENDING_UNSPECIFIED" + // "REJECTED" + // "LIFTED" + Status string `json:"status,omitempty"` + + SuspensionConfig *EnterpriseCrmEventbusProtoSuspensionConfig `json:"suspensionConfig,omitempty"` + + // SuspensionId: Primary key for the SuspensionResolutionInfoTable. + SuspensionId string `json:"suspensionId,omitempty"` + + // TaskNumber: Required. Task number of the associated SuspensionTask. + TaskNumber string `json:"taskNumber,omitempty"` + + // WorkflowName: Required. The name of the originating workflow. + WorkflowName string `json:"workflowName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Audit") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Audit") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoSuspensionResolutionInfo) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoSuspensionResolutionInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit struct { + ResolvedBy string `json:"resolvedBy,omitempty"` + + Timestamp string `json:"timestamp,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResolvedBy") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ResolvedBy") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoTaskAlertConfig: Message to be used to +// configure alerting in the {@code TaskConfig} protos for tasks in an +// event. See go/eventbus-alert-config-examples for examples of the +// different alerts that can be configured. +type EnterpriseCrmEventbusProtoTaskAlertConfig struct { + // AggregationPeriod: The period over which the metric value should be + // aggregated and evaluated. Format is , where integer should be a + // positive integer and unit should be one of (s,m,h,d,w) meaning + // (second, minute, hour, day, week). + AggregationPeriod string `json:"aggregationPeriod,omitempty"` + + // AlertDisabled: Set to false by default. When set to true, the metrics + // are not aggregated or pushed to Monarch for this workflow alert. + AlertDisabled bool `json:"alertDisabled,omitempty"` + + // AlertName: A name to identify this alert. This will be displayed in + // the alert subject. If set, this name should be unique in within the + // scope of the containing workflow. + AlertName string `json:"alertName,omitempty"` + + // ClientId: Client associated with this alert configuration. Must be a + // client enabled in one of the containing workflow's triggers. + ClientId string `json:"clientId,omitempty"` + + // DurationThresholdMs: Should be specified only for + // TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This + // member should be used to specify what duration value the metrics + // should exceed for the alert to trigger. + DurationThresholdMs int64 `json:"durationThresholdMs,omitempty,string"` + + ErrorEnumList *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList `json:"errorEnumList,omitempty"` + + // Possible values: + // "METRIC_TYPE_UNSPECIFIED" - The default value. Metric type should + // always be set to one of the other non-default values, otherwise it + // will result in an INVALID_ARGUMENT error. + // "TASK_ERROR_RATE" - Specifies alerting on the rate of errors + // (potentially for a specific set of enum values) for the enclosing + // TaskConfig. + // "TASK_WARNING_RATE" - Specifies alerting on the rate of warnings + // (potentially for a specific set of enum values) for the enclosing + // TaskConfig. Warnings use the same enum values as errors. + // "TASK_RATE" - Specifies alerting on the number of instances for the + // enclosing TaskConfig executed in the given aggregation_period. + // "TASK_AVERAGE_DURATION" - Specifies alerting on the average + // duration of execution for the enclosing task. + // "TASK_PERCENTILE_DURATION" - Specifies alerting on the duration of + // a particular percentile of task executions. E.g. If 10% or more of + // the task executions have durations above 5 seconds, alert. + MetricType string `json:"metricType,omitempty"` + + // NumAggregationPeriods: For how many contiguous aggregation periods + // should the expected min or max be violated for the alert to be fired. + NumAggregationPeriods int64 `json:"numAggregationPeriods,omitempty"` + + // OnlyFinalAttempt: Only count final task attempts, not retries. + OnlyFinalAttempt bool `json:"onlyFinalAttempt,omitempty"` + + // PlaybookUrl: Link to a playbook for resolving the issue that + // triggered this alert. + PlaybookUrl string `json:"playbookUrl,omitempty"` + + // ThresholdType: The threshold type for which this alert is being + // configured. If value falls below expected_min or exceeds + // expected_max, an alert will be fired. + // + // Possible values: + // "UNSPECIFIED_THRESHOLD_TYPE" + // "EXPECTED_MIN" - Note that this field will only trigger alerts if + // the workflow specifying it runs at least once in 24 hours (which is + // our in-memory retention period for monarch streams). Also note that + // `aggregation_period` for this alert configuration must be less than + // 24 hours. + // "EXPECTED_MAX" + ThresholdType string `json:"thresholdType,omitempty"` + + // ThresholdValue: The metric value, above or below which the alert + // should be triggered. + ThresholdValue *EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue `json:"thresholdValue,omitempty"` + + WarningEnumList *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList `json:"warningEnumList,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AggregationPeriod") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AggregationPeriod") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoTaskAlertConfig) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoTaskAlertConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoTaskExecutionDetails: Contains the details +// of the execution of this task. Next available id: 11 +type EnterpriseCrmEventbusProtoTaskExecutionDetails struct { + TaskAttemptStats []*EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats `json:"taskAttemptStats,omitempty"` + + // Possible values: + // "UNSPECIFIED" + // "PENDING_EXECUTION" - Task is waiting for its precondition tasks to + // finish to start the execution. + // "IN_PROCESS" - Task is under processing. + // "SUCCEED" - Task execution successfully finished. There's no more + // change after this state. + // "FAILED" - Task execution failed. There's no more change after this + // state. + // "FATAL" - Task execution failed and cause the whole event execution + // to fail immediately. There's no more change after this state. + // "RETRY_ON_HOLD" - Task execution failed and waiting for retry. + // "SKIPPED" - Task execution skipped. This happens when its + // precondition wasn't met, or the event execution been canceled before + // reach to the task. There's no more changes after this state. + // "CANCELED" - Task execution canceled when in progress. This happens + // when event execution been canceled or any other task fall in fatal + // state. + // "PENDING_ROLLBACK" - Task is waiting for its dependency tasks' + // rollback to finish to start its rollback. + // "ROLLBACK_IN_PROCESS" - Task is rolling back. + // "ROLLEDBACK" - Task is rolled back. This is the state we will set + // regardless of rollback succeeding or failing. + // "SUSPENDED" - Task is a SuspensionTask which has executed once, + // creating a pending suspension. + TaskExecutionState string `json:"taskExecutionState,omitempty"` + + // TaskNumber: Pointer to the task config it used for execution. + TaskNumber string `json:"taskNumber,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TaskAttemptStats") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TaskAttemptStats") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoTaskExecutionDetails) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoTaskExecutionDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats struct { + // EndTime: The end time of the task execution for current attempt. + EndTime int64 `json:"endTime,omitempty,string"` + + // StartTime: The start time of the task execution for current attempt. + // This could be in the future if it's been scheduled. + StartTime int64 `json:"startTime,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "EndTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EndTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoTaskMetadata: TaskMetadata are attributes +// that are associated to every common Task we have. Next available: 26 +type EnterpriseCrmEventbusProtoTaskMetadata struct { + // ActiveTaskName: The new task name to replace the current task if it + // is deprecated. Otherwise, it is the same as the current task name. + ActiveTaskName string `json:"activeTaskName,omitempty"` + + Admins []*EnterpriseCrmEventbusProtoTaskMetadataAdmin `json:"admins,omitempty"` + + // Possible values: + // "UNSPECIFIED_CATEGORY" + // "CUSTOM" + // "FLOW_CONTROL" + // "DATA_MANIPULATION" + // "SCRIPTING" + // "CONNECTOR" + // "HIDDEN" - Internal IP tasks that should not be available in the + // UI. + // "CLOUD_SYSTEMS" - Tasks that are relevant to cloud systems teams + // and typically + // "CUSTOM_TASK_TEMPLATE" - include connecting to Vector salesforce, + // CRM Hub Spanner etc. Task entities that derive from a custom task + // template. + Category string `json:"category,omitempty"` + + // CodeSearchLink: The Code Search link to the Task Java file. + CodeSearchLink string `json:"codeSearchLink,omitempty"` + + // DefaultJsonValidationOption: Controls whether JSON workflow + // parameters are validated against provided schemas before and/or after + // this task's execution. + // + // Possible values: + // "UNSPECIFIED_JSON_VALIDATION_OPTION" - As per the default behavior, + // no validation will be run. Will not override any option set in a + // Task. + // "SKIP" - Do not run any validation against JSON schemas. + // "PRE_EXECUTION" - Validate all potential input JSON parameters + // against schemas specified in WorkflowParameters. + // "POST_EXECUTION" - Validate all potential output JSON parameters + // against schemas specified in WorkflowParameters. + // "PRE_POST_EXECUTION" - Perform both PRE_EXECUTION and + // POST_EXECUTION validations. + DefaultJsonValidationOption string `json:"defaultJsonValidationOption,omitempty"` + + // DefaultSpec: Contains the initial configuration of the task with + // default values set. For now, The string should be compatible to an + // ASCII-proto format. + DefaultSpec string `json:"defaultSpec,omitempty"` + + // Description: In a few sentences, describe the purpose and usage of + // the task. + Description string `json:"description,omitempty"` + + // DescriptiveName: The string name to show on the task list on the + // Workflow editor screen. This should be a very short, one to two words + // name for the task. (e.g. "Send Mail") + DescriptiveName string `json:"descriptiveName,omitempty"` + + // DocMarkdown: Snippet of markdown documentation to embed in the RHP + // for this task. + DocMarkdown string `json:"docMarkdown,omitempty"` + + // Possible values: + // "UNSPECIFIED_EXTERNAL_CATEGORY" + // "CORE" + // "CONNECTORS" + ExternalCategory string `json:"externalCategory,omitempty"` + + // ExternalCategorySequence: Sequence with which the task in specific + // category to be displayed in task discovery panel for external users. + ExternalCategorySequence int64 `json:"externalCategorySequence,omitempty"` + + // ExternalDocHtml: External-facing documention embedded in the RHP for + // this task. + ExternalDocHtml string `json:"externalDocHtml,omitempty"` + + // ExternalDocLink: Doc link for external-facing documentation (separate + // from g3doc). + ExternalDocLink string `json:"externalDocLink,omitempty"` + + // ExternalDocMarkdown: DEPRECATED: Use external_doc_html. + ExternalDocMarkdown string `json:"externalDocMarkdown,omitempty"` + + // G3DocLink: URL to the associated G3 Doc for the task if available + G3DocLink string `json:"g3DocLink,omitempty"` + + // IconLink: URL to gstatic image icon for this task. This icon shows up + // on the task list panel along with the task name in the Workflow + // Editor screen. Use the 24p, 2x, gray color icon image format. See + // go/icons. + IconLink string `json:"iconLink,omitempty"` + + // IsDeprecated: The deprecation status of the current task. Default + // value is false; + IsDeprecated bool `json:"isDeprecated,omitempty"` + + // Name: The actual class name or the annotated name of the task. Task + // Author should initialize this field with value from the getName() + // method of the Task class. + Name string `json:"name,omitempty"` + + // StandaloneExternalDocHtml: External-facing documention for standalone + // IP in pantheon embedded in the RHP for this task. Non null only if + // different from external_doc_html + StandaloneExternalDocHtml string `json:"standaloneExternalDocHtml,omitempty"` + + // Status: Allows author to indicate if the task is ready to use or not. + // If not set, then it will default to INACTIVE. + // + // Possible values: + // "UNSPECIFIED_STATUS" - Default value. Actual Task Status should + // always be set to either INACTIVE or ACTIVE. If none is specified at + // runtime, it will be set to INACTIVE. + // "DEFAULT_INACTIVE" - Still in-progress or incomplete, and not + // intended for use. + // "ACTIVE" - Available for use. + Status string `json:"status,omitempty"` + + // Possible values: + // "UNSPECIFIED_SYSTEM" + // "GENERIC" + // "BUGANIZER" + // "SALESFORCE" + // "CLOUD_SQL" + // "PLX" + // "SHEETS" + // "GOOGLE_GROUPS" + // "EMAIL" + // "SPANNER" + // "DATA_BRIDGE" + System string `json:"system,omitempty"` + + // Tags: A set of tags that pertain to a particular task. This can be + // used to improve the searchability of tasks with several names ("REST + // Caller" vs. "Call REST Endpoint") or to help users find tasks based + // on related words. + Tags []string `json:"tags,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ActiveTaskName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ActiveTaskName") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoTaskMetadata) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoTaskMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoTaskMetadataAdmin: Admins are owners of a +// Task, and have all permissions on a particular task identified by the +// task name. By default, Eventbus periodically scans all task metadata +// and syncs (adds) any new admins defined here to Zanzibar. +type EnterpriseCrmEventbusProtoTaskMetadataAdmin struct { + GoogleGroupEmail string `json:"googleGroupEmail,omitempty"` + + UserEmail string `json:"userEmail,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GoogleGroupEmail") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GoogleGroupEmail") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoTaskMetadataAdmin) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoTaskMetadataAdmin + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoTaskUiConfig: Task authors would use this +// type to configure the UI for a particular task by specifying what UI +// config modules should be included to compose the UI. Learn more about +// config module framework: +// go/integration-platform-config-module-framework +type EnterpriseCrmEventbusProtoTaskUiConfig struct { + // TaskUiModuleConfigs: Configurations of included config modules. + TaskUiModuleConfigs []*EnterpriseCrmEventbusProtoTaskUiModuleConfig `json:"taskUiModuleConfigs,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TaskUiModuleConfigs") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TaskUiModuleConfigs") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoTaskUiConfig) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoTaskUiConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoTaskUiModuleConfig: Task author would use +// this type to configure a config module. +type EnterpriseCrmEventbusProtoTaskUiModuleConfig struct { + // ModuleId: ID of the config module. + // + // Possible values: + // "UNSPECIFIED_TASK_MODULE" - Default + // "LABEL" - Supports editing label of a task config. + // "ERROR_HANDLING" - Supports editing error handling settings such as + // retry strategy. + // "TASK_PARAM_TABLE" - Supports adding, removing and editing task + // parameter values in a table with little assistance or restriction. + // "TASK_PARAM_FORM" - Supports editing values of declared input + // parameters of a task. Think of it as a "strongly typed" upgrade to + // the TASK_PARAM_TABLE. + // "PRECONDITION" - Supports editing preconditions of a task config. + // "SCRIPT_EDITOR" - Supports adding, editing, and deleting the + // scripts associated with a script task, as well as modifying the + // input/output parameters. + // "RPC" - Supports editing task parameters associated with an + // RPC/stubby task. + // "TASK_SUMMARY" - Contains readonly task information, including + // input/output type info. + // "SUSPENSION" - Configures a SuspensionTask. + // "RPC_TYPED" - Configures a GenericStubbyTypedTask. + // "SUB_WORKFLOW" - Configures a SubWorkflowExecutorTask. + // "APPS_SCRIPT_NAVIGATOR" - Supports navigating to Apps Script editor + // "SUB_WORKFLOW_FOR_EACH_LOOP" - Configures a + // SubWorkflowForEachLoopTask. + // "FIELD_MAPPING" - Configures a FieldMappingTask. + // "README" - Contains embedded in-product documentation for a task. + // "REST_CALLER" - UI widget for the rest caller task. + // "SUB_WORKFLOW_SCATTER_GATHER" - Configures a + // SubWorkflowScatterGatherTask. + // "CLOUD_SQL" - Configures a CloudSql Task. + // "GENERIC_CONNECTOR_TASK" - Configure a GenericConnectorTask. + ModuleId string `json:"moduleId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ModuleId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ModuleId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoTaskUiModuleConfig) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoTaskUiModuleConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoTeardown struct { + // TeardownTaskConfigs: Required. + TeardownTaskConfigs []*EnterpriseCrmEventbusProtoTeardownTaskConfig `json:"teardownTaskConfigs,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TeardownTaskConfigs") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TeardownTaskConfigs") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoTeardown) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoTeardown + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoTeardownTaskConfig struct { + // CreatorEmail: The creator's email address. + CreatorEmail string `json:"creatorEmail,omitempty"` + + // Name: Required. Unique identifier of the teardown task within this + // Config. We use this field as the identifier to find next teardown + // tasks. + Name string `json:"name,omitempty"` + + NextTeardownTask *EnterpriseCrmEventbusProtoNextTeardownTask `json:"nextTeardownTask,omitempty"` + + // Parameters: The parameters the user can pass to this task. + Parameters *EnterpriseCrmEventbusProtoEventParameters `json:"parameters,omitempty"` + + Properties *EnterpriseCrmEventbusProtoEventBusProperties `json:"properties,omitempty"` + + // TeardownTaskImplementationClassName: Required. Implementation class + // name. + TeardownTaskImplementationClassName string `json:"teardownTaskImplementationClassName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreatorEmail") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreatorEmail") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoTeardownTaskConfig) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoTeardownTaskConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoToken struct { + Name string `json:"name,omitempty"` + + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoToken) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoToken + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoTransformExpression struct { + // InitialValue: Initial value upon which to perform transformations. + InitialValue *EnterpriseCrmEventbusProtoBaseValue `json:"initialValue,omitempty"` + + // TransformationFunctions: Transformations to be applied sequentially. + TransformationFunctions []*EnterpriseCrmEventbusProtoFunction `json:"transformationFunctions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "InitialValue") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "InitialValue") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoTransformExpression) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoTransformExpression + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmEventbusProtoTriggerCriteria struct { + // Condition: Required. Standard filter expression, when true the + // workflow will be executed. If there's no + // trigger_criteria_task_implementation_class_name specified, the + // condition will be validated directly. + Condition string `json:"condition,omitempty"` + + // Parameters: Optional. To be used in TaskConfig for the implementation + // class. + Parameters *EnterpriseCrmEventbusProtoEventParameters `json:"parameters,omitempty"` + + // TriggerCriteriaTaskImplementationClassName: Optional. Implementation + // class name. The class should implement the “TypedTask” interface. + TriggerCriteriaTaskImplementationClassName string `json:"triggerCriteriaTaskImplementationClassName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Condition") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Condition") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoTriggerCriteria) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoTriggerCriteria + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoValueType: Used for define type for values. +// Currently supported value types include int, string, double, array, +// and any proto message. +type EnterpriseCrmEventbusProtoValueType struct { + BooleanValue bool `json:"booleanValue,omitempty"` + + DoubleArray *EnterpriseCrmEventbusProtoDoubleArray `json:"doubleArray,omitempty"` + + DoubleValue float64 `json:"doubleValue,omitempty"` + + IntArray *EnterpriseCrmEventbusProtoIntArray `json:"intArray,omitempty"` + + IntValue int64 `json:"intValue,omitempty,string"` + + ProtoValue googleapi.RawMessage `json:"protoValue,omitempty"` + + StringArray *EnterpriseCrmEventbusProtoStringArray `json:"stringArray,omitempty"` + + StringValue string `json:"stringValue,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BooleanValue") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BooleanValue") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoValueType) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoValueType + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *EnterpriseCrmEventbusProtoValueType) UnmarshalJSON(data []byte) error { + type NoMethod EnterpriseCrmEventbusProtoValueType + var s1 struct { + DoubleValue gensupport.JSONFloat64 `json:"doubleValue"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.DoubleValue = float64(s1.DoubleValue) + return nil +} + +// EnterpriseCrmEventbusProtoWorkflowAlertConfig: Message to be used to +// configure custom alerting in the {@code EventConfig} protos for an +// event. See go/eventbus-alert-config-examples for examples of the +// different alerts that can be configured. +type EnterpriseCrmEventbusProtoWorkflowAlertConfig struct { + // AggregationPeriod: For an EXPECTED_MIN threshold, this + // aggregation_period must be lesser than 24 hours. + AggregationPeriod string `json:"aggregationPeriod,omitempty"` + + // AlertDisabled: Set to false by default. When set to true, the metrics + // are not aggregated or pushed to Monarch for this workflow alert. + AlertDisabled bool `json:"alertDisabled,omitempty"` + + // AlertName: A name to identify this alert. This will be displayed in + // the alert subject. If set, this name should be unique within the + // scope of the workflow. + AlertName string `json:"alertName,omitempty"` + + // ClientId: Client associated with this alert configuration. + ClientId string `json:"clientId,omitempty"` + + // DurationThresholdMs: Should be specified only for *AVERAGE_DURATION + // and *PERCENTILE_DURATION metrics. This member should be used to + // specify what duration value the metrics should exceed for the alert + // to trigger. + DurationThresholdMs int64 `json:"durationThresholdMs,omitempty,string"` + + ErrorEnumList *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList `json:"errorEnumList,omitempty"` + + // Possible values: + // "METRIC_TYPE_UNSPECIFIED" - The default value. Metric type should + // always be set to one of the other non-default values, otherwise it + // will result in an INVALID_ARGUMENT error. + // "EVENT_ERROR_RATE" - Specifies alerting on the rate of errors for + // the enclosing workflow. + // "EVENT_WARNING_RATE" - Specifies alerting on the rate of warnings + // for the enclosing workflow. Warnings use the same enum values as + // errors. + // "TASK_ERROR_RATE" - Specifies alerting on the rate of errors for + // any task in the enclosing workflow. + // "TASK_WARNING_RATE" - Specifies alerting on the rate of warnings + // for any task in the enclosing workflow. + // "TASK_RATE" - Specifies alerting on the rate of executions over all + // tasks in the enclosing workflow. + // "EVENT_RATE" - Specifies alerting on the number of events executed + // in the given aggregation_period. + // "EVENT_AVERAGE_DURATION" - Specifies alerting on the average + // duration of executions for this workflow. + // "EVENT_PERCENTILE_DURATION" - Specifies alerting on the duration + // value of a particular percentile of workflow executions. E.g. If 10% + // or more of the workflow executions have durations above 5 seconds, + // alert. + // "TASK_AVERAGE_DURATION" - Specifies alerting on the average + // duration of any task in the enclosing workflow, + // "TASK_PERCENTILE_DURATION" - Specifies alerting on the duration + // value of a particular percentile of any task executions within the + // enclosing workflow. E.g. If 10% or more of the task executions in the + // workflow have durations above 5 seconds, alert. + MetricType string `json:"metricType,omitempty"` + + // NumAggregationPeriods: For how many contiguous aggregation periods + // should the expected min or max be violated for the alert to be fired. + NumAggregationPeriods int64 `json:"numAggregationPeriods,omitempty"` + + // OnlyFinalAttempt: For either events or tasks, depending on the type + // of alert, count only final attempts, not retries. + OnlyFinalAttempt bool `json:"onlyFinalAttempt,omitempty"` + + // PlaybookUrl: Link to a playbook for resolving the issue that + // triggered this alert. + PlaybookUrl string `json:"playbookUrl,omitempty"` + + // ThresholdType: The threshold type, whether lower(expected_min) or + // upper(expected_max), for which this alert is being configured. If + // value falls below expected_min or exceeds expected_max, an alert will + // be fired. + // + // Possible values: + // "UNSPECIFIED_THRESHOLD_TYPE" + // "EXPECTED_MIN" - Note that this field will only trigger alerts if + // the workflow specifying it runs at least once in 24 hours (which is + // our in-memory retention period for monarch streams). Also note that + // `aggregation_period` for this alert configuration must be less than + // 24 hours. + // "EXPECTED_MAX" + ThresholdType string `json:"thresholdType,omitempty"` + + // ThresholdValue: The metric value, above or below which the alert + // should be triggered. See go/eventbus-alert-config-examples. + ThresholdValue *EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue `json:"thresholdValue,omitempty"` + + WarningEnumList *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList `json:"warningEnumList,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AggregationPeriod") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AggregationPeriod") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoWorkflowAlertConfig) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoWorkflowAlertConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusStats: Stats for the requested dimensions: QPS, +// duration, and error/warning rate +type EnterpriseCrmEventbusStats struct { + // Dimensions: Dimensions that these stats have been aggregated on. + Dimensions *EnterpriseCrmEventbusStatsDimensions `json:"dimensions,omitempty"` + + // DurationInSeconds: Average duration in seconds. + DurationInSeconds float64 `json:"durationInSeconds,omitempty"` + + // ErrorRate: Average error rate. + ErrorRate float64 `json:"errorRate,omitempty"` + + // Qps: Queries per second. + Qps float64 `json:"qps,omitempty"` + + // WarningRate: Average warning rate. + WarningRate float64 `json:"warningRate,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Dimensions") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Dimensions") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusStats) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *EnterpriseCrmEventbusStats) UnmarshalJSON(data []byte) error { + type NoMethod EnterpriseCrmEventbusStats + var s1 struct { + DurationInSeconds gensupport.JSONFloat64 `json:"durationInSeconds"` + ErrorRate gensupport.JSONFloat64 `json:"errorRate"` + Qps gensupport.JSONFloat64 `json:"qps"` + WarningRate gensupport.JSONFloat64 `json:"warningRate"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.DurationInSeconds = float64(s1.DurationInSeconds) + s.ErrorRate = float64(s1.ErrorRate) + s.Qps = float64(s1.Qps) + s.WarningRate = float64(s1.WarningRate) + return nil +} + +type EnterpriseCrmEventbusStatsDimensions struct { + ClientId string `json:"clientId,omitempty"` + + // EnumFilterType: Whether to include or exclude the enums matching the + // regex. + // + // Possible values: + // "DEFAULT_INCLUSIVE" + // "EXCLUSIVE" + EnumFilterType string `json:"enumFilterType,omitempty"` + + ErrorEnumString string `json:"errorEnumString,omitempty"` + + // Possible values: + // "UNSPECIFIED" + // "FINAL" - Task has completed successfully or has depleted all retry + // attempts. + // "RETRYABLE" - Task has failed but may be retried. + // "CANCELED" - Task has been deliberately canceled. + RetryAttempt string `json:"retryAttempt,omitempty"` + + TaskName string `json:"taskName,omitempty"` + + TaskNumber string `json:"taskNumber,omitempty"` + + // TriggerId: Stats have been or will be aggregated on set fields for + // any semantically-meaningful combination. + TriggerId string `json:"triggerId,omitempty"` + + WarningEnumString string `json:"warningEnumString,omitempty"` + + WorkflowId string `json:"workflowId,omitempty"` + + WorkflowName string `json:"workflowName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ClientId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ClientId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusStatsDimensions) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusStatsDimensions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray struct { + BooleanValues []bool `json:"booleanValues,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BooleanValues") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BooleanValues") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray struct { + DoubleValues []float64 `json:"doubleValues,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DoubleValues") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DoubleValues") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails: Contains +// the details of the execution info of this event: this includes the +// tasks execution details plus the event execution statistics. Next +// available id: 10 +type EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails struct { + EventAttemptStats []*EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats `json:"eventAttemptStats,omitempty"` + + // EventExecutionSnapshot: After snapshot migration, this field will no + // longer be populated, but old execution snapshots will still be + // accessible. + EventExecutionSnapshot []*EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot `json:"eventExecutionSnapshot,omitempty"` + + // EventExecutionState: The execution state of this event. + // + // Possible values: + // "UNSPECIFIED" + // "ON_HOLD" - Event is received and waiting for the execution. This + // happens when firing the event via "postToQueue" or "schedule". + // "IN_PROCESS" - Event is under processing. + // "SUCCEEDED" - Event execution successfully finished. There's no + // more change after this state. + // "FAILED" - Event execution failed. There's no more change after + // this state. + // "CANCELED" - Event execution canceled by user. There's no more + // change after this state. + // "RETRY_ON_HOLD" - Event execution failed and waiting for retry. + // "SUSPENDED" - Event execution suspended and waiting for manual + // intervention. + EventExecutionState string `json:"eventExecutionState,omitempty"` + + // EventRetriesFromBeginningCount: Indicates the number of times the + // execution has restarted from the beginning. + EventRetriesFromBeginningCount int64 `json:"eventRetriesFromBeginningCount,omitempty"` + + // LogFilePath: The log file path (aka. cns address) for this event. + LogFilePath string `json:"logFilePath,omitempty"` + + // NetworkAddress: The network address (aka. bns address) that indicates + // where the event executor is running. + NetworkAddress string `json:"networkAddress,omitempty"` + + // NextExecutionTime: Next scheduled execution time in case the + // execution status was RETRY_ON_HOLD. + NextExecutionTime int64 `json:"nextExecutionTime,omitempty,string"` + + // RyeLockUnheldCount: Used internally and shouldn't be exposed to + // users. A counter for the cron job to record how many times this event + // is in in_process state but don't have a lock consecutively/ + RyeLockUnheldCount int64 `json:"ryeLockUnheldCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EventAttemptStats") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EventAttemptStats") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo: Contains all +// the execution details for a workflow instance. Next available id: 24 +type EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo struct { + // ClientId: The event data user sends as request. + ClientId string `json:"clientId,omitempty"` + + // CreateTime: Auto-generated. + CreateTime int64 `json:"createTime,omitempty,string"` + + // ErrorCode: Final error-code if event failed. + ErrorCode *CrmlogErrorCode `json:"errorCode,omitempty"` + + // Errors: Errors, warnings, and informationals associated with the + // workflow/task. The order in which the errors were added by the + // workflow/task is maintained. + Errors []*EnterpriseCrmEventbusProtoErrorDetail `json:"errors,omitempty"` + + // EventExecutionDetails: The execution info about this event. + EventExecutionDetails *EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails `json:"eventExecutionDetails,omitempty"` + + // EventExecutionInfoId: Auto-generated primary key. + EventExecutionInfoId string `json:"eventExecutionInfoId,omitempty"` + + // ExecutionTraceInfo: Execution trace info to aggregate parent-child + // executions. + ExecutionTraceInfo *EnterpriseCrmEventbusProtoExecutionTraceInfo `json:"executionTraceInfo,omitempty"` + + // LastModifiedTime: Auto-generated. + LastModifiedTime int64 `json:"lastModifiedTime,omitempty,string"` + + // PostMethod: The ways user posts this event. + // + // Possible values: + // "UNSPECIFIED" + // "POST" + // "POST_TO_QUEUE" + // "SCHEDULE" + // "POST_BY_EVENT_CONFIG_ID" + // "POST_WITH_EVENT_DETAILS" + PostMethod string `json:"postMethod,omitempty"` + + // Product: Which Google product the execution_info belongs to. If not + // set, the execution_info belongs to Integration Platform by default. + // + // Possible values: + // "UNSPECIFIED_PRODUCT" + // "IP" + // "APIGEE" + // "SECURITY" + Product string `json:"product,omitempty"` + + // RequestId: Optional. This is used to de-dup incoming request. + RequestId string `json:"requestId,omitempty"` + + // RequestParams: Event parameters come in as part of the request. + RequestParams *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"requestParams,omitempty"` + + // ResponseParams: Event parameters come out as part of the response. + ResponseParams *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"responseParams,omitempty"` + + // SnapshotNumber: Workflow snapshot number. + SnapshotNumber int64 `json:"snapshotNumber,omitempty,string"` + + // Tenant: Tenant this event is created. Used to reschedule the event to + // correct tenant. + Tenant string `json:"tenant,omitempty"` + + // TriggerId: The trigger id of the workflow trigger config. If both + // trigger_id and client_id is present, the workflow is executed from + // the start tasks provided by the matching trigger config otherwise it + // is executed from the default start tasks. + TriggerId string `json:"triggerId,omitempty"` + + // WorkflowId: Required. Pointer to the workflow it is executing. + WorkflowId string `json:"workflowId,omitempty"` + + // WorkflowName: Name of the workflow. + WorkflowName string `json:"workflowName,omitempty"` + + // WorkflowRetryBackoffIntervalSeconds: Time interval in seconds to + // schedule retry of workflow in manifold when workflow is already + // running + WorkflowRetryBackoffIntervalSeconds int64 `json:"workflowRetryBackoffIntervalSeconds,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "ClientId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ClientId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot struct { + // CheckpointTaskNumber: Indicates "right after which checkpoint task's + // execution" this snapshot is taken. + CheckpointTaskNumber string `json:"checkpointTaskNumber,omitempty"` + + // ConditionResults: All of the computed conditions that been + // calculated. + ConditionResults []*EnterpriseCrmEventbusProtoConditionResult `json:"conditionResults,omitempty"` + + // DiffParams: The parameters in Event object that differs from last + // snapshot. + DiffParams *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"diffParams,omitempty"` + + // EventExecutionInfoId: Points to the event execution info this + // snapshot belongs to. + EventExecutionInfoId string `json:"eventExecutionInfoId,omitempty"` + + // EventExecutionSnapshotId: Auto-generated. Used as primary key for + // EventExecutionSnapshots table. + EventExecutionSnapshotId string `json:"eventExecutionSnapshotId,omitempty"` + + EventExecutionSnapshotMetadata *EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata `json:"eventExecutionSnapshotMetadata,omitempty"` + + // EventParams: The parameters in Event object. + EventParams *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"eventParams,omitempty"` + + // SnapshotTime: Indicates when this snapshot is taken. + SnapshotTime int64 `json:"snapshotTime,omitempty,string"` + + // TaskExecutionDetails: All of the task execution details at the given + // point of time. + TaskExecutionDetails []*EnterpriseCrmEventbusProtoTaskExecutionDetails `json:"taskExecutionDetails,omitempty"` + + // TaskName: The task name associated with this snapshot. Could be + // empty. + TaskName string `json:"taskName,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CheckpointTaskNumber") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CheckpointTaskNumber") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmFrontendsEventbusProtoEventParameters: LINT.IfChange +// This message is used for processing and persisting (when applicable) +// key value pair parameters for each event in the event bus. Please see +// go/integration-platform/event_bus.md for more details. Next id: 4 +type EnterpriseCrmFrontendsEventbusProtoEventParameters struct { + // Parameters: Parameters are a part of Event and can be used to + // communicate between different tasks that are part of the same + // workflow execution. + Parameters []*EnterpriseCrmFrontendsEventbusProtoParameterEntry `json:"parameters,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Parameters") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Parameters") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmFrontendsEventbusProtoEventParameters) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmFrontendsEventbusProtoEventParameters + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmFrontendsEventbusProtoIntParameterArray struct { + IntValues googleapi.Int64s `json:"intValues,omitempty"` + + // ForceSendFields is a list of field names (e.g. "IntValues") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "IntValues") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmFrontendsEventbusProtoIntParameterArray) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmFrontendsEventbusProtoIntParameterArray + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmFrontendsEventbusProtoParamSpecEntry: Key-value pair of +// EventBus task parameters. Next id: 13 +type EnterpriseCrmFrontendsEventbusProtoParamSpecEntry struct { + // ClassName: The FQCN of the Java object this represents. A string, for + // example, would be "java.lang.String". If this is "java.lang.Object", + // the parameter can be of any type. + ClassName string `json:"className,omitempty"` + + // CollectionElementClassName: If it is a collection of objects, this + // would be the FCQN of every individual element in the collection. If + // this is "java.lang.Object", the parameter is a collection of any + // type. + CollectionElementClassName string `json:"collectionElementClassName,omitempty"` + + // Config: Optional fields, such as help text and other useful info. + Config *EnterpriseCrmEventbusProtoParamSpecEntryConfig `json:"config,omitempty"` + + // DataType: The data type of the parameter. + // + // Possible values: + // "DATA_TYPE_UNSPECIFIED" + // "STRING_VALUE" + // "INT_VALUE" + // "DOUBLE_VALUE" + // "BOOLEAN_VALUE" + // "PROTO_VALUE" + // "SERIALIZED_OBJECT_VALUE" + // "STRING_ARRAY" + // "INT_ARRAY" + // "DOUBLE_ARRAY" + // "PROTO_ARRAY" + // "PROTO_ENUM" + // "BOOLEAN_ARRAY" + // "PROTO_ENUM_ARRAY" + // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for + // top-level params. They're only meant to support protobufs with BYTES + // (sub)fields. + // "BYTES_ARRAY" + // "NON_SERIALIZABLE_OBJECT" + // "JSON_VALUE" + DataType string `json:"dataType,omitempty"` + + // DefaultValue: Default values for the defined keys. Each value can + // either be string, int, double or any proto message or a serialized + // object. + DefaultValue *EnterpriseCrmFrontendsEventbusProtoParameterValueType `json:"defaultValue,omitempty"` + + // IsDeprecated: If set, this entry is deprecated, so further use of + // this parameter should be prohibited. + IsDeprecated bool `json:"isDeprecated,omitempty"` + + IsOutput bool `json:"isOutput,omitempty"` + + // JsonSchema: If the data_type is JSON_VALUE, then this will define its + // schema. + JsonSchema string `json:"jsonSchema,omitempty"` + + // Key: Key is used to retrieve the corresponding parameter value. This + // should be unique for a given task. These parameters must be + // predefined in the workflow definition. + Key string `json:"key,omitempty"` + + // ProtoDef: Populated if this represents a proto or proto array. + ProtoDef *EnterpriseCrmEventbusProtoParamSpecEntryProtoDefinition `json:"protoDef,omitempty"` + + // Required: If set, the user must provide an input value for this + // parameter. + Required bool `json:"required,omitempty"` + + // ValidationRule: Rule used to validate inputs (individual values and + // collection elements) for this parameter. + ValidationRule *EnterpriseCrmEventbusProtoParamSpecEntryValidationRule `json:"validationRule,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ClassName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ClassName") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmFrontendsEventbusProtoParamSpecEntry) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmFrontendsEventbusProtoParamSpecEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmFrontendsEventbusProtoParamSpecsMessage struct { + Parameters []*EnterpriseCrmFrontendsEventbusProtoParamSpecEntry `json:"parameters,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Parameters") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Parameters") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmFrontendsEventbusProtoParamSpecsMessage) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmFrontendsEventbusProtoParamSpecsMessage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmFrontendsEventbusProtoParameterEntry: Key-value pair of +// EventBus parameters. +type EnterpriseCrmFrontendsEventbusProtoParameterEntry struct { + // DataType: Explicitly getting the type of the parameter. + // + // Possible values: + // "DATA_TYPE_UNSPECIFIED" + // "STRING_VALUE" + // "INT_VALUE" + // "DOUBLE_VALUE" + // "BOOLEAN_VALUE" + // "PROTO_VALUE" + // "SERIALIZED_OBJECT_VALUE" + // "STRING_ARRAY" + // "INT_ARRAY" + // "DOUBLE_ARRAY" + // "PROTO_ARRAY" + // "PROTO_ENUM" + // "BOOLEAN_ARRAY" + // "PROTO_ENUM_ARRAY" + // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for + // top-level params. They're only meant to support protobufs with BYTES + // (sub)fields. + // "BYTES_ARRAY" + // "NON_SERIALIZABLE_OBJECT" + // "JSON_VALUE" + DataType string `json:"dataType,omitempty"` + + // Key: Key is used to retrieve the corresponding parameter value. This + // should be unique for a given fired event. These parameters must be + // predefined in the workflow definition. + Key string `json:"key,omitempty"` + + // Value: Values for the defined keys. Each value can either be string, + // int, double or any proto message. + Value *EnterpriseCrmFrontendsEventbusProtoParameterValueType `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DataType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DataType") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmFrontendsEventbusProtoParameterEntry) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmFrontendsEventbusProtoParameterEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmFrontendsEventbusProtoParameterMap: A generic multi-map +// that holds key value pairs. They keys and values can be of any type, +// unless specified. +type EnterpriseCrmFrontendsEventbusProtoParameterMap struct { + Entries []*EnterpriseCrmFrontendsEventbusProtoParameterMapEntry `json:"entries,omitempty"` + + // KeyType: Option to specify key value type for all entries of the map. + // If provided then field types for all entries must conform to this. + // + // Possible values: + // "DATA_TYPE_UNSPECIFIED" + // "STRING_VALUE" + // "INT_VALUE" + // "DOUBLE_VALUE" + // "BOOLEAN_VALUE" + // "PROTO_VALUE" + // "SERIALIZED_OBJECT_VALUE" + // "STRING_ARRAY" + // "INT_ARRAY" + // "DOUBLE_ARRAY" + // "PROTO_ARRAY" + // "PROTO_ENUM" + // "BOOLEAN_ARRAY" + // "PROTO_ENUM_ARRAY" + // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for + // top-level params. They're only meant to support protobufs with BYTES + // (sub)fields. + // "BYTES_ARRAY" + // "NON_SERIALIZABLE_OBJECT" + // "JSON_VALUE" + KeyType string `json:"keyType,omitempty"` + + // Possible values: + // "DATA_TYPE_UNSPECIFIED" + // "STRING_VALUE" + // "INT_VALUE" + // "DOUBLE_VALUE" + // "BOOLEAN_VALUE" + // "PROTO_VALUE" + // "SERIALIZED_OBJECT_VALUE" + // "STRING_ARRAY" + // "INT_ARRAY" + // "DOUBLE_ARRAY" + // "PROTO_ARRAY" + // "PROTO_ENUM" + // "BOOLEAN_ARRAY" + // "PROTO_ENUM_ARRAY" + // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for + // top-level params. They're only meant to support protobufs with BYTES + // (sub)fields. + // "BYTES_ARRAY" + // "NON_SERIALIZABLE_OBJECT" + // "JSON_VALUE" + ValueType string `json:"valueType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Entries") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Entries") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmFrontendsEventbusProtoParameterMap) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmFrontendsEventbusProtoParameterMap + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmFrontendsEventbusProtoParameterMapEntry: Entry is a pair +// of key and value. +type EnterpriseCrmFrontendsEventbusProtoParameterMapEntry struct { + Key *EnterpriseCrmFrontendsEventbusProtoParameterMapField `json:"key,omitempty"` + + Value *EnterpriseCrmFrontendsEventbusProtoParameterMapField `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Key") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Key") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmFrontendsEventbusProtoParameterMapEntry) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmFrontendsEventbusProtoParameterMapEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmFrontendsEventbusProtoParameterMapField: Field +// represents either the key or value in an entry. +type EnterpriseCrmFrontendsEventbusProtoParameterMapField struct { + // LiteralValue: Passing a literal value. + LiteralValue *EnterpriseCrmFrontendsEventbusProtoParameterValueType `json:"literalValue,omitempty"` + + // ReferenceKey: Referencing one of the WF variables. + ReferenceKey string `json:"referenceKey,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LiteralValue") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LiteralValue") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmFrontendsEventbusProtoParameterMapField) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmFrontendsEventbusProtoParameterMapField + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmFrontendsEventbusProtoParameterValueType: To support +// various types of parameter values. Next available id: 14 +type EnterpriseCrmFrontendsEventbusProtoParameterValueType struct { + BooleanArray *EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray `json:"booleanArray,omitempty"` + + BooleanValue bool `json:"booleanValue,omitempty"` + + DoubleArray *EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray `json:"doubleArray,omitempty"` + + DoubleValue float64 `json:"doubleValue,omitempty"` + + IntArray *EnterpriseCrmFrontendsEventbusProtoIntParameterArray `json:"intArray,omitempty"` + + IntValue int64 `json:"intValue,omitempty,string"` + + JsonValue string `json:"jsonValue,omitempty"` + + ProtoArray *EnterpriseCrmFrontendsEventbusProtoProtoParameterArray `json:"protoArray,omitempty"` + + ProtoValue googleapi.RawMessage `json:"protoValue,omitempty"` + + SerializedObjectValue *EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter `json:"serializedObjectValue,omitempty"` + + StringArray *EnterpriseCrmFrontendsEventbusProtoStringParameterArray `json:"stringArray,omitempty"` + + StringValue string `json:"stringValue,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BooleanArray") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BooleanArray") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmFrontendsEventbusProtoParameterValueType) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmFrontendsEventbusProtoParameterValueType + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *EnterpriseCrmFrontendsEventbusProtoParameterValueType) UnmarshalJSON(data []byte) error { + type NoMethod EnterpriseCrmFrontendsEventbusProtoParameterValueType + var s1 struct { + DoubleValue gensupport.JSONFloat64 `json:"doubleValue"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.DoubleValue = float64(s1.DoubleValue) + return nil +} + +type EnterpriseCrmFrontendsEventbusProtoProtoParameterArray struct { + ProtoValues []googleapi.RawMessage `json:"protoValues,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ProtoValues") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ProtoValues") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmFrontendsEventbusProtoProtoParameterArray) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmFrontendsEventbusProtoProtoParameterArray + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmFrontendsEventbusProtoRollbackStrategy: Next available +// id: 4 +type EnterpriseCrmFrontendsEventbusProtoRollbackStrategy struct { + // Parameters: Optional. The customized parameters the user can pass to + // this task. + Parameters *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"parameters,omitempty"` + + // RollbackTaskImplementationClassName: Required. This is the name of + // the task that needs to be executed upon rollback of this task. + RollbackTaskImplementationClassName string `json:"rollbackTaskImplementationClassName,omitempty"` + + // TaskNumbersToRollback: Required. These are the tasks numbers of the + // tasks whose + // `rollback_strategy.rollback_task_implementation_class_name` needs to + // be executed upon failure of this task. + TaskNumbersToRollback []string `json:"taskNumbersToRollback,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Parameters") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Parameters") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmFrontendsEventbusProtoRollbackStrategy) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmFrontendsEventbusProtoRollbackStrategy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter struct { + ObjectValue string `json:"objectValue,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ObjectValue") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ObjectValue") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmFrontendsEventbusProtoStringParameterArray struct { + StringValues []string `json:"stringValues,omitempty"` + + // ForceSendFields is a list of field names (e.g. "StringValues") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "StringValues") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmFrontendsEventbusProtoStringParameterArray) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmFrontendsEventbusProtoStringParameterArray + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmFrontendsEventbusProtoTaskConfig: The task configuration +// details. This is not the implementation of Task. There might be +// multiple TaskConfigs for the same Task. Next available id: 27 +type EnterpriseCrmFrontendsEventbusProtoTaskConfig struct { + // AlertConfigs: Alert configurations on error rate, warning rate, + // number of runs, durations, etc. + AlertConfigs []*EnterpriseCrmEventbusProtoTaskAlertConfig `json:"alertConfigs,omitempty"` + + // CreateTime: Auto-generated. + CreateTime string `json:"createTime,omitempty"` + + // CreatorEmail: The creator's email address. Auto-generated from the + // user's email. + CreatorEmail string `json:"creatorEmail,omitempty"` + + // Description: User-provided description intended to give more business + // context about the task. + Description string `json:"description,omitempty"` + + // DisableStrictTypeValidation: If this config contains a TypedTask, + // allow validation to succeed if an input is read from the output of + // another TypedTask whose output type is declared as a superclass of + // the requested input type. For instance, if the previous task declares + // an output of type Message, any task with this flag enabled will pass + // validation when attempting to read any proto Message type from the + // resultant Event parameter. + DisableStrictTypeValidation bool `json:"disableStrictTypeValidation,omitempty"` + + // FailurePolicy: Optional. Determines the number of times the task will + // be retried on failure and with what retry strategy. This is + // applicable for asynchronous calls to Eventbus alone (Post To Queue, + // Schedule etc.). + FailurePolicy *EnterpriseCrmEventbusProtoFailurePolicy `json:"failurePolicy,omitempty"` + + // IncomingEdgeCount: The number of edges leading into this TaskConfig. + IncomingEdgeCount int64 `json:"incomingEdgeCount,omitempty"` + + // JsonValidationOption: If set, overrides the option configured in the + // Task implementation class. + // + // Possible values: + // "UNSPECIFIED_JSON_VALIDATION_OPTION" - As per the default behavior, + // no validation will be run. Will not override any option set in a + // Task. + // "SKIP" - Do not run any validation against JSON schemas. + // "PRE_EXECUTION" - Validate all potential input JSON parameters + // against schemas specified in WorkflowParameters. + // "POST_EXECUTION" - Validate all potential output JSON parameters + // against schemas specified in WorkflowParameters. + // "PRE_POST_EXECUTION" - Perform both PRE_EXECUTION and + // POST_EXECUTION validations. + JsonValidationOption string `json:"jsonValidationOption,omitempty"` + + // Label: User-provided label that is attached to this TaskConfig in the + // UI. + Label string `json:"label,omitempty"` + + // LastModifiedTime: Auto-generated. + LastModifiedTime string `json:"lastModifiedTime,omitempty"` + + // NextTasks: The set of tasks that are next in line to be executed as + // per the execution graph defined for the parent event, specified by + // `event_config_id`. Each of these next tasks are executed only if the + // condition associated with them evaluates to true. + NextTasks []*EnterpriseCrmEventbusProtoNextTask `json:"nextTasks,omitempty"` + + // NextTasksExecutionPolicy: The policy dictating the execution of the + // next set of tasks for the current task. + // + // Possible values: + // "UNSPECIFIED" - Default + // "RUN_ALL_MATCH" - Execute all the tasks that satisfy their + // associated condition. + // "RUN_FIRST_MATCH" - Execute the first task that satisfies the + // associated condition. + NextTasksExecutionPolicy string `json:"nextTasksExecutionPolicy,omitempty"` + + // Parameters: The customized parameters the user can pass to this task. + Parameters map[string]EnterpriseCrmFrontendsEventbusProtoParameterEntry `json:"parameters,omitempty"` + + // Position: Optional. Informs the front-end application where to draw + // this task config on the UI. + Position *EnterpriseCrmEventbusProtoCoordinate `json:"position,omitempty"` + + // Precondition: Optional. Standard filter expression evaluated before + // execution. Independent of other conditions and tasks. Can be used to + // enable rollout. e.g. "rollout(5)" will only allow 5% of incoming + // traffic to task. + Precondition string `json:"precondition,omitempty"` + + // PreconditionLabel: Optional. User-provided label that is attached to + // precondition in the UI. + PreconditionLabel string `json:"preconditionLabel,omitempty"` + + // RollbackStrategy: Optional. Contains information about what needs to + // be done upon failure (either a permanent error or after it has been + // retried too many times). + RollbackStrategy *EnterpriseCrmFrontendsEventbusProtoRollbackStrategy `json:"rollbackStrategy,omitempty"` + + // SuccessPolicy: Determines what action to take upon successful task + // completion. + SuccessPolicy *EnterpriseCrmEventbusProtoSuccessPolicy `json:"successPolicy,omitempty"` + + // SynchronousCallFailurePolicy: Optional. Determines the number of + // times the task will be retried on failure and with what retry + // strategy. This is applicable for synchronous calls to Eventbus alone + // (Post). + SynchronousCallFailurePolicy *EnterpriseCrmEventbusProtoFailurePolicy `json:"synchronousCallFailurePolicy,omitempty"` + + // TaskEntity: Copy of the task entity that this task config is an + // instance of. + TaskEntity *EnterpriseCrmFrontendsEventbusProtoTaskEntity `json:"taskEntity,omitempty"` + + // TaskExecutionStrategy: The policy dictating the execution strategy of + // this task. + // + // Possible values: + // "WHEN_ALL_SUCCEED" - Wait until all of its previous tasks finished + // execution, then verify at least one of the edge conditions is met, + // and execute if possible. This should be considered as + // WHEN_ALL_TASKS_SUCCEED. + // "WHEN_ANY_SUCCEED" - Start execution as long as any of its previous + // tasks finished execution and the corresponding edge condition is met + // (since we will execute if only that succeeding edge condition is + // met). + // "WHEN_ALL_TASKS_AND_CONDITIONS_SUCCEED" - Wait until all of its + // previous tasks finished execution, then verify the all edge + // conditions are met and execute if possible. + TaskExecutionStrategy string `json:"taskExecutionStrategy,omitempty"` + + // TaskName: The name for the task. + TaskName string `json:"taskName,omitempty"` + + // TaskNumber: REQUIRED: the identifier of this task within its parent + // event config, specified by the client. This should be unique among + // all the tasks belong to the same event config. We use this field as + // the identifier to find next tasks (via field + // `next_tasks.task_number`). + TaskNumber string `json:"taskNumber,omitempty"` + + // TaskSpec: A string template that allows user to configure task + // parameters (with either literal default values or tokens which will + // be resolved at execution time) for the task. It will eventually + // replace the old "parameters" field. Please refer to + // go/eventbus-task-spec-example for detailed usage example. + TaskSpec string `json:"taskSpec,omitempty"` + + // TaskTemplateName: Used to define task-template name if task is of + // type task-template + TaskTemplateName string `json:"taskTemplateName,omitempty"` + + // TaskType: Defines the type of the task + // + // Possible values: + // "TASK" - Normal IP task + // "ASIS_TEMPLATE" - Task is of As-Is Template type + // "IO_TEMPLATE" - Task is of I/O template type with a different + // underlying task + TaskType string `json:"taskType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AlertConfigs") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AlertConfigs") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmFrontendsEventbusProtoTaskConfig) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmFrontendsEventbusProtoTaskConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmFrontendsEventbusProtoTaskEntity: Contains a task's +// metadata and associated information. Next available id: 7 +type EnterpriseCrmFrontendsEventbusProtoTaskEntity struct { + // DisabledForVpcSc: True if the task has conflict with vpcsc + DisabledForVpcSc bool `json:"disabledForVpcSc,omitempty"` + + // Metadata: Metadata inclueds the task name, author and so on. + Metadata *EnterpriseCrmEventbusProtoTaskMetadata `json:"metadata,omitempty"` + + // ParamSpecs: Declarations for inputs/outputs for a TypedTask. This is + // also associated with the METADATA mask. + ParamSpecs *EnterpriseCrmFrontendsEventbusProtoParamSpecsMessage `json:"paramSpecs,omitempty"` + + // Stats: Deprecated - statistics from the Monarch query. + Stats *EnterpriseCrmEventbusStats `json:"stats,omitempty"` + + // TaskType: Defines the type of the task + // + // Possible values: + // "TASK" - Normal IP task + // "ASIS_TEMPLATE" - Task is of As-Is Template type + // "IO_TEMPLATE" - Task is of I/O template type with a different + // underlying task + TaskType string `json:"taskType,omitempty"` + + // UiConfig: UI configuration for this task Also associated with the + // METADATA mask. + UiConfig *EnterpriseCrmEventbusProtoTaskUiConfig `json:"uiConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisabledForVpcSc") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisabledForVpcSc") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmFrontendsEventbusProtoTaskEntity) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmFrontendsEventbusProtoTaskEntity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmFrontendsEventbusProtoTriggerConfig: Configuration +// detail of a trigger. Next available id: 17 +type EnterpriseCrmFrontendsEventbusProtoTriggerConfig struct { + // AlertConfig: An alert threshold configuration for the [trigger + + // client + workflow] tuple. If these values are not specified in the + // trigger config, default values will be populated by the system. Note + // that there must be exactly one alert threshold configured per [client + // + trigger + workflow] when published. + AlertConfig []*EnterpriseCrmEventbusProtoWorkflowAlertConfig `json:"alertConfig,omitempty"` + + CloudSchedulerConfig *EnterpriseCrmEventbusProtoCloudSchedulerConfig `json:"cloudSchedulerConfig,omitempty"` + + // Description: User-provided description intended to give more business + // context about the task. + Description string `json:"description,omitempty"` + + // EnabledClients: Required. The list of client ids which are enabled to + // execute the workflow using this trigger. In other words, these + // clients have the workflow execution privledges for this trigger. For + // API trigger, the client id in the incoming request is validated + // against the list of enabled clients. For non-API triggers, one + // workflow execution is triggered on behalf of each enabled client. + EnabledClients []string `json:"enabledClients,omitempty"` + + // Label: The user created label for a particular trigger. + Label string `json:"label,omitempty"` + + // NextTasksExecutionPolicy: Dictates how next tasks will be executed. + // + // Possible values: + // "UNSPECIFIED" - Default + // "RUN_ALL_MATCH" - Execute all the tasks that satisfy their + // associated condition. + // "RUN_FIRST_MATCH" - Execute the first task that satisfies the + // associated condition. + NextTasksExecutionPolicy string `json:"nextTasksExecutionPolicy,omitempty"` + + // PauseWorkflowExecutions: Optional. If set to true, any upcoming + // requests for this trigger config will be paused and the executions + // will be resumed later when the flag is reset. The workflow to which + // this trigger config belongs has to be in ACTIVE status for the + // executions to be paused or resumed. + PauseWorkflowExecutions bool `json:"pauseWorkflowExecutions,omitempty"` + + // Position: Optional. Informs the front-end application where to draw + // this trigger config on the UI. + Position *EnterpriseCrmEventbusProtoCoordinate `json:"position,omitempty"` + + // Properties: Configurable properties of the trigger, not to be + // confused with workflow parameters. E.g. "name" is a property for API + // triggers and "subscription" is a property for Cloud Pubsub triggers. + Properties map[string]string `json:"properties,omitempty"` + + // StartTasks: Set of tasks numbers from where the workflow execution is + // started by this trigger. If this is empty, then workflow is executed + // with default start tasks. In the list of start tasks, none of two + // tasks can have direct ancestor-descendant relationships (i.e. in a + // same workflow execution graph). + StartTasks []*EnterpriseCrmEventbusProtoNextTask `json:"startTasks,omitempty"` + + // TriggerCriteria: Optional. When set, Eventbus will run the task + // specified in the trigger_criteria and validate the result using the + // trigger_criteria.condition, and only execute the workflow when result + // is true. + TriggerCriteria *EnterpriseCrmEventbusProtoTriggerCriteria `json:"triggerCriteria,omitempty"` + + // TriggerId: The backend trigger ID. + TriggerId string `json:"triggerId,omitempty"` + + // TriggerNumber: Required. A number to uniquely identify each trigger + // config within the workflow on UI. + TriggerNumber string `json:"triggerNumber,omitempty"` + + // Possible values: + // "UNKNOWN" + // "CLOUD_PUBSUB" + // "GOOPS" + // "SFDC_SYNC" + // "CRON" + // "API" + // "MANIFOLD_TRIGGER" + // "DATALAYER_DATA_CHANGE" + // "SFDC_CHANNEL" + // "CLOUD_PUBSUB_EXTERNAL" + // "SFDC_CDC_CHANNEL" + // "SFDC_PLATFORM_EVENTS_CHANNEL" + // "CLOUD_SCHEDULER" + TriggerType string `json:"triggerType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AlertConfig") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AlertConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmFrontendsEventbusProtoTriggerConfig) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmFrontendsEventbusProtoTriggerConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry struct { + // Attributes: Metadata information about the parameters. + Attributes *EnterpriseCrmEventbusProtoAttributes `json:"attributes,omitempty"` + + // Children: Child parameters nested within this parameter. This field + // only applies to protobuf parameters + Children []*EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry `json:"children,omitempty"` + + // DataType: The data type of the parameter. + // + // Possible values: + // "DATA_TYPE_UNSPECIFIED" + // "STRING_VALUE" + // "INT_VALUE" + // "DOUBLE_VALUE" + // "BOOLEAN_VALUE" + // "PROTO_VALUE" + // "SERIALIZED_OBJECT_VALUE" + // "STRING_ARRAY" + // "INT_ARRAY" + // "DOUBLE_ARRAY" + // "PROTO_ARRAY" + // "PROTO_ENUM" + // "BOOLEAN_ARRAY" + // "PROTO_ENUM_ARRAY" + // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for + // top-level params. They're only meant to support protobufs with BYTES + // (sub)fields. + // "BYTES_ARRAY" + // "NON_SERIALIZABLE_OBJECT" + // "JSON_VALUE" + DataType string `json:"dataType,omitempty"` + + // DefaultValue: Default values for the defined keys. Each value can + // either be string, int, double or any proto message or a serialized + // object. + DefaultValue *EnterpriseCrmFrontendsEventbusProtoParameterValueType `json:"defaultValue,omitempty"` + + // InOutType: Specifies the input/output type for the parameter. + // + // Possible values: + // "IN_OUT_TYPE_UNSPECIFIED" + // "IN" - Input parameters for the workflow. EventBus validates that + // these parameters exist in the workflows before execution. + // "OUT" - Output Parameters for the workflow. EventBus will only + // return the workflow parameters tagged with OUT in the response back. + // "IN_OUT" - Input or Output Parameters. These can be used as both + // input and output. EventBus will validate for the existence of these + // parameters before execution and will also return this parameter back + // in the response. + InOutType string `json:"inOutType,omitempty"` + + // IsTransient: Whether this parameter is a transient parameter. + // go/ip-transient-parameters + IsTransient bool `json:"isTransient,omitempty"` + + // JsonSchema: This schema will be used to validate runtime JSON-typed + // values of this parameter. + JsonSchema string `json:"jsonSchema,omitempty"` + + // Key: Key is used to retrieve the corresponding parameter value. This + // should be unique for a given fired event. These parameters must be + // predefined in the workflow definition. + Key string `json:"key,omitempty"` + + // Name: The name (without prefix) to be displayed in the UI for this + // parameter. E.g. if the key is "foo.bar.myName", then the name would + // be "myName". + Name string `json:"name,omitempty"` + + // ProducedBy: The identifier of the node (TaskConfig/TriggerConfig) + // this parameter was produced by, if it is a transient param or a copy + // of an input param. + ProducedBy *EnterpriseCrmEventbusProtoNodeIdentifier `json:"producedBy,omitempty"` + + Producer string `json:"producer,omitempty"` + + // ProtoDefName: The name of the protobuf type if the parameter has a + // protobuf data type. + ProtoDefName string `json:"protoDefName,omitempty"` + + // ProtoDefPath: If the data type is of type proto or proto array, this + // field needs to be populated with the fully qualified proto name. This + // message, for example, would be + // "enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry". + ProtoDefPath string `json:"protoDefPath,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Attributes") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Attributes") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmFrontendsEventbusProtoWorkflowParameters: LINT.IfChange +// This is the frontend version of WorkflowParameters. It's exactly like +// the backend version except that instead of flattening protobuf +// parameters and treating every field and subfield of a protobuf +// parameter as a separate parameter, the fields/subfields of a protobuf +// parameter will be nested as "children" (see 'children' field below) +// parameters of the parent parameter. Please refer to +// enterprise/crm/eventbus/proto/workflow_parameters.proto for more +// information about WorkflowParameters. +type EnterpriseCrmFrontendsEventbusProtoWorkflowParameters struct { + // Parameters: Parameters are a part of Event and can be used to + // communiticate between different tasks that are part of the same + // workflow execution. + Parameters []*EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry `json:"parameters,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Parameters") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Parameters") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmFrontendsEventbusProtoWorkflowParameters) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmFrontendsEventbusProtoWorkflowParameters + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmLoggingGwsFieldLimits: Describes string and array limits +// when writing to logs. When a limit is exceeded the *shortener_type* +// describes how to shorten the field. next_id: 6 +type EnterpriseCrmLoggingGwsFieldLimits struct { + // Possible values: + // "LOG_ACTION_UNSPECIFIED" + // "DONT_LOG" + // "LOG" + LogAction string `json:"logAction,omitempty"` + + // LogType: To which type(s) of logs the limits apply. + // + // Possible values: + // "LOG_TYPE_UNSPECIFIED" + // "GWS" - Limits apply when log detail records are written to GWS. + // "GTS" - Limits apply when log detail records are written to GTS + // (e.g., RecordIO files). + // "ALL" - Limits apply to *all* output log types. + LogType []string `json:"logType,omitempty"` + + // MaxArraySize: maximum array size. If the array exceds this size, the + // field (list) is truncated. + MaxArraySize int64 `json:"maxArraySize,omitempty"` + + // MaxStringLength: maximum string length. If the field exceeds this + // amount the field is shortened. + MaxStringLength int64 `json:"maxStringLength,omitempty"` + + // Possible values: + // "SHORTENER_TYPE_UNSPECIFIED" + // "SHORTEN" - String is shortened to max_string_length. + // "HASH" - String is replaced by its hex-string hash. + // "SHORTEN_WITH_HASH" - String is replaced by a combination of string + // shortening and a hex-string hash. + // "SHORTEN_EMAIL" - String shortening for email addresses. Shortening + // may be done on the user and/or domain portion of the email address. + // "SHORTEN_EMAIL_WITH_HASH" - String is replaced by a combination of + // string shortening and a hex-string hash for an email address. + // "SHORTEN_DOMAIN" - Shortens a domain name (e.g., as part of an + // email address or URL). + ShortenerType string `json:"shortenerType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LogAction") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LogAction") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmLoggingGwsFieldLimits) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmLoggingGwsFieldLimits + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmLoggingGwsSanitizeOptions: Identifies whether a field +// contains, or may contain, PII or sensitive data, and how to sanitize +// the field if it does. If a field's privacy type cannot be determined +// then it is sanitized (e.g., scrubbed). The specific sanitizer +// implementation is determined by run-time configuration and +// environment options (e.g., prod vs. qa). next_id: 5 +type EnterpriseCrmLoggingGwsSanitizeOptions struct { + // IsAlreadySanitized: If true, the value has already been sanitized and + // needs no further sanitization. For instance, a D3 customer id is + // already an obfuscated entity and *might not* need further + // sanitization. + IsAlreadySanitized bool `json:"isAlreadySanitized,omitempty"` + + // LogType: To which type(s) of logs the sanitize options apply. + // + // Possible values: + // "LOG_TYPE_UNSPECIFIED" + // "GWS" - Limits apply when log detail records are written to GWS. + // "GTS" - Limits apply when log detail records are written to GTS + // (e.g., RecordIO files). + // "ALL" - Limits apply to *all* output log types. + LogType []string `json:"logType,omitempty"` + + // Possible values: + // "PRIVACY_TYPE_UNSPECIFIED" + // "NOT_PII" - Field does *NOT* contain PII or sensitive data. + // "PII" - Field contains PII. + // "SPII" - Field contains Sensitive PII. + // "UNSURE" - Unsure if field contains PII. + Privacy string `json:"privacy,omitempty"` + + // Possible values: + // "SANITIZE_TYPE_UNSPECIFIED" + // "SCRUB" - Replace value with a scrubbed value (usu. a constant). + // "ANONYMIZE" - Transform a value so that it cannot be tracked across + // events. However, a given value, is transformed to the same value + // *within* an event. E.g., "foo.com" is transformed to "0xabcdef" for + // event 1001, and to "0xfedcba" for event 1002. + // "ANONYMIZE_LIMITED_REPEATABLE" - Transform values as with + // ANONYMIZER, but the same transformation is repeated for a limited + // time (e.g., 1 day). + // "OBFUSCATE" - The value is transformed using a well-defined + // obfuscator (e.g., D3_CUSTOMER_ID). + // "ENCRYPT" - The value is encrypted. + // "DO_NOT_SANITIZE" - No sanitization is required. + SanitizeType string `json:"sanitizeType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "IsAlreadySanitized") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "IsAlreadySanitized") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmLoggingGwsSanitizeOptions) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmLoggingGwsSanitizeOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudConnectorsV1AuthConfig: AuthConfig defines details of a +// authentication type. +type GoogleCloudConnectorsV1AuthConfig struct { + // AdditionalVariables: List containing additional auth configs. + AdditionalVariables []*GoogleCloudConnectorsV1ConfigVariable `json:"additionalVariables,omitempty"` + + // AuthType: The type of authentication configured. + // + // Possible values: + // "AUTH_TYPE_UNSPECIFIED" - Authentication type not specified. + // "USER_PASSWORD" - Username and Password Authentication. + // "OAUTH2_JWT_BEARER" - JSON Web Token (JWT) Profile for Oauth 2.0 + // Authorization Grant based authentication + // "OAUTH2_CLIENT_CREDENTIALS" - Oauth 2.0 Client Credentials Grant + // Authentication + // "SSH_PUBLIC_KEY" - SSH Public Key Authentication + // "OAUTH2_AUTH_CODE_FLOW" - Oauth 2.0 Authorization Code Flow + AuthType string `json:"authType,omitempty"` + + // Oauth2ClientCredentials: Oauth2ClientCredentials. + Oauth2ClientCredentials *GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials `json:"oauth2ClientCredentials,omitempty"` + + // Oauth2JwtBearer: Oauth2JwtBearer. + Oauth2JwtBearer *GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer `json:"oauth2JwtBearer,omitempty"` + + // SshPublicKey: SSH Public Key. + SshPublicKey *GoogleCloudConnectorsV1AuthConfigSshPublicKey `json:"sshPublicKey,omitempty"` + + // UserPassword: UserPassword. + UserPassword *GoogleCloudConnectorsV1AuthConfigUserPassword `json:"userPassword,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AdditionalVariables") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AdditionalVariables") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudConnectorsV1AuthConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudConnectorsV1AuthConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials: Parameters +// to support Oauth 2.0 Client Credentials Grant Authentication. See +// https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details. +type GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials struct { + // ClientId: The client identifier. + ClientId string `json:"clientId,omitempty"` + + // ClientSecret: Secret version reference containing the client secret. + ClientSecret *GoogleCloudConnectorsV1Secret `json:"clientSecret,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ClientId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ClientId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer: Parameters to +// support JSON Web Token (JWT) Profile for Oauth 2.0 Authorization +// Grant based authentication. See https://tools.ietf.org/html/rfc7523 +// for more details. +type GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer struct { + // ClientKey: Secret version reference containing a PKCS#8 PEM-encoded + // private key associated with the Client Certificate. This private key + // will be used to sign JWTs used for the jwt-bearer authorization + // grant. Specified in the form as: `projects/*/secrets/*/versions/*`. + ClientKey *GoogleCloudConnectorsV1Secret `json:"clientKey,omitempty"` + + // JwtClaims: JwtClaims providers fields to generate the token. + JwtClaims *GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims `json:"jwtClaims,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ClientKey") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ClientKey") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims: JWT claims +// used for the jwt-bearer authorization grant. +type GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims struct { + // Audience: Value for the "aud" claim. + Audience string `json:"audience,omitempty"` + + // Issuer: Value for the "iss" claim. + Issuer string `json:"issuer,omitempty"` + + // Subject: Value for the "sub" claim. + Subject string `json:"subject,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Audience") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Audience") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudConnectorsV1AuthConfigSshPublicKey: Parameters to support +// Ssh public key Authentication. +type GoogleCloudConnectorsV1AuthConfigSshPublicKey struct { + // CertType: Format of SSH Client cert. + CertType string `json:"certType,omitempty"` + + // SshClientCert: SSH Client Cert. It should contain both public and + // private key. + SshClientCert *GoogleCloudConnectorsV1Secret `json:"sshClientCert,omitempty"` + + // SshClientCertPass: Password (passphrase) for ssh client certificate + // if it has one. + SshClientCertPass *GoogleCloudConnectorsV1Secret `json:"sshClientCertPass,omitempty"` + + // Username: The user account used to authenticate. + Username string `json:"username,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CertType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CertType") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudConnectorsV1AuthConfigSshPublicKey) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudConnectorsV1AuthConfigSshPublicKey + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudConnectorsV1AuthConfigUserPassword: Parameters to support +// Username and Password Authentication. +type GoogleCloudConnectorsV1AuthConfigUserPassword struct { + // Password: Secret version reference containing the password. + Password *GoogleCloudConnectorsV1Secret `json:"password,omitempty"` + + // Username: Username. + Username string `json:"username,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Password") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Password") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudConnectorsV1AuthConfigUserPassword) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudConnectorsV1AuthConfigUserPassword + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudConnectorsV1ConfigVariable: ConfigVariable represents a +// configuration variable present in a Connection. or AuthConfig. +type GoogleCloudConnectorsV1ConfigVariable struct { + // BoolValue: Value is a bool. + BoolValue bool `json:"boolValue,omitempty"` + + // IntValue: Value is an integer + IntValue int64 `json:"intValue,omitempty,string"` + + // Key: Key of the config variable. + Key string `json:"key,omitempty"` + + // SecretValue: Value is a secret. + SecretValue *GoogleCloudConnectorsV1Secret `json:"secretValue,omitempty"` + + // StringValue: Value is a string. + StringValue string `json:"stringValue,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BoolValue") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BoolValue") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudConnectorsV1ConfigVariable) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudConnectorsV1ConfigVariable + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudConnectorsV1Connection: Connection represents an instance +// of connector. +type GoogleCloudConnectorsV1Connection struct { + // AuthConfig: Optional. Configuration for establishing the connection's + // authentication with an external system. + AuthConfig *GoogleCloudConnectorsV1AuthConfig `json:"authConfig,omitempty"` + + // ConfigVariables: Optional. Configuration for configuring the + // connection with an external system. + ConfigVariables []*GoogleCloudConnectorsV1ConfigVariable `json:"configVariables,omitempty"` + + // ConnectorVersion: Required. Connector version on which the connection + // is created. The format is: + // projects/*/locations/*/providers/*/connectors/*/versions/* Only + // global location is supported for ConnectorVersion resource. + ConnectorVersion string `json:"connectorVersion,omitempty"` + + // CreateTime: Output only. Created time. + CreateTime string `json:"createTime,omitempty"` + + // Description: Optional. Description of the resource. + Description string `json:"description,omitempty"` + + // DestinationConfigs: Optional. Configuration of the Connector's + // destination. Only accepted for Connectors that accepts user defined + // destination(s). + DestinationConfigs []*GoogleCloudConnectorsV1DestinationConfig `json:"destinationConfigs,omitempty"` + + // EnvoyImageLocation: Output only. GCR location where the envoy image + // is stored. formatted like: gcr.io/{bucketName}/{imageName} + EnvoyImageLocation string `json:"envoyImageLocation,omitempty"` + + // ImageLocation: Output only. GCR location where the runtime image is + // stored. formatted like: gcr.io/{bucketName}/{imageName} + ImageLocation string `json:"imageLocation,omitempty"` + + // Labels: Optional. Resource labels to represent user-provided + // metadata. Refer to cloud documentation on labels for more details. + // https://cloud.google.com/compute/docs/labeling-resources + Labels map[string]string `json:"labels,omitempty"` + + // LockConfig: Optional. Configuration that indicates whether or not the + // Connection can be edited. + LockConfig *GoogleCloudConnectorsV1LockConfig `json:"lockConfig,omitempty"` + + // Name: Output only. Resource name of the Connection. Format: + // projects/{project}/locations/{location}/connections/{connection} + Name string `json:"name,omitempty"` + + // NodeConfig: Optional. Configuration for the connection. + NodeConfig *GoogleCloudConnectorsV1NodeConfig `json:"nodeConfig,omitempty"` + + // ServiceAccount: Optional. Service account needed for runtime plane to + // access GCP resources. + ServiceAccount string `json:"serviceAccount,omitempty"` + + // ServiceDirectory: Output only. The name of the Service Directory + // service name. Used for Private Harpoon to resolve the ILB address. + // e.g. + // "projects/cloud-connectors-e2e-testing/locations/us-central1/namespace + // s/istio-system/services/istio-ingressgateway-connectors" + ServiceDirectory string `json:"serviceDirectory,omitempty"` + + // Status: Output only. Current status of the connection. + Status *GoogleCloudConnectorsV1ConnectionStatus `json:"status,omitempty"` + + // Suspended: Optional. Suspended indicates if a user has suspended a + // connection or not. + Suspended bool `json:"suspended,omitempty"` + + // UpdateTime: Output only. Updated time. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AuthConfig") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AuthConfig") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudConnectorsV1Connection) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudConnectorsV1Connection + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudConnectorsV1ConnectionStatus: ConnectionStatus indicates +// the state of the connection. +type GoogleCloudConnectorsV1ConnectionStatus struct { + // Description: Description. + Description string `json:"description,omitempty"` + + // State: State. + // + // Possible values: + // "STATE_UNSPECIFIED" - Connection does not have a state yet. + // "CREATING" - Connection is being created. + // "ACTIVE" - Connection is running and ready for requests. + // "INACTIVE" - Connection is stopped. + // "DELETING" - Connection is being deleted. + // "UPDATING" - Connection is being updated. + // "ERROR" - Connection is not running due to an error. + State string `json:"state,omitempty"` + + // Status: Status provides detailed information for the state. + Status string `json:"status,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Description") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudConnectorsV1ConnectionStatus) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudConnectorsV1ConnectionStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type GoogleCloudConnectorsV1Destination struct { + // Host: For publicly routable host. + Host string `json:"host,omitempty"` + + // Port: The port is the target port number that is accepted by the + // destination. + Port int64 `json:"port,omitempty"` + + // ServiceAttachment: PSC service attachments. Format: + // projects/*/regions/*/serviceAttachments/* + ServiceAttachment string `json:"serviceAttachment,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Host") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Host") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudConnectorsV1Destination) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudConnectorsV1Destination + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudConnectorsV1DestinationConfig: Define the Connectors +// target endpoint. +type GoogleCloudConnectorsV1DestinationConfig struct { + // Destinations: The destinations for the key. + Destinations []*GoogleCloudConnectorsV1Destination `json:"destinations,omitempty"` + + // Key: The key is the destination identifier that is supported by the + // Connector. + Key string `json:"key,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Destinations") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Destinations") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudConnectorsV1DestinationConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudConnectorsV1DestinationConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudConnectorsV1LockConfig: Determines whether or no a +// connection is locked. If locked, a reason must be specified. +type GoogleCloudConnectorsV1LockConfig struct { + // Locked: Indicates whether or not the connection is locked. + Locked bool `json:"locked,omitempty"` + + // Reason: Describes why a connection is locked. + Reason string `json:"reason,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Locked") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Locked") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudConnectorsV1LockConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudConnectorsV1LockConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudConnectorsV1NodeConfig: Configuration for the connection. +type GoogleCloudConnectorsV1NodeConfig struct { + // MaxNodeCount: Maximum number of nodes in the runtime nodes. + MaxNodeCount int64 `json:"maxNodeCount,omitempty"` + + // MinNodeCount: Minimum number of nodes in the runtime nodes. + MinNodeCount int64 `json:"minNodeCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MaxNodeCount") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MaxNodeCount") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudConnectorsV1NodeConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudConnectorsV1NodeConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudConnectorsV1Secret: Secret provides a reference to entries +// in Secret Manager. +type GoogleCloudConnectorsV1Secret struct { + // SecretVersion: The resource name of the secret version in the format, + // format as: `projects/*/secrets/*/versions/*`. + SecretVersion string `json:"secretVersion,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SecretVersion") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "SecretVersion") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudConnectorsV1Secret) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudConnectorsV1Secret + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaAccessToken: The access token +// represents the authorization of a specific application to access +// specific parts of a user’s data. +type GoogleCloudIntegrationsV1alphaAccessToken struct { + // AccessToken: The access token encapsulating the security identity of + // a process or thread. + AccessToken string `json:"accessToken,omitempty"` + + // AccessTokenExpireTime: Required. The approximate time until the + // access token retrieved is valid. + AccessTokenExpireTime string `json:"accessTokenExpireTime,omitempty"` + + // RefreshToken: If the access token will expire, use the refresh token + // to obtain another access token. + RefreshToken string `json:"refreshToken,omitempty"` + + // RefreshTokenExpireTime: The approximate time until the refresh token + // retrieved is valid. + RefreshTokenExpireTime string `json:"refreshTokenExpireTime,omitempty"` + + // TokenType: Only support "bearer" token in v1 as bearer token is the + // predominant type used with OAuth 2.0. + TokenType string `json:"tokenType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AccessToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AccessToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaAccessToken) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaAccessToken + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaArchiveBundleRequest: Request for +// ArchiveBundle. +type GoogleCloudIntegrationsV1alphaArchiveBundleRequest struct { +} + +// GoogleCloudIntegrationsV1alphaArchiveBundleResponse: Response for +// ArchiveBundle. +type GoogleCloudIntegrationsV1alphaArchiveBundleResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest: +// Request for ArchiveIntegrationVersion. +type GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest struct { +} + +// GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse: +// Response for ArchiveIntegrationVersion. +type GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// GoogleCloudIntegrationsV1alphaAttemptStats: Status for the execution +// attempt. +type GoogleCloudIntegrationsV1alphaAttemptStats struct { + // EndTime: The end time of the event execution for current attempt. + EndTime string `json:"endTime,omitempty"` + + // StartTime: The start time of the event execution for current attempt. + // This could be in the future if it's been scheduled. + StartTime string `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EndTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaAttemptStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaAttemptStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaAuthConfig: The AuthConfig resource use +// to hold channels and connection config data. +type GoogleCloudIntegrationsV1alphaAuthConfig struct { + // CertificateId: Certificate id for client certificate + CertificateId string `json:"certificateId,omitempty"` + + // CreateTime: Output only. The timestamp when the auth config is + // created. + CreateTime string `json:"createTime,omitempty"` + + // CreatorEmail: The creator's email address. Generated based on the End + // User Credentials/LOAS role of the user making the call. + CreatorEmail string `json:"creatorEmail,omitempty"` + + // CredentialType: Credential type of the encrypted credential. + // + // Possible values: + // "CREDENTIAL_TYPE_UNSPECIFIED" - Unspecified credential type + // "USERNAME_AND_PASSWORD" - Regular username/password pair. + // "API_KEY" - API key. + // "OAUTH2_AUTHORIZATION_CODE" - OAuth 2.0 Authorization Code Grant + // Type. + // "OAUTH2_IMPLICIT" - OAuth 2.0 Implicit Grant Type. + // "OAUTH2_CLIENT_CREDENTIALS" - OAuth 2.0 Client Credentials Grant + // Type. + // "OAUTH2_RESOURCE_OWNER_CREDENTIALS" - OAuth 2.0 Resource Owner + // Credentials Grant Type. + // "JWT" - JWT Token. + // "AUTH_TOKEN" - Auth Token, e.g. bearer token. + // "SERVICE_ACCOUNT" - Service Account which can be used to generate + // token for authentication. + // "CLIENT_CERTIFICATE_ONLY" - Client Certificate only. + // "OIDC_TOKEN" - Google OIDC ID Token + CredentialType string `json:"credentialType,omitempty"` + + // DecryptedCredential: Raw auth credentials. + DecryptedCredential *GoogleCloudIntegrationsV1alphaCredential `json:"decryptedCredential,omitempty"` + + // Description: A description of the auth config. + Description string `json:"description,omitempty"` + + // DisplayName: The name of the auth config. + DisplayName string `json:"displayName,omitempty"` + + // EncryptedCredential: Auth credential encrypted by Cloud KMS. Can be + // decrypted as Credential with proper KMS key. + EncryptedCredential string `json:"encryptedCredential,omitempty"` + + // ExpiryNotificationDuration: User can define the time to receive + // notification after which the auth config becomes invalid. Support up + // to 30 days. Support granularity in hours. + ExpiryNotificationDuration []string `json:"expiryNotificationDuration,omitempty"` + + // LastModifierEmail: The last modifier's email address. Generated based + // on the End User Credentials/LOAS role of the user making the call. + LastModifierEmail string `json:"lastModifierEmail,omitempty"` + + // Name: Resource name of the SFDC instance + // projects/{project}/locations/{location}/authConfigs/{authConfig}. + Name string `json:"name,omitempty"` + + // OverrideValidTime: User provided expiry time to override. For the + // example of Salesforce, username/password credentials can be valid for + // 6 months depending on the instance settings. + OverrideValidTime string `json:"overrideValidTime,omitempty"` + + // Reason: The reason / details of the current status. + Reason string `json:"reason,omitempty"` + + // State: The status of the auth config. + // + // Possible values: + // "STATE_UNSPECIFIED" - Status not specified. + // "VALID" - Valid Auth config. + // "INVALID" - General invalidity, if it doesn't fits in the detailed + // issue below. + // "SOFT_DELETED" - Auth config soft deleted. + // "EXPIRED" - Auth config expired. + // "UNAUTHORIZED" - Auth config unauthorized. + // "UNSUPPORTED" - Auth config not supported. + State string `json:"state,omitempty"` + + // UpdateTime: Output only. The timestamp when the auth config is + // modified. + UpdateTime string `json:"updateTime,omitempty"` + + // ValidTime: The time until the auth config is valid. Empty or max + // value is considered the auth config won't expire. + ValidTime string `json:"validTime,omitempty"` + + // Visibility: The visibility of the auth config. + // + // Possible values: + // "AUTH_CONFIG_VISIBILITY_UNSPECIFIED" - Visibility not specified. + // "PRIVATE" - Profile visible to the creator only. + // "CLIENT_VISIBLE" - Profile visible within the client. + Visibility string `json:"visibility,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CertificateId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CertificateId") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaAuthConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaAuthConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaAuthToken: The credentials to +// authenticate a user agent with a server that is put in HTTP +// Authorization request header. +type GoogleCloudIntegrationsV1alphaAuthToken struct { + // Token: The token for the auth type. + Token string `json:"token,omitempty"` + + // Type: Authentication type, e.g. "Basic", "Bearer", etc. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Token") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Token") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaAuthToken) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaAuthToken + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaBooleanParameterArray: This message +// only contains a field of boolean array. +type GoogleCloudIntegrationsV1alphaBooleanParameterArray struct { + // BooleanValues: Boolean array. + BooleanValues []bool `json:"booleanValues,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BooleanValues") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BooleanValues") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaBooleanParameterArray) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaBooleanParameterArray + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaCancelExecutionRequest: Request for +// cancelling an execution. +type GoogleCloudIntegrationsV1alphaCancelExecutionRequest struct { +} + +// GoogleCloudIntegrationsV1alphaCancelExecutionResponse: Response for +// cancelling an execution. +type GoogleCloudIntegrationsV1alphaCancelExecutionResponse struct { + // IsCanceled: True if cancellation performed successfully + IsCanceled bool `json:"isCanceled,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "IsCanceled") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "IsCanceled") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaCancelExecutionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaCancelExecutionResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaCertificate: The certificate definition +type GoogleCloudIntegrationsV1alphaCertificate struct { + // CertificateStatus: Status of the certificate + // + // Possible values: + // "STATE_UNSPECIFIED" - Unspecified certificate status + // "ACTIVE" - Certificate in active state will be able to use + // "EXPIRED" - Certificate in expired state needs to be updated + CertificateStatus string `json:"certificateStatus,omitempty"` + + // CredentialId: Immutable. Credential id that will be used to register + // with trawler INTERNAL_ONLY + CredentialId string `json:"credentialId,omitempty"` + + // Description: Description of the certificate + Description string `json:"description,omitempty"` + + // DisplayName: Name of the certificate + DisplayName string `json:"displayName,omitempty"` + + // Name: Output only. Auto generated primary key + Name string `json:"name,omitempty"` + + // RawCertificate: Input only. Raw client certificate which would be + // registered with trawler + RawCertificate *GoogleCloudIntegrationsV1alphaClientCertificate `json:"rawCertificate,omitempty"` + + // RequestorId: Immutable. Requestor ID to be used to register + // certificate with trawler + RequestorId string `json:"requestorId,omitempty"` + + // ValidEndTime: Output only. The timestamp after which certificate will + // expire + ValidEndTime string `json:"validEndTime,omitempty"` + + // ValidStartTime: Output only. The timestamp after which certificate + // will be valid + ValidStartTime string `json:"validStartTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CertificateStatus") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CertificateStatus") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaCertificate) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaCertificate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaClientCertificate: Contains client +// certificate information +type GoogleCloudIntegrationsV1alphaClientCertificate struct { + // EncryptedPrivateKey: The ssl certificate encoded in PEM format. This + // string must include the begin header and end footer lines. For + // example, -----BEGIN CERTIFICATE----- + // MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV + // BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw + // MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET + // MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA + // vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 + // JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB + // xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P + // AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB + // Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey + // Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW + // JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr + // 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H + // wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- + EncryptedPrivateKey string `json:"encryptedPrivateKey,omitempty"` + + // Passphrase: 'passphrase' should be left unset if private key is not + // encrypted. Note that 'passphrase' is not the password for web server, + // but an extra layer of security to protected private key. + Passphrase string `json:"passphrase,omitempty"` + + // SslCertificate: The ssl certificate encoded in PEM format. This + // string must include the begin header and end footer lines. For + // example, -----BEGIN CERTIFICATE----- + // MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV + // BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw + // MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET + // MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA + // vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 + // JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB + // xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P + // AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB + // Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey + // Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW + // JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr + // 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H + // wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- + SslCertificate string `json:"sslCertificate,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EncryptedPrivateKey") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EncryptedPrivateKey") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaClientCertificate) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaClientCertificate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaClientConfig: The configuration +// information for the Client +type GoogleCloudIntegrationsV1alphaClientConfig struct { + // BillingType: Indicates the billing type of the client + // + // Possible values: + // "BILLING_TYPE_UNSPECIFIED" - Unspecified billing type + // "BILLING_TYPE_APIGEE_TRIALS" - A trial org provisioned through + // Apigee Provisioning Wizard + // "BILLING_TYPE_APIGEE_SUBSCRIPTION" - Subscription based users of + // Apigee + // "BILLING_TYPE_PAYG" - Consumption based users of IP + BillingType string `json:"billingType,omitempty"` + + // ClientState: Indicates the activity state the client + // + // Possible values: + // "CLIENT_STATE_UNSPECIFIED" - The client state is unspecified + // "CLIENT_STATE_ACTIVE" - The client is active and able to make calls + // to the IP APIs + // "CLIENT_STATE_DISABLED" - The client is disabled and will soon be + // deleted + ClientState string `json:"clientState,omitempty"` + + // CloudKmsConfig: Cloud KMS config for Auth Module to encrypt/decrypt + // credentials. + CloudKmsConfig *GoogleCloudIntegrationsV1alphaCloudKmsConfig `json:"cloudKmsConfig,omitempty"` + + // CloudLoggingConfig: Determines the cloud logging configuration for + // the project + CloudLoggingConfig *GoogleCloudIntegrationsV1alphaCloudLoggingConfig `json:"cloudLoggingConfig,omitempty"` + + // CreateTime: The timestamp when the client was first created. + CreateTime string `json:"createTime,omitempty"` + + // Description: Description of what the client is used for + Description string `json:"description,omitempty"` + + // Id: Globally unique ID (project_id + region) + Id string `json:"id,omitempty"` + + // P4ServiceAccount: The P4SA account associated with this client + P4ServiceAccount string `json:"p4ServiceAccount,omitempty"` + + // ProjectId: The GCP project id of the client associated with + ProjectId string `json:"projectId,omitempty"` + + // Region: The region the client is linked to. + Region string `json:"region,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BillingType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BillingType") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaClientConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaClientConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaCloudKmsConfig: Configuration +// information for Client's Cloud KMS information +type GoogleCloudIntegrationsV1alphaCloudKmsConfig struct { + // Key: Required. A Cloud KMS key is a named object containing one or + // more key versions, along with metadata for the key. A key exists on + // exactly one key ring tied to a specific location. + Key string `json:"key,omitempty"` + + // KeyVersion: Optional. Each version of a key contains key material + // used for encryption or signing. A key's version is represented by an + // integer, starting at 1. To decrypt data or verify a signature, you + // must use the same key version that was used to encrypt or sign the + // data. + KeyVersion string `json:"keyVersion,omitempty"` + + // KmsLocation: Required. Location name of the key ring, e.g. + // "us-west1". + KmsLocation string `json:"kmsLocation,omitempty"` + + // KmsRing: Required. A key ring organizes keys in a specific Google + // Cloud location and allows you to manage access control on groups of + // keys. A key ring's name does not need to be unique across a Google + // Cloud project, but must be unique within a given location. + KmsRing string `json:"kmsRing,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Key") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Key") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaCloudKmsConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaCloudKmsConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaCloudLoggingConfig: Config info for +// Cloud Logging +type GoogleCloudIntegrationsV1alphaCloudLoggingConfig struct { + // Bucket: Cloud bucket name for the project. + Bucket string `json:"bucket,omitempty"` + + // EnableCloudLogging: This field determines whether the logs should be + // sent to cloud logging api + EnableCloudLogging bool `json:"enableCloudLogging,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Bucket") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Bucket") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaCloudLoggingConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaCloudLoggingConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaCloudSchedulerConfig: Cloud Scheduler +// Trigger configuration +type GoogleCloudIntegrationsV1alphaCloudSchedulerConfig struct { + // CronTab: Required. The cron tab of cloud scheduler trigger. + CronTab string `json:"cronTab,omitempty"` + + // ErrorMessage: Optional. When the job was deleted from Pantheon UI, + // error_message will be populated when Get/List integrations + ErrorMessage string `json:"errorMessage,omitempty"` + + // Location: Required. The location where associated cloud scheduler job + // will be created + Location string `json:"location,omitempty"` + + // ServiceAccountEmail: Required. Service account used by Cloud + // Scheduler to trigger the integration at scheduled time + ServiceAccountEmail string `json:"serviceAccountEmail,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CronTab") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CronTab") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaCloudSchedulerConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaCloudSchedulerConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata: Metadata of +// runtime connection schema. +type GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata struct { + // Actions: List of actions. + Actions []string `json:"actions,omitempty"` + + // Entities: List of entity names. + Entities []string `json:"entities,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Actions") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Actions") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest: Request +// for CreateAppsScriptProject rpc call. +type GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest struct { + // AppsScriptProject: The name of the Apps Script project to be created. + AppsScriptProject string `json:"appsScriptProject,omitempty"` + + // AuthConfigId: The auth config id necessary to fetch the necessary + // credentials to create the project for external clients + AuthConfigId string `json:"authConfigId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AppsScriptProject") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AppsScriptProject") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse: +// Response for CreateAppsScriptProject rpc call. +type GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse struct { + // ProjectId: The created AppsScriptProject ID. + ProjectId string `json:"projectId,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ProjectId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ProjectId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaCreateBundleRequest: PROTECT WITH A +// VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. +// Request to create a new Bundle. +type GoogleCloudIntegrationsV1alphaCreateBundleRequest struct { + // BundleId: Required. name of the bundle that will be created + BundleId string `json:"bundleId,omitempty"` + + // Integrations: A list of integrations that can be executed by the + // bundle + Integrations []string `json:"integrations,omitempty"` + + // SecondaryCustomerOrgId: Optional. The prefix for the SA, it should be + // in the format "o". This is an optional field, and if empty service + // account will be created per project, where we are creating bundle. + // This should only be used as the org ID for which we want to run the + // integrations in the bundle. + SecondaryCustomerOrgId string `json:"secondaryCustomerOrgId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BundleId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BundleId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaCreateBundleRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaCreateBundleRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaCreateBundleResponse: Response for +// create bundle. +type GoogleCloudIntegrationsV1alphaCreateBundleResponse struct { + // Config: It contains the bundle data + Config *GoogleCloudIntegrationsV1alphaIntegrationBundleConfig `json:"config,omitempty"` + + // TriggerId: trigger_id of the bundle task + TriggerId string `json:"triggerId,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Config") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Config") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaCreateBundleResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaCreateBundleResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest: Request for +// Creating Cloud Function rpc call. +type GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest struct { + // FunctionName: The function name of CF to be created + FunctionName string `json:"functionName,omitempty"` + + // FunctionRegion: The function region of CF to be created + FunctionRegion string `json:"functionRegion,omitempty"` + + // ProjectId: Indicates the id of the GCP project that the function will + // be created in. + ProjectId string `json:"projectId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FunctionName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FunctionName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse: Response +// for Creating Cloud Function rpc call. +type GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse struct { + // TriggerUrl: The trigger url that will be returned + TriggerUrl string `json:"triggerUrl,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "TriggerUrl") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TriggerUrl") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaCredential: Defines parameters for a +// single, canonical credential. +type GoogleCloudIntegrationsV1alphaCredential struct { + // AuthToken: Auth token credential + AuthToken *GoogleCloudIntegrationsV1alphaAuthToken `json:"authToken,omitempty"` + + // CredentialType: Credential type associated with auth config. + // + // Possible values: + // "CREDENTIAL_TYPE_UNSPECIFIED" - Unspecified credential type + // "USERNAME_AND_PASSWORD" - Regular username/password pair. + // "API_KEY" - API key. + // "OAUTH2_AUTHORIZATION_CODE" - OAuth 2.0 Authorization Code Grant + // Type. + // "OAUTH2_IMPLICIT" - OAuth 2.0 Implicit Grant Type. + // "OAUTH2_CLIENT_CREDENTIALS" - OAuth 2.0 Client Credentials Grant + // Type. + // "OAUTH2_RESOURCE_OWNER_CREDENTIALS" - OAuth 2.0 Resource Owner + // Credentials Grant Type. + // "JWT" - JWT Token. + // "AUTH_TOKEN" - Auth Token, e.g. bearer token. + // "SERVICE_ACCOUNT" - Service Account which can be used to generate + // token for authentication. + // "CLIENT_CERTIFICATE_ONLY" - Client Certificate only. + // "OIDC_TOKEN" - Google OIDC ID Token + CredentialType string `json:"credentialType,omitempty"` + + // Jwt: JWT credential + Jwt *GoogleCloudIntegrationsV1alphaJwt `json:"jwt,omitempty"` + + // Oauth2AuthorizationCode: The api_key and oauth2_implicit are not + // covered in v1 and will be picked up once v1 is implemented. ApiKey + // api_key = 3; OAuth2 authorization code credential + Oauth2AuthorizationCode *GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode `json:"oauth2AuthorizationCode,omitempty"` + + // Oauth2ClientCredentials: OAuth2Implicit oauth2_implicit = 5; OAuth2 + // client credentials + Oauth2ClientCredentials *GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials `json:"oauth2ClientCredentials,omitempty"` + + // Oauth2ResourceOwnerCredentials: OAuth2 resource owner credentials + Oauth2ResourceOwnerCredentials *GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials `json:"oauth2ResourceOwnerCredentials,omitempty"` + + // OidcToken: Google OIDC ID Token + OidcToken *GoogleCloudIntegrationsV1alphaOidcToken `json:"oidcToken,omitempty"` + + // ServiceAccountCredentials: Service account credential + ServiceAccountCredentials *GoogleCloudIntegrationsV1alphaServiceAccountCredentials `json:"serviceAccountCredentials,omitempty"` + + // UsernameAndPassword: Username and password credential + UsernameAndPassword *GoogleCloudIntegrationsV1alphaUsernameAndPassword `json:"usernameAndPassword,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AuthToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AuthToken") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaCredential) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaCredential + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest: +// Request for DeactivateIntegrationVersion. +type GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest struct { +} + +// GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse: +// Response for DeactivateIntegrationVersion. +type GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// GoogleCloudIntegrationsV1alphaDeprovisionClientRequest: Request for +// the Deprovision rpc +type GoogleCloudIntegrationsV1alphaDeprovisionClientRequest struct { +} + +// GoogleCloudIntegrationsV1alphaDoubleParameterArray: This message only +// contains a field of double number array. +type GoogleCloudIntegrationsV1alphaDoubleParameterArray struct { + // DoubleValues: Double number array. + DoubleValues []float64 `json:"doubleValues,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DoubleValues") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DoubleValues") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaDoubleParameterArray) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaDoubleParameterArray + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaDownloadExecutionResponse: Response for +// downloading an execution. +type GoogleCloudIntegrationsV1alphaDownloadExecutionResponse struct { + // Content: The content of downloaded execution. + Content string `json:"content,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Content") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Content") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaDownloadExecutionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaDownloadExecutionResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse: +// Response for DownloadIntegrationVersion. +type GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse struct { + // Content: String representation of the integration version. + Content string `json:"content,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Content") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Content") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsRespons +// e: Response containing all provisioned regions for Connector +// Platform. +type GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse struct { + // Regions: All regions where Connector Platform is provisioned. + Regions []string `json:"regions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Regions") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Regions") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaEventParameter: This message is used +// for processing and persisting (when applicable) key value pair +// parameters for each event in the event bus. +type GoogleCloudIntegrationsV1alphaEventParameter struct { + // Key: Key is used to retrieve the corresponding parameter value. This + // should be unique for a given fired event. These parameters must be + // predefined in the integration definition. + Key string `json:"key,omitempty"` + + // Value: Values for the defined keys. Each value can either be string, + // int, double or any proto message. + Value *GoogleCloudIntegrationsV1alphaValueType `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Key") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Key") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaEventParameter) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaEventParameter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest: The request +// for executing an integration. +type GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest struct { + // DoNotPropagateError: Optional. Flag to determine how to should + // propagate errors. If this flag is set to be true, it will not throw + // an exception. Instead, it will return a {@link + // ExecuteIntegrationsResponse} with an execution id and error messages + // as PostWithTriggerIdExecutionException in {@link EventParameters}. + // The flag is set to be false by default. + DoNotPropagateError bool `json:"doNotPropagateError,omitempty"` + + // ExecutionId: Optional. The id of the ON_HOLD execution to be resumed. + ExecutionId string `json:"executionId,omitempty"` + + // InputParameters: Optional. Input parameters used by integration + // execution. + InputParameters map[string]GoogleCloudIntegrationsV1alphaValueType `json:"inputParameters,omitempty"` + + // ParameterEntries: Optional. Parameters are a part of Event and can be + // used to communicate between different tasks that are part of the same + // integration execution. + ParameterEntries []*EnterpriseCrmFrontendsEventbusProtoParameterEntry `json:"parameterEntries,omitempty"` + + // Parameters: Optional. Passed in as parameters to each integration + // execution. Redacted + Parameters *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"parameters,omitempty"` + + // RequestId: Optional. This is used to de-dup incoming request: if the + // duplicate request was detected, the response from the previous + // execution is returned. + RequestId string `json:"requestId,omitempty"` + + // TriggerId: Required. Matched against all {@link TriggerConfig}s + // across all integrations. i.e. + // TriggerConfig.trigger_id.equals(trigger_id). The trigger_id is in the + // format of `api_trigger/TRIGGER_NAME`. + TriggerId string `json:"triggerId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DoNotPropagateError") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DoNotPropagateError") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse: The +// response for executing an integration. +type GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse struct { + // EventParameters: Details for the integration that were executed. + EventParameters *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"eventParameters,omitempty"` + + // ExecutionFailed: Is true if any execution in the integration failed. + // False otherwise. + ExecutionFailed bool `json:"executionFailed,omitempty"` + + // ExecutionId: The id of the execution corresponding to this run of + // integration. + ExecutionId string `json:"executionId,omitempty"` + + // OutputParameters: OUTPUT parameters in format of Map. Where Key is + // the name of the parameter. Note: Name of the system generated + // parameters are wrapped by backtick(`) to distinguish them from the + // user defined parameters. + OutputParameters googleapi.RawMessage `json:"outputParameters,omitempty"` + + // ParameterEntries: Parameters are a part of Event and can be used to + // communicate between different tasks that are part of the same + // integration execution. + ParameterEntries []*EnterpriseCrmFrontendsEventbusProtoParameterEntry `json:"parameterEntries,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "EventParameters") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EventParameters") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaExecution: The Execution resource +// contains detailed information of an individual integration execution. +type GoogleCloudIntegrationsV1alphaExecution struct { + // CreateTime: Output only. Created time of the execution. + CreateTime string `json:"createTime,omitempty"` + + // DirectSubExecutions: Direct sub executions of the following + // Execution. + DirectSubExecutions []*GoogleCloudIntegrationsV1alphaExecution `json:"directSubExecutions,omitempty"` + + // EventExecutionDetails: The execution info about this event. + EventExecutionDetails *EnterpriseCrmEventbusProtoEventExecutionDetails `json:"eventExecutionDetails,omitempty"` + + // ExecutionDetails: Detailed info of this execution. + ExecutionDetails *GoogleCloudIntegrationsV1alphaExecutionDetails `json:"executionDetails,omitempty"` + + // ExecutionMethod: The ways user posts this event. + // + // Possible values: + // "EXECUTION_METHOD_UNSPECIFIED" - Default value. + // "POST" - Sync post. + // "POST_TO_QUEUE" - Async post. + // "SCHEDULE" - Async post with schedule time. + ExecutionMethod string `json:"executionMethod,omitempty"` + + // Name: Auto-generated primary key. + Name string `json:"name,omitempty"` + + // RequestParameters: Event parameters come in as part of the request. + RequestParameters map[string]GoogleCloudIntegrationsV1alphaValueType `json:"requestParameters,omitempty"` + + // RequestParams: Event parameters come in as part of the request. + RequestParams []*EnterpriseCrmFrontendsEventbusProtoParameterEntry `json:"requestParams,omitempty"` + + // ResponseParameters: Event parameters returned as part of the + // response. + ResponseParameters map[string]GoogleCloudIntegrationsV1alphaValueType `json:"responseParameters,omitempty"` + + // ResponseParams: Event parameters come out as part of the response. + ResponseParams []*EnterpriseCrmFrontendsEventbusProtoParameterEntry `json:"responseParams,omitempty"` + + // TriggerId: The trigger id of the integration trigger config. If both + // trigger_id and client_id is present, the integration is executed from + // the start tasks provided by the matching trigger config otherwise it + // is executed from the default start tasks. + TriggerId string `json:"triggerId,omitempty"` + + // UpdateTime: Output only. Last modified time of the execution. + 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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaExecution) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaExecution + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaExecutionDetails: Contains the details +// of the execution info: this includes the tasks execution details plus +// the event execution statistics. +type GoogleCloudIntegrationsV1alphaExecutionDetails struct { + // AttemptStats: List of Start and end time of the execution attempts. + AttemptStats []*GoogleCloudIntegrationsV1alphaAttemptStats `json:"attemptStats,omitempty"` + + // ExecutionSnapshots: List of snapshots taken during the execution. + ExecutionSnapshots []*GoogleCloudIntegrationsV1alphaExecutionSnapshot `json:"executionSnapshots,omitempty"` + + // State: Status of the execution. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default. + // "PENDING" - Execution is scheduled and awaiting to be triggered. + // "PROCESSING" - Execution is processing. + // "SUCCEEDED" - Execution successfully finished. There's no more + // change after this state. + // "FAILED" - Execution failed. There's no more change after this + // state. + // "CANCELLED" - Execution canceled by user. There's no more change + // after this state. + // "RETRY_ON_HOLD" - Execution failed and waiting for retry. + // "SUSPENDED" - Execution suspended and waiting for manual + // intervention. + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AttemptStats") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AttemptStats") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaExecutionDetails) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaExecutionDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaExecutionSnapshot: Contains the +// snapshot of the execution for a given checkpoint. +type GoogleCloudIntegrationsV1alphaExecutionSnapshot struct { + // CheckpointTaskNumber: Indicates "after which checkpoint task's + // execution" this snapshot is taken. + CheckpointTaskNumber string `json:"checkpointTaskNumber,omitempty"` + + // ExecutionSnapshotMetadata: Metadata of the execution snapshot. + ExecutionSnapshotMetadata *GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata `json:"executionSnapshotMetadata,omitempty"` + + // Params: Parameters used during the execution. + Params map[string]GoogleCloudIntegrationsV1alphaValueType `json:"params,omitempty"` + + // TaskExecutionDetails: All of the task execution details at the given + // point of time. + TaskExecutionDetails []*GoogleCloudIntegrationsV1alphaTaskExecutionDetails `json:"taskExecutionDetails,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CheckpointTaskNumber") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CheckpointTaskNumber") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaExecutionSnapshot) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaExecutionSnapshot + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetada +// ta: Metadata of the execution snapshot. +type GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata struct { + // ExecutionAttempt: the execution attempt number this snapshot belongs + // to. + ExecutionAttempt int64 `json:"executionAttempt,omitempty"` + + // Task: the task name associated with this snapshot. + Task string `json:"task,omitempty"` + + // TaskAttempt: the task attempt number this snapshot belongs to. + TaskAttempt int64 `json:"taskAttempt,omitempty"` + + // TaskNumber: The task number associated with this snapshot. + TaskNumber string `json:"taskNumber,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExecutionAttempt") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExecutionAttempt") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaFailurePolicy: Policy that defines the +// task retry logic and failure type. If no FailurePolicy is defined for +// a task, all its dependent tasks will not be executed (i.e, a +// `retry_strategy` of NONE will be applied). +type GoogleCloudIntegrationsV1alphaFailurePolicy struct { + // IntervalTime: Required if retry_strategy is FIXED_INTERVAL or + // LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines + // the initial interval in seconds for backoff. + IntervalTime string `json:"intervalTime,omitempty"` + + // MaxRetries: Required if retry_strategy is FIXED_INTERVAL or + // LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines + // the number of times the task will be retried if failed. + MaxRetries int64 `json:"maxRetries,omitempty"` + + // RetryStrategy: Defines what happens to the task upon failure. + // + // Possible values: + // "RETRY_STRATEGY_UNSPECIFIED" - UNSPECIFIED. + // "IGNORE" - Ignores the failure of this task. The rest of the + // integration will be executed Assuming this task succeeded. + // "NONE" - Causes a permanent failure of the task. However, if the + // last task(s) of event was successfully completed despite the failure + // of this task, it has no impact on the integration. + // "FATAL" - Causes a permanent failure of the event. It is different + // from NONE because this will mark the event as FAILED by shutting down + // the event execution. + // "FIXED_INTERVAL" - The task will be retried from the failed task + // onwards after a fixed delay. A max-retry count is required to be + // specified with this strategy. A jitter is added to each exponential + // interval so that concurrently failing tasks of the same type do not + // end up retrying after the exact same exponential interval. + // max_retries and interval_in_seconds must be specified. + // "LINEAR_BACKOFF" - The task will be retried from the failed task + // onwards after a fixed delay that linearly increases with each retry + // attempt. A jitter is added to each exponential interval so that + // concurrently failing tasks of the same type do not end up retrying + // after the exact same exponential interval. A max-retry count is + // required to be specified with this strategy. max_retries and + // interval_in_seconds must be specified. + // "EXPONENTIAL_BACKOFF" - The task will be retried after an + // exponentially increasing period of time with each failure. A jitter + // is added to each exponential interval so that concurrently failing + // tasks of the same type do not end up retrying after the exact same + // exponential interval. A max-retry count is required to be specified + // with this strategy. `max_retries` and `interval_in_seconds` must be + // specified. + // "RESTART_INTEGRATION_WITH_BACKOFF" - The entire integration will be + // restarted with the initial parameters that were set when the event + // was fired. A max-retry count is required to be specified with this + // strategy. `max_retries` and `interval_in_seconds` must be specified. + RetryStrategy string `json:"retryStrategy,omitempty"` + + // ForceSendFields is a list of field names (e.g. "IntervalTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "IntervalTime") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaFailurePolicy) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaFailurePolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaGenerateTokenResponse: Returns success +// or error message +type GoogleCloudIntegrationsV1alphaGenerateTokenResponse struct { + // Message: The message that notifies the user if the request succeeded + // or not. + Message string `json:"message,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Message") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Message") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaGenerateTokenResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaGenerateTokenResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaGetBundleResponse: Response for +// GetBundle. +type GoogleCloudIntegrationsV1alphaGetBundleResponse struct { + // Config: It contains the bundle data + Config *GoogleCloudIntegrationsV1alphaIntegrationBundleConfig `json:"config,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Config") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Config") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaGetBundleResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaGetBundleResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaGetClientMetadataResponse: Response for +// the GetClientMetadata rpc +type GoogleCloudIntegrationsV1alphaGetClientMetadataResponse struct { + // Properties: Required. Required: The client configuration that was + // requested + Properties *GoogleCloudIntegrationsV1alphaProjectProperties `json:"properties,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Properties") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Properties") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaGetClientMetadataResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaGetClientMetadataResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaGetClientResponse: Response for the +// GetClient rpc +type GoogleCloudIntegrationsV1alphaGetClientResponse struct { + // Client: Required. Required: The client configuration that was + // requested + Client *GoogleCloudIntegrationsV1alphaClientConfig `json:"client,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Client") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Client") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaGetClientResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaGetClientResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaIntParameterArray: This message only +// contains a field of integer array. +type GoogleCloudIntegrationsV1alphaIntParameterArray struct { + // IntValues: Integer array. + IntValues googleapi.Int64s `json:"intValues,omitempty"` + + // ForceSendFields is a list of field names (e.g. "IntValues") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "IntValues") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaIntParameterArray) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaIntParameterArray + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaIntegration: The integration +// definition. +type GoogleCloudIntegrationsV1alphaIntegration struct { + // Active: Required. If any integration version is published. + Active bool `json:"active,omitempty"` + + // Description: Optional. + Description string `json:"description,omitempty"` + + // Name: Required. The resource name of the integration. + Name string `json:"name,omitempty"` + + // UpdateTime: Output only. Auto-generated. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Active") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Active") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaIntegration) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaIntegration + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaIntegrationAlertConfig: Message to be +// used to configure custom alerting in the {@code EventConfig} protos +// for an event. +type GoogleCloudIntegrationsV1alphaIntegrationAlertConfig struct { + // AggregationPeriod: The period over which the metric value should be + // aggregated and evaluated. Format is , where integer should be a + // positive integer and unit should be one of (s,m,h,d,w) meaning + // (second, minute, hour, day, week). For an EXPECTED_MIN threshold, + // this aggregation_period must be lesser than 24 hours. + AggregationPeriod string `json:"aggregationPeriod,omitempty"` + + // AlertThreshold: For how many contiguous aggregation periods should + // the expected min or max be violated for the alert to be fired. + AlertThreshold int64 `json:"alertThreshold,omitempty"` + + // DisableAlert: Set to false by default. When set to true, the metrics + // are not aggregated or pushed to Monarch for this integration alert. + DisableAlert bool `json:"disableAlert,omitempty"` + + // DisplayName: Name of the alert. This will be displayed in the alert + // subject. If set, this name should be unique within the scope of the + // integration. + DisplayName string `json:"displayName,omitempty"` + + // DurationThreshold: Should be specified only for *AVERAGE_DURATION and + // *PERCENTILE_DURATION metrics. This member should be used to specify + // what duration value the metrics should exceed for the alert to + // trigger. + DurationThreshold string `json:"durationThreshold,omitempty"` + + // MetricType: The type of metric. + // + // Possible values: + // "METRIC_TYPE_UNSPECIFIED" - The default value. Metric type should + // always be set to one of the other non-default values, otherwise it + // will result in an INVALID_ARGUMENT error. + // "EVENT_ERROR_RATE" - Specifies alerting on the rate of errors for + // the enclosing integration. + // "EVENT_WARNING_RATE" - Specifies alerting on the rate of warnings + // for the enclosing integration. Warnings use the same enum values as + // errors. + // "TASK_ERROR_RATE" - Specifies alerting on the rate of errors for + // any task in the enclosing integration. + // "TASK_WARNING_RATE" - Specifies alerting on the rate of warnings + // for any task in the enclosing integration. + // "TASK_RATE" - Specifies alerting on the rate of executions over all + // tasks in the enclosing integration. + // "EVENT_RATE" - Specifies alerting on the number of events executed + // in the given aggregation_period. + // "EVENT_AVERAGE_DURATION" - Specifies alerting on the average + // duration of executions for this integration. + // "EVENT_PERCENTILE_DURATION" - Specifies alerting on the duration + // value of a particular percentile of integration executions. E.g. If + // 10% or more of the integration executions have durations above 5 + // seconds, alert. + // "TASK_AVERAGE_DURATION" - Specifies alerting on the average + // duration of any task in the enclosing integration, + // "TASK_PERCENTILE_DURATION" - Specifies alerting on the duration + // value of a particular percentile of any task executions within the + // enclosing integration. E.g. If 10% or more of the task executions in + // the integration have durations above 5 seconds, alert. + MetricType string `json:"metricType,omitempty"` + + // OnlyFinalAttempt: For either events or tasks, depending on the type + // of alert, count only final attempts, not retries. + OnlyFinalAttempt bool `json:"onlyFinalAttempt,omitempty"` + + // ThresholdType: The threshold type, whether lower(expected_min) or + // upper(expected_max), for which this alert is being configured. If + // value falls below expected_min or exceeds expected_max, an alert will + // be fired. + // + // Possible values: + // "THRESHOLD_TYPE_UNSPECIFIED" - Default. + // "EXPECTED_MIN" - Note that this field will only trigger alerts if + // the integration specifying it runs at least once in 24 hours (which + // is our in-memory retention period for monarch streams). Also note + // that `aggregation_period` for this alert configuration must be less + // than 24 hours. Min value threshold. + // "EXPECTED_MAX" - Max value threshold. + ThresholdType string `json:"thresholdType,omitempty"` + + // ThresholdValue: The metric value, above or below which the alert + // should be triggered. + ThresholdValue *GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue `json:"thresholdValue,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AggregationPeriod") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AggregationPeriod") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaIntegrationAlertConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaIntegrationAlertConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue: +// The threshold value of the metric, above or below which the alert +// should be triggered. See EventAlertConfig or TaskAlertConfig for the +// different alert metric types in each case. For the *RATE metrics, one +// or both of these fields may be set. Zero is the default value and can +// be left at that. For *PERCENTILE_DURATION metrics, one or both of +// these fields may be set, and also, the duration threshold value +// should be specified in the threshold_duration_ms member below. For +// *AVERAGE_DURATION metrics, these fields should not be set at all. A +// different member, threshold_duration_ms, must be set in the +// EventAlertConfig or the TaskAlertConfig. +type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue struct { + // Absolute: Absolute value threshold. + Absolute int64 `json:"absolute,omitempty,string"` + + // Percentage: Percentage threshold. + Percentage int64 `json:"percentage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Absolute") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Absolute") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaIntegrationBundleConfig: This proto +// holds the core runner data in the bundle task. It is not expected to +// be directly edited by the user. Instead, a default value will be +// provided at the task creation time. +type GoogleCloudIntegrationsV1alphaIntegrationBundleConfig struct { + // Integrations: A bundle of integrations that can be executed by the + // task at runtime. + Integrations []string `json:"integrations,omitempty"` + + // ServiceAccount: Output only. The service account created and owned by + // IP and added to the customers GCP project. + ServiceAccount string `json:"serviceAccount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Integrations") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Integrations") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaIntegrationBundleConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaIntegrationBundleConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaIntegrationParameter: Integration +// Parameter is defined in the integration config and are used to +// provide information about data types of the expected parameters and +// provide any default values if needed. They can also be used to add +// custom attributes. These are static in nature and should not be used +// for dynamic event definition. +type GoogleCloudIntegrationsV1alphaIntegrationParameter struct { + // DataType: Type of the parameter. + // + // Possible values: + // "INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED" - Unspecified. + // "STRING_VALUE" - String. + // "INT_VALUE" - Integer. + // "DOUBLE_VALUE" - Double Number. + // "BOOLEAN_VALUE" - Boolean. + // "STRING_ARRAY" - String Array. + // "INT_ARRAY" - Integer Array. + // "DOUBLE_ARRAY" - Double Number Array. + // "BOOLEAN_ARRAY" - Boolean Array. + // "JSON_VALUE" - Json. + // "PROTO_VALUE" - Proto Value (Internal use only). + // "PROTO_ARRAY" - Proto Array (Internal use only). + DataType string `json:"dataType,omitempty"` + + // DefaultValue: Default values for the defined keys. Each value can + // either be string, int, double or any proto message or a serialized + // object. + DefaultValue *GoogleCloudIntegrationsV1alphaValueType `json:"defaultValue,omitempty"` + + // DisplayName: The name (without prefix) to be displayed in the UI for + // this parameter. E.g. if the key is "foo.bar.myName", then the name + // would be "myName". + DisplayName string `json:"displayName,omitempty"` + + // InputOutputType: Specifies the input/output type for the parameter. + // + // Possible values: + // "IN_OUT_TYPE_UNSPECIFIED" - Default. + // "IN" - Input parameters for the integration. EventBus validates + // that these parameters exist in the integrations before execution. + // "OUT" - Output Parameters for the integration. EventBus will only + // return the integration parameters tagged with OUT in the response + // back. + // "IN_OUT" - Input and Output Parameters. These can be used as both + // input and output. EventBus will validate for the existence of these + // parameters before execution and will also return this parameter back + // in the response. + InputOutputType string `json:"inputOutputType,omitempty"` + + // IsTransient: Whether this parameter is a transient parameter. + IsTransient bool `json:"isTransient,omitempty"` + + // JsonSchema: This schema will be used to validate runtime JSON-typed + // values of this parameter. + JsonSchema string `json:"jsonSchema,omitempty"` + + // Key: Key is used to retrieve the corresponding parameter value. This + // should be unique for a given fired event. These parameters must be + // predefined in the integration definition. + Key string `json:"key,omitempty"` + + // Producer: The identifier of the node (TaskConfig/TriggerConfig) this + // parameter was produced by, if it is a transient param or a copy of an + // input param. + Producer string `json:"producer,omitempty"` + + // Searchable: Searchable in the execution log or not. + Searchable bool `json:"searchable,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DataType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DataType") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaIntegrationParameter) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaIntegrationParameter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaIntegrationVersion: The integration +// version definition. +type GoogleCloudIntegrationsV1alphaIntegrationVersion struct { + // CreateTime: Output only. Auto-generated. + CreateTime string `json:"createTime,omitempty"` + + // DatabasePersistencePolicy: Optional. Flag to disable database + // persistence for execution data, including event execution info, + // execution export info, execution metadata index and execution param + // index. + // + // Possible values: + // "DATABASE_PERSISTENCE_POLICY_UNSPECIFIED" - Enables persistence for + // all execution data. + // "DATABASE_PERSISTENCE_DISABLED" - Disables persistence for all + // execution data. + DatabasePersistencePolicy string `json:"databasePersistencePolicy,omitempty"` + + // Description: Optional. The integration description. + Description string `json:"description,omitempty"` + + // IntegrationParameters: Optional. Parameters that are expected to be + // passed to the integration when an event is triggered. This consists + // of all the parameters that are expected in the integration execution. + // This gives the user the ability to provide default values, add + // information like PII and also provide data types of each parameter. + IntegrationParameters []*GoogleCloudIntegrationsV1alphaIntegrationParameter `json:"integrationParameters,omitempty"` + + // IntegrationParametersInternal: Optional. Parameters that are expected + // to be passed to the integration when an event is triggered. This + // consists of all the parameters that are expected in the integration + // execution. This gives the user the ability to provide default values, + // add information like PII and also provide data types of each + // parameter. + IntegrationParametersInternal *EnterpriseCrmFrontendsEventbusProtoWorkflowParameters `json:"integrationParametersInternal,omitempty"` + + // LastModifierEmail: Optional. The last modifier's email address. + // Generated based on the End User Credentials/LOAS role of the user + // making the call. + LastModifierEmail string `json:"lastModifierEmail,omitempty"` + + // LockHolder: Optional. The edit lock holder's email address. Generated + // based on the End User Credentials/LOAS role of the user making the + // call. + LockHolder string `json:"lockHolder,omitempty"` + + // Name: Output only. Auto-generated primary key. + Name string `json:"name,omitempty"` + + // Origin: Optional. The origin that indicates where this integration is + // coming from. + // + // Possible values: + // "UNSPECIFIED" + // "UI" - Workflow is being created via event bus UI. + // "PIPER_V2" - User checked in this workflow in Piper as v2 textproto + // format and we synced it into spanner. + // "PIPER_V3" - User checked in this workflow in piper as v3 textproto + // format and we synced it into spanner. + // "APPLICATION_IP_PROVISIONING" - Workflow is being created via + // Standalone IP Provisioning + Origin string `json:"origin,omitempty"` + + // ParentTemplateId: Optional. The id of the template which was used to + // create this integration_version. + ParentTemplateId string `json:"parentTemplateId,omitempty"` + + // SnapshotNumber: Optional. An increasing sequence that is set when a + // new snapshot is created. The last created snapshot can be identified + // by [workflow_name, org_id latest(snapshot_number)]. However, last + // created snapshot need not be same as the HEAD. So users should always + // use "HEAD" tag to identify the head. + SnapshotNumber int64 `json:"snapshotNumber,omitempty,string"` + + // State: Output only. User should not set it as an input. + // + // Possible values: + // "INTEGRATION_STATE_UNSPECIFIED" - Default. + // "DRAFT" - Draft. + // "ACTIVE" - Active. + // "ARCHIVED" - Archived. + // "SNAPSHOT" - Snapshot. + State string `json:"state,omitempty"` + + // Status: Output only. Generated by eventbus. User should not set it as + // an input. + // + // Possible values: + // "UNKNOWN" + // "DRAFT" + // "ACTIVE" + // "ARCHIVED" + // "SNAPSHOT" + Status string `json:"status,omitempty"` + + // TaskConfigs: Optional. Task configuration for the integration. It's + // optional, but the integration doesn't do anything without + // task_configs. + TaskConfigs []*GoogleCloudIntegrationsV1alphaTaskConfig `json:"taskConfigs,omitempty"` + + // TaskConfigsInternal: Optional. Task configuration for the + // integration. It's optional, but the integration doesn't do anything + // without task_configs. + TaskConfigsInternal []*EnterpriseCrmFrontendsEventbusProtoTaskConfig `json:"taskConfigsInternal,omitempty"` + + // Teardown: Optional. Contains a graph of tasks that will be executed + // before putting the event in a terminal state + // (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar + // to "finally" in code. + Teardown *EnterpriseCrmEventbusProtoTeardown `json:"teardown,omitempty"` + + // TriggerConfigs: Optional. Trigger configurations. + TriggerConfigs []*GoogleCloudIntegrationsV1alphaTriggerConfig `json:"triggerConfigs,omitempty"` + + // TriggerConfigsInternal: Optional. Trigger configurations. + TriggerConfigsInternal []*EnterpriseCrmFrontendsEventbusProtoTriggerConfig `json:"triggerConfigsInternal,omitempty"` + + // UpdateTime: Output only. Auto-generated. + UpdateTime string `json:"updateTime,omitempty"` + + // UserLabel: Optional. A user-defined label that annotates an + // integration version. Typically, this is only set when the integration + // version is created. + UserLabel string `json:"userLabel,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaIntegrationVersion) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaIntegrationVersion + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaJwt: Represents JSON web token(JWT), +// which is a compact, URL-safe means of representing claims to be +// transferred between two parties, enabling the claims to be digitally +// signed or integrity protected. +type GoogleCloudIntegrationsV1alphaJwt struct { + // Jwt: The token calculated by the header, payload and signature. + Jwt string `json:"jwt,omitempty"` + + // JwtHeader: Identifies which algorithm is used to generate the + // signature. + JwtHeader string `json:"jwtHeader,omitempty"` + + // JwtPayload: Contains a set of claims. The JWT specification defines + // seven Registered Claim Names which are the standard fields commonly + // included in tokens. Custom claims are usually also included, + // depending on the purpose of the token. + JwtPayload string `json:"jwtPayload,omitempty"` + + // Secret: User's pre-shared secret to sign the token. + Secret string `json:"secret,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Jwt") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Jwt") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaJwt) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaJwt + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaLiftSuspensionRequest: Request for lift +// Suspension +type GoogleCloudIntegrationsV1alphaLiftSuspensionRequest struct { + // SuspensionResult: User passed in suspension result and will be used + // to control workflow execution branching behavior by setting up + // corresponnding edge condition with suspension result. For example, if + // you want to lift the suspension, you can pass "Approved", or if you + // want to reject the suspension and terminate workfloe execution, you + // can pass "Rejected" and terminate the workflow execution with + // configuring the edge condition. + SuspensionResult string `json:"suspensionResult,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SuspensionResult") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "SuspensionResult") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaLiftSuspensionRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaLiftSuspensionRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaLiftSuspensionResponse: Response of +// lift Suspense +type GoogleCloudIntegrationsV1alphaLiftSuspensionResponse struct { + // EventExecutionInfoId: Execution Id that will be returned + EventExecutionInfoId string `json:"eventExecutionInfoId,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "EventExecutionInfoId") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EventExecutionInfoId") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaLiftSuspensionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaLiftSuspensionResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest: Request +// for LinkAppsScriptProject rpc call. +type GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest struct { + // ScriptId: The id of the Apps Script project to be linked. + ScriptId string `json:"scriptId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ScriptId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ScriptId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse: Response +// for LinkAppsScriptProject rpc call. +type GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse struct { + // ScriptId: The id of the linked Apps Script project. + ScriptId string `json:"scriptId,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ScriptId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ScriptId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaListAuthConfigsResponse: Response to +// list AuthConfigs. +type GoogleCloudIntegrationsV1alphaListAuthConfigsResponse struct { + // AuthConfigs: The list of AuthConfigs retrieved. + AuthConfigs []*GoogleCloudIntegrationsV1alphaAuthConfig `json:"authConfigs,omitempty"` + + // NextPageToken: The token used to retrieve the next page of results. + 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. "AuthConfigs") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AuthConfigs") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaListAuthConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaListAuthConfigsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaListCertificatesResponse: Response to +// list Certificates. +type GoogleCloudIntegrationsV1alphaListCertificatesResponse struct { + // Certificates: The list of Certificates retrieved. + Certificates []*GoogleCloudIntegrationsV1alphaCertificate `json:"certificates,omitempty"` + + // NextPageToken: The token used to retrieve the next page of results. + 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. "Certificates") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Certificates") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaListCertificatesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaListCertificatesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaListConnectionsResponse: Response +// containing Connections listed by region. +type GoogleCloudIntegrationsV1alphaListConnectionsResponse struct { + // Connections: Connections. + Connections []*GoogleCloudConnectorsV1Connection `json:"connections,omitempty"` + + // NextPageToken: Next page token. + 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. "Connections") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Connections") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaListConnectionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaListConnectionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse: +// Response for listing the integration execution snapshot. +type GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse struct { + // ExecutionSnapshots: Required. The detailed information for the + // execution snapshot. + ExecutionSnapshots []*EnterpriseCrmEventbusProtoEventExecutionSnapshot `json:"executionSnapshots,omitempty"` + + // NextPageToken: The token returned in the previous response. + 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. "ExecutionSnapshots") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExecutionSnapshots") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaListExecutionsResponse: Response for +// listing the integration execution data. +type GoogleCloudIntegrationsV1alphaListExecutionsResponse struct { + // ExecutionInfos: Required. The detailed information of requested + // executions. + ExecutionInfos []*EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo `json:"executionInfos,omitempty"` + + // Executions: The detailed information of requested executions + Executions []*GoogleCloudIntegrationsV1alphaExecution `json:"executions,omitempty"` + + // NextPageToken: The token used to retrieve the next page results. + 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. "ExecutionInfos") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExecutionInfos") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaListExecutionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaListExecutionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse: +// Response for ListIntegrationVersions. +type GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse struct { + // IntegrationVersions: The integrations which match the request. + IntegrationVersions []*GoogleCloudIntegrationsV1alphaIntegrationVersion `json:"integrationVersions,omitempty"` + + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // NoPermission: Whether the user has no permission on the version or + // not. + NoPermission bool `json:"noPermission,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "IntegrationVersions") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "IntegrationVersions") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaListIntegrationsResponse: Response for +// ListIntegrations. +type GoogleCloudIntegrationsV1alphaListIntegrationsResponse struct { + // Integrations: The integrations which match the request. + Integrations []*GoogleCloudIntegrationsV1alphaIntegration `json:"integrations,omitempty"` + + // NextPageToken: The next page token for the response. + 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. "Integrations") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Integrations") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaListIntegrationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaListIntegrationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse: +// Response for listing RuntimeActionSchemas for a specific Connection. +type GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse struct { + // NextPageToken: Next page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // RuntimeActionSchemas: Runtime action schemas. + RuntimeActionSchemas []*GoogleCloudIntegrationsV1alphaRuntimeActionSchema `json:"runtimeActionSchemas,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse: +// Response for listing RuntimeEntitySchemas for a specific Connection. +type GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse struct { + // NextPageToken: Next page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // RuntimeEntitySchemas: Runtime entity schemas. + RuntimeEntitySchemas []*GoogleCloudIntegrationsV1alphaRuntimeEntitySchema `json:"runtimeEntitySchemas,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse: Response to +// list SfdcChannels. +type GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse struct { + // NextPageToken: The token used to retrieve the next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // SfdcChannels: The list of SfdcChannels retrieved. + SfdcChannels []*GoogleCloudIntegrationsV1alphaSfdcChannel `json:"sfdcChannels,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse: Response to +// list SfdcInstances. +type GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse struct { + // NextPageToken: The token used to retrieve the next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // SfdcInstances: The list of SfdcInstances retrieved. + SfdcInstances []*GoogleCloudIntegrationsV1alphaSfdcInstance `json:"sfdcInstances,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaListSuspensionsResponse: Response for +// Suspensions.ListSuspensions. +type GoogleCloudIntegrationsV1alphaListSuspensionsResponse struct { + // NextPageToken: Token to retrieve the next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Suspensions: The suspensions for the relevant execution which the + // caller has permissions to view and resolve. + Suspensions []*GoogleCloudIntegrationsV1alphaSuspension `json:"suspensions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaListSuspensionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaListSuspensionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse: This is a UI +// only method and will be moved away. Response for ListTaskEntities. +type GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse struct { + // TaskEntities: The list of the tasks. + TaskEntities []*EnterpriseCrmFrontendsEventbusProtoTaskEntity `json:"taskEntities,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "TaskEntities") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TaskEntities") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest: The +// request to get data for monarch connector config. +type GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest struct { + // Duration: How long the series data range: "1h","1d",etc. + Duration string `json:"duration,omitempty"` + + // EndTime: Final time to query over, or the current time if left unset. + EndTime string `json:"endTime,omitempty"` + + // MashQuery: Required. Query for searching data in monarch. + MashQuery *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQuery `json:"mashQuery,omitempty"` + + // MetricFieldTable: Returns a table of all possible metric field values + // within the specified duration, ignoring any data samples. Useful for + // autocomplete functionality. + MetricFieldTable bool `json:"metricFieldTable,omitempty"` + + // OutputPeriod: The output period for the query. Must be set if there + // is a window operation within the query and unset otherwise. + OutputPeriod string `json:"outputPeriod,omitempty"` + + // ResponseTemplate: Required. Template for response. + // + // Possible values: + // "DATA_FORMAT_UNSPECIFIED" - Unknown data format + // "TABLE_CONFIG" - Table data + // "APLOSE_SERIES_LIST_CONFIG" - Aplose series data + ResponseTemplate string `json:"responseTemplate,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Duration") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Duration") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestGroupBy: +// MashQuery GroupBy parameters. +type GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestGroupBy struct { + // Fields: Optional. optional, metrics list for GroupBy. + Fields []string `json:"fields,omitempty"` + + // Reducer: Optional. optional, reduce function for GroupBy. + Reducer string `json:"reducer,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Fields") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Fields") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestGroupBy) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestGroupBy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQuery: +// The MashQuery for searching data, set both queries for Join +// Operation. +type GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQuery struct { + // FirstQuery: Required. The components for constructing a mash query. + // Set "point_operation" if this is a single query + FirstQuery *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryComponent `json:"firstQuery,omitempty"` + + // OperationMode: Optional. optional, only set when joining 2 queries. + // By default join 2 queries with join operation. + OperationMode *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationMode `json:"operationMode,omitempty"` + + // SecondQuery: Optional. optional, only set when joining 2 queries. Set + // "point_operation" for joined query. + SecondQuery *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryComponent `json:"secondQuery,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FirstQuery") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FirstQuery") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQuery) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQuery + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryCom +// ponent: The components for constructing MashQuery. +type GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryComponent struct { + // BorgTaskMetric: Required. The metric for monarch.BorgTask. + // + // Possible values: + // "BORG_TASK_METRIC_UNSPECIFIED" - Unknown metric + // "TASK_INDIVIDUAL_COUNT" - Metric end with: + // "/task/individual_count". + // "EVENT_COUNT" - Metric end with: "/event/count". + // "EVENT_DURATION" - Metric end with: "/event/duration". + // "TASK_INDIVIDUAL_DURATION" - Metric end with: + // "/task/individual_duration". + BorgTaskMetric string `json:"borgTaskMetric,omitempty"` + + // DataFilters: Optional. optional, filters on fetched data, + // "metric:client_id" not supported. + DataFilters []string `json:"dataFilters,omitempty"` + + // FetchFilters: Optional. optional, filters for Fetch Raw, + // "metric:client_id" not supported. + FetchFilters []string `json:"fetchFilters,omitempty"` + + // GroupBy: Optional. optional, GroupBy variables. + GroupBy *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestGroupBy `json:"groupBy,omitempty"` + + // PointOperation: Optional. optional, Point Operation on single query + // or joined query. + PointOperation string `json:"pointOperation,omitempty"` + + // TimeDelta: Required. Window time delta. + TimeDelta string `json:"timeDelta,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BorgTaskMetric") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BorgTaskMetric") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryComponent) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryComponent + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOpe +// rationMode: Operation between 2 query +type GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationMode struct { + // JoinConfig: Optional. join operation + JoinConfig *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationModeJoinConfig `json:"joinConfig,omitempty"` + + // OperationType: Optional. optional operation types. + // + // Possible values: + // "OPERATION_TYPE_UNSPECIFIED" - By default join. + // "UNION" - Union operation + // "JOIN" - Join Operation + OperationType string `json:"operationType,omitempty"` + + // UnionConfig: Optional. union operation + UnionConfig *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationModeUnionConfig `json:"unionConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "JoinConfig") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "JoinConfig") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationMode) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationMode + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOpe +// rationModeJoinConfig: Join Operation +type GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationModeJoinConfig struct { +} + +// GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOpe +// rationModeUnionConfig: Union operation +type GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationModeUnionConfig struct { + // Reducer: Optional. optional, reduce function + Reducer string `json:"reducer,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Reducer") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Reducer") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationModeUnionConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationModeUnionConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse: The +// response for getting Execution stats. +type GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse struct { + // AplosSeriesListData: List of points. + AplosSeriesListData *EnterpriseCrmCardsTemplatesAplosSeriesListData `json:"aplosSeriesListData,omitempty"` + + // TableData: Data in form of table. + TableData *EnterpriseCrmCardsTabularData `json:"tableData,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AplosSeriesListData") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AplosSeriesListData") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaNextTask: The task that is next in line +// to be executed, if the condition specified evaluated to true. +type GoogleCloudIntegrationsV1alphaNextTask struct { + // Condition: Standard filter expression for this task to become an + // eligible next task. + Condition string `json:"condition,omitempty"` + + // Description: User-provided description intended to give additional + // business context about the task. + Description string `json:"description,omitempty"` + + // DisplayName: User-provided label that is attached to this edge in the + // UI. + DisplayName string `json:"displayName,omitempty"` + + // TaskConfigId: ID of the next task. + TaskConfigId string `json:"taskConfigId,omitempty"` + + // TaskId: Task number of the next task. + TaskId string `json:"taskId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Condition") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Condition") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaNextTask) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaNextTask + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode: The OAuth Type +// where the client sends request with the client id and requested +// scopes to auth endpoint. User sees a consent screen and auth code is +// received at specified redirect url afterwards. The auth code is then +// combined with the client id and secret and sent to the token endpoint +// in exchange for the access and refresh token. The refresh token can +// be used to fetch new access tokens. +type GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode struct { + // AccessToken: The access token received from the token endpoint. + AccessToken *GoogleCloudIntegrationsV1alphaAccessToken `json:"accessToken,omitempty"` + + // ApplyReauthPolicy: Indicates if the user has opted in Google Reauth + // Policy. If opted in, the refresh token will be valid for 20 hours, + // after which time users must re-authenticate in order to obtain a new + // one. + ApplyReauthPolicy bool `json:"applyReauthPolicy,omitempty"` + + // AuthCode: The Auth Code that is used to initially retrieve the access + // token. + AuthCode string `json:"authCode,omitempty"` + + // AuthEndpoint: The auth url endpoint to send the auth code request to. + AuthEndpoint string `json:"authEndpoint,omitempty"` + + // AuthParams: The auth parameters sent along with the auth code + // request. + AuthParams *GoogleCloudIntegrationsV1alphaParameterMap `json:"authParams,omitempty"` + + // ClientId: The client's id. + ClientId string `json:"clientId,omitempty"` + + // ClientSecret: The client's secret. + ClientSecret string `json:"clientSecret,omitempty"` + + // RequestType: Represent how to pass parameters to fetch access token + // + // Possible values: + // "REQUEST_TYPE_UNSPECIFIED" - Unspecified request type + // "REQUEST_BODY" - To pass all the parameters in post body. + // "QUERY_PARAMETERS" - To pass all the parameters as a part of query + // parameter. + // "ENCODED_HEADER" - To pass client id and client secret as base 64 + // encoding of client_id:client_password and rest parameters in post + // body. + RequestType string `json:"requestType,omitempty"` + + // Scope: A space-delimited list of requested scope permissions. + Scope string `json:"scope,omitempty"` + + // TokenEndpoint: The token url endpoint to send the token request to. + TokenEndpoint string `json:"tokenEndpoint,omitempty"` + + // TokenParams: The token parameters sent along with the token request. + TokenParams *GoogleCloudIntegrationsV1alphaParameterMap `json:"tokenParams,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AccessToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AccessToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials: For client +// credentials grant, the client sends a POST request with grant_type as +// 'client_credentials' to the authorization server. The authorization +// server will respond with a JSON object containing the access token. +type GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials struct { + // AccessToken: Access token fetched from the authorization server. + AccessToken *GoogleCloudIntegrationsV1alphaAccessToken `json:"accessToken,omitempty"` + + // ClientId: The client's ID. + ClientId string `json:"clientId,omitempty"` + + // ClientSecret: The client's secret. + ClientSecret string `json:"clientSecret,omitempty"` + + // RequestType: Represent how to pass parameters to fetch access token + // + // Possible values: + // "REQUEST_TYPE_UNSPECIFIED" - Unspecified request type + // "REQUEST_BODY" - To pass all the parameters in post body. + // "QUERY_PARAMETERS" - To pass all the parameters as a part of query + // parameter. + // "ENCODED_HEADER" - To pass client id and client secret as base 64 + // encoding of client_id:client_password and rest parameters in post + // body. + RequestType string `json:"requestType,omitempty"` + + // Scope: A space-delimited list of requested scope permissions. + Scope string `json:"scope,omitempty"` + + // TokenEndpoint: The token endpoint is used by the client to obtain an + // access token by presenting its authorization grant or refresh token. + TokenEndpoint string `json:"tokenEndpoint,omitempty"` + + // TokenParams: Token parameters for the auth request. + TokenParams *GoogleCloudIntegrationsV1alphaParameterMap `json:"tokenParams,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AccessToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AccessToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials: For +// resource owner credentials grant, the client will ask the user for +// their authorization credentials (ususally a username and password) +// and send a POST request to the authorization server. The +// authorization server will respond with a JSON object containing the +// access token. +type GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials struct { + // AccessToken: Access token fetched from the authorization server. + AccessToken *GoogleCloudIntegrationsV1alphaAccessToken `json:"accessToken,omitempty"` + + // ClientId: The client's ID. + ClientId string `json:"clientId,omitempty"` + + // ClientSecret: The client's secret. + ClientSecret string `json:"clientSecret,omitempty"` + + // Password: The user's password. + Password string `json:"password,omitempty"` + + // RequestType: Represent how to pass parameters to fetch access token + // + // Possible values: + // "REQUEST_TYPE_UNSPECIFIED" - Unspecified request type + // "REQUEST_BODY" - To pass all the parameters in post body. + // "QUERY_PARAMETERS" - To pass all the parameters as a part of query + // parameter. + // "ENCODED_HEADER" - To pass client id and client secret as base 64 + // encoding of client_id:client_password and rest parameters in post + // body. + RequestType string `json:"requestType,omitempty"` + + // Scope: A space-delimited list of requested scope permissions. + Scope string `json:"scope,omitempty"` + + // TokenEndpoint: The token endpoint is used by the client to obtain an + // access token by presenting its authorization grant or refresh token. + TokenEndpoint string `json:"tokenEndpoint,omitempty"` + + // TokenParams: Token parameters for the auth request. + TokenParams *GoogleCloudIntegrationsV1alphaParameterMap `json:"tokenParams,omitempty"` + + // Username: The user's username. + Username string `json:"username,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AccessToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AccessToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaOidcToken: OIDC Token +type GoogleCloudIntegrationsV1alphaOidcToken struct { + // Audience: Audience to be used when generating OIDC token. The + // audience claim identifies the recipients that the JWT is intended + // for. + Audience string `json:"audience,omitempty"` + + // ServiceAccountEmail: The service account email to be used as the + // identity for the token. + ServiceAccountEmail string `json:"serviceAccountEmail,omitempty"` + + // Token: ID token obtained for the service account + Token string `json:"token,omitempty"` + + // TokenExpireTime: The approximate time until the token retrieved is + // valid. + TokenExpireTime string `json:"tokenExpireTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Audience") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Audience") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaOidcToken) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaOidcToken + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaParameterMap: A generic multi-map that +// holds key value pairs. They keys and values can be of any type, +// unless specified. +type GoogleCloudIntegrationsV1alphaParameterMap struct { + // Entries: A list of parameter map entries. + Entries []*GoogleCloudIntegrationsV1alphaParameterMapEntry `json:"entries,omitempty"` + + // KeyType: Option to specify key type for all entries of the map. If + // provided then field types for all entries must conform to this. + // + // Possible values: + // "INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED" - Unspecified. + // "STRING_VALUE" - String. + // "INT_VALUE" - Integer. + // "DOUBLE_VALUE" - Double Number. + // "BOOLEAN_VALUE" - Boolean. + // "STRING_ARRAY" - String Array. + // "INT_ARRAY" - Integer Array. + // "DOUBLE_ARRAY" - Double Number Array. + // "BOOLEAN_ARRAY" - Boolean Array. + // "JSON_VALUE" - Json. + // "PROTO_VALUE" - Proto Value (Internal use only). + // "PROTO_ARRAY" - Proto Array (Internal use only). + KeyType string `json:"keyType,omitempty"` + + // ValueType: Option to specify value type for all entries of the map. + // If provided then field types for all entries must conform to this. + // + // Possible values: + // "INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED" - Unspecified. + // "STRING_VALUE" - String. + // "INT_VALUE" - Integer. + // "DOUBLE_VALUE" - Double Number. + // "BOOLEAN_VALUE" - Boolean. + // "STRING_ARRAY" - String Array. + // "INT_ARRAY" - Integer Array. + // "DOUBLE_ARRAY" - Double Number Array. + // "BOOLEAN_ARRAY" - Boolean Array. + // "JSON_VALUE" - Json. + // "PROTO_VALUE" - Proto Value (Internal use only). + // "PROTO_ARRAY" - Proto Array (Internal use only). + ValueType string `json:"valueType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Entries") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Entries") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaParameterMap) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaParameterMap + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaParameterMapEntry: Entry is a pair of +// key and value. +type GoogleCloudIntegrationsV1alphaParameterMapEntry struct { + // Key: Key of the map entry. + Key *GoogleCloudIntegrationsV1alphaParameterMapField `json:"key,omitempty"` + + // Value: Value of the map entry. + Value *GoogleCloudIntegrationsV1alphaParameterMapField `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Key") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Key") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaParameterMapEntry) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaParameterMapEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaParameterMapField: Field represents +// either the key or value in an entry. +type GoogleCloudIntegrationsV1alphaParameterMapField struct { + // LiteralValue: Passing a literal value. + LiteralValue *GoogleCloudIntegrationsV1alphaValueType `json:"literalValue,omitempty"` + + // ReferenceKey: Referencing one of the Integration variables. + ReferenceKey string `json:"referenceKey,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LiteralValue") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LiteralValue") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaParameterMapField) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaParameterMapField + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaProjectProperties: Metadata information +// for the given project +type GoogleCloudIntegrationsV1alphaProjectProperties struct { + // IpEnablementState: An enum value of what the enablement state is for + // the given project + // + // Possible values: + // "IP_ENABLEMENT_STATE_UNSPECIFIED" - The client enablement status is + // unspecified + // "IP_ENABLEMENT_STATE_STANDALONE" - The client is enabled on + // Standalone IP + // "IP_ENABLEMENT_STATE_APIGEE" - The client is enabled on Apigee + // "IP_ENABLEMENT_STATE_APIGEE_ENTITLED" - The client is entitled for + // Apigee but not enabled + IpEnablementState string `json:"ipEnablementState,omitempty"` + + // ProvisionedRegions: A list of provisioned regions on the current + // project + ProvisionedRegions []string `json:"provisionedRegions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "IpEnablementState") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "IpEnablementState") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaProjectProperties) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaProjectProperties + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaProvisionClientRequest: Request for the +// Provision rpc +type GoogleCloudIntegrationsV1alphaProvisionClientRequest struct { + // CloudKmsConfig: Required. Required: Cloud KMS config for AuthModule + // to encrypt/decrypt credentials. + CloudKmsConfig *GoogleCloudIntegrationsV1alphaCloudKmsConfig `json:"cloudKmsConfig,omitempty"` + + // CreateSampleWorkflows: Optional. Indicates if sample workflow should + // be created along with provisioning + CreateSampleWorkflows bool `json:"createSampleWorkflows,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CloudKmsConfig") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CloudKmsConfig") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaProvisionClientRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaProvisionClientRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest: +// Request for PublishIntegrationVersion. +type GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest struct { +} + +// GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse: +// Response for PublishIntegrationVersion. +type GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// GoogleCloudIntegrationsV1alphaResolveSuspensionRequest: Request for +// [Suspensions.ResolveSuspensions]. +type GoogleCloudIntegrationsV1alphaResolveSuspensionRequest struct { + // Suspension: Suspension, containing the event_execution_info_id, + // task_id, and state to set on the corresponding suspension record. + Suspension *GoogleCloudIntegrationsV1alphaSuspension `json:"suspension,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Suspension") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Suspension") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaResolveSuspensionRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaResolveSuspensionRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaResolveSuspensionResponse: Response for +// Suspensions.ResolveSuspensions. +type GoogleCloudIntegrationsV1alphaResolveSuspensionResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// GoogleCloudIntegrationsV1alphaRuntimeActionSchema: Metadata of an +// action, including schemas for its inputs and outputs. +type GoogleCloudIntegrationsV1alphaRuntimeActionSchema struct { + // Action: Name of the action. + Action string `json:"action,omitempty"` + + // InputSchema: Input parameter schema for the action. + InputSchema string `json:"inputSchema,omitempty"` + + // OutputSchema: Output parameter schema for the action. + OutputSchema string `json:"outputSchema,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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Action") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaRuntimeActionSchema) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaRuntimeActionSchema + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaRuntimeEntitySchema: Metadata of an +// entity, including a schema for its properties. +type GoogleCloudIntegrationsV1alphaRuntimeEntitySchema struct { + // ArrayFieldSchema: The above schema, but for an array of the + // associated entity. + ArrayFieldSchema string `json:"arrayFieldSchema,omitempty"` + + // Entity: Name of the entity. + Entity string `json:"entity,omitempty"` + + // FieldSchema: List of fields in the entity. + FieldSchema string `json:"fieldSchema,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ArrayFieldSchema") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ArrayFieldSchema") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaRuntimeEntitySchema) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaRuntimeEntitySchema + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest: The +// request for scheduling an integration. +type GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest struct { + // InputParameters: Optional. Input parameters used by integration + // execution. + InputParameters map[string]GoogleCloudIntegrationsV1alphaValueType `json:"inputParameters,omitempty"` + + // ParameterEntries: Parameters are a part of Event and can be used to + // communicate between different tasks that are part of the same + // integration execution. + ParameterEntries []*EnterpriseCrmFrontendsEventbusProtoParameterEntry `json:"parameterEntries,omitempty"` + + // Parameters: Passed in as parameters to each integration execution. + Parameters *EnterpriseCrmEventbusProtoEventParameters `json:"parameters,omitempty"` + + // RequestId: This is used to de-dup incoming request: if the duplicate + // request was detected, the response from the previous execution is + // returned. + RequestId string `json:"requestId,omitempty"` + + // ScheduleTime: The time that the integration should be executed. If + // the time is less or equal to the current time, the integration is + // executed immediately. + ScheduleTime string `json:"scheduleTime,omitempty"` + + // TriggerId: Matched against all {@link TriggerConfig}s across all + // integrations. i.e. TriggerConfig.trigger_id.equals(trigger_id) + TriggerId string `json:"triggerId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "InputParameters") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "InputParameters") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse: The +// response for executing an integration. +type GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse struct { + // ExecutionInfoIds: The execution info id for the executed + // integrations. + ExecutionInfoIds []string `json:"executionInfoIds,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ExecutionInfoIds") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExecutionInfoIds") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaServiceAccountCredentials: Represents +// the service account which can be used to generate access token for +// authenticating the service call. +type GoogleCloudIntegrationsV1alphaServiceAccountCredentials struct { + // Scope: A space-delimited list of requested scope permissions. + Scope string `json:"scope,omitempty"` + + // ServiceAccount: Name of the service account that has the permission + // to make the request. + ServiceAccount string `json:"serviceAccount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Scope") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Scope") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaServiceAccountCredentials) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaServiceAccountCredentials + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaSfdcChannel: The SfdcChannel that +// points to a CDC or Platform Event Channel. +type GoogleCloudIntegrationsV1alphaSfdcChannel struct { + // ChannelTopic: The Channel topic defined by salesforce once an channel + // is opened + ChannelTopic string `json:"channelTopic,omitempty"` + + // CreateTime: Output only. Time when the channel is created + CreateTime string `json:"createTime,omitempty"` + + // DeleteTime: Output only. Time when the channel was deleted. Empty if + // not deleted. + DeleteTime string `json:"deleteTime,omitempty"` + + // Description: The description for this channel + Description string `json:"description,omitempty"` + + // DisplayName: Client level unique name/alias to easily reference a + // channel. + DisplayName string `json:"displayName,omitempty"` + + // IsActive: Indicated if a channel has any active integrations + // referencing it. Set to false when the channel is created, and set to + // true if there is any integration published with the channel + // configured in it. + IsActive bool `json:"isActive,omitempty"` + + // LastReplayId: Last sfdc messsage replay id for channel + LastReplayId string `json:"lastReplayId,omitempty"` + + // Name: Resource name of the SFDC channel + // projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance}/ + // sfdcChannels/{sfdc_channel}. + Name string `json:"name,omitempty"` + + // UpdateTime: Output only. Time when the channel was last 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. "ChannelTopic") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ChannelTopic") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaSfdcChannel) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaSfdcChannel + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaSfdcInstance: The SfdcInstance resource +// use to hold channels and connection config data. +type GoogleCloudIntegrationsV1alphaSfdcInstance struct { + // AuthConfigId: A list of AuthConfigs that can be tried to open the + // channel to SFDC + AuthConfigId []string `json:"authConfigId,omitempty"` + + // CreateTime: Output only. Time when the instance is created + CreateTime string `json:"createTime,omitempty"` + + // DeleteTime: Output only. Time when the instance was deleted. Empty if + // not deleted. + DeleteTime string `json:"deleteTime,omitempty"` + + // Description: A description of the sfdc instance. + Description string `json:"description,omitempty"` + + // DisplayName: User selected unique name/alias to easily reference an + // instance. + DisplayName string `json:"displayName,omitempty"` + + // Name: Resource name of the SFDC instance + // projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance}. + Name string `json:"name,omitempty"` + + // ServiceAuthority: URL used for API calls after authentication (the + // login authority is configured within the referenced AuthConfig). + ServiceAuthority string `json:"serviceAuthority,omitempty"` + + // SfdcOrgId: The SFDC Org Id. This is defined in salesforce. + SfdcOrgId string `json:"sfdcOrgId,omitempty"` + + // UpdateTime: Output only. Time when the instance was last 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. "AuthConfigId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AuthConfigId") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaSfdcInstance) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaSfdcInstance + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaStringParameterArray: This message only +// contains a field of string array. +type GoogleCloudIntegrationsV1alphaStringParameterArray struct { + // StringValues: String array. + StringValues []string `json:"stringValues,omitempty"` + + // ForceSendFields is a list of field names (e.g. "StringValues") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "StringValues") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaStringParameterArray) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaStringParameterArray + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaSuccessPolicy: Policy that dictates the +// behavior for the task after it completes successfully. +type GoogleCloudIntegrationsV1alphaSuccessPolicy struct { + // FinalState: State to which the execution snapshot status will be set + // if the task succeeds. + // + // Possible values: + // "FINAL_STATE_UNSPECIFIED" - UNSPECIFIED. + // "SUCCEEDED" - The default behavior, where successful tasks will be + // marked as SUCCEEDED. + // "SUSPENDED" - Sets the state to SUSPENDED after executing. This is + // required for SuspensionTask; event execution will continue once the + // user calls ResolveSuspensions with the event_execution_info_id and + // the task number. + FinalState string `json:"finalState,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FinalState") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FinalState") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaSuccessPolicy) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaSuccessPolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaSuspension: A record representing a +// suspension. +type GoogleCloudIntegrationsV1alphaSuspension struct { + // ApprovalConfig: Controls the notifications and approval permissions + // for this suspension. + ApprovalConfig *GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig `json:"approvalConfig,omitempty"` + + // Audit: Metadata pertaining to the resolution of this suspension. + Audit *GoogleCloudIntegrationsV1alphaSuspensionAudit `json:"audit,omitempty"` + + // CreateTime: Output only. Auto-generated. + CreateTime string `json:"createTime,omitempty"` + + // EventExecutionInfoId: Required. ID of the associated execution. + EventExecutionInfoId string `json:"eventExecutionInfoId,omitempty"` + + // Integration: Required. The name of the originating integration. + Integration string `json:"integration,omitempty"` + + // LastModifyTime: Output only. Auto-generated. + LastModifyTime string `json:"lastModifyTime,omitempty"` + + // Name: Resource name for suspensions suspension/{suspension_id} + Name string `json:"name,omitempty"` + + // State: Required. State of this suspension, indicating what action a + // resolver has taken. + // + // Possible values: + // "RESOLUTION_STATE_UNSPECIFIED" - Unset state. + // "PENDING" - The suspension has not yet been resolved. + // "REJECTED" - The resolver has rejected the suspension. + // "LIFTED" - The resolver has lifted the suspension. + State string `json:"state,omitempty"` + + // SuspensionConfig: Controls the notifications and resolver permissions + // for this suspension. + SuspensionConfig *EnterpriseCrmEventbusProtoSuspensionConfig `json:"suspensionConfig,omitempty"` + + // TaskId: Required. Task id of the associated SuspensionTask. + TaskId string `json:"taskId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApprovalConfig") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ApprovalConfig") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaSuspension) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaSuspension + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig: +// Configurations for approving the Suspension. +type GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig struct { + // CustomMessage: Information to provide for recipients. + CustomMessage string `json:"customMessage,omitempty"` + + // EmailAddresses: Email addresses to send approval request to. + EmailAddresses []string `json:"emailAddresses,omitempty"` + + // Expiration: Indicates the next steps when no external actions happen + // on the suspension. + Expiration *GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration `json:"expiration,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CustomMessage") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CustomMessage") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration: +// Expiration configs for the approval request. +type GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration struct { + // ExpireTime: Output only. Time after which the suspension expires, if + // no action taken. + ExpireTime string `json:"expireTime,omitempty"` + + // LiftWhenExpired: Whether the suspension will be REJECTED or LIFTED + // upon expiration. REJECTED is the default behavior. + LiftWhenExpired bool `json:"liftWhenExpired,omitempty"` + + // RemindTime: Time after the previous suspension action reminder, if + // any, is sent using the selected notification option, for a suspension + // which is still PENDING_UNSPECIFIED. + RemindTime string `json:"remindTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExpireTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExpireTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaSuspensionAudit: Contains when and by +// whom the suspension was resolved. +type GoogleCloudIntegrationsV1alphaSuspensionAudit struct { + // ResolveTime: Time at which this suspension was resolved. + ResolveTime string `json:"resolveTime,omitempty"` + + // Resolver: Email address of the person who resolved this suspension. + Resolver string `json:"resolver,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResolveTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ResolveTime") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaSuspensionAudit) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaSuspensionAudit + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest: Request for +// TakeoverEditLock. +type GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest struct { +} + +// GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse: Response for +// TakeoverEditLock. +type GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse struct { + // IntegrationVersion: Version after the lock is acquired by the new + // user. + IntegrationVersion *GoogleCloudIntegrationsV1alphaIntegrationVersion `json:"integrationVersion,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "IntegrationVersion") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "IntegrationVersion") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaTaskConfig: The task configuration +// details. This is not the implementation of Task. There might be +// multiple TaskConfigs for the same Task. +type GoogleCloudIntegrationsV1alphaTaskConfig struct { + // Description: Optional. User-provided description intended to give + // additional business context about the task. + Description string `json:"description,omitempty"` + + // DisplayName: Optional. User-provided label that is attached to this + // TaskConfig in the UI. + DisplayName string `json:"displayName,omitempty"` + + // FailurePolicy: Optional. Determines the number of times the task will + // be retried on failure and with what retry strategy. This is + // applicable for asynchronous calls to Eventbus alone (Post To Queue, + // Schedule etc.). + FailurePolicy *GoogleCloudIntegrationsV1alphaFailurePolicy `json:"failurePolicy,omitempty"` + + // JsonValidationOption: Optional. If set, overrides the option + // configured in the Task implementation class. + // + // Possible values: + // "JSON_VALIDATION_OPTION_UNSPECIFIED" - As per the default behavior, + // no validation will be run. Will not override any option set in a + // Task. + // "SKIP" - Do not run any validation against JSON schemas. + // "PRE_EXECUTION" - Validate all potential input JSON parameters + // against schemas specified in IntegrationParameter. + // "POST_EXECUTION" - Validate all potential output JSON parameters + // against schemas specified in IntegrationParameter. + // "PRE_POST_EXECUTION" - Perform both PRE_EXECUTION and + // POST_EXECUTION validations. + JsonValidationOption string `json:"jsonValidationOption,omitempty"` + + // NextTasks: Optional. The set of tasks that are next in line to be + // executed as per the execution graph defined for the parent event, + // specified by `event_config_id`. Each of these next tasks are executed + // only if the condition associated with them evaluates to true. + NextTasks []*GoogleCloudIntegrationsV1alphaNextTask `json:"nextTasks,omitempty"` + + // NextTasksExecutionPolicy: Optional. The policy dictating the + // execution of the next set of tasks for the current task. + // + // Possible values: + // "NEXT_TASKS_EXECUTION_POLICY_UNSPECIFIED" - Default. + // "RUN_ALL_MATCH" - Execute all the tasks that satisfy their + // associated condition. + // "RUN_FIRST_MATCH" - Execute the first task that satisfies the + // associated condition. + NextTasksExecutionPolicy string `json:"nextTasksExecutionPolicy,omitempty"` + + // Parameters: Optional. The customized parameters the user can pass to + // this task. + Parameters map[string]GoogleCloudIntegrationsV1alphaEventParameter `json:"parameters,omitempty"` + + // SuccessPolicy: Optional. Determines what action to take upon + // successful task completion. + SuccessPolicy *GoogleCloudIntegrationsV1alphaSuccessPolicy `json:"successPolicy,omitempty"` + + // SynchronousCallFailurePolicy: Optional. Determines the number of + // times the task will be retried on failure and with what retry + // strategy. This is applicable for synchronous calls to Eventbus alone + // (Post). + SynchronousCallFailurePolicy *GoogleCloudIntegrationsV1alphaFailurePolicy `json:"synchronousCallFailurePolicy,omitempty"` + + // Task: Optional. The name for the task. + Task string `json:"task,omitempty"` + + // TaskExecutionStrategy: Optional. The policy dictating the execution + // strategy of this task. + // + // Possible values: + // "TASK_EXECUTION_STRATEGY_UNSPECIFIED" - Default. If the strategy is + // not set explicitly, it will default to `WHEN_ALL_SUCCEED`. + // "WHEN_ALL_SUCCEED" - Wait until all of its previous tasks finished + // execution, then verify at least one of the edge conditions is met, + // and execute if possible. This should be considered as + // WHEN_ALL_TASKS_SUCCEED. + // "WHEN_ANY_SUCCEED" - Start execution as long as any of its previous + // tasks finished execution and the corresponding edge condition is met + // (since we will execute if only that succeeding edge condition is + // met). + // "WHEN_ALL_TASKS_AND_CONDITIONS_SUCCEED" - Wait until all of its + // previous tasks finished execution, then verify the all edge + // conditions are met and execute if possible. + TaskExecutionStrategy string `json:"taskExecutionStrategy,omitempty"` + + // TaskId: Required. The identifier of this task within its parent event + // config, specified by the client. This should be unique among all the + // tasks belong to the same event config. We use this field as the + // identifier to find next tasks (via field `next_tasks.task_id`). + TaskId string `json:"taskId,omitempty"` + + // TaskTemplate: Optional. Used to define task-template name if task is + // of type task-template + TaskTemplate string `json:"taskTemplate,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Description") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaTaskConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaTaskConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaTaskExecutionDetails: Contains the +// details of the execution of this task. +type GoogleCloudIntegrationsV1alphaTaskExecutionDetails struct { + // TaskAttemptStats: Status for the current task execution attempt. + TaskAttemptStats []*GoogleCloudIntegrationsV1alphaAttemptStats `json:"taskAttemptStats,omitempty"` + + // TaskExecutionState: The execution state of this task. + // + // Possible values: + // "TASK_EXECUTION_STATE_UNSPECIFIED" - Default value. + // "PENDING_EXECUTION" - Task is waiting for its precondition tasks to + // finish to start the execution. + // "IN_PROCESS" - Task is under processing. + // "SUCCEED" - Task execution successfully finished. There's no more + // change after this state. + // "FAILED" - Task execution failed. There's no more change after this + // state. + // "FATAL" - Task execution failed and cause the whole event execution + // to fail immediately. There's no more change after this state. + // "RETRY_ON_HOLD" - Task execution failed and waiting for retry. + // "SKIPPED" - Task execution skipped. This happens when its + // precondition wasn't met, or the event execution been canceled before + // reach to the task. There's no more changes after this state. + // "CANCELLED" - Task execution canceled when in progress. This + // happens when event execution been canceled or any other task fall in + // fatal state. + // "PENDING_ROLLBACK" - Task is waiting for its dependency tasks' + // rollback to finish to start its rollback. + // "ROLLBACK_IN_PROCESS" - Task is rolling back. + // "ROLLEDBACK" - Task is rolled back. This is the state we will set + // regardless of rollback succeeding or failing. + // "SUSPENDED" - Task is a SuspensionTask which has executed once, + // creating a pending suspension. + TaskExecutionState string `json:"taskExecutionState,omitempty"` + + // TaskNumber: Pointer to the task config it used for execution. + TaskNumber string `json:"taskNumber,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TaskAttemptStats") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TaskAttemptStats") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaTaskExecutionDetails) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaTaskExecutionDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaTestIntegrationsRequest: The request +// for testing an integration. +type GoogleCloudIntegrationsV1alphaTestIntegrationsRequest struct { + // ClientId: Required. This is used to identify the client on whose + // behalf the event will be executed. + ClientId string `json:"clientId,omitempty"` + + // DeadlineSecondsTime: Optional. custom deadline of the rpc + DeadlineSecondsTime string `json:"deadlineSecondsTime,omitempty"` + + // InputParameters: Optional. Input parameters used during integration + // execution. + InputParameters map[string]GoogleCloudIntegrationsV1alphaValueType `json:"inputParameters,omitempty"` + + // IntegrationVersion: Required. integration config to execute the + // workflow + IntegrationVersion *GoogleCloudIntegrationsV1alphaIntegrationVersion `json:"integrationVersion,omitempty"` + + // Parameters: Optional. Passed in as parameters to each integration + // execution. + Parameters *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"parameters,omitempty"` + + // TestMode: Optional. Can be specified in the event request, otherwise + // false (default). If true, enables tasks with condition "test_mode = + // true". If false, disables tasks with condition "test_mode = true" if + // global test mode (set by platform) is also false {@link + // EventBusConfig}. + TestMode bool `json:"testMode,omitempty"` + + // TriggerId: Required. The trigger id of the integration trigger + // config. If both trigger_id and client_id is present, the integration + // is executed from the start tasks provided by the matching trigger + // config otherwise it is executed from the default start tasks. + TriggerId string `json:"triggerId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ClientId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ClientId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaTestIntegrationsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaTestIntegrationsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaTestIntegrationsResponse: The response +// for testing an integration. +type GoogleCloudIntegrationsV1alphaTestIntegrationsResponse struct { + // EventParameters: Details for the integration that were executed. + EventParameters *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"eventParameters,omitempty"` + + // ExecutionFailed: Is true if any execution in the integration failed. + // False otherwise. + ExecutionFailed bool `json:"executionFailed,omitempty"` + + // ExecutionId: The id of the execution corresponding to this run of + // integration. + ExecutionId string `json:"executionId,omitempty"` + + // ParameterEntries: Parameters are a part of Event and can be used to + // communicate between different tasks that are part of the same + // integration execution. + ParameterEntries []*EnterpriseCrmFrontendsEventbusProtoParameterEntry `json:"parameterEntries,omitempty"` + + // Parameters: Optional. Parameters are a part of Event and can be used + // to communicate between different tasks that are part of the same + // integration execution. + Parameters map[string]GoogleCloudIntegrationsV1alphaValueType `json:"parameters,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "EventParameters") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EventParameters") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaTestIntegrationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaTestIntegrationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaTriggerConfig: Configuration detail of +// a trigger. +type GoogleCloudIntegrationsV1alphaTriggerConfig struct { + // AlertConfig: Optional. An alert threshold configuration for the + // [trigger + client + integration] tuple. If these values are not + // specified in the trigger config, default values will be populated by + // the system. Note that there must be exactly one alert threshold + // configured per [client + trigger + integration] when published. + AlertConfig []*GoogleCloudIntegrationsV1alphaIntegrationAlertConfig `json:"alertConfig,omitempty"` + + // CloudSchedulerConfig: Optional. Cloud Scheduler Trigger related + // metadata + CloudSchedulerConfig *GoogleCloudIntegrationsV1alphaCloudSchedulerConfig `json:"cloudSchedulerConfig,omitempty"` + + // Description: Optional. User-provided description intended to give + // additional business context about the task. + Description string `json:"description,omitempty"` + + // Label: Optional. The user created label for a particular trigger. + Label string `json:"label,omitempty"` + + // NextTasksExecutionPolicy: Optional. Dictates how next tasks will be + // executed. + // + // Possible values: + // "NEXT_TASKS_EXECUTION_POLICY_UNSPECIFIED" - Default. + // "RUN_ALL_MATCH" - Execute all the tasks that satisfy their + // associated condition. + // "RUN_FIRST_MATCH" - Execute the first task that satisfies the + // associated condition. + NextTasksExecutionPolicy string `json:"nextTasksExecutionPolicy,omitempty"` + + // Properties: Optional. Configurable properties of the trigger, not to + // be confused with integration parameters. E.g. "name" is a property + // for API triggers and "subscription" is a property for Pub/sub + // triggers. + Properties map[string]string `json:"properties,omitempty"` + + // StartTasks: Optional. Set of tasks numbers from where the integration + // execution is started by this trigger. If this is empty, then + // integration is executed with default start tasks. In the list of + // start tasks, none of two tasks can have direct ancestor-descendant + // relationships (i.e. in a same integration execution graph). + StartTasks []*GoogleCloudIntegrationsV1alphaNextTask `json:"startTasks,omitempty"` + + // TriggerId: Optional. The backend trigger ID. + TriggerId string `json:"triggerId,omitempty"` + + // TriggerNumber: Required. A number to uniquely identify each trigger + // config within the integration on UI. + TriggerNumber string `json:"triggerNumber,omitempty"` + + // TriggerType: Optional. Type of trigger + // + // Possible values: + // "TRIGGER_TYPE_UNSPECIFIED" - Unknown. + // "CRON" - Trigger by scheduled time. + // "API" - Trigger by API call. + // "SFDC_CHANNEL" - Trigger by Salesforce Channel. + // "CLOUD_PUBSUB_EXTERNAL" - Trigger by Pub/Sub external. + // "SFDC_CDC_CHANNEL" - SFDC Channel Trigger for CDC. + // "CLOUD_SCHEDULER" - Trigger by Cloud Scheduler job. + TriggerType string `json:"triggerType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AlertConfig") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AlertConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaTriggerConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaTriggerConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest: +// Request for UnpublishIntegrationVersion. +type GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest struct { +} + +// GoogleCloudIntegrationsV1alphaUpdateBundleRequest: THIS METHOD WILL +// BE MOVED TO A SEPARATE SERVICE. Request message for Bundle update +type GoogleCloudIntegrationsV1alphaUpdateBundleRequest struct { + // Config: It contains the updated bundle data + Config *GoogleCloudIntegrationsV1alphaIntegrationBundleConfig `json:"config,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Config") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Config") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaUpdateBundleRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaUpdateBundleRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaUpdateBundleResponse: Response message +// for Bundle update +type GoogleCloudIntegrationsV1alphaUpdateBundleResponse struct { + // Config: Contains updated bundle config + Config *GoogleCloudIntegrationsV1alphaIntegrationBundleConfig `json:"config,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Config") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Config") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaUpdateBundleResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaUpdateBundleResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest: +// Request for UploadIntegrationVersion. +type GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest struct { + // Content: The textproto of the integration_version. + Content string `json:"content,omitempty"` + + // FileFormat: File format for upload request. + // + // Possible values: + // "FILE_FORMAT_UNSPECIFIED" - Unspecified file format + // "JSON" - JSON File Format + // "YAML" - YAML File Format + FileFormat string `json:"fileFormat,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Content") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Content") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse: +// Response for UploadIntegrationVersion. +type GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse struct { + // IntegrationVersion: The uploaded integration. + IntegrationVersion *GoogleCloudIntegrationsV1alphaIntegrationVersion `json:"integrationVersion,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "IntegrationVersion") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "IntegrationVersion") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaUsernameAndPassword: Username and +// password pair. +type GoogleCloudIntegrationsV1alphaUsernameAndPassword struct { + // Password: Password to be used + Password string `json:"password,omitempty"` + + // Username: Username to be used + Username string `json:"username,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Password") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Password") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaUsernameAndPassword) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaUsernameAndPassword + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest: +// Request for ValidateIntegrationVersion. +type GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest struct { +} + +// GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse: +// Response for ValidateIntegrationVersion. +type GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// GoogleCloudIntegrationsV1alphaValueType: The type of the parameter. +type GoogleCloudIntegrationsV1alphaValueType struct { + // BooleanArray: Boolean Array. + BooleanArray *GoogleCloudIntegrationsV1alphaBooleanParameterArray `json:"booleanArray,omitempty"` + + // BooleanValue: Boolean. + BooleanValue bool `json:"booleanValue,omitempty"` + + // DoubleArray: Double Number Array. + DoubleArray *GoogleCloudIntegrationsV1alphaDoubleParameterArray `json:"doubleArray,omitempty"` + + // DoubleValue: Double Number. + DoubleValue float64 `json:"doubleValue,omitempty"` + + // IntArray: Integer Array. + IntArray *GoogleCloudIntegrationsV1alphaIntParameterArray `json:"intArray,omitempty"` + + // IntValue: Integer. + IntValue int64 `json:"intValue,omitempty,string"` + + // JsonValue: Json. + JsonValue string `json:"jsonValue,omitempty"` + + // StringArray: String Array. + StringArray *GoogleCloudIntegrationsV1alphaStringParameterArray `json:"stringArray,omitempty"` + + // StringValue: String. + StringValue string `json:"stringValue,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BooleanArray") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BooleanArray") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaValueType) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaValueType + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudIntegrationsV1alphaValueType) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudIntegrationsV1alphaValueType + var s1 struct { + DoubleValue gensupport.JSONFloat64 `json:"doubleValue"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.DoubleValue = float64(s1.DoubleValue) + return nil +} + +// GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest: Use +// this request to post all workflows associated with a given trigger +// id. Next available id: 10 +type GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest struct { + // ClientId: Optional. If the client id is provided, then the + // combination of trigger id and client id is matched across all the + // workflows. If the client id is not provided, then workflows with + // matching trigger id are executed for each client id in the {@link + // TriggerConfig}. For Api Trigger, the client id is required and will + // be validated against the allowed clients. + ClientId string `json:"clientId,omitempty"` + + // IgnoreErrorIfNoActiveWorkflow: Optional. Flag to determine whether + // clients would suppress a warning when no ACTIVE workflows are not + // found. If this flag is set to be true, an error will not be thrown if + // the requested trigger_id or client_id is not found in any ACTIVE + // workflow. Otherwise, the error is always thrown. The flag is set to + // be false by default. + IgnoreErrorIfNoActiveWorkflow bool `json:"ignoreErrorIfNoActiveWorkflow,omitempty"` + + // Parameters: Passed in as parameters to each workflow execution. + // Optional. + Parameters *EnterpriseCrmEventbusProtoEventParameters `json:"parameters,omitempty"` + + // Priority: The request priority this request should be processed at. + // For internal users: + // + // Possible values: + // "UNSPCIFIED" - Unspecified + // "SHEDDABLE" - Frequent partial and occasional full unavailability + // is expected and not pageable. * Requests to this band will be shed + // before all other requests. * This is the default for async calls sent + // from batch jobs. + // "SHEDDABLE_PLUS" - Partial unavailability is expected and is not + // necessarily pageable. * Requests to this band will be shed before any + // critical traffic. * This is the default for async calls sent from + // production jobs. + // "CRITICAL" - Any outage is a pageable event. * During a production + // outage requests in this band will only be shed before CRITICAL_PLUS. + // * This is the default for sync calls sent from production jobs. + // "CRITICAL_PLUS" - Any outage is a pageable event. * The guideline + // is for < 10% of requests to a service to be in this band. * During a + // production outage requests in this band will be prioritized above all + // others. * Opt-in to CRITICAL_PLUS when your workflow triggers by + // human. + Priority string `json:"priority,omitempty"` + + // RequestId: Optional. This is used to de-dup incoming request: if the + // duplicate request was detected, the response from the previous + // execution is returned. Must have no more than 36 characters and + // contain only alphanumeric characters and hyphens. + RequestId string `json:"requestId,omitempty"` + + // ScheduledTime: Optional. Time in milliseconds since epoch when the + // given event would be scheduled. + ScheduledTime int64 `json:"scheduledTime,omitempty,string"` + + // TestMode: Optional. Sets test mode in {@link + // enterprise/crm/eventbus/event_message.proto}. + TestMode bool `json:"testMode,omitempty"` + + // TriggerId: Matched against all {@link TriggerConfig}s across all + // workflows. i.e. TriggerConfig.trigger_id.equals(trigger_id) Required. + TriggerId string `json:"triggerId,omitempty"` + + // WorkflowName: Optional. If provided, the workflow_name is used to + // filter all the matched workflows having same trigger_id+client_id. A + // combination of trigger_id, client_id and workflow_name identifies a + // unique workflow. + WorkflowName string `json:"workflowName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ClientId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ClientId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleProtobufEmpty: A generic empty message that you can re-use to +// avoid defining duplicated empty messages in your APIs. A typical +// example is to use it as the request or the response type of an API +// method. For instance: service Foo { rpc Bar(google.protobuf.Empty) +// returns (google.protobuf.Empty); } +type GoogleProtobufEmpty struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// method id "integrations.callback.generateToken": + +type CallbackGenerateTokenCall struct { + s *Service + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GenerateToken: Receives the auth code and auth config id to combine +// that with the client id and secret to retrieve access tokens from the +// token endpoint. Returns either a success or error message when it's +// done. +func (r *CallbackService) GenerateToken() *CallbackGenerateTokenCall { + c := &CallbackGenerateTokenCall{s: r.s, urlParams_: make(gensupport.URLParams)} + return c +} + +// Code sets the optional parameter "code": The auth code for the given +// request +func (c *CallbackGenerateTokenCall) Code(code string) *CallbackGenerateTokenCall { + c.urlParams_.Set("code", code) + return c +} + +// GcpProjectId sets the optional parameter "gcpProjectId": The gcp +// project id of the request +func (c *CallbackGenerateTokenCall) GcpProjectId(gcpProjectId string) *CallbackGenerateTokenCall { + c.urlParams_.Set("gcpProjectId", gcpProjectId) + return c +} + +// Product sets the optional parameter "product": Which product sends +// the request +// +// Possible values: +// +// "UNSPECIFIED_PRODUCT" +// "IP" +// "APIGEE" +// "SECURITY" +func (c *CallbackGenerateTokenCall) Product(product string) *CallbackGenerateTokenCall { + c.urlParams_.Set("product", product) + return c +} + +// RedirectUri sets the optional parameter "redirectUri": Redirect uri +// of the auth code request +func (c *CallbackGenerateTokenCall) RedirectUri(redirectUri string) *CallbackGenerateTokenCall { + c.urlParams_.Set("redirectUri", redirectUri) + return c +} + +// State sets the optional parameter "state": The auth config id for the +// given request +func (c *CallbackGenerateTokenCall) State(state string) *CallbackGenerateTokenCall { + c.urlParams_.Set("state", state) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *CallbackGenerateTokenCall) Fields(s ...googleapi.Field) *CallbackGenerateTokenCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *CallbackGenerateTokenCall) IfNoneMatch(entityTag string) *CallbackGenerateTokenCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *CallbackGenerateTokenCall) Context(ctx context.Context) *CallbackGenerateTokenCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *CallbackGenerateTokenCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *CallbackGenerateTokenCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/callback:generateToken") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.callback.generateToken" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaGenerateTokenResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIntegrationsV1alphaGenerateTokenResponse.ServerResponse.He +// ader 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 *CallbackGenerateTokenCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaGenerateTokenResponse, 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 := &GoogleCloudIntegrationsV1alphaGenerateTokenResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Receives the auth code and auth config id to combine that with the client id and secret to retrieve access tokens from the token endpoint. Returns either a success or error message when it's done.", + // "flatPath": "v1/callback:generateToken", + // "httpMethod": "GET", + // "id": "integrations.callback.generateToken", + // "parameterOrder": [], + // "parameters": { + // "code": { + // "description": "The auth code for the given request", + // "location": "query", + // "type": "string" + // }, + // "gcpProjectId": { + // "description": "The gcp project id of the request", + // "location": "query", + // "type": "string" + // }, + // "product": { + // "description": "Which product sends the request", + // "enum": [ + // "UNSPECIFIED_PRODUCT", + // "IP", + // "APIGEE", + // "SECURITY" + // ], + // "enumDescriptions": [ + // "", + // "", + // "", + // "" + // ], + // "location": "query", + // "type": "string" + // }, + // "redirectUri": { + // "description": "Redirect uri of the auth code request", + // "location": "query", + // "type": "string" + // }, + // "state": { + // "description": "The auth config id for the given request", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/callback:generateToken", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaGenerateTokenResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.connectorPlatformRegions.enumerate": + +type ConnectorPlatformRegionsEnumerateCall struct { + s *Service + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Enumerate: Enumerates the regions for which Connector Platform is +// provisioned. +func (r *ConnectorPlatformRegionsService) Enumerate() *ConnectorPlatformRegionsEnumerateCall { + c := &ConnectorPlatformRegionsEnumerateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ConnectorPlatformRegionsEnumerateCall) Fields(s ...googleapi.Field) *ConnectorPlatformRegionsEnumerateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ConnectorPlatformRegionsEnumerateCall) IfNoneMatch(entityTag string) *ConnectorPlatformRegionsEnumerateCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ConnectorPlatformRegionsEnumerateCall) Context(ctx context.Context) *ConnectorPlatformRegionsEnumerateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ConnectorPlatformRegionsEnumerateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ConnectorPlatformRegionsEnumerateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/connectorPlatformRegions:enumerate") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.connectorPlatformRegions.enumerate" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsRespon +// se or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsRespon +// se.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 *ConnectorPlatformRegionsEnumerateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse, 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 := &GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Enumerates the regions for which Connector Platform is provisioned.", + // "flatPath": "v1/connectorPlatformRegions:enumerate", + // "httpMethod": "GET", + // "id": "integrations.connectorPlatformRegions.enumerate", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/connectorPlatformRegions:enumerate", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.getClientmetadata": + +type ProjectsGetClientmetadataCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetClientmetadata: Gets the metadata info for the requested client +// +// - parent: Required: The ID of the GCP Project to be provisioned. +func (r *ProjectsService) GetClientmetadata(parent string) *ProjectsGetClientmetadataCall { + c := &ProjectsGetClientmetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsGetClientmetadataCall) Fields(s ...googleapi.Field) *ProjectsGetClientmetadataCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsGetClientmetadataCall) IfNoneMatch(entityTag string) *ProjectsGetClientmetadataCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsGetClientmetadataCall) Context(ctx context.Context) *ProjectsGetClientmetadataCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsGetClientmetadataCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsGetClientmetadataCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/clientmetadata") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.getClientmetadata" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaGetClientMetadataResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaGetClientMetadataResponse.ServerRespons +// e.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 *ProjectsGetClientmetadataCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaGetClientMetadataResponse, 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 := &GoogleCloudIntegrationsV1alphaGetClientMetadataResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the metadata info for the requested client", + // "flatPath": "v1/projects/{projectsId}/clientmetadata", + // "httpMethod": "GET", + // "id": "integrations.projects.getClientmetadata", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Required: The ID of the GCP Project to be provisioned.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/clientmetadata", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaGetClientMetadataResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.getClients": + +type ProjectsLocationsGetClientsCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetClients: Gets the client configuration for the given project and +// location resource name +// +// - parent: Required: The ID of the GCP Project to be provisioned. +func (r *ProjectsLocationsService) GetClients(parent string) *ProjectsLocationsGetClientsCall { + c := &ProjectsLocationsGetClientsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsGetClientsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetClientsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsGetClientsCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetClientsCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsGetClientsCall) Context(ctx context.Context) *ProjectsLocationsGetClientsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsGetClientsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetClientsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/clients") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.getClients" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaGetClientResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaGetClientResponse.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 *ProjectsLocationsGetClientsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaGetClientResponse, 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 := &GoogleCloudIntegrationsV1alphaGetClientResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the client configuration for the given project and location resource name", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/clients", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.getClients", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Required: The ID of the GCP Project to be provisioned.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/clients", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaGetClientResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.listTaskEntities": + +type ProjectsLocationsListTaskEntitiesCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// ListTaskEntities: This is a UI only method and will be moved away. +// Returns a list of common tasks. +// +// - parent: The location resource of the request. This is not going to +// be used but preserve the field for future. +func (r *ProjectsLocationsService) ListTaskEntities(parent string) *ProjectsLocationsListTaskEntitiesCall { + c := &ProjectsLocationsListTaskEntitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsListTaskEntitiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsListTaskEntitiesCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsListTaskEntitiesCall) IfNoneMatch(entityTag string) *ProjectsLocationsListTaskEntitiesCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsListTaskEntitiesCall) Context(ctx context.Context) *ProjectsLocationsListTaskEntitiesCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsListTaskEntitiesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsListTaskEntitiesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:listTaskEntities") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.listTaskEntities" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse.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 *ProjectsLocationsListTaskEntitiesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse, 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 := &GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "This is a UI only method and will be moved away. Returns a list of common tasks.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:listTaskEntities", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.listTaskEntities", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The location resource of the request. This is not going to be used but preserve the field for future.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}:listTaskEntities", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.appsScriptProjects.create": + +type ProjectsLocationsAppsScriptProjectsCreateCall struct { + s *Service + parent string + googlecloudintegrationsv1alphacreateappsscriptprojectrequest *GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates an Apps Script project. +// +// - parent: The project that the executed integration belongs to. +func (r *ProjectsLocationsAppsScriptProjectsService) Create(parent string, googlecloudintegrationsv1alphacreateappsscriptprojectrequest *GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest) *ProjectsLocationsAppsScriptProjectsCreateCall { + c := &ProjectsLocationsAppsScriptProjectsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphacreateappsscriptprojectrequest = googlecloudintegrationsv1alphacreateappsscriptprojectrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsAppsScriptProjectsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsScriptProjectsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsAppsScriptProjectsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppsScriptProjectsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsAppsScriptProjectsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAppsScriptProjectsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacreateappsscriptprojectrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/appsScriptProjects") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.appsScriptProjects.create" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse.ServerR +// esponse.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 *ProjectsLocationsAppsScriptProjectsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse, 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 := &GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates an Apps Script project.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/appsScriptProjects", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.appsScriptProjects.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The project that the executed integration belongs to.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/appsScriptProjects", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.appsScriptProjects.link": + +type ProjectsLocationsAppsScriptProjectsLinkCall struct { + s *Service + parent string + googlecloudintegrationsv1alphalinkappsscriptprojectrequest *GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Link: Links a existing Apps Script project. +// +// - parent: The project that the executed integration belongs to. +func (r *ProjectsLocationsAppsScriptProjectsService) Link(parent string, googlecloudintegrationsv1alphalinkappsscriptprojectrequest *GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest) *ProjectsLocationsAppsScriptProjectsLinkCall { + c := &ProjectsLocationsAppsScriptProjectsLinkCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphalinkappsscriptprojectrequest = googlecloudintegrationsv1alphalinkappsscriptprojectrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsAppsScriptProjectsLinkCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsScriptProjectsLinkCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsAppsScriptProjectsLinkCall) Context(ctx context.Context) *ProjectsLocationsAppsScriptProjectsLinkCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsAppsScriptProjectsLinkCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAppsScriptProjectsLinkCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphalinkappsscriptprojectrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/appsScriptProjects:link") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.appsScriptProjects.link" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse.ServerRes +// ponse.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 *ProjectsLocationsAppsScriptProjectsLinkCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse, 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 := &GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Links a existing Apps Script project.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/appsScriptProjects:link", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.appsScriptProjects.link", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The project that the executed integration belongs to.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/appsScriptProjects:link", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.authConfigs.create": + +type ProjectsLocationsAuthConfigsCreateCall struct { + s *Service + parent string + googlecloudintegrationsv1alphaauthconfig *GoogleCloudIntegrationsV1alphaAuthConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates an auth config record. Fetch corresponding +// credentials for specific auth types, e.g. access token for OAuth 2.0, +// JWT token for JWT. Encrypt the auth config with Cloud KMS and store +// the encrypted credentials in Spanner. Returns the encrypted auth +// config. +// +// - parent: "projects/{project}/locations/{location}" format. +func (r *ProjectsLocationsAuthConfigsService) Create(parent string, googlecloudintegrationsv1alphaauthconfig *GoogleCloudIntegrationsV1alphaAuthConfig) *ProjectsLocationsAuthConfigsCreateCall { + c := &ProjectsLocationsAuthConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphaauthconfig = googlecloudintegrationsv1alphaauthconfig + return c +} + +// ClientCertificateEncryptedPrivateKey sets the optional parameter +// "clientCertificate.encryptedPrivateKey": The ssl certificate encoded +// in PEM format. This string must include the begin header and end +// footer lines. For example, -----BEGIN CERTIFICATE----- +// MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV +// BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw +// MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET +// MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA +// vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 +// JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB +// xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P +// AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB +// Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey +// Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW +// JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr +// 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H +// wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- +func (c *ProjectsLocationsAuthConfigsCreateCall) ClientCertificateEncryptedPrivateKey(clientCertificateEncryptedPrivateKey string) *ProjectsLocationsAuthConfigsCreateCall { + c.urlParams_.Set("clientCertificate.encryptedPrivateKey", clientCertificateEncryptedPrivateKey) + return c +} + +// ClientCertificatePassphrase sets the optional parameter +// "clientCertificate.passphrase": 'passphrase' should be left unset if +// private key is not encrypted. Note that 'passphrase' is not the +// password for web server, but an extra layer of security to protected +// private key. +func (c *ProjectsLocationsAuthConfigsCreateCall) ClientCertificatePassphrase(clientCertificatePassphrase string) *ProjectsLocationsAuthConfigsCreateCall { + c.urlParams_.Set("clientCertificate.passphrase", clientCertificatePassphrase) + return c +} + +// ClientCertificateSslCertificate sets the optional parameter +// "clientCertificate.sslCertificate": The ssl certificate encoded in +// PEM format. This string must include the begin header and end footer +// lines. For example, -----BEGIN CERTIFICATE----- +// MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV +// BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw +// MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET +// MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA +// vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 +// JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB +// xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P +// AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB +// Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey +// Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW +// JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr +// 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H +// wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- +func (c *ProjectsLocationsAuthConfigsCreateCall) ClientCertificateSslCertificate(clientCertificateSslCertificate string) *ProjectsLocationsAuthConfigsCreateCall { + c.urlParams_.Set("clientCertificate.sslCertificate", clientCertificateSslCertificate) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsAuthConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthConfigsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsAuthConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsAuthConfigsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsAuthConfigsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthConfigsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaauthconfig) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/authConfigs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.authConfigs.create" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaAuthConfig or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaAuthConfig.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 *ProjectsLocationsAuthConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaAuthConfig, 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 := &GoogleCloudIntegrationsV1alphaAuthConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates an auth config record. Fetch corresponding credentials for specific auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the auth config with Cloud KMS and store the encrypted credentials in Spanner. Returns the encrypted auth config.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authConfigs", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.authConfigs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "clientCertificate.encryptedPrivateKey": { + // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + // "location": "query", + // "type": "string" + // }, + // "clientCertificate.passphrase": { + // "description": "'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key.", + // "location": "query", + // "type": "string" + // }, + // "clientCertificate.sslCertificate": { + // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. \"projects/{project}/locations/{location}\" format.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/authConfigs", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.authConfigs.delete": + +type ProjectsLocationsAuthConfigsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes an auth config. +// +// - name: The name that is associated with the AuthConfig. +func (r *ProjectsLocationsAuthConfigsService) Delete(name string) *ProjectsLocationsAuthConfigsDeleteCall { + c := &ProjectsLocationsAuthConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsAuthConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthConfigsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsAuthConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAuthConfigsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsAuthConfigsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.authConfigs.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsLocationsAuthConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes an auth config.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authConfigs/{authConfigsId}", + // "httpMethod": "DELETE", + // "id": "integrations.projects.locations.authConfigs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name that is associated with the AuthConfig.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/authConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.authConfigs.get": + +type ProjectsLocationsAuthConfigsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a complete auth config. If the auth config doesn't exist, +// Code.NOT_FOUND exception will be thrown. Returns the decrypted auth +// config. +// +// - name: The name that is associated with the AuthConfig. +func (r *ProjectsLocationsAuthConfigsService) Get(name string) *ProjectsLocationsAuthConfigsGetCall { + c := &ProjectsLocationsAuthConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsAuthConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthConfigsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsAuthConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthConfigsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsAuthConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsAuthConfigsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsAuthConfigsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthConfigsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.authConfigs.get" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaAuthConfig or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaAuthConfig.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 *ProjectsLocationsAuthConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaAuthConfig, 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 := &GoogleCloudIntegrationsV1alphaAuthConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a complete auth config. If the auth config doesn't exist, Code.NOT_FOUND exception will be thrown. Returns the decrypted auth config.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authConfigs/{authConfigsId}", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.authConfigs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name that is associated with the AuthConfig.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/authConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.authConfigs.list": + +type ProjectsLocationsAuthConfigsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all auth configs that match the filter. Restrict to auth +// configs belong to the current client only. +// +// - parent: The client, which owns this collection of AuthConfigs. +func (r *ProjectsLocationsAuthConfigsService) List(parent string) *ProjectsLocationsAuthConfigsListCall { + c := &ProjectsLocationsAuthConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filtering as supported +// in +// https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters. +func (c *ProjectsLocationsAuthConfigsListCall) Filter(filter string) *ProjectsLocationsAuthConfigsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The size of entries +// in the response. If unspecified, defaults to 100. +func (c *ProjectsLocationsAuthConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsAuthConfigsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The token returned +// in the previous response. +func (c *ProjectsLocationsAuthConfigsListCall) PageToken(pageToken string) *ProjectsLocationsAuthConfigsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": The mask which +// specifies fields that need to be returned in the AuthConfig's +// response. +func (c *ProjectsLocationsAuthConfigsListCall) ReadMask(readMask string) *ProjectsLocationsAuthConfigsListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsAuthConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthConfigsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsAuthConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthConfigsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsAuthConfigsListCall) Context(ctx context.Context) *ProjectsLocationsAuthConfigsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsAuthConfigsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthConfigsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/authConfigs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.authConfigs.list" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaListAuthConfigsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIntegrationsV1alphaListAuthConfigsResponse.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 *ProjectsLocationsAuthConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListAuthConfigsResponse, 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 := &GoogleCloudIntegrationsV1alphaListAuthConfigsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists all auth configs that match the filter. Restrict to auth configs belong to the current client only.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authConfigs", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.authConfigs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The size of entries in the response. If unspecified, defaults to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The token returned in the previous response.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The client, which owns this collection of AuthConfigs.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "The mask which specifies fields that need to be returned in the AuthConfig's response.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/authConfigs", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListAuthConfigsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsAuthConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListAuthConfigsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "integrations.projects.locations.authConfigs.patch": + +type ProjectsLocationsAuthConfigsPatchCall struct { + s *Service + name string + googlecloudintegrationsv1alphaauthconfig *GoogleCloudIntegrationsV1alphaAuthConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an auth config. If credential is updated, fetch the +// encrypted auth config from Spanner, decrypt with Cloud KMS key, +// update the credential fields, re-encrypt with Cloud KMS key and +// update the Spanner record. For other fields, directly update the +// Spanner record. Returns the encrypted auth config. +// +// - name: Resource name of the SFDC instance +// projects/{project}/locations/{location}/authConfigs/{authConfig}. +func (r *ProjectsLocationsAuthConfigsService) Patch(name string, googlecloudintegrationsv1alphaauthconfig *GoogleCloudIntegrationsV1alphaAuthConfig) *ProjectsLocationsAuthConfigsPatchCall { + c := &ProjectsLocationsAuthConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphaauthconfig = googlecloudintegrationsv1alphaauthconfig + return c +} + +// ClientCertificateEncryptedPrivateKey sets the optional parameter +// "clientCertificate.encryptedPrivateKey": The ssl certificate encoded +// in PEM format. This string must include the begin header and end +// footer lines. For example, -----BEGIN CERTIFICATE----- +// MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV +// BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw +// MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET +// MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA +// vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 +// JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB +// xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P +// AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB +// Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey +// Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW +// JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr +// 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H +// wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- +func (c *ProjectsLocationsAuthConfigsPatchCall) ClientCertificateEncryptedPrivateKey(clientCertificateEncryptedPrivateKey string) *ProjectsLocationsAuthConfigsPatchCall { + c.urlParams_.Set("clientCertificate.encryptedPrivateKey", clientCertificateEncryptedPrivateKey) + return c +} + +// ClientCertificatePassphrase sets the optional parameter +// "clientCertificate.passphrase": 'passphrase' should be left unset if +// private key is not encrypted. Note that 'passphrase' is not the +// password for web server, but an extra layer of security to protected +// private key. +func (c *ProjectsLocationsAuthConfigsPatchCall) ClientCertificatePassphrase(clientCertificatePassphrase string) *ProjectsLocationsAuthConfigsPatchCall { + c.urlParams_.Set("clientCertificate.passphrase", clientCertificatePassphrase) + return c +} + +// ClientCertificateSslCertificate sets the optional parameter +// "clientCertificate.sslCertificate": The ssl certificate encoded in +// PEM format. This string must include the begin header and end footer +// lines. For example, -----BEGIN CERTIFICATE----- +// MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV +// BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw +// MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET +// MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA +// vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 +// JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB +// xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P +// AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB +// Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey +// Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW +// JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr +// 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H +// wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- +func (c *ProjectsLocationsAuthConfigsPatchCall) ClientCertificateSslCertificate(clientCertificateSslCertificate string) *ProjectsLocationsAuthConfigsPatchCall { + c.urlParams_.Set("clientCertificate.sslCertificate", clientCertificateSslCertificate) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask +// specifying the fields in the above AuthConfig that have been modified +// and need to be updated. +func (c *ProjectsLocationsAuthConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAuthConfigsPatchCall { + 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 information. +func (c *ProjectsLocationsAuthConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthConfigsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsAuthConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsAuthConfigsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsAuthConfigsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthConfigsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaauthconfig) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.authConfigs.patch" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaAuthConfig or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaAuthConfig.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 *ProjectsLocationsAuthConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaAuthConfig, 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 := &GoogleCloudIntegrationsV1alphaAuthConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates an auth config. If credential is updated, fetch the encrypted auth config from Spanner, decrypt with Cloud KMS key, update the credential fields, re-encrypt with Cloud KMS key and update the Spanner record. For other fields, directly update the Spanner record. Returns the encrypted auth config.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authConfigs/{authConfigsId}", + // "httpMethod": "PATCH", + // "id": "integrations.projects.locations.authConfigs.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "clientCertificate.encryptedPrivateKey": { + // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + // "location": "query", + // "type": "string" + // }, + // "clientCertificate.passphrase": { + // "description": "'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key.", + // "location": "query", + // "type": "string" + // }, + // "clientCertificate.sslCertificate": { + // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "Resource name of the SFDC instance projects/{project}/locations/{location}/authConfigs/{authConfig}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/authConfigs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask specifying the fields in the above AuthConfig that have been modified and need to be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.certificates.create": + +type ProjectsLocationsCertificatesCreateCall struct { + s *Service + parent string + googlecloudintegrationsv1alphacertificate *GoogleCloudIntegrationsV1alphaCertificate + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new certificate. The certificate will be registered +// to the trawler service and will be encrypted using cloud KMS and +// stored in Spanner Returns the certificate. +// +// - parent: "projects/{project}/locations/{location}" format. +func (r *ProjectsLocationsCertificatesService) Create(parent string, googlecloudintegrationsv1alphacertificate *GoogleCloudIntegrationsV1alphaCertificate) *ProjectsLocationsCertificatesCreateCall { + c := &ProjectsLocationsCertificatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphacertificate = googlecloudintegrationsv1alphacertificate + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificatesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificatesCreateCall) Context(ctx context.Context) *ProjectsLocationsCertificatesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificatesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificatesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacertificate) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/certificates") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.certificates.create" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaCertificate or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaCertificate.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 *ProjectsLocationsCertificatesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCertificate, 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 := &GoogleCloudIntegrationsV1alphaCertificate{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new certificate. The certificate will be registered to the trawler service and will be encrypted using cloud KMS and stored in Spanner Returns the certificate.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/certificates", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.certificates.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. \"projects/{project}/locations/{location}\" format.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/certificates", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.certificates.delete": + +type ProjectsLocationsCertificatesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Delete a certificate +// +// - name: The name that is associated with the Certificate. +func (r *ProjectsLocationsCertificatesService) Delete(name string) *ProjectsLocationsCertificatesDeleteCall { + c := &ProjectsLocationsCertificatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificatesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsCertificatesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificatesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificatesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.certificates.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsLocationsCertificatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Delete a certificate", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/certificates/{certificatesId}", + // "httpMethod": "DELETE", + // "id": "integrations.projects.locations.certificates.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name that is associated with the Certificate.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificates/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.certificates.get": + +type ProjectsLocationsCertificatesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get a certificates in the specified project. +// +// - name: The certificate to retrieve. Format: +// projects/{project}/locations/{location}/certificates/{certificate}. +func (r *ProjectsLocationsCertificatesService) Get(name string) *ProjectsLocationsCertificatesGetCall { + c := &ProjectsLocationsCertificatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificatesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsCertificatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificatesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificatesGetCall) Context(ctx context.Context) *ProjectsLocationsCertificatesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificatesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificatesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.certificates.get" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaCertificate or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaCertificate.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 *ProjectsLocationsCertificatesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCertificate, 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 := &GoogleCloudIntegrationsV1alphaCertificate{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Get a certificates in the specified project.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/certificates/{certificatesId}", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.certificates.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The certificate to retrieve. Format: projects/{project}/locations/{location}/certificates/{certificate}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificates/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.certificates.list": + +type ProjectsLocationsCertificatesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List all the certificates that match the filter. Restrict to +// certificate of current client only. +// +// - parent: The client, which owns this collection of Certificates. +func (r *ProjectsLocationsCertificatesService) List(parent string) *ProjectsLocationsCertificatesListCall { + c := &ProjectsLocationsCertificatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filtering as supported +// in +// https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters. +func (c *ProjectsLocationsCertificatesListCall) Filter(filter string) *ProjectsLocationsCertificatesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The size of entries +// in the response. If unspecified, defaults to 100. +func (c *ProjectsLocationsCertificatesListCall) PageSize(pageSize int64) *ProjectsLocationsCertificatesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The token returned +// in the previous response. +func (c *ProjectsLocationsCertificatesListCall) PageToken(pageToken string) *ProjectsLocationsCertificatesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": The mask which +// specifies fields that need to be returned in the Certificate's +// response. +func (c *ProjectsLocationsCertificatesListCall) ReadMask(readMask string) *ProjectsLocationsCertificatesListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificatesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsCertificatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificatesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificatesListCall) Context(ctx context.Context) *ProjectsLocationsCertificatesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificatesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificatesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/certificates") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.certificates.list" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaListCertificatesResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIntegrationsV1alphaListCertificatesResponse.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 *ProjectsLocationsCertificatesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListCertificatesResponse, 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 := &GoogleCloudIntegrationsV1alphaListCertificatesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "List all the certificates that match the filter. Restrict to certificate of current client only.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/certificates", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.certificates.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The size of entries in the response. If unspecified, defaults to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The token returned in the previous response.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The client, which owns this collection of Certificates.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "The mask which specifies fields that need to be returned in the Certificate's response.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/certificates", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListCertificatesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsCertificatesListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListCertificatesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "integrations.projects.locations.certificates.patch": + +type ProjectsLocationsCertificatesPatchCall struct { + s *Service + name string + googlecloudintegrationsv1alphacertificate *GoogleCloudIntegrationsV1alphaCertificate + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the certificate by id. If new certificate file is +// updated, it will register with the trawler service, re-encrypt with +// cloud KMS and update the Spanner record. Other fields will directly +// update the Spanner record. Returns the Certificate. +// +// - name: Output only. Auto generated primary key. +func (r *ProjectsLocationsCertificatesService) Patch(name string, googlecloudintegrationsv1alphacertificate *GoogleCloudIntegrationsV1alphaCertificate) *ProjectsLocationsCertificatesPatchCall { + c := &ProjectsLocationsCertificatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphacertificate = googlecloudintegrationsv1alphacertificate + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask +// specifying the fields in the above Certificate that have been +// modified and need to be updated. +func (c *ProjectsLocationsCertificatesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCertificatesPatchCall { + 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 information. +func (c *ProjectsLocationsCertificatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificatesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificatesPatchCall) Context(ctx context.Context) *ProjectsLocationsCertificatesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificatesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificatesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacertificate) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.certificates.patch" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaCertificate or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaCertificate.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 *ProjectsLocationsCertificatesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCertificate, 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 := &GoogleCloudIntegrationsV1alphaCertificate{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates the certificate by id. If new certificate file is updated, it will register with the trawler service, re-encrypt with cloud KMS and update the Spanner record. Other fields will directly update the Spanner record. Returns the Certificate.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/certificates/{certificatesId}", + // "httpMethod": "PATCH", + // "id": "integrations.projects.locations.certificates.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. Auto generated primary key", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificates/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask specifying the fields in the above Certificate that have been modified and need to be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.clients.deprovision": + +type ProjectsLocationsClientsDeprovisionCall struct { + s *Service + parent string + googlecloudintegrationsv1alphadeprovisionclientrequest *GoogleCloudIntegrationsV1alphaDeprovisionClientRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Deprovision: Perform the deprovisioning steps to disable a user GCP +// project to use IP and purge all related data in a wipeout-compliant +// way. +// +// - parent: Required: The ID of the GCP Project to be deprovisioned. +func (r *ProjectsLocationsClientsService) Deprovision(parent string, googlecloudintegrationsv1alphadeprovisionclientrequest *GoogleCloudIntegrationsV1alphaDeprovisionClientRequest) *ProjectsLocationsClientsDeprovisionCall { + c := &ProjectsLocationsClientsDeprovisionCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphadeprovisionclientrequest = googlecloudintegrationsv1alphadeprovisionclientrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsClientsDeprovisionCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientsDeprovisionCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsClientsDeprovisionCall) Context(ctx context.Context) *ProjectsLocationsClientsDeprovisionCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsClientsDeprovisionCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsClientsDeprovisionCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphadeprovisionclientrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/clients:deprovision") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.clients.deprovision" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsLocationsClientsDeprovisionCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Perform the deprovisioning steps to disable a user GCP project to use IP and purge all related data in a wipeout-compliant way.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/clients:deprovision", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.clients.deprovision", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Required: The ID of the GCP Project to be deprovisioned.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/clients:deprovision", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaDeprovisionClientRequest" + // }, + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.clients.provision": + +type ProjectsLocationsClientsProvisionCall struct { + s *Service + parent string + googlecloudintegrationsv1alphaprovisionclientrequest *GoogleCloudIntegrationsV1alphaProvisionClientRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Provision: Perform the provisioning steps to enable a user GCP +// project to use IP. If GCP project already registered on IP end via +// Apigee Integration, provisioning will fail. +// +// - parent: Required: The ID of the GCP Project to be provisioned. +func (r *ProjectsLocationsClientsService) Provision(parent string, googlecloudintegrationsv1alphaprovisionclientrequest *GoogleCloudIntegrationsV1alphaProvisionClientRequest) *ProjectsLocationsClientsProvisionCall { + c := &ProjectsLocationsClientsProvisionCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphaprovisionclientrequest = googlecloudintegrationsv1alphaprovisionclientrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsClientsProvisionCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientsProvisionCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsClientsProvisionCall) Context(ctx context.Context) *ProjectsLocationsClientsProvisionCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsClientsProvisionCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsClientsProvisionCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaprovisionclientrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/clients:provision") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.clients.provision" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsLocationsClientsProvisionCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Perform the provisioning steps to enable a user GCP project to use IP. If GCP project already registered on IP end via Apigee Integration, provisioning will fail.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/clients:provision", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.clients.provision", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Required: The ID of the GCP Project to be provisioned.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/clients:provision", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaProvisionClientRequest" + // }, + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.cloudFunctions.create": + +type ProjectsLocationsCloudFunctionsCreateCall struct { + s *Service + parent string + googlecloudintegrationsv1alphacreatecloudfunctionrequest *GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates an cloud function project. +// +// - parent: The project that the executed integration belongs to. +func (r *ProjectsLocationsCloudFunctionsService) Create(parent string, googlecloudintegrationsv1alphacreatecloudfunctionrequest *GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest) *ProjectsLocationsCloudFunctionsCreateCall { + c := &ProjectsLocationsCloudFunctionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphacreatecloudfunctionrequest = googlecloudintegrationsv1alphacreatecloudfunctionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCloudFunctionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudFunctionsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCloudFunctionsCreateCall) Context(ctx context.Context) *ProjectsLocationsCloudFunctionsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCloudFunctionsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCloudFunctionsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacreatecloudfunctionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/cloudFunctions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.cloudFunctions.create" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse.ServerRespo +// nse.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 *ProjectsLocationsCloudFunctionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse, 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 := &GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates an cloud function project.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cloudFunctions", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.cloudFunctions.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The project that the executed integration belongs to.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/cloudFunctions", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.connections.getConnectionSchemaMetadata": + +type ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetConnectionSchemaMetadata: Lists the available entities and actions +// associated with a Connection. +// +// - name: ConnectionSchemaMetadata name. Format: +// projects/{project}/locations/{location}/connections/{connection}/con +// nectionSchemaMetadata. +func (r *ProjectsLocationsConnectionsService) GetConnectionSchemaMetadata(name string) *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall { + c := &ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.connections.getConnectionSchemaMetadata" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata.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 *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata, 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 := &GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists the available entities and actions associated with a Connection.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/connectionSchemaMetadata", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.connections.getConnectionSchemaMetadata", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. ConnectionSchemaMetadata name. Format: projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+/connectionSchemaMetadata$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.connections.list": + +type ProjectsLocationsConnectionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists Connections in a given project and location. +// +// - parent: Parent resource of the Connection, of the form: +// `projects/*/locations/*`. +func (r *ProjectsLocationsConnectionsService) List(parent string) *ProjectsLocationsConnectionsListCall { + c := &ProjectsLocationsConnectionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter. +func (c *ProjectsLocationsConnectionsListCall) Filter(filter string) *ProjectsLocationsConnectionsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Order by parameters. +func (c *ProjectsLocationsConnectionsListCall) OrderBy(orderBy string) *ProjectsLocationsConnectionsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Page size. +func (c *ProjectsLocationsConnectionsListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token. +func (c *ProjectsLocationsConnectionsListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConnectionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsConnectionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConnectionsListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConnectionsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConnectionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/connections") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.connections.list" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaListConnectionsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIntegrationsV1alphaListConnectionsResponse.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 *ProjectsLocationsConnectionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListConnectionsResponse, 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 := &GoogleCloudIntegrationsV1alphaListConnectionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists Connections in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.connections.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Filter.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Order by parameters.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Parent resource of the Connection, of the form: `projects/*/locations/*`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/connections", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListConnectionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsConnectionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListConnectionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "integrations.projects.locations.connections.runtimeActionSchemas.list": + +type ProjectsLocationsConnectionsRuntimeActionSchemasListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the JSON schemas for the inputs and outputs of actions, +// filtered by action name. +// +// - parent: Parent resource of RuntimeActionSchema. Format: +// projects/{project}/locations/{location}/connections/{connection}. +func (r *ProjectsLocationsConnectionsRuntimeActionSchemasService) List(parent string) *ProjectsLocationsConnectionsRuntimeActionSchemasListCall { + c := &ProjectsLocationsConnectionsRuntimeActionSchemasListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter. Only the action +// field with literal equality operator is supported. +func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Filter(filter string) *ProjectsLocationsConnectionsRuntimeActionSchemasListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": Page size. +func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsRuntimeActionSchemasListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token. +func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsRuntimeActionSchemasListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsRuntimeActionSchemasListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsRuntimeActionSchemasListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsRuntimeActionSchemasListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/runtimeActionSchemas") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.connections.runtimeActionSchemas.list" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse.Server +// Response.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 *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse, 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 := &GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists the JSON schemas for the inputs and outputs of actions, filtered by action name.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/runtimeActionSchemas", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.connections.runtimeActionSchemas.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Filter. Only the action field with literal equality operator is supported.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Parent resource of RuntimeActionSchema. Format: projects/{project}/locations/{location}/connections/{connection}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/runtimeActionSchemas", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "integrations.projects.locations.connections.runtimeEntitySchemas.list": + +type ProjectsLocationsConnectionsRuntimeEntitySchemasListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the JSON schemas for the properties of runtime entities, +// filtered by entity name. +// +// - parent: Parent resource of RuntimeEntitySchema. Format: +// projects/{project}/locations/{location}/connections/{connection}. +func (r *ProjectsLocationsConnectionsRuntimeEntitySchemasService) List(parent string) *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall { + c := &ProjectsLocationsConnectionsRuntimeEntitySchemasListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter. Only the entity +// field with literal equality operator is supported. +func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Filter(filter string) *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": Page size. +func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token. +func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/runtimeEntitySchemas") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.connections.runtimeEntitySchemas.list" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse.Server +// Response.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 *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse, 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 := &GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists the JSON schemas for the properties of runtime entities, filtered by entity name.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/runtimeEntitySchemas", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.connections.runtimeEntitySchemas.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Filter. Only the entity field with literal equality operator is supported.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Parent resource of RuntimeEntitySchema. Format: projects/{project}/locations/{location}/connections/{connection}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/runtimeEntitySchemas", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "integrations.projects.locations.integrations.delete": + +type ProjectsLocationsIntegrationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Delete the selected integration and all versions inside +// +// - name: The location resource of the request. +func (r *ProjectsLocationsIntegrationsService) Delete(name string) *ProjectsLocationsIntegrationsDeleteCall { + c := &ProjectsLocationsIntegrationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsLocationsIntegrationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Delete the selected integration and all versions inside", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}", + // "httpMethod": "DELETE", + // "id": "integrations.projects.locations.integrations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The location resource of the request.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.integrations.execute": + +type ProjectsLocationsIntegrationsExecuteCall struct { + s *Service + name string + googlecloudintegrationsv1alphaexecuteintegrationsrequest *GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Execute: Executes integrations synchronously by passing the trigger +// id in the request body. The request is not returned until the +// requested executions are either fulfilled or experienced an error. If +// the integration name is not specified (passing `-`), all of the +// associated integration under the given trigger_id will be executed. +// Otherwise only the specified integration for the given `trigger_id` +// is executed. This is helpful for execution the integration from UI. +// +// - name: The integration resource name. +func (r *ProjectsLocationsIntegrationsService) Execute(name string, googlecloudintegrationsv1alphaexecuteintegrationsrequest *GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest) *ProjectsLocationsIntegrationsExecuteCall { + c := &ProjectsLocationsIntegrationsExecuteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphaexecuteintegrationsrequest = googlecloudintegrationsv1alphaexecuteintegrationsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsExecuteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsExecuteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsExecuteCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsExecuteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsExecuteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsExecuteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaexecuteintegrationsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:execute") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.execute" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse.ServerRespo +// nse.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 *ProjectsLocationsIntegrationsExecuteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse, 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 := &GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Executes integrations synchronously by passing the trigger id in the request body. The request is not returned until the requested executions are either fulfilled or experienced an error. If the integration name is not specified (passing `-`), all of the associated integration under the given trigger_id will be executed. Otherwise only the specified integration for the given `trigger_id` is executed. This is helpful for execution the integration from UI.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}:execute", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.integrations.execute", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The integration resource name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:execute", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.integrations.list": + +type ProjectsLocationsIntegrationsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Returns the list of all integrations in the specified project. +// +// - parent: Project and location from which the integrations should be +// listed. Format: projects/{project}. +func (r *ProjectsLocationsIntegrationsService) List(parent string) *ProjectsLocationsIntegrationsListCall { + c := &ProjectsLocationsIntegrationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter on fields of +// IntegrationVersion. Fields can be compared with literal values by use +// of ":" (containment), "=" (equality), ">" (greater), "<" (less than), +// >=" (greater than or equal to), "<=" (less than or equal to), and +// "!=" (inequality) operators. Negation, conjunction, and disjunction +// are written using NOT, AND, and OR keywords. For example, +// organization_id=\"1\" AND state=ACTIVE AND description:"test". +// Filtering cannot be performed on repeated fields like `task_config`. +func (c *ProjectsLocationsIntegrationsListCall) Filter(filter string) *ProjectsLocationsIntegrationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": The results would be +// returned in order you specified here. Supported sort keys are: +// Descending sort order by "last_modified_time", "created_time", +// "snapshot_number". Ascending sort order by the integration name. +func (c *ProjectsLocationsIntegrationsListCall) OrderBy(orderBy string) *ProjectsLocationsIntegrationsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The page size for +// the resquest. +func (c *ProjectsLocationsIntegrationsListCall) PageSize(pageSize int64) *ProjectsLocationsIntegrationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The page token for +// the resquest. +func (c *ProjectsLocationsIntegrationsListCall) PageToken(pageToken string) *ProjectsLocationsIntegrationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsIntegrationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsListCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/integrations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.list" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaListIntegrationsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIntegrationsV1alphaListIntegrationsResponse.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 *ProjectsLocationsIntegrationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListIntegrationsResponse, 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 := &GoogleCloudIntegrationsV1alphaListIntegrationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the list of all integrations in the specified project.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.integrations.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of \":\" (containment), \"=\" (equality), \"\u003e\" (greater), \"\u003c\" (less than), \u003e=\" (greater than or equal to), \"\u003c=\" (less than or equal to), and \"!=\" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\\"1\\\" AND state=ACTIVE AND description:\"test\". Filtering cannot be performed on repeated fields like `task_config`.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "The results would be returned in order you specified here. Supported sort keys are: Descending sort order by \"last_modified_time\", \"created_time\", \"snapshot_number\". Ascending sort order by the integration name.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The page size for the resquest.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The page token for the resquest.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Project and location from which the integrations should be listed. Format: projects/{project}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/integrations", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsIntegrationsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListIntegrationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "integrations.projects.locations.integrations.monitorexecutionstats": + +type ProjectsLocationsIntegrationsMonitorexecutionstatsCall struct { + s *Service + parent string + googlecloudintegrationsv1alphamonitorexecutionstatsrequest *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Monitorexecutionstats: Get execution stats +// +// - parent: The parent resource name: {parent=projects/*/locations/*}. +func (r *ProjectsLocationsIntegrationsService) Monitorexecutionstats(parent string, googlecloudintegrationsv1alphamonitorexecutionstatsrequest *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest) *ProjectsLocationsIntegrationsMonitorexecutionstatsCall { + c := &ProjectsLocationsIntegrationsMonitorexecutionstatsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphamonitorexecutionstatsrequest = googlecloudintegrationsv1alphamonitorexecutionstatsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsMonitorexecutionstatsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsMonitorexecutionstatsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsMonitorexecutionstatsCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsMonitorexecutionstatsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsMonitorexecutionstatsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsMonitorexecutionstatsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphamonitorexecutionstatsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:monitorexecutionstats") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.monitorexecutionstats" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse.ServerRes +// ponse.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 *ProjectsLocationsIntegrationsMonitorexecutionstatsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse, 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 := &GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Get execution stats", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}:monitorexecutionstats", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.integrations.monitorexecutionstats", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent resource name: {parent=projects/*/locations/*}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}:monitorexecutionstats", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.integrations.schedule": + +type ProjectsLocationsIntegrationsScheduleCall struct { + s *Service + name string + googlecloudintegrationsv1alphascheduleintegrationsrequest *GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Schedule: Schedules an integration for execution by passing the +// trigger id and the scheduled time in the request body. +// +// - name: The integration resource name. +func (r *ProjectsLocationsIntegrationsService) Schedule(name string, googlecloudintegrationsv1alphascheduleintegrationsrequest *GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest) *ProjectsLocationsIntegrationsScheduleCall { + c := &ProjectsLocationsIntegrationsScheduleCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphascheduleintegrationsrequest = googlecloudintegrationsv1alphascheduleintegrationsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsScheduleCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsScheduleCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsScheduleCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsScheduleCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsScheduleCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsScheduleCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphascheduleintegrationsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:schedule") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.schedule" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse.ServerResp +// onse.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 *ProjectsLocationsIntegrationsScheduleCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse, 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 := &GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Schedules an integration for execution by passing the trigger id and the scheduled time in the request body.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}:schedule", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.integrations.schedule", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The integration resource name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:schedule", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.integrations.test": + +type ProjectsLocationsIntegrationsTestCall struct { + s *Service + name string + googlecloudintegrationsv1alphatestintegrationsrequest *GoogleCloudIntegrationsV1alphaTestIntegrationsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Test: Execute the integration in draft state +// +// - name: Output only. Auto-generated primary key. +func (r *ProjectsLocationsIntegrationsService) Test(name string, googlecloudintegrationsv1alphatestintegrationsrequest *GoogleCloudIntegrationsV1alphaTestIntegrationsRequest) *ProjectsLocationsIntegrationsTestCall { + c := &ProjectsLocationsIntegrationsTestCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphatestintegrationsrequest = googlecloudintegrationsv1alphatestintegrationsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsTestCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsTestCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsTestCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsTestCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsTestCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsTestCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphatestintegrationsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:test") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.test" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaTestIntegrationsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIntegrationsV1alphaTestIntegrationsResponse.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 *ProjectsLocationsIntegrationsTestCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaTestIntegrationsResponse, 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 := &GoogleCloudIntegrationsV1alphaTestIntegrationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Execute the integration in draft state", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}:test", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.integrations.test", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. Auto-generated primary key.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:test", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaTestIntegrationsRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaTestIntegrationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.integrations.executions.download": + +type ProjectsLocationsIntegrationsExecutionsDownloadCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Download: Download the execution. +// +// - name: The execution resource name. Format: +// projects/{gcp_project_id}/locations/{location}/products/{product}/in +// tegrations/{integration_id}/executions/{execution_id}. +func (r *ProjectsLocationsIntegrationsExecutionsService) Download(name string) *ProjectsLocationsIntegrationsExecutionsDownloadCall { + c := &ProjectsLocationsIntegrationsExecutionsDownloadCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsExecutionsDownloadCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsExecutionsDownloadCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsIntegrationsExecutionsDownloadCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsExecutionsDownloadCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsExecutionsDownloadCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsExecutionsDownloadCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsExecutionsDownloadCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsExecutionsDownloadCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:download") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.executions.download" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaDownloadExecutionResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaDownloadExecutionResponse.ServerRespons +// e.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 *ProjectsLocationsIntegrationsExecutionsDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaDownloadExecutionResponse, 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 := &GoogleCloudIntegrationsV1alphaDownloadExecutionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Download the execution.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executions/{executionsId}:download", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.integrations.executions.download", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_id}/executions/{execution_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/executions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:download", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaDownloadExecutionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.integrations.executions.get": + +type ProjectsLocationsIntegrationsExecutionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get an execution in the specified project. +// +// - name: The execution resource name. Format: +// projects/{gcp_project_id}/locations/{location}/products/{product}/in +// tegrations/{integration_id}/executions/{execution_id}. +func (r *ProjectsLocationsIntegrationsExecutionsService) Get(name string) *ProjectsLocationsIntegrationsExecutionsGetCall { + c := &ProjectsLocationsIntegrationsExecutionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsExecutionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsExecutionsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsIntegrationsExecutionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsExecutionsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsExecutionsGetCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsExecutionsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsExecutionsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsExecutionsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.executions.get" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaExecution or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIntegrationsV1alphaExecution.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 *ProjectsLocationsIntegrationsExecutionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaExecution, 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 := &GoogleCloudIntegrationsV1alphaExecution{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Get an execution in the specified project.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executions/{executionsId}", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.integrations.executions.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_id}/executions/{execution_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/executions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaExecution" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.integrations.executions.list": + +type ProjectsLocationsIntegrationsExecutionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the results of all the integration executions. The +// response includes the same information as the execution log +// (https://cloud.google.com/application-integration/docs/viewing-logs) +// in the Integration UI. +// +// - parent: The parent resource name of the integration execution. +func (r *ProjectsLocationsIntegrationsExecutionsService) List(parent string) *ProjectsLocationsIntegrationsExecutionsListCall { + c := &ProjectsLocationsIntegrationsExecutionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Standard filter field, +// we support filtering on all fields in EventExecutionParamIndexes +// table. All fields support for EQUALS, in additional: CreateTimestamp +// support for LESS_THAN, GREATER_THAN ParameterKey, ParameterValue, +// ParameterType support for HAS For example: "parameter_value" HAS +// \"parameter1\" Also supports operators like AND, OR, NOT For example, +// trigger_id=\"id1\" AND event_execution_state=\"FAILED\" +func (c *ProjectsLocationsIntegrationsExecutionsListCall) Filter(filter string) *ProjectsLocationsIntegrationsExecutionsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// FilterParamsCustomFilter sets the optional parameter +// "filterParams.customFilter": Optional user-provided custom filter. +func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsCustomFilter(filterParamsCustomFilter string) *ProjectsLocationsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.customFilter", filterParamsCustomFilter) + return c +} + +// FilterParamsEndTime sets the optional parameter +// "filterParams.endTime": End timestamp. +func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsEndTime(filterParamsEndTime int64) *ProjectsLocationsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.endTime", fmt.Sprint(filterParamsEndTime)) + return c +} + +// FilterParamsEventStatuses sets the optional parameter +// "filterParams.eventStatuses": List of possible event statuses. +func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsEventStatuses(filterParamsEventStatuses ...string) *ProjectsLocationsIntegrationsExecutionsListCall { + c.urlParams_.SetMulti("filterParams.eventStatuses", append([]string{}, filterParamsEventStatuses...)) + return c +} + +// FilterParamsExecutionId sets the optional parameter +// "filterParams.executionId": Execution id. +func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsExecutionId(filterParamsExecutionId string) *ProjectsLocationsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.executionId", filterParamsExecutionId) + return c +} + +// FilterParamsParameterKey sets the optional parameter +// "filterParams.parameterKey": Param key. DEPRECATED. User +// parameter_pair_key instead. +func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsParameterKey(filterParamsParameterKey string) *ProjectsLocationsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.parameterKey", filterParamsParameterKey) + return c +} + +// FilterParamsParameterPairKey sets the optional parameter +// "filterParams.parameterPairKey": Param key in the key value pair +// filter. +func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsParameterPairKey(filterParamsParameterPairKey string) *ProjectsLocationsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.parameterPairKey", filterParamsParameterPairKey) + return c +} + +// FilterParamsParameterPairValue sets the optional parameter +// "filterParams.parameterPairValue": Param value in the key value pair +// filter. +func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsParameterPairValue(filterParamsParameterPairValue string) *ProjectsLocationsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.parameterPairValue", filterParamsParameterPairValue) + return c +} + +// FilterParamsParameterType sets the optional parameter +// "filterParams.parameterType": Param type. +func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsParameterType(filterParamsParameterType string) *ProjectsLocationsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.parameterType", filterParamsParameterType) + return c +} + +// FilterParamsParameterValue sets the optional parameter +// "filterParams.parameterValue": Param value. DEPRECATED. User +// parameter_pair_value instead. +func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsParameterValue(filterParamsParameterValue string) *ProjectsLocationsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.parameterValue", filterParamsParameterValue) + return c +} + +// FilterParamsStartTime sets the optional parameter +// "filterParams.startTime": Start timestamp. +func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsStartTime(filterParamsStartTime int64) *ProjectsLocationsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.startTime", fmt.Sprint(filterParamsStartTime)) + return c +} + +// FilterParamsTaskStatuses sets the optional parameter +// "filterParams.taskStatuses": List of possible task statuses. +func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsTaskStatuses(filterParamsTaskStatuses ...string) *ProjectsLocationsIntegrationsExecutionsListCall { + c.urlParams_.SetMulti("filterParams.taskStatuses", append([]string{}, filterParamsTaskStatuses...)) + return c +} + +// FilterParamsWorkflowName sets the optional parameter +// "filterParams.workflowName": Workflow name. +func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsWorkflowName(filterParamsWorkflowName string) *ProjectsLocationsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.workflowName", filterParamsWorkflowName) + return c +} + +// OrderBy sets the optional parameter "orderBy": The results would be +// returned in order you specified here. Currently supporting +// "last_modified_time" and "create_time". +func (c *ProjectsLocationsIntegrationsExecutionsListCall) OrderBy(orderBy string) *ProjectsLocationsIntegrationsExecutionsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The size of entries +// in the response. +func (c *ProjectsLocationsIntegrationsExecutionsListCall) PageSize(pageSize int64) *ProjectsLocationsIntegrationsExecutionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The token returned +// in the previous response. +func (c *ProjectsLocationsIntegrationsExecutionsListCall) PageToken(pageToken string) *ProjectsLocationsIntegrationsExecutionsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": View mask for the +// response data. If set, only the field specified will be returned as +// part of the result. If not set, all fields in event execution info +// will be filled and returned. +func (c *ProjectsLocationsIntegrationsExecutionsListCall) ReadMask(readMask string) *ProjectsLocationsIntegrationsExecutionsListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// RefreshAcl sets the optional parameter "refreshAcl": If true, the +// service will use the most recent acl information to list event +// execution infos and renew the acl cache. Note that fetching the most +// recent acl is synchronous, so it will increase RPC call latency. +func (c *ProjectsLocationsIntegrationsExecutionsListCall) RefreshAcl(refreshAcl bool) *ProjectsLocationsIntegrationsExecutionsListCall { + c.urlParams_.Set("refreshAcl", fmt.Sprint(refreshAcl)) + return c +} + +// TruncateParams sets the optional parameter "truncateParams": If true, +// the service will truncate the params to only keep the first 1000 +// characters of string params and empty the executions in order to make +// response smaller. Only works for UI and when the params fields are +// not filtered out. +func (c *ProjectsLocationsIntegrationsExecutionsListCall) TruncateParams(truncateParams bool) *ProjectsLocationsIntegrationsExecutionsListCall { + c.urlParams_.Set("truncateParams", fmt.Sprint(truncateParams)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsExecutionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsExecutionsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsIntegrationsExecutionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsExecutionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsExecutionsListCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsExecutionsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsExecutionsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsExecutionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/executions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.executions.list" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaListExecutionsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIntegrationsV1alphaListExecutionsResponse.ServerResponse.H +// eader 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 *ProjectsLocationsIntegrationsExecutionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListExecutionsResponse, 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 := &GoogleCloudIntegrationsV1alphaListExecutionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists the results of all the integration executions. The response includes the same information as the [execution log](https://cloud.google.com/application-integration/docs/viewing-logs) in the Integration UI.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executions", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.integrations.executions.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. Standard filter field, we support filtering on all fields in EventExecutionParamIndexes table. All fields support for EQUALS, in additional: CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterKey, ParameterValue, ParameterType support for HAS For example: \"parameter_value\" HAS \\\"parameter1\\\" Also supports operators like AND, OR, NOT For example, trigger_id=\\\"id1\\\" AND event_execution_state=\\\"FAILED\\\"", + // "location": "query", + // "type": "string" + // }, + // "filterParams.customFilter": { + // "description": "Optional user-provided custom filter.", + // "location": "query", + // "type": "string" + // }, + // "filterParams.endTime": { + // "description": "End timestamp.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "filterParams.eventStatuses": { + // "description": "List of possible event statuses.", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "filterParams.executionId": { + // "description": "Execution id.", + // "location": "query", + // "type": "string" + // }, + // "filterParams.parameterKey": { + // "description": "Param key. DEPRECATED. User parameter_pair_key instead.", + // "location": "query", + // "type": "string" + // }, + // "filterParams.parameterPairKey": { + // "description": "Param key in the key value pair filter.", + // "location": "query", + // "type": "string" + // }, + // "filterParams.parameterPairValue": { + // "description": "Param value in the key value pair filter.", + // "location": "query", + // "type": "string" + // }, + // "filterParams.parameterType": { + // "description": "Param type.", + // "location": "query", + // "type": "string" + // }, + // "filterParams.parameterValue": { + // "description": "Param value. DEPRECATED. User parameter_pair_value instead.", + // "location": "query", + // "type": "string" + // }, + // "filterParams.startTime": { + // "description": "Start timestamp.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "filterParams.taskStatuses": { + // "description": "List of possible task statuses.", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "filterParams.workflowName": { + // "description": "Workflow name.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Optional. The results would be returned in order you specified here. Currently supporting \"last_modified_time\" and \"create_time\".", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. The size of entries in the response.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. The token returned in the previous response.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource name of the integration execution.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "Optional. View mask for the response data. If set, only the field specified will be returned as part of the result. If not set, all fields in event execution info will be filled and returned.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "refreshAcl": { + // "description": "Optional. If true, the service will use the most recent acl information to list event execution infos and renew the acl cache. Note that fetching the most recent acl is synchronous, so it will increase RPC call latency.", + // "location": "query", + // "type": "boolean" + // }, + // "truncateParams": { + // "description": "Optional. If true, the service will truncate the params to only keep the first 1000 characters of string params and empty the executions in order to make response smaller. Only works for UI and when the params fields are not filtered out.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "v1/{+parent}/executions", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListExecutionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsIntegrationsExecutionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListExecutionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "integrations.projects.locations.integrations.executions.suspensions.lift": + +type ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall struct { + s *Service + name string + googlecloudintegrationsv1alphaliftsuspensionrequest *GoogleCloudIntegrationsV1alphaLiftSuspensionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Lift: * Lifts suspension for advanced suspension task. Fetch +// corresponding suspension with provided suspension Id, resolve +// suspension, and set up suspension result for the Suspension Task. +// +// - name: The resource that the suspension belongs to. +// "projects/{project}/locations/{location}/products/{product}/integrat +// ions/{integration}/executions/{execution}/suspensions/{suspenion}" +// format. +func (r *ProjectsLocationsIntegrationsExecutionsSuspensionsService) Lift(name string, googlecloudintegrationsv1alphaliftsuspensionrequest *GoogleCloudIntegrationsV1alphaLiftSuspensionRequest) *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall { + c := &ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphaliftsuspensionrequest = googlecloudintegrationsv1alphaliftsuspensionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaliftsuspensionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:lift") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.executions.suspensions.lift" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaLiftSuspensionResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIntegrationsV1alphaLiftSuspensionResponse.ServerResponse.H +// eader 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 *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaLiftSuspensionResponse, 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 := &GoogleCloudIntegrationsV1alphaLiftSuspensionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "* Lifts suspension for advanced suspension task. Fetch corresponding suspension with provided suspension Id, resolve suspension, and set up suspension result for the Suspension Task.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions/{suspensionsId}:lift", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.integrations.executions.suspensions.lift", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource that the suspension belongs to. \"projects/{project}/locations/{location}/products/{product}/integrations/{integration}/executions/{execution}/suspensions/{suspenion}\" format.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/executions/[^/]+/suspensions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:lift", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaLiftSuspensionRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaLiftSuspensionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.integrations.executions.suspensions.list": + +type ProjectsLocationsIntegrationsExecutionsSuspensionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: * Lists suspensions associated with a specific execution. Only +// those with permissions to resolve the relevant suspensions will be +// able to view them. +// +// - parent: +// projects/{gcp_project_id}/locations/{location}/products/{product}/in +// tegrations/{integration_name}/executions/{execution_name}. +func (r *ProjectsLocationsIntegrationsExecutionsSuspensionsService) List(parent string) *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall { + c := &ProjectsLocationsIntegrationsExecutionsSuspensionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Standard filter field. +func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Filter(filter string) *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Field name to order +// by. +func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) OrderBy(orderBy string) *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// entries in the response. +func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) PageSize(pageSize int64) *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Token to retrieve +// a specific page. +func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) PageToken(pageToken string) *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/suspensions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.executions.suspensions.list" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaListSuspensionsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIntegrationsV1alphaListSuspensionsResponse.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 *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListSuspensionsResponse, 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 := &GoogleCloudIntegrationsV1alphaListSuspensionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "* Lists suspensions associated with a specific execution. Only those with permissions to resolve the relevant suspensions will be able to view them.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.integrations.executions.suspensions.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Standard filter field.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Field name to order by.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Maximum number of entries in the response.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Token to retrieve a specific page.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_name}/executions/{execution_name}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/executions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/suspensions", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListSuspensionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListSuspensionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "integrations.projects.locations.integrations.executions.suspensions.resolve": + +type ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall struct { + s *Service + name string + googlecloudintegrationsv1alpharesolvesuspensionrequest *GoogleCloudIntegrationsV1alphaResolveSuspensionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Resolve: * Resolves (lifts/rejects) any number of suspensions. If the +// integration is already running, only the status of the suspension is +// updated. Otherwise, the suspended integration will begin execution +// again. +// +// - name: +// projects/{gcp_project_id}/locations/{location}/products/{product}/in +// tegrations/{integration_name}/executions/{execution_name}/suspension +// s/{suspension_id}. +func (r *ProjectsLocationsIntegrationsExecutionsSuspensionsService) Resolve(name string, googlecloudintegrationsv1alpharesolvesuspensionrequest *GoogleCloudIntegrationsV1alphaResolveSuspensionRequest) *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall { + c := &ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alpharesolvesuspensionrequest = googlecloudintegrationsv1alpharesolvesuspensionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alpharesolvesuspensionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:resolve") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.executions.suspensions.resolve" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaResolveSuspensionResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaResolveSuspensionResponse.ServerRespons +// e.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 *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaResolveSuspensionResponse, 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 := &GoogleCloudIntegrationsV1alphaResolveSuspensionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "* Resolves (lifts/rejects) any number of suspensions. If the integration is already running, only the status of the suspension is updated. Otherwise, the suspended integration will begin execution again.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions/{suspensionsId}:resolve", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.integrations.executions.suspensions.resolve", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_name}/executions/{execution_name}/suspensions/{suspension_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/executions/[^/]+/suspensions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:resolve", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaResolveSuspensionRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaResolveSuspensionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.integrations.executionsnapshots.list": + +type ProjectsLocationsIntegrationsExecutionsnapshotsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the snapshots of a given integration executions. This RPC +// is not being used. +// +// - parent: The parent resource name of the integration execution. +func (r *ProjectsLocationsIntegrationsExecutionsnapshotsService) List(parent string) *ProjectsLocationsIntegrationsExecutionsnapshotsListCall { + c := &ProjectsLocationsIntegrationsExecutionsnapshotsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Currently supports +// filter by `execution_info_id` or `execution_snapshot_id`. +func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) Filter(filter string) *ProjectsLocationsIntegrationsExecutionsnapshotsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": Number of entries to +// be returned in a page. +func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) PageSize(pageSize int64) *ProjectsLocationsIntegrationsExecutionsnapshotsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The token used to +// retrieve the next page results. +func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) PageToken(pageToken string) *ProjectsLocationsIntegrationsExecutionsnapshotsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": View mask for the +// response data. If set, only the field specified will be returned as +// part of the result. If not set, all fields in event execution +// snapshot will be filled and returned. +func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) ReadMask(readMask string) *ProjectsLocationsIntegrationsExecutionsnapshotsListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsExecutionsnapshotsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsExecutionsnapshotsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsExecutionsnapshotsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/executionsnapshots") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.executionsnapshots.list" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse.ServerRe +// sponse.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 *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse, 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 := &GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists the snapshots of a given integration executions. This RPC is not being used.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executionsnapshots", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.integrations.executionsnapshots.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Currently supports filter by `execution_info_id` or `execution_snapshot_id`.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Number of entries to be returned in a page.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The token used to retrieve the next page results.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource name of the integration execution.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "View mask for the response data. If set, only the field specified will be returned as part of the result. If not set, all fields in event execution snapshot will be filled and returned.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/executionsnapshots", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "integrations.projects.locations.integrations.versions.archive": + +type ProjectsLocationsIntegrationsVersionsArchiveCall struct { + s *Service + name string + googlecloudintegrationsv1alphaarchiveintegrationversionrequest *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Archive: Soft-deletes the integration. Changes the status of the +// integration to ARCHIVED. If the integration being ARCHIVED is tagged +// as "HEAD", the tag is removed from this snapshot and set to the +// previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, +// DUE_FOR_DELETION tags are removed too. This RPC throws an exception +// if the version being archived is DRAFT, and if the `locked_by` user +// is not the same as the user performing the Archive. Audit fields +// updated include last_modified_timestamp, last_modified_by. Any +// existing lock is released when Archiving a integration. Currently, +// there is no unarchive mechanism. +// +// - name: The version to archive. Format: +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. +func (r *ProjectsLocationsIntegrationsVersionsService) Archive(name string, googlecloudintegrationsv1alphaarchiveintegrationversionrequest *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest) *ProjectsLocationsIntegrationsVersionsArchiveCall { + c := &ProjectsLocationsIntegrationsVersionsArchiveCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphaarchiveintegrationversionrequest = googlecloudintegrationsv1alphaarchiveintegrationversionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsVersionsArchiveCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsArchiveCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsVersionsArchiveCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsArchiveCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsVersionsArchiveCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsVersionsArchiveCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaarchiveintegrationversionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:archive") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.versions.archive" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse.Serve +// rResponse.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 *ProjectsLocationsIntegrationsVersionsArchiveCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse, 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 := &GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as \"HEAD\", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being archived is DRAFT, and if the `locked_by` user is not the same as the user performing the Archive. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Archiving a integration. Currently, there is no unarchive mechanism.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:archive", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.integrations.versions.archive", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The version to archive. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:archive", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.integrations.versions.create": + +type ProjectsLocationsIntegrationsVersionsCreateCall struct { + s *Service + parent string + googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Create a integration with a draft version in the specified +// project. +// +// - parent: The parent resource where this version will be created. +// Format: +// projects/{project}/locations/{location}/integrations/{integration}. +func (r *ProjectsLocationsIntegrationsVersionsService) Create(parent string, googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion) *ProjectsLocationsIntegrationsVersionsCreateCall { + c := &ProjectsLocationsIntegrationsVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphaintegrationversion = googlecloudintegrationsv1alphaintegrationversion + return c +} + +// NewIntegration sets the optional parameter "newIntegration": Set this +// flag to true, if draft version is to be created for a brand new +// integration. False, if the request is for an existing integration. +// For backward compatibility reasons, even if this flag is set to +// `false` and no existing integration is found, a new draft integration +// will still be created. +func (c *ProjectsLocationsIntegrationsVersionsCreateCall) NewIntegration(newIntegration bool) *ProjectsLocationsIntegrationsVersionsCreateCall { + c.urlParams_.Set("newIntegration", fmt.Sprint(newIntegration)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsVersionsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsVersionsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaintegrationversion) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/versions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.versions.create" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade +// r 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 *ProjectsLocationsIntegrationsVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, 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 := &GoogleCloudIntegrationsV1alphaIntegrationVersion{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Create a integration with a draft version in the specified project.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.integrations.versions.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "newIntegration": { + // "description": "Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created.", + // "location": "query", + // "type": "boolean" + // }, + // "parent": { + // "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/versions", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.integrations.versions.deactivate": + +type ProjectsLocationsIntegrationsVersionsDeactivateCall struct { + s *Service + name string + googlecloudintegrationsv1alphadeactivateintegrationversionrequest *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Deactivate: Sets the status of the ACTIVE integration to SNAPSHOT +// with a new tag "PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" +// and "PUBLISH_REQUESTED" tags do not change. This RPC throws an +// exception if the version being snapshot is not ACTIVE. Audit fields +// added include action, action_by, action_timestamp. +// +// - name: The version to deactivate. Format: +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. +func (r *ProjectsLocationsIntegrationsVersionsService) Deactivate(name string, googlecloudintegrationsv1alphadeactivateintegrationversionrequest *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest) *ProjectsLocationsIntegrationsVersionsDeactivateCall { + c := &ProjectsLocationsIntegrationsVersionsDeactivateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphadeactivateintegrationversionrequest = googlecloudintegrationsv1alphadeactivateintegrationversionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsVersionsDeactivateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsDeactivateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsVersionsDeactivateCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsDeactivateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsVersionsDeactivateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsVersionsDeactivateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphadeactivateintegrationversionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:deactivate") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.versions.deactivate" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse.Se +// rverResponse.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 *ProjectsLocationsIntegrationsVersionsDeactivateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse, 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 := &GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the status of the ACTIVE integration to SNAPSHOT with a new tag \"PREVIOUSLY_PUBLISHED\" after validating it. The \"HEAD\" and \"PUBLISH_REQUESTED\" tags do not change. This RPC throws an exception if the version being snapshot is not ACTIVE. Audit fields added include action, action_by, action_timestamp.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:deactivate", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.integrations.versions.deactivate", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:deactivate", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.integrations.versions.delete": + +type ProjectsLocationsIntegrationsVersionsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Soft-deletes the integration. Changes the status of the +// integration to ARCHIVED. If the integration being ARCHIVED is tagged +// as "HEAD", the tag is removed from this snapshot and set to the +// previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, +// DUE_FOR_DELETION tags are removed too. This RPC throws an exception +// if the version being deleted is DRAFT, and if the `locked_by` user is +// not the same as the user performing the Delete. Audit fields updated +// include last_modified_timestamp, last_modified_by. Any existing lock +// is released when Deleting a integration. Currently, there is no +// undelete mechanism. +// +// - name: The version to delete. Format: +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. +func (r *ProjectsLocationsIntegrationsVersionsService) Delete(name string) *ProjectsLocationsIntegrationsVersionsDeleteCall { + c := &ProjectsLocationsIntegrationsVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.versions.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsLocationsIntegrationsVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as \"HEAD\", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being deleted is DRAFT, and if the `locked_by` user is not the same as the user performing the Delete. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Deleting a integration. Currently, there is no undelete mechanism.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}", + // "httpMethod": "DELETE", + // "id": "integrations.projects.locations.integrations.versions.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The version to delete. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.integrations.versions.download": + +type ProjectsLocationsIntegrationsVersionsDownloadCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Download: Downloads an integration. Retrieves the +// `IntegrationVersion` for a given `integration_id` and returns the +// response as a string. +// +// - name: The version to download. Format: +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. +func (r *ProjectsLocationsIntegrationsVersionsService) Download(name string) *ProjectsLocationsIntegrationsVersionsDownloadCall { + c := &ProjectsLocationsIntegrationsVersionsDownloadCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// FileFormat sets the optional parameter "fileFormat": File format for +// download request. +// +// Possible values: +// +// "FILE_FORMAT_UNSPECIFIED" - Unspecified file format +// "JSON" - JSON File Format +// "YAML" - YAML File Format +func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) FileFormat(fileFormat string) *ProjectsLocationsIntegrationsVersionsDownloadCall { + c.urlParams_.Set("fileFormat", fileFormat) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsDownloadCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsVersionsDownloadCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsDownloadCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:download") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.versions.download" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse.Serv +// erResponse.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 *ProjectsLocationsIntegrationsVersionsDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse, 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 := &GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Downloads an integration. Retrieves the `IntegrationVersion` for a given `integration_id` and returns the response as a string.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:download", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.integrations.versions.download", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "fileFormat": { + // "description": "File format for download request.", + // "enum": [ + // "FILE_FORMAT_UNSPECIFIED", + // "JSON", + // "YAML" + // ], + // "enumDescriptions": [ + // "Unspecified file format", + // "JSON File Format", + // "YAML File Format" + // ], + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "Required. The version to download. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:download", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.integrations.versions.get": + +type ProjectsLocationsIntegrationsVersionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get a integration in the specified project. +// +// - name: The version to retrieve. Format: +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. +func (r *ProjectsLocationsIntegrationsVersionsService) Get(name string) *ProjectsLocationsIntegrationsVersionsGetCall { + c := &ProjectsLocationsIntegrationsVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsIntegrationsVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsVersionsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsVersionsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsVersionsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.versions.get" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade +// r 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 *ProjectsLocationsIntegrationsVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, 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 := &GoogleCloudIntegrationsV1alphaIntegrationVersion{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Get a integration in the specified project.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.integrations.versions.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The version to retrieve. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.integrations.versions.list": + +type ProjectsLocationsIntegrationsVersionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Returns the list of all integration versions in the specified +// project. +// +// - parent: The parent resource where this version will be created. +// Format: +// projects/{project}/locations/{location}/integrations/{integration} +// Specifically, when parent equals: 1. +// projects//locations//integrations/, Meaning: "List versions (with +// filter) for a particular integration". 2. +// projects//locations//integrations/- Meaning: "List versions (with +// filter) for a client within a particular region". 3. +// projects//locations/-/integrations/- Meaning: "List versions (with +// filter) for a client". +func (r *ProjectsLocationsIntegrationsVersionsService) List(parent string) *ProjectsLocationsIntegrationsVersionsListCall { + c := &ProjectsLocationsIntegrationsVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// FieldMask sets the optional parameter "fieldMask": The field mask +// which specifies the particular data to be returned. +func (c *ProjectsLocationsIntegrationsVersionsListCall) FieldMask(fieldMask string) *ProjectsLocationsIntegrationsVersionsListCall { + c.urlParams_.Set("fieldMask", fieldMask) + return c +} + +// Filter sets the optional parameter "filter": Filter on fields of +// IntegrationVersion. Fields can be compared with literal values by use +// of ":" (containment), "=" (equality), ">" (greater), "<" (less than), +// >=" (greater than or equal to), "<=" (less than or equal to), and +// "!=" (inequality) operators. Negation, conjunction, and disjunction +// are written using NOT, AND, and OR keywords. For example, +// organization_id=\"1\" AND state=ACTIVE AND description:"test". +// Filtering cannot be performed on repeated fields like `task_config`. +func (c *ProjectsLocationsIntegrationsVersionsListCall) Filter(filter string) *ProjectsLocationsIntegrationsVersionsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": The results would be +// returned in order you specified here. Currently supported sort keys +// are: Descending sort order for "last_modified_time", "created_time", +// "snapshot_number" Ascending sort order for "name". +func (c *ProjectsLocationsIntegrationsVersionsListCall) OrderBy(orderBy string) *ProjectsLocationsIntegrationsVersionsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of versions to return. The service may return fewer than this value. +// If unspecified, at most 50 versions will be returned. The maximum +// value is 1000; values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsIntegrationsVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsIntegrationsVersionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListIntegrationVersions` call. Provide this +// to retrieve the subsequent page. When paginating, all other +// parameters provided to `ListIntegrationVersions` must match the call +// that provided the page token. +func (c *ProjectsLocationsIntegrationsVersionsListCall) PageToken(pageToken string) *ProjectsLocationsIntegrationsVersionsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsIntegrationsVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsVersionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsVersionsListCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsVersionsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsVersionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/versions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.versions.list" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse.ServerR +// esponse.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 *ProjectsLocationsIntegrationsVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse, 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 := &GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the list of all integration versions in the specified project.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.integrations.versions.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "fieldMask": { + // "description": "The field mask which specifies the particular data to be returned.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "filter": { + // "description": "Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of \":\" (containment), \"=\" (equality), \"\u003e\" (greater), \"\u003c\" (less than), \u003e=\" (greater than or equal to), \"\u003c=\" (less than or equal to), and \"!=\" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\\"1\\\" AND state=ACTIVE AND description:\"test\". Filtering cannot be performed on repeated fields like `task_config`.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "The results would be returned in order you specified here. Currently supported sort keys are: Descending sort order for \"last_modified_time\", \"created_time\", \"snapshot_number\" Ascending sort order for \"name\".", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of versions to return. The service may return fewer than this value. If unspecified, at most 50 versions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListIntegrationVersions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListIntegrationVersions` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration} Specifically, when parent equals: 1. projects//locations//integrations/, Meaning: \"List versions (with filter) for a particular integration\". 2. projects//locations//integrations/- Meaning: \"List versions (with filter) for a client within a particular region\". 3. projects//locations/-/integrations/- Meaning: \"List versions (with filter) for a client\".", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/versions", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsIntegrationsVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "integrations.projects.locations.integrations.versions.patch": + +type ProjectsLocationsIntegrationsVersionsPatchCall struct { + s *Service + name string + googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update a integration with a draft version in the specified +// project. +// +// - name: Output only. Auto-generated primary key. +func (r *ProjectsLocationsIntegrationsVersionsService) Patch(name string, googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion) *ProjectsLocationsIntegrationsVersionsPatchCall { + c := &ProjectsLocationsIntegrationsVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphaintegrationversion = googlecloudintegrationsv1alphaintegrationversion + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask +// specifying the fields in the above integration that have been +// modified and need to be updated. +func (c *ProjectsLocationsIntegrationsVersionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsIntegrationsVersionsPatchCall { + 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 information. +func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsVersionsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaintegrationversion) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.versions.patch" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade +// r 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 *ProjectsLocationsIntegrationsVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, 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 := &GoogleCloudIntegrationsV1alphaIntegrationVersion{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Update a integration with a draft version in the specified project.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}", + // "httpMethod": "PATCH", + // "id": "integrations.projects.locations.integrations.versions.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. Auto-generated primary key.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask specifying the fields in the above integration that have been modified and need to be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.integrations.versions.publish": + +type ProjectsLocationsIntegrationsVersionsPublishCall struct { + s *Service + name string + googlecloudintegrationsv1alphapublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Publish: This RPC throws an exception if the integration is in +// ARCHIVED or ACTIVE state. This RPC throws an exception if the version +// being published is DRAFT, and if the `locked_by` user is not the same +// as the user performing the Publish. Audit fields updated include +// last_published_timestamp, last_published_by, last_modified_timestamp, +// last_modified_by. Any existing lock is on this integration is +// released. +// +// - name: The version to publish. Format: +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. +func (r *ProjectsLocationsIntegrationsVersionsService) Publish(name string, googlecloudintegrationsv1alphapublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest) *ProjectsLocationsIntegrationsVersionsPublishCall { + c := &ProjectsLocationsIntegrationsVersionsPublishCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphapublishintegrationversionrequest = googlecloudintegrationsv1alphapublishintegrationversionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsPublishCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsPublishCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsVersionsPublishCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphapublishintegrationversionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:publish") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.versions.publish" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse.Serve +// rResponse.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 *ProjectsLocationsIntegrationsVersionsPublishCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse, 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 := &GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "This RPC throws an exception if the integration is in ARCHIVED or ACTIVE state. This RPC throws an exception if the version being published is DRAFT, and if the `locked_by` user is not the same as the user performing the Publish. Audit fields updated include last_published_timestamp, last_published_by, last_modified_timestamp, last_modified_by. Any existing lock is on this integration is released.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:publish", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.integrations.versions.publish", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The version to publish. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:publish", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.integrations.versions.unpublish": + +type ProjectsLocationsIntegrationsVersionsUnpublishCall struct { + s *Service + name string + googlecloudintegrationsv1alphaunpublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Unpublish: Sets the status of the ACTIVE integration to SNAPSHOT with +// a new tag "PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and +// "PUBLISH_REQUESTED" tags do not change. This RPC throws an exception +// if the version being snapshot is not ACTIVE. Audit fields added +// include action, action_by, action_timestamp. +// +// - name: The version to deactivate. Format: +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. +func (r *ProjectsLocationsIntegrationsVersionsService) Unpublish(name string, googlecloudintegrationsv1alphaunpublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest) *ProjectsLocationsIntegrationsVersionsUnpublishCall { + c := &ProjectsLocationsIntegrationsVersionsUnpublishCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphaunpublishintegrationversionrequest = googlecloudintegrationsv1alphaunpublishintegrationversionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsUnpublishCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsUnpublishCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaunpublishintegrationversionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:unpublish") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.versions.unpublish" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsLocationsIntegrationsVersionsUnpublishCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the status of the ACTIVE integration to SNAPSHOT with a new tag \"PREVIOUSLY_PUBLISHED\" after validating it. The \"HEAD\" and \"PUBLISH_REQUESTED\" tags do not change. This RPC throws an exception if the version being snapshot is not ACTIVE. Audit fields added include action, action_by, action_timestamp.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:unpublish", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.integrations.versions.unpublish", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:unpublish", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest" + // }, + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.integrations.versions.upload": + +type ProjectsLocationsIntegrationsVersionsUploadCall struct { + s *Service + parent string + googlecloudintegrationsv1alphauploadintegrationversionrequest *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Upload: Uploads an integration. The content can be a previously +// downloaded integration. Performs the same function as +// CreateDraftIntegrationVersion, but accepts input in a string format, +// which holds the complete representation of the IntegrationVersion +// content. +// +// - parent: The version to upload. Format: +// projects/{project}/locations/{location}/integrations/{integration}. +func (r *ProjectsLocationsIntegrationsVersionsService) Upload(parent string, googlecloudintegrationsv1alphauploadintegrationversionrequest *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest) *ProjectsLocationsIntegrationsVersionsUploadCall { + c := &ProjectsLocationsIntegrationsVersionsUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphauploadintegrationversionrequest = googlecloudintegrationsv1alphauploadintegrationversionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsVersionsUploadCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsUploadCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsVersionsUploadCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsUploadCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsVersionsUploadCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsVersionsUploadCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphauploadintegrationversionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/versions:upload") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.versions.upload" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse.Server +// Response.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 *ProjectsLocationsIntegrationsVersionsUploadCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse, 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 := &GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Uploads an integration. The content can be a previously downloaded integration. Performs the same function as CreateDraftIntegrationVersion, but accepts input in a string format, which holds the complete representation of the IntegrationVersion content.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions:upload", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.integrations.versions.upload", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The version to upload. Format: projects/{project}/locations/{location}/integrations/{integration}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/versions:upload", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.integrations.versions.validate": + +type ProjectsLocationsIntegrationsVersionsValidateCall struct { + s *Service + name string + googlecloudintegrationsv1alphavalidateintegrationversionrequest *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Validate: Validates the given integration. If the id doesn't exist, a +// NotFoundException is thrown. If validation fails a +// CanonicalCodeException is thrown. If there was no failure an empty +// response is returned. +// +// - name: The version to validate. Format: +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. +func (r *ProjectsLocationsIntegrationsVersionsService) Validate(name string, googlecloudintegrationsv1alphavalidateintegrationversionrequest *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest) *ProjectsLocationsIntegrationsVersionsValidateCall { + c := &ProjectsLocationsIntegrationsVersionsValidateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphavalidateintegrationversionrequest = googlecloudintegrationsv1alphavalidateintegrationversionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsVersionsValidateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsValidateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsVersionsValidateCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsValidateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsVersionsValidateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsVersionsValidateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphavalidateintegrationversionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:validate") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.versions.validate" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse.Serv +// erResponse.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 *ProjectsLocationsIntegrationsVersionsValidateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse, 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 := &GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Validates the given integration. If the id doesn't exist, a NotFoundException is thrown. If validation fails a CanonicalCodeException is thrown. If there was no failure an empty response is returned.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:validate", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.integrations.versions.validate", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The version to validate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:validate", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.createBundle": + +type ProjectsLocationsProductsCreateBundleCall struct { + s *Service + parent string + googlecloudintegrationsv1alphacreatebundlerequest *GoogleCloudIntegrationsV1alphaCreateBundleRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// CreateBundle: PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE +// MOVED TO A SEPARATE SERVICE. Create a bundle. +// +// - parent: The location resource of the request. +func (r *ProjectsLocationsProductsService) CreateBundle(parent string, googlecloudintegrationsv1alphacreatebundlerequest *GoogleCloudIntegrationsV1alphaCreateBundleRequest) *ProjectsLocationsProductsCreateBundleCall { + c := &ProjectsLocationsProductsCreateBundleCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphacreatebundlerequest = googlecloudintegrationsv1alphacreatebundlerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsCreateBundleCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCreateBundleCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsCreateBundleCall) Context(ctx context.Context) *ProjectsLocationsProductsCreateBundleCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsCreateBundleCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsCreateBundleCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacreatebundlerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:createBundle") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.createBundle" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaCreateBundleResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaCreateBundleResponse.ServerResponse.Hea +// der 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 *ProjectsLocationsProductsCreateBundleCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCreateBundleResponse, 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 := &GoogleCloudIntegrationsV1alphaCreateBundleResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. Create a bundle.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}:createBundle", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.createBundle", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The location resource of the request.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}:createBundle", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaCreateBundleRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaCreateBundleResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.listTaskEntities": + +type ProjectsLocationsProductsListTaskEntitiesCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// ListTaskEntities: This is a UI only method and will be moved away. +// Returns a list of common tasks. +// +// - parent: The location resource of the request. This is not going to +// be used but preserve the field for future. +func (r *ProjectsLocationsProductsService) ListTaskEntities(parent string) *ProjectsLocationsProductsListTaskEntitiesCall { + c := &ProjectsLocationsProductsListTaskEntitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsListTaskEntitiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsListTaskEntitiesCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProductsListTaskEntitiesCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsListTaskEntitiesCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsListTaskEntitiesCall) Context(ctx context.Context) *ProjectsLocationsProductsListTaskEntitiesCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsListTaskEntitiesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsListTaskEntitiesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:listTaskEntities") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.listTaskEntities" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse.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 *ProjectsLocationsProductsListTaskEntitiesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse, 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 := &GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "This is a UI only method and will be moved away. Returns a list of common tasks.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}:listTaskEntities", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.products.listTaskEntities", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The location resource of the request. This is not going to be used but preserve the field for future.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}:listTaskEntities", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.authConfigs.create": + +type ProjectsLocationsProductsAuthConfigsCreateCall struct { + s *Service + parent string + googlecloudintegrationsv1alphaauthconfig *GoogleCloudIntegrationsV1alphaAuthConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates an auth config record. Fetch corresponding +// credentials for specific auth types, e.g. access token for OAuth 2.0, +// JWT token for JWT. Encrypt the auth config with Cloud KMS and store +// the encrypted credentials in Spanner. Returns the encrypted auth +// config. +// +// - parent: "projects/{project}/locations/{location}" format. +func (r *ProjectsLocationsProductsAuthConfigsService) Create(parent string, googlecloudintegrationsv1alphaauthconfig *GoogleCloudIntegrationsV1alphaAuthConfig) *ProjectsLocationsProductsAuthConfigsCreateCall { + c := &ProjectsLocationsProductsAuthConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphaauthconfig = googlecloudintegrationsv1alphaauthconfig + return c +} + +// ClientCertificateEncryptedPrivateKey sets the optional parameter +// "clientCertificate.encryptedPrivateKey": The ssl certificate encoded +// in PEM format. This string must include the begin header and end +// footer lines. For example, -----BEGIN CERTIFICATE----- +// MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV +// BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw +// MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET +// MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA +// vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 +// JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB +// xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P +// AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB +// Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey +// Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW +// JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr +// 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H +// wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- +func (c *ProjectsLocationsProductsAuthConfigsCreateCall) ClientCertificateEncryptedPrivateKey(clientCertificateEncryptedPrivateKey string) *ProjectsLocationsProductsAuthConfigsCreateCall { + c.urlParams_.Set("clientCertificate.encryptedPrivateKey", clientCertificateEncryptedPrivateKey) + return c +} + +// ClientCertificatePassphrase sets the optional parameter +// "clientCertificate.passphrase": 'passphrase' should be left unset if +// private key is not encrypted. Note that 'passphrase' is not the +// password for web server, but an extra layer of security to protected +// private key. +func (c *ProjectsLocationsProductsAuthConfigsCreateCall) ClientCertificatePassphrase(clientCertificatePassphrase string) *ProjectsLocationsProductsAuthConfigsCreateCall { + c.urlParams_.Set("clientCertificate.passphrase", clientCertificatePassphrase) + return c +} + +// ClientCertificateSslCertificate sets the optional parameter +// "clientCertificate.sslCertificate": The ssl certificate encoded in +// PEM format. This string must include the begin header and end footer +// lines. For example, -----BEGIN CERTIFICATE----- +// MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV +// BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw +// MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET +// MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA +// vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 +// JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB +// xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P +// AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB +// Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey +// Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW +// JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr +// 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H +// wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- +func (c *ProjectsLocationsProductsAuthConfigsCreateCall) ClientCertificateSslCertificate(clientCertificateSslCertificate string) *ProjectsLocationsProductsAuthConfigsCreateCall { + c.urlParams_.Set("clientCertificate.sslCertificate", clientCertificateSslCertificate) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsAuthConfigsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaauthconfig) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/authConfigs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.authConfigs.create" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaAuthConfig or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaAuthConfig.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 *ProjectsLocationsProductsAuthConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaAuthConfig, 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 := &GoogleCloudIntegrationsV1alphaAuthConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates an auth config record. Fetch corresponding credentials for specific auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the auth config with Cloud KMS and store the encrypted credentials in Spanner. Returns the encrypted auth config.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.authConfigs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "clientCertificate.encryptedPrivateKey": { + // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + // "location": "query", + // "type": "string" + // }, + // "clientCertificate.passphrase": { + // "description": "'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key.", + // "location": "query", + // "type": "string" + // }, + // "clientCertificate.sslCertificate": { + // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. \"projects/{project}/locations/{location}\" format.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/authConfigs", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.authConfigs.delete": + +type ProjectsLocationsProductsAuthConfigsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes an auth config. +// +// - name: The name that is associated with the AuthConfig. +func (r *ProjectsLocationsProductsAuthConfigsService) Delete(name string) *ProjectsLocationsProductsAuthConfigsDeleteCall { + c := &ProjectsLocationsProductsAuthConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.authConfigs.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsLocationsProductsAuthConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes an auth config.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs/{authConfigsId}", + // "httpMethod": "DELETE", + // "id": "integrations.projects.locations.products.authConfigs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name that is associated with the AuthConfig.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/authConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.authConfigs.get": + +type ProjectsLocationsProductsAuthConfigsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a complete auth config. If the auth config doesn't exist, +// Code.NOT_FOUND exception will be thrown. Returns the decrypted auth +// config. +// +// - name: The name that is associated with the AuthConfig. +func (r *ProjectsLocationsProductsAuthConfigsService) Get(name string) *ProjectsLocationsProductsAuthConfigsGetCall { + c := &ProjectsLocationsProductsAuthConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsAuthConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProductsAuthConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsAuthConfigsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsAuthConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsAuthConfigsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsAuthConfigsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.authConfigs.get" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaAuthConfig or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaAuthConfig.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 *ProjectsLocationsProductsAuthConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaAuthConfig, 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 := &GoogleCloudIntegrationsV1alphaAuthConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a complete auth config. If the auth config doesn't exist, Code.NOT_FOUND exception will be thrown. Returns the decrypted auth config.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs/{authConfigsId}", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.products.authConfigs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name that is associated with the AuthConfig.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/authConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.authConfigs.list": + +type ProjectsLocationsProductsAuthConfigsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all auth configs that match the filter. Restrict to auth +// configs belong to the current client only. +// +// - parent: The client, which owns this collection of AuthConfigs. +func (r *ProjectsLocationsProductsAuthConfigsService) List(parent string) *ProjectsLocationsProductsAuthConfigsListCall { + c := &ProjectsLocationsProductsAuthConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filtering as supported +// in +// https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters. +func (c *ProjectsLocationsProductsAuthConfigsListCall) Filter(filter string) *ProjectsLocationsProductsAuthConfigsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The size of entries +// in the response. If unspecified, defaults to 100. +func (c *ProjectsLocationsProductsAuthConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsAuthConfigsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The token returned +// in the previous response. +func (c *ProjectsLocationsProductsAuthConfigsListCall) PageToken(pageToken string) *ProjectsLocationsProductsAuthConfigsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": The mask which +// specifies fields that need to be returned in the AuthConfig's +// response. +func (c *ProjectsLocationsProductsAuthConfigsListCall) ReadMask(readMask string) *ProjectsLocationsProductsAuthConfigsListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsAuthConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProductsAuthConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsAuthConfigsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsAuthConfigsListCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsAuthConfigsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsAuthConfigsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/authConfigs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.authConfigs.list" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaListAuthConfigsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIntegrationsV1alphaListAuthConfigsResponse.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 *ProjectsLocationsProductsAuthConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListAuthConfigsResponse, 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 := &GoogleCloudIntegrationsV1alphaListAuthConfigsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists all auth configs that match the filter. Restrict to auth configs belong to the current client only.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.products.authConfigs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The size of entries in the response. If unspecified, defaults to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The token returned in the previous response.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The client, which owns this collection of AuthConfigs.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "The mask which specifies fields that need to be returned in the AuthConfig's response.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/authConfigs", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListAuthConfigsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsProductsAuthConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListAuthConfigsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "integrations.projects.locations.products.authConfigs.patch": + +type ProjectsLocationsProductsAuthConfigsPatchCall struct { + s *Service + name string + googlecloudintegrationsv1alphaauthconfig *GoogleCloudIntegrationsV1alphaAuthConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an auth config. If credential is updated, fetch the +// encrypted auth config from Spanner, decrypt with Cloud KMS key, +// update the credential fields, re-encrypt with Cloud KMS key and +// update the Spanner record. For other fields, directly update the +// Spanner record. Returns the encrypted auth config. +// +// - name: Resource name of the SFDC instance +// projects/{project}/locations/{location}/authConfigs/{authConfig}. +func (r *ProjectsLocationsProductsAuthConfigsService) Patch(name string, googlecloudintegrationsv1alphaauthconfig *GoogleCloudIntegrationsV1alphaAuthConfig) *ProjectsLocationsProductsAuthConfigsPatchCall { + c := &ProjectsLocationsProductsAuthConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphaauthconfig = googlecloudintegrationsv1alphaauthconfig + return c +} + +// ClientCertificateEncryptedPrivateKey sets the optional parameter +// "clientCertificate.encryptedPrivateKey": The ssl certificate encoded +// in PEM format. This string must include the begin header and end +// footer lines. For example, -----BEGIN CERTIFICATE----- +// MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV +// BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw +// MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET +// MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA +// vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 +// JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB +// xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P +// AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB +// Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey +// Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW +// JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr +// 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H +// wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- +func (c *ProjectsLocationsProductsAuthConfigsPatchCall) ClientCertificateEncryptedPrivateKey(clientCertificateEncryptedPrivateKey string) *ProjectsLocationsProductsAuthConfigsPatchCall { + c.urlParams_.Set("clientCertificate.encryptedPrivateKey", clientCertificateEncryptedPrivateKey) + return c +} + +// ClientCertificatePassphrase sets the optional parameter +// "clientCertificate.passphrase": 'passphrase' should be left unset if +// private key is not encrypted. Note that 'passphrase' is not the +// password for web server, but an extra layer of security to protected +// private key. +func (c *ProjectsLocationsProductsAuthConfigsPatchCall) ClientCertificatePassphrase(clientCertificatePassphrase string) *ProjectsLocationsProductsAuthConfigsPatchCall { + c.urlParams_.Set("clientCertificate.passphrase", clientCertificatePassphrase) + return c +} + +// ClientCertificateSslCertificate sets the optional parameter +// "clientCertificate.sslCertificate": The ssl certificate encoded in +// PEM format. This string must include the begin header and end footer +// lines. For example, -----BEGIN CERTIFICATE----- +// MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV +// BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw +// MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET +// MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA +// vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 +// JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB +// xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P +// AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB +// Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey +// Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW +// JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr +// 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H +// wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- +func (c *ProjectsLocationsProductsAuthConfigsPatchCall) ClientCertificateSslCertificate(clientCertificateSslCertificate string) *ProjectsLocationsProductsAuthConfigsPatchCall { + c.urlParams_.Set("clientCertificate.sslCertificate", clientCertificateSslCertificate) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask +// specifying the fields in the above AuthConfig that have been modified +// and need to be updated. +func (c *ProjectsLocationsProductsAuthConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProductsAuthConfigsPatchCall { + 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 information. +func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsAuthConfigsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaauthconfig) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.authConfigs.patch" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaAuthConfig or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaAuthConfig.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 *ProjectsLocationsProductsAuthConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaAuthConfig, 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 := &GoogleCloudIntegrationsV1alphaAuthConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates an auth config. If credential is updated, fetch the encrypted auth config from Spanner, decrypt with Cloud KMS key, update the credential fields, re-encrypt with Cloud KMS key and update the Spanner record. For other fields, directly update the Spanner record. Returns the encrypted auth config.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs/{authConfigsId}", + // "httpMethod": "PATCH", + // "id": "integrations.projects.locations.products.authConfigs.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "clientCertificate.encryptedPrivateKey": { + // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + // "location": "query", + // "type": "string" + // }, + // "clientCertificate.passphrase": { + // "description": "'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key.", + // "location": "query", + // "type": "string" + // }, + // "clientCertificate.sslCertificate": { + // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "Resource name of the SFDC instance projects/{project}/locations/{location}/authConfigs/{authConfig}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/authConfigs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask specifying the fields in the above AuthConfig that have been modified and need to be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.certificates.create": + +type ProjectsLocationsProductsCertificatesCreateCall struct { + s *Service + parent string + googlecloudintegrationsv1alphacertificate *GoogleCloudIntegrationsV1alphaCertificate + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new certificate. The certificate will be registered +// to the trawler service and will be encrypted using cloud KMS and +// stored in Spanner Returns the certificate. +// +// - parent: "projects/{project}/locations/{location}" format. +func (r *ProjectsLocationsProductsCertificatesService) Create(parent string, googlecloudintegrationsv1alphacertificate *GoogleCloudIntegrationsV1alphaCertificate) *ProjectsLocationsProductsCertificatesCreateCall { + c := &ProjectsLocationsProductsCertificatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphacertificate = googlecloudintegrationsv1alphacertificate + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsCertificatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsCertificatesCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsCertificatesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsCertificatesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacertificate) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/certificates") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.certificates.create" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaCertificate or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaCertificate.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 *ProjectsLocationsProductsCertificatesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCertificate, 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 := &GoogleCloudIntegrationsV1alphaCertificate{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new certificate. The certificate will be registered to the trawler service and will be encrypted using cloud KMS and stored in Spanner Returns the certificate.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.certificates.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. \"projects/{project}/locations/{location}\" format.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/certificates", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.certificates.delete": + +type ProjectsLocationsProductsCertificatesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Delete a certificate +// +// - name: The name that is associated with the Certificate. +func (r *ProjectsLocationsProductsCertificatesService) Delete(name string) *ProjectsLocationsProductsCertificatesDeleteCall { + c := &ProjectsLocationsProductsCertificatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsCertificatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsCertificatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsCertificatesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsCertificatesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.certificates.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsLocationsProductsCertificatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Delete a certificate", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates/{certificatesId}", + // "httpMethod": "DELETE", + // "id": "integrations.projects.locations.products.certificates.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name that is associated with the Certificate.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/certificates/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.certificates.get": + +type ProjectsLocationsProductsCertificatesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get a certificates in the specified project. +// +// - name: The certificate to retrieve. Format: +// projects/{project}/locations/{location}/certificates/{certificate}. +func (r *ProjectsLocationsProductsCertificatesService) Get(name string) *ProjectsLocationsProductsCertificatesGetCall { + c := &ProjectsLocationsProductsCertificatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsCertificatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProductsCertificatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsCertificatesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsCertificatesGetCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsCertificatesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsCertificatesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.certificates.get" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaCertificate or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaCertificate.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 *ProjectsLocationsProductsCertificatesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCertificate, 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 := &GoogleCloudIntegrationsV1alphaCertificate{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Get a certificates in the specified project.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates/{certificatesId}", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.products.certificates.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The certificate to retrieve. Format: projects/{project}/locations/{location}/certificates/{certificate}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/certificates/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.certificates.list": + +type ProjectsLocationsProductsCertificatesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List all the certificates that match the filter. Restrict to +// certificate of current client only. +// +// - parent: The client, which owns this collection of Certificates. +func (r *ProjectsLocationsProductsCertificatesService) List(parent string) *ProjectsLocationsProductsCertificatesListCall { + c := &ProjectsLocationsProductsCertificatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filtering as supported +// in +// https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters. +func (c *ProjectsLocationsProductsCertificatesListCall) Filter(filter string) *ProjectsLocationsProductsCertificatesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The size of entries +// in the response. If unspecified, defaults to 100. +func (c *ProjectsLocationsProductsCertificatesListCall) PageSize(pageSize int64) *ProjectsLocationsProductsCertificatesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The token returned +// in the previous response. +func (c *ProjectsLocationsProductsCertificatesListCall) PageToken(pageToken string) *ProjectsLocationsProductsCertificatesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": The mask which +// specifies fields that need to be returned in the Certificate's +// response. +func (c *ProjectsLocationsProductsCertificatesListCall) ReadMask(readMask string) *ProjectsLocationsProductsCertificatesListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsCertificatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProductsCertificatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsCertificatesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsCertificatesListCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsCertificatesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsCertificatesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/certificates") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.certificates.list" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaListCertificatesResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIntegrationsV1alphaListCertificatesResponse.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 *ProjectsLocationsProductsCertificatesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListCertificatesResponse, 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 := &GoogleCloudIntegrationsV1alphaListCertificatesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "List all the certificates that match the filter. Restrict to certificate of current client only.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.products.certificates.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The size of entries in the response. If unspecified, defaults to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The token returned in the previous response.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The client, which owns this collection of Certificates.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "The mask which specifies fields that need to be returned in the Certificate's response.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/certificates", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListCertificatesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsProductsCertificatesListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListCertificatesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "integrations.projects.locations.products.certificates.patch": + +type ProjectsLocationsProductsCertificatesPatchCall struct { + s *Service + name string + googlecloudintegrationsv1alphacertificate *GoogleCloudIntegrationsV1alphaCertificate + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the certificate by id. If new certificate file is +// updated, it will register with the trawler service, re-encrypt with +// cloud KMS and update the Spanner record. Other fields will directly +// update the Spanner record. Returns the Certificate. +// +// - name: Output only. Auto generated primary key. +func (r *ProjectsLocationsProductsCertificatesService) Patch(name string, googlecloudintegrationsv1alphacertificate *GoogleCloudIntegrationsV1alphaCertificate) *ProjectsLocationsProductsCertificatesPatchCall { + c := &ProjectsLocationsProductsCertificatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphacertificate = googlecloudintegrationsv1alphacertificate + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask +// specifying the fields in the above Certificate that have been +// modified and need to be updated. +func (c *ProjectsLocationsProductsCertificatesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProductsCertificatesPatchCall { + 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 information. +func (c *ProjectsLocationsProductsCertificatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsCertificatesPatchCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsCertificatesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsCertificatesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacertificate) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.certificates.patch" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaCertificate or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaCertificate.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 *ProjectsLocationsProductsCertificatesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCertificate, 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 := &GoogleCloudIntegrationsV1alphaCertificate{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates the certificate by id. If new certificate file is updated, it will register with the trawler service, re-encrypt with cloud KMS and update the Spanner record. Other fields will directly update the Spanner record. Returns the Certificate.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates/{certificatesId}", + // "httpMethod": "PATCH", + // "id": "integrations.projects.locations.products.certificates.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. Auto generated primary key", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/certificates/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask specifying the fields in the above Certificate that have been modified and need to be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.cloudFunctions.create": + +type ProjectsLocationsProductsCloudFunctionsCreateCall struct { + s *Service + parent string + googlecloudintegrationsv1alphacreatecloudfunctionrequest *GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates an cloud function project. +// +// - parent: The project that the executed integration belongs to. +func (r *ProjectsLocationsProductsCloudFunctionsService) Create(parent string, googlecloudintegrationsv1alphacreatecloudfunctionrequest *GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest) *ProjectsLocationsProductsCloudFunctionsCreateCall { + c := &ProjectsLocationsProductsCloudFunctionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphacreatecloudfunctionrequest = googlecloudintegrationsv1alphacreatecloudfunctionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsCloudFunctionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCloudFunctionsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsCloudFunctionsCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsCloudFunctionsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsCloudFunctionsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsCloudFunctionsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacreatecloudfunctionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/cloudFunctions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.cloudFunctions.create" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse.ServerRespo +// nse.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 *ProjectsLocationsProductsCloudFunctionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse, 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 := &GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates an cloud function project.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/cloudFunctions", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.cloudFunctions.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The project that the executed integration belongs to.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/cloudFunctions", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrations.archiveBundle": + +type ProjectsLocationsProductsIntegrationsArchiveBundleCall struct { + s *Service + name string + googlecloudintegrationsv1alphaarchivebundlerequest *GoogleCloudIntegrationsV1alphaArchiveBundleRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ArchiveBundle: PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE +// MOVED TO A SEPARATE SERVICE. Soft-deletes the bundle. +// +// - name: The bundle to archive. Format: +// projects/{project}/locations/{location}/integrations/{integration}. +func (r *ProjectsLocationsProductsIntegrationsService) ArchiveBundle(name string, googlecloudintegrationsv1alphaarchivebundlerequest *GoogleCloudIntegrationsV1alphaArchiveBundleRequest) *ProjectsLocationsProductsIntegrationsArchiveBundleCall { + c := &ProjectsLocationsProductsIntegrationsArchiveBundleCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphaarchivebundlerequest = googlecloudintegrationsv1alphaarchivebundlerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsArchiveBundleCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsArchiveBundleCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsArchiveBundleCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsArchiveBundleCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsArchiveBundleCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsArchiveBundleCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaarchivebundlerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:archiveBundle") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.archiveBundle" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaArchiveBundleResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIntegrationsV1alphaArchiveBundleResponse.ServerResponse.He +// ader 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 *ProjectsLocationsProductsIntegrationsArchiveBundleCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaArchiveBundleResponse, 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 := &GoogleCloudIntegrationsV1alphaArchiveBundleResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. Soft-deletes the bundle.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:archiveBundle", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.integrations.archiveBundle", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The bundle to archive. Format: projects/{project}/locations/{location}/integrations/{integration}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:archiveBundle", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaArchiveBundleRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaArchiveBundleResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrations.execute": + +type ProjectsLocationsProductsIntegrationsExecuteCall struct { + s *Service + name string + googlecloudintegrationsv1alphaexecuteintegrationsrequest *GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Execute: Executes integrations synchronously by passing the trigger +// id in the request body. The request is not returned until the +// requested executions are either fulfilled or experienced an error. If +// the integration name is not specified (passing `-`), all of the +// associated integration under the given trigger_id will be executed. +// Otherwise only the specified integration for the given `trigger_id` +// is executed. This is helpful for execution the integration from UI. +// +// - name: The integration resource name. +func (r *ProjectsLocationsProductsIntegrationsService) Execute(name string, googlecloudintegrationsv1alphaexecuteintegrationsrequest *GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest) *ProjectsLocationsProductsIntegrationsExecuteCall { + c := &ProjectsLocationsProductsIntegrationsExecuteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphaexecuteintegrationsrequest = googlecloudintegrationsv1alphaexecuteintegrationsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecuteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecuteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsExecuteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaexecuteintegrationsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:execute") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.execute" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse.ServerRespo +// nse.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 *ProjectsLocationsProductsIntegrationsExecuteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse, 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 := &GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Executes integrations synchronously by passing the trigger id in the request body. The request is not returned until the requested executions are either fulfilled or experienced an error. If the integration name is not specified (passing `-`), all of the associated integration under the given trigger_id will be executed. Otherwise only the specified integration for the given `trigger_id` is executed. This is helpful for execution the integration from UI.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:execute", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.integrations.execute", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The integration resource name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:execute", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrations.list": + +type ProjectsLocationsProductsIntegrationsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Returns the list of all integrations in the specified project. +// +// - parent: Project and location from which the integrations should be +// listed. Format: projects/{project}. +func (r *ProjectsLocationsProductsIntegrationsService) List(parent string) *ProjectsLocationsProductsIntegrationsListCall { + c := &ProjectsLocationsProductsIntegrationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter on fields of +// IntegrationVersion. Fields can be compared with literal values by use +// of ":" (containment), "=" (equality), ">" (greater), "<" (less than), +// >=" (greater than or equal to), "<=" (less than or equal to), and +// "!=" (inequality) operators. Negation, conjunction, and disjunction +// are written using NOT, AND, and OR keywords. For example, +// organization_id=\"1\" AND state=ACTIVE AND description:"test". +// Filtering cannot be performed on repeated fields like `task_config`. +func (c *ProjectsLocationsProductsIntegrationsListCall) Filter(filter string) *ProjectsLocationsProductsIntegrationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": The results would be +// returned in order you specified here. Supported sort keys are: +// Descending sort order by "last_modified_time", "created_time", +// "snapshot_number". Ascending sort order by the integration name. +func (c *ProjectsLocationsProductsIntegrationsListCall) OrderBy(orderBy string) *ProjectsLocationsProductsIntegrationsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The page size for +// the resquest. +func (c *ProjectsLocationsProductsIntegrationsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsIntegrationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The page token for +// the resquest. +func (c *ProjectsLocationsProductsIntegrationsListCall) PageToken(pageToken string) *ProjectsLocationsProductsIntegrationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProductsIntegrationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsListCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/integrations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.list" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaListIntegrationsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIntegrationsV1alphaListIntegrationsResponse.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 *ProjectsLocationsProductsIntegrationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListIntegrationsResponse, 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 := &GoogleCloudIntegrationsV1alphaListIntegrationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the list of all integrations in the specified project.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.products.integrations.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of \":\" (containment), \"=\" (equality), \"\u003e\" (greater), \"\u003c\" (less than), \u003e=\" (greater than or equal to), \"\u003c=\" (less than or equal to), and \"!=\" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\\"1\\\" AND state=ACTIVE AND description:\"test\". Filtering cannot be performed on repeated fields like `task_config`.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "The results would be returned in order you specified here. Supported sort keys are: Descending sort order by \"last_modified_time\", \"created_time\", \"snapshot_number\". Ascending sort order by the integration name.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The page size for the resquest.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The page token for the resquest.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Project and location from which the integrations should be listed. Format: projects/{project}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/integrations", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsProductsIntegrationsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListIntegrationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "integrations.projects.locations.products.integrations.monitorexecutionstats": + +type ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall struct { + s *Service + parent string + googlecloudintegrationsv1alphamonitorexecutionstatsrequest *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Monitorexecutionstats: Get execution stats +// +// - parent: The parent resource name: {parent=projects/*/locations/*}. +func (r *ProjectsLocationsProductsIntegrationsService) Monitorexecutionstats(parent string, googlecloudintegrationsv1alphamonitorexecutionstatsrequest *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest) *ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall { + c := &ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphamonitorexecutionstatsrequest = googlecloudintegrationsv1alphamonitorexecutionstatsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphamonitorexecutionstatsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:monitorexecutionstats") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.monitorexecutionstats" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse.ServerRes +// ponse.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 *ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse, 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 := &GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Get execution stats", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:monitorexecutionstats", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.integrations.monitorexecutionstats", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent resource name: {parent=projects/*/locations/*}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}:monitorexecutionstats", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrations.schedule": + +type ProjectsLocationsProductsIntegrationsScheduleCall struct { + s *Service + name string + googlecloudintegrationsv1alphascheduleintegrationsrequest *GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Schedule: Schedules an integration for execution by passing the +// trigger id and the scheduled time in the request body. +// +// - name: The integration resource name. +func (r *ProjectsLocationsProductsIntegrationsService) Schedule(name string, googlecloudintegrationsv1alphascheduleintegrationsrequest *GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest) *ProjectsLocationsProductsIntegrationsScheduleCall { + c := &ProjectsLocationsProductsIntegrationsScheduleCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphascheduleintegrationsrequest = googlecloudintegrationsv1alphascheduleintegrationsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsScheduleCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsScheduleCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsScheduleCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsScheduleCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsScheduleCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsScheduleCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphascheduleintegrationsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:schedule") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.schedule" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse.ServerResp +// onse.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 *ProjectsLocationsProductsIntegrationsScheduleCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse, 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 := &GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Schedules an integration for execution by passing the trigger id and the scheduled time in the request body.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:schedule", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.integrations.schedule", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The integration resource name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:schedule", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrations.test": + +type ProjectsLocationsProductsIntegrationsTestCall struct { + s *Service + name string + googlecloudintegrationsv1alphatestintegrationsrequest *GoogleCloudIntegrationsV1alphaTestIntegrationsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Test: Execute the integration in draft state +// +// - name: Output only. Auto-generated primary key. +func (r *ProjectsLocationsProductsIntegrationsService) Test(name string, googlecloudintegrationsv1alphatestintegrationsrequest *GoogleCloudIntegrationsV1alphaTestIntegrationsRequest) *ProjectsLocationsProductsIntegrationsTestCall { + c := &ProjectsLocationsProductsIntegrationsTestCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphatestintegrationsrequest = googlecloudintegrationsv1alphatestintegrationsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsTestCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsTestCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsTestCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsTestCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsTestCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsTestCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphatestintegrationsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:test") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.test" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaTestIntegrationsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIntegrationsV1alphaTestIntegrationsResponse.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 *ProjectsLocationsProductsIntegrationsTestCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaTestIntegrationsResponse, 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 := &GoogleCloudIntegrationsV1alphaTestIntegrationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Execute the integration in draft state", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:test", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.integrations.test", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. Auto-generated primary key.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:test", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaTestIntegrationsRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaTestIntegrationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrations.executions.cancel": + +type ProjectsLocationsProductsIntegrationsExecutionsCancelCall struct { + s *Service + name string + googlecloudintegrationsv1alphacancelexecutionrequest *GoogleCloudIntegrationsV1alphaCancelExecutionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Cancellation of an execution +// +// - name: The execution resource name. Format: +// projects/{gcp_project_id}/locations/{location}/products/{product}/in +// tegrations/{integration_id}/executions/{execution_id}. +func (r *ProjectsLocationsProductsIntegrationsExecutionsService) Cancel(name string, googlecloudintegrationsv1alphacancelexecutionrequest *GoogleCloudIntegrationsV1alphaCancelExecutionRequest) *ProjectsLocationsProductsIntegrationsExecutionsCancelCall { + c := &ProjectsLocationsProductsIntegrationsExecutionsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphacancelexecutionrequest = googlecloudintegrationsv1alphacancelexecutionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacancelexecutionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.executions.cancel" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaCancelExecutionResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIntegrationsV1alphaCancelExecutionResponse.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 *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCancelExecutionResponse, 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 := &GoogleCloudIntegrationsV1alphaCancelExecutionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Cancellation of an execution", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}:cancel", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.integrations.executions.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_id}/executions/{execution_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:cancel", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaCancelExecutionRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaCancelExecutionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrations.executions.download": + +type ProjectsLocationsProductsIntegrationsExecutionsDownloadCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Download: Download the execution. +// +// - name: The execution resource name. Format: +// projects/{gcp_project_id}/locations/{location}/products/{product}/in +// tegrations/{integration_id}/executions/{execution_id}. +func (r *ProjectsLocationsProductsIntegrationsExecutionsService) Download(name string) *ProjectsLocationsProductsIntegrationsExecutionsDownloadCall { + c := &ProjectsLocationsProductsIntegrationsExecutionsDownloadCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsExecutionsDownloadCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsDownloadCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProductsIntegrationsExecutionsDownloadCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsExecutionsDownloadCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsExecutionsDownloadCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsDownloadCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsExecutionsDownloadCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsExecutionsDownloadCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:download") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.executions.download" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaDownloadExecutionResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaDownloadExecutionResponse.ServerRespons +// e.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 *ProjectsLocationsProductsIntegrationsExecutionsDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaDownloadExecutionResponse, 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 := &GoogleCloudIntegrationsV1alphaDownloadExecutionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Download the execution.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}:download", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.products.integrations.executions.download", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_id}/executions/{execution_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:download", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaDownloadExecutionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrations.executions.get": + +type ProjectsLocationsProductsIntegrationsExecutionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get an execution in the specified project. +// +// - name: The execution resource name. Format: +// projects/{gcp_project_id}/locations/{location}/products/{product}/in +// tegrations/{integration_id}/executions/{execution_id}. +func (r *ProjectsLocationsProductsIntegrationsExecutionsService) Get(name string) *ProjectsLocationsProductsIntegrationsExecutionsGetCall { + c := &ProjectsLocationsProductsIntegrationsExecutionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsExecutionsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.executions.get" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaExecution or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIntegrationsV1alphaExecution.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 *ProjectsLocationsProductsIntegrationsExecutionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaExecution, 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 := &GoogleCloudIntegrationsV1alphaExecution{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Get an execution in the specified project.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.products.integrations.executions.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_id}/executions/{execution_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaExecution" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrations.executions.list": + +type ProjectsLocationsProductsIntegrationsExecutionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the results of all the integration executions. The +// response includes the same information as the execution log +// (https://cloud.google.com/application-integration/docs/viewing-logs) +// in the Integration UI. +// +// - parent: The parent resource name of the integration execution. +func (r *ProjectsLocationsProductsIntegrationsExecutionsService) List(parent string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c := &ProjectsLocationsProductsIntegrationsExecutionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Standard filter field, +// we support filtering on all fields in EventExecutionParamIndexes +// table. All fields support for EQUALS, in additional: CreateTimestamp +// support for LESS_THAN, GREATER_THAN ParameterKey, ParameterValue, +// ParameterType support for HAS For example: "parameter_value" HAS +// \"parameter1\" Also supports operators like AND, OR, NOT For example, +// trigger_id=\"id1\" AND event_execution_state=\"FAILED\" +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Filter(filter string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// FilterParamsCustomFilter sets the optional parameter +// "filterParams.customFilter": Optional user-provided custom filter. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsCustomFilter(filterParamsCustomFilter string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.customFilter", filterParamsCustomFilter) + return c +} + +// FilterParamsEndTime sets the optional parameter +// "filterParams.endTime": End timestamp. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsEndTime(filterParamsEndTime int64) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.endTime", fmt.Sprint(filterParamsEndTime)) + return c +} + +// FilterParamsEventStatuses sets the optional parameter +// "filterParams.eventStatuses": List of possible event statuses. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsEventStatuses(filterParamsEventStatuses ...string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.SetMulti("filterParams.eventStatuses", append([]string{}, filterParamsEventStatuses...)) + return c +} + +// FilterParamsExecutionId sets the optional parameter +// "filterParams.executionId": Execution id. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsExecutionId(filterParamsExecutionId string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.executionId", filterParamsExecutionId) + return c +} + +// FilterParamsParameterKey sets the optional parameter +// "filterParams.parameterKey": Param key. DEPRECATED. User +// parameter_pair_key instead. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsParameterKey(filterParamsParameterKey string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.parameterKey", filterParamsParameterKey) + return c +} + +// FilterParamsParameterPairKey sets the optional parameter +// "filterParams.parameterPairKey": Param key in the key value pair +// filter. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsParameterPairKey(filterParamsParameterPairKey string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.parameterPairKey", filterParamsParameterPairKey) + return c +} + +// FilterParamsParameterPairValue sets the optional parameter +// "filterParams.parameterPairValue": Param value in the key value pair +// filter. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsParameterPairValue(filterParamsParameterPairValue string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.parameterPairValue", filterParamsParameterPairValue) + return c +} + +// FilterParamsParameterType sets the optional parameter +// "filterParams.parameterType": Param type. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsParameterType(filterParamsParameterType string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.parameterType", filterParamsParameterType) + return c +} + +// FilterParamsParameterValue sets the optional parameter +// "filterParams.parameterValue": Param value. DEPRECATED. User +// parameter_pair_value instead. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsParameterValue(filterParamsParameterValue string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.parameterValue", filterParamsParameterValue) + return c +} + +// FilterParamsStartTime sets the optional parameter +// "filterParams.startTime": Start timestamp. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsStartTime(filterParamsStartTime int64) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.startTime", fmt.Sprint(filterParamsStartTime)) + return c +} + +// FilterParamsTaskStatuses sets the optional parameter +// "filterParams.taskStatuses": List of possible task statuses. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsTaskStatuses(filterParamsTaskStatuses ...string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.SetMulti("filterParams.taskStatuses", append([]string{}, filterParamsTaskStatuses...)) + return c +} + +// FilterParamsWorkflowName sets the optional parameter +// "filterParams.workflowName": Workflow name. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsWorkflowName(filterParamsWorkflowName string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.workflowName", filterParamsWorkflowName) + return c +} + +// OrderBy sets the optional parameter "orderBy": The results would be +// returned in order you specified here. Currently supporting +// "last_modified_time" and "create_time". +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) OrderBy(orderBy string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The size of entries +// in the response. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The token returned +// in the previous response. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) PageToken(pageToken string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": View mask for the +// response data. If set, only the field specified will be returned as +// part of the result. If not set, all fields in event execution info +// will be filled and returned. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) ReadMask(readMask string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// RefreshAcl sets the optional parameter "refreshAcl": If true, the +// service will use the most recent acl information to list event +// execution infos and renew the acl cache. Note that fetching the most +// recent acl is synchronous, so it will increase RPC call latency. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) RefreshAcl(refreshAcl bool) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("refreshAcl", fmt.Sprint(refreshAcl)) + return c +} + +// TruncateParams sets the optional parameter "truncateParams": If true, +// the service will truncate the params to only keep the first 1000 +// characters of string params and empty the executions in order to make +// response smaller. Only works for UI and when the params fields are +// not filtered out. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) TruncateParams(truncateParams bool) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("truncateParams", fmt.Sprint(truncateParams)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/executions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.executions.list" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaListExecutionsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIntegrationsV1alphaListExecutionsResponse.ServerResponse.H +// eader 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 *ProjectsLocationsProductsIntegrationsExecutionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListExecutionsResponse, 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 := &GoogleCloudIntegrationsV1alphaListExecutionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists the results of all the integration executions. The response includes the same information as the [execution log](https://cloud.google.com/application-integration/docs/viewing-logs) in the Integration UI.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.products.integrations.executions.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. Standard filter field, we support filtering on all fields in EventExecutionParamIndexes table. All fields support for EQUALS, in additional: CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterKey, ParameterValue, ParameterType support for HAS For example: \"parameter_value\" HAS \\\"parameter1\\\" Also supports operators like AND, OR, NOT For example, trigger_id=\\\"id1\\\" AND event_execution_state=\\\"FAILED\\\"", + // "location": "query", + // "type": "string" + // }, + // "filterParams.customFilter": { + // "description": "Optional user-provided custom filter.", + // "location": "query", + // "type": "string" + // }, + // "filterParams.endTime": { + // "description": "End timestamp.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "filterParams.eventStatuses": { + // "description": "List of possible event statuses.", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "filterParams.executionId": { + // "description": "Execution id.", + // "location": "query", + // "type": "string" + // }, + // "filterParams.parameterKey": { + // "description": "Param key. DEPRECATED. User parameter_pair_key instead.", + // "location": "query", + // "type": "string" + // }, + // "filterParams.parameterPairKey": { + // "description": "Param key in the key value pair filter.", + // "location": "query", + // "type": "string" + // }, + // "filterParams.parameterPairValue": { + // "description": "Param value in the key value pair filter.", + // "location": "query", + // "type": "string" + // }, + // "filterParams.parameterType": { + // "description": "Param type.", + // "location": "query", + // "type": "string" + // }, + // "filterParams.parameterValue": { + // "description": "Param value. DEPRECATED. User parameter_pair_value instead.", + // "location": "query", + // "type": "string" + // }, + // "filterParams.startTime": { + // "description": "Start timestamp.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "filterParams.taskStatuses": { + // "description": "List of possible task statuses.", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "filterParams.workflowName": { + // "description": "Workflow name.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Optional. The results would be returned in order you specified here. Currently supporting \"last_modified_time\" and \"create_time\".", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. The size of entries in the response.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. The token returned in the previous response.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource name of the integration execution.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "Optional. View mask for the response data. If set, only the field specified will be returned as part of the result. If not set, all fields in event execution info will be filled and returned.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "refreshAcl": { + // "description": "Optional. If true, the service will use the most recent acl information to list event execution infos and renew the acl cache. Note that fetching the most recent acl is synchronous, so it will increase RPC call latency.", + // "location": "query", + // "type": "boolean" + // }, + // "truncateParams": { + // "description": "Optional. If true, the service will truncate the params to only keep the first 1000 characters of string params and empty the executions in order to make response smaller. Only works for UI and when the params fields are not filtered out.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "v1/{+parent}/executions", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListExecutionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListExecutionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "integrations.projects.locations.products.integrations.executions.suspensions.lift": + +type ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall struct { + s *Service + name string + googlecloudintegrationsv1alphaliftsuspensionrequest *GoogleCloudIntegrationsV1alphaLiftSuspensionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Lift: * Lifts suspension for advanced suspension task. Fetch +// corresponding suspension with provided suspension Id, resolve +// suspension, and set up suspension result for the Suspension Task. +// +// - name: The resource that the suspension belongs to. +// "projects/{project}/locations/{location}/products/{product}/integrat +// ions/{integration}/executions/{execution}/suspensions/{suspenion}" +// format. +func (r *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsService) Lift(name string, googlecloudintegrationsv1alphaliftsuspensionrequest *GoogleCloudIntegrationsV1alphaLiftSuspensionRequest) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall { + c := &ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphaliftsuspensionrequest = googlecloudintegrationsv1alphaliftsuspensionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaliftsuspensionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:lift") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.executions.suspensions.lift" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaLiftSuspensionResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIntegrationsV1alphaLiftSuspensionResponse.ServerResponse.H +// eader 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 *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaLiftSuspensionResponse, 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 := &GoogleCloudIntegrationsV1alphaLiftSuspensionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "* Lifts suspension for advanced suspension task. Fetch corresponding suspension with provided suspension Id, resolve suspension, and set up suspension result for the Suspension Task.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions/{suspensionsId}:lift", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.integrations.executions.suspensions.lift", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource that the suspension belongs to. \"projects/{project}/locations/{location}/products/{product}/integrations/{integration}/executions/{execution}/suspensions/{suspenion}\" format.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+/suspensions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:lift", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaLiftSuspensionRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaLiftSuspensionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrations.executions.suspensions.list": + +type ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: * Lists suspensions associated with a specific execution. Only +// those with permissions to resolve the relevant suspensions will be +// able to view them. +// +// - parent: +// projects/{gcp_project_id}/locations/{location}/products/{product}/in +// tegrations/{integration_name}/executions/{execution_name}. +func (r *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsService) List(parent string) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { + c := &ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Standard filter field. +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Filter(filter string) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Field name to order +// by. +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) OrderBy(orderBy string) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// entries in the response. +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Token to retrieve +// a specific page. +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) PageToken(pageToken string) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/suspensions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.executions.suspensions.list" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaListSuspensionsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIntegrationsV1alphaListSuspensionsResponse.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 *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListSuspensionsResponse, 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 := &GoogleCloudIntegrationsV1alphaListSuspensionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "* Lists suspensions associated with a specific execution. Only those with permissions to resolve the relevant suspensions will be able to view them.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.products.integrations.executions.suspensions.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Standard filter field.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Field name to order by.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Maximum number of entries in the response.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Token to retrieve a specific page.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_name}/executions/{execution_name}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/suspensions", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListSuspensionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListSuspensionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "integrations.projects.locations.products.integrations.executions.suspensions.resolve": + +type ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall struct { + s *Service + name string + googlecloudintegrationsv1alpharesolvesuspensionrequest *GoogleCloudIntegrationsV1alphaResolveSuspensionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Resolve: * Resolves (lifts/rejects) any number of suspensions. If the +// integration is already running, only the status of the suspension is +// updated. Otherwise, the suspended integration will begin execution +// again. +// +// - name: +// projects/{gcp_project_id}/locations/{location}/products/{product}/in +// tegrations/{integration_name}/executions/{execution_name}/suspension +// s/{suspension_id}. +func (r *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsService) Resolve(name string, googlecloudintegrationsv1alpharesolvesuspensionrequest *GoogleCloudIntegrationsV1alphaResolveSuspensionRequest) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall { + c := &ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alpharesolvesuspensionrequest = googlecloudintegrationsv1alpharesolvesuspensionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alpharesolvesuspensionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:resolve") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.executions.suspensions.resolve" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaResolveSuspensionResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaResolveSuspensionResponse.ServerRespons +// e.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 *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaResolveSuspensionResponse, 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 := &GoogleCloudIntegrationsV1alphaResolveSuspensionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "* Resolves (lifts/rejects) any number of suspensions. If the integration is already running, only the status of the suspension is updated. Otherwise, the suspended integration will begin execution again.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions/{suspensionsId}:resolve", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.integrations.executions.suspensions.resolve", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_name}/executions/{execution_name}/suspensions/{suspension_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+/suspensions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:resolve", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaResolveSuspensionRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaResolveSuspensionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrations.executionsnapshots.list": + +type ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the snapshots of a given integration executions. This RPC +// is not being used. +// +// - parent: The parent resource name of the integration execution. +func (r *ProjectsLocationsProductsIntegrationsExecutionsnapshotsService) List(parent string) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall { + c := &ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Currently supports +// filter by `execution_info_id` or `execution_snapshot_id`. +func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Filter(filter string) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": Number of entries to +// be returned in a page. +func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The token used to +// retrieve the next page results. +func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) PageToken(pageToken string) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": View mask for the +// response data. If set, only the field specified will be returned as +// part of the result. If not set, all fields in event execution +// snapshot will be filled and returned. +func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) ReadMask(readMask string) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/executionsnapshots") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.executionsnapshots.list" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse.ServerRe +// sponse.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 *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse, 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 := &GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists the snapshots of a given integration executions. This RPC is not being used.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executionsnapshots", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.products.integrations.executionsnapshots.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Currently supports filter by `execution_info_id` or `execution_snapshot_id`.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Number of entries to be returned in a page.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The token used to retrieve the next page results.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource name of the integration execution.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "View mask for the response data. If set, only the field specified will be returned as part of the result. If not set, all fields in event execution snapshot will be filled and returned.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/executionsnapshots", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "integrations.projects.locations.products.integrations.versions.archive": + +type ProjectsLocationsProductsIntegrationsVersionsArchiveCall struct { + s *Service + name string + googlecloudintegrationsv1alphaarchiveintegrationversionrequest *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Archive: Soft-deletes the integration. Changes the status of the +// integration to ARCHIVED. If the integration being ARCHIVED is tagged +// as "HEAD", the tag is removed from this snapshot and set to the +// previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, +// DUE_FOR_DELETION tags are removed too. This RPC throws an exception +// if the version being archived is DRAFT, and if the `locked_by` user +// is not the same as the user performing the Archive. Audit fields +// updated include last_modified_timestamp, last_modified_by. Any +// existing lock is released when Archiving a integration. Currently, +// there is no unarchive mechanism. +// +// - name: The version to archive. Format: +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. +func (r *ProjectsLocationsProductsIntegrationsVersionsService) Archive(name string, googlecloudintegrationsv1alphaarchiveintegrationversionrequest *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest) *ProjectsLocationsProductsIntegrationsVersionsArchiveCall { + c := &ProjectsLocationsProductsIntegrationsVersionsArchiveCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphaarchiveintegrationversionrequest = googlecloudintegrationsv1alphaarchiveintegrationversionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsVersionsArchiveCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsArchiveCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsVersionsArchiveCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsArchiveCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsVersionsArchiveCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsVersionsArchiveCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaarchiveintegrationversionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:archive") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.versions.archive" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse.Serve +// rResponse.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 *ProjectsLocationsProductsIntegrationsVersionsArchiveCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse, 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 := &GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as \"HEAD\", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being archived is DRAFT, and if the `locked_by` user is not the same as the user performing the Archive. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Archiving a integration. Currently, there is no unarchive mechanism.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:archive", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.integrations.versions.archive", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The version to archive. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:archive", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrations.versions.create": + +type ProjectsLocationsProductsIntegrationsVersionsCreateCall struct { + s *Service + parent string + googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Create a integration with a draft version in the specified +// project. +// +// - parent: The parent resource where this version will be created. +// Format: +// projects/{project}/locations/{location}/integrations/{integration}. +func (r *ProjectsLocationsProductsIntegrationsVersionsService) Create(parent string, googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion) *ProjectsLocationsProductsIntegrationsVersionsCreateCall { + c := &ProjectsLocationsProductsIntegrationsVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphaintegrationversion = googlecloudintegrationsv1alphaintegrationversion + return c +} + +// NewIntegration sets the optional parameter "newIntegration": Set this +// flag to true, if draft version is to be created for a brand new +// integration. False, if the request is for an existing integration. +// For backward compatibility reasons, even if this flag is set to +// `false` and no existing integration is found, a new draft integration +// will still be created. +func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) NewIntegration(newIntegration bool) *ProjectsLocationsProductsIntegrationsVersionsCreateCall { + c.urlParams_.Set("newIntegration", fmt.Sprint(newIntegration)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaintegrationversion) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/versions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.versions.create" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade +// r 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 *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, 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 := &GoogleCloudIntegrationsV1alphaIntegrationVersion{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Create a integration with a draft version in the specified project.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.integrations.versions.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "newIntegration": { + // "description": "Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created.", + // "location": "query", + // "type": "boolean" + // }, + // "parent": { + // "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/versions", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrations.versions.deactivate": + +type ProjectsLocationsProductsIntegrationsVersionsDeactivateCall struct { + s *Service + name string + googlecloudintegrationsv1alphadeactivateintegrationversionrequest *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Deactivate: Sets the status of the ACTIVE integration to SNAPSHOT +// with a new tag "PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" +// and "PUBLISH_REQUESTED" tags do not change. This RPC throws an +// exception if the version being snapshot is not ACTIVE. Audit fields +// added include action, action_by, action_timestamp. +// +// - name: The version to deactivate. Format: +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. +func (r *ProjectsLocationsProductsIntegrationsVersionsService) Deactivate(name string, googlecloudintegrationsv1alphadeactivateintegrationversionrequest *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest) *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall { + c := &ProjectsLocationsProductsIntegrationsVersionsDeactivateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphadeactivateintegrationversionrequest = googlecloudintegrationsv1alphadeactivateintegrationversionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphadeactivateintegrationversionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:deactivate") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.versions.deactivate" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse.Se +// rverResponse.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 *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse, 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 := &GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the status of the ACTIVE integration to SNAPSHOT with a new tag \"PREVIOUSLY_PUBLISHED\" after validating it. The \"HEAD\" and \"PUBLISH_REQUESTED\" tags do not change. This RPC throws an exception if the version being snapshot is not ACTIVE. Audit fields added include action, action_by, action_timestamp.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:deactivate", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.integrations.versions.deactivate", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:deactivate", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrations.versions.delete": + +type ProjectsLocationsProductsIntegrationsVersionsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Soft-deletes the integration. Changes the status of the +// integration to ARCHIVED. If the integration being ARCHIVED is tagged +// as "HEAD", the tag is removed from this snapshot and set to the +// previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, +// DUE_FOR_DELETION tags are removed too. This RPC throws an exception +// if the version being deleted is DRAFT, and if the `locked_by` user is +// not the same as the user performing the Delete. Audit fields updated +// include last_modified_timestamp, last_modified_by. Any existing lock +// is released when Deleting a integration. Currently, there is no +// undelete mechanism. +// +// - name: The version to delete. Format: +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. +func (r *ProjectsLocationsProductsIntegrationsVersionsService) Delete(name string) *ProjectsLocationsProductsIntegrationsVersionsDeleteCall { + c := &ProjectsLocationsProductsIntegrationsVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.versions.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as \"HEAD\", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being deleted is DRAFT, and if the `locked_by` user is not the same as the user performing the Delete. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Deleting a integration. Currently, there is no undelete mechanism.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}", + // "httpMethod": "DELETE", + // "id": "integrations.projects.locations.products.integrations.versions.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The version to delete. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrations.versions.download": + +type ProjectsLocationsProductsIntegrationsVersionsDownloadCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Download: Downloads an integration. Retrieves the +// `IntegrationVersion` for a given `integration_id` and returns the +// response as a string. +// +// - name: The version to download. Format: +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. +func (r *ProjectsLocationsProductsIntegrationsVersionsService) Download(name string) *ProjectsLocationsProductsIntegrationsVersionsDownloadCall { + c := &ProjectsLocationsProductsIntegrationsVersionsDownloadCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// FileFormat sets the optional parameter "fileFormat": File format for +// download request. +// +// Possible values: +// +// "FILE_FORMAT_UNSPECIFIED" - Unspecified file format +// "JSON" - JSON File Format +// "YAML" - YAML File Format +func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) FileFormat(fileFormat string) *ProjectsLocationsProductsIntegrationsVersionsDownloadCall { + c.urlParams_.Set("fileFormat", fileFormat) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsDownloadCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsVersionsDownloadCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsDownloadCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:download") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.versions.download" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse.Serv +// erResponse.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 *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse, 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 := &GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Downloads an integration. Retrieves the `IntegrationVersion` for a given `integration_id` and returns the response as a string.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:download", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.products.integrations.versions.download", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "fileFormat": { + // "description": "File format for download request.", + // "enum": [ + // "FILE_FORMAT_UNSPECIFIED", + // "JSON", + // "YAML" + // ], + // "enumDescriptions": [ + // "Unspecified file format", + // "JSON File Format", + // "YAML File Format" + // ], + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "Required. The version to download. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:download", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrations.versions.get": + +type ProjectsLocationsProductsIntegrationsVersionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get a integration in the specified project. +// +// - name: The version to retrieve. Format: +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. +func (r *ProjectsLocationsProductsIntegrationsVersionsService) Get(name string) *ProjectsLocationsProductsIntegrationsVersionsGetCall { + c := &ProjectsLocationsProductsIntegrationsVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsVersionsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.versions.get" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade +// r 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 *ProjectsLocationsProductsIntegrationsVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, 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 := &GoogleCloudIntegrationsV1alphaIntegrationVersion{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Get a integration in the specified project.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.products.integrations.versions.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The version to retrieve. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrations.versions.getBundle": + +type ProjectsLocationsProductsIntegrationsVersionsGetBundleCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetBundle: PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED +// TO A SEPARATE SERVICE. RPC to get details of the Bundle +// +// - name: The bundle name. +func (r *ProjectsLocationsProductsIntegrationsVersionsService) GetBundle(name string) *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall { + c := &ProjectsLocationsProductsIntegrationsVersionsGetBundleCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:getBundle") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.versions.getBundle" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaGetBundleResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaGetBundleResponse.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 *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaGetBundleResponse, 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 := &GoogleCloudIntegrationsV1alphaGetBundleResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. RPC to get details of the Bundle", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:getBundle", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.products.integrations.versions.getBundle", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The bundle name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:getBundle", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaGetBundleResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrations.versions.list": + +type ProjectsLocationsProductsIntegrationsVersionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Returns the list of all integration versions in the specified +// project. +// +// - parent: The parent resource where this version will be created. +// Format: +// projects/{project}/locations/{location}/integrations/{integration} +// Specifically, when parent equals: 1. +// projects//locations//integrations/, Meaning: "List versions (with +// filter) for a particular integration". 2. +// projects//locations//integrations/- Meaning: "List versions (with +// filter) for a client within a particular region". 3. +// projects//locations/-/integrations/- Meaning: "List versions (with +// filter) for a client". +func (r *ProjectsLocationsProductsIntegrationsVersionsService) List(parent string) *ProjectsLocationsProductsIntegrationsVersionsListCall { + c := &ProjectsLocationsProductsIntegrationsVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// FieldMask sets the optional parameter "fieldMask": The field mask +// which specifies the particular data to be returned. +func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) FieldMask(fieldMask string) *ProjectsLocationsProductsIntegrationsVersionsListCall { + c.urlParams_.Set("fieldMask", fieldMask) + return c +} + +// Filter sets the optional parameter "filter": Filter on fields of +// IntegrationVersion. Fields can be compared with literal values by use +// of ":" (containment), "=" (equality), ">" (greater), "<" (less than), +// >=" (greater than or equal to), "<=" (less than or equal to), and +// "!=" (inequality) operators. Negation, conjunction, and disjunction +// are written using NOT, AND, and OR keywords. For example, +// organization_id=\"1\" AND state=ACTIVE AND description:"test". +// Filtering cannot be performed on repeated fields like `task_config`. +func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Filter(filter string) *ProjectsLocationsProductsIntegrationsVersionsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": The results would be +// returned in order you specified here. Currently supported sort keys +// are: Descending sort order for "last_modified_time", "created_time", +// "snapshot_number" Ascending sort order for "name". +func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) OrderBy(orderBy string) *ProjectsLocationsProductsIntegrationsVersionsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of versions to return. The service may return fewer than this value. +// If unspecified, at most 50 versions will be returned. The maximum +// value is 1000; values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsIntegrationsVersionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListIntegrationVersions` call. Provide this +// to retrieve the subsequent page. When paginating, all other +// parameters provided to `ListIntegrationVersions` must match the call +// that provided the page token. +func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) PageToken(pageToken string) *ProjectsLocationsProductsIntegrationsVersionsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsVersionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/versions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.versions.list" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse.ServerR +// esponse.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 *ProjectsLocationsProductsIntegrationsVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse, 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 := &GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the list of all integration versions in the specified project.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.products.integrations.versions.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "fieldMask": { + // "description": "The field mask which specifies the particular data to be returned.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "filter": { + // "description": "Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of \":\" (containment), \"=\" (equality), \"\u003e\" (greater), \"\u003c\" (less than), \u003e=\" (greater than or equal to), \"\u003c=\" (less than or equal to), and \"!=\" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\\"1\\\" AND state=ACTIVE AND description:\"test\". Filtering cannot be performed on repeated fields like `task_config`.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "The results would be returned in order you specified here. Currently supported sort keys are: Descending sort order for \"last_modified_time\", \"created_time\", \"snapshot_number\" Ascending sort order for \"name\".", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of versions to return. The service may return fewer than this value. If unspecified, at most 50 versions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListIntegrationVersions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListIntegrationVersions` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration} Specifically, when parent equals: 1. projects//locations//integrations/, Meaning: \"List versions (with filter) for a particular integration\". 2. projects//locations//integrations/- Meaning: \"List versions (with filter) for a client within a particular region\". 3. projects//locations/-/integrations/- Meaning: \"List versions (with filter) for a client\".", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/versions", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "integrations.projects.locations.products.integrations.versions.patch": + +type ProjectsLocationsProductsIntegrationsVersionsPatchCall struct { + s *Service + name string + googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update a integration with a draft version in the specified +// project. +// +// - name: Output only. Auto-generated primary key. +func (r *ProjectsLocationsProductsIntegrationsVersionsService) Patch(name string, googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion) *ProjectsLocationsProductsIntegrationsVersionsPatchCall { + c := &ProjectsLocationsProductsIntegrationsVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphaintegrationversion = googlecloudintegrationsv1alphaintegrationversion + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask +// specifying the fields in the above integration that have been +// modified and need to be updated. +func (c *ProjectsLocationsProductsIntegrationsVersionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProductsIntegrationsVersionsPatchCall { + 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 information. +func (c *ProjectsLocationsProductsIntegrationsVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsVersionsPatchCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsVersionsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsVersionsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaintegrationversion) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.versions.patch" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade +// r 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 *ProjectsLocationsProductsIntegrationsVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, 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 := &GoogleCloudIntegrationsV1alphaIntegrationVersion{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Update a integration with a draft version in the specified project.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}", + // "httpMethod": "PATCH", + // "id": "integrations.projects.locations.products.integrations.versions.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. Auto-generated primary key.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask specifying the fields in the above integration that have been modified and need to be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrations.versions.publish": + +type ProjectsLocationsProductsIntegrationsVersionsPublishCall struct { + s *Service + name string + googlecloudintegrationsv1alphapublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Publish: This RPC throws an exception if the integration is in +// ARCHIVED or ACTIVE state. This RPC throws an exception if the version +// being published is DRAFT, and if the `locked_by` user is not the same +// as the user performing the Publish. Audit fields updated include +// last_published_timestamp, last_published_by, last_modified_timestamp, +// last_modified_by. Any existing lock is on this integration is +// released. +// +// - name: The version to publish. Format: +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. +func (r *ProjectsLocationsProductsIntegrationsVersionsService) Publish(name string, googlecloudintegrationsv1alphapublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest) *ProjectsLocationsProductsIntegrationsVersionsPublishCall { + c := &ProjectsLocationsProductsIntegrationsVersionsPublishCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphapublishintegrationversionrequest = googlecloudintegrationsv1alphapublishintegrationversionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsVersionsPublishCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsPublishCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsVersionsPublishCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsPublishCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsVersionsPublishCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsVersionsPublishCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphapublishintegrationversionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:publish") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.versions.publish" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse.Serve +// rResponse.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 *ProjectsLocationsProductsIntegrationsVersionsPublishCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse, 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 := &GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "This RPC throws an exception if the integration is in ARCHIVED or ACTIVE state. This RPC throws an exception if the version being published is DRAFT, and if the `locked_by` user is not the same as the user performing the Publish. Audit fields updated include last_published_timestamp, last_published_by, last_modified_timestamp, last_modified_by. Any existing lock is on this integration is released.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:publish", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.integrations.versions.publish", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The version to publish. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:publish", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrations.versions.takeoverEditLock": + +type ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall struct { + s *Service + integrationVersion string + googlecloudintegrationsv1alphatakeovereditlockrequest *GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TakeoverEditLock: Clears the `locked_by` and `locked_at_timestamp`in +// the DRAFT version of this integration. It then performs the same +// action as the CreateDraftIntegrationVersion (i.e., copies the DRAFT +// version of the integration as a SNAPSHOT and then creates a new DRAFT +// version with the `locked_by` set to the `user_taking_over` and the +// `locked_at_timestamp` set to the current timestamp). Both the +// `locked_by` and `user_taking_over` are notified via email about the +// takeover. This RPC throws an exception if the integration is not in +// DRAFT status or if the `locked_by` and `locked_at_timestamp` fields +// are not set.The TakeoverEdit lock is treated the same as an edit of +// the integration, and hence shares ACLs with edit. Audit fields +// updated include last_modified_timestamp, last_modified_by. +// +// - integrationVersion: The version to take over edit lock. Format: +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. +func (r *ProjectsLocationsProductsIntegrationsVersionsService) TakeoverEditLock(integrationVersion string, googlecloudintegrationsv1alphatakeovereditlockrequest *GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest) *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall { + c := &ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.integrationVersion = integrationVersion + c.googlecloudintegrationsv1alphatakeovereditlockrequest = googlecloudintegrationsv1alphatakeovereditlockrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphatakeovereditlockrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+integrationVersion}:takeoverEditLock") + 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{ + "integrationVersion": c.integrationVersion, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.versions.takeoverEditLock" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse.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 *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse, 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 := &GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Clears the `locked_by` and `locked_at_timestamp`in the DRAFT version of this integration. It then performs the same action as the CreateDraftIntegrationVersion (i.e., copies the DRAFT version of the integration as a SNAPSHOT and then creates a new DRAFT version with the `locked_by` set to the `user_taking_over` and the `locked_at_timestamp` set to the current timestamp). Both the `locked_by` and `user_taking_over` are notified via email about the takeover. This RPC throws an exception if the integration is not in DRAFT status or if the `locked_by` and `locked_at_timestamp` fields are not set.The TakeoverEdit lock is treated the same as an edit of the integration, and hence shares ACLs with edit. Audit fields updated include last_modified_timestamp, last_modified_by.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:takeoverEditLock", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.integrations.versions.takeoverEditLock", + // "parameterOrder": [ + // "integrationVersion" + // ], + // "parameters": { + // "integrationVersion": { + // "description": "Required. The version to take over edit lock. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+integrationVersion}:takeoverEditLock", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrations.versions.unpublish": + +type ProjectsLocationsProductsIntegrationsVersionsUnpublishCall struct { + s *Service + name string + googlecloudintegrationsv1alphaunpublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Unpublish: Sets the status of the ACTIVE integration to SNAPSHOT with +// a new tag "PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and +// "PUBLISH_REQUESTED" tags do not change. This RPC throws an exception +// if the version being snapshot is not ACTIVE. Audit fields added +// include action, action_by, action_timestamp. +// +// - name: The version to deactivate. Format: +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. +func (r *ProjectsLocationsProductsIntegrationsVersionsService) Unpublish(name string, googlecloudintegrationsv1alphaunpublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest) *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall { + c := &ProjectsLocationsProductsIntegrationsVersionsUnpublishCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphaunpublishintegrationversionrequest = googlecloudintegrationsv1alphaunpublishintegrationversionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaunpublishintegrationversionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:unpublish") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.versions.unpublish" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the status of the ACTIVE integration to SNAPSHOT with a new tag \"PREVIOUSLY_PUBLISHED\" after validating it. The \"HEAD\" and \"PUBLISH_REQUESTED\" tags do not change. This RPC throws an exception if the version being snapshot is not ACTIVE. Audit fields added include action, action_by, action_timestamp.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:unpublish", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.integrations.versions.unpublish", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:unpublish", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest" + // }, + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrations.versions.updateBundle": + +type ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall struct { + s *Service + name string + googlecloudintegrationsv1alphaupdatebundlerequest *GoogleCloudIntegrationsV1alphaUpdateBundleRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateBundle: THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. RPC to +// update the Bundle +// +// - name: Bundle name. +func (r *ProjectsLocationsProductsIntegrationsVersionsService) UpdateBundle(name string, googlecloudintegrationsv1alphaupdatebundlerequest *GoogleCloudIntegrationsV1alphaUpdateBundleRequest) *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall { + c := &ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphaupdatebundlerequest = googlecloudintegrationsv1alphaupdatebundlerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaupdatebundlerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:updateBundle") + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.versions.updateBundle" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaUpdateBundleResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaUpdateBundleResponse.ServerResponse.Hea +// der 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 *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaUpdateBundleResponse, 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 := &GoogleCloudIntegrationsV1alphaUpdateBundleResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. RPC to update the Bundle", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:updateBundle", + // "httpMethod": "PATCH", + // "id": "integrations.projects.locations.products.integrations.versions.updateBundle", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Bundle name", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:updateBundle", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaUpdateBundleRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaUpdateBundleResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrations.versions.upload": + +type ProjectsLocationsProductsIntegrationsVersionsUploadCall struct { + s *Service + parent string + googlecloudintegrationsv1alphauploadintegrationversionrequest *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Upload: Uploads an integration. The content can be a previously +// downloaded integration. Performs the same function as +// CreateDraftIntegrationVersion, but accepts input in a string format, +// which holds the complete representation of the IntegrationVersion +// content. +// +// - parent: The version to upload. Format: +// projects/{project}/locations/{location}/integrations/{integration}. +func (r *ProjectsLocationsProductsIntegrationsVersionsService) Upload(parent string, googlecloudintegrationsv1alphauploadintegrationversionrequest *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest) *ProjectsLocationsProductsIntegrationsVersionsUploadCall { + c := &ProjectsLocationsProductsIntegrationsVersionsUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphauploadintegrationversionrequest = googlecloudintegrationsv1alphauploadintegrationversionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsVersionsUploadCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsUploadCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsVersionsUploadCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsUploadCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsVersionsUploadCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsVersionsUploadCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphauploadintegrationversionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/versions:upload") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.versions.upload" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse.Server +// Response.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 *ProjectsLocationsProductsIntegrationsVersionsUploadCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse, 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 := &GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Uploads an integration. The content can be a previously downloaded integration. Performs the same function as CreateDraftIntegrationVersion, but accepts input in a string format, which holds the complete representation of the IntegrationVersion content.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions:upload", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.integrations.versions.upload", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The version to upload. Format: projects/{project}/locations/{location}/integrations/{integration}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/versions:upload", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrations.versions.validate": + +type ProjectsLocationsProductsIntegrationsVersionsValidateCall struct { + s *Service + name string + googlecloudintegrationsv1alphavalidateintegrationversionrequest *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Validate: Validates the given integration. If the id doesn't exist, a +// NotFoundException is thrown. If validation fails a +// CanonicalCodeException is thrown. If there was no failure an empty +// response is returned. +// +// - name: The version to validate. Format: +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. +func (r *ProjectsLocationsProductsIntegrationsVersionsService) Validate(name string, googlecloudintegrationsv1alphavalidateintegrationversionrequest *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest) *ProjectsLocationsProductsIntegrationsVersionsValidateCall { + c := &ProjectsLocationsProductsIntegrationsVersionsValidateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphavalidateintegrationversionrequest = googlecloudintegrationsv1alphavalidateintegrationversionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsVersionsValidateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsValidateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsVersionsValidateCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsValidateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsVersionsValidateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsVersionsValidateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphavalidateintegrationversionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:validate") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.versions.validate" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse.Serv +// erResponse.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 *ProjectsLocationsProductsIntegrationsVersionsValidateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse, 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 := &GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Validates the given integration. If the id doesn't exist, a NotFoundException is thrown. If validation fails a CanonicalCodeException is thrown. If there was no failure an empty response is returned.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:validate", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.integrations.versions.validate", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The version to validate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:validate", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.sfdcInstances.create": + +type ProjectsLocationsProductsSfdcInstancesCreateCall struct { + s *Service + parent string + googlecloudintegrationsv1alphasfdcinstance *GoogleCloudIntegrationsV1alphaSfdcInstance + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates an sfdc instance record. Store the sfdc instance in +// Spanner. Returns the sfdc instance. +// +// - parent: "projects/{project}/locations/{location}" format. +func (r *ProjectsLocationsProductsSfdcInstancesService) Create(parent string, googlecloudintegrationsv1alphasfdcinstance *GoogleCloudIntegrationsV1alphaSfdcInstance) *ProjectsLocationsProductsSfdcInstancesCreateCall { + c := &ProjectsLocationsProductsSfdcInstancesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphasfdcinstance = googlecloudintegrationsv1alphasfdcinstance + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsSfdcInstancesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsSfdcInstancesCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsSfdcInstancesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsSfdcInstancesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphasfdcinstance) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sfdcInstances") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.sfdcInstances.create" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcInstance or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcInstance.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 *ProjectsLocationsProductsSfdcInstancesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcInstance, 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 := &GoogleCloudIntegrationsV1alphaSfdcInstance{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates an sfdc instance record. Store the sfdc instance in Spanner. Returns the sfdc instance.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.sfdcInstances.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. \"projects/{project}/locations/{location}\" format.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/sfdcInstances", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.sfdcInstances.delete": + +type ProjectsLocationsProductsSfdcInstancesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes an sfdc instance. +// +// - name: The name that is associated with the SfdcInstance. +func (r *ProjectsLocationsProductsSfdcInstancesService) Delete(name string) *ProjectsLocationsProductsSfdcInstancesDeleteCall { + c := &ProjectsLocationsProductsSfdcInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsSfdcInstancesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsSfdcInstancesDeleteCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsSfdcInstancesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsSfdcInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.sfdcInstances.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsLocationsProductsSfdcInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes an sfdc instance.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}", + // "httpMethod": "DELETE", + // "id": "integrations.projects.locations.products.sfdcInstances.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name that is associated with the SfdcInstance.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.sfdcInstances.get": + +type ProjectsLocationsProductsSfdcInstancesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets an sfdc instance. If the instance doesn't exist, +// Code.NOT_FOUND exception will be thrown. +// +// - name: The name that is associated with the SfdcInstance. +func (r *ProjectsLocationsProductsSfdcInstancesService) Get(name string) *ProjectsLocationsProductsSfdcInstancesGetCall { + c := &ProjectsLocationsProductsSfdcInstancesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsSfdcInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProductsSfdcInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsSfdcInstancesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsSfdcInstancesGetCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsSfdcInstancesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsSfdcInstancesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.sfdcInstances.get" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcInstance or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcInstance.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 *ProjectsLocationsProductsSfdcInstancesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcInstance, 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 := &GoogleCloudIntegrationsV1alphaSfdcInstance{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets an sfdc instance. If the instance doesn't exist, Code.NOT_FOUND exception will be thrown.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.products.sfdcInstances.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name that is associated with the SfdcInstance.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.sfdcInstances.list": + +type ProjectsLocationsProductsSfdcInstancesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all sfdc instances that match the filter. Restrict to +// sfdc instances belonging to the current client only. +// +// - parent: The client, which owns this collection of SfdcInstances. +func (r *ProjectsLocationsProductsSfdcInstancesService) List(parent string) *ProjectsLocationsProductsSfdcInstancesListCall { + c := &ProjectsLocationsProductsSfdcInstancesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filtering as supported +// in +// https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters. +func (c *ProjectsLocationsProductsSfdcInstancesListCall) Filter(filter string) *ProjectsLocationsProductsSfdcInstancesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The size of entries +// in the response. If unspecified, defaults to 100. +func (c *ProjectsLocationsProductsSfdcInstancesListCall) PageSize(pageSize int64) *ProjectsLocationsProductsSfdcInstancesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The token returned +// in the previous response. +func (c *ProjectsLocationsProductsSfdcInstancesListCall) PageToken(pageToken string) *ProjectsLocationsProductsSfdcInstancesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": The mask which +// specifies fields that need to be returned in the SfdcInstance's +// response. +func (c *ProjectsLocationsProductsSfdcInstancesListCall) ReadMask(readMask string) *ProjectsLocationsProductsSfdcInstancesListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsSfdcInstancesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProductsSfdcInstancesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsSfdcInstancesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsSfdcInstancesListCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsSfdcInstancesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsSfdcInstancesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sfdcInstances") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.sfdcInstances.list" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse.ServerRespons +// e.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 *ProjectsLocationsProductsSfdcInstancesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse, 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 := &GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists all sfdc instances that match the filter. Restrict to sfdc instances belonging to the current client only.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.products.sfdcInstances.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The size of entries in the response. If unspecified, defaults to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The token returned in the previous response.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The client, which owns this collection of SfdcInstances.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "The mask which specifies fields that need to be returned in the SfdcInstance's response.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/sfdcInstances", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsProductsSfdcInstancesListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "integrations.projects.locations.products.sfdcInstances.patch": + +type ProjectsLocationsProductsSfdcInstancesPatchCall struct { + s *Service + name string + googlecloudintegrationsv1alphasfdcinstance *GoogleCloudIntegrationsV1alphaSfdcInstance + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an sfdc instance. Updates the sfdc instance in +// spanner. Returns the sfdc instance. +// +// - name: Resource name of the SFDC instance +// projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance} +// . +func (r *ProjectsLocationsProductsSfdcInstancesService) Patch(name string, googlecloudintegrationsv1alphasfdcinstance *GoogleCloudIntegrationsV1alphaSfdcInstance) *ProjectsLocationsProductsSfdcInstancesPatchCall { + c := &ProjectsLocationsProductsSfdcInstancesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphasfdcinstance = googlecloudintegrationsv1alphasfdcinstance + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask +// specifying the fields in the above SfdcInstance that have been +// modified and need to be updated. +func (c *ProjectsLocationsProductsSfdcInstancesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProductsSfdcInstancesPatchCall { + 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 information. +func (c *ProjectsLocationsProductsSfdcInstancesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsSfdcInstancesPatchCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsSfdcInstancesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsSfdcInstancesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphasfdcinstance) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.sfdcInstances.patch" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcInstance or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcInstance.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 *ProjectsLocationsProductsSfdcInstancesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcInstance, 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 := &GoogleCloudIntegrationsV1alphaSfdcInstance{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates an sfdc instance. Updates the sfdc instance in spanner. Returns the sfdc instance.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}", + // "httpMethod": "PATCH", + // "id": "integrations.projects.locations.products.sfdcInstances.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name of the SFDC instance projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask specifying the fields in the above SfdcInstance that have been modified and need to be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.sfdcInstances.sfdcChannels.create": + +type ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall struct { + s *Service + parent string + googlecloudintegrationsv1alphasfdcchannel *GoogleCloudIntegrationsV1alphaSfdcChannel + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates an sfdc channel record. Store the sfdc channel in +// Spanner. Returns the sfdc channel. +// +// - parent: "projects/{project}/locations/{location}" format. +func (r *ProjectsLocationsProductsSfdcInstancesSfdcChannelsService) Create(parent string, googlecloudintegrationsv1alphasfdcchannel *GoogleCloudIntegrationsV1alphaSfdcChannel) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall { + c := &ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphasfdcchannel = googlecloudintegrationsv1alphasfdcchannel + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphasfdcchannel) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sfdcChannels") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.sfdcInstances.sfdcChannels.create" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcChannel or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcChannel.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 *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcChannel, 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 := &GoogleCloudIntegrationsV1alphaSfdcChannel{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates an sfdc channel record. Store the sfdc channel in Spanner. Returns the sfdc channel.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.sfdcInstances.sfdcChannels.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. \"projects/{project}/locations/{location}\" format.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/sfdcChannels", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.sfdcInstances.sfdcChannels.delete": + +type ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes an sfdc channel. +// +// - name: The name that is associated with the SfdcChannel. +func (r *ProjectsLocationsProductsSfdcInstancesSfdcChannelsService) Delete(name string) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall { + c := &ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.sfdcInstances.sfdcChannels.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes an sfdc channel.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels/{sfdcChannelsId}", + // "httpMethod": "DELETE", + // "id": "integrations.projects.locations.products.sfdcInstances.sfdcChannels.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name that is associated with the SfdcChannel.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+/sfdcChannels/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.sfdcInstances.sfdcChannels.get": + +type ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets an sfdc channel. If the channel doesn't exist, +// Code.NOT_FOUND exception will be thrown. +// +// - name: The name that is associated with the SfdcChannel. +func (r *ProjectsLocationsProductsSfdcInstancesSfdcChannelsService) Get(name string) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall { + c := &ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.sfdcInstances.sfdcChannels.get" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcChannel or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcChannel.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 *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcChannel, 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 := &GoogleCloudIntegrationsV1alphaSfdcChannel{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND exception will be thrown.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels/{sfdcChannelsId}", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.products.sfdcInstances.sfdcChannels.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name that is associated with the SfdcChannel.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+/sfdcChannels/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.sfdcInstances.sfdcChannels.list": + +type ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all sfdc channels that match the filter. Restrict to sfdc +// channels belonging to the current client only. +// +// - parent: The client, which owns this collection of SfdcChannels. +func (r *ProjectsLocationsProductsSfdcInstancesSfdcChannelsService) List(parent string) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall { + c := &ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filtering as supported +// in +// https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters. +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Filter(filter string) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The size of entries +// in the response. If unspecified, defaults to 100. +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The token returned +// in the previous response. +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) PageToken(pageToken string) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": The mask which +// specifies fields that need to be returned in the SfdcChannel's +// response. +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) ReadMask(readMask string) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sfdcChannels") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.sfdcInstances.sfdcChannels.list" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse.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 *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse, 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 := &GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists all sfdc channels that match the filter. Restrict to sfdc channels belonging to the current client only.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.products.sfdcInstances.sfdcChannels.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The size of entries in the response. If unspecified, defaults to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The token returned in the previous response.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The client, which owns this collection of SfdcChannels.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "The mask which specifies fields that need to be returned in the SfdcChannel's response.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/sfdcChannels", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "integrations.projects.locations.products.sfdcInstances.sfdcChannels.patch": + +type ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall struct { + s *Service + name string + googlecloudintegrationsv1alphasfdcchannel *GoogleCloudIntegrationsV1alphaSfdcChannel + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an sfdc channel. Updates the sfdc channel in spanner. +// Returns the sfdc channel. +// +// - name: Resource name of the SFDC channel +// projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance +// }/sfdcChannels/{sfdc_channel}. +func (r *ProjectsLocationsProductsSfdcInstancesSfdcChannelsService) Patch(name string, googlecloudintegrationsv1alphasfdcchannel *GoogleCloudIntegrationsV1alphaSfdcChannel) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall { + c := &ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphasfdcchannel = googlecloudintegrationsv1alphasfdcchannel + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask +// specifying the fields in the above SfdcChannel that have been +// modified and need to be updated. +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall { + 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 information. +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphasfdcchannel) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.sfdcInstances.sfdcChannels.patch" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcChannel or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcChannel.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 *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcChannel, 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 := &GoogleCloudIntegrationsV1alphaSfdcChannel{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates an sfdc channel. Updates the sfdc channel in spanner. Returns the sfdc channel.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels/{sfdcChannelsId}", + // "httpMethod": "PATCH", + // "id": "integrations.projects.locations.products.sfdcInstances.sfdcChannels.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name of the SFDC channel projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance}/sfdcChannels/{sfdc_channel}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+/sfdcChannels/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask specifying the fields in the above SfdcChannel that have been modified and need to be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.sfdcInstances.create": + +type ProjectsLocationsSfdcInstancesCreateCall struct { + s *Service + parent string + googlecloudintegrationsv1alphasfdcinstance *GoogleCloudIntegrationsV1alphaSfdcInstance + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates an sfdc instance record. Store the sfdc instance in +// Spanner. Returns the sfdc instance. +// +// - parent: "projects/{project}/locations/{location}" format. +func (r *ProjectsLocationsSfdcInstancesService) Create(parent string, googlecloudintegrationsv1alphasfdcinstance *GoogleCloudIntegrationsV1alphaSfdcInstance) *ProjectsLocationsSfdcInstancesCreateCall { + c := &ProjectsLocationsSfdcInstancesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphasfdcinstance = googlecloudintegrationsv1alphasfdcinstance + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsSfdcInstancesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsSfdcInstancesCreateCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsSfdcInstancesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSfdcInstancesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphasfdcinstance) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sfdcInstances") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.sfdcInstances.create" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcInstance or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcInstance.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 *ProjectsLocationsSfdcInstancesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcInstance, 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 := &GoogleCloudIntegrationsV1alphaSfdcInstance{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates an sfdc instance record. Store the sfdc instance in Spanner. Returns the sfdc instance.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.sfdcInstances.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. \"projects/{project}/locations/{location}\" format.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/sfdcInstances", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.sfdcInstances.delete": + +type ProjectsLocationsSfdcInstancesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes an sfdc instance. +// +// - name: The name that is associated with the SfdcInstance. +func (r *ProjectsLocationsSfdcInstancesService) Delete(name string) *ProjectsLocationsSfdcInstancesDeleteCall { + c := &ProjectsLocationsSfdcInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsSfdcInstancesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsSfdcInstancesDeleteCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsSfdcInstancesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSfdcInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.sfdcInstances.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsLocationsSfdcInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes an sfdc instance.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}", + // "httpMethod": "DELETE", + // "id": "integrations.projects.locations.sfdcInstances.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name that is associated with the SfdcInstance.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.sfdcInstances.get": + +type ProjectsLocationsSfdcInstancesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets an sfdc instance. If the instance doesn't exist, +// Code.NOT_FOUND exception will be thrown. +// +// - name: The name that is associated with the SfdcInstance. +func (r *ProjectsLocationsSfdcInstancesService) Get(name string) *ProjectsLocationsSfdcInstancesGetCall { + c := &ProjectsLocationsSfdcInstancesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsSfdcInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsSfdcInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSfdcInstancesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsSfdcInstancesGetCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsSfdcInstancesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSfdcInstancesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.sfdcInstances.get" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcInstance or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcInstance.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 *ProjectsLocationsSfdcInstancesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcInstance, 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 := &GoogleCloudIntegrationsV1alphaSfdcInstance{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets an sfdc instance. If the instance doesn't exist, Code.NOT_FOUND exception will be thrown.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.sfdcInstances.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name that is associated with the SfdcInstance.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.sfdcInstances.list": + +type ProjectsLocationsSfdcInstancesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all sfdc instances that match the filter. Restrict to +// sfdc instances belonging to the current client only. +// +// - parent: The client, which owns this collection of SfdcInstances. +func (r *ProjectsLocationsSfdcInstancesService) List(parent string) *ProjectsLocationsSfdcInstancesListCall { + c := &ProjectsLocationsSfdcInstancesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filtering as supported +// in +// https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters. +func (c *ProjectsLocationsSfdcInstancesListCall) Filter(filter string) *ProjectsLocationsSfdcInstancesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The size of entries +// in the response. If unspecified, defaults to 100. +func (c *ProjectsLocationsSfdcInstancesListCall) PageSize(pageSize int64) *ProjectsLocationsSfdcInstancesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The token returned +// in the previous response. +func (c *ProjectsLocationsSfdcInstancesListCall) PageToken(pageToken string) *ProjectsLocationsSfdcInstancesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": The mask which +// specifies fields that need to be returned in the SfdcInstance's +// response. +func (c *ProjectsLocationsSfdcInstancesListCall) ReadMask(readMask string) *ProjectsLocationsSfdcInstancesListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsSfdcInstancesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsSfdcInstancesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSfdcInstancesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsSfdcInstancesListCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsSfdcInstancesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSfdcInstancesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sfdcInstances") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.sfdcInstances.list" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse.ServerRespons +// e.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 *ProjectsLocationsSfdcInstancesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse, 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 := &GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists all sfdc instances that match the filter. Restrict to sfdc instances belonging to the current client only.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.sfdcInstances.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The size of entries in the response. If unspecified, defaults to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The token returned in the previous response.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The client, which owns this collection of SfdcInstances.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "The mask which specifies fields that need to be returned in the SfdcInstance's response.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/sfdcInstances", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsSfdcInstancesListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "integrations.projects.locations.sfdcInstances.patch": + +type ProjectsLocationsSfdcInstancesPatchCall struct { + s *Service + name string + googlecloudintegrationsv1alphasfdcinstance *GoogleCloudIntegrationsV1alphaSfdcInstance + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an sfdc instance. Updates the sfdc instance in +// spanner. Returns the sfdc instance. +// +// - name: Resource name of the SFDC instance +// projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance} +// . +func (r *ProjectsLocationsSfdcInstancesService) Patch(name string, googlecloudintegrationsv1alphasfdcinstance *GoogleCloudIntegrationsV1alphaSfdcInstance) *ProjectsLocationsSfdcInstancesPatchCall { + c := &ProjectsLocationsSfdcInstancesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphasfdcinstance = googlecloudintegrationsv1alphasfdcinstance + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask +// specifying the fields in the above SfdcInstance that have been +// modified and need to be updated. +func (c *ProjectsLocationsSfdcInstancesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsSfdcInstancesPatchCall { + 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 information. +func (c *ProjectsLocationsSfdcInstancesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsSfdcInstancesPatchCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsSfdcInstancesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSfdcInstancesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphasfdcinstance) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.sfdcInstances.patch" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcInstance or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcInstance.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 *ProjectsLocationsSfdcInstancesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcInstance, 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 := &GoogleCloudIntegrationsV1alphaSfdcInstance{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates an sfdc instance. Updates the sfdc instance in spanner. Returns the sfdc instance.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}", + // "httpMethod": "PATCH", + // "id": "integrations.projects.locations.sfdcInstances.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name of the SFDC instance projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask specifying the fields in the above SfdcInstance that have been modified and need to be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.sfdcInstances.sfdcChannels.create": + +type ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall struct { + s *Service + parent string + googlecloudintegrationsv1alphasfdcchannel *GoogleCloudIntegrationsV1alphaSfdcChannel + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates an sfdc channel record. Store the sfdc channel in +// Spanner. Returns the sfdc channel. +// +// - parent: "projects/{project}/locations/{location}" format. +func (r *ProjectsLocationsSfdcInstancesSfdcChannelsService) Create(parent string, googlecloudintegrationsv1alphasfdcchannel *GoogleCloudIntegrationsV1alphaSfdcChannel) *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall { + c := &ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphasfdcchannel = googlecloudintegrationsv1alphasfdcchannel + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphasfdcchannel) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sfdcChannels") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.sfdcInstances.sfdcChannels.create" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcChannel or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcChannel.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 *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcChannel, 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 := &GoogleCloudIntegrationsV1alphaSfdcChannel{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates an sfdc channel record. Store the sfdc channel in Spanner. Returns the sfdc channel.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.sfdcInstances.sfdcChannels.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. \"projects/{project}/locations/{location}\" format.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/sfdcChannels", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.sfdcInstances.sfdcChannels.delete": + +type ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes an sfdc channel. +// +// - name: The name that is associated with the SfdcChannel. +func (r *ProjectsLocationsSfdcInstancesSfdcChannelsService) Delete(name string) *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall { + c := &ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.sfdcInstances.sfdcChannels.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes an sfdc channel.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels/{sfdcChannelsId}", + // "httpMethod": "DELETE", + // "id": "integrations.projects.locations.sfdcInstances.sfdcChannels.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name that is associated with the SfdcChannel.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+/sfdcChannels/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.sfdcInstances.sfdcChannels.get": + +type ProjectsLocationsSfdcInstancesSfdcChannelsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets an sfdc channel. If the channel doesn't exist, +// Code.NOT_FOUND exception will be thrown. +// +// - name: The name that is associated with the SfdcChannel. +func (r *ProjectsLocationsSfdcInstancesSfdcChannelsService) Get(name string) *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall { + c := &ProjectsLocationsSfdcInstancesSfdcChannelsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.sfdcInstances.sfdcChannels.get" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcChannel or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcChannel.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 *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcChannel, 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 := &GoogleCloudIntegrationsV1alphaSfdcChannel{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND exception will be thrown.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels/{sfdcChannelsId}", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.sfdcInstances.sfdcChannels.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name that is associated with the SfdcChannel.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+/sfdcChannels/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.sfdcInstances.sfdcChannels.list": + +type ProjectsLocationsSfdcInstancesSfdcChannelsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all sfdc channels that match the filter. Restrict to sfdc +// channels belonging to the current client only. +// +// - parent: The client, which owns this collection of SfdcChannels. +func (r *ProjectsLocationsSfdcInstancesSfdcChannelsService) List(parent string) *ProjectsLocationsSfdcInstancesSfdcChannelsListCall { + c := &ProjectsLocationsSfdcInstancesSfdcChannelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filtering as supported +// in +// https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters. +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Filter(filter string) *ProjectsLocationsSfdcInstancesSfdcChannelsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The size of entries +// in the response. If unspecified, defaults to 100. +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) PageSize(pageSize int64) *ProjectsLocationsSfdcInstancesSfdcChannelsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The token returned +// in the previous response. +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) PageToken(pageToken string) *ProjectsLocationsSfdcInstancesSfdcChannelsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": The mask which +// specifies fields that need to be returned in the SfdcChannel's +// response. +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) ReadMask(readMask string) *ProjectsLocationsSfdcInstancesSfdcChannelsListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesSfdcChannelsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSfdcInstancesSfdcChannelsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesSfdcChannelsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sfdcChannels") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.sfdcInstances.sfdcChannels.list" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse.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 *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse, 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 := &GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists all sfdc channels that match the filter. Restrict to sfdc channels belonging to the current client only.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.sfdcInstances.sfdcChannels.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The size of entries in the response. If unspecified, defaults to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The token returned in the previous response.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The client, which owns this collection of SfdcChannels.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "The mask which specifies fields that need to be returned in the SfdcChannel's response.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/sfdcChannels", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "integrations.projects.locations.sfdcInstances.sfdcChannels.patch": + +type ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall struct { + s *Service + name string + googlecloudintegrationsv1alphasfdcchannel *GoogleCloudIntegrationsV1alphaSfdcChannel + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an sfdc channel. Updates the sfdc channel in spanner. +// Returns the sfdc channel. +// +// - name: Resource name of the SFDC channel +// projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance +// }/sfdcChannels/{sfdc_channel}. +func (r *ProjectsLocationsSfdcInstancesSfdcChannelsService) Patch(name string, googlecloudintegrationsv1alphasfdcchannel *GoogleCloudIntegrationsV1alphaSfdcChannel) *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall { + c := &ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphasfdcchannel = googlecloudintegrationsv1alphasfdcchannel + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask +// specifying the fields in the above SfdcChannel that have been +// modified and need to be updated. +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall { + 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 information. +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphasfdcchannel) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.sfdcInstances.sfdcChannels.patch" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcChannel or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcChannel.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 *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcChannel, 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 := &GoogleCloudIntegrationsV1alphaSfdcChannel{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates an sfdc channel. Updates the sfdc channel in spanner. Returns the sfdc channel.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels/{sfdcChannelsId}", + // "httpMethod": "PATCH", + // "id": "integrations.projects.locations.sfdcInstances.sfdcChannels.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name of the SFDC channel projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance}/sfdcChannels/{sfdc_channel}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+/sfdcChannels/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask specifying the fields in the above SfdcChannel that have been modified and need to be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} diff --git a/integrations/v1alpha/integrations-api.json b/integrations/v1alpha/integrations-api.json index ae88e37ab82..4a78532782f 100644 --- a/integrations/v1alpha/integrations-api.json +++ b/integrations/v1alpha/integrations-api.json @@ -3308,7 +3308,7 @@ } } }, - "revision": "20221122", + "revision": "20221220", "rootUrl": "https://integrations.googleapis.com/", "schemas": { "CrmlogErrorCode": { @@ -5810,6 +5810,9 @@ "resolvedBy": { "type": "string" }, + "resolvedByCpi": { + "type": "string" + }, "timestamp": { "format": "google-datetime", "type": "string" @@ -8042,7 +8045,7 @@ }, "nodeConfig": { "$ref": "GoogleCloudConnectorsV1NodeConfig", - "description": "Optional. Configuration for the connection." + "description": "Optional. Node configuration for the connection." }, "serviceAccount": { "description": "Optional. Service account needed for runtime plane to access GCP resources.", @@ -8161,7 +8164,7 @@ "type": "object" }, "GoogleCloudConnectorsV1NodeConfig": { - "description": "Configuration for the connection.", + "description": "Node configuration for the connection.", "id": "GoogleCloudConnectorsV1NodeConfig", "properties": { "maxNodeCount": { diff --git a/integrations/v1alpha/integrations-gen.go b/integrations/v1alpha/integrations-gen.go index 6f7ed31dfa8..faab668f5de 100644 --- a/integrations/v1alpha/integrations-gen.go +++ b/integrations/v1alpha/integrations-gen.go @@ -3929,6 +3929,8 @@ func (s *EnterpriseCrmEventbusProtoSuspensionResolutionInfo) MarshalJSON() ([]by type EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit struct { ResolvedBy string `json:"resolvedBy,omitempty"` + ResolvedByCpi string `json:"resolvedByCpi,omitempty"` + Timestamp string `json:"timestamp,omitempty"` // ForceSendFields is a list of field names (e.g. "ResolvedBy") to @@ -6712,7 +6714,7 @@ type GoogleCloudConnectorsV1Connection struct { // projects/{project}/locations/{location}/connections/{connection} Name string `json:"name,omitempty"` - // NodeConfig: Optional. Configuration for the connection. + // NodeConfig: Optional. Node configuration for the connection. NodeConfig *GoogleCloudConnectorsV1NodeConfig `json:"nodeConfig,omitempty"` // ServiceAccount: Optional. Service account needed for runtime plane to @@ -6903,7 +6905,8 @@ func (s *GoogleCloudConnectorsV1LockConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1NodeConfig: Configuration for the connection. +// GoogleCloudConnectorsV1NodeConfig: Node configuration for the +// connection. type GoogleCloudConnectorsV1NodeConfig struct { // MaxNodeCount: Maximum number of nodes in the runtime nodes. MaxNodeCount int64 `json:"maxNodeCount,omitempty"` diff --git a/internal/kokoro/vet.sh b/internal/kokoro/vet.sh index 3fd7f754da8..dd5c45c793c 100755 --- a/internal/kokoro/vet.sh +++ b/internal/kokoro/vet.sh @@ -37,6 +37,7 @@ golint ./... 2>&1 | ( \ grep -v "exported method MarshalStyle.JSONReader should have comment or be unexported" | \ grep -v "UnmarshalJSON should have comment or be unexported" | \ grep -v "MarshalJSON should have comment or be unexported" | \ + grep -v ".Apply should have comment or be unexported" | \ grep -vE "\.pb\.go:" || true) | tee /dev/stderr | (! read) staticcheck -go 1.9 ./... 2>&1 | ( \ diff --git a/internal/version.go b/internal/version.go index d718ea68800..db10d4bc9f2 100644 --- a/internal/version.go +++ b/internal/version.go @@ -5,4 +5,4 @@ package internal // Version is the current tagged release of the library. -const Version = "0.105.0" +const Version = "0.106.0" diff --git a/jobs/v3/jobs-api.json b/jobs/v3/jobs-api.json index 45fa08e9fc2..25ca8380caa 100644 --- a/jobs/v3/jobs-api.json +++ b/jobs/v3/jobs-api.json @@ -651,7 +651,7 @@ } } }, - "revision": "20221024", + "revision": "20221219", "rootUrl": "https://jobs.googleapis.com/", "schemas": { "ApplicationInfo": { @@ -2323,7 +2323,7 @@ "type": "array" }, "disableAutomaticEnrollmentSelection": { - "description": "If true, disable automatic enrollment selection (at all diversion points). Automatic enrollment selection means experiment selection process based on the experiment's automatic enrollment condition. This does not disable selection of forced experiments. Setting this filed to false does not change anything in experiment selection process.", + "description": "If true, disable automatic enrollment selection (at all diversion points). Automatic enrollment selection means experiment selection process based on the experiment's automatic enrollment condition. This does not disable selection of forced experiments. Setting this field to false does not change anything in the experiment selection process.", "type": "boolean" }, "disableExpNames": { @@ -2349,11 +2349,11 @@ "type": "array" }, "disableManualEnrollmentSelection": { - "description": "If true, disable manual enrollment selection (at all diversion points). Manual enrollment selection means experiment selection process based on the request's manual enrollment states (a.k.a. opt-in experiments). This does not disable selection of forced experiments. Setting this filed to false does not change anything in experiment selection process.", + "description": "If true, disable manual enrollment selection (at all diversion points). Manual enrollment selection means experiment selection process based on the request's manual enrollment states (a.k.a. opt-in experiments). This does not disable selection of forced experiments. Setting this field to false does not change anything in the experiment selection process.", "type": "boolean" }, "disableOrganicSelection": { - "description": "If true, disable organic experiment selection (at all diversion points). Organic selection means experiment selection process based on traffic allocation and diversion condition evaluation. This does not disable selection of forced experiments. This is useful in cases when it is not known whether experiment selection behavior is responsible for a error or breakage. Disabling organic selection may help to isolate the cause of a given problem. Setting this filed to false does not change anything in experiment selection process.", + "description": "If true, disable organic experiment selection (at all diversion points). Organic selection means experiment selection process based on traffic allocation and diversion condition evaluation. This does not disable selection of forced experiments. This is useful in cases when it is not known whether experiment selection behavior is responsible for a error or breakage. Disabling organic selection may help to isolate the cause of a given problem. Setting this field to false does not change anything in the experiment selection process.", "type": "boolean" }, "forcedFlags": { @@ -2371,7 +2371,7 @@ "type": "object" }, "testingMode": { - "description": "If set to ALL_OFF, organic selection will be disabled; if set to ALL_ON, organic selection will be disabled, and only select launch experiments will receive traffic. See go/mendel-aoao-runtime-design.", + "description": "Sets different testing modes. See the documentation in the TestingMode message for more information.", "enum": [ "TESTING_MODE_UNSPECIFIED", "TESTING_MODE_ALL_OFF", diff --git a/jobs/v3/jobs-gen.go b/jobs/v3/jobs-gen.go index 7ea961cea1a..cf3295d9497 100644 --- a/jobs/v3/jobs-gen.go +++ b/jobs/v3/jobs-gen.go @@ -2823,8 +2823,8 @@ type NamespacedDebugInput struct { // enrollment selection (at all diversion points). Automatic enrollment // selection means experiment selection process based on the // experiment's automatic enrollment condition. This does not disable - // selection of forced experiments. Setting this filed to false does not - // change anything in experiment selection process. + // selection of forced experiments. Setting this field to false does not + // change anything in the experiment selection process. DisableAutomaticEnrollmentSelection bool `json:"disableAutomaticEnrollmentSelection,omitempty"` // DisableExpNames: Set of experiment names to be disabled. If an @@ -2856,8 +2856,8 @@ type NamespacedDebugInput struct { // selection (at all diversion points). Manual enrollment selection // means experiment selection process based on the request's manual // enrollment states (a.k.a. opt-in experiments). This does not disable - // selection of forced experiments. Setting this filed to false does not - // change anything in experiment selection process. + // selection of forced experiments. Setting this field to false does not + // change anything in the experiment selection process. DisableManualEnrollmentSelection bool `json:"disableManualEnrollmentSelection,omitempty"` // DisableOrganicSelection: If true, disable organic experiment @@ -2867,8 +2867,8 @@ type NamespacedDebugInput struct { // forced experiments. This is useful in cases when it is not known // whether experiment selection behavior is responsible for a error or // breakage. Disabling organic selection may help to isolate the cause - // of a given problem. Setting this filed to false does not change - // anything in experiment selection process. + // of a given problem. Setting this field to false does not change + // anything in the experiment selection process. DisableOrganicSelection bool `json:"disableOrganicSelection,omitempty"` // ForcedFlags: Flags to force in a particular experiment state. Map @@ -2879,10 +2879,8 @@ type NamespacedDebugInput struct { // Map from rollout name to rollout value. ForcedRollouts map[string]bool `json:"forcedRollouts,omitempty"` - // TestingMode: If set to ALL_OFF, organic selection will be disabled; - // if set to ALL_ON, organic selection will be disabled, and only select - // launch experiments will receive traffic. See - // go/mendel-aoao-runtime-design. + // TestingMode: Sets different testing modes. See the documentation in + // the TestingMode message for more information. // // Possible values: // "TESTING_MODE_UNSPECIFIED" diff --git a/jobs/v3p1beta1/jobs-api.json b/jobs/v3p1beta1/jobs-api.json index ba25f1fc057..e6fc7dca174 100644 --- a/jobs/v3p1beta1/jobs-api.json +++ b/jobs/v3p1beta1/jobs-api.json @@ -681,7 +681,7 @@ } } }, - "revision": "20221024", + "revision": "20221219", "rootUrl": "https://jobs.googleapis.com/", "schemas": { "ApplicationInfo": { @@ -2427,7 +2427,7 @@ "type": "array" }, "disableAutomaticEnrollmentSelection": { - "description": "If true, disable automatic enrollment selection (at all diversion points). Automatic enrollment selection means experiment selection process based on the experiment's automatic enrollment condition. This does not disable selection of forced experiments. Setting this filed to false does not change anything in experiment selection process.", + "description": "If true, disable automatic enrollment selection (at all diversion points). Automatic enrollment selection means experiment selection process based on the experiment's automatic enrollment condition. This does not disable selection of forced experiments. Setting this field to false does not change anything in the experiment selection process.", "type": "boolean" }, "disableExpNames": { @@ -2453,11 +2453,11 @@ "type": "array" }, "disableManualEnrollmentSelection": { - "description": "If true, disable manual enrollment selection (at all diversion points). Manual enrollment selection means experiment selection process based on the request's manual enrollment states (a.k.a. opt-in experiments). This does not disable selection of forced experiments. Setting this filed to false does not change anything in experiment selection process.", + "description": "If true, disable manual enrollment selection (at all diversion points). Manual enrollment selection means experiment selection process based on the request's manual enrollment states (a.k.a. opt-in experiments). This does not disable selection of forced experiments. Setting this field to false does not change anything in the experiment selection process.", "type": "boolean" }, "disableOrganicSelection": { - "description": "If true, disable organic experiment selection (at all diversion points). Organic selection means experiment selection process based on traffic allocation and diversion condition evaluation. This does not disable selection of forced experiments. This is useful in cases when it is not known whether experiment selection behavior is responsible for a error or breakage. Disabling organic selection may help to isolate the cause of a given problem. Setting this filed to false does not change anything in experiment selection process.", + "description": "If true, disable organic experiment selection (at all diversion points). Organic selection means experiment selection process based on traffic allocation and diversion condition evaluation. This does not disable selection of forced experiments. This is useful in cases when it is not known whether experiment selection behavior is responsible for a error or breakage. Disabling organic selection may help to isolate the cause of a given problem. Setting this field to false does not change anything in the experiment selection process.", "type": "boolean" }, "forcedFlags": { @@ -2475,7 +2475,7 @@ "type": "object" }, "testingMode": { - "description": "If set to ALL_OFF, organic selection will be disabled; if set to ALL_ON, organic selection will be disabled, and only select launch experiments will receive traffic. See go/mendel-aoao-runtime-design.", + "description": "Sets different testing modes. See the documentation in the TestingMode message for more information.", "enum": [ "TESTING_MODE_UNSPECIFIED", "TESTING_MODE_ALL_OFF", diff --git a/jobs/v3p1beta1/jobs-gen.go b/jobs/v3p1beta1/jobs-gen.go index a8bb445bbc3..051880e6520 100644 --- a/jobs/v3p1beta1/jobs-gen.go +++ b/jobs/v3p1beta1/jobs-gen.go @@ -3045,8 +3045,8 @@ type NamespacedDebugInput struct { // enrollment selection (at all diversion points). Automatic enrollment // selection means experiment selection process based on the // experiment's automatic enrollment condition. This does not disable - // selection of forced experiments. Setting this filed to false does not - // change anything in experiment selection process. + // selection of forced experiments. Setting this field to false does not + // change anything in the experiment selection process. DisableAutomaticEnrollmentSelection bool `json:"disableAutomaticEnrollmentSelection,omitempty"` // DisableExpNames: Set of experiment names to be disabled. If an @@ -3078,8 +3078,8 @@ type NamespacedDebugInput struct { // selection (at all diversion points). Manual enrollment selection // means experiment selection process based on the request's manual // enrollment states (a.k.a. opt-in experiments). This does not disable - // selection of forced experiments. Setting this filed to false does not - // change anything in experiment selection process. + // selection of forced experiments. Setting this field to false does not + // change anything in the experiment selection process. DisableManualEnrollmentSelection bool `json:"disableManualEnrollmentSelection,omitempty"` // DisableOrganicSelection: If true, disable organic experiment @@ -3089,8 +3089,8 @@ type NamespacedDebugInput struct { // forced experiments. This is useful in cases when it is not known // whether experiment selection behavior is responsible for a error or // breakage. Disabling organic selection may help to isolate the cause - // of a given problem. Setting this filed to false does not change - // anything in experiment selection process. + // of a given problem. Setting this field to false does not change + // anything in the experiment selection process. DisableOrganicSelection bool `json:"disableOrganicSelection,omitempty"` // ForcedFlags: Flags to force in a particular experiment state. Map @@ -3101,10 +3101,8 @@ type NamespacedDebugInput struct { // Map from rollout name to rollout value. ForcedRollouts map[string]bool `json:"forcedRollouts,omitempty"` - // TestingMode: If set to ALL_OFF, organic selection will be disabled; - // if set to ALL_ON, organic selection will be disabled, and only select - // launch experiments will receive traffic. See - // go/mendel-aoao-runtime-design. + // TestingMode: Sets different testing modes. See the documentation in + // the TestingMode message for more information. // // Possible values: // "TESTING_MODE_UNSPECIFIED" diff --git a/jobs/v4/jobs-api.json b/jobs/v4/jobs-api.json index b95375cf1b4..7027fc2ccbd 100644 --- a/jobs/v4/jobs-api.json +++ b/jobs/v4/jobs-api.json @@ -903,7 +903,7 @@ } } }, - "revision": "20221024", + "revision": "20221219", "rootUrl": "https://jobs.googleapis.com/", "schemas": { "ApplicationInfo": { @@ -2519,7 +2519,7 @@ "type": "array" }, "disableAutomaticEnrollmentSelection": { - "description": "If true, disable automatic enrollment selection (at all diversion points). Automatic enrollment selection means experiment selection process based on the experiment's automatic enrollment condition. This does not disable selection of forced experiments. Setting this filed to false does not change anything in experiment selection process.", + "description": "If true, disable automatic enrollment selection (at all diversion points). Automatic enrollment selection means experiment selection process based on the experiment's automatic enrollment condition. This does not disable selection of forced experiments. Setting this field to false does not change anything in the experiment selection process.", "type": "boolean" }, "disableExpNames": { @@ -2545,11 +2545,11 @@ "type": "array" }, "disableManualEnrollmentSelection": { - "description": "If true, disable manual enrollment selection (at all diversion points). Manual enrollment selection means experiment selection process based on the request's manual enrollment states (a.k.a. opt-in experiments). This does not disable selection of forced experiments. Setting this filed to false does not change anything in experiment selection process.", + "description": "If true, disable manual enrollment selection (at all diversion points). Manual enrollment selection means experiment selection process based on the request's manual enrollment states (a.k.a. opt-in experiments). This does not disable selection of forced experiments. Setting this field to false does not change anything in the experiment selection process.", "type": "boolean" }, "disableOrganicSelection": { - "description": "If true, disable organic experiment selection (at all diversion points). Organic selection means experiment selection process based on traffic allocation and diversion condition evaluation. This does not disable selection of forced experiments. This is useful in cases when it is not known whether experiment selection behavior is responsible for a error or breakage. Disabling organic selection may help to isolate the cause of a given problem. Setting this filed to false does not change anything in experiment selection process.", + "description": "If true, disable organic experiment selection (at all diversion points). Organic selection means experiment selection process based on traffic allocation and diversion condition evaluation. This does not disable selection of forced experiments. This is useful in cases when it is not known whether experiment selection behavior is responsible for a error or breakage. Disabling organic selection may help to isolate the cause of a given problem. Setting this field to false does not change anything in the experiment selection process.", "type": "boolean" }, "forcedFlags": { @@ -2567,7 +2567,7 @@ "type": "object" }, "testingMode": { - "description": "If set to ALL_OFF, organic selection will be disabled; if set to ALL_ON, organic selection will be disabled, and only select launch experiments will receive traffic. See go/mendel-aoao-runtime-design.", + "description": "Sets different testing modes. See the documentation in the TestingMode message for more information.", "enum": [ "TESTING_MODE_UNSPECIFIED", "TESTING_MODE_ALL_OFF", diff --git a/jobs/v4/jobs-gen.go b/jobs/v4/jobs-gen.go index ae0ee1a6147..95f82d14bb3 100644 --- a/jobs/v4/jobs-gen.go +++ b/jobs/v4/jobs-gen.go @@ -2747,8 +2747,8 @@ type NamespacedDebugInput struct { // enrollment selection (at all diversion points). Automatic enrollment // selection means experiment selection process based on the // experiment's automatic enrollment condition. This does not disable - // selection of forced experiments. Setting this filed to false does not - // change anything in experiment selection process. + // selection of forced experiments. Setting this field to false does not + // change anything in the experiment selection process. DisableAutomaticEnrollmentSelection bool `json:"disableAutomaticEnrollmentSelection,omitempty"` // DisableExpNames: Set of experiment names to be disabled. If an @@ -2780,8 +2780,8 @@ type NamespacedDebugInput struct { // selection (at all diversion points). Manual enrollment selection // means experiment selection process based on the request's manual // enrollment states (a.k.a. opt-in experiments). This does not disable - // selection of forced experiments. Setting this filed to false does not - // change anything in experiment selection process. + // selection of forced experiments. Setting this field to false does not + // change anything in the experiment selection process. DisableManualEnrollmentSelection bool `json:"disableManualEnrollmentSelection,omitempty"` // DisableOrganicSelection: If true, disable organic experiment @@ -2791,8 +2791,8 @@ type NamespacedDebugInput struct { // forced experiments. This is useful in cases when it is not known // whether experiment selection behavior is responsible for a error or // breakage. Disabling organic selection may help to isolate the cause - // of a given problem. Setting this filed to false does not change - // anything in experiment selection process. + // of a given problem. Setting this field to false does not change + // anything in the experiment selection process. DisableOrganicSelection bool `json:"disableOrganicSelection,omitempty"` // ForcedFlags: Flags to force in a particular experiment state. Map @@ -2803,10 +2803,8 @@ type NamespacedDebugInput struct { // Map from rollout name to rollout value. ForcedRollouts map[string]bool `json:"forcedRollouts,omitempty"` - // TestingMode: If set to ALL_OFF, organic selection will be disabled; - // if set to ALL_ON, organic selection will be disabled, and only select - // launch experiments will receive traffic. See - // go/mendel-aoao-runtime-design. + // TestingMode: Sets different testing modes. See the documentation in + // the TestingMode message for more information. // // Possible values: // "TESTING_MODE_UNSPECIFIED" diff --git a/metastore/v1/metastore-api.json b/metastore/v1/metastore-api.json index fc2ae6112da..659e3a68a0d 100644 --- a/metastore/v1/metastore-api.json +++ b/metastore/v1/metastore-api.json @@ -1259,7 +1259,7 @@ } } }, - "revision": "20221130", + "revision": "20221207", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AuditConfig": { @@ -1432,7 +1432,7 @@ "type": "string" }, "subnetwork": { - "description": "Immutable. The subnetwork of the customer project from which an IP address is reserved and used as the Dataproc Metastore service's endpoint. It is accessible to hosts in the subnet and to all hosts in a subnet in the same region and same network. There must be at least one IP address available in the subnet's primary range. The subnet is specified in the following form:`projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}", + "description": "Immutable. The subnetwork of the customer project from which an IP address is reserved and used as the Dataproc Metastore service's endpoint. It is accessible to hosts in the subnet and to all hosts in a subnet in the same region and same network. There must be at least one IP address available in the subnet's primary range. The subnet is specified in the following form:projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}", "type": "string" } }, diff --git a/metastore/v1/metastore-gen.go b/metastore/v1/metastore-gen.go index 0fb4c348346..c15fa44d891 100644 --- a/metastore/v1/metastore-gen.go +++ b/metastore/v1/metastore-gen.go @@ -525,8 +525,8 @@ type Consumer struct { // all hosts in a subnet in the same region and same network. There must // be at least one IP address available in the subnet's primary range. // The subnet is specified in the following - // form:`projects/{project_number}/regions/{region_id}/subnetworks/{subne - // twork_id} + // form:projects/{project_number}/regions/{region_id}/subnetworks/{subnet + // work_id} Subnetwork string `json:"subnetwork,omitempty"` // ForceSendFields is a list of field names (e.g. "EndpointUri") to diff --git a/metastore/v1alpha/metastore-api.json b/metastore/v1alpha/metastore-api.json index a2db4571a82..6e95da4ffce 100644 --- a/metastore/v1alpha/metastore-api.json +++ b/metastore/v1alpha/metastore-api.json @@ -1551,7 +1551,7 @@ } } }, - "revision": "20221130", + "revision": "20221207", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AlterMetadataResourceLocationRequest": { @@ -1758,7 +1758,7 @@ "type": "string" }, "subnetwork": { - "description": "Immutable. The subnetwork of the customer project from which an IP address is reserved and used as the Dataproc Metastore service's endpoint. It is accessible to hosts in the subnet and to all hosts in a subnet in the same region and same network. There must be at least one IP address available in the subnet's primary range. The subnet is specified in the following form:`projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}", + "description": "Immutable. The subnetwork of the customer project from which an IP address is reserved and used as the Dataproc Metastore service's endpoint. It is accessible to hosts in the subnet and to all hosts in a subnet in the same region and same network. There must be at least one IP address available in the subnet's primary range. The subnet is specified in the following form:projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}", "type": "string" } }, @@ -2604,7 +2604,12 @@ "RemoveIamPolicyRequest": { "description": "Request message for DataprocMetastore.RemoveIamPolicy.", "id": "RemoveIamPolicyRequest", - "properties": {}, + "properties": { + "asynchronous": { + "description": "Optional. Removes IAM policy attached to database or table asynchronously when it is set. The default is false.", + "type": "boolean" + } + }, "type": "object" }, "RemoveIamPolicyResponse": { diff --git a/metastore/v1alpha/metastore-gen.go b/metastore/v1alpha/metastore-gen.go index 05d081d101e..3f5b41ede61 100644 --- a/metastore/v1alpha/metastore-gen.go +++ b/metastore/v1alpha/metastore-gen.go @@ -612,8 +612,8 @@ type Consumer struct { // all hosts in a subnet in the same region and same network. There must // be at least one IP address available in the subnet's primary range. // The subnet is specified in the following - // form:`projects/{project_number}/regions/{region_id}/subnetworks/{subne - // twork_id} + // form:projects/{project_number}/regions/{region_id}/subnetworks/{subnet + // work_id} Subnetwork string `json:"subnetwork,omitempty"` // ForceSendFields is a list of field names (e.g. "EndpointUri") to @@ -2066,6 +2066,31 @@ func (s *QueryMetadataResponse) MarshalJSON() ([]byte, error) { // RemoveIamPolicyRequest: Request message for // DataprocMetastore.RemoveIamPolicy. type RemoveIamPolicyRequest struct { + // Asynchronous: Optional. Removes IAM policy attached to database or + // table asynchronously when it is set. The default is false. + Asynchronous bool `json:"asynchronous,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Asynchronous") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Asynchronous") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RemoveIamPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod RemoveIamPolicyRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // RemoveIamPolicyResponse: Response message for diff --git a/metastore/v1beta/metastore-api.json b/metastore/v1beta/metastore-api.json index 7bcb8112278..22901d43d80 100644 --- a/metastore/v1beta/metastore-api.json +++ b/metastore/v1beta/metastore-api.json @@ -1551,7 +1551,7 @@ } } }, - "revision": "20221130", + "revision": "20221207", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AlterMetadataResourceLocationRequest": { @@ -1758,7 +1758,7 @@ "type": "string" }, "subnetwork": { - "description": "Immutable. The subnetwork of the customer project from which an IP address is reserved and used as the Dataproc Metastore service's endpoint. It is accessible to hosts in the subnet and to all hosts in a subnet in the same region and same network. There must be at least one IP address available in the subnet's primary range. The subnet is specified in the following form:`projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}", + "description": "Immutable. The subnetwork of the customer project from which an IP address is reserved and used as the Dataproc Metastore service's endpoint. It is accessible to hosts in the subnet and to all hosts in a subnet in the same region and same network. There must be at least one IP address available in the subnet's primary range. The subnet is specified in the following form:projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}", "type": "string" } }, @@ -2604,7 +2604,12 @@ "RemoveIamPolicyRequest": { "description": "Request message for DataprocMetastore.RemoveIamPolicy.", "id": "RemoveIamPolicyRequest", - "properties": {}, + "properties": { + "asynchronous": { + "description": "Optional. Removes IAM policy attached to database or table asynchronously when it is set. The default is false.", + "type": "boolean" + } + }, "type": "object" }, "RemoveIamPolicyResponse": { diff --git a/metastore/v1beta/metastore-gen.go b/metastore/v1beta/metastore-gen.go index 549d838003d..a2f83db8265 100644 --- a/metastore/v1beta/metastore-gen.go +++ b/metastore/v1beta/metastore-gen.go @@ -612,8 +612,8 @@ type Consumer struct { // all hosts in a subnet in the same region and same network. There must // be at least one IP address available in the subnet's primary range. // The subnet is specified in the following - // form:`projects/{project_number}/regions/{region_id}/subnetworks/{subne - // twork_id} + // form:projects/{project_number}/regions/{region_id}/subnetworks/{subnet + // work_id} Subnetwork string `json:"subnetwork,omitempty"` // ForceSendFields is a list of field names (e.g. "EndpointUri") to @@ -2066,6 +2066,31 @@ func (s *QueryMetadataResponse) MarshalJSON() ([]byte, error) { // RemoveIamPolicyRequest: Request message for // DataprocMetastore.RemoveIamPolicy. type RemoveIamPolicyRequest struct { + // Asynchronous: Optional. Removes IAM policy attached to database or + // table asynchronously when it is set. The default is false. + Asynchronous bool `json:"asynchronous,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Asynchronous") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Asynchronous") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RemoveIamPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod RemoveIamPolicyRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // RemoveIamPolicyResponse: Response message for diff --git a/networkconnectivity/v1/networkconnectivity-api.json b/networkconnectivity/v1/networkconnectivity-api.json index a5ccb15e35a..a638eb686b4 100644 --- a/networkconnectivity/v1/networkconnectivity-api.json +++ b/networkconnectivity/v1/networkconnectivity-api.json @@ -1393,7 +1393,7 @@ } } }, - "revision": "20221020", + "revision": "20221201", "rootUrl": "https://networkconnectivity.googleapis.com/", "schemas": { "AuditConfig": { @@ -1582,7 +1582,7 @@ "type": "object" }, "Hub": { - "description": "A Network Connectivity Center hub is a collection of spokes. A single hub can contain spokes from multiple regions. However, if any of a hub's spokes use the data transfer feature, the resources associated with those spokes must all reside in the same VPC network. Spokes that do not use data transfer can be associated with any VPC network in your project.", + "description": "A Network Connectivity Center hub is a global management resource to which you attach spokes. A single hub can contain spokes from multiple regions. However, if any of a hub's spokes use the site-to-site data transfer feature, the resources associated with those spokes must all be in the same VPC network. Spokes that do not use site-to-site data transfer can be associated with any VPC network in your project.", "id": "Hub", "properties": { "createTime": { @@ -2094,7 +2094,7 @@ "type": "object" }, "Spoke": { - "description": "A Network Connectivity Center spoke represents a connection between your Google Cloud network resources and a non-Google-Cloud network. When you create a spoke, you associate it with a hub. You must also identify a value for exactly one of the following fields: * linked_vpn_tunnels * linked_interconnect_attachments * linked_router_appliance_instances", + "description": "A Network Connectivity Center spoke represents one or more network connectivity resources. When you create a spoke, you associate it with a hub. You must also identify a value for exactly one of the following fields: * linked_vpn_tunnels * linked_interconnect_attachments * linked_router_appliance_instances", "id": "Spoke", "properties": { "createTime": { diff --git a/networkconnectivity/v1/networkconnectivity-gen.go b/networkconnectivity/v1/networkconnectivity-gen.go index ff9c860ea56..ea006f7d744 100644 --- a/networkconnectivity/v1/networkconnectivity-gen.go +++ b/networkconnectivity/v1/networkconnectivity-gen.go @@ -660,12 +660,13 @@ func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Hub: A Network Connectivity Center hub is a collection of spokes. A -// single hub can contain spokes from multiple regions. However, if any -// of a hub's spokes use the data transfer feature, the resources -// associated with those spokes must all reside in the same VPC network. -// Spokes that do not use data transfer can be associated with any VPC -// network in your project. +// Hub: A Network Connectivity Center hub is a global management +// resource to which you attach spokes. A single hub can contain spokes +// from multiple regions. However, if any of a hub's spokes use the +// site-to-site data transfer feature, the resources associated with +// those spokes must all be in the same VPC network. Spokes that do not +// use site-to-site data transfer can be associated with any VPC network +// in your project. type Hub struct { // CreateTime: Output only. The time the hub was created. CreateTime string `json:"createTime,omitempty"` @@ -1516,12 +1517,11 @@ func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Spoke: A Network Connectivity Center spoke represents a connection -// between your Google Cloud network resources and a non-Google-Cloud -// network. When you create a spoke, you associate it with a hub. You -// must also identify a value for exactly one of the following fields: * -// linked_vpn_tunnels * linked_interconnect_attachments * -// linked_router_appliance_instances +// Spoke: A Network Connectivity Center spoke represents one or more +// network connectivity resources. When you create a spoke, you +// associate it with a hub. You must also identify a value for exactly +// one of the following fields: * linked_vpn_tunnels * +// linked_interconnect_attachments * linked_router_appliance_instances type Spoke struct { // CreateTime: Output only. The time the spoke was created. CreateTime string `json:"createTime,omitempty"` diff --git a/networksecurity/v1beta1/networksecurity-api.json b/networksecurity/v1beta1/networksecurity-api.json index 95be47679c7..c75baa9bfa8 100644 --- a/networksecurity/v1beta1/networksecurity-api.json +++ b/networksecurity/v1beta1/networksecurity-api.json @@ -105,6 +105,137 @@ }, "protocol": "rest", "resources": { + "organizations": { + "resources": { + "locations": { + "resources": { + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "networksecurity.organizations.locations.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:cancel", + "request": { + "$ref": "CancelOperationRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "networksecurity.organizations.locations.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "networksecurity.organizations.locations.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "networksecurity.organizations.locations.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/operations", + "response": { + "$ref": "ListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + }, "projects": { "resources": { "locations": { @@ -177,6 +308,97 @@ } }, "resources": { + "addressGroups": { + "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/addressGroups/{addressGroupsId}:getIamPolicy", + "httpMethod": "GET", + "id": "networksecurity.projects.locations.addressGroups.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/[^/]+/addressGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+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": "v1beta1/projects/{projectsId}/locations/{locationsId}/addressGroups/{addressGroupsId}:setIamPolicy", + "httpMethod": "POST", + "id": "networksecurity.projects.locations.addressGroups.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/[^/]+/addressGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+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": "v1beta1/projects/{projectsId}/locations/{locationsId}/addressGroups/{addressGroupsId}:testIamPermissions", + "httpMethod": "POST", + "id": "networksecurity.projects.locations.addressGroups.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/[^/]+/addressGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:testIamPermissions", + "request": { + "$ref": "GoogleIamV1TestIamPermissionsRequest" + }, + "response": { + "$ref": "GoogleIamV1TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "authorizationPolicies": { "methods": { "create": { @@ -1037,7 +1259,7 @@ } } }, - "revision": "20220902", + "revision": "20221205", "rootUrl": "https://networksecurity.googleapis.com/", "schemas": { "AuthorizationPolicy": { diff --git a/networksecurity/v1beta1/networksecurity-gen.go b/networksecurity/v1beta1/networksecurity-gen.go index b40061a43d2..a18b4597a43 100644 --- a/networksecurity/v1beta1/networksecurity-gen.go +++ b/networksecurity/v1beta1/networksecurity-gen.go @@ -118,6 +118,7 @@ func New(client *http.Client) (*Service, error) { return nil, errors.New("client is nil") } s := &Service{client: client, BasePath: basePath} + s.Organizations = NewOrganizationsService(s) s.Projects = NewProjectsService(s) return s, nil } @@ -127,6 +128,8 @@ type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment + Organizations *OrganizationsService + Projects *ProjectsService } @@ -137,6 +140,39 @@ func (s *Service) userAgent() string { return googleapi.UserAgent + " " + s.UserAgent } +func NewOrganizationsService(s *Service) *OrganizationsService { + rs := &OrganizationsService{s: s} + rs.Locations = NewOrganizationsLocationsService(s) + return rs +} + +type OrganizationsService struct { + s *Service + + Locations *OrganizationsLocationsService +} + +func NewOrganizationsLocationsService(s *Service) *OrganizationsLocationsService { + rs := &OrganizationsLocationsService{s: s} + rs.Operations = NewOrganizationsLocationsOperationsService(s) + return rs +} + +type OrganizationsLocationsService struct { + s *Service + + Operations *OrganizationsLocationsOperationsService +} + +func NewOrganizationsLocationsOperationsService(s *Service) *OrganizationsLocationsOperationsService { + rs := &OrganizationsLocationsOperationsService{s: s} + return rs +} + +type OrganizationsLocationsOperationsService struct { + s *Service +} + func NewProjectsService(s *Service) *ProjectsService { rs := &ProjectsService{s: s} rs.Locations = NewProjectsLocationsService(s) @@ -151,6 +187,7 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} + rs.AddressGroups = NewProjectsLocationsAddressGroupsService(s) rs.AuthorizationPolicies = NewProjectsLocationsAuthorizationPoliciesService(s) rs.ClientTlsPolicies = NewProjectsLocationsClientTlsPoliciesService(s) rs.Operations = NewProjectsLocationsOperationsService(s) @@ -161,6 +198,8 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { type ProjectsLocationsService struct { s *Service + AddressGroups *ProjectsLocationsAddressGroupsService + AuthorizationPolicies *ProjectsLocationsAuthorizationPoliciesService ClientTlsPolicies *ProjectsLocationsClientTlsPoliciesService @@ -170,6 +209,15 @@ type ProjectsLocationsService struct { ServerTlsPolicies *ProjectsLocationsServerTlsPoliciesService } +func NewProjectsLocationsAddressGroupsService(s *Service) *ProjectsLocationsAddressGroupsService { + rs := &ProjectsLocationsAddressGroupsService{s: s} + return rs +} + +type ProjectsLocationsAddressGroupsService struct { + s *Service +} + func NewProjectsLocationsAuthorizationPoliciesService(s *Service) *ProjectsLocationsAuthorizationPoliciesService { rs := &ProjectsLocationsAuthorizationPoliciesService{s: s} return rs @@ -1617,77 +1665,79 @@ func (s *ValidationCA) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// method id "networksecurity.projects.locations.get": +// method id "networksecurity.organizations.locations.operations.cancel": -type ProjectsLocationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsOperationsCancelCall struct { + s *Service + name string + canceloperationrequest *CancelOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets information about a location. +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. // -// - name: Resource name for the location. -func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { - c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be cancelled. +func (r *OrganizationsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *OrganizationsLocationsOperationsCancelCall { + c := &OrganizationsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.canceloperationrequest = canceloperationrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { +func (c *OrganizationsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { +func (c *OrganizationsLocationsOperationsCancelCall) Context(ctx context.Context) *OrganizationsLocationsOperationsCancelCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsGetCall) Header() http.Header { +func (c *OrganizationsLocationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -1698,14 +1748,14 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.get" call. -// Exactly one of *Location or error will be non-nil. Any non-2xx status +// Do executes the "networksecurity.organizations.locations.operations.cancel" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either -// *Location.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 *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *OrganizationsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -1724,7 +1774,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Location{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -1736,25 +1786,28 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, } return ret, nil // { - // "description": "Gets information about a location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}", - // "httpMethod": "GET", - // "id": "networksecurity.projects.locations.get", + // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + // "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "networksecurity.organizations.locations.operations.cancel", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Resource name for the location.", + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+name}:cancel", + // "request": { + // "$ref": "CancelOperationRequest" + // }, // "response": { - // "$ref": "Location" + // "$ref": "Empty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -1763,103 +1816,66 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, } -// method id "networksecurity.projects.locations.list": +// method id "networksecurity.organizations.locations.operations.delete": -type ProjectsLocationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists information about the supported locations for this -// service. +// Delete: Deletes a long-running operation. This method indicates that +// the client is no longer interested in the operation result. It does +// not cancel the operation. If the server doesn't support this method, +// it returns `google.rpc.Code.UNIMPLEMENTED`. // -// - name: The resource that owns the locations collection, if -// applicable. -func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { - c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *OrganizationsLocationsOperationsService) Delete(name string) *OrganizationsLocationsOperationsDeleteCall { + c := &OrganizationsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": A filter to narrow down -// results to a preferred subset. The filtering language accepts strings -// like "displayName=tokyo", and is documented in more detail in -// AIP-160 (https://google.aip.dev/160). -func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return. If not set, the service selects a default. -func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token -// received from the `next_page_token` field in the response. Send that -// page token to receive the subsequent page. -func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { +func (c *OrganizationsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { +func (c *OrganizationsLocationsOperationsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsListCall) Header() http.Header { +func (c *OrganizationsLocationsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/locations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -1870,14 +1886,14 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.list" call. -// Exactly one of *ListLocationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListLocationsResponse.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { +// Do executes the "networksecurity.organizations.locations.operations.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *OrganizationsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -1896,7 +1912,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListLocationsResponse{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -1908,41 +1924,25 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat } return ret, nil // { - // "description": "Lists information about the supported locations for this service.", - // "flatPath": "v1beta1/projects/{projectsId}/locations", - // "httpMethod": "GET", - // "id": "networksecurity.projects.locations.list", + // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + // "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "networksecurity.organizations.locations.operations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { - // "filter": { - // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", - // "location": "query", - // "type": "string" - // }, // "name": { - // "description": "The resource that owns the locations collection, if applicable.", + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+$", + // "pattern": "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of results to return. If not set, the service selects a default.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+name}/locations", + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "ListLocationsResponse" + // "$ref": "Empty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -1951,25 +1951,1193 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat } -// 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 *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } +// method id "networksecurity.organizations.locations.operations.get": + +type OrganizationsLocationsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +// +// - name: The name of the operation resource. +func (r *OrganizationsLocationsOperationsService) Get(name string) *OrganizationsLocationsOperationsGetCall { + c := &OrganizationsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsLocationsOperationsGetCall) Context(ctx context.Context) *OrganizationsLocationsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsLocationsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.organizations.locations.operations.get" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *OrganizationsLocationsOperationsGetCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "networksecurity.organizations.locations.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "networksecurity.organizations.locations.operations.list": + +type OrganizationsLocationsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to +// override the binding to use different resource name schemes, such as +// `users/*/operations`. To override the binding, API services can add a +// binding such as "/v1/{name=users/*}/operations" to their service +// configuration. For backwards compatibility, the default name includes +// the operations collection id, however overriding users must ensure +// the name binding is the parent resource, without the operations +// collection id. +// +// - name: The name of the operation's parent resource. +func (r *OrganizationsLocationsOperationsService) List(name string) *OrganizationsLocationsOperationsListCall { + c := &OrganizationsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *OrganizationsLocationsOperationsListCall) Filter(filter string) *OrganizationsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *OrganizationsLocationsOperationsListCall) PageSize(pageSize int64) *OrganizationsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *OrganizationsLocationsOperationsListCall) PageToken(pageToken string) *OrganizationsLocationsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsLocationsOperationsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsLocationsOperationsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsLocationsOperationsListCall) Context(ctx context.Context) *OrganizationsLocationsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsLocationsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.organizations.locations.operations.list" call. +// Exactly one of *ListOperationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.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 *OrganizationsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, 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 := &ListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/operations", + // "httpMethod": "GET", + // "id": "networksecurity.organizations.locations.operations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}/operations", + // "response": { + // "$ref": "ListOperationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "networksecurity.projects.locations.get": + +type ProjectsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a location. +// +// - name: Resource name for the location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.projects.locations.get" call. +// Exactly one of *Location or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Location.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 *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, 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 := &Location{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets information about a location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "networksecurity.projects.locations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name for the location.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Location" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "networksecurity.projects.locations.list": + +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists information about the supported locations for this +// service. +// +// - name: The resource that owns the locations collection, if +// applicable. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": A filter to narrow down +// results to a preferred subset. The filtering language accepts strings +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return. If not set, the service selects a default. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token +// received from the `next_page_token` field in the response. Send that +// page token to receive the subsequent page. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/locations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.projects.locations.list" call. +// Exactly one of *ListLocationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, 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 := &ListLocationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists information about the supported locations for this service.", + // "flatPath": "v1beta1/projects/{projectsId}/locations", + // "httpMethod": "GET", + // "id": "networksecurity.projects.locations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The resource that owns the locations collection, if applicable.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return. If not set, the service selects a default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}/locations", + // "response": { + // "$ref": "ListLocationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "networksecurity.projects.locations.addressGroups.getIamPolicy": + +type ProjectsLocationsAddressGroupsGetIamPolicyCall 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 *ProjectsLocationsAddressGroupsService) GetIamPolicy(resource string) *ProjectsLocationsAddressGroupsGetIamPolicyCall { + c := &ProjectsLocationsAddressGroupsGetIamPolicyCall{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 *ProjectsLocationsAddressGroupsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAddressGroupsGetIamPolicyCall { + 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 information. +func (c *ProjectsLocationsAddressGroupsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsAddressGroupsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAddressGroupsGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsAddressGroupsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsAddressGroupsGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAddressGroupsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.projects.locations.addressGroups.getIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. 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 *ProjectsLocationsAddressGroupsGetIamPolicyCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/addressGroups/{addressGroupsId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "networksecurity.projects.locations.addressGroups.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/[^/]+/addressGroups/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:getIamPolicy", + // "response": { + // "$ref": "GoogleIamV1Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "networksecurity.projects.locations.addressGroups.setIamPolicy": + +type ProjectsLocationsAddressGroupsSetIamPolicyCall 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 *ProjectsLocationsAddressGroupsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsAddressGroupsSetIamPolicyCall { + c := &ProjectsLocationsAddressGroupsSetIamPolicyCall{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 information. +func (c *ProjectsLocationsAddressGroupsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsAddressGroupsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsAddressGroupsSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAddressGroupsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.projects.locations.addressGroups.setIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. 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 *ProjectsLocationsAddressGroupsSetIamPolicyCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/addressGroups/{addressGroupsId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "networksecurity.projects.locations.addressGroups.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/[^/]+/addressGroups/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "GoogleIamV1SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "GoogleIamV1Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "networksecurity.projects.locations.addressGroups.testIamPermissions": + +type ProjectsLocationsAddressGroupsTestIamPermissionsCall 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 *ProjectsLocationsAddressGroupsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsAddressGroupsTestIamPermissionsCall { + c := &ProjectsLocationsAddressGroupsTestIamPermissionsCall{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 information. +func (c *ProjectsLocationsAddressGroupsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsAddressGroupsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsAddressGroupsTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAddressGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.projects.locations.addressGroups.testIamPermissions" call. +// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will +// be non-nil. 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 *ProjectsLocationsAddressGroupsTestIamPermissionsCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/addressGroups/{addressGroupsId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "networksecurity.projects.locations.addressGroups.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/[^/]+/addressGroups/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "GoogleIamV1TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "GoogleIamV1TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + } // method id "networksecurity.projects.locations.authorizationPolicies.create": diff --git a/notebooks/v1/notebooks-api.json b/notebooks/v1/notebooks-api.json index 80a1a08d3bc..45a3dd74764 100644 --- a/notebooks/v1/notebooks-api.json +++ b/notebooks/v1/notebooks-api.json @@ -1904,7 +1904,7 @@ } } }, - "revision": "20221017", + "revision": "20221213", "rootUrl": "https://notebooks.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2042,7 +2042,7 @@ "type": "boolean" }, "gcsBucket": { - "description": "Required. User Cloud Storage bucket location (REQUIRED) ## Must be formatted with path prefix (gs://$GCS_BUCKET) Permissions: User Managed Notebooks: - storage.buckets.writer: Must be given to the project's service account attached to VM. Google Managed Notebooks: - storage.buckets.writer: Must be given to the project's service account or ## user credentials attached to VM depending on authentication mode. Cloud Storage bucket Log file will be written to gs://$GCS_BUCKET/$RELATIVE_PATH/$VM_DATE_$TIME.tar.gz", + "description": "Required. User Cloud Storage bucket location (REQUIRED). Must be formatted with path prefix (`gs://$GCS_BUCKET`). Permissions: User Managed Notebooks: - storage.buckets.writer: Must be given to the project's service account attached to VM. Google Managed Notebooks: - storage.buckets.writer: Must be given to the project's service account or user credentials attached to VM depending on authentication mode. Cloud Storage bucket Log file will be written to `gs://$GCS_BUCKET/$RELATIVE_PATH/$VM_DATE_$TIME.tar.gz`", "type": "string" }, "packetCaptureFlagEnabled": { @@ -2050,7 +2050,7 @@ "type": "boolean" }, "relativePath": { - "description": "Optional. Defines the relative storage path in the Cloud Storage bucket where the diagnostic logs will be written: Default path will be the root directory of the Cloud Storage bucket (gs://$GCS_BUCKET/$DATE_$TIME.tar.gz) Example of full path where Log file will be written: gs://$GCS_BUCKET/$RELATIVE_PATH/", + "description": "Optional. Defines the relative storage path in the Cloud Storage bucket where the diagnostic logs will be written: Default path will be the root directory of the Cloud Storage bucket (`gs://$GCS_BUCKET/$DATE_$TIME.tar.gz`) Example of full path where Log file will be written: `gs://$GCS_BUCKET/$RELATIVE_PATH/`", "type": "string" }, "repairFlagEnabled": { @@ -3564,6 +3564,11 @@ "description": "Output only. Bool indicating whether an newer image is available in an image family.", "readOnly": true, "type": "boolean" + }, + "version": { + "description": "Output only. version of boot image such as M100, from release label of the image.", + "readOnly": true, + "type": "string" } }, "type": "object" diff --git a/notebooks/v1/notebooks-gen.go b/notebooks/v1/notebooks-gen.go index b122c5442a7..f5bdc8ac342 100644 --- a/notebooks/v1/notebooks-gen.go +++ b/notebooks/v1/notebooks-gen.go @@ -501,14 +501,14 @@ type DiagnosticConfig struct { // `/home/jupyter` folder contents CopyHomeFilesFlagEnabled bool `json:"copyHomeFilesFlagEnabled,omitempty"` - // GcsBucket: Required. User Cloud Storage bucket location (REQUIRED) ## - // Must be formatted with path prefix (gs://$GCS_BUCKET) Permissions: + // GcsBucket: Required. User Cloud Storage bucket location (REQUIRED). + // Must be formatted with path prefix (`gs://$GCS_BUCKET`). Permissions: // User Managed Notebooks: - storage.buckets.writer: Must be given to // the project's service account attached to VM. Google Managed // Notebooks: - storage.buckets.writer: Must be given to the project's - // service account or ## user credentials attached to VM depending on + // service account or user credentials attached to VM depending on // authentication mode. Cloud Storage bucket Log file will be written to - // gs://$GCS_BUCKET/$RELATIVE_PATH/$VM_DATE_$TIME.tar.gz + // `gs://$GCS_BUCKET/$RELATIVE_PATH/$VM_DATE_$TIME.tar.gz` GcsBucket string `json:"gcsBucket,omitempty"` // PacketCaptureFlagEnabled: Optional. Enables flag to capture packets @@ -518,8 +518,8 @@ type DiagnosticConfig struct { // RelativePath: Optional. Defines the relative storage path in the // Cloud Storage bucket where the diagnostic logs will be written: // Default path will be the root directory of the Cloud Storage bucket - // (gs://$GCS_BUCKET/$DATE_$TIME.tar.gz) Example of full path where Log - // file will be written: gs://$GCS_BUCKET/$RELATIVE_PATH/ + // (`gs://$GCS_BUCKET/$DATE_$TIME.tar.gz`) Example of full path where + // Log file will be written: `gs://$GCS_BUCKET/$RELATIVE_PATH/` RelativePath string `json:"relativePath,omitempty"` // RepairFlagEnabled: Optional. Enables flag to repair service for @@ -2801,6 +2801,10 @@ type RuntimeSoftwareConfig struct { // available in an image family. Upgradeable bool `json:"upgradeable,omitempty"` + // Version: Output only. version of boot image such as M100, from + // release label of the image. + Version string `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "CustomGpuDriverPath") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/option/internaloption/internaloption.go b/option/internaloption/internaloption.go index 343a5a965eb..cc7ebfe277b 100644 --- a/option/internaloption/internaloption.go +++ b/option/internaloption/internaloption.go @@ -134,3 +134,10 @@ type withCreds google.Credentials func (w *withCreds) Apply(o *internal.DialSettings) { o.InternalCredentials = (*google.Credentials)(w) } + +// EmbeddableAdapter is a no-op option.ClientOption that allow libraries to +// create their own client options by embedding this type into their own +// client-specific option wrapper. See example for usage. +type EmbeddableAdapter struct{} + +func (*EmbeddableAdapter) Apply(_ *internal.DialSettings) {} diff --git a/option/internaloption/internaloption_external_test.go b/option/internaloption/internaloption_external_test.go new file mode 100644 index 00000000000..f5a0a6003c5 --- /dev/null +++ b/option/internaloption/internaloption_external_test.go @@ -0,0 +1,62 @@ +// Copyright 2022 Google LLC. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package internaloption_test + +import ( + "context" + "fmt" + + "google.golang.org/api/option" + "google.golang.org/api/option/internaloption" +) + +type config struct { + i int +} + +type clientSpecificOption interface { + option.ClientOption + ApplyOpt(*config) +} + +func WithFavoriteNumber(i int) option.ClientOption { + return &withFavoriteNumber{i: i} +} + +type withFavoriteNumber struct { + internaloption.EmbeddableAdapter + i int +} + +func (w *withFavoriteNumber) ApplyOpt(c *config) { + c.i = w.i +} + +type Foo struct { + i int +} + +func NewFoo(ctx context.Context, opts ...option.ClientOption) (*Foo, error) { + var conf config + for _, opt := range opts { + if fooOpt, ok := opt.(clientSpecificOption); ok { + fooOpt.ApplyOpt(&conf) + } + } + // Pass options to internals for dialing. All client-specific options will + // be no-ops. + return &Foo{i: conf.i}, nil +} + +func (f *Foo) Number() int { return f.i } + +func ExampleEmbeddableAdapter() { + f, err := NewFoo(context.Background(), WithFavoriteNumber(42)) + if err != nil { + // TODO: handle error + } + fmt.Println(f.Number()) + // Output: 42 +} diff --git a/osconfig/v1/osconfig-api.json b/osconfig/v1/osconfig-api.json index 19737e5fa7a..a18550b750b 100644 --- a/osconfig/v1/osconfig-api.json +++ b/osconfig/v1/osconfig-api.json @@ -1000,7 +1000,7 @@ } } }, - "revision": "20221014", + "revision": "20221218", "rootUrl": "https://osconfig.googleapis.com/", "schemas": { "AptSettings": { @@ -2401,7 +2401,7 @@ "type": "string" }, "script": { - "description": "An inline script. The size of the script is limited to 1024 characters.", + "description": "An inline script. The size of the script is limited to 32KiB.", "type": "string" } }, @@ -2470,7 +2470,7 @@ "id": "OSPolicyResourceFileResource", "properties": { "content": { - "description": "A a file with this content. The size of the content is limited to 1024 characters.", + "description": "A a file with this content. The size of the content is limited to 32KiB.", "type": "string" }, "file": { diff --git a/osconfig/v1/osconfig-gen.go b/osconfig/v1/osconfig-gen.go index b929d01862a..6f859b0bb42 100644 --- a/osconfig/v1/osconfig-gen.go +++ b/osconfig/v1/osconfig-gen.go @@ -2463,8 +2463,7 @@ type OSPolicyResourceExecResourceExec struct { // non-compliant. Output file size is limited to 100K bytes. OutputFilePath string `json:"outputFilePath,omitempty"` - // Script: An inline script. The size of the script is limited to 1024 - // characters. + // Script: An inline script. The size of the script is limited to 32KiB. Script string `json:"script,omitempty"` // ForceSendFields is a list of field names (e.g. "Args") to @@ -2603,7 +2602,7 @@ func (s *OSPolicyResourceFileRemote) MarshalJSON() ([]byte, error) { // file. type OSPolicyResourceFileResource struct { // Content: A a file with this content. The size of the content is - // limited to 1024 characters. + // limited to 32KiB. Content string `json:"content,omitempty"` // File: A remote or local source. diff --git a/osconfig/v1alpha/osconfig-api.json b/osconfig/v1alpha/osconfig-api.json index 035c4e6b770..4ea99998ffc 100644 --- a/osconfig/v1alpha/osconfig-api.json +++ b/osconfig/v1alpha/osconfig-api.json @@ -684,7 +684,7 @@ } } }, - "revision": "20220319", + "revision": "20221218", "rootUrl": "https://osconfig.googleapis.com/", "schemas": { "CVSSv3": { @@ -2100,7 +2100,7 @@ "type": "string" }, "script": { - "description": "An inline script. The size of the script is limited to 1024 characters.", + "description": "An inline script. The size of the script is limited to 32KiB.", "type": "string" } }, @@ -2169,7 +2169,7 @@ "id": "OSPolicyResourceFileResource", "properties": { "content": { - "description": "A a file with this content. The size of the content is limited to 1024 characters.", + "description": "A a file with this content. The size of the content is limited to 32KiB.", "type": "string" }, "file": { diff --git a/osconfig/v1alpha/osconfig-gen.go b/osconfig/v1alpha/osconfig-gen.go index 5271f5516dd..ae9079c1164 100644 --- a/osconfig/v1alpha/osconfig-gen.go +++ b/osconfig/v1alpha/osconfig-gen.go @@ -2421,8 +2421,7 @@ type OSPolicyResourceExecResourceExec struct { // non-compliant. Output file size is limited to 100K bytes. OutputFilePath string `json:"outputFilePath,omitempty"` - // Script: An inline script. The size of the script is limited to 1024 - // characters. + // Script: An inline script. The size of the script is limited to 32KiB. Script string `json:"script,omitempty"` // ForceSendFields is a list of field names (e.g. "Args") to @@ -2561,7 +2560,7 @@ func (s *OSPolicyResourceFileRemote) MarshalJSON() ([]byte, error) { // file. type OSPolicyResourceFileResource struct { // Content: A a file with this content. The size of the content is - // limited to 1024 characters. + // limited to 32KiB. Content string `json:"content,omitempty"` // File: A remote or local source. diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json index 63606b629dc..93a28d7fd72 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json @@ -396,7 +396,7 @@ } } }, - "revision": "20221201", + "revision": "20221212", "rootUrl": "https://paymentsresellersubscription.googleapis.com/", "schemas": { "GoogleCloudPaymentsResellerSubscriptionV1Amount": { @@ -1122,7 +1122,8 @@ "LINE_ITEM_STATE_INACTIVE", "LINE_ITEM_STATE_NEW", "LINE_ITEM_STATE_ACTIVATING", - "LINE_ITEM_STATE_DEACTIVATING" + "LINE_ITEM_STATE_DEACTIVATING", + "LINE_ITEM_STATE_WAITING_TO_DEACTIVATE" ], "enumDescriptions": [ "Unspecified state.", @@ -1130,7 +1131,8 @@ "The line item is in INACTIVE state.", "The line item is new, and is not activated or charged yet.", "The line item is being activated in order to be charged. If a free trial applies to the line item, the line item is pending a prorated charge at the end of the free trial period, as indicated by `line_item_free_trial_end_time`.", - "The line item is being deactivated." + "The line item is being deactivated, and a prorated refund in being processed.", + "The line item is scheduled to be deactivated at the end of the current cycle." ], "readOnly": true, "type": "string" diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go index 7188b43f8e3..7ded7c1946f 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go @@ -1274,7 +1274,9 @@ type GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem struct { // line item is pending a prorated charge at the end of the free trial // period, as indicated by `line_item_free_trial_end_time`. // "LINE_ITEM_STATE_DEACTIVATING" - The line item is being - // deactivated. + // deactivated, and a prorated refund in being processed. + // "LINE_ITEM_STATE_WAITING_TO_DEACTIVATE" - The line item is + // scheduled to be deactivated at the end of the current cycle. State string `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to diff --git a/playintegrity/v1/playintegrity-api.json b/playintegrity/v1/playintegrity-api.json index 8198b75ddca..4fc294ef863 100644 --- a/playintegrity/v1/playintegrity-api.json +++ b/playintegrity/v1/playintegrity-api.json @@ -12,7 +12,7 @@ "baseUrl": "https://playintegrity.googleapis.com/", "batchPath": "batch", "canonicalName": "Play Integrity", - "description": "Play Integrity", + "description": "The Play Integrity API helps you check that you're interacting with your genuine app on a genuine Android device powered by Google Play services. The Play Integrity API has replaced SafetyNet Attestation and Android Device Verification.", "discoveryVersion": "v1", "documentationLink": "https://developer.android.com/google/play/integrity", "fullyEncodeReservedExpansion": true, @@ -138,7 +138,7 @@ } } }, - "revision": "20221031", + "revision": "20221212", "rootUrl": "https://playintegrity.googleapis.com/", "schemas": { "AccountActivity": { diff --git a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-api.json b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-api.json index 109a8f08a4a..3f04c6054c2 100644 --- a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-api.json +++ b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-api.json @@ -2484,7 +2484,7 @@ } } }, - "revision": "20221014", + "revision": "20221221", "rootUrl": "https://prod-tt-sasportal.googleapis.com/", "schemas": { "SasPortalAssignment": { @@ -2514,7 +2514,7 @@ "description": "The frequency range of the channel." }, "score": { - "description": "The channel score, normalized to be in [0,100].", + "description": "The channel score, normalized to be in the range [0,100].", "format": "double", "type": "number" } @@ -2568,7 +2568,7 @@ "type": "string" }, "frns": { - "description": "Output only. The FRNs copied from its direct parent.", + "description": "Output only. The FCC Registration Numbers (FRNs) copied from its direct parent.", "items": { "type": "string" }, @@ -2618,7 +2618,7 @@ "type": "string" }, "grantRangeAllowlists": { - "description": "Only ranges within the allowlists are available for new grants.", + "description": "Only ranges that are within the allowlists are available for new grants.", "items": { "$ref": "SasPortalFrequencyRange" }, @@ -2863,19 +2863,19 @@ "id": "SasPortalDeviceMetadata", "properties": { "antennaModel": { - "description": "If populated, the Antenna Model Pattern to use. Format is: RecordCreatorId:PatternId", + "description": "If populated, the Antenna Model Pattern to use. Format is: `RecordCreatorId:PatternId`", "type": "string" }, "commonChannelGroup": { - "description": "CCG. A group of CBSDs in the same ICG requesting a common primary channel assignment. See CBRSA-TS-2001 V3.0.0 for more details.", + "description": "Common Channel Group (CCG). A group of CBSDs in the same ICG requesting a common primary channel assignment. For more details, see [CBRSA-TS-2001 V3.0.0](https://ongoalliance.org/wp-content/uploads/2020/02/CBRSA-TS-2001-V3.0.0_Approved-for-publication.pdf).", "type": "string" }, "interferenceCoordinationGroup": { - "description": "ICG. A group of CBSDs that manage their own interference with the group. See CBRSA-TS-2001 V3.0.0 for more details.", + "description": "Interference Coordination Group (ICG). A group of CBSDs that manage their own interference with the group. For more details, see [CBRSA-TS-2001 V3.0.0](https://ongoalliance.org/wp-content/uploads/2020/02/CBRSA-TS-2001-V3.0.0_Approved-for-publication.pdf).", "type": "string" }, "nrqzValidated": { - "description": "Output only. Whether a CPI has validated to have coordinated with the National Quiet Zone office.", + "description": "Output only. Set to `true` if a CPI has validated that they have coordinated with the National Quiet Zone office.", "readOnly": true, "type": "boolean" }, @@ -3004,6 +3004,11 @@ "format": "int32", "type": "integer" }, + "antennaGainNewField": { + "description": "As above, but as a DoubleValue.", + "format": "double", + "type": "number" + }, "antennaModel": { "description": "If an external antenna is used, the antenna model is optionally provided in this field. The string has a maximum length of 128 octets.", "type": "string" @@ -3017,6 +3022,11 @@ "format": "int32", "type": "integer" }, + "eirpCapabilityNewField": { + "description": "As above, but as a DoubleValue.", + "format": "double", + "type": "number" + }, "height": { "description": "Device antenna height in meters. When the `heightType` parameter value is \"AGL\", the antenna height should be given relative to ground level. When the `heightType` parameter value is \"AMSL\", it is given with respect to WGS84 datum.", "format": "double", @@ -3195,7 +3205,7 @@ "id": "SasPortalNrqzValidation", "properties": { "caseId": { - "description": "Validation case id.", + "description": "Validation case ID.", "type": "string" }, "cpiId": { @@ -3203,12 +3213,12 @@ "type": "string" }, "latitude": { - "description": "Device latitude associated with the validation.", + "description": "Device latitude that's associated with the validation.", "format": "double", "type": "number" }, "longitude": { - "description": "Device longitude associated with the validation.", + "description": "Device longitude that's associated with the validation.", "format": "double", "type": "number" }, @@ -3288,7 +3298,7 @@ "id": "SasPortalSetPolicyRequest", "properties": { "disableNotification": { - "description": "Optional. Set the field as true when we would like to disable the onboarding notification.", + "description": "Optional. Set the field as `true` to disable the onboarding notification.", "type": "boolean" }, "policy": { diff --git a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go index 36a8a030888..5b9c8f64016 100644 --- a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go +++ b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go @@ -413,7 +413,7 @@ type SasPortalChannelWithScore struct { // FrequencyRange: The frequency range of the channel. FrequencyRange *SasPortalFrequencyRange `json:"frequencyRange,omitempty"` - // Score: The channel score, normalized to be in [0,100]. + // Score: The channel score, normalized to be in the range [0,100]. Score float64 `json:"score,omitempty"` // ForceSendFields is a list of field names (e.g. "FrequencyRange") to @@ -532,7 +532,8 @@ type SasPortalDeployment struct { // DisplayName: The deployment's display name. DisplayName string `json:"displayName,omitempty"` - // Frns: Output only. The FRNs copied from its direct parent. + // Frns: Output only. The FCC Registration Numbers (FRNs) copied from + // its direct parent. Frns []string `json:"frns,omitempty"` // Name: Output only. Resource name. @@ -587,8 +588,8 @@ type SasPortalDevice struct { // FccId: The FCC identifier of the device. FccId string `json:"fccId,omitempty"` - // GrantRangeAllowlists: Only ranges within the allowlists are available - // for new grants. + // GrantRangeAllowlists: Only ranges that are within the allowlists are + // available for new grants. GrantRangeAllowlists []*SasPortalFrequencyRange `json:"grantRangeAllowlists,omitempty"` // Grants: Output only. Grants held by the device. @@ -854,21 +855,23 @@ func (s *SasPortalDeviceGrant) UnmarshalJSON(data []byte) error { // and registration requests. type SasPortalDeviceMetadata struct { // AntennaModel: If populated, the Antenna Model Pattern to use. Format - // is: RecordCreatorId:PatternId + // is: `RecordCreatorId:PatternId` AntennaModel string `json:"antennaModel,omitempty"` - // CommonChannelGroup: CCG. A group of CBSDs in the same ICG requesting - // a common primary channel assignment. See CBRSA-TS-2001 V3.0.0 for - // more details. + // CommonChannelGroup: Common Channel Group (CCG). A group of CBSDs in + // the same ICG requesting a common primary channel assignment. For more + // details, see CBRSA-TS-2001 V3.0.0 + // (https://ongoalliance.org/wp-content/uploads/2020/02/CBRSA-TS-2001-V3.0.0_Approved-for-publication.pdf). CommonChannelGroup string `json:"commonChannelGroup,omitempty"` - // InterferenceCoordinationGroup: ICG. A group of CBSDs that manage - // their own interference with the group. See CBRSA-TS-2001 V3.0.0 for - // more details. + // InterferenceCoordinationGroup: Interference Coordination Group (ICG). + // A group of CBSDs that manage their own interference with the group. + // For more details, see CBRSA-TS-2001 V3.0.0 + // (https://ongoalliance.org/wp-content/uploads/2020/02/CBRSA-TS-2001-V3.0.0_Approved-for-publication.pdf). InterferenceCoordinationGroup string `json:"interferenceCoordinationGroup,omitempty"` - // NrqzValidated: Output only. Whether a CPI has validated to have - // coordinated with the National Quiet Zone office. + // NrqzValidated: Output only. Set to `true` if a CPI has validated that + // they have coordinated with the National Quiet Zone office. NrqzValidated bool `json:"nrqzValidated,omitempty"` // NrqzValidation: Output only. National Radio Quiet Zone validation @@ -1124,6 +1127,9 @@ type SasPortalInstallationParams struct { // with a value between -127 and +128 (dBi) inclusive. AntennaGain int64 `json:"antennaGain,omitempty"` + // AntennaGainNewField: As above, but as a DoubleValue. + AntennaGainNewField float64 `json:"antennaGainNewField,omitempty"` + // AntennaModel: If an external antenna is used, the antenna model is // optionally provided in this field. The string has a maximum length of // 128 octets. @@ -1139,6 +1145,9 @@ type SasPortalInstallationParams struct { // allowable EIRP in units of dBm/10MHz for device category. EirpCapability int64 `json:"eirpCapability,omitempty"` + // EirpCapabilityNewField: As above, but as a DoubleValue. + EirpCapabilityNewField float64 `json:"eirpCapabilityNewField,omitempty"` + // Height: Device antenna height in meters. When the `heightType` // parameter value is "AGL", the antenna height should be given relative // to ground level. When the `heightType` parameter value is "AMSL", it @@ -1210,17 +1219,21 @@ func (s *SasPortalInstallationParams) MarshalJSON() ([]byte, error) { func (s *SasPortalInstallationParams) UnmarshalJSON(data []byte) error { type NoMethod SasPortalInstallationParams var s1 struct { - Height gensupport.JSONFloat64 `json:"height"` - HorizontalAccuracy gensupport.JSONFloat64 `json:"horizontalAccuracy"` - Latitude gensupport.JSONFloat64 `json:"latitude"` - Longitude gensupport.JSONFloat64 `json:"longitude"` - VerticalAccuracy gensupport.JSONFloat64 `json:"verticalAccuracy"` + AntennaGainNewField gensupport.JSONFloat64 `json:"antennaGainNewField"` + EirpCapabilityNewField gensupport.JSONFloat64 `json:"eirpCapabilityNewField"` + Height gensupport.JSONFloat64 `json:"height"` + HorizontalAccuracy gensupport.JSONFloat64 `json:"horizontalAccuracy"` + Latitude gensupport.JSONFloat64 `json:"latitude"` + Longitude gensupport.JSONFloat64 `json:"longitude"` + VerticalAccuracy gensupport.JSONFloat64 `json:"verticalAccuracy"` *NoMethod } s1.NoMethod = (*NoMethod)(s) if err := json.Unmarshal(data, &s1); err != nil { return err } + s.AntennaGainNewField = float64(s1.AntennaGainNewField) + s.EirpCapabilityNewField = float64(s1.EirpCapabilityNewField) s.Height = float64(s1.Height) s.HorizontalAccuracy = float64(s1.HorizontalAccuracy) s.Latitude = float64(s1.Latitude) @@ -1506,16 +1519,16 @@ func (s *SasPortalNode) MarshalJSON() ([]byte, error) { // SasPortalNrqzValidation: Information about National Radio Quiet Zone // validation. type SasPortalNrqzValidation struct { - // CaseId: Validation case id. + // CaseId: Validation case ID. CaseId string `json:"caseId,omitempty"` // CpiId: CPI who signed the validation. CpiId string `json:"cpiId,omitempty"` - // Latitude: Device latitude associated with the validation. + // Latitude: Device latitude that's associated with the validation. Latitude float64 `json:"latitude,omitempty"` - // Longitude: Device longitude associated with the validation. + // Longitude: Device longitude that's associated with the validation. Longitude float64 `json:"longitude,omitempty"` // State: State of the NRQZ validation info. @@ -1672,8 +1685,8 @@ func (s *SasPortalPolicy) MarshalJSON() ([]byte, error) { // SasPortalSetPolicyRequest: Request message for `SetPolicy` method. type SasPortalSetPolicyRequest struct { - // DisableNotification: Optional. Set the field as true when we would - // like to disable the onboarding notification. + // DisableNotification: Optional. Set the field as `true` to disable the + // onboarding notification. DisableNotification bool `json:"disableNotification,omitempty"` // Policy: Required. The policy to be applied to the `resource`. diff --git a/pubsublite/v1/pubsublite-api.json b/pubsublite/v1/pubsublite-api.json index 6bb85efb998..f838d049d14 100644 --- a/pubsublite/v1/pubsublite-api.json +++ b/pubsublite/v1/pubsublite-api.json @@ -1040,7 +1040,7 @@ } } }, - "revision": "20220318", + "revision": "20221206", "rootUrl": "https://pubsublite.googleapis.com/", "schemas": { "CancelOperationRequest": { @@ -1224,6 +1224,58 @@ "properties": {}, "type": "object" }, + "ExportConfig": { + "description": "Configuration for a Pub/Sub Lite subscription that writes messages to a destination. User subscriber clients must not connect to this subscription.", + "id": "ExportConfig", + "properties": { + "currentState": { + "description": "Output only. The current state of the export, which may be different to the desired state due to errors. This field is output only.", + "enum": [ + "STATE_UNSPECIFIED", + "ACTIVE", + "PAUSED", + "PERMISSION_DENIED", + "NOT_FOUND" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "Messages are being exported.", + "Exporting messages is suspended.", + "Messages cannot be exported due to permission denied errors. Output only.", + "Messages cannot be exported due to missing resources. Output only." + ], + "readOnly": true, + "type": "string" + }, + "deadLetterTopic": { + "description": "Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.", + "type": "string" + }, + "desiredState": { + "description": "The desired state of this export. Setting this to values other than `ACTIVE` and `PAUSED` will result in an error.", + "enum": [ + "STATE_UNSPECIFIED", + "ACTIVE", + "PAUSED", + "PERMISSION_DENIED", + "NOT_FOUND" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "Messages are being exported.", + "Exporting messages is suspended.", + "Messages cannot be exported due to permission denied errors. Output only.", + "Messages cannot be exported due to missing resources. Output only." + ], + "type": "string" + }, + "pubsubConfig": { + "$ref": "PubSubConfig", + "description": "Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic." + } + }, + "type": "object" + }, "ListOperationsResponse": { "description": "The response message for Operations.ListOperations.", "id": "ListOperationsResponse", @@ -1447,6 +1499,17 @@ }, "type": "object" }, + "PubSubConfig": { + "description": "Configuration for exporting to a Pub/Sub topic.", + "id": "PubSubConfig", + "properties": { + "topic": { + "description": "The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.", + "type": "string" + } + }, + "type": "object" + }, "Reservation": { "description": "Metadata about a reservation resource.", "id": "Reservation", @@ -1557,6 +1620,10 @@ "$ref": "DeliveryConfig", "description": "The settings for this subscription's message delivery." }, + "exportConfig": { + "$ref": "ExportConfig", + "description": "If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination." + }, "name": { "description": "The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}", "type": "string" diff --git a/pubsublite/v1/pubsublite-gen.go b/pubsublite/v1/pubsublite-gen.go index 5679473c45d..36146d5462e 100644 --- a/pubsublite/v1/pubsublite-gen.go +++ b/pubsublite/v1/pubsublite-gen.go @@ -730,6 +730,74 @@ type Empty struct { googleapi.ServerResponse `json:"-"` } +// ExportConfig: Configuration for a Pub/Sub Lite subscription that +// writes messages to a destination. User subscriber clients must not +// connect to this subscription. +type ExportConfig struct { + // CurrentState: Output only. The current state of the export, which may + // be different to the desired state due to errors. This field is output + // only. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value. This value is unused. + // "ACTIVE" - Messages are being exported. + // "PAUSED" - Exporting messages is suspended. + // "PERMISSION_DENIED" - Messages cannot be exported due to permission + // denied errors. Output only. + // "NOT_FOUND" - Messages cannot be exported due to missing resources. + // Output only. + CurrentState string `json:"currentState,omitempty"` + + // DeadLetterTopic: Optional. The name of an optional Pub/Sub Lite topic + // to publish messages that can not be exported to the destination. For + // example, the message can not be published to the Pub/Sub service + // because it does not satisfy the constraints documented at + // https://cloud.google.com/pubsub/docs/publisher. Structured like: + // projects/{project_number}/locations/{location}/topics/{topic_id}. + // Must be within the same project and location as the subscription. The + // topic may be changed or removed. + DeadLetterTopic string `json:"deadLetterTopic,omitempty"` + + // DesiredState: The desired state of this export. Setting this to + // values other than `ACTIVE` and `PAUSED` will result in an error. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value. This value is unused. + // "ACTIVE" - Messages are being exported. + // "PAUSED" - Exporting messages is suspended. + // "PERMISSION_DENIED" - Messages cannot be exported due to permission + // denied errors. Output only. + // "NOT_FOUND" - Messages cannot be exported due to missing resources. + // Output only. + DesiredState string `json:"desiredState,omitempty"` + + // PubsubConfig: Messages are automatically written from the Pub/Sub + // Lite topic associated with this subscription to a Pub/Sub topic. + PubsubConfig *PubSubConfig `json:"pubsubConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CurrentState") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CurrentState") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ExportConfig) MarshalJSON() ([]byte, error) { + type NoMethod ExportConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListOperationsResponse: The response message for // Operations.ListOperations. type ListOperationsResponse struct { @@ -1171,6 +1239,36 @@ func (s *PartitionCursor) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// PubSubConfig: Configuration for exporting to a Pub/Sub topic. +type PubSubConfig struct { + // Topic: The name of the Pub/Sub topic. Structured like: + // projects/{project_number}/topics/{topic_id}. The topic may be + // changed. + Topic string `json:"topic,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Topic") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Topic") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PubSubConfig) MarshalJSON() ([]byte, error) { + type NoMethod PubSubConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Reservation: Metadata about a reservation resource. type Reservation struct { // Name: The name of the reservation. Structured like: @@ -1377,6 +1475,11 @@ type Subscription struct { // delivery. DeliveryConfig *DeliveryConfig `json:"deliveryConfig,omitempty"` + // ExportConfig: If present, messages are automatically written from the + // Pub/Sub Lite topic associated with this subscription to a + // destination. + ExportConfig *ExportConfig `json:"exportConfig,omitempty"` + // Name: The name of the subscription. Structured like: // projects/{project_number}/locations/{location}/subscriptions/{subscrip // tion_id} diff --git a/recaptchaenterprise/v1/recaptchaenterprise-api.json b/recaptchaenterprise/v1/recaptchaenterprise-api.json index 1cc19c5f96d..555a35844c5 100644 --- a/recaptchaenterprise/v1/recaptchaenterprise-api.json +++ b/recaptchaenterprise/v1/recaptchaenterprise-api.json @@ -514,7 +514,7 @@ } } }, - "revision": "20221204", + "revision": "20221212", "rootUrl": "https://recaptchaenterprise.googleapis.com/", "schemas": { "GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment": { @@ -968,7 +968,7 @@ "id": "GoogleCloudRecaptchaenterpriseV1MigrateKeyRequest", "properties": { "skipBillingCheck": { - "description": "Optional. Whether or not to do billing check. A reCAPTCHA Enterprise or migrated key behaves differently than a reCAPTCHA (non-Enterprise version) key when you reach a quota limit (see https://cloud.google.com/recaptcha-enterprise/quotas#quota_limit). To avoid any disruption of your usage, we check that a billing account is present. If your usage of reCAPTCHA is under the free quota, you can safely skip the billing check and proceed with the migration. See https://cloud.google.com/recaptcha-enterprise/docs/billing-information.", + "description": "Optional. If true, skips the billing check. A reCAPTCHA Enterprise key or migrated key behaves differently than a reCAPTCHA (non-Enterprise version) key when you reach a quota limit (see https://cloud.google.com/recaptcha-enterprise/quotas#quota_limit). To avoid any disruption of your usage, we check that a billing account is present. If your usage of reCAPTCHA is under the free quota, you can safely skip the billing check and proceed with the migration. See https://cloud.google.com/recaptcha-enterprise/docs/billing-information.", "type": "boolean" } }, diff --git a/recaptchaenterprise/v1/recaptchaenterprise-gen.go b/recaptchaenterprise/v1/recaptchaenterprise-gen.go index 93e42dd94b2..ba17dc48894 100644 --- a/recaptchaenterprise/v1/recaptchaenterprise-gen.go +++ b/recaptchaenterprise/v1/recaptchaenterprise-gen.go @@ -918,8 +918,8 @@ func (s *GoogleCloudRecaptchaenterpriseV1Metrics) MarshalJSON() ([]byte, error) // GoogleCloudRecaptchaenterpriseV1MigrateKeyRequest: The migrate key // request message. type GoogleCloudRecaptchaenterpriseV1MigrateKeyRequest struct { - // SkipBillingCheck: Optional. Whether or not to do billing check. A - // reCAPTCHA Enterprise or migrated key behaves differently than a + // SkipBillingCheck: Optional. If true, skips the billing check. A + // reCAPTCHA Enterprise key or migrated key behaves differently than a // reCAPTCHA (non-Enterprise version) key when you reach a quota limit // (see // https://cloud.google.com/recaptcha-enterprise/quotas#quota_limit). To diff --git a/retail/v2/retail-api.json b/retail/v2/retail-api.json index 90e84edb14f..064e54074ba 100644 --- a/retail/v2/retail-api.json +++ b/retail/v2/retail-api.json @@ -1149,7 +1149,7 @@ ], "parameters": { "placement": { - "description": "Required. Full resource name of the format: `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` or `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. We recommend using the `servingConfigs` resource. `placements` is a legacy resource. The ID of the Recommendations AI serving config or placement. Before you can request predictions from your model, you must create at least one serving config or placement for it. For more information, see [Managing serving configurations] (https://cloud.google.com/retail/docs/manage-configs). The full list of available serving configs can be seen at https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs", + "description": "Required. Full resource name of the format: `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` or `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. We recommend using the `servingConfigs` resource. `placements` is a legacy resource. The ID of the Recommendations AI serving config or placement. Before you can request predictions from your model, you must create at least one serving config or placement for it. For more information, see [Manage serving configs] (https://cloud.google.com/retail/docs/manage-configs). The full list of available serving configs can be seen at https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/placements/[^/]+$", "required": true, @@ -1177,7 +1177,7 @@ ], "parameters": { "placement": { - "description": "Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving configuration name and the set of models that will be used to make the search.", + "description": "Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving config name and the set of models that will be used to make the search.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/placements/[^/]+$", "required": true, @@ -1390,7 +1390,7 @@ ], "parameters": { "placement": { - "description": "Required. Full resource name of the format: `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` or `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. We recommend using the `servingConfigs` resource. `placements` is a legacy resource. The ID of the Recommendations AI serving config or placement. Before you can request predictions from your model, you must create at least one serving config or placement for it. For more information, see [Managing serving configurations] (https://cloud.google.com/retail/docs/manage-configs). The full list of available serving configs can be seen at https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs", + "description": "Required. Full resource name of the format: `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` or `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. We recommend using the `servingConfigs` resource. `placements` is a legacy resource. The ID of the Recommendations AI serving config or placement. Before you can request predictions from your model, you must create at least one serving config or placement for it. For more information, see [Manage serving configs] (https://cloud.google.com/retail/docs/manage-configs). The full list of available serving configs can be seen at https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/servingConfigs/[^/]+$", "required": true, @@ -1446,7 +1446,7 @@ ], "parameters": { "placement": { - "description": "Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving configuration name and the set of models that will be used to make the search.", + "description": "Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving config name and the set of models that will be used to make the search.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/servingConfigs/[^/]+$", "required": true, @@ -1618,6 +1618,11 @@ "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "required": true, "type": "string" + }, + "writeAsync": { + "description": "If set to true, the user event will be written asynchronously after validation, and the API will respond without waiting for the write. Therefore, silent failures can occur even if the API returns success. In case of silent failures, error messages can be found in Stackdriver logs.", + "location": "query", + "type": "boolean" } }, "path": "v2/{+parent}/userEvents:write", @@ -1780,7 +1785,7 @@ } } }, - "revision": "20221130", + "revision": "20221214", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -2462,7 +2467,7 @@ "id": "GoogleCloudRetailV2Control", "properties": { "associatedServingConfigIds": { - "description": "Output only. List of serving configuration ids that are associated with this control in the same Catalog. Note the association is managed via the ServingConfig, this is an output only denormalized view.", + "description": "Output only. List of serving config ids that are associated with this control in the same Catalog. Note the association is managed via the ServingConfig, this is an output only denormalized view.", "items": { "type": "string" }, @@ -5010,7 +5015,7 @@ "type": "object" }, "GoogleCloudRetailV2alphaModelPageOptimizationConfig": { - "description": "The PageOptimizationConfig for model training. This determines how many panels to optimize for, and which serving configurations to consider for each panel. The purpose of this model is to optimize which ServingConfig to show on which panels in way that optimizes the visitors shopping journey.", + "description": "The PageOptimizationConfig for model training. This determines how many panels to optimize for, and which serving configs to consider for each panel. The purpose of this model is to optimize which ServingConfig to show on which panels in way that optimizes the visitors shopping journey.", "id": "GoogleCloudRetailV2alphaModelPageOptimizationConfig", "properties": { "pageOptimizationEventType": { diff --git a/retail/v2/retail-gen.go b/retail/v2/retail-gen.go index 814329981e0..b4732500b3e 100644 --- a/retail/v2/retail-gen.go +++ b/retail/v2/retail-gen.go @@ -1590,10 +1590,10 @@ func (s *GoogleCloudRetailV2ConditionTimeRange) MarshalJSON() ([]byte, error) { // linked to a ServingConfig and affect search or recommendation results // at serving time. type GoogleCloudRetailV2Control struct { - // AssociatedServingConfigIds: Output only. List of serving - // configuration ids that are associated with this control in the same - // Catalog. Note the association is managed via the ServingConfig, this - // is an output only denormalized view. + // AssociatedServingConfigIds: Output only. List of serving config ids + // that are associated with this control in the same Catalog. Note the + // association is managed via the ServingConfig, this is an output only + // denormalized view. AssociatedServingConfigIds []string `json:"associatedServingConfigIds,omitempty"` // DisplayName: Required. The human readable control display name. Used @@ -6527,8 +6527,8 @@ func (s *GoogleCloudRetailV2alphaModel) MarshalJSON() ([]byte, error) { // GoogleCloudRetailV2alphaModelPageOptimizationConfig: The // PageOptimizationConfig for model training. This determines how many -// panels to optimize for, and which serving configurations to consider -// for each panel. The purpose of this model is to optimize which +// panels to optimize for, and which serving configs to consider for +// each panel. The purpose of this model is to optimize which // ServingConfig to show on which panels in way that optimizes the // visitors shopping journey. type GoogleCloudRetailV2alphaModelPageOptimizationConfig struct { @@ -13471,10 +13471,9 @@ type ProjectsLocationsCatalogsPlacementsPredictCall struct { // `placements` is a legacy resource. The ID of the Recommendations AI // serving config or placement. Before you can request predictions // from your model, you must create at least one serving config or -// placement for it. For more information, see [Managing serving -// configurations] -// (https://cloud.google.com/retail/docs/manage-configs). The full -// list of available serving configs can be seen at +// placement for it. For more information, see [Manage serving +// configs] (https://cloud.google.com/retail/docs/manage-configs). The +// full list of available serving configs can be seen at // https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs. func (r *ProjectsLocationsCatalogsPlacementsService) Predict(placement string, googlecloudretailv2predictrequest *GoogleCloudRetailV2PredictRequest) *ProjectsLocationsCatalogsPlacementsPredictCall { c := &ProjectsLocationsCatalogsPlacementsPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -13584,7 +13583,7 @@ func (c *ProjectsLocationsCatalogsPlacementsPredictCall) Do(opts ...googleapi.Ca // ], // "parameters": { // "placement": { - // "description": "Required. Full resource name of the format: `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` or `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. We recommend using the `servingConfigs` resource. `placements` is a legacy resource. The ID of the Recommendations AI serving config or placement. Before you can request predictions from your model, you must create at least one serving config or placement for it. For more information, see [Managing serving configurations] (https://cloud.google.com/retail/docs/manage-configs). The full list of available serving configs can be seen at https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs", + // "description": "Required. Full resource name of the format: `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` or `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. We recommend using the `servingConfigs` resource. `placements` is a legacy resource. The ID of the Recommendations AI serving config or placement. Before you can request predictions from your model, you must create at least one serving config or placement for it. For more information, see [Manage serving configs] (https://cloud.google.com/retail/docs/manage-configs). The full list of available serving configs can be seen at https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/placements/[^/]+$", // "required": true, @@ -13626,9 +13625,8 @@ type ProjectsLocationsCatalogsPlacementsSearchCall struct { // /default_serving_config` or the name of the legacy placement // resource, such as // `projects/*/locations/global/catalogs/default_catalog/placements/def -// ault_search`. This field is used to identify the serving -// configuration name and the set of models that will be used to make -// the search. +// ault_search`. This field is used to identify the serving config +// name and the set of models that will be used to make the search. func (r *ProjectsLocationsCatalogsPlacementsService) Search(placement string, googlecloudretailv2searchrequest *GoogleCloudRetailV2SearchRequest) *ProjectsLocationsCatalogsPlacementsSearchCall { c := &ProjectsLocationsCatalogsPlacementsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.placement = placement @@ -13737,7 +13735,7 @@ func (c *ProjectsLocationsCatalogsPlacementsSearchCall) Do(opts ...googleapi.Cal // ], // "parameters": { // "placement": { - // "description": "Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving configuration name and the set of models that will be used to make the search.", + // "description": "Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving config name and the set of models that will be used to make the search.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/placements/[^/]+$", // "required": true, @@ -14750,10 +14748,9 @@ type ProjectsLocationsCatalogsServingConfigsPredictCall struct { // `placements` is a legacy resource. The ID of the Recommendations AI // serving config or placement. Before you can request predictions // from your model, you must create at least one serving config or -// placement for it. For more information, see [Managing serving -// configurations] -// (https://cloud.google.com/retail/docs/manage-configs). The full -// list of available serving configs can be seen at +// placement for it. For more information, see [Manage serving +// configs] (https://cloud.google.com/retail/docs/manage-configs). The +// full list of available serving configs can be seen at // https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs. func (r *ProjectsLocationsCatalogsServingConfigsService) Predict(placement string, googlecloudretailv2predictrequest *GoogleCloudRetailV2PredictRequest) *ProjectsLocationsCatalogsServingConfigsPredictCall { c := &ProjectsLocationsCatalogsServingConfigsPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -14863,7 +14860,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsPredictCall) Do(opts ...googleap // ], // "parameters": { // "placement": { - // "description": "Required. Full resource name of the format: `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` or `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. We recommend using the `servingConfigs` resource. `placements` is a legacy resource. The ID of the Recommendations AI serving config or placement. Before you can request predictions from your model, you must create at least one serving config or placement for it. For more information, see [Managing serving configurations] (https://cloud.google.com/retail/docs/manage-configs). The full list of available serving configs can be seen at https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs", + // "description": "Required. Full resource name of the format: `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` or `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. We recommend using the `servingConfigs` resource. `placements` is a legacy resource. The ID of the Recommendations AI serving config or placement. Before you can request predictions from your model, you must create at least one serving config or placement for it. For more information, see [Manage serving configs] (https://cloud.google.com/retail/docs/manage-configs). The full list of available serving configs can be seen at https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/servingConfigs/[^/]+$", // "required": true, @@ -15051,9 +15048,8 @@ type ProjectsLocationsCatalogsServingConfigsSearchCall struct { // /default_serving_config` or the name of the legacy placement // resource, such as // `projects/*/locations/global/catalogs/default_catalog/placements/def -// ault_search`. This field is used to identify the serving -// configuration name and the set of models that will be used to make -// the search. +// ault_search`. This field is used to identify the serving config +// name and the set of models that will be used to make the search. func (r *ProjectsLocationsCatalogsServingConfigsService) Search(placement string, googlecloudretailv2searchrequest *GoogleCloudRetailV2SearchRequest) *ProjectsLocationsCatalogsServingConfigsSearchCall { c := &ProjectsLocationsCatalogsServingConfigsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.placement = placement @@ -15162,7 +15158,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsSearchCall) Do(opts ...googleapi // ], // "parameters": { // "placement": { - // "description": "Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving configuration name and the set of models that will be used to make the search.", + // "description": "Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving config name and the set of models that will be used to make the search.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/servingConfigs/[^/]+$", // "required": true, @@ -15889,6 +15885,16 @@ func (r *ProjectsLocationsCatalogsUserEventsService) Write(parent string, google return c } +// WriteAsync sets the optional parameter "writeAsync": If set to true, +// the user event will be written asynchronously after validation, and +// the API will respond without waiting for the write. Therefore, silent +// failures can occur even if the API returns success. In case of silent +// failures, error messages can be found in Stackdriver logs. +func (c *ProjectsLocationsCatalogsUserEventsWriteCall) WriteAsync(writeAsync bool) *ProjectsLocationsCatalogsUserEventsWriteCall { + c.urlParams_.Set("writeAsync", fmt.Sprint(writeAsync)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -15994,6 +16000,11 @@ func (c *ProjectsLocationsCatalogsUserEventsWriteCall) Do(opts ...googleapi.Call // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", // "required": true, // "type": "string" + // }, + // "writeAsync": { + // "description": "If set to true, the user event will be written asynchronously after validation, and the API will respond without waiting for the write. Therefore, silent failures can occur even if the API returns success. In case of silent failures, error messages can be found in Stackdriver logs.", + // "location": "query", + // "type": "boolean" // } // }, // "path": "v2/{+parent}/userEvents:write", diff --git a/retail/v2alpha/retail-api.json b/retail/v2alpha/retail-api.json index e4118a6d5b5..2d7078e9b86 100644 --- a/retail/v2alpha/retail-api.json +++ b/retail/v2alpha/retail-api.json @@ -1464,7 +1464,7 @@ ], "parameters": { "placement": { - "description": "Required. Full resource name of the format: `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` or `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. We recommend using the `servingConfigs` resource. `placements` is a legacy resource. The ID of the Recommendations AI serving config or placement. Before you can request predictions from your model, you must create at least one serving config or placement for it. For more information, see [Managing serving configurations] (https://cloud.google.com/retail/docs/manage-configs). The full list of available serving configs can be seen at https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs", + "description": "Required. Full resource name of the format: `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` or `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. We recommend using the `servingConfigs` resource. `placements` is a legacy resource. The ID of the Recommendations AI serving config or placement. Before you can request predictions from your model, you must create at least one serving config or placement for it. For more information, see [Manage serving configs] (https://cloud.google.com/retail/docs/manage-configs). The full list of available serving configs can be seen at https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/placements/[^/]+$", "required": true, @@ -1492,7 +1492,7 @@ ], "parameters": { "placement": { - "description": "Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving configuration name and the set of models that will be used to make the search.", + "description": "Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving config name and the set of models that will be used to make the search.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/placements/[^/]+$", "required": true, @@ -1705,7 +1705,7 @@ ], "parameters": { "placement": { - "description": "Required. Full resource name of the format: `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` or `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. We recommend using the `servingConfigs` resource. `placements` is a legacy resource. The ID of the Recommendations AI serving config or placement. Before you can request predictions from your model, you must create at least one serving config or placement for it. For more information, see [Managing serving configurations] (https://cloud.google.com/retail/docs/manage-configs). The full list of available serving configs can be seen at https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs", + "description": "Required. Full resource name of the format: `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` or `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. We recommend using the `servingConfigs` resource. `placements` is a legacy resource. The ID of the Recommendations AI serving config or placement. Before you can request predictions from your model, you must create at least one serving config or placement for it. For more information, see [Manage serving configs] (https://cloud.google.com/retail/docs/manage-configs). The full list of available serving configs can be seen at https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/servingConfigs/[^/]+$", "required": true, @@ -1761,7 +1761,7 @@ ], "parameters": { "placement": { - "description": "Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving configuration name and the set of models that will be used to make the search.", + "description": "Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving config name and the set of models that will be used to make the search.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/servingConfigs/[^/]+$", "required": true, @@ -1933,6 +1933,11 @@ "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "required": true, "type": "string" + }, + "writeAsync": { + "description": "If set to true, the user event will be written asynchronously after validation, and the API will respond without waiting for the write. Therefore, silent failures can occur even if the API returns success. In case of silent failures, error messages can be found in Stackdriver logs.", + "location": "query", + "type": "boolean" } }, "path": "v2alpha/{+parent}/userEvents:write", @@ -2095,7 +2100,7 @@ } } }, - "revision": "20221130", + "revision": "20221214", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -3079,7 +3084,7 @@ "id": "GoogleCloudRetailV2alphaControl", "properties": { "associatedServingConfigIds": { - "description": "Output only. List of serving configuration ids that are associated with this control in the same Catalog. Note the association is managed via the ServingConfig, this is an output only denormalized view.", + "description": "Output only. List of serving config ids that are associated with this control in the same Catalog. Note the association is managed via the ServingConfig, this is an output only denormalized view.", "items": { "type": "string" }, @@ -3874,7 +3879,7 @@ "type": "object" }, "GoogleCloudRetailV2alphaModelPageOptimizationConfig": { - "description": "The PageOptimizationConfig for model training. This determines how many panels to optimize for, and which serving configurations to consider for each panel. The purpose of this model is to optimize which ServingConfig to show on which panels in way that optimizes the visitors shopping journey.", + "description": "The PageOptimizationConfig for model training. This determines how many panels to optimize for, and which serving configs to consider for each panel. The purpose of this model is to optimize which ServingConfig to show on which panels in way that optimizes the visitors shopping journey.", "id": "GoogleCloudRetailV2alphaModelPageOptimizationConfig", "properties": { "pageOptimizationEventType": { diff --git a/retail/v2alpha/retail-gen.go b/retail/v2alpha/retail-gen.go index cb1ed21ad8d..0edf2bc782b 100644 --- a/retail/v2alpha/retail-gen.go +++ b/retail/v2alpha/retail-gen.go @@ -2169,10 +2169,10 @@ func (s *GoogleCloudRetailV2alphaConditionTimeRange) MarshalJSON() ([]byte, erro // be linked to a ServingConfig and affect search or recommendation // results at serving time. type GoogleCloudRetailV2alphaControl struct { - // AssociatedServingConfigIds: Output only. List of serving - // configuration ids that are associated with this control in the same - // Catalog. Note the association is managed via the ServingConfig, this - // is an output only denormalized view. + // AssociatedServingConfigIds: Output only. List of serving config ids + // that are associated with this control in the same Catalog. Note the + // association is managed via the ServingConfig, this is an output only + // denormalized view. AssociatedServingConfigIds []string `json:"associatedServingConfigIds,omitempty"` // DisplayName: Required. The human readable control display name. Used @@ -3650,8 +3650,8 @@ func (s *GoogleCloudRetailV2alphaModel) MarshalJSON() ([]byte, error) { // GoogleCloudRetailV2alphaModelPageOptimizationConfig: The // PageOptimizationConfig for model training. This determines how many -// panels to optimize for, and which serving configurations to consider -// for each panel. The purpose of this model is to optimize which +// panels to optimize for, and which serving configs to consider for +// each panel. The purpose of this model is to optimize which // ServingConfig to show on which panels in way that optimizes the // visitors shopping journey. type GoogleCloudRetailV2alphaModelPageOptimizationConfig struct { @@ -15491,10 +15491,9 @@ type ProjectsLocationsCatalogsPlacementsPredictCall struct { // `placements` is a legacy resource. The ID of the Recommendations AI // serving config or placement. Before you can request predictions // from your model, you must create at least one serving config or -// placement for it. For more information, see [Managing serving -// configurations] -// (https://cloud.google.com/retail/docs/manage-configs). The full -// list of available serving configs can be seen at +// placement for it. For more information, see [Manage serving +// configs] (https://cloud.google.com/retail/docs/manage-configs). The +// full list of available serving configs can be seen at // https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs. func (r *ProjectsLocationsCatalogsPlacementsService) Predict(placement string, googlecloudretailv2alphapredictrequest *GoogleCloudRetailV2alphaPredictRequest) *ProjectsLocationsCatalogsPlacementsPredictCall { c := &ProjectsLocationsCatalogsPlacementsPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -15604,7 +15603,7 @@ func (c *ProjectsLocationsCatalogsPlacementsPredictCall) Do(opts ...googleapi.Ca // ], // "parameters": { // "placement": { - // "description": "Required. Full resource name of the format: `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` or `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. We recommend using the `servingConfigs` resource. `placements` is a legacy resource. The ID of the Recommendations AI serving config or placement. Before you can request predictions from your model, you must create at least one serving config or placement for it. For more information, see [Managing serving configurations] (https://cloud.google.com/retail/docs/manage-configs). The full list of available serving configs can be seen at https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs", + // "description": "Required. Full resource name of the format: `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` or `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. We recommend using the `servingConfigs` resource. `placements` is a legacy resource. The ID of the Recommendations AI serving config or placement. Before you can request predictions from your model, you must create at least one serving config or placement for it. For more information, see [Manage serving configs] (https://cloud.google.com/retail/docs/manage-configs). The full list of available serving configs can be seen at https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/placements/[^/]+$", // "required": true, @@ -15646,9 +15645,8 @@ type ProjectsLocationsCatalogsPlacementsSearchCall struct { // /default_serving_config` or the name of the legacy placement // resource, such as // `projects/*/locations/global/catalogs/default_catalog/placements/def -// ault_search`. This field is used to identify the serving -// configuration name and the set of models that will be used to make -// the search. +// ault_search`. This field is used to identify the serving config +// name and the set of models that will be used to make the search. func (r *ProjectsLocationsCatalogsPlacementsService) Search(placement string, googlecloudretailv2alphasearchrequest *GoogleCloudRetailV2alphaSearchRequest) *ProjectsLocationsCatalogsPlacementsSearchCall { c := &ProjectsLocationsCatalogsPlacementsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.placement = placement @@ -15757,7 +15755,7 @@ func (c *ProjectsLocationsCatalogsPlacementsSearchCall) Do(opts ...googleapi.Cal // ], // "parameters": { // "placement": { - // "description": "Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving configuration name and the set of models that will be used to make the search.", + // "description": "Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving config name and the set of models that will be used to make the search.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/placements/[^/]+$", // "required": true, @@ -16774,10 +16772,9 @@ type ProjectsLocationsCatalogsServingConfigsPredictCall struct { // `placements` is a legacy resource. The ID of the Recommendations AI // serving config or placement. Before you can request predictions // from your model, you must create at least one serving config or -// placement for it. For more information, see [Managing serving -// configurations] -// (https://cloud.google.com/retail/docs/manage-configs). The full -// list of available serving configs can be seen at +// placement for it. For more information, see [Manage serving +// configs] (https://cloud.google.com/retail/docs/manage-configs). The +// full list of available serving configs can be seen at // https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs. func (r *ProjectsLocationsCatalogsServingConfigsService) Predict(placement string, googlecloudretailv2alphapredictrequest *GoogleCloudRetailV2alphaPredictRequest) *ProjectsLocationsCatalogsServingConfigsPredictCall { c := &ProjectsLocationsCatalogsServingConfigsPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -16887,7 +16884,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsPredictCall) Do(opts ...googleap // ], // "parameters": { // "placement": { - // "description": "Required. Full resource name of the format: `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` or `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. We recommend using the `servingConfigs` resource. `placements` is a legacy resource. The ID of the Recommendations AI serving config or placement. Before you can request predictions from your model, you must create at least one serving config or placement for it. For more information, see [Managing serving configurations] (https://cloud.google.com/retail/docs/manage-configs). The full list of available serving configs can be seen at https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs", + // "description": "Required. Full resource name of the format: `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` or `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. We recommend using the `servingConfigs` resource. `placements` is a legacy resource. The ID of the Recommendations AI serving config or placement. Before you can request predictions from your model, you must create at least one serving config or placement for it. For more information, see [Manage serving configs] (https://cloud.google.com/retail/docs/manage-configs). The full list of available serving configs can be seen at https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/servingConfigs/[^/]+$", // "required": true, @@ -17076,9 +17073,8 @@ type ProjectsLocationsCatalogsServingConfigsSearchCall struct { // /default_serving_config` or the name of the legacy placement // resource, such as // `projects/*/locations/global/catalogs/default_catalog/placements/def -// ault_search`. This field is used to identify the serving -// configuration name and the set of models that will be used to make -// the search. +// ault_search`. This field is used to identify the serving config +// name and the set of models that will be used to make the search. func (r *ProjectsLocationsCatalogsServingConfigsService) Search(placement string, googlecloudretailv2alphasearchrequest *GoogleCloudRetailV2alphaSearchRequest) *ProjectsLocationsCatalogsServingConfigsSearchCall { c := &ProjectsLocationsCatalogsServingConfigsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.placement = placement @@ -17187,7 +17183,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsSearchCall) Do(opts ...googleapi // ], // "parameters": { // "placement": { - // "description": "Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving configuration name and the set of models that will be used to make the search.", + // "description": "Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving config name and the set of models that will be used to make the search.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/servingConfigs/[^/]+$", // "required": true, @@ -17914,6 +17910,16 @@ func (r *ProjectsLocationsCatalogsUserEventsService) Write(parent string, google return c } +// WriteAsync sets the optional parameter "writeAsync": If set to true, +// the user event will be written asynchronously after validation, and +// the API will respond without waiting for the write. Therefore, silent +// failures can occur even if the API returns success. In case of silent +// failures, error messages can be found in Stackdriver logs. +func (c *ProjectsLocationsCatalogsUserEventsWriteCall) WriteAsync(writeAsync bool) *ProjectsLocationsCatalogsUserEventsWriteCall { + c.urlParams_.Set("writeAsync", fmt.Sprint(writeAsync)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -18020,6 +18026,11 @@ func (c *ProjectsLocationsCatalogsUserEventsWriteCall) Do(opts ...googleapi.Call // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", // "required": true, // "type": "string" + // }, + // "writeAsync": { + // "description": "If set to true, the user event will be written asynchronously after validation, and the API will respond without waiting for the write. Therefore, silent failures can occur even if the API returns success. In case of silent failures, error messages can be found in Stackdriver logs.", + // "location": "query", + // "type": "boolean" // } // }, // "path": "v2alpha/{+parent}/userEvents:write", diff --git a/retail/v2beta/retail-api.json b/retail/v2beta/retail-api.json index 9169e0cd2ed..c062a3484be 100644 --- a/retail/v2beta/retail-api.json +++ b/retail/v2beta/retail-api.json @@ -1393,7 +1393,7 @@ ], "parameters": { "placement": { - "description": "Required. Full resource name of the format: `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` or `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. We recommend using the `servingConfigs` resource. `placements` is a legacy resource. The ID of the Recommendations AI serving config or placement. Before you can request predictions from your model, you must create at least one serving config or placement for it. For more information, see [Managing serving configurations] (https://cloud.google.com/retail/docs/manage-configs). The full list of available serving configs can be seen at https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs", + "description": "Required. Full resource name of the format: `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` or `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. We recommend using the `servingConfigs` resource. `placements` is a legacy resource. The ID of the Recommendations AI serving config or placement. Before you can request predictions from your model, you must create at least one serving config or placement for it. For more information, see [Manage serving configs] (https://cloud.google.com/retail/docs/manage-configs). The full list of available serving configs can be seen at https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/placements/[^/]+$", "required": true, @@ -1421,7 +1421,7 @@ ], "parameters": { "placement": { - "description": "Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving configuration name and the set of models that will be used to make the search.", + "description": "Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving config name and the set of models that will be used to make the search.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/placements/[^/]+$", "required": true, @@ -1634,7 +1634,7 @@ ], "parameters": { "placement": { - "description": "Required. Full resource name of the format: `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` or `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. We recommend using the `servingConfigs` resource. `placements` is a legacy resource. The ID of the Recommendations AI serving config or placement. Before you can request predictions from your model, you must create at least one serving config or placement for it. For more information, see [Managing serving configurations] (https://cloud.google.com/retail/docs/manage-configs). The full list of available serving configs can be seen at https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs", + "description": "Required. Full resource name of the format: `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` or `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. We recommend using the `servingConfigs` resource. `placements` is a legacy resource. The ID of the Recommendations AI serving config or placement. Before you can request predictions from your model, you must create at least one serving config or placement for it. For more information, see [Manage serving configs] (https://cloud.google.com/retail/docs/manage-configs). The full list of available serving configs can be seen at https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/servingConfigs/[^/]+$", "required": true, @@ -1690,7 +1690,7 @@ ], "parameters": { "placement": { - "description": "Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving configuration name and the set of models that will be used to make the search.", + "description": "Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving config name and the set of models that will be used to make the search.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/servingConfigs/[^/]+$", "required": true, @@ -1862,6 +1862,11 @@ "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "required": true, "type": "string" + }, + "writeAsync": { + "description": "If set to true, the user event will be written asynchronously after validation, and the API will respond without waiting for the write. Therefore, silent failures can occur even if the API returns success. In case of silent failures, error messages can be found in Stackdriver logs.", + "location": "query", + "type": "boolean" } }, "path": "v2beta/{+parent}/userEvents:write", @@ -2024,7 +2029,7 @@ } } }, - "revision": "20221130", + "revision": "20221214", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -2762,7 +2767,7 @@ "type": "object" }, "GoogleCloudRetailV2alphaModelPageOptimizationConfig": { - "description": "The PageOptimizationConfig for model training. This determines how many panels to optimize for, and which serving configurations to consider for each panel. The purpose of this model is to optimize which ServingConfig to show on which panels in way that optimizes the visitors shopping journey.", + "description": "The PageOptimizationConfig for model training. This determines how many panels to optimize for, and which serving configs to consider for each panel. The purpose of this model is to optimize which ServingConfig to show on which panels in way that optimizes the visitors shopping journey.", "id": "GoogleCloudRetailV2alphaModelPageOptimizationConfig", "properties": { "pageOptimizationEventType": { @@ -3631,7 +3636,7 @@ "id": "GoogleCloudRetailV2betaControl", "properties": { "associatedServingConfigIds": { - "description": "Output only. List of serving configuration ids that are associated with this control in the same Catalog. Note the association is managed via the ServingConfig, this is an output only denormalized view.", + "description": "Output only. List of serving config ids that are associated with this control in the same Catalog. Note the association is managed via the ServingConfig, this is an output only denormalized view.", "items": { "type": "string" }, diff --git a/retail/v2beta/retail-gen.go b/retail/v2beta/retail-gen.go index 66abd7f92bd..6826973e245 100644 --- a/retail/v2beta/retail-gen.go +++ b/retail/v2beta/retail-gen.go @@ -1623,8 +1623,8 @@ func (s *GoogleCloudRetailV2alphaModel) MarshalJSON() ([]byte, error) { // GoogleCloudRetailV2alphaModelPageOptimizationConfig: The // PageOptimizationConfig for model training. This determines how many -// panels to optimize for, and which serving configurations to consider -// for each panel. The purpose of this model is to optimize which +// panels to optimize for, and which serving configs to consider for +// each panel. The purpose of this model is to optimize which // ServingConfig to show on which panels in way that optimizes the // visitors shopping journey. type GoogleCloudRetailV2alphaModelPageOptimizationConfig struct { @@ -3288,10 +3288,10 @@ func (s *GoogleCloudRetailV2betaConditionTimeRange) MarshalJSON() ([]byte, error // be linked to a ServingConfig and affect search or recommendation // results at serving time. type GoogleCloudRetailV2betaControl struct { - // AssociatedServingConfigIds: Output only. List of serving - // configuration ids that are associated with this control in the same - // Catalog. Note the association is managed via the ServingConfig, this - // is an output only denormalized view. + // AssociatedServingConfigIds: Output only. List of serving config ids + // that are associated with this control in the same Catalog. Note the + // association is managed via the ServingConfig, this is an output only + // denormalized view. AssociatedServingConfigIds []string `json:"associatedServingConfigIds,omitempty"` // DisplayName: Required. The human readable control display name. Used @@ -15017,10 +15017,9 @@ type ProjectsLocationsCatalogsPlacementsPredictCall struct { // `placements` is a legacy resource. The ID of the Recommendations AI // serving config or placement. Before you can request predictions // from your model, you must create at least one serving config or -// placement for it. For more information, see [Managing serving -// configurations] -// (https://cloud.google.com/retail/docs/manage-configs). The full -// list of available serving configs can be seen at +// placement for it. For more information, see [Manage serving +// configs] (https://cloud.google.com/retail/docs/manage-configs). The +// full list of available serving configs can be seen at // https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs. func (r *ProjectsLocationsCatalogsPlacementsService) Predict(placement string, googlecloudretailv2betapredictrequest *GoogleCloudRetailV2betaPredictRequest) *ProjectsLocationsCatalogsPlacementsPredictCall { c := &ProjectsLocationsCatalogsPlacementsPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -15130,7 +15129,7 @@ func (c *ProjectsLocationsCatalogsPlacementsPredictCall) Do(opts ...googleapi.Ca // ], // "parameters": { // "placement": { - // "description": "Required. Full resource name of the format: `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` or `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. We recommend using the `servingConfigs` resource. `placements` is a legacy resource. The ID of the Recommendations AI serving config or placement. Before you can request predictions from your model, you must create at least one serving config or placement for it. For more information, see [Managing serving configurations] (https://cloud.google.com/retail/docs/manage-configs). The full list of available serving configs can be seen at https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs", + // "description": "Required. Full resource name of the format: `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` or `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. We recommend using the `servingConfigs` resource. `placements` is a legacy resource. The ID of the Recommendations AI serving config or placement. Before you can request predictions from your model, you must create at least one serving config or placement for it. For more information, see [Manage serving configs] (https://cloud.google.com/retail/docs/manage-configs). The full list of available serving configs can be seen at https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/placements/[^/]+$", // "required": true, @@ -15172,9 +15171,8 @@ type ProjectsLocationsCatalogsPlacementsSearchCall struct { // /default_serving_config` or the name of the legacy placement // resource, such as // `projects/*/locations/global/catalogs/default_catalog/placements/def -// ault_search`. This field is used to identify the serving -// configuration name and the set of models that will be used to make -// the search. +// ault_search`. This field is used to identify the serving config +// name and the set of models that will be used to make the search. func (r *ProjectsLocationsCatalogsPlacementsService) Search(placement string, googlecloudretailv2betasearchrequest *GoogleCloudRetailV2betaSearchRequest) *ProjectsLocationsCatalogsPlacementsSearchCall { c := &ProjectsLocationsCatalogsPlacementsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.placement = placement @@ -15283,7 +15281,7 @@ func (c *ProjectsLocationsCatalogsPlacementsSearchCall) Do(opts ...googleapi.Cal // ], // "parameters": { // "placement": { - // "description": "Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving configuration name and the set of models that will be used to make the search.", + // "description": "Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving config name and the set of models that will be used to make the search.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/placements/[^/]+$", // "required": true, @@ -16300,10 +16298,9 @@ type ProjectsLocationsCatalogsServingConfigsPredictCall struct { // `placements` is a legacy resource. The ID of the Recommendations AI // serving config or placement. Before you can request predictions // from your model, you must create at least one serving config or -// placement for it. For more information, see [Managing serving -// configurations] -// (https://cloud.google.com/retail/docs/manage-configs). The full -// list of available serving configs can be seen at +// placement for it. For more information, see [Manage serving +// configs] (https://cloud.google.com/retail/docs/manage-configs). The +// full list of available serving configs can be seen at // https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs. func (r *ProjectsLocationsCatalogsServingConfigsService) Predict(placement string, googlecloudretailv2betapredictrequest *GoogleCloudRetailV2betaPredictRequest) *ProjectsLocationsCatalogsServingConfigsPredictCall { c := &ProjectsLocationsCatalogsServingConfigsPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -16413,7 +16410,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsPredictCall) Do(opts ...googleap // ], // "parameters": { // "placement": { - // "description": "Required. Full resource name of the format: `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` or `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. We recommend using the `servingConfigs` resource. `placements` is a legacy resource. The ID of the Recommendations AI serving config or placement. Before you can request predictions from your model, you must create at least one serving config or placement for it. For more information, see [Managing serving configurations] (https://cloud.google.com/retail/docs/manage-configs). The full list of available serving configs can be seen at https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs", + // "description": "Required. Full resource name of the format: `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` or `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. We recommend using the `servingConfigs` resource. `placements` is a legacy resource. The ID of the Recommendations AI serving config or placement. Before you can request predictions from your model, you must create at least one serving config or placement for it. For more information, see [Manage serving configs] (https://cloud.google.com/retail/docs/manage-configs). The full list of available serving configs can be seen at https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/servingConfigs/[^/]+$", // "required": true, @@ -16602,9 +16599,8 @@ type ProjectsLocationsCatalogsServingConfigsSearchCall struct { // /default_serving_config` or the name of the legacy placement // resource, such as // `projects/*/locations/global/catalogs/default_catalog/placements/def -// ault_search`. This field is used to identify the serving -// configuration name and the set of models that will be used to make -// the search. +// ault_search`. This field is used to identify the serving config +// name and the set of models that will be used to make the search. func (r *ProjectsLocationsCatalogsServingConfigsService) Search(placement string, googlecloudretailv2betasearchrequest *GoogleCloudRetailV2betaSearchRequest) *ProjectsLocationsCatalogsServingConfigsSearchCall { c := &ProjectsLocationsCatalogsServingConfigsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.placement = placement @@ -16713,7 +16709,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsSearchCall) Do(opts ...googleapi // ], // "parameters": { // "placement": { - // "description": "Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving configuration name and the set of models that will be used to make the search.", + // "description": "Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving config name and the set of models that will be used to make the search.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/servingConfigs/[^/]+$", // "required": true, @@ -17440,6 +17436,16 @@ func (r *ProjectsLocationsCatalogsUserEventsService) Write(parent string, google return c } +// WriteAsync sets the optional parameter "writeAsync": If set to true, +// the user event will be written asynchronously after validation, and +// the API will respond without waiting for the write. Therefore, silent +// failures can occur even if the API returns success. In case of silent +// failures, error messages can be found in Stackdriver logs. +func (c *ProjectsLocationsCatalogsUserEventsWriteCall) WriteAsync(writeAsync bool) *ProjectsLocationsCatalogsUserEventsWriteCall { + c.urlParams_.Set("writeAsync", fmt.Sprint(writeAsync)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -17545,6 +17551,11 @@ func (c *ProjectsLocationsCatalogsUserEventsWriteCall) Do(opts ...googleapi.Call // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", // "required": true, // "type": "string" + // }, + // "writeAsync": { + // "description": "If set to true, the user event will be written asynchronously after validation, and the API will respond without waiting for the write. Therefore, silent failures can occur even if the API returns success. In case of silent failures, error messages can be found in Stackdriver logs.", + // "location": "query", + // "type": "boolean" // } // }, // "path": "v2beta/{+parent}/userEvents:write", diff --git a/run/v1/run-api.json b/run/v1/run-api.json index 786c591aee4..aa2b453f146 100644 --- a/run/v1/run-api.json +++ b/run/v1/run-api.json @@ -2289,7 +2289,7 @@ } } }, - "revision": "20221129", + "revision": "20221213", "rootUrl": "https://run.googleapis.com/", "schemas": { "Addressable": { @@ -2546,7 +2546,7 @@ "type": "array" }, "env": { - "description": "List of environment variables to set in the container.", + "description": "List of environment variables to set in the container. EnvVar with duplicate names are generally allowed; if referencing a secret, the name must be unique for the container. For non-secret EnvVar names, the Container will only get the last-declared one.", "items": { "$ref": "EnvVar" }, @@ -2572,7 +2572,7 @@ "description": "Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" }, "name": { - "description": "Name of the container specified as a DNS_LABEL. Currently unused in Cloud Run. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-label-names", + "description": "Name of the container specified as a DNS_LABEL (RFC 1123). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-label-names", "type": "string" }, "ports": { diff --git a/run/v1/run-gen.go b/run/v1/run-gen.go index fd654e78959..88387539c0c 100644 --- a/run/v1/run-gen.go +++ b/run/v1/run-gen.go @@ -905,7 +905,10 @@ type Container struct { // references are not supported in Cloud Run. Command []string `json:"command,omitempty"` - // Env: List of environment variables to set in the container. + // Env: List of environment variables to set in the container. EnvVar + // with duplicate names are generally allowed; if referencing a secret, + // the name must be unique for the container. For non-secret EnvVar + // names, the Container will only get the last-declared one. Env []*EnvVar `json:"env,omitempty"` // EnvFrom: Not supported by Cloud Run. @@ -927,8 +930,8 @@ type Container struct { // https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes LivenessProbe *Probe `json:"livenessProbe,omitempty"` - // Name: Name of the container specified as a DNS_LABEL. Currently - // unused in Cloud Run. More info: + // Name: Name of the container specified as a DNS_LABEL (RFC 1123). More + // info: // https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-label-names Name string `json:"name,omitempty"` diff --git a/run/v2/run-api.json b/run/v2/run-api.json index 1d6d615917e..536b33932ce 100644 --- a/run/v2/run-api.json +++ b/run/v2/run-api.json @@ -1059,7 +1059,7 @@ } } }, - "revision": "20221129", + "revision": "20221213", "rootUrl": "https://run.googleapis.com/", "schemas": { "GoogleCloudRunV2BinaryAuthorization": { @@ -1078,7 +1078,7 @@ "type": "object" }, "GoogleCloudRunV2CloudSqlInstance": { - "description": "Represents a specific Cloud SQL instance.", + "description": "Represents a set of Cloud SQL instances. Each one will be available under /cloudsql/[instance]. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run.", "id": "GoogleCloudRunV2CloudSqlInstance", "properties": { "instances": { @@ -1267,7 +1267,7 @@ "description": "Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" }, "name": { - "description": "Name of the container specified as a DNS_LABEL.", + "description": "Name of the container specified as a DNS_LABEL (RFC 1123).", "type": "string" }, "ports": { @@ -1950,6 +1950,25 @@ "description": "A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek", "type": "string" }, + "encryptionKeyRevocationAction": { + "description": "The action to take if the encryption key is revoked.", + "enum": [ + "ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED", + "PREVENT_NEW", + "SHUTDOWN" + ], + "enumDescriptions": [ + "Unspecified", + "Prevents the creation of new instances.", + "Shuts down existing instances, and prevents creation of new ones." + ], + "type": "string" + }, + "encryptionKeyShutdownDuration": { + "description": "If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour.", + "format": "google-duration", + "type": "string" + }, "etag": { "description": "Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.", "readOnly": true, diff --git a/run/v2/run-gen.go b/run/v2/run-gen.go index c28d0c8d863..5d44c7f92fa 100644 --- a/run/v2/run-gen.go +++ b/run/v2/run-gen.go @@ -269,8 +269,10 @@ func (s *GoogleCloudRunV2BinaryAuthorization) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRunV2CloudSqlInstance: Represents a specific Cloud SQL -// instance. +// GoogleCloudRunV2CloudSqlInstance: Represents a set of Cloud SQL +// instances. Each one will be available under /cloudsql/[instance]. +// Visit https://cloud.google.com/sql/docs/mysql/connect-run for more +// information on how to connect Cloud SQL and Cloud Run. type GoogleCloudRunV2CloudSqlInstance struct { // Instances: The Cloud SQL instance connection names, as can be found // in https://console.cloud.google.com/sql/instances. Visit @@ -476,7 +478,7 @@ type GoogleCloudRunV2Container struct { // https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes LivenessProbe *GoogleCloudRunV2Probe `json:"livenessProbe,omitempty"` - // Name: Name of the container specified as a DNS_LABEL. + // Name: Name of the container specified as a DNS_LABEL (RFC 1123). Name string `json:"name,omitempty"` // Ports: List of ports to expose from the container. Only a single port @@ -1515,6 +1517,21 @@ type GoogleCloudRunV2Revision struct { // go to https://cloud.google.com/run/docs/securing/using-cmek EncryptionKey string `json:"encryptionKey,omitempty"` + // EncryptionKeyRevocationAction: The action to take if the encryption + // key is revoked. + // + // Possible values: + // "ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED" - Unspecified + // "PREVENT_NEW" - Prevents the creation of new instances. + // "SHUTDOWN" - Shuts down existing instances, and prevents creation + // of new ones. + EncryptionKeyRevocationAction string `json:"encryptionKeyRevocationAction,omitempty"` + + // EncryptionKeyShutdownDuration: If encryption_key_revocation_action is + // SHUTDOWN, the duration before shutting down all instances. The + // minimum increment is 1 hour. + EncryptionKeyShutdownDuration string `json:"encryptionKeyShutdownDuration,omitempty"` + // Etag: Output only. A system-generated fingerprint for this version of // the resource. May be used to detect modification conflict during // updates. diff --git a/securitycenter/v1/securitycenter-api.json b/securitycenter/v1/securitycenter-api.json index c9199742f5c..0e189f7cc47 100644 --- a/securitycenter/v1/securitycenter-api.json +++ b/securitycenter/v1/securitycenter-api.json @@ -119,7 +119,7 @@ ], "parameters": { "parent": { - "description": "Required. Name of the parent to groupBy. Its format is \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", + "description": "Required. The name of the parent to group the assets by. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", "location": "path", "pattern": "^folders/[^/]+$", "required": true, @@ -180,7 +180,7 @@ "type": "string" }, "parent": { - "description": "Required. Name of the parent assets should belong to. Its format is \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", + "description": "Required. The name of the parent that the listed assets belong to. Its format is \"organizations/[organization_id], \"folders/[folder_id]\", or \"projects/[project_id]\".", "location": "path", "pattern": "^folders/[^/]+$", "required": true, @@ -260,7 +260,7 @@ "type": "string" }, "parent": { - "description": "Required. Resource name of the new BigQuery export's parent. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", + "description": "Required. The name of the parent resource of the new BigQuery export. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", "location": "path", "pattern": "^folders/[^/]+$", "required": true, @@ -288,7 +288,7 @@ ], "parameters": { "name": { - "description": "Required. Name of the BigQuery export to delete. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}", + "description": "Required. The name of the BigQuery export to delete. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}", "location": "path", "pattern": "^folders/[^/]+/bigQueryExports/[^/]+$", "required": true, @@ -601,7 +601,7 @@ ], "parameters": { "configId": { - "description": "Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contain alphanumeric characters, underscores or hyphens only.", + "description": "Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.", "location": "query", "type": "string" }, @@ -695,7 +695,7 @@ "type": "string" }, "parent": { - "description": "Required. Name of the parent to list notification configs. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", + "description": "Required. The name of the parent in which to list the notification configurations. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", "location": "path", "pattern": "^folders/[^/]+$", "required": true, @@ -769,7 +769,7 @@ "type": "string" }, "parent": { - "description": "Required. Resource name of the parent of sources to list. Its format should be \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", + "description": "Required. Resource name of the parent of sources to list. Its format should be \"organizations/[organization_id], \"folders/[folder_id]\", or \"projects/[project_id]\".", "location": "path", "pattern": "^folders/[^/]+$", "required": true, @@ -952,6 +952,7 @@ ], "parameters": { "name": { + "description": "Required. The [relative resource name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) of the finding. Example: \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}\", \"folders/{folder_id}/sources/{source_id}/findings/{finding_id}\", \"projects/{project_id}/sources/{source_id}/findings/{finding_id}\".", "location": "path", "pattern": "^folders/[^/]+/sources/[^/]+/findings/[^/]+$", "required": true, @@ -1130,7 +1131,7 @@ ], "parameters": { "parent": { - "description": "Required. Name of the parent to groupBy. Its format is \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", + "description": "Required. The name of the parent to group the assets by. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", "location": "path", "pattern": "^organizations/[^/]+$", "required": true, @@ -1191,7 +1192,7 @@ "type": "string" }, "parent": { - "description": "Required. Name of the parent assets should belong to. Its format is \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", + "description": "Required. The name of the parent that the listed assets belong to. Its format is \"organizations/[organization_id], \"folders/[folder_id]\", or \"projects/[project_id]\".", "location": "path", "pattern": "^organizations/[^/]+$", "required": true, @@ -1299,7 +1300,7 @@ "type": "string" }, "parent": { - "description": "Required. Resource name of the new BigQuery export's parent. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", + "description": "Required. The name of the parent resource of the new BigQuery export. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", "location": "path", "pattern": "^organizations/[^/]+$", "required": true, @@ -1327,7 +1328,7 @@ ], "parameters": { "name": { - "description": "Required. Name of the BigQuery export to delete. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}", + "description": "Required. The name of the BigQuery export to delete. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}", "location": "path", "pattern": "^organizations/[^/]+/bigQueryExports/[^/]+$", "required": true, @@ -1640,7 +1641,7 @@ ], "parameters": { "configId": { - "description": "Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contain alphanumeric characters, underscores or hyphens only.", + "description": "Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.", "location": "query", "type": "string" }, @@ -1734,7 +1735,7 @@ "type": "string" }, "parent": { - "description": "Required. Name of the parent to list notification configs. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", + "description": "Required. The name of the parent in which to list the notification configurations. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", "location": "path", "pattern": "^organizations/[^/]+$", "required": true, @@ -2009,7 +2010,7 @@ "type": "string" }, "parent": { - "description": "Required. Resource name of the parent of sources to list. Its format should be \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", + "description": "Required. Resource name of the parent of sources to list. Its format should be \"organizations/[organization_id], \"folders/[folder_id]\", or \"projects/[project_id]\".", "location": "path", "pattern": "^organizations/[^/]+$", "required": true, @@ -2315,6 +2316,7 @@ ], "parameters": { "name": { + "description": "Required. The [relative resource name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) of the finding. Example: \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}\", \"folders/{folder_id}/sources/{source_id}/findings/{finding_id}\", \"projects/{project_id}/sources/{source_id}/findings/{finding_id}\".", "location": "path", "pattern": "^organizations/[^/]+/sources/[^/]+/findings/[^/]+$", "required": true, @@ -2432,7 +2434,7 @@ ], "parameters": { "parent": { - "description": "Required. Name of the parent to groupBy. Its format is \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", + "description": "Required. The name of the parent to group the assets by. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", "location": "path", "pattern": "^projects/[^/]+$", "required": true, @@ -2493,7 +2495,7 @@ "type": "string" }, "parent": { - "description": "Required. Name of the parent assets should belong to. Its format is \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", + "description": "Required. The name of the parent that the listed assets belong to. Its format is \"organizations/[organization_id], \"folders/[folder_id]\", or \"projects/[project_id]\".", "location": "path", "pattern": "^projects/[^/]+$", "required": true, @@ -2573,7 +2575,7 @@ "type": "string" }, "parent": { - "description": "Required. Resource name of the new BigQuery export's parent. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", + "description": "Required. The name of the parent resource of the new BigQuery export. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", "location": "path", "pattern": "^projects/[^/]+$", "required": true, @@ -2601,7 +2603,7 @@ ], "parameters": { "name": { - "description": "Required. Name of the BigQuery export to delete. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}", + "description": "Required. The name of the BigQuery export to delete. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}", "location": "path", "pattern": "^projects/[^/]+/bigQueryExports/[^/]+$", "required": true, @@ -2914,7 +2916,7 @@ ], "parameters": { "configId": { - "description": "Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contain alphanumeric characters, underscores or hyphens only.", + "description": "Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.", "location": "query", "type": "string" }, @@ -3008,7 +3010,7 @@ "type": "string" }, "parent": { - "description": "Required. Name of the parent to list notification configs. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", + "description": "Required. The name of the parent in which to list the notification configurations. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", "location": "path", "pattern": "^projects/[^/]+$", "required": true, @@ -3082,7 +3084,7 @@ "type": "string" }, "parent": { - "description": "Required. Resource name of the parent of sources to list. Its format should be \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", + "description": "Required. Resource name of the parent of sources to list. Its format should be \"organizations/[organization_id], \"folders/[folder_id]\", or \"projects/[project_id]\".", "location": "path", "pattern": "^projects/[^/]+$", "required": true, @@ -3265,6 +3267,7 @@ ], "parameters": { "name": { + "description": "Required. The [relative resource name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) of the finding. Example: \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}\", \"folders/{folder_id}/sources/{source_id}/findings/{finding_id}\", \"projects/{project_id}/sources/{source_id}/findings/{finding_id}\".", "location": "path", "pattern": "^projects/[^/]+/sources/[^/]+/findings/[^/]+$", "required": true, @@ -3369,7 +3372,7 @@ } } }, - "revision": "20221205", + "revision": "20221220", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -3708,11 +3711,11 @@ "type": "object" }, "Contact": { - "description": "Representa a single contact's email address", + "description": "The email address of a contact.", "id": "Contact", "properties": { "email": { - "description": "An email address e.g. \"person123@company.com\"", + "description": "An email address. For example, \"`person123@company.com`\".", "type": "string" } }, @@ -4326,7 +4329,7 @@ }, "vulnerability": { "$ref": "Vulnerability", - "description": "Represents vulnerability-specific fields like CVE and CVS scores. CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)" + "description": "Represents vulnerability-specific fields like CVE and CVSS scores. CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)" } }, "type": "object" @@ -4385,7 +4388,7 @@ "id": "GoogleCloudSecuritycenterV1BigQueryExport", "properties": { "createTime": { - "description": "Output only. The time at which the big query export was created. This field is set by the server and will be ignored if provided on export on creation.", + "description": "Output only. The time at which the BigQuery export was created. This field is set by the server and will be ignored if provided on export on creation.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -4403,7 +4406,7 @@ "type": "string" }, "mostRecentEditor": { - "description": "Output only. Email address of the user who last edited the big query export. This field is set by the server and will be ignored if provided on export creation or update.", + "description": "Output only. Email address of the user who last edited the BigQuery export. This field is set by the server and will be ignored if provided on export creation or update.", "readOnly": true, "type": "string" }, @@ -4412,12 +4415,12 @@ "type": "string" }, "principal": { - "description": "Output only. The service account that needs permission to create table, upload data to the big query dataset.", + "description": "Output only. The service account that needs permission to create table and upload data to the BigQuery dataset.", "readOnly": true, "type": "string" }, "updateTime": { - "description": "Output only. The most recent time at which the big export was updated. This field is set by the server and will be ignored if provided on export creation or update.", + "description": "Output only. The most recent time at which the BigQuery export was updated. This field is set by the server and will be ignored if provided on export creation or update.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -4442,7 +4445,7 @@ "description": "The Role or ClusterRole referenced by the binding." }, "subjects": { - "description": "Represents the subjects(s) bound to the role. Not always available for PATCH requests.", + "description": "Represents one or more subjects that are bound to the role. Not always available for PATCH requests.", "items": { "$ref": "Subject" }, @@ -5153,7 +5156,7 @@ "type": "object" }, "Indicator": { - "description": "Represents what's commonly known as an Indicator of compromise (IoC) in computer forensics. This is an artifact observed on a network or in an operating system that, with high confidence, indicates a computer intrusion. Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise", + "description": "Represents what's commonly known as an _indicator of compromise_ (IoC) in computer forensics. This is an artifact observed on a network or in an operating system that, with high confidence, indicates a computer intrusion. For more information, see [Indicator of compromise](https://en.wikipedia.org/wiki/Indicator_of_compromise).", "id": "Indicator", "properties": { "domains": { @@ -5164,7 +5167,7 @@ "type": "array" }, "ipAddresses": { - "description": "List of ip addresses associated to the Finding.", + "description": "The list of IP addresses that are associated with the finding.", "items": { "type": "string" }, @@ -5196,7 +5199,7 @@ "type": "string" }, "unexpectedCodeModification": { - "description": "True when unexpected modifications of kernel read-only data memory are present.", + "description": "True when unexpected modifications of kernel code memory are present.", "type": "boolean" }, "unexpectedFtraceHandler": { @@ -5220,7 +5223,7 @@ "type": "boolean" }, "unexpectedReadOnlyDataModification": { - "description": "Flag indicating unexpected modifications of kernel read-only data memory.", + "description": "True when unexpected modifications of kernel read-only data memory are present.", "type": "boolean" }, "unexpectedSystemCallHandler": { @@ -5231,7 +5234,7 @@ "type": "object" }, "Kubernetes": { - "description": "Kubernetes related attributes.", + "description": "Kubernetes-related attributes.", "id": "Kubernetes", "properties": { "accessReviews": { @@ -6224,7 +6227,7 @@ "type": "object" }, "SetFindingStateRequest": { - "description": "Request message for updating a finding's state. The [relative resource name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) of the finding. Example: \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}\", \"folders/{folder_id}/sources/{source_id}/findings/{finding_id}\", \"projects/{project_id}/sources/{source_id}/findings/{finding_id}\".", + "description": "Request message for updating a finding's state.", "id": "SetFindingStateRequest", "properties": { "startTime": { diff --git a/securitycenter/v1/securitycenter-gen.go b/securitycenter/v1/securitycenter-gen.go index bbcf25c3556..7c694613def 100644 --- a/securitycenter/v1/securitycenter-gen.go +++ b/securitycenter/v1/securitycenter-gen.go @@ -1068,9 +1068,9 @@ func (s *Connection) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Contact: Representa a single contact's email address +// Contact: The email address of a contact. type Contact struct { - // Email: An email address e.g. "person123@company.com" + // Email: An email address. For example, "person123@company.com". Email string `json:"email,omitempty"` // ForceSendFields is a list of field names (e.g. "Email") to @@ -1957,7 +1957,7 @@ type Finding struct { State string `json:"state,omitempty"` // Vulnerability: Represents vulnerability-specific fields like CVE and - // CVS scores. CVE stands for Common Vulnerabilities and Exposures + // CVSS scores. CVE stands for Common Vulnerabilities and Exposures // (https://cve.mitre.org/about/) Vulnerability *Vulnerability `json:"vulnerability,omitempty"` @@ -2124,7 +2124,7 @@ func (s *GetPolicyOptions) MarshalJSON() ([]byte, error) { // GoogleCloudSecuritycenterV1BigQueryExport: Configures how to deliver // Findings to BigQuery Instance. type GoogleCloudSecuritycenterV1BigQueryExport struct { - // CreateTime: Output only. The time at which the big query export was + // CreateTime: Output only. The time at which the BigQuery export was // created. This field is set by the server and will be ignored if // provided on export on creation. CreateTime string `json:"createTime,omitempty"` @@ -2152,7 +2152,7 @@ type GoogleCloudSecuritycenterV1BigQueryExport struct { Filter string `json:"filter,omitempty"` // MostRecentEditor: Output only. Email address of the user who last - // edited the big query export. This field is set by the server and will + // edited the BigQuery export. This field is set by the server and will // be ignored if provided on export creation or update. MostRecentEditor string `json:"mostRecentEditor,omitempty"` @@ -2167,12 +2167,12 @@ type GoogleCloudSecuritycenterV1BigQueryExport struct { Name string `json:"name,omitempty"` // Principal: Output only. The service account that needs permission to - // create table, upload data to the big query dataset. + // create table and upload data to the BigQuery dataset. Principal string `json:"principal,omitempty"` - // UpdateTime: Output only. The most recent time at which the big export - // was updated. This field is set by the server and will be ignored if - // provided on export creation or update. + // UpdateTime: Output only. The most recent time at which the BigQuery + // export was updated. This field is set by the server and will be + // ignored if provided on export creation or update. UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -2214,8 +2214,8 @@ type GoogleCloudSecuritycenterV1Binding struct { // Role: The Role or ClusterRole referenced by the binding. Role *Role `json:"role,omitempty"` - // Subjects: Represents the subjects(s) bound to the role. Not always - // available for PATCH requests. + // Subjects: Represents one or more subjects that are bound to the role. + // Not always available for PATCH requests. Subjects []*Subject `json:"subjects,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to @@ -3447,16 +3447,18 @@ func (s *IamPolicy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Indicator: Represents what's commonly known as an Indicator of -// compromise (IoC) in computer forensics. This is an artifact observed +// Indicator: Represents what's commonly known as an _indicator of +// compromise_ (IoC) in computer forensics. This is an artifact observed // on a network or in an operating system that, with high confidence, -// indicates a computer intrusion. Reference: -// https://en.wikipedia.org/wiki/Indicator_of_compromise +// indicates a computer intrusion. For more information, see Indicator +// of compromise +// (https://en.wikipedia.org/wiki/Indicator_of_compromise). type Indicator struct { // Domains: List of domains associated to the Finding. Domains []string `json:"domains,omitempty"` - // IpAddresses: List of ip addresses associated to the Finding. + // IpAddresses: The list of IP addresses that are associated with the + // finding. IpAddresses []string `json:"ipAddresses,omitempty"` // Signatures: The list of matched signatures indicating that the given @@ -3495,7 +3497,7 @@ type KernelRootkit struct { Name string `json:"name,omitempty"` // UnexpectedCodeModification: True when unexpected modifications of - // kernel read-only data memory are present. + // kernel code memory are present. UnexpectedCodeModification bool `json:"unexpectedCodeModification,omitempty"` // UnexpectedFtraceHandler: True when `ftrace` points are present with @@ -3521,8 +3523,8 @@ type KernelRootkit struct { // but not in the process task list. UnexpectedProcessesInRunqueue bool `json:"unexpectedProcessesInRunqueue,omitempty"` - // UnexpectedReadOnlyDataModification: Flag indicating unexpected - // modifications of kernel read-only data memory. + // UnexpectedReadOnlyDataModification: True when unexpected + // modifications of kernel read-only data memory are present. UnexpectedReadOnlyDataModification bool `json:"unexpectedReadOnlyDataModification,omitempty"` // UnexpectedSystemCallHandler: True when system call handlers that are @@ -3552,7 +3554,7 @@ func (s *KernelRootkit) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Kubernetes: Kubernetes related attributes. +// Kubernetes: Kubernetes-related attributes. type Kubernetes struct { // AccessReviews: Provides information on any Kubernetes access reviews // (i.e. privilege checks) relevant to the finding. @@ -4994,13 +4996,7 @@ func (s *ServiceAccountDelegationInfo) MarshalJSON() ([]byte, error) { } // SetFindingStateRequest: Request message for updating a finding's -// state. The relative resource name -// (https://cloud.google.com/apis/design/resource_names#relative_resource_name) -// of the finding. Example: -// "organizations/{organization_id}/sources/{source_id}/findings/{finding -// _id}", -// "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", -// "projects/{project_id}/sources/{source_id}/findings/{finding_id}". +// state. type SetFindingStateRequest struct { // StartTime: Required. The time at which the updated state takes // effect. @@ -5431,9 +5427,9 @@ type FoldersAssetsGroupCall struct { // Group: Filters an organization's assets and groups them by their // specified properties. // -// - parent: Name of the parent to groupBy. Its format is -// "organizations/[organization_id], folders/[folder_id], or -// projects/[project_id]". +// - parent: The name of the parent to group the assets by. Its format +// is "organizations/[organization_id]", "folders/[folder_id]", or +// "projects/[project_id]". func (r *FoldersAssetsService) Group(parent string, groupassetsrequest *GroupAssetsRequest) *FoldersAssetsGroupCall { c := &FoldersAssetsGroupCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -5541,7 +5537,7 @@ func (c *FoldersAssetsGroupCall) Do(opts ...googleapi.CallOption) (*GroupAssetsR // ], // "parameters": { // "parent": { - // "description": "Required. Name of the parent to groupBy. Its format is \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", + // "description": "Required. The name of the parent to group the assets by. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", // "location": "path", // "pattern": "^folders/[^/]+$", // "required": true, @@ -5596,9 +5592,9 @@ type FoldersAssetsListCall struct { // List: Lists an organization's assets. // -// - parent: Name of the parent assets should belong to. Its format is -// "organizations/[organization_id], folders/[folder_id], or -// projects/[project_id]". +// - parent: The name of the parent that the listed assets belong to. +// Its format is "organizations/[organization_id], +// "folders/[folder_id]", or "projects/[project_id]". func (r *FoldersAssetsService) List(parent string) *FoldersAssetsListCall { c := &FoldersAssetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -5869,7 +5865,7 @@ func (c *FoldersAssetsListCall) Do(opts ...googleapi.CallOption) (*ListAssetsRes // "type": "string" // }, // "parent": { - // "description": "Required. Name of the parent assets should belong to. Its format is \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", + // "description": "Required. The name of the parent that the listed assets belong to. Its format is \"organizations/[organization_id], \"folders/[folder_id]\", or \"projects/[project_id]\".", // "location": "path", // "pattern": "^folders/[^/]+$", // "required": true, @@ -6105,9 +6101,9 @@ type FoldersBigQueryExportsCreateCall struct { // Create: Creates a BigQuery export. // -// - parent: Resource name of the new BigQuery export's parent. Its -// format is "organizations/[organization_id]", "folders/[folder_id]", -// or "projects/[project_id]". +// - parent: The name of the parent resource of the new BigQuery export. +// Its format is "organizations/[organization_id]", +// "folders/[folder_id]", or "projects/[project_id]". func (r *FoldersBigQueryExportsService) Create(parent string, googlecloudsecuritycenterv1bigqueryexport *GoogleCloudSecuritycenterV1BigQueryExport) *FoldersBigQueryExportsCreateCall { c := &FoldersBigQueryExportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -6232,7 +6228,7 @@ func (c *FoldersBigQueryExportsCreateCall) Do(opts ...googleapi.CallOption) (*Go // "type": "string" // }, // "parent": { - // "description": "Required. Resource name of the new BigQuery export's parent. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", + // "description": "Required. The name of the parent resource of the new BigQuery export. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", // "location": "path", // "pattern": "^folders/[^/]+$", // "required": true, @@ -6265,7 +6261,7 @@ type FoldersBigQueryExportsDeleteCall struct { // Delete: Deletes an existing BigQuery export. // -// - name: Name of the BigQuery export to delete. Its format is +// - name: The name of the BigQuery export to delete. Its format is // organizations/{organization}/bigQueryExports/{export_id}, // folders/{folder}/bigQueryExports/{export_id}, or // projects/{project}/bigQueryExports/{export_id}. @@ -6370,7 +6366,7 @@ func (c *FoldersBigQueryExportsDeleteCall) Do(opts ...googleapi.CallOption) (*Em // ], // "parameters": { // "name": { - // "description": "Required. Name of the BigQuery export to delete. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}", + // "description": "Required. The name of the BigQuery export to delete. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}", // "location": "path", // "pattern": "^folders/[^/]+/bigQueryExports/[^/]+$", // "required": true, @@ -7881,8 +7877,8 @@ func (r *FoldersNotificationConfigsService) Create(parent string, notificationco // ConfigId sets the optional parameter "configId": Required. Unique // identifier provided by the client within the parent scope. It must be -// between 1 and 128 characters, and contain alphanumeric characters, -// underscores or hyphens only. +// between 1 and 128 characters and contain alphanumeric characters, +// underscores, or hyphens only. func (c *FoldersNotificationConfigsCreateCall) ConfigId(configId string) *FoldersNotificationConfigsCreateCall { c.urlParams_.Set("configId", configId) return c @@ -7988,7 +7984,7 @@ func (c *FoldersNotificationConfigsCreateCall) Do(opts ...googleapi.CallOption) // ], // "parameters": { // "configId": { - // "description": "Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contain alphanumeric characters, underscores or hyphens only.", + // "description": "Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.", // "location": "query", // "type": "string" // }, @@ -8311,9 +8307,9 @@ type FoldersNotificationConfigsListCall struct { // List: Lists notification configs. // -// - parent: Name of the parent to list notification configs. Its format -// is "organizations/[organization_id]", "folders/[folder_id]", or -// "projects/[project_id]". +// - parent: The name of the parent in which to list the notification +// configurations. Its format is "organizations/[organization_id]", +// "folders/[folder_id]", or "projects/[project_id]". func (r *FoldersNotificationConfigsService) List(parent string) *FoldersNotificationConfigsListCall { c := &FoldersNotificationConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -8456,7 +8452,7 @@ func (c *FoldersNotificationConfigsListCall) Do(opts ...googleapi.CallOption) (* // "type": "string" // }, // "parent": { - // "description": "Required. Name of the parent to list notification configs. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", + // "description": "Required. The name of the parent in which to list the notification configurations. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", // "location": "path", // "pattern": "^folders/[^/]+$", // "required": true, @@ -8672,8 +8668,8 @@ type FoldersSourcesListCall struct { // List: Lists all sources belonging to an organization. // // - parent: Resource name of the parent of sources to list. Its format -// should be "organizations/[organization_id], folders/[folder_id], or -// projects/[project_id]". +// should be "organizations/[organization_id], "folders/[folder_id]", +// or "projects/[project_id]". func (r *FoldersSourcesService) List(parent string) *FoldersSourcesListCall { c := &FoldersSourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -8816,7 +8812,7 @@ func (c *FoldersSourcesListCall) Do(opts ...googleapi.CallOption) (*ListSourcesR // "type": "string" // }, // "parent": { - // "description": "Required. Resource name of the parent of sources to list. Its format should be \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", + // "description": "Required. Resource name of the parent of sources to list. Its format should be \"organizations/[organization_id], \"folders/[folder_id]\", or \"projects/[project_id]\".", // "location": "path", // "pattern": "^folders/[^/]+$", // "required": true, @@ -9682,7 +9678,13 @@ type FoldersSourcesFindingsSetStateCall struct { // SetState: Updates the state of a finding. // -// - name: . +// - name: The relative resource name +// (https://cloud.google.com/apis/design/resource_names#relative_resource_name) +// of the finding. Example: +// "organizations/{organization_id}/sources/{source_id}/findings/{findi +// ng_id}", +// "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", +// "projects/{project_id}/sources/{source_id}/findings/{finding_id}". func (r *FoldersSourcesFindingsService) SetState(name string, setfindingstaterequest *SetFindingStateRequest) *FoldersSourcesFindingsSetStateCall { c := &FoldersSourcesFindingsSetStateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -9790,6 +9792,7 @@ func (c *FoldersSourcesFindingsSetStateCall) Do(opts ...googleapi.CallOption) (* // ], // "parameters": { // "name": { + // "description": "Required. The [relative resource name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) of the finding. Example: \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}\", \"folders/{folder_id}/sources/{source_id}/findings/{finding_id}\", \"projects/{project_id}/sources/{source_id}/findings/{finding_id}\".", // "location": "path", // "pattern": "^folders/[^/]+/sources/[^/]+/findings/[^/]+$", // "required": true, @@ -10470,9 +10473,9 @@ type OrganizationsAssetsGroupCall struct { // Group: Filters an organization's assets and groups them by their // specified properties. // -// - parent: Name of the parent to groupBy. Its format is -// "organizations/[organization_id], folders/[folder_id], or -// projects/[project_id]". +// - parent: The name of the parent to group the assets by. Its format +// is "organizations/[organization_id]", "folders/[folder_id]", or +// "projects/[project_id]". func (r *OrganizationsAssetsService) Group(parent string, groupassetsrequest *GroupAssetsRequest) *OrganizationsAssetsGroupCall { c := &OrganizationsAssetsGroupCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -10580,7 +10583,7 @@ func (c *OrganizationsAssetsGroupCall) Do(opts ...googleapi.CallOption) (*GroupA // ], // "parameters": { // "parent": { - // "description": "Required. Name of the parent to groupBy. Its format is \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", + // "description": "Required. The name of the parent to group the assets by. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", // "location": "path", // "pattern": "^organizations/[^/]+$", // "required": true, @@ -10635,9 +10638,9 @@ type OrganizationsAssetsListCall struct { // List: Lists an organization's assets. // -// - parent: Name of the parent assets should belong to. Its format is -// "organizations/[organization_id], folders/[folder_id], or -// projects/[project_id]". +// - parent: The name of the parent that the listed assets belong to. +// Its format is "organizations/[organization_id], +// "folders/[folder_id]", or "projects/[project_id]". func (r *OrganizationsAssetsService) List(parent string) *OrganizationsAssetsListCall { c := &OrganizationsAssetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -10908,7 +10911,7 @@ func (c *OrganizationsAssetsListCall) Do(opts ...googleapi.CallOption) (*ListAss // "type": "string" // }, // "parent": { - // "description": "Required. Name of the parent assets should belong to. Its format is \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", + // "description": "Required. The name of the parent that the listed assets belong to. Its format is \"organizations/[organization_id], \"folders/[folder_id]\", or \"projects/[project_id]\".", // "location": "path", // "pattern": "^organizations/[^/]+$", // "required": true, @@ -11290,9 +11293,9 @@ type OrganizationsBigQueryExportsCreateCall struct { // Create: Creates a BigQuery export. // -// - parent: Resource name of the new BigQuery export's parent. Its -// format is "organizations/[organization_id]", "folders/[folder_id]", -// or "projects/[project_id]". +// - parent: The name of the parent resource of the new BigQuery export. +// Its format is "organizations/[organization_id]", +// "folders/[folder_id]", or "projects/[project_id]". func (r *OrganizationsBigQueryExportsService) Create(parent string, googlecloudsecuritycenterv1bigqueryexport *GoogleCloudSecuritycenterV1BigQueryExport) *OrganizationsBigQueryExportsCreateCall { c := &OrganizationsBigQueryExportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -11417,7 +11420,7 @@ func (c *OrganizationsBigQueryExportsCreateCall) Do(opts ...googleapi.CallOption // "type": "string" // }, // "parent": { - // "description": "Required. Resource name of the new BigQuery export's parent. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", + // "description": "Required. The name of the parent resource of the new BigQuery export. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", // "location": "path", // "pattern": "^organizations/[^/]+$", // "required": true, @@ -11450,7 +11453,7 @@ type OrganizationsBigQueryExportsDeleteCall struct { // Delete: Deletes an existing BigQuery export. // -// - name: Name of the BigQuery export to delete. Its format is +// - name: The name of the BigQuery export to delete. Its format is // organizations/{organization}/bigQueryExports/{export_id}, // folders/{folder}/bigQueryExports/{export_id}, or // projects/{project}/bigQueryExports/{export_id}. @@ -11555,7 +11558,7 @@ func (c *OrganizationsBigQueryExportsDeleteCall) Do(opts ...googleapi.CallOption // ], // "parameters": { // "name": { - // "description": "Required. Name of the BigQuery export to delete. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}", + // "description": "Required. The name of the BigQuery export to delete. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}", // "location": "path", // "pattern": "^organizations/[^/]+/bigQueryExports/[^/]+$", // "required": true, @@ -13066,8 +13069,8 @@ func (r *OrganizationsNotificationConfigsService) Create(parent string, notifica // ConfigId sets the optional parameter "configId": Required. Unique // identifier provided by the client within the parent scope. It must be -// between 1 and 128 characters, and contain alphanumeric characters, -// underscores or hyphens only. +// between 1 and 128 characters and contain alphanumeric characters, +// underscores, or hyphens only. func (c *OrganizationsNotificationConfigsCreateCall) ConfigId(configId string) *OrganizationsNotificationConfigsCreateCall { c.urlParams_.Set("configId", configId) return c @@ -13173,7 +13176,7 @@ func (c *OrganizationsNotificationConfigsCreateCall) Do(opts ...googleapi.CallOp // ], // "parameters": { // "configId": { - // "description": "Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contain alphanumeric characters, underscores or hyphens only.", + // "description": "Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.", // "location": "query", // "type": "string" // }, @@ -13496,9 +13499,9 @@ type OrganizationsNotificationConfigsListCall struct { // List: Lists notification configs. // -// - parent: Name of the parent to list notification configs. Its format -// is "organizations/[organization_id]", "folders/[folder_id]", or -// "projects/[project_id]". +// - parent: The name of the parent in which to list the notification +// configurations. Its format is "organizations/[organization_id]", +// "folders/[folder_id]", or "projects/[project_id]". func (r *OrganizationsNotificationConfigsService) List(parent string) *OrganizationsNotificationConfigsListCall { c := &OrganizationsNotificationConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -13641,7 +13644,7 @@ func (c *OrganizationsNotificationConfigsListCall) Do(opts ...googleapi.CallOpti // "type": "string" // }, // "parent": { - // "description": "Required. Name of the parent to list notification configs. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", + // "description": "Required. The name of the parent in which to list the notification configurations. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", // "location": "path", // "pattern": "^organizations/[^/]+$", // "required": true, @@ -14929,8 +14932,8 @@ type OrganizationsSourcesListCall struct { // List: Lists all sources belonging to an organization. // // - parent: Resource name of the parent of sources to list. Its format -// should be "organizations/[organization_id], folders/[folder_id], or -// projects/[project_id]". +// should be "organizations/[organization_id], "folders/[folder_id]", +// or "projects/[project_id]". func (r *OrganizationsSourcesService) List(parent string) *OrganizationsSourcesListCall { c := &OrganizationsSourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -15073,7 +15076,7 @@ func (c *OrganizationsSourcesListCall) Do(opts ...googleapi.CallOption) (*ListSo // "type": "string" // }, // "parent": { - // "description": "Required. Resource name of the parent of sources to list. Its format should be \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", + // "description": "Required. Resource name of the parent of sources to list. Its format should be \"organizations/[organization_id], \"folders/[folder_id]\", or \"projects/[project_id]\".", // "location": "path", // "pattern": "^organizations/[^/]+$", // "required": true, @@ -16546,7 +16549,13 @@ type OrganizationsSourcesFindingsSetStateCall struct { // SetState: Updates the state of a finding. // -// - name: . +// - name: The relative resource name +// (https://cloud.google.com/apis/design/resource_names#relative_resource_name) +// of the finding. Example: +// "organizations/{organization_id}/sources/{source_id}/findings/{findi +// ng_id}", +// "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", +// "projects/{project_id}/sources/{source_id}/findings/{finding_id}". func (r *OrganizationsSourcesFindingsService) SetState(name string, setfindingstaterequest *SetFindingStateRequest) *OrganizationsSourcesFindingsSetStateCall { c := &OrganizationsSourcesFindingsSetStateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -16654,6 +16663,7 @@ func (c *OrganizationsSourcesFindingsSetStateCall) Do(opts ...googleapi.CallOpti // ], // "parameters": { // "name": { + // "description": "Required. The [relative resource name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) of the finding. Example: \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}\", \"folders/{folder_id}/sources/{source_id}/findings/{finding_id}\", \"projects/{project_id}/sources/{source_id}/findings/{finding_id}\".", // "location": "path", // "pattern": "^organizations/[^/]+/sources/[^/]+/findings/[^/]+$", // "required": true, @@ -17028,9 +17038,9 @@ type ProjectsAssetsGroupCall struct { // Group: Filters an organization's assets and groups them by their // specified properties. // -// - parent: Name of the parent to groupBy. Its format is -// "organizations/[organization_id], folders/[folder_id], or -// projects/[project_id]". +// - parent: The name of the parent to group the assets by. Its format +// is "organizations/[organization_id]", "folders/[folder_id]", or +// "projects/[project_id]". func (r *ProjectsAssetsService) Group(parent string, groupassetsrequest *GroupAssetsRequest) *ProjectsAssetsGroupCall { c := &ProjectsAssetsGroupCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -17138,7 +17148,7 @@ func (c *ProjectsAssetsGroupCall) Do(opts ...googleapi.CallOption) (*GroupAssets // ], // "parameters": { // "parent": { - // "description": "Required. Name of the parent to groupBy. Its format is \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", + // "description": "Required. The name of the parent to group the assets by. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", // "location": "path", // "pattern": "^projects/[^/]+$", // "required": true, @@ -17193,9 +17203,9 @@ type ProjectsAssetsListCall struct { // List: Lists an organization's assets. // -// - parent: Name of the parent assets should belong to. Its format is -// "organizations/[organization_id], folders/[folder_id], or -// projects/[project_id]". +// - parent: The name of the parent that the listed assets belong to. +// Its format is "organizations/[organization_id], +// "folders/[folder_id]", or "projects/[project_id]". func (r *ProjectsAssetsService) List(parent string) *ProjectsAssetsListCall { c := &ProjectsAssetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -17466,7 +17476,7 @@ func (c *ProjectsAssetsListCall) Do(opts ...googleapi.CallOption) (*ListAssetsRe // "type": "string" // }, // "parent": { - // "description": "Required. Name of the parent assets should belong to. Its format is \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", + // "description": "Required. The name of the parent that the listed assets belong to. Its format is \"organizations/[organization_id], \"folders/[folder_id]\", or \"projects/[project_id]\".", // "location": "path", // "pattern": "^projects/[^/]+$", // "required": true, @@ -17702,9 +17712,9 @@ type ProjectsBigQueryExportsCreateCall struct { // Create: Creates a BigQuery export. // -// - parent: Resource name of the new BigQuery export's parent. Its -// format is "organizations/[organization_id]", "folders/[folder_id]", -// or "projects/[project_id]". +// - parent: The name of the parent resource of the new BigQuery export. +// Its format is "organizations/[organization_id]", +// "folders/[folder_id]", or "projects/[project_id]". func (r *ProjectsBigQueryExportsService) Create(parent string, googlecloudsecuritycenterv1bigqueryexport *GoogleCloudSecuritycenterV1BigQueryExport) *ProjectsBigQueryExportsCreateCall { c := &ProjectsBigQueryExportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -17829,7 +17839,7 @@ func (c *ProjectsBigQueryExportsCreateCall) Do(opts ...googleapi.CallOption) (*G // "type": "string" // }, // "parent": { - // "description": "Required. Resource name of the new BigQuery export's parent. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", + // "description": "Required. The name of the parent resource of the new BigQuery export. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", // "location": "path", // "pattern": "^projects/[^/]+$", // "required": true, @@ -17862,7 +17872,7 @@ type ProjectsBigQueryExportsDeleteCall struct { // Delete: Deletes an existing BigQuery export. // -// - name: Name of the BigQuery export to delete. Its format is +// - name: The name of the BigQuery export to delete. Its format is // organizations/{organization}/bigQueryExports/{export_id}, // folders/{folder}/bigQueryExports/{export_id}, or // projects/{project}/bigQueryExports/{export_id}. @@ -17967,7 +17977,7 @@ func (c *ProjectsBigQueryExportsDeleteCall) Do(opts ...googleapi.CallOption) (*E // ], // "parameters": { // "name": { - // "description": "Required. Name of the BigQuery export to delete. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}", + // "description": "Required. The name of the BigQuery export to delete. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}", // "location": "path", // "pattern": "^projects/[^/]+/bigQueryExports/[^/]+$", // "required": true, @@ -19478,8 +19488,8 @@ func (r *ProjectsNotificationConfigsService) Create(parent string, notificationc // ConfigId sets the optional parameter "configId": Required. Unique // identifier provided by the client within the parent scope. It must be -// between 1 and 128 characters, and contain alphanumeric characters, -// underscores or hyphens only. +// between 1 and 128 characters and contain alphanumeric characters, +// underscores, or hyphens only. func (c *ProjectsNotificationConfigsCreateCall) ConfigId(configId string) *ProjectsNotificationConfigsCreateCall { c.urlParams_.Set("configId", configId) return c @@ -19585,7 +19595,7 @@ func (c *ProjectsNotificationConfigsCreateCall) Do(opts ...googleapi.CallOption) // ], // "parameters": { // "configId": { - // "description": "Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contain alphanumeric characters, underscores or hyphens only.", + // "description": "Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.", // "location": "query", // "type": "string" // }, @@ -19908,9 +19918,9 @@ type ProjectsNotificationConfigsListCall struct { // List: Lists notification configs. // -// - parent: Name of the parent to list notification configs. Its format -// is "organizations/[organization_id]", "folders/[folder_id]", or -// "projects/[project_id]". +// - parent: The name of the parent in which to list the notification +// configurations. Its format is "organizations/[organization_id]", +// "folders/[folder_id]", or "projects/[project_id]". func (r *ProjectsNotificationConfigsService) List(parent string) *ProjectsNotificationConfigsListCall { c := &ProjectsNotificationConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -20053,7 +20063,7 @@ func (c *ProjectsNotificationConfigsListCall) Do(opts ...googleapi.CallOption) ( // "type": "string" // }, // "parent": { - // "description": "Required. Name of the parent to list notification configs. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", + // "description": "Required. The name of the parent in which to list the notification configurations. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", // "location": "path", // "pattern": "^projects/[^/]+$", // "required": true, @@ -20269,8 +20279,8 @@ type ProjectsSourcesListCall struct { // List: Lists all sources belonging to an organization. // // - parent: Resource name of the parent of sources to list. Its format -// should be "organizations/[organization_id], folders/[folder_id], or -// projects/[project_id]". +// should be "organizations/[organization_id], "folders/[folder_id]", +// or "projects/[project_id]". func (r *ProjectsSourcesService) List(parent string) *ProjectsSourcesListCall { c := &ProjectsSourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -20413,7 +20423,7 @@ func (c *ProjectsSourcesListCall) Do(opts ...googleapi.CallOption) (*ListSources // "type": "string" // }, // "parent": { - // "description": "Required. Resource name of the parent of sources to list. Its format should be \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", + // "description": "Required. Resource name of the parent of sources to list. Its format should be \"organizations/[organization_id], \"folders/[folder_id]\", or \"projects/[project_id]\".", // "location": "path", // "pattern": "^projects/[^/]+$", // "required": true, @@ -21279,7 +21289,13 @@ type ProjectsSourcesFindingsSetStateCall struct { // SetState: Updates the state of a finding. // -// - name: . +// - name: The relative resource name +// (https://cloud.google.com/apis/design/resource_names#relative_resource_name) +// of the finding. Example: +// "organizations/{organization_id}/sources/{source_id}/findings/{findi +// ng_id}", +// "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", +// "projects/{project_id}/sources/{source_id}/findings/{finding_id}". func (r *ProjectsSourcesFindingsService) SetState(name string, setfindingstaterequest *SetFindingStateRequest) *ProjectsSourcesFindingsSetStateCall { c := &ProjectsSourcesFindingsSetStateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -21387,6 +21403,7 @@ func (c *ProjectsSourcesFindingsSetStateCall) Do(opts ...googleapi.CallOption) ( // ], // "parameters": { // "name": { + // "description": "Required. The [relative resource name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) of the finding. Example: \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}\", \"folders/{folder_id}/sources/{source_id}/findings/{finding_id}\", \"projects/{project_id}/sources/{source_id}/findings/{finding_id}\".", // "location": "path", // "pattern": "^projects/[^/]+/sources/[^/]+/findings/[^/]+$", // "required": true, diff --git a/securitycenter/v1beta1/securitycenter-api.json b/securitycenter/v1beta1/securitycenter-api.json index 0025b15dadb..a52a262a7de 100644 --- a/securitycenter/v1beta1/securitycenter-api.json +++ b/securitycenter/v1beta1/securitycenter-api.json @@ -896,7 +896,7 @@ } } }, - "revision": "20221205", + "revision": "20221220", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -1211,11 +1211,11 @@ "type": "object" }, "Contact": { - "description": "Representa a single contact's email address", + "description": "The email address of a contact.", "id": "Contact", "properties": { "email": { - "description": "An email address e.g. \"person123@company.com\"", + "description": "An email address. For example, \"`person123@company.com`\".", "type": "string" } }, @@ -1829,7 +1829,7 @@ }, "vulnerability": { "$ref": "Vulnerability", - "description": "Represents vulnerability-specific fields like CVE and CVS scores. CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)" + "description": "Represents vulnerability-specific fields like CVE and CVSS scores. CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)" } }, "type": "object" @@ -1888,7 +1888,7 @@ "id": "GoogleCloudSecuritycenterV1BigQueryExport", "properties": { "createTime": { - "description": "Output only. The time at which the big query export was created. This field is set by the server and will be ignored if provided on export on creation.", + "description": "Output only. The time at which the BigQuery export was created. This field is set by the server and will be ignored if provided on export on creation.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -1906,7 +1906,7 @@ "type": "string" }, "mostRecentEditor": { - "description": "Output only. Email address of the user who last edited the big query export. This field is set by the server and will be ignored if provided on export creation or update.", + "description": "Output only. Email address of the user who last edited the BigQuery export. This field is set by the server and will be ignored if provided on export creation or update.", "readOnly": true, "type": "string" }, @@ -1915,12 +1915,12 @@ "type": "string" }, "principal": { - "description": "Output only. The service account that needs permission to create table, upload data to the big query dataset.", + "description": "Output only. The service account that needs permission to create table and upload data to the BigQuery dataset.", "readOnly": true, "type": "string" }, "updateTime": { - "description": "Output only. The most recent time at which the big export was updated. This field is set by the server and will be ignored if provided on export creation or update.", + "description": "Output only. The most recent time at which the BigQuery export was updated. This field is set by the server and will be ignored if provided on export creation or update.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -1945,7 +1945,7 @@ "description": "The Role or ClusterRole referenced by the binding." }, "subjects": { - "description": "Represents the subjects(s) bound to the role. Not always available for PATCH requests.", + "description": "Represents one or more subjects that are bound to the role. Not always available for PATCH requests.", "items": { "$ref": "Subject" }, @@ -2711,7 +2711,7 @@ "type": "object" }, "Indicator": { - "description": "Represents what's commonly known as an Indicator of compromise (IoC) in computer forensics. This is an artifact observed on a network or in an operating system that, with high confidence, indicates a computer intrusion. Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise", + "description": "Represents what's commonly known as an _indicator of compromise_ (IoC) in computer forensics. This is an artifact observed on a network or in an operating system that, with high confidence, indicates a computer intrusion. For more information, see [Indicator of compromise](https://en.wikipedia.org/wiki/Indicator_of_compromise).", "id": "Indicator", "properties": { "domains": { @@ -2722,7 +2722,7 @@ "type": "array" }, "ipAddresses": { - "description": "List of ip addresses associated to the Finding.", + "description": "The list of IP addresses that are associated with the finding.", "items": { "type": "string" }, @@ -2754,7 +2754,7 @@ "type": "string" }, "unexpectedCodeModification": { - "description": "True when unexpected modifications of kernel read-only data memory are present.", + "description": "True when unexpected modifications of kernel code memory are present.", "type": "boolean" }, "unexpectedFtraceHandler": { @@ -2778,7 +2778,7 @@ "type": "boolean" }, "unexpectedReadOnlyDataModification": { - "description": "Flag indicating unexpected modifications of kernel read-only data memory.", + "description": "True when unexpected modifications of kernel read-only data memory are present.", "type": "boolean" }, "unexpectedSystemCallHandler": { @@ -2789,7 +2789,7 @@ "type": "object" }, "Kubernetes": { - "description": "Kubernetes related attributes.", + "description": "Kubernetes-related attributes.", "id": "Kubernetes", "properties": { "accessReviews": { diff --git a/securitycenter/v1beta1/securitycenter-gen.go b/securitycenter/v1beta1/securitycenter-gen.go index 17f1f77ad79..947044ea8dc 100644 --- a/securitycenter/v1beta1/securitycenter-gen.go +++ b/securitycenter/v1beta1/securitycenter-gen.go @@ -735,9 +735,9 @@ func (s *Connection) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Contact: Representa a single contact's email address +// Contact: The email address of a contact. type Contact struct { - // Email: An email address e.g. "person123@company.com" + // Email: An email address. For example, "person123@company.com". Email string `json:"email,omitempty"` // ForceSendFields is a list of field names (e.g. "Email") to @@ -1624,7 +1624,7 @@ type Finding struct { State string `json:"state,omitempty"` // Vulnerability: Represents vulnerability-specific fields like CVE and - // CVS scores. CVE stands for Common Vulnerabilities and Exposures + // CVSS scores. CVE stands for Common Vulnerabilities and Exposures // (https://cve.mitre.org/about/) Vulnerability *Vulnerability `json:"vulnerability,omitempty"` @@ -1787,7 +1787,7 @@ func (s *GetPolicyOptions) MarshalJSON() ([]byte, error) { // GoogleCloudSecuritycenterV1BigQueryExport: Configures how to deliver // Findings to BigQuery Instance. type GoogleCloudSecuritycenterV1BigQueryExport struct { - // CreateTime: Output only. The time at which the big query export was + // CreateTime: Output only. The time at which the BigQuery export was // created. This field is set by the server and will be ignored if // provided on export on creation. CreateTime string `json:"createTime,omitempty"` @@ -1815,7 +1815,7 @@ type GoogleCloudSecuritycenterV1BigQueryExport struct { Filter string `json:"filter,omitempty"` // MostRecentEditor: Output only. Email address of the user who last - // edited the big query export. This field is set by the server and will + // edited the BigQuery export. This field is set by the server and will // be ignored if provided on export creation or update. MostRecentEditor string `json:"mostRecentEditor,omitempty"` @@ -1830,12 +1830,12 @@ type GoogleCloudSecuritycenterV1BigQueryExport struct { Name string `json:"name,omitempty"` // Principal: Output only. The service account that needs permission to - // create table, upload data to the big query dataset. + // create table and upload data to the BigQuery dataset. Principal string `json:"principal,omitempty"` - // UpdateTime: Output only. The most recent time at which the big export - // was updated. This field is set by the server and will be ignored if - // provided on export creation or update. + // UpdateTime: Output only. The most recent time at which the BigQuery + // export was updated. This field is set by the server and will be + // ignored if provided on export creation or update. UpdateTime string `json:"updateTime,omitempty"` // ForceSendFields is a list of field names (e.g. "CreateTime") to @@ -1873,8 +1873,8 @@ type GoogleCloudSecuritycenterV1Binding struct { // Role: The Role or ClusterRole referenced by the binding. Role *Role `json:"role,omitempty"` - // Subjects: Represents the subjects(s) bound to the role. Not always - // available for PATCH requests. + // Subjects: Represents one or more subjects that are bound to the role. + // Not always available for PATCH requests. Subjects []*Subject `json:"subjects,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to @@ -3138,16 +3138,18 @@ func (s *IamBinding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Indicator: Represents what's commonly known as an Indicator of -// compromise (IoC) in computer forensics. This is an artifact observed +// Indicator: Represents what's commonly known as an _indicator of +// compromise_ (IoC) in computer forensics. This is an artifact observed // on a network or in an operating system that, with high confidence, -// indicates a computer intrusion. Reference: -// https://en.wikipedia.org/wiki/Indicator_of_compromise +// indicates a computer intrusion. For more information, see Indicator +// of compromise +// (https://en.wikipedia.org/wiki/Indicator_of_compromise). type Indicator struct { // Domains: List of domains associated to the Finding. Domains []string `json:"domains,omitempty"` - // IpAddresses: List of ip addresses associated to the Finding. + // IpAddresses: The list of IP addresses that are associated with the + // finding. IpAddresses []string `json:"ipAddresses,omitempty"` // Signatures: The list of matched signatures indicating that the given @@ -3186,7 +3188,7 @@ type KernelRootkit struct { Name string `json:"name,omitempty"` // UnexpectedCodeModification: True when unexpected modifications of - // kernel read-only data memory are present. + // kernel code memory are present. UnexpectedCodeModification bool `json:"unexpectedCodeModification,omitempty"` // UnexpectedFtraceHandler: True when `ftrace` points are present with @@ -3212,8 +3214,8 @@ type KernelRootkit struct { // but not in the process task list. UnexpectedProcessesInRunqueue bool `json:"unexpectedProcessesInRunqueue,omitempty"` - // UnexpectedReadOnlyDataModification: Flag indicating unexpected - // modifications of kernel read-only data memory. + // UnexpectedReadOnlyDataModification: True when unexpected + // modifications of kernel read-only data memory are present. UnexpectedReadOnlyDataModification bool `json:"unexpectedReadOnlyDataModification,omitempty"` // UnexpectedSystemCallHandler: True when system call handlers that are @@ -3243,7 +3245,7 @@ func (s *KernelRootkit) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Kubernetes: Kubernetes related attributes. +// Kubernetes: Kubernetes-related attributes. type Kubernetes struct { // AccessReviews: Provides information on any Kubernetes access reviews // (i.e. privilege checks) relevant to the finding. diff --git a/securitycenter/v1beta2/securitycenter-api.json b/securitycenter/v1beta2/securitycenter-api.json index fb1f5ce7846..0f63b7a3fee 100644 --- a/securitycenter/v1beta2/securitycenter-api.json +++ b/securitycenter/v1beta2/securitycenter-api.json @@ -1981,7 +1981,7 @@ } } }, - "revision": "20221205", + "revision": "20221220", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -2187,11 +2187,11 @@ "type": "object" }, "Contact": { - "description": "Representa a single contact's email address", + "description": "The email address of a contact.", "id": "Contact", "properties": { "email": { - "description": "An email address e.g. \"person123@company.com\"", + "description": "An email address. For example, \"`person123@company.com`\".", "type": "string" } }, @@ -2896,7 +2896,7 @@ }, "vulnerability": { "$ref": "Vulnerability", - "description": "Represents vulnerability-specific fields like CVE and CVS scores. CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)" + "description": "Represents vulnerability-specific fields like CVE and CVSS scores. CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)" } }, "type": "object" @@ -2932,7 +2932,7 @@ "id": "GoogleCloudSecuritycenterV1BigQueryExport", "properties": { "createTime": { - "description": "Output only. The time at which the big query export was created. This field is set by the server and will be ignored if provided on export on creation.", + "description": "Output only. The time at which the BigQuery export was created. This field is set by the server and will be ignored if provided on export on creation.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -2950,7 +2950,7 @@ "type": "string" }, "mostRecentEditor": { - "description": "Output only. Email address of the user who last edited the big query export. This field is set by the server and will be ignored if provided on export creation or update.", + "description": "Output only. Email address of the user who last edited the BigQuery export. This field is set by the server and will be ignored if provided on export creation or update.", "readOnly": true, "type": "string" }, @@ -2959,12 +2959,12 @@ "type": "string" }, "principal": { - "description": "Output only. The service account that needs permission to create table, upload data to the big query dataset.", + "description": "Output only. The service account that needs permission to create table and upload data to the BigQuery dataset.", "readOnly": true, "type": "string" }, "updateTime": { - "description": "Output only. The most recent time at which the big export was updated. This field is set by the server and will be ignored if provided on export creation or update.", + "description": "Output only. The most recent time at which the BigQuery export was updated. This field is set by the server and will be ignored if provided on export creation or update.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -2989,7 +2989,7 @@ "description": "The Role or ClusterRole referenced by the binding." }, "subjects": { - "description": "Represents the subjects(s) bound to the role. Not always available for PATCH requests.", + "description": "Represents one or more subjects that are bound to the role. Not always available for PATCH requests.", "items": { "$ref": "Subject" }, @@ -3546,7 +3546,7 @@ "type": "object" }, "Indicator": { - "description": "Represents what's commonly known as an Indicator of compromise (IoC) in computer forensics. This is an artifact observed on a network or in an operating system that, with high confidence, indicates a computer intrusion. Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise", + "description": "Represents what's commonly known as an _indicator of compromise_ (IoC) in computer forensics. This is an artifact observed on a network or in an operating system that, with high confidence, indicates a computer intrusion. For more information, see [Indicator of compromise](https://en.wikipedia.org/wiki/Indicator_of_compromise).", "id": "Indicator", "properties": { "domains": { @@ -3557,7 +3557,7 @@ "type": "array" }, "ipAddresses": { - "description": "List of ip addresses associated to the Finding.", + "description": "The list of IP addresses that are associated with the finding.", "items": { "type": "string" }, @@ -3589,7 +3589,7 @@ "type": "string" }, "unexpectedCodeModification": { - "description": "True when unexpected modifications of kernel read-only data memory are present.", + "description": "True when unexpected modifications of kernel code memory are present.", "type": "boolean" }, "unexpectedFtraceHandler": { @@ -3613,7 +3613,7 @@ "type": "boolean" }, "unexpectedReadOnlyDataModification": { - "description": "Flag indicating unexpected modifications of kernel read-only data memory.", + "description": "True when unexpected modifications of kernel read-only data memory are present.", "type": "boolean" }, "unexpectedSystemCallHandler": { @@ -3624,7 +3624,7 @@ "type": "object" }, "Kubernetes": { - "description": "Kubernetes related attributes.", + "description": "Kubernetes-related attributes.", "id": "Kubernetes", "properties": { "accessReviews": { diff --git a/securitycenter/v1beta2/securitycenter-gen.go b/securitycenter/v1beta2/securitycenter-gen.go index cb6e2dd2922..a807815b88d 100644 --- a/securitycenter/v1beta2/securitycenter-gen.go +++ b/securitycenter/v1beta2/securitycenter-gen.go @@ -727,9 +727,9 @@ func (s *Connection) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Contact: Representa a single contact's email address +// Contact: The email address of a contact. type Contact struct { - // Email: An email address e.g. "person123@company.com" + // Email: An email address. For example, "person123@company.com". Email string `json:"email,omitempty"` // ForceSendFields is a list of field names (e.g. "Email") to @@ -1707,7 +1707,7 @@ type Finding struct { State string `json:"state,omitempty"` // Vulnerability: Represents vulnerability-specific fields like CVE and - // CVS scores. CVE stands for Common Vulnerabilities and Exposures + // CVSS scores. CVE stands for Common Vulnerabilities and Exposures // (https://cve.mitre.org/about/) Vulnerability *Vulnerability `json:"vulnerability,omitempty"` @@ -1800,7 +1800,7 @@ func (s *Geolocation) MarshalJSON() ([]byte, error) { // GoogleCloudSecuritycenterV1BigQueryExport: Configures how to deliver // Findings to BigQuery Instance. type GoogleCloudSecuritycenterV1BigQueryExport struct { - // CreateTime: Output only. The time at which the big query export was + // CreateTime: Output only. The time at which the BigQuery export was // created. This field is set by the server and will be ignored if // provided on export on creation. CreateTime string `json:"createTime,omitempty"` @@ -1828,7 +1828,7 @@ type GoogleCloudSecuritycenterV1BigQueryExport struct { Filter string `json:"filter,omitempty"` // MostRecentEditor: Output only. Email address of the user who last - // edited the big query export. This field is set by the server and will + // edited the BigQuery export. This field is set by the server and will // be ignored if provided on export creation or update. MostRecentEditor string `json:"mostRecentEditor,omitempty"` @@ -1843,12 +1843,12 @@ type GoogleCloudSecuritycenterV1BigQueryExport struct { Name string `json:"name,omitempty"` // Principal: Output only. The service account that needs permission to - // create table, upload data to the big query dataset. + // create table and upload data to the BigQuery dataset. Principal string `json:"principal,omitempty"` - // UpdateTime: Output only. The most recent time at which the big export - // was updated. This field is set by the server and will be ignored if - // provided on export creation or update. + // UpdateTime: Output only. The most recent time at which the BigQuery + // export was updated. This field is set by the server and will be + // ignored if provided on export creation or update. UpdateTime string `json:"updateTime,omitempty"` // ForceSendFields is a list of field names (e.g. "CreateTime") to @@ -1886,8 +1886,8 @@ type GoogleCloudSecuritycenterV1Binding struct { // Role: The Role or ClusterRole referenced by the binding. Role *Role `json:"role,omitempty"` - // Subjects: Represents the subjects(s) bound to the role. Not always - // available for PATCH requests. + // Subjects: Represents one or more subjects that are bound to the role. + // Not always available for PATCH requests. Subjects []*Subject `json:"subjects,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to @@ -2735,16 +2735,18 @@ func (s *IamBinding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Indicator: Represents what's commonly known as an Indicator of -// compromise (IoC) in computer forensics. This is an artifact observed +// Indicator: Represents what's commonly known as an _indicator of +// compromise_ (IoC) in computer forensics. This is an artifact observed // on a network or in an operating system that, with high confidence, -// indicates a computer intrusion. Reference: -// https://en.wikipedia.org/wiki/Indicator_of_compromise +// indicates a computer intrusion. For more information, see Indicator +// of compromise +// (https://en.wikipedia.org/wiki/Indicator_of_compromise). type Indicator struct { // Domains: List of domains associated to the Finding. Domains []string `json:"domains,omitempty"` - // IpAddresses: List of ip addresses associated to the Finding. + // IpAddresses: The list of IP addresses that are associated with the + // finding. IpAddresses []string `json:"ipAddresses,omitempty"` // Signatures: The list of matched signatures indicating that the given @@ -2783,7 +2785,7 @@ type KernelRootkit struct { Name string `json:"name,omitempty"` // UnexpectedCodeModification: True when unexpected modifications of - // kernel read-only data memory are present. + // kernel code memory are present. UnexpectedCodeModification bool `json:"unexpectedCodeModification,omitempty"` // UnexpectedFtraceHandler: True when `ftrace` points are present with @@ -2809,8 +2811,8 @@ type KernelRootkit struct { // but not in the process task list. UnexpectedProcessesInRunqueue bool `json:"unexpectedProcessesInRunqueue,omitempty"` - // UnexpectedReadOnlyDataModification: Flag indicating unexpected - // modifications of kernel read-only data memory. + // UnexpectedReadOnlyDataModification: True when unexpected + // modifications of kernel read-only data memory are present. UnexpectedReadOnlyDataModification bool `json:"unexpectedReadOnlyDataModification,omitempty"` // UnexpectedSystemCallHandler: True when system call handlers that are @@ -2840,7 +2842,7 @@ func (s *KernelRootkit) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Kubernetes: Kubernetes related attributes. +// Kubernetes: Kubernetes-related attributes. type Kubernetes struct { // AccessReviews: Provides information on any Kubernetes access reviews // (i.e. privilege checks) relevant to the finding. diff --git a/servicenetworking/v1/servicenetworking-api.json b/servicenetworking/v1/servicenetworking-api.json index df0676133af..3d688fd055a 100644 --- a/servicenetworking/v1/servicenetworking-api.json +++ b/servicenetworking/v1/servicenetworking-api.json @@ -865,7 +865,7 @@ } } }, - "revision": "20221115", + "revision": "20221218", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -975,6 +975,10 @@ "description": "Request to create a subnetwork in a previously peered service network.", "id": "AddSubnetworkRequest", "properties": { + "allowSubnetCidrRoutesOverlap": { + "description": "Optional. Defines the allowSubnetCidrRoutesOverlap field of the subnet, e.g. Available in alpha and beta according to [Compute API documentation](https://cloud.google.com/compute/docs/reference/rest/beta/subnetworks/insert)", + "type": "boolean" + }, "checkServiceNetworkingUsePermission": { "description": "Optional. The IAM permission check determines whether the consumer project has 'servicenetworking.services.use' permission or not.", "type": "boolean" @@ -997,7 +1001,7 @@ "type": "string" }, "ipPrefixLength": { - "description": "Required. The prefix length of the subnet's IP address range. Use CIDR range notation, such as `30` to provision a subnet with an `x.x.x.x/30` CIDR range. The IP address range is drawn from a pool of available ranges in the service consumer's allocated range.", + "description": "Required. The prefix length of the subnet's IP address range. Use CIDR range notation, such as `29` to provision a subnet with an `x.x.x.x/29` CIDR range. The IP address range is drawn from a pool of available ranges in the service consumer's allocated range. GCE disallows subnets with prefix_length \u003e 29", "format": "int32", "type": "integer" }, @@ -3046,7 +3050,7 @@ "id": "RangeReservation", "properties": { "ipPrefixLength": { - "description": "Required. The size of the desired subnet. Use usual CIDR range notation. For example, '30' to find unused x.x.x.x/30 CIDR range. The goal is to determine if one of the allocated ranges has enough free space for a subnet of the requested size.", + "description": "Required. The size of the desired subnet. Use usual CIDR range notation. For example, '29' to find unused x.x.x.x/29 CIDR range. The goal is to determine if one of the allocated ranges has enough free space for a subnet of the requested size. GCE disallows subnets with prefix_length \u003e 29", "format": "int32", "type": "integer" }, @@ -3058,7 +3062,7 @@ "type": "array" }, "secondaryRangeIpPrefixLengths": { - "description": "Optional. The size of the desired secondary ranges for the subnet. Use usual CIDR range notation. For example, '30' to find unused x.x.x.x/30 CIDR range. The goal is to determine that the allocated ranges have enough free space for all the requested secondary ranges.", + "description": "Optional. The size of the desired secondary ranges for the subnet. Use usual CIDR range notation. For example, '29' to find unused x.x.x.x/29 CIDR range. The goal is to determine that the allocated ranges have enough free space for all the requested secondary ranges. GCE disallows subnets with prefix_length \u003e 29", "items": { "format": "int32", "type": "integer" diff --git a/servicenetworking/v1/servicenetworking-gen.go b/servicenetworking/v1/servicenetworking-gen.go index 3c560e29b9a..e89fd909ea1 100644 --- a/servicenetworking/v1/servicenetworking-gen.go +++ b/servicenetworking/v1/servicenetworking-gen.go @@ -467,6 +467,12 @@ func (s *AddRolesResponse) MarshalJSON() ([]byte, error) { // AddSubnetworkRequest: Request to create a subnetwork in a previously // peered service network. type AddSubnetworkRequest struct { + // AllowSubnetCidrRoutesOverlap: Optional. Defines the + // allowSubnetCidrRoutesOverlap field of the subnet, e.g. Available in + // alpha and beta according to Compute API documentation + // (https://cloud.google.com/compute/docs/reference/rest/beta/subnetworks/insert) + AllowSubnetCidrRoutesOverlap bool `json:"allowSubnetCidrRoutesOverlap,omitempty"` + // CheckServiceNetworkingUsePermission: Optional. The IAM permission // check determines whether the consumer project has // 'servicenetworking.services.use' permission or not. @@ -505,10 +511,10 @@ type AddSubnetworkRequest struct { Description string `json:"description,omitempty"` // IpPrefixLength: Required. The prefix length of the subnet's IP - // address range. Use CIDR range notation, such as `30` to provision a - // subnet with an `x.x.x.x/30` CIDR range. The IP address range is drawn + // address range. Use CIDR range notation, such as `29` to provision a + // subnet with an `x.x.x.x/29` CIDR range. The IP address range is drawn // from a pool of available ranges in the service consumer's allocated - // range. + // range. GCE disallows subnets with prefix_length > 29 IpPrefixLength int64 `json:"ipPrefixLength,omitempty"` // OutsideAllocationPublicIpRange: Optional. Enable outside allocation @@ -575,21 +581,21 @@ type AddSubnetworkRequest struct { UseCustomComputeIdempotencyWindow bool `json:"useCustomComputeIdempotencyWindow,omitempty"` // ForceSendFields is a list of field names (e.g. - // "CheckServiceNetworkingUsePermission") to unconditionally include in - // API requests. By default, fields with empty or default values are - // omitted from API requests. However, any non-pointer, non-interface - // field appearing in ForceSendFields will be sent to the server - // regardless of whether the field is empty or not. This may be used to - // include empty fields in Patch requests. + // "AllowSubnetCidrRoutesOverlap") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. - // "CheckServiceNetworkingUsePermission") to include in API requests - // with the JSON null value. By default, fields with empty values are - // omitted from API requests. However, any field with an empty value - // appearing in NullFields will be sent to the server as null. It is an - // error if a field in this list has a non-empty value. This may be used - // to include null fields in Patch requests. + // "AllowSubnetCidrRoutesOverlap") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. NullFields []string `json:"-"` } @@ -4457,9 +4463,10 @@ func (s *Range) MarshalJSON() ([]byte, error) { // RangeReservation: Represents a range reservation. type RangeReservation struct { // IpPrefixLength: Required. The size of the desired subnet. Use usual - // CIDR range notation. For example, '30' to find unused x.x.x.x/30 CIDR + // CIDR range notation. For example, '29' to find unused x.x.x.x/29 CIDR // range. The goal is to determine if one of the allocated ranges has - // enough free space for a subnet of the requested size. + // enough free space for a subnet of the requested size. GCE disallows + // subnets with prefix_length > 29 IpPrefixLength int64 `json:"ipPrefixLength,omitempty"` // RequestedRanges: Optional. The name of one or more allocated IP @@ -4472,9 +4479,10 @@ type RangeReservation struct { // SecondaryRangeIpPrefixLengths: Optional. The size of the desired // secondary ranges for the subnet. Use usual CIDR range notation. For - // example, '30' to find unused x.x.x.x/30 CIDR range. The goal is to + // example, '29' to find unused x.x.x.x/29 CIDR range. The goal is to // determine that the allocated ranges have enough free space for all - // the requested secondary ranges. + // the requested secondary ranges. GCE disallows subnets with + // prefix_length > 29 SecondaryRangeIpPrefixLengths []int64 `json:"secondaryRangeIpPrefixLengths,omitempty"` // SubnetworkCandidates: Optional. List of subnetwork candidates to diff --git a/sheets/v4/sheets-api.json b/sheets/v4/sheets-api.json index 6b1b36ca14c..c71278ab608 100644 --- a/sheets/v4/sheets-api.json +++ b/sheets/v4/sheets-api.json @@ -169,7 +169,7 @@ ] }, "get": { - "description": "Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. By default, data within grids is not returned. You can include grid data in one of 2 ways: * Specify a field mask listing your desired fields using the `fields` URL parameter in HTTP * Set the includeGridData URL parameter to true. If a field mask is set, the `includeGridData` parameter is ignored For large spreadsheets, as a best practice, retrieve only the specific spreadsheet fields that you want. To retrieve only subsets of spreadsheet data, use the ranges URL parameter. Ranges are specified using [A1 notation](/sheets/api/guides/concepts#cell). You can define a single cell (for example, `A1`) or multiple cells (for example, `A1:D5`). You can also get cells from other sheets within the same spreadsheet (for example, `Sheet2!A1:C4`) or retrieve multiple ranges at once (for example, `?ranges=A1:D5\u0026ranges=Sheet2!A1:C4`). Limiting the range returns only the portions of the spreadsheet that intersect the requested ranges.", + "description": "Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. By default, data within grids is not returned. You can include grid data in one of 2 ways: * Specify a [field mask](https://developers.google.com/sheets/api/guides/field-masks) listing your desired fields using the `fields` URL parameter in HTTP * Set the includeGridData URL parameter to true. If a field mask is set, the `includeGridData` parameter is ignored For large spreadsheets, as a best practice, retrieve only the specific spreadsheet fields that you want. To retrieve only subsets of spreadsheet data, use the ranges URL parameter. Ranges are specified using [A1 notation](/sheets/api/guides/concepts#cell). You can define a single cell (for example, `A1`) or multiple cells (for example, `A1:D5`). You can also get cells from other sheets within the same spreadsheet (for example, `Sheet2!A1:C4`) or retrieve multiple ranges at once (for example, `?ranges=A1:D5\u0026ranges=Sheet2!A1:C4`). Limiting the range returns only the portions of the spreadsheet that intersect the requested ranges.", "flatPath": "v4/spreadsheets/{spreadsheetId}", "httpMethod": "GET", "id": "sheets.spreadsheets.get", @@ -208,7 +208,7 @@ ] }, "getByDataFilter": { - "description": "Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. This method differs from GetSpreadsheet in that it allows selecting which subsets of spreadsheet data to return by specifying a dataFilters parameter. Multiple DataFilters can be specified. Specifying one or more data filters returns the portions of the spreadsheet that intersect ranges matched by any of the filters. By default, data within grids is not returned. You can include grid data one of 2 ways: * Specify a field mask listing your desired fields using the `fields` URL parameter in HTTP * Set the includeGridData parameter to true. If a field mask is set, the `includeGridData` parameter is ignored For large spreadsheets, as a best practice, retrieve only the specific spreadsheet fields that you want.", + "description": "Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. This method differs from GetSpreadsheet in that it allows selecting which subsets of spreadsheet data to return by specifying a dataFilters parameter. Multiple DataFilters can be specified. Specifying one or more data filters returns the portions of the spreadsheet that intersect ranges matched by any of the filters. By default, data within grids is not returned. You can include grid data one of 2 ways: * Specify a [field mask](https://developers.google.com/sheets/api/guides/field-masks) listing your desired fields using the `fields` URL parameter in HTTP * Set the includeGridData parameter to true. If a field mask is set, the `includeGridData` parameter is ignored For large spreadsheets, as a best practice, retrieve only the specific spreadsheet fields that you want.", "flatPath": "v4/spreadsheets/{spreadsheetId}:getByDataFilter", "httpMethod": "POST", "id": "sheets.spreadsheets.getByDataFilter", @@ -870,7 +870,7 @@ } } }, - "revision": "20221005", + "revision": "20221219", "rootUrl": "https://sheets.googleapis.com/", "schemas": { "AddBandingRequest": { diff --git a/sheets/v4/sheets-gen.go b/sheets/v4/sheets-gen.go index f46271a840b..2c574a18a7d 100644 --- a/sheets/v4/sheets-gen.go +++ b/sheets/v4/sheets-gen.go @@ -11895,19 +11895,19 @@ type SpreadsheetsGetCall struct { // Get: Returns the spreadsheet at the given ID. The caller must specify // the spreadsheet ID. By default, data within grids is not returned. // You can include grid data in one of 2 ways: * Specify a field mask -// listing your desired fields using the `fields` URL parameter in HTTP -// * Set the includeGridData URL parameter to true. If a field mask is -// set, the `includeGridData` parameter is ignored For large -// spreadsheets, as a best practice, retrieve only the specific -// spreadsheet fields that you want. To retrieve only subsets of -// spreadsheet data, use the ranges URL parameter. Ranges are specified -// using A1 notation (/sheets/api/guides/concepts#cell). You can define -// a single cell (for example, `A1`) or multiple cells (for example, -// `A1:D5`). You can also get cells from other sheets within the same -// spreadsheet (for example, `Sheet2!A1:C4`) or retrieve multiple ranges -// at once (for example, `?ranges=A1:D5&ranges=Sheet2!A1:C4`). Limiting -// the range returns only the portions of the spreadsheet that intersect -// the requested ranges. +// (https://developers.google.com/sheets/api/guides/field-masks) listing +// your desired fields using the `fields` URL parameter in HTTP * Set +// the includeGridData URL parameter to true. If a field mask is set, +// the `includeGridData` parameter is ignored For large spreadsheets, as +// a best practice, retrieve only the specific spreadsheet fields that +// you want. To retrieve only subsets of spreadsheet data, use the +// ranges URL parameter. Ranges are specified using A1 notation +// (/sheets/api/guides/concepts#cell). You can define a single cell (for +// example, `A1`) or multiple cells (for example, `A1:D5`). You can also +// get cells from other sheets within the same spreadsheet (for example, +// `Sheet2!A1:C4`) or retrieve multiple ranges at once (for example, +// `?ranges=A1:D5&ranges=Sheet2!A1:C4`). Limiting the range returns only +// the portions of the spreadsheet that intersect the requested ranges. // // - spreadsheetId: The spreadsheet to request. func (r *SpreadsheetsService) Get(spreadsheetId string) *SpreadsheetsGetCall { @@ -12030,7 +12030,7 @@ func (c *SpreadsheetsGetCall) Do(opts ...googleapi.CallOption) (*Spreadsheet, er } return ret, nil // { - // "description": "Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. By default, data within grids is not returned. You can include grid data in one of 2 ways: * Specify a field mask listing your desired fields using the `fields` URL parameter in HTTP * Set the includeGridData URL parameter to true. If a field mask is set, the `includeGridData` parameter is ignored For large spreadsheets, as a best practice, retrieve only the specific spreadsheet fields that you want. To retrieve only subsets of spreadsheet data, use the ranges URL parameter. Ranges are specified using [A1 notation](/sheets/api/guides/concepts#cell). You can define a single cell (for example, `A1`) or multiple cells (for example, `A1:D5`). You can also get cells from other sheets within the same spreadsheet (for example, `Sheet2!A1:C4`) or retrieve multiple ranges at once (for example, `?ranges=A1:D5\u0026ranges=Sheet2!A1:C4`). Limiting the range returns only the portions of the spreadsheet that intersect the requested ranges.", + // "description": "Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. By default, data within grids is not returned. You can include grid data in one of 2 ways: * Specify a [field mask](https://developers.google.com/sheets/api/guides/field-masks) listing your desired fields using the `fields` URL parameter in HTTP * Set the includeGridData URL parameter to true. If a field mask is set, the `includeGridData` parameter is ignored For large spreadsheets, as a best practice, retrieve only the specific spreadsheet fields that you want. To retrieve only subsets of spreadsheet data, use the ranges URL parameter. Ranges are specified using [A1 notation](/sheets/api/guides/concepts#cell). You can define a single cell (for example, `A1`) or multiple cells (for example, `A1:D5`). You can also get cells from other sheets within the same spreadsheet (for example, `Sheet2!A1:C4`) or retrieve multiple ranges at once (for example, `?ranges=A1:D5\u0026ranges=Sheet2!A1:C4`). Limiting the range returns only the portions of the spreadsheet that intersect the requested ranges.", // "flatPath": "v4/spreadsheets/{spreadsheetId}", // "httpMethod": "GET", // "id": "sheets.spreadsheets.get", @@ -12090,11 +12090,12 @@ type SpreadsheetsGetByDataFilterCall struct { // filters returns the portions of the spreadsheet that intersect ranges // matched by any of the filters. By default, data within grids is not // returned. You can include grid data one of 2 ways: * Specify a field -// mask listing your desired fields using the `fields` URL parameter in -// HTTP * Set the includeGridData parameter to true. If a field mask is -// set, the `includeGridData` parameter is ignored For large -// spreadsheets, as a best practice, retrieve only the specific -// spreadsheet fields that you want. +// mask (https://developers.google.com/sheets/api/guides/field-masks) +// listing your desired fields using the `fields` URL parameter in HTTP +// * Set the includeGridData parameter to true. If a field mask is set, +// the `includeGridData` parameter is ignored For large spreadsheets, as +// a best practice, retrieve only the specific spreadsheet fields that +// you want. // // - spreadsheetId: The spreadsheet to request. func (r *SpreadsheetsService) GetByDataFilter(spreadsheetId string, getspreadsheetbydatafilterrequest *GetSpreadsheetByDataFilterRequest) *SpreadsheetsGetByDataFilterCall { @@ -12195,7 +12196,7 @@ func (c *SpreadsheetsGetByDataFilterCall) Do(opts ...googleapi.CallOption) (*Spr } return ret, nil // { - // "description": "Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. This method differs from GetSpreadsheet in that it allows selecting which subsets of spreadsheet data to return by specifying a dataFilters parameter. Multiple DataFilters can be specified. Specifying one or more data filters returns the portions of the spreadsheet that intersect ranges matched by any of the filters. By default, data within grids is not returned. You can include grid data one of 2 ways: * Specify a field mask listing your desired fields using the `fields` URL parameter in HTTP * Set the includeGridData parameter to true. If a field mask is set, the `includeGridData` parameter is ignored For large spreadsheets, as a best practice, retrieve only the specific spreadsheet fields that you want.", + // "description": "Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. This method differs from GetSpreadsheet in that it allows selecting which subsets of spreadsheet data to return by specifying a dataFilters parameter. Multiple DataFilters can be specified. Specifying one or more data filters returns the portions of the spreadsheet that intersect ranges matched by any of the filters. By default, data within grids is not returned. You can include grid data one of 2 ways: * Specify a [field mask](https://developers.google.com/sheets/api/guides/field-masks) listing your desired fields using the `fields` URL parameter in HTTP * Set the includeGridData parameter to true. If a field mask is set, the `includeGridData` parameter is ignored For large spreadsheets, as a best practice, retrieve only the specific spreadsheet fields that you want.", // "flatPath": "v4/spreadsheets/{spreadsheetId}:getByDataFilter", // "httpMethod": "POST", // "id": "sheets.spreadsheets.getByDataFilter", diff --git a/slides/v1/slides-api.json b/slides/v1/slides-api.json index 41fb10c2683..b0e347364f3 100644 --- a/slides/v1/slides-api.json +++ b/slides/v1/slides-api.json @@ -313,7 +313,7 @@ } } }, - "revision": "20220722", + "revision": "20221207", "rootUrl": "https://slides.googleapis.com/", "schemas": { "AffineTransform": { @@ -532,14 +532,14 @@ "properties": { "elementProperties": { "$ref": "PageElementProperties", - "description": "The element properties for the image. When the aspect ratio of the provided size does not match the image aspect ratio, the image is scaled and centered with respect to the size in order to maintain aspect ratio. The provided transform is applied after this operation. The PageElementProperties.size property is optional. If you don't specify the size, the default size of the image is used. The PageElementProperties.transform property is optional. If you don't specify a transform, the image will be placed at the top left corner of the page." + "description": "The element properties for the image. When the aspect ratio of the provided size does not match the image aspect ratio, the image is scaled and centered with respect to the size in order to maintain the aspect ratio. The provided transform is applied after this operation. The PageElementProperties.size property is optional. If you don't specify the size, the default size of the image is used. The PageElementProperties.transform property is optional. If you don't specify a transform, the image will be placed at the top-left corner of the page." }, "objectId": { "description": "A user-supplied object ID. If you specify an ID, it must be unique among all pages and page elements in the presentation. The ID must start with an alphanumeric character or an underscore (matches regex `[a-zA-Z0-9_]`); remaining characters may include those as well as a hyphen or colon (matches regex `[a-zA-Z0-9_-:]`). The length of the ID must not be less than 5 or greater than 50. If you don't specify an ID, a unique one is generated.", "type": "string" }, "url": { - "description": "The image URL. The image is fetched once at insertion time and a copy is stored for display inside the presentation. Images must be less than 50MB in size, cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or GIF format. The provided URL can be at most 2 kB in length. The URL itself is saved with the image, and exposed via the Image.source_url field.", + "description": "The image URL. The image is fetched once at insertion time and a copy is stored for display inside the presentation. Images must be less than 50 MB in size, can't exceed 25 megapixels, and must be in one of PNG, JPEG, or GIF formats. The provided URL can be up to 2 KB in length. The URL is saved with the image, and exposed through the Image.source_url field.", "type": "string" } }, diff --git a/slides/v1/slides-gen.go b/slides/v1/slides-gen.go index 982af86d6c7..dc11174afa9 100644 --- a/slides/v1/slides-gen.go +++ b/slides/v1/slides-gen.go @@ -574,12 +574,12 @@ type CreateImageRequest struct { // ElementProperties: The element properties for the image. When the // aspect ratio of the provided size does not match the image aspect // ratio, the image is scaled and centered with respect to the size in - // order to maintain aspect ratio. The provided transform is applied + // order to maintain the aspect ratio. The provided transform is applied // after this operation. The PageElementProperties.size property is // optional. If you don't specify the size, the default size of the // image is used. The PageElementProperties.transform property is // optional. If you don't specify a transform, the image will be placed - // at the top left corner of the page. + // at the top-left corner of the page. ElementProperties *PageElementProperties `json:"elementProperties,omitempty"` // ObjectId: A user-supplied object ID. If you specify an ID, it must be @@ -593,10 +593,10 @@ type CreateImageRequest struct { // Url: The image URL. The image is fetched once at insertion time and a // copy is stored for display inside the presentation. Images must be - // less than 50MB in size, cannot exceed 25 megapixels, and must be in - // one of PNG, JPEG, or GIF format. The provided URL can be at most 2 kB - // in length. The URL itself is saved with the image, and exposed via - // the Image.source_url field. + // less than 50 MB in size, can't exceed 25 megapixels, and must be in + // one of PNG, JPEG, or GIF formats. The provided URL can be up to 2 KB + // in length. The URL is saved with the image, and exposed through the + // Image.source_url field. Url string `json:"url,omitempty"` // ForceSendFields is a list of field names (e.g. "ElementProperties") diff --git a/sqladmin/v1/sqladmin-api.json b/sqladmin/v1/sqladmin-api.json index 8fd94028695..47d02dcf5d1 100644 --- a/sqladmin/v1/sqladmin-api.json +++ b/sqladmin/v1/sqladmin-api.json @@ -1921,7 +1921,7 @@ } } }, - "revision": "20221116", + "revision": "20221209", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2312,6 +2312,7 @@ "MYSQL_8_0_28", "MYSQL_8_0_29", "MYSQL_8_0_30", + "MYSQL_8_0_31", "SQLSERVER_2019_STANDARD", "SQLSERVER_2019_ENTERPRISE", "SQLSERVER_2019_EXPRESS", @@ -2340,6 +2341,7 @@ "The database major version is MySQL 8.0 and the minor version is 28.", "The database major version is MySQL 8.0 and the minor version is 29.", "The database major version is MySQL 8.0 and the minor version is 30.", + "The database major version is MySQL 8.0 and the minor version is 31.", "The database version is SQL Server 2019 Standard.", "The database version is SQL Server 2019 Enterprise.", "The database version is SQL Server 2019 Express.", @@ -2498,6 +2500,7 @@ "MYSQL_8_0_28", "MYSQL_8_0_29", "MYSQL_8_0_30", + "MYSQL_8_0_31", "SQLSERVER_2019_STANDARD", "SQLSERVER_2019_ENTERPRISE", "SQLSERVER_2019_EXPRESS", @@ -2526,6 +2529,7 @@ "The database major version is MySQL 8.0 and the minor version is 28.", "The database major version is MySQL 8.0 and the minor version is 29.", "The database major version is MySQL 8.0 and the minor version is 30.", + "The database major version is MySQL 8.0 and the minor version is 31.", "The database version is SQL Server 2019 Standard.", "The database version is SQL Server 2019 Enterprise.", "The database version is SQL Server 2019 Express.", @@ -3030,6 +3034,7 @@ "MYSQL_8_0_28", "MYSQL_8_0_29", "MYSQL_8_0_30", + "MYSQL_8_0_31", "SQLSERVER_2019_STANDARD", "SQLSERVER_2019_ENTERPRISE", "SQLSERVER_2019_EXPRESS", @@ -3058,6 +3063,7 @@ "The database major version is MySQL 8.0 and the minor version is 28.", "The database major version is MySQL 8.0 and the minor version is 29.", "The database major version is MySQL 8.0 and the minor version is 30.", + "The database major version is MySQL 8.0 and the minor version is 31.", "The database version is SQL Server 2019 Standard.", "The database version is SQL Server 2019 Enterprise.", "The database version is SQL Server 2019 Express.", diff --git a/sqladmin/v1/sqladmin-gen.go b/sqladmin/v1/sqladmin-gen.go index 12c4aab94d2..279a5bcafaa 100644 --- a/sqladmin/v1/sqladmin-gen.go +++ b/sqladmin/v1/sqladmin-gen.go @@ -805,6 +805,8 @@ type ConnectSettings struct { // minor version is 29. // "MYSQL_8_0_30" - The database major version is MySQL 8.0 and the // minor version is 30. + // "MYSQL_8_0_31" - The database major version is MySQL 8.0 and the + // minor version is 31. // "SQLSERVER_2019_STANDARD" - The database version is SQL Server 2019 // Standard. // "SQLSERVER_2019_ENTERPRISE" - The database version is SQL Server @@ -1029,6 +1031,8 @@ type DatabaseInstance struct { // minor version is 29. // "MYSQL_8_0_30" - The database major version is MySQL 8.0 and the // minor version is 30. + // "MYSQL_8_0_31" - The database major version is MySQL 8.0 and the + // minor version is 31. // "SQLSERVER_2019_STANDARD" - The database version is SQL Server 2019 // Standard. // "SQLSERVER_2019_ENTERPRISE" - The database version is SQL Server @@ -1843,6 +1847,8 @@ type Flag struct { // minor version is 29. // "MYSQL_8_0_30" - The database major version is MySQL 8.0 and the // minor version is 30. + // "MYSQL_8_0_31" - The database major version is MySQL 8.0 and the + // minor version is 31. // "SQLSERVER_2019_STANDARD" - The database version is SQL Server 2019 // Standard. // "SQLSERVER_2019_ENTERPRISE" - The database version is SQL Server diff --git a/sqladmin/v1beta4/sqladmin-api.json b/sqladmin/v1beta4/sqladmin-api.json index 59147d40806..67a99eeb85b 100644 --- a/sqladmin/v1beta4/sqladmin-api.json +++ b/sqladmin/v1beta4/sqladmin-api.json @@ -1921,7 +1921,7 @@ } } }, - "revision": "20221116", + "revision": "20221209", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2312,6 +2312,7 @@ "MYSQL_8_0_28", "MYSQL_8_0_29", "MYSQL_8_0_30", + "MYSQL_8_0_31", "SQLSERVER_2019_STANDARD", "SQLSERVER_2019_ENTERPRISE", "SQLSERVER_2019_EXPRESS", @@ -2340,6 +2341,7 @@ "The database major version is MySQL 8.0 and the minor version is 28.", "The database major version is MySQL 8.0 and the minor version is 29.", "The database major version is MySQL 8.0 and the minor version is 30.", + "The database major version is MySQL 8.0 and the minor version is 31.", "The database version is SQL Server 2019 Standard.", "The database version is SQL Server 2019 Enterprise.", "The database version is SQL Server 2019 Express.", @@ -2498,6 +2500,7 @@ "MYSQL_8_0_28", "MYSQL_8_0_29", "MYSQL_8_0_30", + "MYSQL_8_0_31", "SQLSERVER_2019_STANDARD", "SQLSERVER_2019_ENTERPRISE", "SQLSERVER_2019_EXPRESS", @@ -2526,6 +2529,7 @@ "The database major version is MySQL 8.0 and the minor version is 28.", "The database major version is MySQL 8.0 and the minor version is 29.", "The database major version is MySQL 8.0 and the minor version is 30.", + "The database major version is MySQL 8.0 and the minor version is 31.", "The database version is SQL Server 2019 Standard.", "The database version is SQL Server 2019 Enterprise.", "The database version is SQL Server 2019 Express.", @@ -3030,6 +3034,7 @@ "MYSQL_8_0_28", "MYSQL_8_0_29", "MYSQL_8_0_30", + "MYSQL_8_0_31", "SQLSERVER_2019_STANDARD", "SQLSERVER_2019_ENTERPRISE", "SQLSERVER_2019_EXPRESS", @@ -3058,6 +3063,7 @@ "The database major version is MySQL 8.0 and the minor version is 28.", "The database major version is MySQL 8.0 and the minor version is 29.", "The database major version is MySQL 8.0 and the minor version is 30.", + "The database major version is MySQL 8.0 and the minor version is 31.", "The database version is SQL Server 2019 Standard.", "The database version is SQL Server 2019 Enterprise.", "The database version is SQL Server 2019 Express.", diff --git a/sqladmin/v1beta4/sqladmin-gen.go b/sqladmin/v1beta4/sqladmin-gen.go index 015acd581bb..c85d62922c3 100644 --- a/sqladmin/v1beta4/sqladmin-gen.go +++ b/sqladmin/v1beta4/sqladmin-gen.go @@ -805,6 +805,8 @@ type ConnectSettings struct { // minor version is 29. // "MYSQL_8_0_30" - The database major version is MySQL 8.0 and the // minor version is 30. + // "MYSQL_8_0_31" - The database major version is MySQL 8.0 and the + // minor version is 31. // "SQLSERVER_2019_STANDARD" - The database version is SQL Server 2019 // Standard. // "SQLSERVER_2019_ENTERPRISE" - The database version is SQL Server @@ -1028,6 +1030,8 @@ type DatabaseInstance struct { // minor version is 29. // "MYSQL_8_0_30" - The database major version is MySQL 8.0 and the // minor version is 30. + // "MYSQL_8_0_31" - The database major version is MySQL 8.0 and the + // minor version is 31. // "SQLSERVER_2019_STANDARD" - The database version is SQL Server 2019 // Standard. // "SQLSERVER_2019_ENTERPRISE" - The database version is SQL Server @@ -1842,6 +1846,8 @@ type Flag struct { // minor version is 29. // "MYSQL_8_0_30" - The database major version is MySQL 8.0 and the // minor version is 30. + // "MYSQL_8_0_31" - The database major version is MySQL 8.0 and the + // minor version is 31. // "SQLSERVER_2019_STANDARD" - The database version is SQL Server 2019 // Standard. // "SQLSERVER_2019_ENTERPRISE" - The database version is SQL Server diff --git a/testing/v1/testing-api.json b/testing/v1/testing-api.json index 143e68c62d8..9fccff90eb7 100644 --- a/testing/v1/testing-api.json +++ b/testing/v1/testing-api.json @@ -282,7 +282,7 @@ } } }, - "revision": "20221129", + "revision": "20221209", "rootUrl": "https://testing.googleapis.com/", "schemas": { "Account": { @@ -1868,7 +1868,6 @@ "INVALID_INPUT_APK", "INVALID_APK_PREVIEW_SDK", "MATRIX_TOO_LARGE", - "DEVICE_QUOTA_EXCEEDED", "TEST_QUOTA_EXCEEDED", "SERVICE_NOT_ACTIVATED", "UNKNOWN_PERMISSION_ERROR" @@ -1910,7 +1909,6 @@ "Either the provided input APK path was malformed, the APK file does not exist, or the user does not have permission to access the APK file.", "APK is built for a preview SDK which is unsupported", "The matrix expanded to contain too many executions.", - "Deprecated: Not enough device quota to run the executions in this matrix.", "Not enough test quota to run the executions in this matrix.", "A required cloud service api is not activated. See: https://firebase.google.com/docs/test-lab/android/continuous#requirements", "There was an unknown permission issue running this test." diff --git a/testing/v1/testing-gen.go b/testing/v1/testing-gen.go index e18f41700b4..84ce1105577 100644 --- a/testing/v1/testing-gen.go +++ b/testing/v1/testing-gen.go @@ -2802,8 +2802,6 @@ type TestMatrix struct { // unsupported // "MATRIX_TOO_LARGE" - The matrix expanded to contain too many // executions. - // "DEVICE_QUOTA_EXCEEDED" - Deprecated: Not enough device quota to - // run the executions in this matrix. // "TEST_QUOTA_EXCEEDED" - Not enough test quota to run the executions // in this matrix. // "SERVICE_NOT_ACTIVATED" - A required cloud service api is not diff --git a/texttospeech/v1/texttospeech-api.json b/texttospeech/v1/texttospeech-api.json index dae93b53100..aa25a1ed9e4 100644 --- a/texttospeech/v1/texttospeech-api.json +++ b/texttospeech/v1/texttospeech-api.json @@ -159,108 +159,110 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - }, - "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "flatPath": "v1/operations/{operationsId}", - "httpMethod": "GET", - "id": "texttospeech.operations.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource.", - "location": "path", - "pattern": "^operations/.*$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - "flatPath": "v1/operations", - "httpMethod": "GET", - "id": "texttospeech.operations.list", - "parameterOrder": [ - "name" - ], - "parameters": { - "filter": { - "description": "The standard list filter.", - "location": "query", - "type": "string" - }, - "name": { - "description": "The name of the operation's parent resource.", - "location": "path", - "pattern": "^operations$", - "required": true, - "type": "string" - }, - "pageSize": { - "description": "The standard list page size.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "The standard list page token.", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "ListOperationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] } } }, "projects": { "resources": { "locations": { + "methods": { + "synthesizeLongAudio": { + "description": "Synthesizes long form text asynchronously.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:synthesizeLongAudio", + "httpMethod": "POST", + "id": "texttospeech.projects.locations.synthesizeLongAudio", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "The resource states of the request in the form of `projects/*/locations/*/voices/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}:synthesizeLongAudio", + "request": { + "$ref": "SynthesizeLongAudioRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, "resources": { - "voices": { + "operations": { "methods": { - "synthesizeLongAudio": { - "description": "Synthesizes long form text asynchronously.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/voices/{voicesId}:SynthesizeLongAudio", - "httpMethod": "POST", - "id": "texttospeech.projects.locations.voices.synthesizeLongAudio", + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "texttospeech.projects.locations.operations.get", "parameterOrder": [ - "parent" + "name" ], "parameters": { - "parent": { - "description": "The resource states of the request in the form of projects/*/locations/*/voices/*.", + "name": { + "description": "The name of the operation resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/voices/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}:SynthesizeLongAudio", - "request": { - "$ref": "SynthesizeLongAudioRequest" - }, + "path": "v1/{+name}", "response": { "$ref": "Operation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "texttospeech.projects.locations.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "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" + ] } } } @@ -316,7 +318,7 @@ } } }, - "revision": "20221201", + "revision": "20221219", "rootUrl": "https://texttospeech.googleapis.com/", "schemas": { "AudioConfig": { diff --git a/texttospeech/v1/texttospeech-gen.go b/texttospeech/v1/texttospeech-gen.go index 5e3ec6cb447..39c526fafe1 100644 --- a/texttospeech/v1/texttospeech-gen.go +++ b/texttospeech/v1/texttospeech-gen.go @@ -171,22 +171,22 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} - rs.Voices = NewProjectsLocationsVoicesService(s) + rs.Operations = NewProjectsLocationsOperationsService(s) return rs } type ProjectsLocationsService struct { s *Service - Voices *ProjectsLocationsVoicesService + Operations *ProjectsLocationsOperationsService } -func NewProjectsLocationsVoicesService(s *Service) *ProjectsLocationsVoicesService { - rs := &ProjectsLocationsVoicesService{s: s} +func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { + rs := &ProjectsLocationsOperationsService{s: s} return rs } -type ProjectsLocationsVoicesService struct { +type ProjectsLocationsOperationsService struct { s *Service } @@ -1107,9 +1107,152 @@ func (c *OperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) } -// method id "texttospeech.operations.get": +// method id "texttospeech.projects.locations.synthesizeLongAudio": -type OperationsGetCall struct { +type ProjectsLocationsSynthesizeLongAudioCall struct { + s *Service + parent string + synthesizelongaudiorequest *SynthesizeLongAudioRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SynthesizeLongAudio: Synthesizes long form text asynchronously. +// +// - parent: The resource states of the request in the form of +// `projects/*/locations/*/voices/*`. +func (r *ProjectsLocationsService) SynthesizeLongAudio(parent string, synthesizelongaudiorequest *SynthesizeLongAudioRequest) *ProjectsLocationsSynthesizeLongAudioCall { + c := &ProjectsLocationsSynthesizeLongAudioCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.synthesizelongaudiorequest = synthesizelongaudiorequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsSynthesizeLongAudioCall) Fields(s ...googleapi.Field) *ProjectsLocationsSynthesizeLongAudioCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsSynthesizeLongAudioCall) Context(ctx context.Context) *ProjectsLocationsSynthesizeLongAudioCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsSynthesizeLongAudioCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSynthesizeLongAudioCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.synthesizelongaudiorequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:synthesizeLongAudio") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "texttospeech.projects.locations.synthesizeLongAudio" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsSynthesizeLongAudioCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Synthesizes long form text asynchronously.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:synthesizeLongAudio", + // "httpMethod": "POST", + // "id": "texttospeech.projects.locations.synthesizeLongAudio", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "The resource states of the request in the form of `projects/*/locations/*/voices/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}:synthesizeLongAudio", + // "request": { + // "$ref": "SynthesizeLongAudioRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "texttospeech.projects.locations.operations.get": + +type ProjectsLocationsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -1123,8 +1266,8 @@ type OperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *OperationsService) Get(name string) *OperationsGetCall { - c := &OperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { + c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -1132,7 +1275,7 @@ func (r *OperationsService) Get(name string) *OperationsGetCall { // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall { +func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -1142,7 +1285,7 @@ func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall { // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall { +func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -1150,21 +1293,21 @@ func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall { // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall { +func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -1190,14 +1333,14 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "texttospeech.operations.get" call. +// Do executes the "texttospeech.projects.locations.operations.get" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -1229,9 +1372,9 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) return ret, nil // { // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1/operations/{operationsId}", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "texttospeech.operations.get", + // "id": "texttospeech.projects.locations.operations.get", // "parameterOrder": [ // "name" // ], @@ -1239,7 +1382,7 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^operations/.*$", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -1255,9 +1398,9 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) } -// method id "texttospeech.operations.list": +// method id "texttospeech.projects.locations.operations.list": -type OperationsListCall struct { +type ProjectsLocationsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -1278,29 +1421,29 @@ type OperationsListCall struct { // collection id. // // - name: The name of the operation's parent resource. -func (r *OperationsService) List(name string) *OperationsListCall { - c := &OperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { + c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *OperationsListCall) Filter(filter string) *OperationsListCall { +func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *OperationsListCall) PageSize(pageSize int64) *OperationsListCall { +func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { +func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -1308,7 +1451,7 @@ func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall { +func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -1318,7 +1461,7 @@ func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall { // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OperationsListCall) IfNoneMatch(entityTag string) *OperationsListCall { +func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -1326,21 +1469,21 @@ func (c *OperationsListCall) IfNoneMatch(entityTag string) *OperationsListCall { // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OperationsListCall) Context(ctx context.Context) *OperationsListCall { +func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OperationsListCall) Header() http.Header { +func (c *ProjectsLocationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -1353,7 +1496,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -1366,14 +1509,14 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "texttospeech.operations.list" call. +// Do executes the "texttospeech.projects.locations.operations.list" call. // Exactly one of *ListOperationsResponse or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either // *ListOperationsResponse.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 *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { +func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -1405,9 +1548,9 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe return ret, nil // { // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - // "flatPath": "v1/operations", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", - // "id": "texttospeech.operations.list", + // "id": "texttospeech.projects.locations.operations.list", // "parameterOrder": [ // "name" // ], @@ -1420,7 +1563,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^operations$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // }, @@ -1436,7 +1579,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+name}/operations", // "response": { // "$ref": "ListOperationsResponse" // }, @@ -1450,7 +1593,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe // 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 *OperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { +func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -1468,149 +1611,6 @@ func (c *OperationsListCall) Pages(ctx context.Context, f func(*ListOperationsRe } } -// method id "texttospeech.projects.locations.voices.synthesizeLongAudio": - -type ProjectsLocationsVoicesSynthesizeLongAudioCall struct { - s *Service - parent string - synthesizelongaudiorequest *SynthesizeLongAudioRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// SynthesizeLongAudio: Synthesizes long form text asynchronously. -// -// - parent: The resource states of the request in the form of -// projects/*/locations/*/voices/*. -func (r *ProjectsLocationsVoicesService) SynthesizeLongAudio(parent string, synthesizelongaudiorequest *SynthesizeLongAudioRequest) *ProjectsLocationsVoicesSynthesizeLongAudioCall { - c := &ProjectsLocationsVoicesSynthesizeLongAudioCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.synthesizelongaudiorequest = synthesizelongaudiorequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsVoicesSynthesizeLongAudioCall) Fields(s ...googleapi.Field) *ProjectsLocationsVoicesSynthesizeLongAudioCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsVoicesSynthesizeLongAudioCall) Context(ctx context.Context) *ProjectsLocationsVoicesSynthesizeLongAudioCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsVoicesSynthesizeLongAudioCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsVoicesSynthesizeLongAudioCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.synthesizelongaudiorequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:SynthesizeLongAudio") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "texttospeech.projects.locations.voices.synthesizeLongAudio" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsVoicesSynthesizeLongAudioCall) 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 - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Synthesizes long form text asynchronously.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/voices/{voicesId}:SynthesizeLongAudio", - // "httpMethod": "POST", - // "id": "texttospeech.projects.locations.voices.synthesizeLongAudio", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "The resource states of the request in the form of projects/*/locations/*/voices/*.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/voices/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}:SynthesizeLongAudio", - // "request": { - // "$ref": "SynthesizeLongAudioRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "texttospeech.text.synthesize": type TextSynthesizeCall struct { diff --git a/texttospeech/v1beta1/texttospeech-api.json b/texttospeech/v1beta1/texttospeech-api.json index 40eff0f770e..9fcae9bcadd 100644 --- a/texttospeech/v1beta1/texttospeech-api.json +++ b/texttospeech/v1beta1/texttospeech-api.json @@ -108,36 +108,104 @@ "projects": { "resources": { "locations": { + "methods": { + "synthesizeLongAudio": { + "description": "Synthesizes long form text asynchronously.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}:synthesizeLongAudio", + "httpMethod": "POST", + "id": "texttospeech.projects.locations.synthesizeLongAudio", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "The resource states of the request in the form of `projects/*/locations/*/voices/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}:synthesizeLongAudio", + "request": { + "$ref": "SynthesizeLongAudioRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, "resources": { - "voices": { + "operations": { "methods": { - "synthesizeLongAudio": { - "description": "Synthesizes long form text asynchronously.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/voices/{voicesId}:SynthesizeLongAudio", - "httpMethod": "POST", - "id": "texttospeech.projects.locations.voices.synthesizeLongAudio", + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "texttospeech.projects.locations.operations.get", "parameterOrder": [ - "parent" + "name" ], "parameters": { - "parent": { - "description": "The resource states of the request in the form of projects/*/locations/*/voices/*.", + "name": { + "description": "The name of the operation resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/voices/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1beta1/{+parent}:SynthesizeLongAudio", - "request": { - "$ref": "SynthesizeLongAudioRequest" - }, + "path": "v1beta1/{+name}", "response": { "$ref": "Operation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "texttospeech.projects.locations.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/operations", + "response": { + "$ref": "ListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } } @@ -193,7 +261,7 @@ } } }, - "revision": "20221201", + "revision": "20221219", "rootUrl": "https://texttospeech.googleapis.com/", "schemas": { "AudioConfig": { @@ -277,6 +345,24 @@ }, "type": "object" }, + "ListOperationsResponse": { + "description": "The response message for Operations.ListOperations.", + "id": "ListOperationsResponse", + "properties": { + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + }, + "operations": { + "description": "A list of operations that matches the specified filter in the request.", + "items": { + "$ref": "Operation" + }, + "type": "array" + } + }, + "type": "object" + }, "ListVoicesResponse": { "description": "The message returned to the client by the `ListVoices` method.", "id": "ListVoicesResponse", diff --git a/texttospeech/v1beta1/texttospeech-gen.go b/texttospeech/v1beta1/texttospeech-gen.go index e244b9b6d61..74dd120bf2f 100644 --- a/texttospeech/v1beta1/texttospeech-gen.go +++ b/texttospeech/v1beta1/texttospeech-gen.go @@ -159,22 +159,22 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} - rs.Voices = NewProjectsLocationsVoicesService(s) + rs.Operations = NewProjectsLocationsOperationsService(s) return rs } type ProjectsLocationsService struct { s *Service - Voices *ProjectsLocationsVoicesService + Operations *ProjectsLocationsOperationsService } -func NewProjectsLocationsVoicesService(s *Service) *ProjectsLocationsVoicesService { - rs := &ProjectsLocationsVoicesService{s: s} +func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { + rs := &ProjectsLocationsOperationsService{s: s} return rs } -type ProjectsLocationsVoicesService struct { +type ProjectsLocationsOperationsService struct { s *Service } @@ -346,6 +346,43 @@ func (s *CustomVoiceParams) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListOperationsResponse: The response message for +// Operations.ListOperations. +type ListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Operations: A list of operations that matches the specified filter in + // the request. + Operations []*Operation `json:"operations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListOperationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListVoicesResponse: The message returned to the client by the // `ListVoices` method. type ListVoicesResponse struct { @@ -822,9 +859,9 @@ func (s *VoiceSelectionParams) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// method id "texttospeech.projects.locations.voices.synthesizeLongAudio": +// method id "texttospeech.projects.locations.synthesizeLongAudio": -type ProjectsLocationsVoicesSynthesizeLongAudioCall struct { +type ProjectsLocationsSynthesizeLongAudioCall struct { s *Service parent string synthesizelongaudiorequest *SynthesizeLongAudioRequest @@ -836,9 +873,9 @@ type ProjectsLocationsVoicesSynthesizeLongAudioCall struct { // SynthesizeLongAudio: Synthesizes long form text asynchronously. // // - parent: The resource states of the request in the form of -// projects/*/locations/*/voices/*. -func (r *ProjectsLocationsVoicesService) SynthesizeLongAudio(parent string, synthesizelongaudiorequest *SynthesizeLongAudioRequest) *ProjectsLocationsVoicesSynthesizeLongAudioCall { - c := &ProjectsLocationsVoicesSynthesizeLongAudioCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// `projects/*/locations/*/voices/*`. +func (r *ProjectsLocationsService) SynthesizeLongAudio(parent string, synthesizelongaudiorequest *SynthesizeLongAudioRequest) *ProjectsLocationsSynthesizeLongAudioCall { + c := &ProjectsLocationsSynthesizeLongAudioCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent c.synthesizelongaudiorequest = synthesizelongaudiorequest return c @@ -847,7 +884,7 @@ func (r *ProjectsLocationsVoicesService) SynthesizeLongAudio(parent string, synt // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsVoicesSynthesizeLongAudioCall) Fields(s ...googleapi.Field) *ProjectsLocationsVoicesSynthesizeLongAudioCall { +func (c *ProjectsLocationsSynthesizeLongAudioCall) Fields(s ...googleapi.Field) *ProjectsLocationsSynthesizeLongAudioCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -855,21 +892,21 @@ func (c *ProjectsLocationsVoicesSynthesizeLongAudioCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsVoicesSynthesizeLongAudioCall) Context(ctx context.Context) *ProjectsLocationsVoicesSynthesizeLongAudioCall { +func (c *ProjectsLocationsSynthesizeLongAudioCall) Context(ctx context.Context) *ProjectsLocationsSynthesizeLongAudioCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsVoicesSynthesizeLongAudioCall) Header() http.Header { +func (c *ProjectsLocationsSynthesizeLongAudioCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsVoicesSynthesizeLongAudioCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSynthesizeLongAudioCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -884,7 +921,7 @@ func (c *ProjectsLocationsVoicesSynthesizeLongAudioCall) doRequest(alt string) ( reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}:SynthesizeLongAudio") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}:synthesizeLongAudio") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -897,14 +934,14 @@ func (c *ProjectsLocationsVoicesSynthesizeLongAudioCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "texttospeech.projects.locations.voices.synthesizeLongAudio" call. +// Do executes the "texttospeech.projects.locations.synthesizeLongAudio" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsVoicesSynthesizeLongAudioCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsSynthesizeLongAudioCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -936,22 +973,22 @@ func (c *ProjectsLocationsVoicesSynthesizeLongAudioCall) Do(opts ...googleapi.Ca return ret, nil // { // "description": "Synthesizes long form text asynchronously.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/voices/{voicesId}:SynthesizeLongAudio", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}:synthesizeLongAudio", // "httpMethod": "POST", - // "id": "texttospeech.projects.locations.voices.synthesizeLongAudio", + // "id": "texttospeech.projects.locations.synthesizeLongAudio", // "parameterOrder": [ // "parent" // ], // "parameters": { // "parent": { - // "description": "The resource states of the request in the form of projects/*/locations/*/voices/*.", + // "description": "The resource states of the request in the form of `projects/*/locations/*/voices/*`.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/voices/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}:SynthesizeLongAudio", + // "path": "v1beta1/{+parent}:synthesizeLongAudio", // "request": { // "$ref": "SynthesizeLongAudioRequest" // }, @@ -965,6 +1002,367 @@ func (c *ProjectsLocationsVoicesSynthesizeLongAudioCall) Do(opts ...googleapi.Ca } +// method id "texttospeech.projects.locations.operations.get": + +type ProjectsLocationsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +// +// - name: The name of the operation resource. +func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { + c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "texttospeech.projects.locations.operations.get" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsGetCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "texttospeech.projects.locations.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "texttospeech.projects.locations.operations.list": + +type ProjectsLocationsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to +// override the binding to use different resource name schemes, such as +// `users/*/operations`. To override the binding, API services can add a +// binding such as "/v1/{name=users/*}/operations" to their service +// configuration. For backwards compatibility, the default name includes +// the operations collection id, however overriding users must ensure +// the name binding is the parent resource, without the operations +// collection id. +// +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { + c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "texttospeech.projects.locations.operations.list" call. +// Exactly one of *ListOperationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.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 *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, 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 := &ListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations", + // "httpMethod": "GET", + // "id": "texttospeech.projects.locations.operations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}/operations", + // "response": { + // "$ref": "ListOperationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + // method id "texttospeech.text.synthesize": type TextSynthesizeCall struct { diff --git a/transcoder/v1/transcoder-api.json b/transcoder/v1/transcoder-api.json index df1129a89cc..3ad32601264 100644 --- a/transcoder/v1/transcoder-api.json +++ b/transcoder/v1/transcoder-api.json @@ -385,7 +385,7 @@ } } }, - "revision": "20221027", + "revision": "20221201", "rootUrl": "https://transcoder.googleapis.com/", "schemas": { "AdBreak": { @@ -805,7 +805,7 @@ "type": "integer" }, "heightPixels": { - "description": "The height of the video in pixels. Must be an even integer. When not specified, the height is adjusted to match the specified width and input aspect ratio. If both are omitted, the input height is used.", + "description": "The height of the video in pixels. Must be an even integer. When not specified, the height is adjusted to match the specified width and input aspect ratio. If both are omitted, the input height is used. For portrait videos that contain horizontal ASR and rotation metadata, provide the height, in pixels, per the horizontal ASR. The API calculates the width per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output.", "format": "int32", "type": "integer" }, @@ -840,7 +840,7 @@ "type": "integer" }, "widthPixels": { - "description": "The width of the video in pixels. Must be an even integer. When not specified, the width is adjusted to match the specified height and input aspect ratio. If both are omitted, the input width is used.", + "description": "The width of the video in pixels. Must be an even integer. When not specified, the width is adjusted to match the specified height and input aspect ratio. If both are omitted, the input width is used. For portrait videos that contain horizontal ASR and rotation metadata, provide the width, in pixels, per the horizontal ASR. The API calculates the height per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output.", "format": "int32", "type": "integer" } @@ -899,7 +899,7 @@ "type": "integer" }, "heightPixels": { - "description": "The height of the video in pixels. Must be an even integer. When not specified, the height is adjusted to match the specified width and input aspect ratio. If both are omitted, the input height is used.", + "description": "The height of the video in pixels. Must be an even integer. When not specified, the height is adjusted to match the specified width and input aspect ratio. If both are omitted, the input height is used. For portrait videos that contain horizontal ASR and rotation metadata, provide the height, in pixels, per the horizontal ASR. The API calculates the width per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output.", "format": "int32", "type": "integer" }, @@ -934,7 +934,7 @@ "type": "integer" }, "widthPixels": { - "description": "The width of the video in pixels. Must be an even integer. When not specified, the width is adjusted to match the specified height and input aspect ratio. If both are omitted, the input width is used.", + "description": "The width of the video in pixels. Must be an even integer. When not specified, the width is adjusted to match the specified height and input aspect ratio. If both are omitted, the input width is used. For portrait videos that contain horizontal ASR and rotation metadata, provide the width, in pixels, per the horizontal ASR. The API calculates the height per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output.", "format": "int32", "type": "integer" } @@ -1439,12 +1439,12 @@ "type": "integer" }, "spriteHeightPixels": { - "description": "Required. The height of sprite in pixels. Must be an even integer. To preserve the source aspect ratio, set the SpriteSheet.sprite_height_pixels field or the SpriteSheet.sprite_width_pixels field, but not both (the API will automatically calculate the missing field).", + "description": "Required. The height of sprite in pixels. Must be an even integer. To preserve the source aspect ratio, set the SpriteSheet.sprite_height_pixels field or the SpriteSheet.sprite_width_pixels field, but not both (the API will automatically calculate the missing field). For portrait videos that contain horizontal ASR and rotation metadata, provide the height, in pixels, per the horizontal ASR. The API calculates the width per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output.", "format": "int32", "type": "integer" }, "spriteWidthPixels": { - "description": "Required. The width of sprite in pixels. Must be an even integer. To preserve the source aspect ratio, set the SpriteSheet.sprite_width_pixels field or the SpriteSheet.sprite_height_pixels field, but not both (the API will automatically calculate the missing field).", + "description": "Required. The width of sprite in pixels. Must be an even integer. To preserve the source aspect ratio, set the SpriteSheet.sprite_width_pixels field or the SpriteSheet.sprite_height_pixels field, but not both (the API will automatically calculate the missing field). For portrait videos that contain horizontal ASR and rotation metadata, provide the width, in pixels, per the horizontal ASR. The API calculates the height per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output.", "format": "int32", "type": "integer" }, @@ -1575,7 +1575,7 @@ "type": "integer" }, "heightPixels": { - "description": "The height of the video in pixels. Must be an even integer. When not specified, the height is adjusted to match the specified width and input aspect ratio. If both are omitted, the input height is used.", + "description": "The height of the video in pixels. Must be an even integer. When not specified, the height is adjusted to match the specified width and input aspect ratio. If both are omitted, the input height is used. For portrait videos that contain horizontal ASR and rotation metadata, provide the height, in pixels, per the horizontal ASR. The API calculates the width per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output.", "format": "int32", "type": "integer" }, @@ -1592,7 +1592,7 @@ "type": "string" }, "widthPixels": { - "description": "The width of the video in pixels. Must be an even integer. When not specified, the width is adjusted to match the specified height and input aspect ratio. If both are omitted, the input width is used.", + "description": "The width of the video in pixels. Must be an even integer. When not specified, the width is adjusted to match the specified height and input aspect ratio. If both are omitted, the input width is used. For portrait videos that contain horizontal ASR and rotation metadata, provide the width, in pixels, per the horizontal ASR. The API calculates the height per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output.", "format": "int32", "type": "integer" } diff --git a/transcoder/v1/transcoder-gen.go b/transcoder/v1/transcoder-gen.go index 8ea75d8e19f..756d96f4a36 100644 --- a/transcoder/v1/transcoder-gen.go +++ b/transcoder/v1/transcoder-gen.go @@ -962,7 +962,11 @@ type H264CodecSettings struct { // HeightPixels: The height of the video in pixels. Must be an even // integer. When not specified, the height is adjusted to match the // specified width and input aspect ratio. If both are omitted, the - // input height is used. + // input height is used. For portrait videos that contain horizontal ASR + // and rotation metadata, provide the height, in pixels, per the + // horizontal ASR. The API calculates the width per the horizontal ASR. + // The API detects any rotation metadata and swaps the requested height + // and width for the output. HeightPixels int64 `json:"heightPixels,omitempty"` // PixelFormat: Pixel format to use. The default is `yuv420p`. Supported @@ -1012,7 +1016,11 @@ type H264CodecSettings struct { // WidthPixels: The width of the video in pixels. Must be an even // integer. When not specified, the width is adjusted to match the // specified height and input aspect ratio. If both are omitted, the - // input width is used. + // input width is used. For portrait videos that contain horizontal ASR + // and rotation metadata, provide the width, in pixels, per the + // horizontal ASR. The API calculates the height per the horizontal ASR. + // The API detects any rotation metadata and swaps the requested height + // and width for the output. WidthPixels int64 `json:"widthPixels,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowOpenGop") to @@ -1111,7 +1119,11 @@ type H265CodecSettings struct { // HeightPixels: The height of the video in pixels. Must be an even // integer. When not specified, the height is adjusted to match the // specified width and input aspect ratio. If both are omitted, the - // input height is used. + // input height is used. For portrait videos that contain horizontal ASR + // and rotation metadata, provide the height, in pixels, per the + // horizontal ASR. The API calculates the width per the horizontal ASR. + // The API detects any rotation metadata and swaps the requested height + // and width for the output. HeightPixels int64 `json:"heightPixels,omitempty"` // PixelFormat: Pixel format to use. The default is `yuv420p`. Supported @@ -1165,7 +1177,11 @@ type H265CodecSettings struct { // WidthPixels: The width of the video in pixels. Must be an even // integer. When not specified, the width is adjusted to match the // specified height and input aspect ratio. If both are omitted, the - // input width is used. + // input width is used. For portrait videos that contain horizontal ASR + // and rotation metadata, provide the width, in pixels, per the + // horizontal ASR. The API calculates the height per the horizontal ASR. + // The API detects any rotation metadata and swaps the requested height + // and width for the output. WidthPixels int64 `json:"widthPixels,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowOpenGop") to @@ -1971,14 +1987,22 @@ type SpriteSheet struct { // an even integer. To preserve the source aspect ratio, set the // SpriteSheet.sprite_height_pixels field or the // SpriteSheet.sprite_width_pixels field, but not both (the API will - // automatically calculate the missing field). + // automatically calculate the missing field). For portrait videos that + // contain horizontal ASR and rotation metadata, provide the height, in + // pixels, per the horizontal ASR. The API calculates the width per the + // horizontal ASR. The API detects any rotation metadata and swaps the + // requested height and width for the output. SpriteHeightPixels int64 `json:"spriteHeightPixels,omitempty"` // SpriteWidthPixels: Required. The width of sprite in pixels. Must be // an even integer. To preserve the source aspect ratio, set the // SpriteSheet.sprite_width_pixels field or the // SpriteSheet.sprite_height_pixels field, but not both (the API will - // automatically calculate the missing field). + // automatically calculate the missing field). For portrait videos that + // contain horizontal ASR and rotation metadata, provide the width, in + // pixels, per the horizontal ASR. The API calculates the height per the + // horizontal ASR. The API detects any rotation metadata and swaps the + // requested height and width for the output. SpriteWidthPixels int64 `json:"spriteWidthPixels,omitempty"` // StartTimeOffset: Start time in seconds, relative to the output file @@ -2196,7 +2220,11 @@ type Vp9CodecSettings struct { // HeightPixels: The height of the video in pixels. Must be an even // integer. When not specified, the height is adjusted to match the // specified width and input aspect ratio. If both are omitted, the - // input height is used. + // input height is used. For portrait videos that contain horizontal ASR + // and rotation metadata, provide the height, in pixels, per the + // horizontal ASR. The API calculates the width per the horizontal ASR. + // The API detects any rotation metadata and swaps the requested height + // and width for the output. HeightPixels int64 `json:"heightPixels,omitempty"` // PixelFormat: Pixel format to use. The default is `yuv420p`. Supported @@ -2222,7 +2250,11 @@ type Vp9CodecSettings struct { // WidthPixels: The width of the video in pixels. Must be an even // integer. When not specified, the width is adjusted to match the // specified height and input aspect ratio. If both are omitted, the - // input width is used. + // input width is used. For portrait videos that contain horizontal ASR + // and rotation metadata, provide the width, in pixels, per the + // horizontal ASR. The API calculates the height per the horizontal ASR. + // The API detects any rotation metadata and swaps the requested height + // and width for the output. WidthPixels int64 `json:"widthPixels,omitempty"` // ForceSendFields is a list of field names (e.g. "BitrateBps") to diff --git a/vmmigration/v1/vmmigration-api.json b/vmmigration/v1/vmmigration-api.json index 08120f00664..0f9b8299c14 100644 --- a/vmmigration/v1/vmmigration-api.json +++ b/vmmigration/v1/vmmigration-api.json @@ -1972,7 +1972,7 @@ } } }, - "revision": "20221103", + "revision": "20221213", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AdaptingOSStep": { @@ -2409,7 +2409,7 @@ "type": "array" }, "project": { - "description": "The GCP target project ID or project name.", + "description": "The Google Cloud target project ID or project name.", "type": "string" }, "secureBoot": { @@ -2629,7 +2629,7 @@ "type": "object" }, "DatacenterConnector": { - "description": "DatacenterConnector message describes a connector between the Source and GCP, which is installed on a vmware datacenter (an OVA vm installed by the user) to connect the Datacenter to GCP and support vm migration data transfer.", + "description": "DatacenterConnector message describes a connector between the Source and Google Cloud, which is installed on a vmware datacenter (an OVA vm installed by the user) to connect the Datacenter to Google Cloud and support vm migration data transfer.", "id": "DatacenterConnector", "properties": { "applianceInfrastructureVersion": { @@ -2648,7 +2648,7 @@ "readOnly": true }, "bucket": { - "description": "Output only. The communication channel between the datacenter connector and GCP.", + "description": "Output only. The communication channel between the datacenter connector and Google Cloud.", "readOnly": true, "type": "string" }, diff --git a/vmmigration/v1/vmmigration-gen.go b/vmmigration/v1/vmmigration-gen.go index 5f4f8df6752..6c24a582e01 100644 --- a/vmmigration/v1/vmmigration-gen.go +++ b/vmmigration/v1/vmmigration-gen.go @@ -733,7 +733,7 @@ type ComputeEngineTargetDetails struct { // NetworkTags: A map of network tags to associate with the VM. NetworkTags []string `json:"networkTags,omitempty"` - // Project: The GCP target project ID or project name. + // Project: The Google Cloud target project ID or project name. Project string `json:"project,omitempty"` // SecureBoot: Defines whether the instance has Secure Boot enabled. @@ -1006,9 +1006,9 @@ func (s *CycleStep) MarshalJSON() ([]byte, error) { } // DatacenterConnector: DatacenterConnector message describes a -// connector between the Source and GCP, which is installed on a vmware -// datacenter (an OVA vm installed by the user) to connect the -// Datacenter to GCP and support vm migration data transfer. +// connector between the Source and Google Cloud, which is installed on +// a vmware datacenter (an OVA vm installed by the user) to connect the +// Datacenter to Google Cloud and support vm migration data transfer. type DatacenterConnector struct { // ApplianceInfrastructureVersion: Output only. Appliance OVA version. // This is the OVA which is manually installed by the user and contains @@ -1026,7 +1026,7 @@ type DatacenterConnector struct { AvailableVersions *AvailableUpdates `json:"availableVersions,omitempty"` // Bucket: Output only. The communication channel between the datacenter - // connector and GCP. + // connector and Google Cloud. Bucket string `json:"bucket,omitempty"` // CreateTime: Output only. The time the connector was created (as an diff --git a/vmmigration/v1alpha1/vmmigration-api.json b/vmmigration/v1alpha1/vmmigration-api.json index a4ab7ee051f..8d50ff390bc 100644 --- a/vmmigration/v1alpha1/vmmigration-api.json +++ b/vmmigration/v1alpha1/vmmigration-api.json @@ -1972,7 +1972,7 @@ } } }, - "revision": "20221126", + "revision": "20221213", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AccessKeyCredentials": { @@ -2705,7 +2705,7 @@ "type": "array" }, "project": { - "description": "The GCP target project ID or project name.", + "description": "The Google Cloud target project ID or project name.", "type": "string" }, "secureBoot": { @@ -2944,7 +2944,7 @@ "type": "object" }, "DatacenterConnector": { - "description": "DatacenterConnector message describes a connector between the Source and GCP, which is installed on a vmware datacenter (an OVA vm installed by the user) to connect the Datacenter to GCP and support vm migration data transfer.", + "description": "DatacenterConnector message describes a connector between the Source and Google Cloud, which is installed on a vmware datacenter (an OVA vm installed by the user) to connect the Datacenter to Google Cloud and support vm migration data transfer.", "id": "DatacenterConnector", "properties": { "applianceInfrastructureVersion": { @@ -2963,7 +2963,7 @@ "readOnly": true }, "bucket": { - "description": "Output only. The communication channel between the datacenter connector and GCP.", + "description": "Output only. The communication channel between the datacenter connector and Google Cloud.", "readOnly": true, "type": "string" }, @@ -3596,7 +3596,7 @@ }, "targetDefaults": { "$ref": "TargetVMDetails", - "description": "The default configuration of the target VM that will be created in GCP as a result of the migration. Deprecated: Use compute_engine_target_defaults instead." + "description": "The default configuration of the target VM that will be created in Google Cloud as a result of the migration. Deprecated: Use compute_engine_target_defaults instead." }, "updateTime": { "description": "Output only. The last time the migrating VM resource was updated.", diff --git a/vmmigration/v1alpha1/vmmigration-gen.go b/vmmigration/v1alpha1/vmmigration-gen.go index a0ed5f2252f..66ef2cfba33 100644 --- a/vmmigration/v1alpha1/vmmigration-gen.go +++ b/vmmigration/v1alpha1/vmmigration-gen.go @@ -1061,7 +1061,7 @@ type ComputeEngineTargetDetails struct { // NetworkTags: A map of network tags to associate with the VM. NetworkTags []string `json:"networkTags,omitempty"` - // Project: The GCP target project ID or project name. + // Project: The Google Cloud target project ID or project name. Project string `json:"project,omitempty"` // SecureBoot: Defines whether the instance has Secure Boot enabled. @@ -1350,9 +1350,9 @@ func (s *CycleStep) MarshalJSON() ([]byte, error) { } // DatacenterConnector: DatacenterConnector message describes a -// connector between the Source and GCP, which is installed on a vmware -// datacenter (an OVA vm installed by the user) to connect the -// Datacenter to GCP and support vm migration data transfer. +// connector between the Source and Google Cloud, which is installed on +// a vmware datacenter (an OVA vm installed by the user) to connect the +// Datacenter to Google Cloud and support vm migration data transfer. type DatacenterConnector struct { // ApplianceInfrastructureVersion: Output only. Appliance OVA version. // This is the OVA which is manually installed by the user and contains @@ -1370,7 +1370,7 @@ type DatacenterConnector struct { AvailableVersions *AvailableUpdates `json:"availableVersions,omitempty"` // Bucket: Output only. The communication channel between the datacenter - // connector and GCP. + // connector and Google Cloud. Bucket string `json:"bucket,omitempty"` // CreateTime: Output only. The time the connector was created (as an @@ -2233,8 +2233,8 @@ type MigratingVm struct { StateTime string `json:"stateTime,omitempty"` // TargetDefaults: The default configuration of the target VM that will - // be created in GCP as a result of the migration. Deprecated: Use - // compute_engine_target_defaults instead. + // be created in Google Cloud as a result of the migration. Deprecated: + // Use compute_engine_target_defaults instead. TargetDefaults *TargetVMDetails `json:"targetDefaults,omitempty"` // UpdateTime: Output only. The last time the migrating VM resource was diff --git a/workflowexecutions/v1/workflowexecutions-api.json b/workflowexecutions/v1/workflowexecutions-api.json index af8f059c465..16975d47833 100644 --- a/workflowexecutions/v1/workflowexecutions-api.json +++ b/workflowexecutions/v1/workflowexecutions-api.json @@ -224,7 +224,7 @@ ], "enumDescriptions": [ "The default / unset value.", - "Includes only basic metadata about the execution. Following fields are returned: name, start_time, end_time, state and workflow_revision_id.", + "Includes only basic metadata about the execution. Following fields are returned: name, start_time, end_time, duration, state and workflow_revision_id.", "Includes all data." ], "location": "query", @@ -275,7 +275,7 @@ ], "enumDescriptions": [ "The default / unset value.", - "Includes only basic metadata about the execution. Following fields are returned: name, start_time, end_time, state and workflow_revision_id.", + "Includes only basic metadata about the execution. Following fields are returned: name, start_time, end_time, duration, state and workflow_revision_id.", "Includes all data." ], "location": "query", @@ -299,7 +299,7 @@ } } }, - "revision": "20221020", + "revision": "20221206", "rootUrl": "https://workflowexecutions.googleapis.com/", "schemas": { "CancelExecutionRequest": { @@ -343,12 +343,18 @@ "LOG_ERRORS_ONLY" ], "enumDescriptions": [ - "No call logging specified.", + "No call logging level specified.", "Log all call steps within workflows, all call returns, and all exceptions raised.", "Log only exceptions that are raised from call steps within workflows." ], "type": "string" }, + "duration": { + "description": "Output only. Measures the duration of the execution.", + "format": "google-duration", + "readOnly": true, + "type": "string" + }, "endTime": { "description": "Output only. Marks the end of execution, successful or not.", "format": "google-datetime", diff --git a/workflowexecutions/v1/workflowexecutions-gen.go b/workflowexecutions/v1/workflowexecutions-gen.go index 00f8fe3e4a2..50473a6de70 100644 --- a/workflowexecutions/v1/workflowexecutions-gen.go +++ b/workflowexecutions/v1/workflowexecutions-gen.go @@ -235,13 +235,16 @@ type Execution struct { // CallLogLevel: The call logging level associated to this execution. // // Possible values: - // "CALL_LOG_LEVEL_UNSPECIFIED" - No call logging specified. + // "CALL_LOG_LEVEL_UNSPECIFIED" - No call logging level specified. // "LOG_ALL_CALLS" - Log all call steps within workflows, all call // returns, and all exceptions raised. // "LOG_ERRORS_ONLY" - Log only exceptions that are raised from call // steps within workflows. CallLogLevel string `json:"callLogLevel,omitempty"` + // Duration: Output only. Measures the duration of the execution. + Duration string `json:"duration,omitempty"` + // EndTime: Output only. Marks the end of execution, successful or not. EndTime string `json:"endTime,omitempty"` @@ -1082,8 +1085,8 @@ func (r *ProjectsLocationsWorkflowsExecutionsService) Get(name string) *Projects // "EXECUTION_VIEW_UNSPECIFIED" - The default / unset value. // "BASIC" - Includes only basic metadata about the execution. // -// Following fields are returned: name, start_time, end_time, state and -// workflow_revision_id. +// Following fields are returned: name, start_time, end_time, duration, +// state and workflow_revision_id. // // "FULL" - Includes all data. func (c *ProjectsLocationsWorkflowsExecutionsGetCall) View(view string) *ProjectsLocationsWorkflowsExecutionsGetCall { @@ -1214,7 +1217,7 @@ func (c *ProjectsLocationsWorkflowsExecutionsGetCall) Do(opts ...googleapi.CallO // ], // "enumDescriptions": [ // "The default / unset value.", - // "Includes only basic metadata about the execution. Following fields are returned: name, start_time, end_time, state and workflow_revision_id.", + // "Includes only basic metadata about the execution. Following fields are returned: name, start_time, end_time, duration, state and workflow_revision_id.", // "Includes all data." // ], // "location": "query", @@ -1287,8 +1290,8 @@ func (c *ProjectsLocationsWorkflowsExecutionsListCall) PageToken(pageToken strin // "EXECUTION_VIEW_UNSPECIFIED" - The default / unset value. // "BASIC" - Includes only basic metadata about the execution. // -// Following fields are returned: name, start_time, end_time, state and -// workflow_revision_id. +// Following fields are returned: name, start_time, end_time, duration, +// state and workflow_revision_id. // // "FULL" - Includes all data. func (c *ProjectsLocationsWorkflowsExecutionsListCall) View(view string) *ProjectsLocationsWorkflowsExecutionsListCall { @@ -1430,7 +1433,7 @@ func (c *ProjectsLocationsWorkflowsExecutionsListCall) Do(opts ...googleapi.Call // ], // "enumDescriptions": [ // "The default / unset value.", - // "Includes only basic metadata about the execution. Following fields are returned: name, start_time, end_time, state and workflow_revision_id.", + // "Includes only basic metadata about the execution. Following fields are returned: name, start_time, end_time, duration, state and workflow_revision_id.", // "Includes all data." // ], // "location": "query", diff --git a/workflowexecutions/v1beta/workflowexecutions-api.json b/workflowexecutions/v1beta/workflowexecutions-api.json index e5febe3a003..105228604a2 100644 --- a/workflowexecutions/v1beta/workflowexecutions-api.json +++ b/workflowexecutions/v1beta/workflowexecutions-api.json @@ -269,7 +269,7 @@ } } }, - "revision": "20221020", + "revision": "20221206", "rootUrl": "https://workflowexecutions.googleapis.com/", "schemas": { "CancelExecutionRequest": { @@ -313,7 +313,7 @@ "LOG_ERRORS_ONLY" ], "enumDescriptions": [ - "No call logging specified.", + "No call logging level specified.", "Log all call steps within workflows, all call returns, and all exceptions raised.", "Log only exceptions that are raised from call steps within workflows." ], diff --git a/workflowexecutions/v1beta/workflowexecutions-gen.go b/workflowexecutions/v1beta/workflowexecutions-gen.go index a2b891d7673..c91991ce6ae 100644 --- a/workflowexecutions/v1beta/workflowexecutions-gen.go +++ b/workflowexecutions/v1beta/workflowexecutions-gen.go @@ -235,7 +235,7 @@ type Execution struct { // CallLogLevel: The call logging level associated to this execution. // // Possible values: - // "CALL_LOG_LEVEL_UNSPECIFIED" - No call logging specified. + // "CALL_LOG_LEVEL_UNSPECIFIED" - No call logging level specified. // "LOG_ALL_CALLS" - Log all call steps within workflows, all call // returns, and all exceptions raised. // "LOG_ERRORS_ONLY" - Log only exceptions that are raised from call diff --git a/workflows/v1/workflows-api.json b/workflows/v1/workflows-api.json index c676bcb4252..85a239e9725 100644 --- a/workflows/v1/workflows-api.json +++ b/workflows/v1/workflows-api.json @@ -275,7 +275,7 @@ "workflows": { "methods": { "create": { - "description": "Creates a new workflow. If a workflow with the specified name already exists in the specified project and location, the long running operation will return ALREADY_EXISTS error.", + "description": "Creates a new workflow. If a workflow with the specified name already exists in the specified project and location, the long running operation returns a ALREADY_EXISTS error.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflows", "httpMethod": "POST", "id": "workflows.projects.locations.workflows.create", @@ -333,7 +333,7 @@ ] }, "get": { - "description": "Gets details of a single Workflow.", + "description": "Gets details of a single workflow.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflows/{workflowsId}", "httpMethod": "GET", "id": "workflows.projects.locations.workflows.get", @@ -342,7 +342,7 @@ ], "parameters": { "name": { - "description": "Required. Name of the workflow which information should be retrieved. Format: projects/{project}/locations/{location}/workflows/{workflow}", + "description": "Required. Name of the workflow for which information should be retrieved. Format: projects/{project}/locations/{location}/workflows/{workflow}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/workflows/[^/]+$", "required": true, @@ -358,7 +358,7 @@ ] }, "list": { - "description": "Lists Workflows in a given project and location. The default order is not specified.", + "description": "Lists workflows in a given project and location. The default order is not specified.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflows", "httpMethod": "GET", "id": "workflows.projects.locations.workflows.list", @@ -372,12 +372,12 @@ "type": "string" }, "orderBy": { - "description": "Comma-separated list of fields that that specify the order of the results. Default sorting order for a field is ascending. To specify descending order for a field, append a \" desc\" suffix. If not specified, the results will be returned in an unspecified order.", + "description": "Comma-separated list of fields that specify the order of the results. Default sorting order for a field is ascending. To specify descending order for a field, append a \"desc\" suffix. If not specified, the results are returned in an unspecified order.", "location": "query", "type": "string" }, "pageSize": { - "description": "Maximum number of workflows to return per call. The service may return fewer than this value. If the value is not specified, a default value of 500 will be used. The maximum permitted value is 1000 and values greater than 1000 will be coerced down to 1000.", + "description": "Maximum number of workflows to return per call. The service might return fewer than this value even if not at the end of the collection. If a value is not specified, a default value of 500 is used. The maximum permitted value is 1000 and values greater than 1000 are coerced down to 1000.", "format": "int32", "location": "query", "type": "integer" @@ -404,7 +404,7 @@ ] }, "patch": { - "description": "Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow may be created as a result of a successful update operation. In that case, such revision will be used in new workflow executions.", + "description": "Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow might be created as a result of a successful update operation. In that case, the new revision is used in new workflow executions.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflows/{workflowsId}", "httpMethod": "PATCH", "id": "workflows.projects.locations.workflows.patch", @@ -444,7 +444,7 @@ } } }, - "revision": "20220406", + "revision": "20221208", "rootUrl": "https://workflows.googleapis.com/", "schemas": { "Empty": { @@ -505,7 +505,7 @@ "type": "array" }, "workflows": { - "description": "The workflows which match the request.", + "description": "The workflows that match the request.", "items": { "$ref": "Workflow" }, @@ -644,7 +644,7 @@ "id": "Workflow", "properties": { "createTime": { - "description": "Output only. The timestamp of when the workflow was created.", + "description": "Output only. The timestamp for when the workflow was created.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -657,7 +657,7 @@ "additionalProperties": { "type": "string" }, - "description": "Labels associated with this workflow. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores and dashes. Label keys must start with a letter. International characters are allowed.", + "description": "Labels associated with this workflow. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, and dashes. Label keys must start with a letter. International characters are allowed.", "type": "object" }, "name": { @@ -665,7 +665,7 @@ "type": "string" }, "revisionCreateTime": { - "description": "Output only. The timestamp that the latest revision of the workflow was created.", + "description": "Output only. The timestamp for the latest revision of the workflow's creation.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -697,7 +697,7 @@ "type": "string" }, "updateTime": { - "description": "Output only. The last update timestamp of the workflow.", + "description": "Output only. The timestamp for when the workflow was last updated.", "format": "google-datetime", "readOnly": true, "type": "string" diff --git a/workflows/v1/workflows-gen.go b/workflows/v1/workflows-gen.go index 34bd6df0126..c9ca475d652 100644 --- a/workflows/v1/workflows-gen.go +++ b/workflows/v1/workflows-gen.go @@ -277,7 +277,7 @@ type ListWorkflowsResponse struct { // Unreachable: Unreachable resources. Unreachable []string `json:"unreachable,omitempty"` - // Workflows: The workflows which match the request. + // Workflows: The workflows that match the request. Workflows []*Workflow `json:"workflows,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -506,7 +506,7 @@ func (s *Status) MarshalJSON() ([]byte, error) { // Workflow: Workflow program to be executed by Workflows. type Workflow struct { - // CreateTime: Output only. The timestamp of when the workflow was + // CreateTime: Output only. The timestamp for when the workflow was // created. CreateTime string `json:"createTime,omitempty"` @@ -517,7 +517,7 @@ type Workflow struct { // Labels: Labels associated with this workflow. Labels can contain at // most 64 entries. Keys and values can be no longer than 63 characters // and can only contain lowercase letters, numeric characters, - // underscores and dashes. Label keys must start with a letter. + // underscores, and dashes. Label keys must start with a letter. // International characters are allowed. Labels map[string]string `json:"labels,omitempty"` @@ -525,8 +525,8 @@ type Workflow struct { // projects/{project}/locations/{location}/workflows/{workflow} Name string `json:"name,omitempty"` - // RevisionCreateTime: Output only. The timestamp that the latest - // revision of the workflow was created. + // RevisionCreateTime: Output only. The timestamp for the latest + // revision of the workflow's creation. RevisionCreateTime string `json:"revisionCreateTime,omitempty"` // RevisionId: Output only. The revision of the workflow. A new revision @@ -561,7 +561,8 @@ type Workflow struct { // serving. State string `json:"state,omitempty"` - // UpdateTime: Output only. The last update timestamp of the workflow. + // UpdateTime: Output only. The timestamp for when the workflow was last + // updated. UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -1455,7 +1456,7 @@ type ProjectsLocationsWorkflowsCreateCall struct { // Create: Creates a new workflow. If a workflow with the specified name // already exists in the specified project and location, the long -// running operation will return ALREADY_EXISTS error. +// running operation returns a ALREADY_EXISTS error. // // - parent: Project and location in which the workflow should be // created. Format: projects/{project}/locations/{location}. @@ -1568,7 +1569,7 @@ func (c *ProjectsLocationsWorkflowsCreateCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Creates a new workflow. If a workflow with the specified name already exists in the specified project and location, the long running operation will return ALREADY_EXISTS error.", + // "description": "Creates a new workflow. If a workflow with the specified name already exists in the specified project and location, the long running operation returns a ALREADY_EXISTS error.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflows", // "httpMethod": "POST", // "id": "workflows.projects.locations.workflows.create", @@ -1748,10 +1749,10 @@ type ProjectsLocationsWorkflowsGetCall struct { header_ http.Header } -// Get: Gets details of a single Workflow. +// Get: Gets details of a single workflow. // -// - name: Name of the workflow which information should be retrieved. -// Format: +// - name: Name of the workflow for which information should be +// retrieved. Format: // projects/{project}/locations/{location}/workflows/{workflow}. func (r *ProjectsLocationsWorkflowsService) Get(name string) *ProjectsLocationsWorkflowsGetCall { c := &ProjectsLocationsWorkflowsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -1858,7 +1859,7 @@ func (c *ProjectsLocationsWorkflowsGetCall) Do(opts ...googleapi.CallOption) (*W } return ret, nil // { - // "description": "Gets details of a single Workflow.", + // "description": "Gets details of a single workflow.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflows/{workflowsId}", // "httpMethod": "GET", // "id": "workflows.projects.locations.workflows.get", @@ -1867,7 +1868,7 @@ func (c *ProjectsLocationsWorkflowsGetCall) Do(opts ...googleapi.CallOption) (*W // ], // "parameters": { // "name": { - // "description": "Required. Name of the workflow which information should be retrieved. Format: projects/{project}/locations/{location}/workflows/{workflow}", + // "description": "Required. Name of the workflow for which information should be retrieved. Format: projects/{project}/locations/{location}/workflows/{workflow}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/workflows/[^/]+$", // "required": true, @@ -1896,7 +1897,7 @@ type ProjectsLocationsWorkflowsListCall struct { header_ http.Header } -// List: Lists Workflows in a given project and location. The default +// List: Lists workflows in a given project and location. The default // order is not specified. // // - parent: Project and location from which the workflows should be @@ -1915,9 +1916,9 @@ func (c *ProjectsLocationsWorkflowsListCall) Filter(filter string) *ProjectsLoca } // OrderBy sets the optional parameter "orderBy": Comma-separated list -// of fields that that specify the order of the results. Default sorting +// of fields that specify the order of the results. Default sorting // order for a field is ascending. To specify descending order for a -// field, append a " desc" suffix. If not specified, the results will be +// field, append a "desc" suffix. If not specified, the results are // returned in an unspecified order. func (c *ProjectsLocationsWorkflowsListCall) OrderBy(orderBy string) *ProjectsLocationsWorkflowsListCall { c.urlParams_.Set("orderBy", orderBy) @@ -1925,10 +1926,10 @@ func (c *ProjectsLocationsWorkflowsListCall) OrderBy(orderBy string) *ProjectsLo } // PageSize sets the optional parameter "pageSize": Maximum number of -// workflows to return per call. The service may return fewer than this -// value. If the value is not specified, a default value of 500 will be -// used. The maximum permitted value is 1000 and values greater than -// 1000 will be coerced down to 1000. +// workflows to return per call. The service might return fewer than +// this value even if not at the end of the collection. If a value is +// not specified, a default value of 500 is used. The maximum permitted +// value is 1000 and values greater than 1000 are coerced down to 1000. func (c *ProjectsLocationsWorkflowsListCall) PageSize(pageSize int64) *ProjectsLocationsWorkflowsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -2043,7 +2044,7 @@ func (c *ProjectsLocationsWorkflowsListCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "Lists Workflows in a given project and location. The default order is not specified.", + // "description": "Lists workflows in a given project and location. The default order is not specified.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflows", // "httpMethod": "GET", // "id": "workflows.projects.locations.workflows.list", @@ -2057,12 +2058,12 @@ func (c *ProjectsLocationsWorkflowsListCall) Do(opts ...googleapi.CallOption) (* // "type": "string" // }, // "orderBy": { - // "description": "Comma-separated list of fields that that specify the order of the results. Default sorting order for a field is ascending. To specify descending order for a field, append a \" desc\" suffix. If not specified, the results will be returned in an unspecified order.", + // "description": "Comma-separated list of fields that specify the order of the results. Default sorting order for a field is ascending. To specify descending order for a field, append a \"desc\" suffix. If not specified, the results are returned in an unspecified order.", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "Maximum number of workflows to return per call. The service may return fewer than this value. If the value is not specified, a default value of 500 will be used. The maximum permitted value is 1000 and values greater than 1000 will be coerced down to 1000.", + // "description": "Maximum number of workflows to return per call. The service might return fewer than this value even if not at the end of the collection. If a value is not specified, a default value of 500 is used. The maximum permitted value is 1000 and values greater than 1000 are coerced down to 1000.", // "format": "int32", // "location": "query", // "type": "integer" @@ -2125,8 +2126,8 @@ type ProjectsLocationsWorkflowsPatchCall struct { // Patch: Updates an existing workflow. Running this method has no // impact on already running executions of the workflow. A new revision -// of the workflow may be created as a result of a successful update -// operation. In that case, such revision will be used in new workflow +// of the workflow might be created as a result of a successful update +// operation. In that case, the new revision is used in new workflow // executions. // // - name: The resource name of the workflow. Format: @@ -2236,7 +2237,7 @@ func (c *ProjectsLocationsWorkflowsPatchCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow may be created as a result of a successful update operation. In that case, such revision will be used in new workflow executions.", + // "description": "Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow might be created as a result of a successful update operation. In that case, the new revision is used in new workflow executions.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflows/{workflowsId}", // "httpMethod": "PATCH", // "id": "workflows.projects.locations.workflows.patch", diff --git a/workloadmanager/v1/workloadmanager-api.json b/workloadmanager/v1/workloadmanager-api.json new file mode 100644 index 00000000000..0062e0bc738 --- /dev/null +++ b/workloadmanager/v1/workloadmanager-api.json @@ -0,0 +1,1022 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/cloud-platform": { + "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account." + } + } + } + }, + "basePath": "", + "baseUrl": "https://workloadmanager.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Workload Manager", + "description": "", + "discoveryVersion": "v1", + "documentationLink": "https://cloud.google.com/workload-manager/docs", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "workloadmanager:v1", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://workloadmanager.mtls.googleapis.com/", + "name": "workloadmanager", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "projects": { + "resources": { + "locations": { + "methods": { + "get": { + "description": "Gets information about a location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", + "httpMethod": "GET", + "id": "workloadmanager.projects.locations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Resource name for the location.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Location" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists information about the supported locations for this service.", + "flatPath": "v1/projects/{projectsId}/locations", + "httpMethod": "GET", + "id": "workloadmanager.projects.locations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + "location": "query", + "type": "string" + }, + "name": { + "description": "The resource that owns the locations collection, if applicable.", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The maximum number of results to return. If not set, the service selects a default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}/locations", + "response": { + "$ref": "ListLocationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "evaluations": { + "methods": { + "create": { + "description": "Creates a new Evaluation in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluations", + "httpMethod": "POST", + "id": "workloadmanager.projects.locations.evaluations.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "evaluationId": { + "description": "Required. Id of the requesting object If auto-generating Id server-side, remove this field and evaluation_id from the method_signature of Create RPC", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the evaluation location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/evaluations", + "request": { + "$ref": "Evaluation" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single Evaluation.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluations/{evaluationsId}", + "httpMethod": "GET", + "id": "workloadmanager.projects.locations.evaluations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Evaluation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Evaluations in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluations", + "httpMethod": "GET", + "id": "workloadmanager.projects.locations.evaluations.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Filtering results", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Hint for how to order the results", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A token identifying a page of results the server should return.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent value for ListEvaluationsRequest", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/evaluations", + "response": { + "$ref": "ListEvaluationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "insights": { + "methods": { + "writeInsight": { + "description": "Write the data insights to workload manager data warehouse.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/insights:writeInsight", + "httpMethod": "POST", + "id": "workloadmanager.projects.locations.insights.writeInsight", + "parameterOrder": [ + "location" + ], + "parameters": { + "location": { + "description": "Required. The GCP location. The format is: projects/{project}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+location}/insights:writeInsight", + "request": { + "$ref": "WriteInsightRequest" + }, + "response": { + "$ref": "WriteInsightResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "workloadmanager.projects.locations.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "request": { + "$ref": "CancelOperationRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "workloadmanager.projects.locations.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "workloadmanager.projects.locations.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "workloadmanager.projects.locations.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "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" + ] + } + } + } + } + } + } + } + }, + "revision": "20221213", + "rootUrl": "https://workloadmanager.googleapis.com/", + "schemas": { + "CancelOperationRequest": { + "description": "The request message for Operations.CancelOperation.", + "id": "CancelOperationRequest", + "properties": {}, + "type": "object" + }, + "Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", + "id": "Empty", + "properties": {}, + "type": "object" + }, + "Evaluation": { + "description": "Message describing Evaluation object", + "id": "Evaluation", + "properties": { + "createTime": { + "description": "Output only. [Output only] Create time stamp", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Description of the Evaluation", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Labels as key value pairs", + "type": "object" + }, + "name": { + "description": "name of resource names have the form 'projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}'", + "type": "string" + }, + "resourceFilter": { + "$ref": "ResourceFilter", + "description": "annotations as key value pairs" + }, + "resourceStatus": { + "$ref": "ResourceStatus", + "description": "Output only. [Output only] The updated rule ids if exist.", + "readOnly": true + }, + "ruleNames": { + "description": "the name of the rule", + "items": { + "type": "string" + }, + "type": "array" + }, + "ruleVersions": { + "description": "Output only. [Output only] The updated rule ids if exist.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "updateTime": { + "description": "Output only. [Output only] Update time stamp", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GceInstanceFilter": { + "description": "Message describing compute engine instance filter", + "id": "GceInstanceFilter", + "properties": { + "serviceAccounts": { + "description": "Service account of compute engine", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "Insight": { + "description": "A presentation of host resource usage where the workload runs.", + "id": "Insight", + "properties": { + "sapDiscovery": { + "$ref": "SapDiscovery", + "description": "The insights data for sap system discovery. This is a copy of SAP System proto and should get updated whenever that one changes." + }, + "sapValidation": { + "$ref": "SapValidation", + "description": "The insights data for the sap workload validation." + }, + "sentTime": { + "description": "Output only. [Output only] Create time stamp", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "ListEvaluationsResponse": { + "description": "Message for response to listing Evaluations", + "id": "ListEvaluationsResponse", + "properties": { + "evaluations": { + "description": "The list of Evaluation", + "items": { + "$ref": "Evaluation" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListLocationsResponse": { + "description": "The response message for Locations.ListLocations.", + "id": "ListLocationsResponse", + "properties": { + "locations": { + "description": "A list of locations that matches the specified filter in the request.", + "items": { + "$ref": "Location" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + } + }, + "type": "object" + }, + "ListOperationsResponse": { + "description": "The response message for Operations.ListOperations.", + "id": "ListOperationsResponse", + "properties": { + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + }, + "operations": { + "description": "A list of operations that matches the specified filter in the request.", + "items": { + "$ref": "Operation" + }, + "type": "array" + } + }, + "type": "object" + }, + "Location": { + "description": "A resource that represents Google Cloud Platform location.", + "id": "Location", + "properties": { + "displayName": { + "description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"}", + "type": "object" + }, + "locationId": { + "description": "The canonical id for this location. For example: `\"us-east1\"`.", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata. For example the available capacity at the given location.", + "type": "object" + }, + "name": { + "description": "Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"`", + "type": "string" + } + }, + "type": "object" + }, + "Operation": { + "description": "This resource represents a long-running operation that is the result of a network API call.", + "id": "Operation", + "properties": { + "done": { + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", + "type": "boolean" + }, + "error": { + "$ref": "Status", + "description": "The error result of the operation in case of failure or cancellation." + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object" + }, + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", + "type": "string" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "type": "object" + } + }, + "type": "object" + }, + "OperationMetadata": { + "description": "Represents the metadata of the long-running operation.", + "id": "OperationMetadata", + "properties": { + "apiVersion": { + "description": "Output only. API version used to start the operation.", + "readOnly": true, + "type": "string" + }, + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The time the operation finished running.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "requestedCancellation": { + "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "readOnly": true, + "type": "boolean" + }, + "statusMessage": { + "description": "Output only. Human-readable status of the operation, if any.", + "readOnly": true, + "type": "string" + }, + "target": { + "description": "Output only. Server-defined resource path for the target of the operation.", + "readOnly": true, + "type": "string" + }, + "verb": { + "description": "Output only. Name of the verb executed by the operation.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "ResourceFilter": { + "description": "Message describing resource filters", + "id": "ResourceFilter", + "properties": { + "gceInstanceFilter": { + "$ref": "GceInstanceFilter", + "description": "Filter compute engine resource" + }, + "inclusionLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "The label used for filter resource", + "type": "object" + }, + "resourceIdPatterns": { + "description": "The id pattern for filter resource", + "items": { + "type": "string" + }, + "type": "array" + }, + "scopes": { + "description": "The scopes of evaluation resource", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ResourceStatus": { + "description": "Message describing resource status", + "id": "ResourceStatus", + "properties": { + "rulesNewerVersions": { + "description": "the new version of rule id if exists", + "items": { + "type": "string" + }, + "type": "array" + }, + "state": { + "description": "State of the resource", + "enum": [ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "DELETING" + ], + "enumDescriptions": [ + "The state has not been populated in this message.", + "Resource has an active Create operation.", + "Resource has no outstanding operations on it or has active Update operations.", + "Resource has an active Delete operation." + ], + "type": "string" + } + }, + "type": "object" + }, + "SapDiscovery": { + "description": "The schema of SAP system discovery data.", + "id": "SapDiscovery", + "properties": { + "applicationLayer": { + "$ref": "SapDiscoveryComponent", + "description": "An SAP system may run without an application layer." + }, + "databaseLayer": { + "$ref": "SapDiscoveryComponent", + "description": "An SAP System must have a database." + }, + "metadata": { + "$ref": "SapDiscoveryMetadata", + "description": "The metadata for SAP system discovery data." + }, + "systemId": { + "description": "A combination of database SID, database instance URI and tenant DB name to make a unique identifier per-system.", + "type": "string" + }, + "updateTime": { + "description": "Unix timestamp this system has been updated last.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "SapDiscoveryComponent": { + "description": "Message describing the system component.", + "id": "SapDiscoveryComponent", + "properties": { + "applicationType": { + "description": "The component is a SAP application.", + "type": "string" + }, + "databaseType": { + "description": "The component is a SAP database.", + "type": "string" + }, + "hostProject": { + "description": "Pantheon Project in which the resources reside.", + "type": "string" + }, + "resources": { + "description": "The resources in a component.", + "items": { + "$ref": "SapDiscoveryResource" + }, + "type": "array" + }, + "sid": { + "description": "The sap identifier, used by the SAP software and helps differentiate systems for customers.", + "type": "string" + } + }, + "type": "object" + }, + "SapDiscoveryMetadata": { + "description": "Message describing SAP discovery system metadata", + "id": "SapDiscoveryMetadata", + "properties": { + "customerRegion": { + "description": "Customer region string for customer's use. Does not represent GCP region.", + "type": "string" + }, + "definedSystem": { + "description": "Customer defined, something like \"E-commerce pre prod\"", + "type": "string" + }, + "environmentType": { + "description": "Should be \"prod\", \"QA\", \"dev\", \"staging\", etc.", + "type": "string" + }, + "sapProduct": { + "description": "This sap product name", + "type": "string" + } + }, + "type": "object" + }, + "SapDiscoveryResource": { + "description": "Message describing a resource.", + "id": "SapDiscoveryResource", + "properties": { + "relatedResources": { + "description": "A list of resource URIs related to this resource.", + "items": { + "type": "string" + }, + "type": "array" + }, + "resourceKind": { + "description": "ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc.", + "type": "string" + }, + "resourceType": { + "description": "The type of this resource.", + "enum": [ + "RESOURCE_TYPE_UNSPECIFIED", + "COMPUTE", + "STORAGE", + "NETWORK" + ], + "enumDescriptions": [ + "Undefined resource type.", + "This is a compute resource.", + "This a storage resource.", + "This is a network resource." + ], + "type": "string" + }, + "resourceUri": { + "description": "URI of the resource, includes project, location, and name.", + "type": "string" + }, + "updateTime": { + "description": "Unix timestamp of when this resource last had its discovery data updated.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "SapValidation": { + "description": "A presentation of SAP workload insight. The schema of SAP workloads validation related data.", + "id": "SapValidation", + "properties": { + "validationDetails": { + "description": "A list of SAP validation metrics data.", + "items": { + "$ref": "SapValidationValidationDetail" + }, + "type": "array" + } + }, + "type": "object" + }, + "SapValidationValidationDetail": { + "description": "Message describing the SAP validation metrics.", + "id": "SapValidationValidationDetail", + "properties": { + "details": { + "additionalProperties": { + "type": "string" + }, + "description": "The pairs of metrics data: field name \u0026 field value.", + "type": "object" + }, + "sapValidationType": { + "description": "The SAP system that the validation data is from.", + "enum": [ + "SAP_VALIDATION_TYPE_UNSPECIFIED", + "SYSTEM", + "COROSYNC", + "PACEMAKER", + "HANA", + "NETWEAVER" + ], + "enumDescriptions": [ + "Unspecified type.", + "The SAP system named SYSTEM.", + "The SAP system named COROSYNC.", + "The SAP system named PACEMAKER.", + "The SAP system named HANA.", + "The SAP system named NETWEAVER." + ], + "type": "string" + } + }, + "type": "object" + }, + "Status": { + "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", + "id": "Status", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" + }, + "WriteInsightRequest": { + "description": "Request for sending the data insights.", + "id": "WriteInsightRequest", + "properties": { + "insight": { + "$ref": "Insight", + "description": "Required. The metrics data details." + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "type": "string" + } + }, + "type": "object" + }, + "WriteInsightResponse": { + "description": "The response for write insights request.", + "id": "WriteInsightResponse", + "properties": {}, + "type": "object" + } + }, + "servicePath": "", + "title": "Workload Manager API", + "version": "v1", + "version_module": true +} \ No newline at end of file diff --git a/workloadmanager/v1/workloadmanager-gen.go b/workloadmanager/v1/workloadmanager-gen.go new file mode 100644 index 00000000000..f2da63ebd74 --- /dev/null +++ b/workloadmanager/v1/workloadmanager-gen.go @@ -0,0 +1,2717 @@ +// Copyright 2022 Google LLC. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated file. DO NOT EDIT. + +// Package workloadmanager provides access to the Workload Manager API. +// +// For product documentation, see: https://cloud.google.com/workload-manager/docs +// +// # Creating a client +// +// Usage example: +// +// import "google.golang.org/api/workloadmanager/v1" +// ... +// ctx := context.Background() +// workloadmanagerService, err := workloadmanager.NewService(ctx) +// +// In this example, Google Application Default Credentials are used for authentication. +// +// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// +// # Other authentication options +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// workloadmanagerService, err := workloadmanager.NewService(ctx, option.WithAPIKey("AIza...")) +// +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// +// config := &oauth2.Config{...} +// // ... +// token, err := config.Exchange(ctx, ...) +// workloadmanagerService, err := workloadmanager.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package workloadmanager // import "google.golang.org/api/workloadmanager/v1" + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" + gensupport "google.golang.org/api/internal/gensupport" + option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" + htransport "google.golang.org/api/transport/http" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = gensupport.MarshalJSON +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint + +const apiId = "workloadmanager:v1" +const apiName = "workloadmanager" +const apiVersion = "v1" +const basePath = "https://workloadmanager.googleapis.com/" +const mtlsBasePath = "https://workloadmanager.mtls.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // See, edit, configure, and delete your Google Cloud data and see the + // email address for your Google Account. + CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" +) + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + scopesOption := internaloption.WithDefaultScopes( + "https://www.googleapis.com/auth/cloud-platform", + ) + // NOTE: prepend, so we don't override user-specified scopes. + opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + client, endpoint, err := htransport.NewClient(ctx, opts...) + if err != nil { + return nil, err + } + s, err := New(client) + if err != nil { + return nil, err + } + if endpoint != "" { + s.BasePath = endpoint + } + return s, nil +} + +// New creates a new Service. It uses the provided http.Client for requests. +// +// Deprecated: please use NewService instead. +// To provide a custom HTTP client, use option.WithHTTPClient. +// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.Projects = NewProjectsService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Projects *ProjectsService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewProjectsService(s *Service) *ProjectsService { + rs := &ProjectsService{s: s} + rs.Locations = NewProjectsLocationsService(s) + return rs +} + +type ProjectsService struct { + s *Service + + Locations *ProjectsLocationsService +} + +func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { + rs := &ProjectsLocationsService{s: s} + rs.Evaluations = NewProjectsLocationsEvaluationsService(s) + rs.Insights = NewProjectsLocationsInsightsService(s) + rs.Operations = NewProjectsLocationsOperationsService(s) + return rs +} + +type ProjectsLocationsService struct { + s *Service + + Evaluations *ProjectsLocationsEvaluationsService + + Insights *ProjectsLocationsInsightsService + + Operations *ProjectsLocationsOperationsService +} + +func NewProjectsLocationsEvaluationsService(s *Service) *ProjectsLocationsEvaluationsService { + rs := &ProjectsLocationsEvaluationsService{s: s} + return rs +} + +type ProjectsLocationsEvaluationsService struct { + s *Service +} + +func NewProjectsLocationsInsightsService(s *Service) *ProjectsLocationsInsightsService { + rs := &ProjectsLocationsInsightsService{s: s} + return rs +} + +type ProjectsLocationsInsightsService struct { + s *Service +} + +func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { + rs := &ProjectsLocationsOperationsService{s: s} + return rs +} + +type ProjectsLocationsOperationsService struct { + s *Service +} + +// CancelOperationRequest: The request message for +// Operations.CancelOperation. +type CancelOperationRequest struct { +} + +// Empty: A generic empty message that you can re-use to avoid defining +// duplicated empty messages in your APIs. A typical example is to use +// it as the request or the response type of an API method. For +// instance: service Foo { rpc Bar(google.protobuf.Empty) returns +// (google.protobuf.Empty); } +type Empty struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// Evaluation: Message describing Evaluation object +type Evaluation struct { + // CreateTime: Output only. [Output only] Create time stamp + CreateTime string `json:"createTime,omitempty"` + + // Description: Description of the Evaluation + Description string `json:"description,omitempty"` + + // Labels: Labels as key value pairs + Labels map[string]string `json:"labels,omitempty"` + + // Name: name of resource names have the form + // 'projects/{project_id}/locations/{location_id}/evaluations/{evaluation + // _id}' + Name string `json:"name,omitempty"` + + // ResourceFilter: annotations as key value pairs + ResourceFilter *ResourceFilter `json:"resourceFilter,omitempty"` + + // ResourceStatus: Output only. [Output only] The updated rule ids if + // exist. + ResourceStatus *ResourceStatus `json:"resourceStatus,omitempty"` + + // RuleNames: the name of the rule + RuleNames []string `json:"ruleNames,omitempty"` + + // RuleVersions: Output only. [Output only] The updated rule ids if + // exist. + RuleVersions []string `json:"ruleVersions,omitempty"` + + // UpdateTime: Output only. [Output only] Update time stamp + 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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Evaluation) MarshalJSON() ([]byte, error) { + type NoMethod Evaluation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GceInstanceFilter: Message describing compute engine instance filter +type GceInstanceFilter struct { + // ServiceAccounts: Service account of compute engine + ServiceAccounts []string `json:"serviceAccounts,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ServiceAccounts") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ServiceAccounts") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GceInstanceFilter) MarshalJSON() ([]byte, error) { + type NoMethod GceInstanceFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Insight: A presentation of host resource usage where the workload +// runs. +type Insight struct { + // SapDiscovery: The insights data for sap system discovery. This is a + // copy of SAP System proto and should get updated whenever that one + // changes. + SapDiscovery *SapDiscovery `json:"sapDiscovery,omitempty"` + + // SapValidation: The insights data for the sap workload validation. + SapValidation *SapValidation `json:"sapValidation,omitempty"` + + // SentTime: Output only. [Output only] Create time stamp + SentTime string `json:"sentTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SapDiscovery") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "SapDiscovery") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Insight) MarshalJSON() ([]byte, error) { + type NoMethod Insight + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListEvaluationsResponse: Message for response to listing Evaluations +type ListEvaluationsResponse struct { + // Evaluations: The list of Evaluation + Evaluations []*Evaluation `json:"evaluations,omitempty"` + + // NextPageToken: A token identifying a page of results the server + // should return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Evaluations") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Evaluations") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListEvaluationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListEvaluationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListLocationsResponse: The response message for +// Locations.ListLocations. +type ListLocationsResponse struct { + // Locations: A list of locations that matches the specified filter in + // the request. + Locations []*Location `json:"locations,omitempty"` + + // NextPageToken: The standard List next-page token. + 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. "Locations") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Locations") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListLocationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListOperationsResponse: The response message for +// Operations.ListOperations. +type ListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Operations: A list of operations that matches the specified filter in + // the request. + Operations []*Operation `json:"operations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListOperationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Location: A resource that represents Google Cloud Platform location. +type Location struct { + // DisplayName: The friendly name for this location, typically a nearby + // city name. For example, "Tokyo". + DisplayName string `json:"displayName,omitempty"` + + // Labels: Cross-service attributes for the location. For example + // {"cloud.googleapis.com/region": "us-east1"} + Labels map[string]string `json:"labels,omitempty"` + + // LocationId: The canonical id for this location. For example: + // "us-east1". + LocationId string `json:"locationId,omitempty"` + + // Metadata: Service-specific metadata. For example the available + // capacity at the given location. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: Resource name for the location, which may vary between + // implementations. For example: + // "projects/example-project/locations/us-east1" + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Location) MarshalJSON() ([]byte, error) { + type NoMethod Location + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Operation: This resource represents a long-running operation that is +// the result of a network API call. +type Operation struct { + // Done: If the value is `false`, it means the operation is still in + // progress. If `true`, the operation is completed, and either `error` + // or `response` is available. + Done bool `json:"done,omitempty"` + + // Error: The error result of the operation in case of failure or + // cancellation. + Error *Status `json:"error,omitempty"` + + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as + // create time. Some services might not provide such metadata. Any + // method that returns a long-running operation should document the + // metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: The server-assigned name, which is only unique within the same + // service that originally returns it. If you use the default HTTP + // mapping, the `name` should be a resource name ending with + // `operations/{unique_id}`. + Name string `json:"name,omitempty"` + + // Response: The normal response of the operation in case of success. If + // the original method returns no data on success, such as `Delete`, the + // response is `google.protobuf.Empty`. If the original method is + // standard `Get`/`Create`/`Update`, the response should be the + // resource. For other methods, the response should have the type + // `XxxResponse`, where `Xxx` is the original method name. For example, + // if the original method name is `TakeSnapshot()`, the inferred + // response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Done") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Done") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Operation) MarshalJSON() ([]byte, error) { + type NoMethod Operation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// OperationMetadata: Represents the metadata of the long-running +// operation. +type OperationMetadata struct { + // ApiVersion: Output only. API version used to start the operation. + ApiVersion string `json:"apiVersion,omitempty"` + + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + + // RequestedCancellation: Output only. Identifies whether the user has + // requested cancellation of the operation. Operations that have been + // cancelled successfully have Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + RequestedCancellation bool `json:"requestedCancellation,omitempty"` + + // StatusMessage: Output only. Human-readable status of the operation, + // if any. + StatusMessage string `json:"statusMessage,omitempty"` + + // Target: Output only. Server-defined resource path for the target of + // the operation. + Target string `json:"target,omitempty"` + + // Verb: Output only. Name of the verb executed by the operation. + Verb string `json:"verb,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApiVersion") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ApiVersion") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *OperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod OperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ResourceFilter: Message describing resource filters +type ResourceFilter struct { + // GceInstanceFilter: Filter compute engine resource + GceInstanceFilter *GceInstanceFilter `json:"gceInstanceFilter,omitempty"` + + // InclusionLabels: The label used for filter resource + InclusionLabels map[string]string `json:"inclusionLabels,omitempty"` + + // ResourceIdPatterns: The id pattern for filter resource + ResourceIdPatterns []string `json:"resourceIdPatterns,omitempty"` + + // Scopes: The scopes of evaluation resource + Scopes []string `json:"scopes,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GceInstanceFilter") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GceInstanceFilter") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ResourceFilter) MarshalJSON() ([]byte, error) { + type NoMethod ResourceFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ResourceStatus: Message describing resource status +type ResourceStatus struct { + // RulesNewerVersions: the new version of rule id if exists + RulesNewerVersions []string `json:"rulesNewerVersions,omitempty"` + + // State: State of the resource + // + // Possible values: + // "STATE_UNSPECIFIED" - The state has not been populated in this + // message. + // "CREATING" - Resource has an active Create operation. + // "ACTIVE" - Resource has no outstanding operations on it or has + // active Update operations. + // "DELETING" - Resource has an active Delete operation. + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RulesNewerVersions") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "RulesNewerVersions") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ResourceStatus) MarshalJSON() ([]byte, error) { + type NoMethod ResourceStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SapDiscovery: The schema of SAP system discovery data. +type SapDiscovery struct { + // ApplicationLayer: An SAP system may run without an application layer. + ApplicationLayer *SapDiscoveryComponent `json:"applicationLayer,omitempty"` + + // DatabaseLayer: An SAP System must have a database. + DatabaseLayer *SapDiscoveryComponent `json:"databaseLayer,omitempty"` + + // Metadata: The metadata for SAP system discovery data. + Metadata *SapDiscoveryMetadata `json:"metadata,omitempty"` + + // SystemId: A combination of database SID, database instance URI and + // tenant DB name to make a unique identifier per-system. + SystemId string `json:"systemId,omitempty"` + + // UpdateTime: Unix timestamp this system has been updated last. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApplicationLayer") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ApplicationLayer") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SapDiscovery) MarshalJSON() ([]byte, error) { + type NoMethod SapDiscovery + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SapDiscoveryComponent: Message describing the system component. +type SapDiscoveryComponent struct { + // ApplicationType: The component is a SAP application. + ApplicationType string `json:"applicationType,omitempty"` + + // DatabaseType: The component is a SAP database. + DatabaseType string `json:"databaseType,omitempty"` + + // HostProject: Pantheon Project in which the resources reside. + HostProject string `json:"hostProject,omitempty"` + + // Resources: The resources in a component. + Resources []*SapDiscoveryResource `json:"resources,omitempty"` + + // Sid: The sap identifier, used by the SAP software and helps + // differentiate systems for customers. + Sid string `json:"sid,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApplicationType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ApplicationType") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SapDiscoveryComponent) MarshalJSON() ([]byte, error) { + type NoMethod SapDiscoveryComponent + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SapDiscoveryMetadata: Message describing SAP discovery system +// metadata +type SapDiscoveryMetadata struct { + // CustomerRegion: Customer region string for customer's use. Does not + // represent GCP region. + CustomerRegion string `json:"customerRegion,omitempty"` + + // DefinedSystem: Customer defined, something like "E-commerce pre prod" + DefinedSystem string `json:"definedSystem,omitempty"` + + // EnvironmentType: Should be "prod", "QA", "dev", "staging", etc. + EnvironmentType string `json:"environmentType,omitempty"` + + // SapProduct: This sap product name + SapProduct string `json:"sapProduct,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CustomerRegion") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CustomerRegion") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SapDiscoveryMetadata) MarshalJSON() ([]byte, error) { + type NoMethod SapDiscoveryMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SapDiscoveryResource: Message describing a resource. +type SapDiscoveryResource struct { + // RelatedResources: A list of resource URIs related to this resource. + RelatedResources []string `json:"relatedResources,omitempty"` + + // ResourceKind: ComputeInstance, ComputeDisk, VPC, Bare Metal server, + // etc. + ResourceKind string `json:"resourceKind,omitempty"` + + // ResourceType: The type of this resource. + // + // Possible values: + // "RESOURCE_TYPE_UNSPECIFIED" - Undefined resource type. + // "COMPUTE" - This is a compute resource. + // "STORAGE" - This a storage resource. + // "NETWORK" - This is a network resource. + ResourceType string `json:"resourceType,omitempty"` + + // ResourceUri: URI of the resource, includes project, location, and + // name. + ResourceUri string `json:"resourceUri,omitempty"` + + // UpdateTime: Unix timestamp of when this resource last had its + // discovery data updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RelatedResources") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "RelatedResources") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SapDiscoveryResource) MarshalJSON() ([]byte, error) { + type NoMethod SapDiscoveryResource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SapValidation: A presentation of SAP workload insight. The schema of +// SAP workloads validation related data. +type SapValidation struct { + // ValidationDetails: A list of SAP validation metrics data. + ValidationDetails []*SapValidationValidationDetail `json:"validationDetails,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ValidationDetails") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ValidationDetails") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SapValidation) MarshalJSON() ([]byte, error) { + type NoMethod SapValidation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SapValidationValidationDetail: Message describing the SAP validation +// metrics. +type SapValidationValidationDetail struct { + // Details: The pairs of metrics data: field name & field value. + Details map[string]string `json:"details,omitempty"` + + // SapValidationType: The SAP system that the validation data is from. + // + // Possible values: + // "SAP_VALIDATION_TYPE_UNSPECIFIED" - Unspecified type. + // "SYSTEM" - The SAP system named SYSTEM. + // "COROSYNC" - The SAP system named COROSYNC. + // "PACEMAKER" - The SAP system named PACEMAKER. + // "HANA" - The SAP system named HANA. + // "NETWEAVER" - The SAP system named NETWEAVER. + SapValidationType string `json:"sapValidationType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Details") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Details") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SapValidationValidationDetail) MarshalJSON() ([]byte, error) { + type NoMethod SapValidationValidationDetail + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Status: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs +// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each +// `Status` message contains three pieces of data: error code, error +// message, and error details. You can find out more about this error +// model and how to work with it in the API Design Guide +// (https://cloud.google.com/apis/design/errors). +type Status struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WriteInsightRequest: Request for sending the data insights. +type WriteInsightRequest struct { + // Insight: Required. The metrics data details. + Insight *Insight `json:"insight,omitempty"` + + // RequestId: Optional. An optional request ID to identify requests. + // Specify a unique request ID so that if you must retry your request, + // the server will know to ignore the request if it has already been + // completed. The server will guarantee that for at least 60 minutes + // since the first request. For example, consider a situation where you + // make an initial request and t he request times out. If you make the + // request again with the same request ID, the server can check if + // original operation with the same request ID was received, and if so, + // will ignore the second request. This prevents clients from + // accidentally creating duplicate commitments. The request ID must be a + // valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + RequestId string `json:"requestId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Insight") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Insight") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *WriteInsightRequest) MarshalJSON() ([]byte, error) { + type NoMethod WriteInsightRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WriteInsightResponse: The response for write insights request. +type WriteInsightResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// method id "workloadmanager.projects.locations.get": + +type ProjectsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a location. +// +// - name: Resource name for the location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workloadmanager.projects.locations.get" call. +// Exactly one of *Location or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Location.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 *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, 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 := &Location{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets information about a location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "workloadmanager.projects.locations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name for the location.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Location" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workloadmanager.projects.locations.list": + +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists information about the supported locations for this +// service. +// +// - name: The resource that owns the locations collection, if +// applicable. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": A filter to narrow down +// results to a preferred subset. The filtering language accepts strings +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return. If not set, the service selects a default. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token +// received from the `next_page_token` field in the response. Send that +// page token to receive the subsequent page. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workloadmanager.projects.locations.list" call. +// Exactly one of *ListLocationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, 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 := &ListLocationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists information about the supported locations for this service.", + // "flatPath": "v1/projects/{projectsId}/locations", + // "httpMethod": "GET", + // "id": "workloadmanager.projects.locations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The resource that owns the locations collection, if applicable.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return. If not set, the service selects a default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}/locations", + // "response": { + // "$ref": "ListLocationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "workloadmanager.projects.locations.evaluations.create": + +type ProjectsLocationsEvaluationsCreateCall struct { + s *Service + parent string + evaluation *Evaluation + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new Evaluation in a given project and location. +// +// - parent: The resource name of the evaluation location using the +// form: `projects/{project_id}/locations/{location_id}` where +// `location_id` refers to a GCP region. +func (r *ProjectsLocationsEvaluationsService) Create(parent string, evaluation *Evaluation) *ProjectsLocationsEvaluationsCreateCall { + c := &ProjectsLocationsEvaluationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.evaluation = evaluation + return c +} + +// EvaluationId sets the optional parameter "evaluationId": Required. Id +// of the requesting object If auto-generating Id server-side, remove +// this field and evaluation_id from the method_signature of Create RPC +func (c *ProjectsLocationsEvaluationsCreateCall) EvaluationId(evaluationId string) *ProjectsLocationsEvaluationsCreateCall { + c.urlParams_.Set("evaluationId", evaluationId) + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. The server will guarantee +// that for at least 60 minutes since the first request. For example, +// consider a situation where you make an initial request and t he +// request times out. If you make the request again with the same +// request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate +// commitments. The request ID must be a valid UUID with the exception +// that zero UUID is not supported +// (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsEvaluationsCreateCall) RequestId(requestId string) *ProjectsLocationsEvaluationsCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsEvaluationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsEvaluationsCreateCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsEvaluationsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEvaluationsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.evaluation) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/evaluations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workloadmanager.projects.locations.evaluations.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsEvaluationsCreateCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new Evaluation in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluations", + // "httpMethod": "POST", + // "id": "workloadmanager.projects.locations.evaluations.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "evaluationId": { + // "description": "Required. Id of the requesting object If auto-generating Id server-side, remove this field and evaluation_id from the method_signature of Create RPC", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the evaluation location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/evaluations", + // "request": { + // "$ref": "Evaluation" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workloadmanager.projects.locations.evaluations.get": + +type ProjectsLocationsEvaluationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single Evaluation. +// +// - name: Name of the resource. +func (r *ProjectsLocationsEvaluationsService) Get(name string) *ProjectsLocationsEvaluationsGetCall { + c := &ProjectsLocationsEvaluationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsEvaluationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsEvaluationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsEvaluationsGetCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsEvaluationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEvaluationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workloadmanager.projects.locations.evaluations.get" call. +// Exactly one of *Evaluation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Evaluation.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 *ProjectsLocationsEvaluationsGetCall) Do(opts ...googleapi.CallOption) (*Evaluation, 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 := &Evaluation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets details of a single Evaluation.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluations/{evaluationsId}", + // "httpMethod": "GET", + // "id": "workloadmanager.projects.locations.evaluations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the resource", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/evaluations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Evaluation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workloadmanager.projects.locations.evaluations.list": + +type ProjectsLocationsEvaluationsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists Evaluations in a given project and location. +// +// - parent: Parent value for ListEvaluationsRequest. +func (r *ProjectsLocationsEvaluationsService) List(parent string) *ProjectsLocationsEvaluationsListCall { + c := &ProjectsLocationsEvaluationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filtering results +func (c *ProjectsLocationsEvaluationsListCall) Filter(filter string) *ProjectsLocationsEvaluationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Hint for how to order +// the results +func (c *ProjectsLocationsEvaluationsListCall) OrderBy(orderBy string) *ProjectsLocationsEvaluationsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. +// Server may return fewer items than requested. If unspecified, server +// will pick an appropriate default. +func (c *ProjectsLocationsEvaluationsListCall) PageSize(pageSize int64) *ProjectsLocationsEvaluationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token +// identifying a page of results the server should return. +func (c *ProjectsLocationsEvaluationsListCall) PageToken(pageToken string) *ProjectsLocationsEvaluationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsEvaluationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsEvaluationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsEvaluationsListCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsEvaluationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEvaluationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/evaluations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workloadmanager.projects.locations.evaluations.list" call. +// Exactly one of *ListEvaluationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListEvaluationsResponse.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 *ProjectsLocationsEvaluationsListCall) Do(opts ...googleapi.CallOption) (*ListEvaluationsResponse, 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 := &ListEvaluationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists Evaluations in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluations", + // "httpMethod": "GET", + // "id": "workloadmanager.projects.locations.evaluations.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Filtering results", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Hint for how to order the results", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A token identifying a page of results the server should return.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Parent value for ListEvaluationsRequest", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/evaluations", + // "response": { + // "$ref": "ListEvaluationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsEvaluationsListCall) Pages(ctx context.Context, f func(*ListEvaluationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "workloadmanager.projects.locations.insights.writeInsight": + +type ProjectsLocationsInsightsWriteInsightCall struct { + s *Service + location string + writeinsightrequest *WriteInsightRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// WriteInsight: Write the data insights to workload manager data +// warehouse. +// +// - location: The GCP location. The format is: +// projects/{project}/locations/{location}. +func (r *ProjectsLocationsInsightsService) WriteInsight(location string, writeinsightrequest *WriteInsightRequest) *ProjectsLocationsInsightsWriteInsightCall { + c := &ProjectsLocationsInsightsWriteInsightCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.location = location + c.writeinsightrequest = writeinsightrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInsightsWriteInsightCall) Fields(s ...googleapi.Field) *ProjectsLocationsInsightsWriteInsightCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInsightsWriteInsightCall) Context(ctx context.Context) *ProjectsLocationsInsightsWriteInsightCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInsightsWriteInsightCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInsightsWriteInsightCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.writeinsightrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}/insights:writeInsight") + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workloadmanager.projects.locations.insights.writeInsight" call. +// Exactly one of *WriteInsightResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *WriteInsightResponse.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 *ProjectsLocationsInsightsWriteInsightCall) Do(opts ...googleapi.CallOption) (*WriteInsightResponse, 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 := &WriteInsightResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Write the data insights to workload manager data warehouse.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/insights:writeInsight", + // "httpMethod": "POST", + // "id": "workloadmanager.projects.locations.insights.writeInsight", + // "parameterOrder": [ + // "location" + // ], + // "parameters": { + // "location": { + // "description": "Required. The GCP location. The format is: projects/{project}/locations/{location}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+location}/insights:writeInsight", + // "request": { + // "$ref": "WriteInsightRequest" + // }, + // "response": { + // "$ref": "WriteInsightResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workloadmanager.projects.locations.operations.cancel": + +type ProjectsLocationsOperationsCancelCall struct { + s *Service + name string + canceloperationrequest *CancelOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. +// +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall { + c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.canceloperationrequest = canceloperationrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workloadmanager.projects.locations.operations.cancel" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "workloadmanager.projects.locations.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:cancel", + // "request": { + // "$ref": "CancelOperationRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workloadmanager.projects.locations.operations.delete": + +type ProjectsLocationsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that +// the client is no longer interested in the operation result. It does +// not cancel the operation. If the server doesn't support this method, +// it returns `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { + c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workloadmanager.projects.locations.operations.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "workloadmanager.projects.locations.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workloadmanager.projects.locations.operations.get": + +type ProjectsLocationsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +// +// - name: The name of the operation resource. +func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { + c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workloadmanager.projects.locations.operations.get" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsGetCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "workloadmanager.projects.locations.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workloadmanager.projects.locations.operations.list": + +type ProjectsLocationsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to +// override the binding to use different resource name schemes, such as +// `users/*/operations`. To override the binding, API services can add a +// binding such as "/v1/{name=users/*}/operations" to their service +// configuration. For backwards compatibility, the default name includes +// the operations collection id, however overriding users must ensure +// the name binding is the parent resource, without the operations +// collection id. +// +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { + c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workloadmanager.projects.locations.operations.list" call. +// Exactly one of *ListOperationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.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 *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, 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 := &ListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", + // "httpMethod": "GET", + // "id": "workloadmanager.projects.locations.operations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "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" + // ] + // } + +} + +// 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 *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} diff --git a/workstations/v1beta/workstations-api.json b/workstations/v1beta/workstations-api.json new file mode 100644 index 00000000000..494999b8d60 --- /dev/null +++ b/workstations/v1beta/workstations-api.json @@ -0,0 +1,2075 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/cloud-platform": { + "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account." + } + } + } + }, + "basePath": "", + "baseUrl": "https://workstations.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Cloud Workstations", + "description": "", + "discoveryVersion": "v1", + "documentationLink": "https://cloud.google.com/workstations", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "workstations:v1beta", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://workstations.mtls.googleapis.com/", + "name": "workstations", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "projects": { + "resources": { + "locations": { + "resources": { + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "workstations.projects.locations.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}:cancel", + "request": { + "$ref": "CancelOperationRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "workstations.projects.locations.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "workstations.projects.locations.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "workstations.projects.locations.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta/{+name}/operations", + "response": { + "$ref": "ListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "workstationClusters": { + "methods": { + "create": { + "description": "Creates a new WorkstationCluster.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters", + "httpMethod": "POST", + "id": "workstations.projects.locations.workstationClusters.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Parent resource name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "validateOnly": { + "description": "If set, validate the request and preview the review, but do not actually apply it.", + "location": "query", + "type": "boolean" + }, + "workstationClusterId": { + "description": "Required. ID to use for the cluster.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta/{+parent}/workstationClusters", + "request": { + "$ref": "WorkstationCluster" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes the specified WorkstationCluster.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}", + "httpMethod": "DELETE", + "id": "workstations.projects.locations.workstationClusters.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "etag": { + "description": "If set, the request will be rejected if the latest version of the cluster on the server does not have this etag.", + "location": "query", + "type": "string" + }, + "force": { + "description": "If set, any WorkstationConfigs and Workstations in the cluster will also be deleted. Otherwise, the request will work only if the cluster has no configs or workstations.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. Name of the cluster to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+$", + "required": true, + "type": "string" + }, + "validateOnly": { + "description": "If set, validate the request and preview the review, but do not actually apply it.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1beta/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Returns the requested WorkstationCluster.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}", + "httpMethod": "GET", + "id": "workstations.projects.locations.workstationClusters.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the requested resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}", + "response": { + "$ref": "WorkstationCluster" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Returns all WorkstationClusters in the specified location.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters", + "httpMethod": "GET", + "id": "workstations.projects.locations.workstationClusters.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Maximum number of items to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "next_page_token value returned from a previous List request, if any.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent resource name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+parent}/workstationClusters", + "response": { + "$ref": "ListWorkstationClustersResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an existing WorkstationCluster.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}", + "httpMethod": "PATCH", + "id": "workstations.projects.locations.workstationClusters.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "allowMissing": { + "description": "If set, and the cluster is not found, a new cluster will be created. In this situation, update_mask is ignored.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Full name of this resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. Mask specifying which fields in the cluster should be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "validateOnly": { + "description": "If set, validate the request and preview the review, but do not actually apply it.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1beta/{+name}", + "request": { + "$ref": "WorkstationCluster" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "workstationConfigs": { + "methods": { + "create": { + "description": "Creates a new WorkstationConfig.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs", + "httpMethod": "POST", + "id": "workstations.projects.locations.workstationClusters.workstationConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Parent resource name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+$", + "required": true, + "type": "string" + }, + "validateOnly": { + "description": "If set, validate the request and preview the review, but do not actually apply it.", + "location": "query", + "type": "boolean" + }, + "workstationConfigId": { + "description": "Required. ID to use for the config.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta/{+parent}/workstationConfigs", + "request": { + "$ref": "WorkstationConfig" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes the specified WorkstationConfig.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}", + "httpMethod": "DELETE", + "id": "workstations.projects.locations.workstationClusters.workstationConfigs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "etag": { + "description": "If set, the request will be rejected if the latest version of the config on the server does not have this etag.", + "location": "query", + "type": "string" + }, + "force": { + "description": "If set, any Workstations in the config will also be deleted. Otherwise, the request will work only if the config has no workstations.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. Name of the config to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "validateOnly": { + "description": "If set, validate the request and preview the review, but do not actually apply it.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1beta/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Returns the requested WorkstationConfig.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}", + "httpMethod": "GET", + "id": "workstations.projects.locations.workstationClusters.workstationConfigs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the requested resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}", + "response": { + "$ref": "WorkstationConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}:getIamPolicy", + "httpMethod": "GET", + "id": "workstations.projects.locations.workstationClusters.workstationConfigs.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/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+resource}:getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Returns all WorkstationConfigs in the specified cluster.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs", + "httpMethod": "GET", + "id": "workstations.projects.locations.workstationClusters.workstationConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Maximum number of items to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "next_page_token value returned from a previous List request, if any.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent resource name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+parent}/workstationConfigs", + "response": { + "$ref": "ListWorkstationConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "listUsable": { + "description": "Returns all WorkstationConfigs in the specified cluster on which the caller has the \"workstations.workstation.create\" permission.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs:listUsable", + "httpMethod": "GET", + "id": "workstations.projects.locations.workstationClusters.workstationConfigs.listUsable", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Maximum number of items to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "next_page_token value returned from a previous List request, if any.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent resource name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+parent}/workstationConfigs:listUsable", + "response": { + "$ref": "ListUsableWorkstationConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an existing WorkstationConfig.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}", + "httpMethod": "PATCH", + "id": "workstations.projects.locations.workstationClusters.workstationConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "allowMissing": { + "description": "If set, and the config is not found, a new config will be created. In this situation, update_mask is ignored.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Full name of this resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. Mask specifying which fields in the config should be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "validateOnly": { + "description": "If set, validate the request and preview the review, but do not actually apply it.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1beta/{+name}", + "request": { + "$ref": "WorkstationConfig" + }, + "response": { + "$ref": "Operation" + }, + "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": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}:setIamPolicy", + "httpMethod": "POST", + "id": "workstations.projects.locations.workstationClusters.workstationConfigs.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/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}:testIamPermissions", + "httpMethod": "POST", + "id": "workstations.projects.locations.workstationClusters.workstationConfigs.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/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "workstations": { + "methods": { + "create": { + "description": "Creates a new Workstation.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations", + "httpMethod": "POST", + "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Parent resource name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "validateOnly": { + "description": "If set, validate the request and preview the review, but do not actually apply it.", + "location": "query", + "type": "boolean" + }, + "workstationId": { + "description": "Required. ID to use for the workstation.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta/{+parent}/workstations", + "request": { + "$ref": "Workstation" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes the specified Workstation.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}", + "httpMethod": "DELETE", + "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "etag": { + "description": "If set, the request will be rejected if the latest version of the workstation on the server does not have this etag.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. Name of the workstation to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+/workstations/[^/]+$", + "required": true, + "type": "string" + }, + "validateOnly": { + "description": "If set, validate the request and preview the review, but do not actually apply it.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1beta/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "generateAccessToken": { + "description": "Returns a short-lived credential that can be used to send authenticated and authorized traffic to a workstation.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}:generateAccessToken", + "httpMethod": "POST", + "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.generateAccessToken", + "parameterOrder": [ + "workstation" + ], + "parameters": { + "workstation": { + "description": "Required. Name of the workstation for which the access token should be generated.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+/workstations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+workstation}:generateAccessToken", + "request": { + "$ref": "GenerateAccessTokenRequest" + }, + "response": { + "$ref": "GenerateAccessTokenResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Returns the requested Workstation.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}", + "httpMethod": "GET", + "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the requested resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+/workstations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}", + "response": { + "$ref": "Workstation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}:getIamPolicy", + "httpMethod": "GET", + "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.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/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+/workstations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+resource}:getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Returns all Workstations using the specified config.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations", + "httpMethod": "GET", + "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Maximum number of items to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "next_page_token value returned from a previous List request, if any.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent resource name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+parent}/workstations", + "response": { + "$ref": "ListWorkstationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "listUsable": { + "description": "Returns all Workstations using the specified config on which the caller has the \"workstations.workstations.use\" permission.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations:listUsable", + "httpMethod": "GET", + "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.listUsable", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Maximum number of items to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "next_page_token value returned from a previous List request, if any.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent resource name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+parent}/workstations:listUsable", + "response": { + "$ref": "ListUsableWorkstationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an existing Workstation.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}", + "httpMethod": "PATCH", + "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "allowMissing": { + "description": "If set, and the config is not found, a new config will be created. In this situation, update_mask is ignored.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Full name of this resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+/workstations/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. Mask specifying which fields in the config should be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "validateOnly": { + "description": "If set, validate the request and preview the review, but do not actually apply it.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1beta/{+name}", + "request": { + "$ref": "Workstation" + }, + "response": { + "$ref": "Operation" + }, + "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": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}:setIamPolicy", + "httpMethod": "POST", + "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.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/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+/workstations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "start": { + "description": "Starts running a workstation so that users can connect to it.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}:start", + "httpMethod": "POST", + "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.start", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the workstation to start.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+/workstations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}:start", + "request": { + "$ref": "StartWorkstationRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "stop": { + "description": "Stops running a workstation, reducing costs.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}:stop", + "httpMethod": "POST", + "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.stop", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the workstation to stop.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+/workstations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}:stop", + "request": { + "$ref": "StopWorkstationRequest" + }, + "response": { + "$ref": "Operation" + }, + "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": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}:testIamPermissions", + "httpMethod": "POST", + "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.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/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+/workstations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + } + } + } + } + } + }, + "revision": "20221206", + "rootUrl": "https://workstations.googleapis.com/", + "schemas": { + "AuditConfig": { + "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.", + "id": "AuditConfig", + "properties": { + "auditLogConfigs": { + "description": "The configuration for logging of each type of permission.", + "items": { + "$ref": "AuditLogConfig" + }, + "type": "array" + }, + "service": { + "description": "Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.", + "type": "string" + } + }, + "type": "object" + }, + "AuditLogConfig": { + "description": "Provides the configuration for logging a type of permissions. Example: { \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.", + "id": "AuditLogConfig", + "properties": { + "exemptedMembers": { + "description": "Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.", + "items": { + "type": "string" + }, + "type": "array" + }, + "logType": { + "description": "The log type that this config enables.", + "enum": [ + "LOG_TYPE_UNSPECIFIED", + "ADMIN_READ", + "DATA_WRITE", + "DATA_READ" + ], + "enumDescriptions": [ + "Default case. Should never be this.", + "Admin reads. Example: CloudIAM getIamPolicy", + "Data writes. Example: CloudSQL Users create", + "Data reads. Example: CloudSQL Users list" + ], + "type": "string" + } + }, + "type": "object" + }, + "Binding": { + "description": "Associates `members`, or principals, with a `role`.", + "id": "Binding", + "properties": { + "condition": { + "$ref": "Expr", + "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." + }, + "members": { + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "items": { + "type": "string" + }, + "type": "array" + }, + "role": { + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "type": "string" + } + }, + "type": "object" + }, + "CancelOperationRequest": { + "description": "The request message for Operations.CancelOperation.", + "id": "CancelOperationRequest", + "properties": {}, + "type": "object" + }, + "Container": { + "description": "A Docker container.", + "id": "Container", + "properties": { + "args": { + "description": "Arguments passed to the entrypoint.", + "items": { + "type": "string" + }, + "type": "array" + }, + "command": { + "description": "If set, overrides the default ENTRYPOINT specified by the image.", + "items": { + "type": "string" + }, + "type": "array" + }, + "env": { + "additionalProperties": { + "type": "string" + }, + "description": "Environment variables passed to the container.", + "type": "object" + }, + "image": { + "description": "Docker image defining the container. This image must be accessible by the config's service account.", + "type": "string" + }, + "runAsUser": { + "description": "If set, overrides the USER specified in the image with the given uid.", + "format": "int32", + "type": "integer" + }, + "workingDir": { + "description": "If set, overrides the default DIR specified by the image.", + "type": "string" + } + }, + "type": "object" + }, + "Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", + "id": "Empty", + "properties": {}, + "type": "object" + }, + "Expr": { + "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", + "id": "Expr", + "properties": { + "description": { + "description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.", + "type": "string" + }, + "expression": { + "description": "Textual representation of an expression in Common Expression Language syntax.", + "type": "string" + }, + "location": { + "description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.", + "type": "string" + }, + "title": { + "description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.", + "type": "string" + } + }, + "type": "object" + }, + "GceConfidentialInstanceConfig": { + "description": "A set of Confidential Google Compute Engine Instance option.", + "id": "GceConfidentialInstanceConfig", + "properties": { + "enableConfidentialCompute": { + "description": "Whether the instance has confidential compute enabled.", + "type": "boolean" + } + }, + "type": "object" + }, + "GceInstance": { + "description": "A runtime using a Google Compute Engine Instance.", + "id": "GceInstance", + "properties": { + "bootDiskSizeGb": { + "description": "Size of the boot disk in GB.", + "format": "int32", + "type": "integer" + }, + "confidentialInstanceConfig": { + "$ref": "GceConfidentialInstanceConfig", + "description": "A set of Confidential Google Compute Engine Instance option." + }, + "disablePublicIpAddresses": { + "description": "Whether instances have no public IP address.", + "type": "boolean" + }, + "machineType": { + "description": "The name of a Google Compute Engine machine type.", + "type": "string" + }, + "poolSize": { + "description": "Number of instances to pool for faster Workstation starup.", + "format": "int32", + "type": "integer" + }, + "serviceAccount": { + "description": "Email address of the service account that will be used on VM instances used to support this config. This service account must have permission to pull the specified container image. If not set, VMs will run without a service account, in which case the image must be publicly accessible.", + "type": "string" + }, + "shieldedInstanceConfig": { + "$ref": "GceShieldedInstanceConfig", + "description": "A set of Shielded Google Compute Engine Instance options." + }, + "tags": { + "description": "Network tags to add to the Google Compute Engine machines backing the Workstations.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GceRegionalPersistentDisk": { + "description": "A PersistentDirectory backed by a Compute Engine regional persistent disk.", + "id": "GceRegionalPersistentDisk", + "properties": { + "diskType": { + "description": "Type of the disk to use.", + "type": "string" + }, + "fsType": { + "description": "Type of file system that the disk should be formatted with. The Workstation image must support this file system type. Must be empty if source_snapshot is set.", + "type": "string" + }, + "reclaimPolicy": { + "description": "What should happen to the disk after the Workstation is deleted. Defaults to DELETE.", + "enum": [ + "RECLAIM_POLICY_UNSPECIFIED", + "DELETE", + "RETAIN" + ], + "enumDescriptions": [ + "Do not use.", + "The persistent disk will be deleted with the Workstation.", + "The persistent disk will be remain after the workstation is deleted, and the administrator must manually delete the disk." + ], + "type": "string" + }, + "sizeGb": { + "description": "Size of the disk in GB. Must be empty if source_snapshot is set.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GceShieldedInstanceConfig": { + "description": "A set of Shielded Google Compute Engine Instance options.", + "id": "GceShieldedInstanceConfig", + "properties": { + "enableIntegrityMonitoring": { + "description": "Whether the instance has integrity monitoring enabled.", + "type": "boolean" + }, + "enableSecureBoot": { + "description": "Whether the instance has Secure Boot enabled.", + "type": "boolean" + }, + "enableVtpm": { + "description": "Whether the instance has the vTPM enabled.", + "type": "boolean" + } + }, + "type": "object" + }, + "GenerateAccessTokenRequest": { + "description": "Request message for GenerateAccessToken.", + "id": "GenerateAccessTokenRequest", + "properties": { + "expireTime": { + "description": "Desired expiration time of the access token. This value must be at most 24 hours in the future. If a value is not specified, the token's expiration time will be set to a default value of 1 hour in the future.", + "format": "google-datetime", + "type": "string" + }, + "ttl": { + "description": "Desired lifetime duration of the access token. This value must be at most 24 hours. If a value is not specified, the token's lifetime will be set to a default value of 1 hour.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "GenerateAccessTokenResponse": { + "description": "Response message for GenerateAccessToken.", + "id": "GenerateAccessTokenResponse", + "properties": { + "accessToken": { + "description": "The generated bearer access token. To use this token, include it in an Authorization header of an HTTP request sent to the associated workstation's hostname, e.g. \"Authorization: Bearer \".", + "type": "string" + }, + "expireTime": { + "description": "Time at which the generated token will expire.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "Host": { + "description": "The system will attempt to keep enough computational resources on standby Runtime host for a Workstation.", + "id": "Host", + "properties": { + "gceInstance": { + "$ref": "GceInstance", + "description": "Specifies a Google Compute Engine Instance as the host." + } + }, + "type": "object" + }, + "ListOperationsResponse": { + "description": "The response message for Operations.ListOperations.", + "id": "ListOperationsResponse", + "properties": { + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + }, + "operations": { + "description": "A list of operations that matches the specified filter in the request.", + "items": { + "$ref": "Operation" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListUsableWorkstationConfigsResponse": { + "description": "Response message for ListUsableWorkstationConfigs.", + "id": "ListUsableWorkstationConfigsResponse", + "properties": { + "nextPageToken": { + "description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", + "type": "string" + }, + "unreachable": { + "description": "Unreachable resources.", + "items": { + "type": "string" + }, + "type": "array" + }, + "workstationConfigs": { + "description": "The requested configs.", + "items": { + "$ref": "WorkstationConfig" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListUsableWorkstationsResponse": { + "description": "Response message for ListUsableWorkstations.", + "id": "ListUsableWorkstationsResponse", + "properties": { + "nextPageToken": { + "description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", + "type": "string" + }, + "unreachable": { + "description": "Unreachable resources.", + "items": { + "type": "string" + }, + "type": "array" + }, + "workstations": { + "description": "The requested workstations.", + "items": { + "$ref": "Workstation" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListWorkstationClustersResponse": { + "description": "Response message for ListWorkstationClusters.", + "id": "ListWorkstationClustersResponse", + "properties": { + "nextPageToken": { + "description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", + "type": "string" + }, + "unreachable": { + "description": "Unreachable resources.", + "items": { + "type": "string" + }, + "type": "array" + }, + "workstationClusters": { + "description": "The requested clusters.", + "items": { + "$ref": "WorkstationCluster" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListWorkstationConfigsResponse": { + "description": "Response message for ListWorkstationConfigs.", + "id": "ListWorkstationConfigsResponse", + "properties": { + "nextPageToken": { + "description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", + "type": "string" + }, + "unreachable": { + "description": "Unreachable resources.", + "items": { + "type": "string" + }, + "type": "array" + }, + "workstationConfigs": { + "description": "The requested configs.", + "items": { + "$ref": "WorkstationConfig" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListWorkstationsResponse": { + "description": "Response message for ListWorkstations.", + "id": "ListWorkstationsResponse", + "properties": { + "nextPageToken": { + "description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", + "type": "string" + }, + "unreachable": { + "description": "Unreachable resources.", + "items": { + "type": "string" + }, + "type": "array" + }, + "workstations": { + "description": "The requested workstations.", + "items": { + "$ref": "Workstation" + }, + "type": "array" + } + }, + "type": "object" + }, + "Operation": { + "description": "This resource represents a long-running operation that is the result of a network API call.", + "id": "Operation", + "properties": { + "done": { + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", + "type": "boolean" + }, + "error": { + "$ref": "Status", + "description": "The error result of the operation in case of failure or cancellation." + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object" + }, + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", + "type": "string" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "type": "object" + } + }, + "type": "object" + }, + "OperationMetadata": { + "description": "Represents the metadata of the long-running operation.", + "id": "OperationMetadata", + "properties": { + "apiVersion": { + "description": "Output only. API version used to start the operation.", + "readOnly": true, + "type": "string" + }, + "cancelRequested": { + "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "readOnly": true, + "type": "boolean" + }, + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The time the operation finished running.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "statusDetail": { + "description": "Output only. Human-readable status of the operation, if any.", + "readOnly": true, + "type": "string" + }, + "target": { + "description": "Output only. Server-defined resource path for the target of the operation.", + "readOnly": true, + "type": "string" + }, + "verb": { + "description": "Output only. Name of the verb executed by the operation.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "PersistentDirectory": { + "description": "A directory persisted across Workstation sessions.", + "id": "PersistentDirectory", + "properties": { + "gcePd": { + "$ref": "GceRegionalPersistentDisk", + "description": "A PersistentDirectory backed by a Compute Engine persistent disk." + }, + "mountPath": { + "description": "Location of this directory in the running Workstation.", + "type": "string" + } + }, + "type": "object" + }, + "Policy": { + "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", + "id": "Policy", + "properties": { + "auditConfigs": { + "description": "Specifies cloud audit logging configuration for this policy.", + "items": { + "$ref": "AuditConfig" + }, + "type": "array" + }, + "bindings": { + "description": "Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.", + "items": { + "$ref": "Binding" + }, + "type": "array" + }, + "etag": { + "description": "`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.", + "format": "byte", + "type": "string" + }, + "version": { + "description": "Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. 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", + "type": "integer" + } + }, + "type": "object" + }, + "PrivateClusterConfig": { + "description": "Configuration options for private clusters.", + "id": "PrivateClusterConfig", + "properties": { + "clusterHostname": { + "description": "Output only. Hostname for the Workstation Cluster. This field will be populated only when private endpoint is enabled. To access workstations in the cluster, create a new DNS zone mapping this domain name to an internal IP address and a forwarding rule mapping that address to the service attachment.", + "readOnly": true, + "type": "string" + }, + "enablePrivateEndpoint": { + "description": "Whether Workstations endpoint is private.", + "type": "boolean" + }, + "serviceAttachmentUri": { + "description": "Output only. Service attachment URI for the Workstation Cluster. The service attachemnt is created when private endpoint is enabled. To access workstations in the cluster, configure access to the managed service using (Private Service Connect)[https://cloud.google.com/vpc/docs/configure-private-service-connect-services].", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "SetIamPolicyRequest": { + "description": "Request message for `SetIamPolicy` method.", + "id": "SetIamPolicyRequest", + "properties": { + "policy": { + "$ref": "Policy", + "description": "REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them." + }, + "updateMask": { + "description": "OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: \"bindings, etag\"`", + "format": "google-fieldmask", + "type": "string" + } + }, + "type": "object" + }, + "StartWorkstationRequest": { + "description": "Request message for StartWorkstation.", + "id": "StartWorkstationRequest", + "properties": { + "etag": { + "description": "If set, the request will be rejected if the latest version of the workstation on the server does not have this etag.", + "type": "string" + }, + "validateOnly": { + "description": "If set, validate the request and preview the review, but do not actually apply it.", + "type": "boolean" + } + }, + "type": "object" + }, + "Status": { + "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", + "id": "Status", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" + }, + "StopWorkstationRequest": { + "description": "Request message for StopWorkstation.", + "id": "StopWorkstationRequest", + "properties": { + "etag": { + "description": "If set, the request will be rejected if the latest version of the workstation on the server does not have this etag.", + "type": "string" + }, + "validateOnly": { + "description": "If set, validate the request and preview the review, but do not actually apply it.", + "type": "boolean" + } + }, + "type": "object" + }, + "TestIamPermissionsRequest": { + "description": "Request message for `TestIamPermissions` method.", + "id": "TestIamPermissionsRequest", + "properties": { + "permissions": { + "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "TestIamPermissionsResponse": { + "description": "Response message for `TestIamPermissions` method.", + "id": "TestIamPermissionsResponse", + "properties": { + "permissions": { + "description": "A subset of `TestPermissionsRequest.permissions` that the caller is allowed.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "Workstation": { + "description": "A single instance of a developer workstation with its own persistent storage.", + "id": "Workstation", + "properties": { + "annotations": { + "additionalProperties": { + "type": "string" + }, + "description": "Client-specified annotations.", + "type": "object" + }, + "createTime": { + "description": "Output only. Time when this resource was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "deleteTime": { + "description": "Output only. Time when this resource was soft-deleted.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Human-readable name for this resource.", + "type": "string" + }, + "etag": { + "description": "Checksum computed by the server. May be sent on update and delete requests to ensure that the client has an up-to-date value before proceeding.", + "type": "string" + }, + "host": { + "description": "Output only. Host to which clients can send HTTPS traffic that will be received by the workstation. Authorized traffic will be received to the workstation as HTTP on port 80. To send traffic to a different port, clients may prefix the host with the destination port in the format \"{port}-{host}\".", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Full name of this resource.", + "type": "string" + }, + "reconciling": { + "description": "Output only. Indicates whether this resource is currently being updated to match its intended state.", + "readOnly": true, + "type": "boolean" + }, + "state": { + "description": "Output only. Current state of the workstation.", + "enum": [ + "STATE_UNSPECIFIED", + "STATE_STARTING", + "STATE_RUNNING", + "STATE_STOPPING", + "STATE_STOPPED" + ], + "enumDescriptions": [ + "Do not use.", + "The workstation is not yet ready to accept requests from users but will be soon.", + "The workstation is ready to accept requests from users.", + "The workstation is being stopped.", + "The workstation is stopped and will not be able to receive requests until it is started." + ], + "readOnly": true, + "type": "string" + }, + "uid": { + "description": "Output only. A system-assigned unique identified for this resource.", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. Time when this resource was most recently updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "WorkstationCluster": { + "description": "A grouping of WorkstationConfigs and their associated Workstations in a region.", + "id": "WorkstationCluster", + "properties": { + "annotations": { + "additionalProperties": { + "type": "string" + }, + "description": "Client-specified annotations.", + "type": "object" + }, + "conditions": { + "description": "Output only. Status conditions describing the current resource state.", + "items": { + "$ref": "Status" + }, + "readOnly": true, + "type": "array" + }, + "createTime": { + "description": "Output only. Time when this resource was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "degraded": { + "description": "Output only. Whether this resource is in degraded mode, in which case it may require user action to restore full functionality. Details can be found in the `conditions` field.", + "readOnly": true, + "type": "boolean" + }, + "deleteTime": { + "description": "Output only. Time when this resource was soft-deleted.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Human-readable name for this resource.", + "type": "string" + }, + "etag": { + "description": "Checksum computed by the server. May be sent on update and delete requests to ensure that the client has an up-to-date value before proceeding.", + "type": "string" + }, + "name": { + "description": "Full name of this resource.", + "type": "string" + }, + "network": { + "description": "Name of the Compute Engine network in which instances associated with this cluster will be created.", + "type": "string" + }, + "privateClusterConfig": { + "$ref": "PrivateClusterConfig", + "description": "Configuration for private cluster." + }, + "reconciling": { + "description": "Output only. Indicates whether this resource is currently being updated to match its intended state.", + "readOnly": true, + "type": "boolean" + }, + "subnetwork": { + "description": "Name of the Compute Engine subnetwork in which instances associated with this cluster will be created. Must be part of the subnetwork specified for this cluster.", + "type": "string" + }, + "uid": { + "description": "Output only. A system-assigned unique identified for this resource.", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. Time when this resource was most recently updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "WorkstationConfig": { + "description": "A set of configuration options describing how a workstation will be run. WorkstationConfigs are intended to be shared across multiple workstations.", + "id": "WorkstationConfig", + "properties": { + "annotations": { + "additionalProperties": { + "type": "string" + }, + "description": "Client-specified annotations.", + "type": "object" + }, + "conditions": { + "description": "Output only. Status conditions describing the current resource state.", + "items": { + "$ref": "Status" + }, + "readOnly": true, + "type": "array" + }, + "container": { + "$ref": "Container", + "description": "Container that will be run for each Workstation using this config when that Workstation is started." + }, + "createTime": { + "description": "Output only. Time when this resource was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "degraded": { + "description": "Output only. Whether this resource is in degraded mode, in which case it may require user action to restore full functionality. Details can be found in the `conditions` field.", + "readOnly": true, + "type": "boolean" + }, + "deleteTime": { + "description": "Output only. Time when this resource was soft-deleted.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Human-readable name for this resource.", + "type": "string" + }, + "etag": { + "description": "Checksum computed by the server. May be sent on update and delete requests to ensure that the client has an up-to-date value before proceeding.", + "type": "string" + }, + "host": { + "$ref": "Host", + "description": "Runtime host for the Workstation." + }, + "idleTimeout": { + "description": "How long to wait before automatically stopping an instance that hasn't received any user traffic. A value of 0 indicates that this instance should never time out due to idleness. Defaults to 20 minutes.", + "format": "google-duration", + "type": "string" + }, + "name": { + "description": "Full name of this resource.", + "type": "string" + }, + "persistentDirectories": { + "description": "Directories to persist across Workstation sessions.", + "items": { + "$ref": "PersistentDirectory" + }, + "type": "array" + }, + "reconciling": { + "description": "Output only. Indicates whether this resource is currently being updated to match its intended state.", + "readOnly": true, + "type": "boolean" + }, + "runningTimeout": { + "description": "How long to wait before automatically stopping a workstation after it started. A value of 0 indicates that workstations using this config should never time out. Must be greater than 0 and less than 24 hours if encryption_key is set. Defaults to 12 hours.", + "format": "google-duration", + "type": "string" + }, + "uid": { + "description": "Output only. A system-assigned unique identified for this resource.", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. Time when this resource was most recently updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "Cloud Workstations API", + "version": "v1beta", + "version_module": true +} \ No newline at end of file diff --git a/workstations/v1beta/workstations-gen.go b/workstations/v1beta/workstations-gen.go new file mode 100644 index 00000000000..a245950d88e --- /dev/null +++ b/workstations/v1beta/workstations-gen.go @@ -0,0 +1,6761 @@ +// Copyright 2022 Google LLC. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated file. DO NOT EDIT. + +// Package workstations provides access to the Cloud Workstations API. +// +// For product documentation, see: https://cloud.google.com/workstations +// +// # Creating a client +// +// Usage example: +// +// import "google.golang.org/api/workstations/v1beta" +// ... +// ctx := context.Background() +// workstationsService, err := workstations.NewService(ctx) +// +// In this example, Google Application Default Credentials are used for authentication. +// +// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// +// # Other authentication options +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// workstationsService, err := workstations.NewService(ctx, option.WithAPIKey("AIza...")) +// +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// +// config := &oauth2.Config{...} +// // ... +// token, err := config.Exchange(ctx, ...) +// workstationsService, err := workstations.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package workstations // import "google.golang.org/api/workstations/v1beta" + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" + gensupport "google.golang.org/api/internal/gensupport" + option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" + htransport "google.golang.org/api/transport/http" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = gensupport.MarshalJSON +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint + +const apiId = "workstations:v1beta" +const apiName = "workstations" +const apiVersion = "v1beta" +const basePath = "https://workstations.googleapis.com/" +const mtlsBasePath = "https://workstations.mtls.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // See, edit, configure, and delete your Google Cloud data and see the + // email address for your Google Account. + CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" +) + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + scopesOption := internaloption.WithDefaultScopes( + "https://www.googleapis.com/auth/cloud-platform", + ) + // NOTE: prepend, so we don't override user-specified scopes. + opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + client, endpoint, err := htransport.NewClient(ctx, opts...) + if err != nil { + return nil, err + } + s, err := New(client) + if err != nil { + return nil, err + } + if endpoint != "" { + s.BasePath = endpoint + } + return s, nil +} + +// New creates a new Service. It uses the provided http.Client for requests. +// +// Deprecated: please use NewService instead. +// To provide a custom HTTP client, use option.WithHTTPClient. +// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.Projects = NewProjectsService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Projects *ProjectsService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewProjectsService(s *Service) *ProjectsService { + rs := &ProjectsService{s: s} + rs.Locations = NewProjectsLocationsService(s) + return rs +} + +type ProjectsService struct { + s *Service + + Locations *ProjectsLocationsService +} + +func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { + rs := &ProjectsLocationsService{s: s} + rs.Operations = NewProjectsLocationsOperationsService(s) + rs.WorkstationClusters = NewProjectsLocationsWorkstationClustersService(s) + return rs +} + +type ProjectsLocationsService struct { + s *Service + + Operations *ProjectsLocationsOperationsService + + WorkstationClusters *ProjectsLocationsWorkstationClustersService +} + +func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { + rs := &ProjectsLocationsOperationsService{s: s} + return rs +} + +type ProjectsLocationsOperationsService struct { + s *Service +} + +func NewProjectsLocationsWorkstationClustersService(s *Service) *ProjectsLocationsWorkstationClustersService { + rs := &ProjectsLocationsWorkstationClustersService{s: s} + rs.WorkstationConfigs = NewProjectsLocationsWorkstationClustersWorkstationConfigsService(s) + return rs +} + +type ProjectsLocationsWorkstationClustersService struct { + s *Service + + WorkstationConfigs *ProjectsLocationsWorkstationClustersWorkstationConfigsService +} + +func NewProjectsLocationsWorkstationClustersWorkstationConfigsService(s *Service) *ProjectsLocationsWorkstationClustersWorkstationConfigsService { + rs := &ProjectsLocationsWorkstationClustersWorkstationConfigsService{s: s} + rs.Workstations = NewProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsService(s) + return rs +} + +type ProjectsLocationsWorkstationClustersWorkstationConfigsService struct { + s *Service + + Workstations *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsService +} + +func NewProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsService(s *Service) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsService { + rs := &ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsService{s: s} + return rs +} + +type ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsService struct { + s *Service +} + +// AuditConfig: Specifies the audit configuration for a service. The +// configuration determines which permission types are logged, and what +// identities, if any, are exempted from logging. An AuditConfig must +// have one or more AuditLogConfigs. If there are AuditConfigs for both +// `allServices` and a specific service, the union of the two +// AuditConfigs is used for that service: the log_types specified in +// each AuditConfig are enabled, and the exempted_members in each +// AuditLogConfig are exempted. Example Policy with multiple +// AuditConfigs: { "audit_configs": [ { "service": "allServices", +// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": +// [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { +// "log_type": "ADMIN_READ" } ] }, { "service": +// "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": +// "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ +// "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy +// enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts +// `jose@example.com` from DATA_READ logging, and `aliya@example.com` +// from DATA_WRITE logging. +type AuditConfig struct { + // AuditLogConfigs: The configuration for logging of each type of + // permission. + AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"` + + // Service: Specifies a service that will be enabled for audit logging. + // For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + // `allServices` is a special value that covers all services. + Service string `json:"service,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AuditLogConfigs") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AuditConfig) MarshalJSON() ([]byte, error) { + type NoMethod AuditConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AuditLogConfig: Provides the configuration for logging a type of +// permissions. Example: { "audit_log_configs": [ { "log_type": +// "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { +// "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and +// 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ +// logging. +type AuditLogConfig struct { + // ExemptedMembers: Specifies the identities that do not cause logging + // for this type of permission. Follows the same format of + // Binding.members. + ExemptedMembers []string `json:"exemptedMembers,omitempty"` + + // LogType: The log type that this config enables. + // + // Possible values: + // "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this. + // "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy + // "DATA_WRITE" - Data writes. Example: CloudSQL Users create + // "DATA_READ" - Data reads. Example: CloudSQL Users list + LogType string `json:"logType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExemptedMembers") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExemptedMembers") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { + type NoMethod AuditLogConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Binding: Associates `members`, or principals, with a `role`. +type Binding struct { + // Condition: The condition that is associated with this binding. If the + // condition evaluates to `true`, then this binding applies to the + // current request. If the condition evaluates to `false`, then this + // binding does not apply to the current request. However, a different + // role binding might grant the same role to one or more of the + // principals in this binding. To learn which resources support + // conditions in their IAM policies, see the IAM documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). + Condition *Expr `json:"condition,omitempty"` + + // Members: Specifies the principals requesting access for a Google + // Cloud resource. `members` can have the following values: * + // `allUsers`: A special identifier that represents anyone who is on the + // internet; with or without a Google account. * + // `allAuthenticatedUsers`: A special identifier that represents anyone + // who is authenticated with a Google account or a service account. Does + // not include identities that come from external identity providers + // (IdPs) through identity federation. * `user:{emailid}`: An email + // address that represents a specific Google account. For example, + // `alice@example.com` . * `serviceAccount:{emailid}`: An email address + // that represents a Google service account. For example, + // `my-other-app@appspot.gserviceaccount.com`. * + // `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: + // An identifier for a Kubernetes service account + // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). + // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. + // * `group:{emailid}`: An email address that represents a Google group. + // For example, `admins@example.com`. * + // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus + // unique identifier) representing a user that has been recently + // deleted. For example, `alice@example.com?uid=123456789012345678901`. + // If the user is recovered, this value reverts to `user:{emailid}` and + // the recovered user retains the role in the binding. * + // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address + // (plus unique identifier) representing a service account that has been + // recently deleted. For example, + // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + // If the service account is undeleted, this value reverts to + // `serviceAccount:{emailid}` and the undeleted service account retains + // the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: + // An email address (plus unique identifier) representing a Google group + // that has been recently deleted. For example, + // `admins@example.com?uid=123456789012345678901`. If the group is + // recovered, this value reverts to `group:{emailid}` and the recovered + // group retains the role in the binding. * `domain:{domain}`: The G + // Suite domain (primary) that represents all the users of that domain. + // For example, `google.com` or `example.com`. + Members []string `json:"members,omitempty"` + + // Role: Role that is assigned to the list of `members`, or principals. + // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + Role string `json:"role,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Condition") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Condition") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Binding) MarshalJSON() ([]byte, error) { + type NoMethod Binding + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CancelOperationRequest: The request message for +// Operations.CancelOperation. +type CancelOperationRequest struct { +} + +// Container: A Docker container. +type Container struct { + // Args: Arguments passed to the entrypoint. + Args []string `json:"args,omitempty"` + + // Command: If set, overrides the default ENTRYPOINT specified by the + // image. + Command []string `json:"command,omitempty"` + + // Env: Environment variables passed to the container. + Env map[string]string `json:"env,omitempty"` + + // Image: Docker image defining the container. This image must be + // accessible by the config's service account. + Image string `json:"image,omitempty"` + + // RunAsUser: If set, overrides the USER specified in the image with the + // given uid. + RunAsUser int64 `json:"runAsUser,omitempty"` + + // WorkingDir: If set, overrides the default DIR specified by the image. + WorkingDir string `json:"workingDir,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Args") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Args") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Container) MarshalJSON() ([]byte, error) { + type NoMethod Container + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Empty: A generic empty message that you can re-use to avoid defining +// duplicated empty messages in your APIs. A typical example is to use +// it as the request or the response type of an API method. For +// instance: service Foo { rpc Bar(google.protobuf.Empty) returns +// (google.protobuf.Empty); } +type Empty struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// Expr: Represents a textual expression in the Common Expression +// Language (CEL) syntax. CEL is a C-like expression language. The +// syntax and semantics of CEL are documented at +// https://github.com/google/cel-spec. Example (Comparison): title: +// "Summary size limit" description: "Determines if a summary is less +// than 100 chars" expression: "document.summary.size() < 100" Example +// (Equality): title: "Requestor is owner" description: "Determines if +// requestor is the document owner" expression: "document.owner == +// request.auth.claims.email" Example (Logic): title: "Public documents" +// description: "Determine whether the document should be publicly +// visible" expression: "document.type != 'private' && document.type != +// 'internal'" Example (Data Manipulation): title: "Notification string" +// description: "Create a notification string with a timestamp." +// expression: "'New message received at ' + +// string(document.create_time)" The exact variables and functions that +// may be referenced within an expression are determined by the service +// that evaluates it. See the service documentation for additional +// information. +type Expr struct { + // Description: Optional. Description of the expression. This is a + // longer text which describes the expression, e.g. when hovered over it + // in a UI. + Description string `json:"description,omitempty"` + + // Expression: Textual representation of an expression in Common + // Expression Language syntax. + Expression string `json:"expression,omitempty"` + + // Location: Optional. String indicating the location of the expression + // for error reporting, e.g. a file name and a position in the file. + Location string `json:"location,omitempty"` + + // Title: Optional. Title for the expression, i.e. a short string + // describing its purpose. This can be used e.g. in UIs which allow to + // enter the expression. + Title string `json:"title,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Description") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Expr) MarshalJSON() ([]byte, error) { + type NoMethod Expr + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GceConfidentialInstanceConfig: A set of Confidential Google Compute +// Engine Instance option. +type GceConfidentialInstanceConfig struct { + // EnableConfidentialCompute: Whether the instance has confidential + // compute enabled. + EnableConfidentialCompute bool `json:"enableConfidentialCompute,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "EnableConfidentialCompute") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "EnableConfidentialCompute") to include in API requests with the JSON + // null value. By default, fields with empty values are omitted from API + // requests. However, any field with an empty value appearing in + // NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GceConfidentialInstanceConfig) MarshalJSON() ([]byte, error) { + type NoMethod GceConfidentialInstanceConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GceInstance: A runtime using a Google Compute Engine Instance. +type GceInstance struct { + // BootDiskSizeGb: Size of the boot disk in GB. + BootDiskSizeGb int64 `json:"bootDiskSizeGb,omitempty"` + + // ConfidentialInstanceConfig: A set of Confidential Google Compute + // Engine Instance option. + ConfidentialInstanceConfig *GceConfidentialInstanceConfig `json:"confidentialInstanceConfig,omitempty"` + + // DisablePublicIpAddresses: Whether instances have no public IP + // address. + DisablePublicIpAddresses bool `json:"disablePublicIpAddresses,omitempty"` + + // MachineType: The name of a Google Compute Engine machine type. + MachineType string `json:"machineType,omitempty"` + + // PoolSize: Number of instances to pool for faster Workstation starup. + PoolSize int64 `json:"poolSize,omitempty"` + + // ServiceAccount: Email address of the service account that will be + // used on VM instances used to support this config. This service + // account must have permission to pull the specified container image. + // If not set, VMs will run without a service account, in which case the + // image must be publicly accessible. + ServiceAccount string `json:"serviceAccount,omitempty"` + + // ShieldedInstanceConfig: A set of Shielded Google Compute Engine + // Instance options. + ShieldedInstanceConfig *GceShieldedInstanceConfig `json:"shieldedInstanceConfig,omitempty"` + + // Tags: Network tags to add to the Google Compute Engine machines + // backing the Workstations. + Tags []string `json:"tags,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BootDiskSizeGb") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BootDiskSizeGb") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GceInstance) MarshalJSON() ([]byte, error) { + type NoMethod GceInstance + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GceRegionalPersistentDisk: A PersistentDirectory backed by a Compute +// Engine regional persistent disk. +type GceRegionalPersistentDisk struct { + // DiskType: Type of the disk to use. + DiskType string `json:"diskType,omitempty"` + + // FsType: Type of file system that the disk should be formatted with. + // The Workstation image must support this file system type. Must be + // empty if source_snapshot is set. + FsType string `json:"fsType,omitempty"` + + // ReclaimPolicy: What should happen to the disk after the Workstation + // is deleted. Defaults to DELETE. + // + // Possible values: + // "RECLAIM_POLICY_UNSPECIFIED" - Do not use. + // "DELETE" - The persistent disk will be deleted with the + // Workstation. + // "RETAIN" - The persistent disk will be remain after the workstation + // is deleted, and the administrator must manually delete the disk. + ReclaimPolicy string `json:"reclaimPolicy,omitempty"` + + // SizeGb: Size of the disk in GB. Must be empty if source_snapshot is + // set. + SizeGb int64 `json:"sizeGb,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DiskType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DiskType") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GceRegionalPersistentDisk) MarshalJSON() ([]byte, error) { + type NoMethod GceRegionalPersistentDisk + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GceShieldedInstanceConfig: A set of Shielded Google Compute Engine +// Instance options. +type GceShieldedInstanceConfig struct { + // EnableIntegrityMonitoring: Whether the instance has integrity + // monitoring enabled. + EnableIntegrityMonitoring bool `json:"enableIntegrityMonitoring,omitempty"` + + // EnableSecureBoot: Whether the instance has Secure Boot enabled. + EnableSecureBoot bool `json:"enableSecureBoot,omitempty"` + + // EnableVtpm: Whether the instance has the vTPM enabled. + EnableVtpm bool `json:"enableVtpm,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "EnableIntegrityMonitoring") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "EnableIntegrityMonitoring") to include in API requests with the JSON + // null value. By default, fields with empty values are omitted from API + // requests. However, any field with an empty value appearing in + // NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GceShieldedInstanceConfig) MarshalJSON() ([]byte, error) { + type NoMethod GceShieldedInstanceConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GenerateAccessTokenRequest: Request message for GenerateAccessToken. +type GenerateAccessTokenRequest struct { + // ExpireTime: Desired expiration time of the access token. This value + // must be at most 24 hours in the future. If a value is not specified, + // the token's expiration time will be set to a default value of 1 hour + // in the future. + ExpireTime string `json:"expireTime,omitempty"` + + // Ttl: Desired lifetime duration of the access token. This value must + // be at most 24 hours. If a value is not specified, the token's + // lifetime will be set to a default value of 1 hour. + Ttl string `json:"ttl,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExpireTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExpireTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GenerateAccessTokenRequest) MarshalJSON() ([]byte, error) { + type NoMethod GenerateAccessTokenRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GenerateAccessTokenResponse: Response message for +// GenerateAccessToken. +type GenerateAccessTokenResponse struct { + // AccessToken: The generated bearer access token. To use this token, + // include it in an Authorization header of an HTTP request sent to the + // associated workstation's hostname, e.g. "Authorization: Bearer ". + AccessToken string `json:"accessToken,omitempty"` + + // ExpireTime: Time at which the generated token will expire. + ExpireTime string `json:"expireTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AccessToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AccessToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GenerateAccessTokenResponse) MarshalJSON() ([]byte, error) { + type NoMethod GenerateAccessTokenResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Host: The system will attempt to keep enough computational resources +// on standby Runtime host for a Workstation. +type Host struct { + // GceInstance: Specifies a Google Compute Engine Instance as the host. + GceInstance *GceInstance `json:"gceInstance,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GceInstance") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GceInstance") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Host) MarshalJSON() ([]byte, error) { + type NoMethod Host + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListOperationsResponse: The response message for +// Operations.ListOperations. +type ListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Operations: A list of operations that matches the specified filter in + // the request. + Operations []*Operation `json:"operations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListOperationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListUsableWorkstationConfigsResponse: Response message for +// ListUsableWorkstationConfigs. +type ListUsableWorkstationConfigsResponse struct { + // NextPageToken: Token to retrieve the next page of results, or empty + // if there are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Unreachable: Unreachable resources. + Unreachable []string `json:"unreachable,omitempty"` + + // WorkstationConfigs: The requested configs. + WorkstationConfigs []*WorkstationConfig `json:"workstationConfigs,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListUsableWorkstationConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListUsableWorkstationConfigsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListUsableWorkstationsResponse: Response message for +// ListUsableWorkstations. +type ListUsableWorkstationsResponse struct { + // NextPageToken: Token to retrieve the next page of results, or empty + // if there are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Unreachable: Unreachable resources. + Unreachable []string `json:"unreachable,omitempty"` + + // Workstations: The requested workstations. + Workstations []*Workstation `json:"workstations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListUsableWorkstationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListUsableWorkstationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListWorkstationClustersResponse: Response message for +// ListWorkstationClusters. +type ListWorkstationClustersResponse struct { + // NextPageToken: Token to retrieve the next page of results, or empty + // if there are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Unreachable: Unreachable resources. + Unreachable []string `json:"unreachable,omitempty"` + + // WorkstationClusters: The requested clusters. + WorkstationClusters []*WorkstationCluster `json:"workstationClusters,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListWorkstationClustersResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListWorkstationClustersResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListWorkstationConfigsResponse: Response message for +// ListWorkstationConfigs. +type ListWorkstationConfigsResponse struct { + // NextPageToken: Token to retrieve the next page of results, or empty + // if there are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Unreachable: Unreachable resources. + Unreachable []string `json:"unreachable,omitempty"` + + // WorkstationConfigs: The requested configs. + WorkstationConfigs []*WorkstationConfig `json:"workstationConfigs,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListWorkstationConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListWorkstationConfigsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListWorkstationsResponse: Response message for ListWorkstations. +type ListWorkstationsResponse struct { + // NextPageToken: Token to retrieve the next page of results, or empty + // if there are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Unreachable: Unreachable resources. + Unreachable []string `json:"unreachable,omitempty"` + + // Workstations: The requested workstations. + Workstations []*Workstation `json:"workstations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListWorkstationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListWorkstationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Operation: This resource represents a long-running operation that is +// the result of a network API call. +type Operation struct { + // Done: If the value is `false`, it means the operation is still in + // progress. If `true`, the operation is completed, and either `error` + // or `response` is available. + Done bool `json:"done,omitempty"` + + // Error: The error result of the operation in case of failure or + // cancellation. + Error *Status `json:"error,omitempty"` + + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as + // create time. Some services might not provide such metadata. Any + // method that returns a long-running operation should document the + // metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: The server-assigned name, which is only unique within the same + // service that originally returns it. If you use the default HTTP + // mapping, the `name` should be a resource name ending with + // `operations/{unique_id}`. + Name string `json:"name,omitempty"` + + // Response: The normal response of the operation in case of success. If + // the original method returns no data on success, such as `Delete`, the + // response is `google.protobuf.Empty`. If the original method is + // standard `Get`/`Create`/`Update`, the response should be the + // resource. For other methods, the response should have the type + // `XxxResponse`, where `Xxx` is the original method name. For example, + // if the original method name is `TakeSnapshot()`, the inferred + // response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Done") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Done") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Operation) MarshalJSON() ([]byte, error) { + type NoMethod Operation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// OperationMetadata: Represents the metadata of the long-running +// operation. +type OperationMetadata struct { + // ApiVersion: Output only. API version used to start the operation. + ApiVersion string `json:"apiVersion,omitempty"` + + // CancelRequested: Output only. Identifies whether the user has + // requested cancellation of the operation. Operations that have been + // cancelled successfully have Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + CancelRequested bool `json:"cancelRequested,omitempty"` + + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + + // StatusDetail: Output only. Human-readable status of the operation, if + // any. + StatusDetail string `json:"statusDetail,omitempty"` + + // Target: Output only. Server-defined resource path for the target of + // the operation. + Target string `json:"target,omitempty"` + + // Verb: Output only. Name of the verb executed by the operation. + Verb string `json:"verb,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApiVersion") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ApiVersion") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *OperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod OperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PersistentDirectory: A directory persisted across Workstation +// sessions. +type PersistentDirectory struct { + // GcePd: A PersistentDirectory backed by a Compute Engine persistent + // disk. + GcePd *GceRegionalPersistentDisk `json:"gcePd,omitempty"` + + // MountPath: Location of this directory in the running Workstation. + MountPath string `json:"mountPath,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GcePd") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GcePd") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PersistentDirectory) MarshalJSON() ([]byte, error) { + type NoMethod PersistentDirectory + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Policy: An Identity and Access Management (IAM) policy, which +// specifies access controls for Google Cloud resources. A `Policy` is a +// collection of `bindings`. A `binding` binds one or more `members`, or +// principals, to a single `role`. Principals can be user accounts, +// service accounts, Google groups, and domains (such as G Suite). A +// `role` is a named list of permissions; each `role` can be an IAM +// predefined role or a user-created custom role. For some types of +// Google Cloud resources, a `binding` can also specify a `condition`, +// which is a logical expression that allows access to a resource only +// if the expression evaluates to `true`. A condition can add +// constraints based on attributes of the request, the resource, or +// both. To learn which resources support conditions in their IAM +// policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +// **JSON example:** { "bindings": [ { "role": +// "roles/resourcemanager.organizationAdmin", "members": [ +// "user:mike@example.com", "group:admins@example.com", +// "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { +// "role": "roles/resourcemanager.organizationViewer", "members": [ +// "user:eve@example.com" ], "condition": { "title": "expirable access", +// "description": "Does not grant access after Sep 2020", "expression": +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], +// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - +// members: - user:mike@example.com - group:admins@example.com - +// domain:google.com - +// serviceAccount:my-project-id@appspot.gserviceaccount.com role: +// roles/resourcemanager.organizationAdmin - members: - +// user:eve@example.com role: roles/resourcemanager.organizationViewer +// condition: title: expirable access description: Does not grant access +// after Sep 2020 expression: request.time < +// timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 +// For a description of IAM and its features, see the IAM documentation +// (https://cloud.google.com/iam/docs/). +type Policy struct { + // AuditConfigs: Specifies cloud audit logging configuration for this + // policy. + AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"` + + // Bindings: Associates a list of `members`, or principals, with a + // `role`. Optionally, may specify a `condition` that determines how and + // when the `bindings` are applied. Each of the `bindings` must contain + // at least one principal. The `bindings` in a `Policy` can refer to up + // to 1,500 principals; up to 250 of these principals can be Google + // groups. Each occurrence of a principal counts towards these limits. + // For example, if the `bindings` grant 50 different roles to + // `user:alice@example.com`, and not to any other principal, then you + // can add another 1,450 principals to the `bindings` in the `Policy`. + Bindings []*Binding `json:"bindings,omitempty"` + + // Etag: `etag` is used for optimistic concurrency control as a way to + // help prevent simultaneous updates of a policy from overwriting each + // other. It is strongly suggested that systems make use of the `etag` + // in the read-modify-write cycle to perform policy updates in order to + // avoid race conditions: An `etag` is returned in the response to + // `getIamPolicy`, and systems are expected to put that etag in the + // request to `setIamPolicy` to ensure that their change will be applied + // to the same version of the policy. **Important:** If you use IAM + // Conditions, you must include the `etag` field whenever you call + // `setIamPolicy`. If you omit this field, then IAM allows you to + // overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. + Etag string `json:"etag,omitempty"` + + // Version: Specifies the format of the policy. Valid values are `0`, + // `1`, and `3`. Requests that specify an invalid value are rejected. + // Any operation that affects conditional role bindings must specify + // version `3`. This requirement applies to the following operations: * + // Getting a policy that includes a conditional role binding * Adding a + // conditional role binding to a policy * Changing a conditional role + // binding in a policy * Removing any role binding, with or without a + // condition, from a policy that includes conditions **Important:** If + // you use IAM Conditions, you must include the `etag` field whenever + // you call `setIamPolicy`. If you omit this field, then IAM allows you + // to overwrite a version `3` policy with a version `1` policy, and all + // of the conditions in the version `3` policy are lost. If a policy + // does not include any conditions, operations on that policy may + // specify any valid version or leave the field unset. To learn which + // resources support conditions in their IAM policies, see the IAM + // documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). + Version int64 `json:"version,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AuditConfigs") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AuditConfigs") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Policy) MarshalJSON() ([]byte, error) { + type NoMethod Policy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PrivateClusterConfig: Configuration options for private clusters. +type PrivateClusterConfig struct { + // ClusterHostname: Output only. Hostname for the Workstation Cluster. + // This field will be populated only when private endpoint is enabled. + // To access workstations in the cluster, create a new DNS zone mapping + // this domain name to an internal IP address and a forwarding rule + // mapping that address to the service attachment. + ClusterHostname string `json:"clusterHostname,omitempty"` + + // EnablePrivateEndpoint: Whether Workstations endpoint is private. + EnablePrivateEndpoint bool `json:"enablePrivateEndpoint,omitempty"` + + // ServiceAttachmentUri: Output only. Service attachment URI for the + // Workstation Cluster. The service attachemnt is created when private + // endpoint is enabled. To access workstations in the cluster, configure + // access to the managed service using (Private Service + // Connect)[https://cloud.google.com/vpc/docs/configure-private-service-c + // onnect-services]. + ServiceAttachmentUri string `json:"serviceAttachmentUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ClusterHostname") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ClusterHostname") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *PrivateClusterConfig) MarshalJSON() ([]byte, error) { + type NoMethod PrivateClusterConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SetIamPolicyRequest: Request message for `SetIamPolicy` method. +type SetIamPolicyRequest struct { + // Policy: REQUIRED: The complete policy to be applied to the + // `resource`. The size of the policy is limited to a few 10s of KB. An + // empty policy is a valid policy but certain Google Cloud services + // (such as Projects) might reject them. + Policy *Policy `json:"policy,omitempty"` + + // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the + // policy to modify. Only the fields in the mask will be modified. If no + // mask is provided, the following default mask is used: `paths: + // "bindings, etag" + UpdateMask string `json:"updateMask,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Policy") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Policy") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod SetIamPolicyRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// StartWorkstationRequest: Request message for StartWorkstation. +type StartWorkstationRequest struct { + // Etag: If set, the request will be rejected if the latest version of + // the workstation on the server does not have this etag. + Etag string `json:"etag,omitempty"` + + // ValidateOnly: If set, validate the request and preview the review, + // but do not actually apply it. + ValidateOnly bool `json:"validateOnly,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Etag") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Etag") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *StartWorkstationRequest) MarshalJSON() ([]byte, error) { + type NoMethod StartWorkstationRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Status: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs +// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each +// `Status` message contains three pieces of data: error code, error +// message, and error details. You can find out more about this error +// model and how to work with it in the API Design Guide +// (https://cloud.google.com/apis/design/errors). +type Status struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// StopWorkstationRequest: Request message for StopWorkstation. +type StopWorkstationRequest struct { + // Etag: If set, the request will be rejected if the latest version of + // the workstation on the server does not have this etag. + Etag string `json:"etag,omitempty"` + + // ValidateOnly: If set, validate the request and preview the review, + // but do not actually apply it. + ValidateOnly bool `json:"validateOnly,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Etag") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Etag") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *StopWorkstationRequest) MarshalJSON() ([]byte, error) { + type NoMethod StopWorkstationRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TestIamPermissionsRequest: Request message for `TestIamPermissions` +// method. +type TestIamPermissionsRequest struct { + // Permissions: The set of permissions to check for the `resource`. + // Permissions with wildcards (such as `*` or `storage.*`) are not + // allowed. For more information see IAM Overview + // (https://cloud.google.com/iam/docs/overview#permissions). + Permissions []string `json:"permissions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Permissions") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Permissions") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TestIamPermissionsResponse: Response message for `TestIamPermissions` +// method. +type TestIamPermissionsResponse struct { + // Permissions: A subset of `TestPermissionsRequest.permissions` that + // the caller is allowed. + Permissions []string `json:"permissions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Permissions") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Permissions") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Workstation: A single instance of a developer workstation with its +// own persistent storage. +type Workstation struct { + // Annotations: Client-specified annotations. + Annotations map[string]string `json:"annotations,omitempty"` + + // CreateTime: Output only. Time when this resource was created. + CreateTime string `json:"createTime,omitempty"` + + // DeleteTime: Output only. Time when this resource was soft-deleted. + DeleteTime string `json:"deleteTime,omitempty"` + + // DisplayName: Human-readable name for this resource. + DisplayName string `json:"displayName,omitempty"` + + // Etag: Checksum computed by the server. May be sent on update and + // delete requests to ensure that the client has an up-to-date value + // before proceeding. + Etag string `json:"etag,omitempty"` + + // Host: Output only. Host to which clients can send HTTPS traffic that + // will be received by the workstation. Authorized traffic will be + // received to the workstation as HTTP on port 80. To send traffic to a + // different port, clients may prefix the host with the destination port + // in the format "{port}-{host}". + Host string `json:"host,omitempty"` + + // Name: Full name of this resource. + Name string `json:"name,omitempty"` + + // Reconciling: Output only. Indicates whether this resource is + // currently being updated to match its intended state. + Reconciling bool `json:"reconciling,omitempty"` + + // State: Output only. Current state of the workstation. + // + // Possible values: + // "STATE_UNSPECIFIED" - Do not use. + // "STATE_STARTING" - The workstation is not yet ready to accept + // requests from users but will be soon. + // "STATE_RUNNING" - The workstation is ready to accept requests from + // users. + // "STATE_STOPPING" - The workstation is being stopped. + // "STATE_STOPPED" - The workstation is stopped and will not be able + // to receive requests until it is started. + State string `json:"state,omitempty"` + + // Uid: Output only. A system-assigned unique identified for this + // resource. + Uid string `json:"uid,omitempty"` + + // UpdateTime: Output only. Time when this resource was most recently + // 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. "Annotations") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Annotations") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Workstation) MarshalJSON() ([]byte, error) { + type NoMethod Workstation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WorkstationCluster: A grouping of WorkstationConfigs and their +// associated Workstations in a region. +type WorkstationCluster struct { + // Annotations: Client-specified annotations. + Annotations map[string]string `json:"annotations,omitempty"` + + // Conditions: Output only. Status conditions describing the current + // resource state. + Conditions []*Status `json:"conditions,omitempty"` + + // CreateTime: Output only. Time when this resource was created. + CreateTime string `json:"createTime,omitempty"` + + // Degraded: Output only. Whether this resource is in degraded mode, in + // which case it may require user action to restore full functionality. + // Details can be found in the `conditions` field. + Degraded bool `json:"degraded,omitempty"` + + // DeleteTime: Output only. Time when this resource was soft-deleted. + DeleteTime string `json:"deleteTime,omitempty"` + + // DisplayName: Human-readable name for this resource. + DisplayName string `json:"displayName,omitempty"` + + // Etag: Checksum computed by the server. May be sent on update and + // delete requests to ensure that the client has an up-to-date value + // before proceeding. + Etag string `json:"etag,omitempty"` + + // Name: Full name of this resource. + Name string `json:"name,omitempty"` + + // Network: Name of the Compute Engine network in which instances + // associated with this cluster will be created. + Network string `json:"network,omitempty"` + + // PrivateClusterConfig: Configuration for private cluster. + PrivateClusterConfig *PrivateClusterConfig `json:"privateClusterConfig,omitempty"` + + // Reconciling: Output only. Indicates whether this resource is + // currently being updated to match its intended state. + Reconciling bool `json:"reconciling,omitempty"` + + // Subnetwork: Name of the Compute Engine subnetwork in which instances + // associated with this cluster will be created. Must be part of the + // subnetwork specified for this cluster. + Subnetwork string `json:"subnetwork,omitempty"` + + // Uid: Output only. A system-assigned unique identified for this + // resource. + Uid string `json:"uid,omitempty"` + + // UpdateTime: Output only. Time when this resource was most recently + // 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. "Annotations") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Annotations") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *WorkstationCluster) MarshalJSON() ([]byte, error) { + type NoMethod WorkstationCluster + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WorkstationConfig: A set of configuration options describing how a +// workstation will be run. WorkstationConfigs are intended to be shared +// across multiple workstations. +type WorkstationConfig struct { + // Annotations: Client-specified annotations. + Annotations map[string]string `json:"annotations,omitempty"` + + // Conditions: Output only. Status conditions describing the current + // resource state. + Conditions []*Status `json:"conditions,omitempty"` + + // Container: Container that will be run for each Workstation using this + // config when that Workstation is started. + Container *Container `json:"container,omitempty"` + + // CreateTime: Output only. Time when this resource was created. + CreateTime string `json:"createTime,omitempty"` + + // Degraded: Output only. Whether this resource is in degraded mode, in + // which case it may require user action to restore full functionality. + // Details can be found in the `conditions` field. + Degraded bool `json:"degraded,omitempty"` + + // DeleteTime: Output only. Time when this resource was soft-deleted. + DeleteTime string `json:"deleteTime,omitempty"` + + // DisplayName: Human-readable name for this resource. + DisplayName string `json:"displayName,omitempty"` + + // Etag: Checksum computed by the server. May be sent on update and + // delete requests to ensure that the client has an up-to-date value + // before proceeding. + Etag string `json:"etag,omitempty"` + + // Host: Runtime host for the Workstation. + Host *Host `json:"host,omitempty"` + + // IdleTimeout: How long to wait before automatically stopping an + // instance that hasn't received any user traffic. A value of 0 + // indicates that this instance should never time out due to idleness. + // Defaults to 20 minutes. + IdleTimeout string `json:"idleTimeout,omitempty"` + + // Name: Full name of this resource. + Name string `json:"name,omitempty"` + + // PersistentDirectories: Directories to persist across Workstation + // sessions. + PersistentDirectories []*PersistentDirectory `json:"persistentDirectories,omitempty"` + + // Reconciling: Output only. Indicates whether this resource is + // currently being updated to match its intended state. + Reconciling bool `json:"reconciling,omitempty"` + + // RunningTimeout: How long to wait before automatically stopping a + // workstation after it started. A value of 0 indicates that + // workstations using this config should never time out. Must be greater + // than 0 and less than 24 hours if encryption_key is set. Defaults to + // 12 hours. + RunningTimeout string `json:"runningTimeout,omitempty"` + + // Uid: Output only. A system-assigned unique identified for this + // resource. + Uid string `json:"uid,omitempty"` + + // UpdateTime: Output only. Time when this resource was most recently + // 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. "Annotations") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Annotations") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *WorkstationConfig) MarshalJSON() ([]byte, error) { + type NoMethod WorkstationConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "workstations.projects.locations.operations.cancel": + +type ProjectsLocationsOperationsCancelCall struct { + s *Service + name string + canceloperationrequest *CancelOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. +// +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall { + c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.canceloperationrequest = canceloperationrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.operations.cancel" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "workstations.projects.locations.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+name}:cancel", + // "request": { + // "$ref": "CancelOperationRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workstations.projects.locations.operations.delete": + +type ProjectsLocationsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that +// the client is no longer interested in the operation result. It does +// not cancel the operation. If the server doesn't support this method, +// it returns `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { + c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.operations.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "workstations.projects.locations.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workstations.projects.locations.operations.get": + +type ProjectsLocationsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +// +// - name: The name of the operation resource. +func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { + c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.operations.get" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsGetCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "workstations.projects.locations.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workstations.projects.locations.operations.list": + +type ProjectsLocationsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to +// override the binding to use different resource name schemes, such as +// `users/*/operations`. To override the binding, API services can add a +// binding such as "/v1/{name=users/*}/operations" to their service +// configuration. For backwards compatibility, the default name includes +// the operations collection id, however overriding users must ensure +// the name binding is the parent resource, without the operations +// collection id. +// +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { + c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.operations.list" call. +// Exactly one of *ListOperationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.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 *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, 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 := &ListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/operations", + // "httpMethod": "GET", + // "id": "workstations.projects.locations.operations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta/{+name}/operations", + // "response": { + // "$ref": "ListOperationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "workstations.projects.locations.workstationClusters.create": + +type ProjectsLocationsWorkstationClustersCreateCall struct { + s *Service + parent string + workstationcluster *WorkstationCluster + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new WorkstationCluster. +// +// - parent: Parent resource name. +func (r *ProjectsLocationsWorkstationClustersService) Create(parent string, workstationcluster *WorkstationCluster) *ProjectsLocationsWorkstationClustersCreateCall { + c := &ProjectsLocationsWorkstationClustersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.workstationcluster = workstationcluster + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": If set, +// validate the request and preview the review, but do not actually +// apply it. +func (c *ProjectsLocationsWorkstationClustersCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsWorkstationClustersCreateCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + return c +} + +// WorkstationClusterId sets the optional parameter +// "workstationClusterId": Required. ID to use for the cluster. +func (c *ProjectsLocationsWorkstationClustersCreateCall) WorkstationClusterId(workstationClusterId string) *ProjectsLocationsWorkstationClustersCreateCall { + c.urlParams_.Set("workstationClusterId", workstationClusterId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkstationClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersCreateCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.workstationcluster) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/workstationClusters") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsWorkstationClustersCreateCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new WorkstationCluster.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters", + // "httpMethod": "POST", + // "id": "workstations.projects.locations.workstationClusters.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Parent resource name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "validateOnly": { + // "description": "If set, validate the request and preview the review, but do not actually apply it.", + // "location": "query", + // "type": "boolean" + // }, + // "workstationClusterId": { + // "description": "Required. ID to use for the cluster.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta/{+parent}/workstationClusters", + // "request": { + // "$ref": "WorkstationCluster" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workstations.projects.locations.workstationClusters.delete": + +type ProjectsLocationsWorkstationClustersDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the specified WorkstationCluster. +// +// - name: Name of the cluster to delete. +func (r *ProjectsLocationsWorkstationClustersService) Delete(name string) *ProjectsLocationsWorkstationClustersDeleteCall { + c := &ProjectsLocationsWorkstationClustersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Etag sets the optional parameter "etag": If set, the request will be +// rejected if the latest version of the cluster on the server does not +// have this etag. +func (c *ProjectsLocationsWorkstationClustersDeleteCall) Etag(etag string) *ProjectsLocationsWorkstationClustersDeleteCall { + c.urlParams_.Set("etag", etag) + return c +} + +// Force sets the optional parameter "force": If set, any +// WorkstationConfigs and Workstations in the cluster will also be +// deleted. Otherwise, the request will work only if the cluster has no +// configs or workstations. +func (c *ProjectsLocationsWorkstationClustersDeleteCall) Force(force bool) *ProjectsLocationsWorkstationClustersDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": If set, +// validate the request and preview the review, but do not actually +// apply it. +func (c *ProjectsLocationsWorkstationClustersDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsWorkstationClustersDeleteCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkstationClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersDeleteCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsWorkstationClustersDeleteCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes the specified WorkstationCluster.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}", + // "httpMethod": "DELETE", + // "id": "workstations.projects.locations.workstationClusters.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "etag": { + // "description": "If set, the request will be rejected if the latest version of the cluster on the server does not have this etag.", + // "location": "query", + // "type": "string" + // }, + // "force": { + // "description": "If set, any WorkstationConfigs and Workstations in the cluster will also be deleted. Otherwise, the request will work only if the cluster has no configs or workstations.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Required. Name of the cluster to delete.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "validateOnly": { + // "description": "If set, validate the request and preview the review, but do not actually apply it.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "v1beta/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workstations.projects.locations.workstationClusters.get": + +type ProjectsLocationsWorkstationClustersGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns the requested WorkstationCluster. +// +// - name: Name of the requested resource. +func (r *ProjectsLocationsWorkstationClustersService) Get(name string) *ProjectsLocationsWorkstationClustersGetCall { + c := &ProjectsLocationsWorkstationClustersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkstationClustersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsWorkstationClustersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkstationClustersGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersGetCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.get" call. +// Exactly one of *WorkstationCluster or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *WorkstationCluster.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 *ProjectsLocationsWorkstationClustersGetCall) Do(opts ...googleapi.CallOption) (*WorkstationCluster, 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 := &WorkstationCluster{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the requested WorkstationCluster.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}", + // "httpMethod": "GET", + // "id": "workstations.projects.locations.workstationClusters.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the requested resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+name}", + // "response": { + // "$ref": "WorkstationCluster" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workstations.projects.locations.workstationClusters.list": + +type ProjectsLocationsWorkstationClustersListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Returns all WorkstationClusters in the specified location. +// +// - parent: Parent resource name. +func (r *ProjectsLocationsWorkstationClustersService) List(parent string) *ProjectsLocationsWorkstationClustersListCall { + c := &ProjectsLocationsWorkstationClustersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// items to return. +func (c *ProjectsLocationsWorkstationClustersListCall) PageSize(pageSize int64) *ProjectsLocationsWorkstationClustersListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": next_page_token +// value returned from a previous List request, if any. +func (c *ProjectsLocationsWorkstationClustersListCall) PageToken(pageToken string) *ProjectsLocationsWorkstationClustersListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkstationClustersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsWorkstationClustersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkstationClustersListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersListCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/workstationClusters") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.list" call. +// Exactly one of *ListWorkstationClustersResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListWorkstationClustersResponse.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 *ProjectsLocationsWorkstationClustersListCall) Do(opts ...googleapi.CallOption) (*ListWorkstationClustersResponse, 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 := &ListWorkstationClustersResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns all WorkstationClusters in the specified location.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters", + // "httpMethod": "GET", + // "id": "workstations.projects.locations.workstationClusters.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Maximum number of items to return.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "next_page_token value returned from a previous List request, if any.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Parent resource name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+parent}/workstationClusters", + // "response": { + // "$ref": "ListWorkstationClustersResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsWorkstationClustersListCall) Pages(ctx context.Context, f func(*ListWorkstationClustersResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "workstations.projects.locations.workstationClusters.patch": + +type ProjectsLocationsWorkstationClustersPatchCall struct { + s *Service + name string + workstationcluster *WorkstationCluster + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an existing WorkstationCluster. +// +// - name: Full name of this resource. +func (r *ProjectsLocationsWorkstationClustersService) Patch(name string, workstationcluster *WorkstationCluster) *ProjectsLocationsWorkstationClustersPatchCall { + c := &ProjectsLocationsWorkstationClustersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.workstationcluster = workstationcluster + return c +} + +// AllowMissing sets the optional parameter "allowMissing": If set, and +// the cluster is not found, a new cluster will be created. In this +// situation, update_mask is ignored. +func (c *ProjectsLocationsWorkstationClustersPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsWorkstationClustersPatchCall { + c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Mask +// specifying which fields in the cluster should be updated. +func (c *ProjectsLocationsWorkstationClustersPatchCall) UpdateMask(updateMask string) *ProjectsLocationsWorkstationClustersPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": If set, +// validate the request and preview the review, but do not actually +// apply it. +func (c *ProjectsLocationsWorkstationClustersPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsWorkstationClustersPatchCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkstationClustersPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersPatchCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.workstationcluster) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsWorkstationClustersPatchCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates an existing WorkstationCluster.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}", + // "httpMethod": "PATCH", + // "id": "workstations.projects.locations.workstationClusters.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "allowMissing": { + // "description": "If set, and the cluster is not found, a new cluster will be created. In this situation, update_mask is ignored.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Full name of this resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. Mask specifying which fields in the cluster should be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "validateOnly": { + // "description": "If set, validate the request and preview the review, but do not actually apply it.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "v1beta/{+name}", + // "request": { + // "$ref": "WorkstationCluster" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workstations.projects.locations.workstationClusters.workstationConfigs.create": + +type ProjectsLocationsWorkstationClustersWorkstationConfigsCreateCall struct { + s *Service + parent string + workstationconfig *WorkstationConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new WorkstationConfig. +// +// - parent: Parent resource name. +func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsService) Create(parent string, workstationconfig *WorkstationConfig) *ProjectsLocationsWorkstationClustersWorkstationConfigsCreateCall { + c := &ProjectsLocationsWorkstationClustersWorkstationConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.workstationconfig = workstationconfig + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": If set, +// validate the request and preview the review, but do not actually +// apply it. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsWorkstationClustersWorkstationConfigsCreateCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + return c +} + +// WorkstationConfigId sets the optional parameter +// "workstationConfigId": Required. ID to use for the config. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsCreateCall) WorkstationConfigId(workstationConfigId string) *ProjectsLocationsWorkstationClustersWorkstationConfigsCreateCall { + c.urlParams_.Set("workstationConfigId", workstationConfigId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersWorkstationConfigsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersWorkstationConfigsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.workstationconfig) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/workstationConfigs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsCreateCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new WorkstationConfig.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs", + // "httpMethod": "POST", + // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Parent resource name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "validateOnly": { + // "description": "If set, validate the request and preview the review, but do not actually apply it.", + // "location": "query", + // "type": "boolean" + // }, + // "workstationConfigId": { + // "description": "Required. ID to use for the config.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta/{+parent}/workstationConfigs", + // "request": { + // "$ref": "WorkstationConfig" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workstations.projects.locations.workstationClusters.workstationConfigs.delete": + +type ProjectsLocationsWorkstationClustersWorkstationConfigsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the specified WorkstationConfig. +// +// - name: Name of the config to delete. +func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsService) Delete(name string) *ProjectsLocationsWorkstationClustersWorkstationConfigsDeleteCall { + c := &ProjectsLocationsWorkstationClustersWorkstationConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Etag sets the optional parameter "etag": If set, the request will be +// rejected if the latest version of the config on the server does not +// have this etag. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsDeleteCall) Etag(etag string) *ProjectsLocationsWorkstationClustersWorkstationConfigsDeleteCall { + c.urlParams_.Set("etag", etag) + return c +} + +// Force sets the optional parameter "force": If set, any Workstations +// in the config will also be deleted. Otherwise, the request will work +// only if the config has no workstations. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsDeleteCall) Force(force bool) *ProjectsLocationsWorkstationClustersWorkstationConfigsDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": If set, +// validate the request and preview the review, but do not actually +// apply it. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsWorkstationClustersWorkstationConfigsDeleteCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersWorkstationConfigsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersWorkstationConfigsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsDeleteCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes the specified WorkstationConfig.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}", + // "httpMethod": "DELETE", + // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "etag": { + // "description": "If set, the request will be rejected if the latest version of the config on the server does not have this etag.", + // "location": "query", + // "type": "string" + // }, + // "force": { + // "description": "If set, any Workstations in the config will also be deleted. Otherwise, the request will work only if the config has no workstations.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Required. Name of the config to delete.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "validateOnly": { + // "description": "If set, validate the request and preview the review, but do not actually apply it.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "v1beta/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workstations.projects.locations.workstationClusters.workstationConfigs.get": + +type ProjectsLocationsWorkstationClustersWorkstationConfigsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns the requested WorkstationConfig. +// +// - name: Name of the requested resource. +func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsService) Get(name string) *ProjectsLocationsWorkstationClustersWorkstationConfigsGetCall { + c := &ProjectsLocationsWorkstationClustersWorkstationConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersWorkstationConfigsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkstationClustersWorkstationConfigsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersWorkstationConfigsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.get" call. +// Exactly one of *WorkstationConfig or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *WorkstationConfig.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 *ProjectsLocationsWorkstationClustersWorkstationConfigsGetCall) Do(opts ...googleapi.CallOption) (*WorkstationConfig, 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 := &WorkstationConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the requested WorkstationConfig.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}", + // "httpMethod": "GET", + // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the requested resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+name}", + // "response": { + // "$ref": "WorkstationConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workstations.projects.locations.workstationClusters.workstationConfigs.getIamPolicy": + +type ProjectsLocationsWorkstationClustersWorkstationConfigsGetIamPolicyCall 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 *ProjectsLocationsWorkstationClustersWorkstationConfigsService) GetIamPolicy(resource string) *ProjectsLocationsWorkstationClustersWorkstationConfigsGetIamPolicyCall { + c := &ProjectsLocationsWorkstationClustersWorkstationConfigsGetIamPolicyCall{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 *ProjectsLocationsWorkstationClustersWorkstationConfigsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsWorkstationClustersWorkstationConfigsGetIamPolicyCall { + 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 information. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersWorkstationConfigsGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkstationClustersWorkstationConfigsGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersWorkstationConfigsGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.getIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "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": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.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/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+resource}:getIamPolicy", + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workstations.projects.locations.workstationClusters.workstationConfigs.list": + +type ProjectsLocationsWorkstationClustersWorkstationConfigsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Returns all WorkstationConfigs in the specified cluster. +// +// - parent: Parent resource name. +func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsService) List(parent string) *ProjectsLocationsWorkstationClustersWorkstationConfigsListCall { + c := &ProjectsLocationsWorkstationClustersWorkstationConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// items to return. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsWorkstationClustersWorkstationConfigsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": next_page_token +// value returned from a previous List request, if any. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsListCall) PageToken(pageToken string) *ProjectsLocationsWorkstationClustersWorkstationConfigsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersWorkstationConfigsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkstationClustersWorkstationConfigsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsListCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersWorkstationConfigsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/workstationConfigs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.list" call. +// Exactly one of *ListWorkstationConfigsResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListWorkstationConfigsResponse.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 *ProjectsLocationsWorkstationClustersWorkstationConfigsListCall) Do(opts ...googleapi.CallOption) (*ListWorkstationConfigsResponse, 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 := &ListWorkstationConfigsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns all WorkstationConfigs in the specified cluster.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs", + // "httpMethod": "GET", + // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Maximum number of items to return.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "next_page_token value returned from a previous List request, if any.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Parent resource name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+parent}/workstationConfigs", + // "response": { + // "$ref": "ListWorkstationConfigsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsListCall) Pages(ctx context.Context, f func(*ListWorkstationConfigsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "workstations.projects.locations.workstationClusters.workstationConfigs.listUsable": + +type ProjectsLocationsWorkstationClustersWorkstationConfigsListUsableCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// ListUsable: Returns all WorkstationConfigs in the specified cluster +// on which the caller has the "workstations.workstation.create" +// permission. +// +// - parent: Parent resource name. +func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsService) ListUsable(parent string) *ProjectsLocationsWorkstationClustersWorkstationConfigsListUsableCall { + c := &ProjectsLocationsWorkstationClustersWorkstationConfigsListUsableCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// items to return. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsListUsableCall) PageSize(pageSize int64) *ProjectsLocationsWorkstationClustersWorkstationConfigsListUsableCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": next_page_token +// value returned from a previous List request, if any. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsListUsableCall) PageToken(pageToken string) *ProjectsLocationsWorkstationClustersWorkstationConfigsListUsableCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsListUsableCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersWorkstationConfigsListUsableCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsListUsableCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkstationClustersWorkstationConfigsListUsableCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsListUsableCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersWorkstationConfigsListUsableCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsListUsableCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsListUsableCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/workstationConfigs:listUsable") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.listUsable" call. +// Exactly one of *ListUsableWorkstationConfigsResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListUsableWorkstationConfigsResponse.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 *ProjectsLocationsWorkstationClustersWorkstationConfigsListUsableCall) Do(opts ...googleapi.CallOption) (*ListUsableWorkstationConfigsResponse, 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 := &ListUsableWorkstationConfigsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns all WorkstationConfigs in the specified cluster on which the caller has the \"workstations.workstation.create\" permission.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs:listUsable", + // "httpMethod": "GET", + // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.listUsable", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Maximum number of items to return.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "next_page_token value returned from a previous List request, if any.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Parent resource name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+parent}/workstationConfigs:listUsable", + // "response": { + // "$ref": "ListUsableWorkstationConfigsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsListUsableCall) Pages(ctx context.Context, f func(*ListUsableWorkstationConfigsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "workstations.projects.locations.workstationClusters.workstationConfigs.patch": + +type ProjectsLocationsWorkstationClustersWorkstationConfigsPatchCall struct { + s *Service + name string + workstationconfig *WorkstationConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an existing WorkstationConfig. +// +// - name: Full name of this resource. +func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsService) Patch(name string, workstationconfig *WorkstationConfig) *ProjectsLocationsWorkstationClustersWorkstationConfigsPatchCall { + c := &ProjectsLocationsWorkstationClustersWorkstationConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.workstationconfig = workstationconfig + return c +} + +// AllowMissing sets the optional parameter "allowMissing": If set, and +// the config is not found, a new config will be created. In this +// situation, update_mask is ignored. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsWorkstationClustersWorkstationConfigsPatchCall { + c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Mask +// specifying which fields in the config should be updated. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsWorkstationClustersWorkstationConfigsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": If set, +// validate the request and preview the review, but do not actually +// apply it. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsWorkstationClustersWorkstationConfigsPatchCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersWorkstationConfigsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersWorkstationConfigsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.workstationconfig) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsPatchCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates an existing WorkstationConfig.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}", + // "httpMethod": "PATCH", + // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "allowMissing": { + // "description": "If set, and the config is not found, a new config will be created. In this situation, update_mask is ignored.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Full name of this resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. Mask specifying which fields in the config should be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "validateOnly": { + // "description": "If set, validate the request and preview the review, but do not actually apply it.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "v1beta/{+name}", + // "request": { + // "$ref": "WorkstationConfig" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workstations.projects.locations.workstationClusters.workstationConfigs.setIamPolicy": + +type ProjectsLocationsWorkstationClustersWorkstationConfigsSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsWorkstationClustersWorkstationConfigsSetIamPolicyCall { + c := &ProjectsLocationsWorkstationClustersWorkstationConfigsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersWorkstationConfigsSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersWorkstationConfigsSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "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": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.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/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+resource}:setIamPolicy", + // "request": { + // "$ref": "SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workstations.projects.locations.workstationClusters.workstationConfigs.testIamPermissions": + +type ProjectsLocationsWorkstationClustersWorkstationConfigsTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsWorkstationClustersWorkstationConfigsTestIamPermissionsCall { + c := &ProjectsLocationsWorkstationClustersWorkstationConfigsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersWorkstationConfigsTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersWorkstationConfigsTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "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": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.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/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+resource}:testIamPermissions", + // "request": { + // "$ref": "TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.create": + +type ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsCreateCall struct { + s *Service + parent string + workstation *Workstation + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new Workstation. +// +// - parent: Parent resource name. +func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsService) Create(parent string, workstation *Workstation) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsCreateCall { + c := &ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.workstation = workstation + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": If set, +// validate the request and preview the review, but do not actually +// apply it. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsCreateCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + return c +} + +// WorkstationId sets the optional parameter "workstationId": Required. +// ID to use for the workstation. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsCreateCall) WorkstationId(workstationId string) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsCreateCall { + c.urlParams_.Set("workstationId", workstationId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsCreateCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.workstation) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/workstations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsCreateCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new Workstation.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations", + // "httpMethod": "POST", + // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Parent resource name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "validateOnly": { + // "description": "If set, validate the request and preview the review, but do not actually apply it.", + // "location": "query", + // "type": "boolean" + // }, + // "workstationId": { + // "description": "Required. ID to use for the workstation.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta/{+parent}/workstations", + // "request": { + // "$ref": "Workstation" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.delete": + +type ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the specified Workstation. +// +// - name: Name of the workstation to delete. +func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsService) Delete(name string) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsDeleteCall { + c := &ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Etag sets the optional parameter "etag": If set, the request will be +// rejected if the latest version of the workstation on the server does +// not have this etag. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsDeleteCall) Etag(etag string) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsDeleteCall { + c.urlParams_.Set("etag", etag) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": If set, +// validate the request and preview the review, but do not actually +// apply it. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsDeleteCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsDeleteCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes the specified Workstation.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}", + // "httpMethod": "DELETE", + // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "etag": { + // "description": "If set, the request will be rejected if the latest version of the workstation on the server does not have this etag.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "Required. Name of the workstation to delete.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+/workstations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "validateOnly": { + // "description": "If set, validate the request and preview the review, but do not actually apply it.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "v1beta/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.generateAccessToken": + +type ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGenerateAccessTokenCall struct { + s *Service + workstation string + generateaccesstokenrequest *GenerateAccessTokenRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GenerateAccessToken: Returns a short-lived credential that can be +// used to send authenticated and authorized traffic to a workstation. +// +// - workstation: Name of the workstation for which the access token +// should be generated. +func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsService) GenerateAccessToken(workstation string, generateaccesstokenrequest *GenerateAccessTokenRequest) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGenerateAccessTokenCall { + c := &ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGenerateAccessTokenCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.workstation = workstation + c.generateaccesstokenrequest = generateaccesstokenrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGenerateAccessTokenCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGenerateAccessTokenCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGenerateAccessTokenCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGenerateAccessTokenCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGenerateAccessTokenCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGenerateAccessTokenCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.generateaccesstokenrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+workstation}:generateAccessToken") + 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{ + "workstation": c.workstation, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.generateAccessToken" call. +// Exactly one of *GenerateAccessTokenResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GenerateAccessTokenResponse.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 *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGenerateAccessTokenCall) Do(opts ...googleapi.CallOption) (*GenerateAccessTokenResponse, 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 := &GenerateAccessTokenResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns a short-lived credential that can be used to send authenticated and authorized traffic to a workstation.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}:generateAccessToken", + // "httpMethod": "POST", + // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.generateAccessToken", + // "parameterOrder": [ + // "workstation" + // ], + // "parameters": { + // "workstation": { + // "description": "Required. Name of the workstation for which the access token should be generated.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+/workstations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+workstation}:generateAccessToken", + // "request": { + // "$ref": "GenerateAccessTokenRequest" + // }, + // "response": { + // "$ref": "GenerateAccessTokenResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.get": + +type ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns the requested Workstation. +// +// - name: Name of the requested resource. +func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsService) Get(name string) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetCall { + c := &ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.get" call. +// Exactly one of *Workstation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Workstation.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 *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetCall) Do(opts ...googleapi.CallOption) (*Workstation, 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 := &Workstation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the requested Workstation.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}", + // "httpMethod": "GET", + // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the requested resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+/workstations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+name}", + // "response": { + // "$ref": "Workstation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.getIamPolicy": + +type ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetIamPolicyCall 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 *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsService) GetIamPolicy(resource string) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetIamPolicyCall { + c := &ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetIamPolicyCall{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 *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetIamPolicyCall { + 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 information. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.getIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "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": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.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/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+/workstations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+resource}:getIamPolicy", + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.list": + +type ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Returns all Workstations using the specified config. +// +// - parent: Parent resource name. +func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsService) List(parent string) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListCall { + c := &ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// items to return. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListCall) PageSize(pageSize int64) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": next_page_token +// value returned from a previous List request, if any. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListCall) PageToken(pageToken string) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/workstations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.list" call. +// Exactly one of *ListWorkstationsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListWorkstationsResponse.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 *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListCall) Do(opts ...googleapi.CallOption) (*ListWorkstationsResponse, 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 := &ListWorkstationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns all Workstations using the specified config.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations", + // "httpMethod": "GET", + // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Maximum number of items to return.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "next_page_token value returned from a previous List request, if any.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Parent resource name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+parent}/workstations", + // "response": { + // "$ref": "ListWorkstationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListCall) Pages(ctx context.Context, f func(*ListWorkstationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.listUsable": + +type ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListUsableCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// ListUsable: Returns all Workstations using the specified config on +// which the caller has the "workstations.workstations.use" permission. +// +// - parent: Parent resource name. +func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsService) ListUsable(parent string) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListUsableCall { + c := &ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListUsableCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// items to return. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListUsableCall) PageSize(pageSize int64) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListUsableCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": next_page_token +// value returned from a previous List request, if any. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListUsableCall) PageToken(pageToken string) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListUsableCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListUsableCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListUsableCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListUsableCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListUsableCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListUsableCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListUsableCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListUsableCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListUsableCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/workstations:listUsable") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.listUsable" call. +// Exactly one of *ListUsableWorkstationsResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListUsableWorkstationsResponse.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 *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListUsableCall) Do(opts ...googleapi.CallOption) (*ListUsableWorkstationsResponse, 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 := &ListUsableWorkstationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns all Workstations using the specified config on which the caller has the \"workstations.workstations.use\" permission.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations:listUsable", + // "httpMethod": "GET", + // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.listUsable", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Maximum number of items to return.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "next_page_token value returned from a previous List request, if any.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Parent resource name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+parent}/workstations:listUsable", + // "response": { + // "$ref": "ListUsableWorkstationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListUsableCall) Pages(ctx context.Context, f func(*ListUsableWorkstationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.patch": + +type ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsPatchCall struct { + s *Service + name string + workstation *Workstation + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an existing Workstation. +// +// - name: Full name of this resource. +func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsService) Patch(name string, workstation *Workstation) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsPatchCall { + c := &ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.workstation = workstation + return c +} + +// AllowMissing sets the optional parameter "allowMissing": If set, and +// the config is not found, a new config will be created. In this +// situation, update_mask is ignored. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsPatchCall { + c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Mask +// specifying which fields in the config should be updated. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": If set, +// validate the request and preview the review, but do not actually +// apply it. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsPatchCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsPatchCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.workstation) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsPatchCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates an existing Workstation.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}", + // "httpMethod": "PATCH", + // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "allowMissing": { + // "description": "If set, and the config is not found, a new config will be created. In this situation, update_mask is ignored.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Full name of this resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+/workstations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. Mask specifying which fields in the config should be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "validateOnly": { + // "description": "If set, validate the request and preview the review, but do not actually apply it.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "v1beta/{+name}", + // "request": { + // "$ref": "Workstation" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.setIamPolicy": + +type ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsSetIamPolicyCall { + c := &ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "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": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.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/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+/workstations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+resource}:setIamPolicy", + // "request": { + // "$ref": "SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.start": + +type ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStartCall struct { + s *Service + name string + startworkstationrequest *StartWorkstationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Start: Starts running a workstation so that users can connect to it. +// +// - name: Name of the workstation to start. +func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsService) Start(name string, startworkstationrequest *StartWorkstationRequest) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStartCall { + c := &ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStartCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.startworkstationrequest = startworkstationrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStartCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStartCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStartCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStartCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStartCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStartCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.startworkstationrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}:start") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.start" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStartCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Starts running a workstation so that users can connect to it.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}:start", + // "httpMethod": "POST", + // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.start", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the workstation to start.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+/workstations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+name}:start", + // "request": { + // "$ref": "StartWorkstationRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.stop": + +type ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStopCall struct { + s *Service + name string + stopworkstationrequest *StopWorkstationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Stop: Stops running a workstation, reducing costs. +// +// - name: Name of the workstation to stop. +func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsService) Stop(name string, stopworkstationrequest *StopWorkstationRequest) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStopCall { + c := &ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStopCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.stopworkstationrequest = stopworkstationrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStopCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStopCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStopCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStopCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStopCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStopCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.stopworkstationrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}:stop") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.stop" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStopCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Stops running a workstation, reducing costs.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}:stop", + // "httpMethod": "POST", + // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.stop", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the workstation to stop.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+/workstations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+name}:stop", + // "request": { + // "$ref": "StopWorkstationRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.testIamPermissions": + +type ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsTestIamPermissionsCall { + c := &ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "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": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.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/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+/workstations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+resource}:testIamPermissions", + // "request": { + // "$ref": "TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +}