From 9fb35f5f5db837dc8aba5b742b63e1a837621f75 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 16 Dec 2022 07:14:36 -0800 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#1788) --- .../v1/accesscontextmanager-api.json | 230 +- .../v1/accesscontextmanager-gen.go | 924 + .../v1/androidenterprise-api.json | 54 +- androidenterprise/v1/androidenterprise-gen.go | 203 +- api-list.json | 15 + chat/v1/chat-api.json | 13 +- chat/v1/chat-gen.go | 15 +- cloudsupport/v2beta/cloudsupport-api.json | 4 +- cloudsupport/v2beta/cloudsupport-gen.go | 8 +- gmail/v1/gmail-api.json | 552 +- gmail/v1/gmail-gen.go | 2077 ++ healthcare/v1/healthcare-api.json | 6 +- healthcare/v1/healthcare-gen.go | 17 +- healthcare/v1beta1/healthcare-api.json | 6 +- healthcare/v1beta1/healthcare-gen.go | 17 +- integrations/v1/integrations-api.json | 12134 ++++++ integrations/v1/integrations-gen.go | 30904 ++++++++++++++++ run/v1/run-api.json | 6 +- run/v1/run-gen.go | 9 +- texttospeech/v1/texttospeech-api.json | 46 +- texttospeech/v1/texttospeech-gen.go | 102 + texttospeech/v1beta1/texttospeech-api.json | 46 +- texttospeech/v1beta1/texttospeech-gen.go | 102 + 23 files changed, 47443 insertions(+), 47 deletions(-) create mode 100644 integrations/v1/integrations-api.json create mode 100644 integrations/v1/integrations-gen.go 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/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 23ecaeb6864..8d73b0a0fbb 100644 --- a/api-list.json +++ b/api-list.json @@ -3469,6 +3469,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 }, { diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index edcd61bf295..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." }, @@ -638,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": { @@ -674,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" ] } } @@ -902,7 +907,7 @@ } } }, - "revision": "20221208", + "revision": "20221213", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { @@ -2888,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 538a893d0c0..fb1aba86c54 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -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" @@ -109,6 +112,7 @@ const ( 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", @@ -3719,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} @@ -6415,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" // ] // } @@ -6607,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" // ] // } 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/gmail/v1/gmail-api.json b/gmail/v1/gmail-api.json index ce704e4916b..8784e608743 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?hl=en). [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": "20221212", "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..6de3bc5ed22 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?hl=en). 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?hl=en). [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/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/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/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/texttospeech/v1/texttospeech-api.json b/texttospeech/v1/texttospeech-api.json index dae93b53100..3ff6482cf99 100644 --- a/texttospeech/v1/texttospeech-api.json +++ b/texttospeech/v1/texttospeech-api.json @@ -316,7 +316,7 @@ } } }, - "revision": "20221201", + "revision": "20221213", "rootUrl": "https://texttospeech.googleapis.com/", "schemas": { "AudioConfig": { @@ -410,6 +410,28 @@ "properties": {}, "type": "object" }, + "GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata": { + "description": "Metadata for response returned by the `SynthesizeLongAudio` method.", + "id": "GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata", + "properties": { + "lastUpdateTime": { + "description": "Time of the most recent processing update.", + "format": "google-datetime", + "type": "string" + }, + "progressPercentage": { + "description": "The progress of the most recent processing update in percentage, ie. 70.0%.", + "format": "double", + "type": "number" + }, + "startTime": { + "description": "Time when the request was received.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "ListOperationsResponse": { "description": "The response message for Operations.ListOperations.", "id": "ListOperationsResponse", @@ -519,6 +541,28 @@ }, "type": "object" }, + "SynthesizeLongAudioMetadata": { + "description": "Metadata for response returned by the `SynthesizeLongAudio` method.", + "id": "SynthesizeLongAudioMetadata", + "properties": { + "lastUpdateTime": { + "description": "Time of the most recent processing update.", + "format": "google-datetime", + "type": "string" + }, + "progressPercentage": { + "description": "The progress of the most recent processing update in percentage, ie. 70.0%.", + "format": "double", + "type": "number" + }, + "startTime": { + "description": "Time when the request was received.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "SynthesizeLongAudioRequest": { "description": "The top-level message sent by the client for the `SynthesizeLongAudio` method.", "id": "SynthesizeLongAudioRequest", diff --git a/texttospeech/v1/texttospeech-gen.go b/texttospeech/v1/texttospeech-gen.go index 5e3ec6cb447..af257730577 100644 --- a/texttospeech/v1/texttospeech-gen.go +++ b/texttospeech/v1/texttospeech-gen.go @@ -373,6 +373,57 @@ type Empty struct { googleapi.ServerResponse `json:"-"` } +// GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata: Metadata for +// response returned by the `SynthesizeLongAudio` method. +type GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata struct { + // LastUpdateTime: Time of the most recent processing update. + LastUpdateTime string `json:"lastUpdateTime,omitempty"` + + // ProgressPercentage: The progress of the most recent processing update + // in percentage, ie. 70.0%. + ProgressPercentage float64 `json:"progressPercentage,omitempty"` + + // StartTime: Time when the request was received. + StartTime string `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LastUpdateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LastUpdateTime") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata + var s1 struct { + ProgressPercentage gensupport.JSONFloat64 `json:"progressPercentage"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ProgressPercentage = float64(s1.ProgressPercentage) + return nil +} + // ListOperationsResponse: The response message for // Operations.ListOperations. type ListOperationsResponse struct { @@ -586,6 +637,57 @@ func (s *SynthesisInput) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SynthesizeLongAudioMetadata: Metadata for response returned by the +// `SynthesizeLongAudio` method. +type SynthesizeLongAudioMetadata struct { + // LastUpdateTime: Time of the most recent processing update. + LastUpdateTime string `json:"lastUpdateTime,omitempty"` + + // ProgressPercentage: The progress of the most recent processing update + // in percentage, ie. 70.0%. + ProgressPercentage float64 `json:"progressPercentage,omitempty"` + + // StartTime: Time when the request was received. + StartTime string `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LastUpdateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LastUpdateTime") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SynthesizeLongAudioMetadata) MarshalJSON() ([]byte, error) { + type NoMethod SynthesizeLongAudioMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *SynthesizeLongAudioMetadata) UnmarshalJSON(data []byte) error { + type NoMethod SynthesizeLongAudioMetadata + var s1 struct { + ProgressPercentage gensupport.JSONFloat64 `json:"progressPercentage"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ProgressPercentage = float64(s1.ProgressPercentage) + return nil +} + // SynthesizeLongAudioRequest: The top-level message sent by the client // for the `SynthesizeLongAudio` method. type SynthesizeLongAudioRequest struct { diff --git a/texttospeech/v1beta1/texttospeech-api.json b/texttospeech/v1beta1/texttospeech-api.json index 40eff0f770e..77a1055ec0d 100644 --- a/texttospeech/v1beta1/texttospeech-api.json +++ b/texttospeech/v1beta1/texttospeech-api.json @@ -193,7 +193,7 @@ } } }, - "revision": "20221201", + "revision": "20221213", "rootUrl": "https://texttospeech.googleapis.com/", "schemas": { "AudioConfig": { @@ -277,6 +277,28 @@ }, "type": "object" }, + "GoogleCloudTexttospeechV1beta1SynthesizeLongAudioMetadata": { + "description": "Metadata for response returned by the `SynthesizeLongAudio` method.", + "id": "GoogleCloudTexttospeechV1beta1SynthesizeLongAudioMetadata", + "properties": { + "lastUpdateTime": { + "description": "Time of the most recent processing update.", + "format": "google-datetime", + "type": "string" + }, + "progressPercentage": { + "description": "The progress of the most recent processing update in percentage, ie. 70.0%.", + "format": "double", + "type": "number" + }, + "startTime": { + "description": "Time when the request was received.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "ListVoicesResponse": { "description": "The message returned to the client by the `ListVoices` method.", "id": "ListVoicesResponse", @@ -368,6 +390,28 @@ }, "type": "object" }, + "SynthesizeLongAudioMetadata": { + "description": "Metadata for response returned by the `SynthesizeLongAudio` method.", + "id": "SynthesizeLongAudioMetadata", + "properties": { + "lastUpdateTime": { + "description": "Time of the most recent processing update.", + "format": "google-datetime", + "type": "string" + }, + "progressPercentage": { + "description": "The progress of the most recent processing update in percentage, ie. 70.0%.", + "format": "double", + "type": "number" + }, + "startTime": { + "description": "Time when the request was received.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "SynthesizeLongAudioRequest": { "description": "The top-level message sent by the client for the `SynthesizeLongAudio` method.", "id": "SynthesizeLongAudioRequest", diff --git a/texttospeech/v1beta1/texttospeech-gen.go b/texttospeech/v1beta1/texttospeech-gen.go index e244b9b6d61..3f2ff9035ea 100644 --- a/texttospeech/v1beta1/texttospeech-gen.go +++ b/texttospeech/v1beta1/texttospeech-gen.go @@ -346,6 +346,57 @@ func (s *CustomVoiceParams) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudTexttospeechV1beta1SynthesizeLongAudioMetadata: Metadata +// for response returned by the `SynthesizeLongAudio` method. +type GoogleCloudTexttospeechV1beta1SynthesizeLongAudioMetadata struct { + // LastUpdateTime: Time of the most recent processing update. + LastUpdateTime string `json:"lastUpdateTime,omitempty"` + + // ProgressPercentage: The progress of the most recent processing update + // in percentage, ie. 70.0%. + ProgressPercentage float64 `json:"progressPercentage,omitempty"` + + // StartTime: Time when the request was received. + StartTime string `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LastUpdateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LastUpdateTime") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudTexttospeechV1beta1SynthesizeLongAudioMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudTexttospeechV1beta1SynthesizeLongAudioMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudTexttospeechV1beta1SynthesizeLongAudioMetadata) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudTexttospeechV1beta1SynthesizeLongAudioMetadata + var s1 struct { + ProgressPercentage gensupport.JSONFloat64 `json:"progressPercentage"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ProgressPercentage = float64(s1.ProgressPercentage) + return nil +} + // ListVoicesResponse: The message returned to the client by the // `ListVoices` method. type ListVoicesResponse struct { @@ -522,6 +573,57 @@ func (s *SynthesisInput) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SynthesizeLongAudioMetadata: Metadata for response returned by the +// `SynthesizeLongAudio` method. +type SynthesizeLongAudioMetadata struct { + // LastUpdateTime: Time of the most recent processing update. + LastUpdateTime string `json:"lastUpdateTime,omitempty"` + + // ProgressPercentage: The progress of the most recent processing update + // in percentage, ie. 70.0%. + ProgressPercentage float64 `json:"progressPercentage,omitempty"` + + // StartTime: Time when the request was received. + StartTime string `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LastUpdateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LastUpdateTime") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SynthesizeLongAudioMetadata) MarshalJSON() ([]byte, error) { + type NoMethod SynthesizeLongAudioMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *SynthesizeLongAudioMetadata) UnmarshalJSON(data []byte) error { + type NoMethod SynthesizeLongAudioMetadata + var s1 struct { + ProgressPercentage gensupport.JSONFloat64 `json:"progressPercentage"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ProgressPercentage = float64(s1.ProgressPercentage) + return nil +} + // SynthesizeLongAudioRequest: The top-level message sent by the client // for the `SynthesizeLongAudio` method. type SynthesizeLongAudioRequest struct {