From b8f25561a76841c7549a358925eb7bfc2236465e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 16 Sep 2022 09:02:39 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#1695) --- api-list.json | 45 + chat/v1/chat-api.json | 4 +- chat/v1/chat-gen.go | 2 +- chromemanagement/v1/chromemanagement-api.json | 89 +- chromemanagement/v1/chromemanagement-gen.go | 257 + chromepolicy/v1/chromepolicy-api.json | 14 +- chromepolicy/v1/chromepolicy-gen.go | 58 +- cloudbilling/v1beta/cloudbilling-api.json | 871 + cloudbilling/v1beta/cloudbilling-gen.go | 1874 ++ container/v1/container-api.json | 6 +- container/v1/container-gen.go | 6 +- container/v1beta1/container-api.json | 8 +- container/v1beta1/container-gen.go | 8 +- displayvideo/v2/displayvideo-api.json | 299 + displayvideo/v2/displayvideo-gen.go | 860 + integrations/v1alpha/integrations-api.json | 11238 +++++++ integrations/v1alpha/integrations-gen.go | 27018 ++++++++++++++++ .../v1/mybusinesslodging-api.json | 6 +- mybusinesslodging/v1/mybusinesslodging-gen.go | 8 +- pubsub/v1/pubsub-api.json | 12 +- pubsub/v1/pubsub-gen.go | 16 +- run/v1/run-api.json | 4 +- run/v1/run-gen.go | 4 +- .../v1/servicemanagement-api.json | 8 +- servicemanagement/v1/servicemanagement-gen.go | 14 +- sqladmin/v1/sqladmin-api.json | 21 +- sqladmin/v1/sqladmin-gen.go | 32 +- sqladmin/v1beta4/sqladmin-api.json | 21 +- sqladmin/v1beta4/sqladmin-gen.go | 23 +- vmmigration/v1/vmmigration-api.json | 107 +- vmmigration/v1/vmmigration-gen.go | 428 +- vmmigration/v1alpha1/vmmigration-api.json | 134 +- vmmigration/v1alpha1/vmmigration-gen.go | 456 +- 33 files changed, 43833 insertions(+), 118 deletions(-) create mode 100644 cloudbilling/v1beta/cloudbilling-api.json create mode 100644 cloudbilling/v1beta/cloudbilling-gen.go create mode 100644 displayvideo/v2/displayvideo-api.json create mode 100644 displayvideo/v2/displayvideo-gen.go create mode 100644 integrations/v1alpha/integrations-api.json create mode 100644 integrations/v1alpha/integrations-gen.go diff --git a/api-list.json b/api-list.json index ef48d56da90..d497d381d56 100644 --- a/api-list.json +++ b/api-list.json @@ -1051,6 +1051,21 @@ "documentationLink": "https://cloud.google.com/asset-inventory/docs/quickstart", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "cloudbilling:v1beta", + "name": "cloudbilling", + "version": "v1beta", + "title": "Cloud Billing API", + "description": "Allows developers to manage billing for their Google Cloud Platform projects programmatically.", + "discoveryRestUrl": "https://cloudbilling.googleapis.com/$discovery/rest?version=v1beta", + "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/billing/", + "preferred": false + }, { "kind": "discovery#directoryItem", "id": "cloudbilling:v1", @@ -2207,6 +2222,21 @@ "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://developers.google.com/display-video/", + "preferred": false + }, + { + "kind": "discovery#directoryItem", + "id": "displayvideo:v2", + "name": "displayvideo", + "version": "v2", + "title": "Display & Video 360 API", + "description": "Display & Video 360 API allows users to automate complex Display & Video 360 workflows, such as creating insertion orders and setting targeting options for individual line items.", + "discoveryRestUrl": "https://displayvideo.googleapis.com/$discovery/rest?version=v2", + "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://developers.google.com/display-video/", "preferred": true }, { @@ -3351,6 +3381,21 @@ "documentationLink": "https://developers.google.com/search/apis/indexing-api/", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "integrations:v1alpha", + "name": "integrations", + "version": "v1alpha", + "title": "Application Integration API", + "description": "", + "discoveryRestUrl": "https://integrations.googleapis.com/$discovery/rest?version=v1alpha", + "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": "http://www.google.com", + "preferred": true + }, { "kind": "discovery#directoryItem", "id": "jobs:v3p1beta1", diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index 4ea8aafa78e..d9500afc6b5 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -642,7 +642,7 @@ } } }, - "revision": "20220904", + "revision": "20220914", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { @@ -721,7 +721,7 @@ "DATA_LOSS" ], "enumDescriptions": [ - "Not an error; returned on success HTTP Mapping: 200 OK", + "Not an error; returned on success. HTTP Mapping: 200 OK", "The operation was cancelled, typically by the caller. HTTP Mapping: 499 Client Closed Request", "Unknown error. For example, this error may be returned when a `Status` value received from another address space belongs to an error space that is not known in this address space. Also errors raised by APIs that do not return enough error information may be converted to this error. HTTP Mapping: 500 Internal Server Error", "The client specified an invalid argument. Note that this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments that are problematic regardless of the state of the system (e.g., a malformed file name). HTTP Mapping: 400 Bad Request", diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index fe63ad222df..e06e9e70bab 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -324,7 +324,7 @@ type ActionStatus struct { // StatusCode: The status code. // // Possible values: - // "OK" - Not an error; returned on success HTTP Mapping: 200 OK + // "OK" - Not an error; returned on success. HTTP Mapping: 200 OK // "CANCELLED" - The operation was cancelled, typically by the caller. // HTTP Mapping: 499 Client Closed Request // "UNKNOWN" - Unknown error. For example, this error may be returned diff --git a/chromemanagement/v1/chromemanagement-api.json b/chromemanagement/v1/chromemanagement-api.json index 5a183581d14..ae0162d3d9d 100644 --- a/chromemanagement/v1/chromemanagement-api.json +++ b/chromemanagement/v1/chromemanagement-api.json @@ -330,6 +330,42 @@ "https://www.googleapis.com/auth/chrome.management.reports.readonly" ] }, + "countChromeHardwareFleetDevices": { + "description": "Counts of devices with a specific hardware specification from the requested hardware type (for example model name, processor type). Further information can be found here https://support.google.com/chrome/a/answer/10564947", + "flatPath": "v1/customers/{customersId}/reports:countChromeHardwareFleetDevices", + "httpMethod": "GET", + "id": "chromemanagement.customers.reports.countChromeHardwareFleetDevices", + "parameterOrder": [ + "customer" + ], + "parameters": { + "customer": { + "description": "Required. The customer ID or \"my_customer\".", + "location": "path", + "pattern": "^customers/[^/]+$", + "required": true, + "type": "string" + }, + "orgUnitId": { + "description": "Optional. The ID of the organizational unit. If omitted, all data will be returned.", + "location": "query", + "type": "string" + }, + "readMask": { + "description": "Required. Mask of the fields that should be populated in the returned report.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+customer}/reports:countChromeHardwareFleetDevices", + "response": { + "$ref": "GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/chrome.management.reports.readonly" + ] + }, "countChromeVersions": { "description": "Generate report of installed Chrome versions.", "flatPath": "v1/customers/{customersId}/reports:countChromeVersions", @@ -595,7 +631,7 @@ } } }, - "revision": "20220913", + "revision": "20220914", "rootUrl": "https://chromemanagement.googleapis.com/", "schemas": { "GoogleChromeManagementV1AndroidAppInfo": { @@ -1209,6 +1245,41 @@ }, "type": "object" }, + "GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse": { + "description": "Response containing a list of devices with a specific type of hardware specification from the requested hardware type.", + "id": "GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse", + "properties": { + "cpuReports": { + "description": "The DeviceHardwareCountReport for device cpu type (for example Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz).", + "items": { + "$ref": "GoogleChromeManagementV1DeviceHardwareCountReport" + }, + "type": "array" + }, + "memoryReports": { + "description": "The DeviceHardwareCountReport for device memory amount in gigabytes (for example 16).", + "items": { + "$ref": "GoogleChromeManagementV1DeviceHardwareCountReport" + }, + "type": "array" + }, + "modelReports": { + "description": "The DeviceHardwareCountReport for device model type (for example Acer C7 Chromebook).", + "items": { + "$ref": "GoogleChromeManagementV1DeviceHardwareCountReport" + }, + "type": "array" + }, + "storageReports": { + "description": "The DeviceHardwareCountReport for device storage amount in gigabytes (for example 128).", + "items": { + "$ref": "GoogleChromeManagementV1DeviceHardwareCountReport" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleChromeManagementV1CountChromeVersionsResponse": { "description": "Response containing requested browser versions details and counts.", "id": "GoogleChromeManagementV1CountChromeVersionsResponse", @@ -1423,6 +1494,22 @@ }, "type": "object" }, + "GoogleChromeManagementV1DeviceHardwareCountReport": { + "description": "Report for CountChromeDevicesPerHardwareSpecResponse, contains the count of devices with a unique hardware specification.", + "id": "GoogleChromeManagementV1DeviceHardwareCountReport", + "properties": { + "bucket": { + "description": "Public name of the hardware specification.", + "type": "string" + }, + "count": { + "description": "Count of devices with a unique hardware specification.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleChromeManagementV1DiskInfo": { "description": "Status of the single storage device.", "id": "GoogleChromeManagementV1DiskInfo", diff --git a/chromemanagement/v1/chromemanagement-gen.go b/chromemanagement/v1/chromemanagement-gen.go index 0a664e2b591..7ba50a5c19d 100644 --- a/chromemanagement/v1/chromemanagement-gen.go +++ b/chromemanagement/v1/chromemanagement-gen.go @@ -1033,6 +1033,53 @@ func (s *GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse) Ma return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse: +// Response containing a list of devices with a specific type of +// hardware specification from the requested hardware type. +type GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse struct { + // CpuReports: The DeviceHardwareCountReport for device cpu type (for + // example Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz). + CpuReports []*GoogleChromeManagementV1DeviceHardwareCountReport `json:"cpuReports,omitempty"` + + // MemoryReports: The DeviceHardwareCountReport for device memory amount + // in gigabytes (for example 16). + MemoryReports []*GoogleChromeManagementV1DeviceHardwareCountReport `json:"memoryReports,omitempty"` + + // ModelReports: The DeviceHardwareCountReport for device model type + // (for example Acer C7 Chromebook). + ModelReports []*GoogleChromeManagementV1DeviceHardwareCountReport `json:"modelReports,omitempty"` + + // StorageReports: The DeviceHardwareCountReport for device storage + // amount in gigabytes (for example 128). + StorageReports []*GoogleChromeManagementV1DeviceHardwareCountReport `json:"storageReports,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CpuReports") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CpuReports") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleChromeManagementV1CountChromeVersionsResponse: Response // containing requested browser versions details and counts. type GoogleChromeManagementV1CountChromeVersionsResponse struct { @@ -1364,6 +1411,39 @@ func (s *GoogleChromeManagementV1DeviceAueCountReport) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleChromeManagementV1DeviceHardwareCountReport: Report for +// CountChromeDevicesPerHardwareSpecResponse, contains the count of +// devices with a unique hardware specification. +type GoogleChromeManagementV1DeviceHardwareCountReport struct { + // Bucket: Public name of the hardware specification. + Bucket string `json:"bucket,omitempty"` + + // Count: Count of devices with a unique hardware specification. + Count int64 `json:"count,omitempty,string"` + + // 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 *GoogleChromeManagementV1DeviceHardwareCountReport) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementV1DeviceHardwareCountReport + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleChromeManagementV1DiskInfo: Status of the single storage // device. type GoogleChromeManagementV1DiskInfo struct { @@ -3707,6 +3787,183 @@ func (c *CustomersReportsCountChromeDevicesThatNeedAttentionCall) Do(opts ...goo } +// method id "chromemanagement.customers.reports.countChromeHardwareFleetDevices": + +type CustomersReportsCountChromeHardwareFleetDevicesCall struct { + s *Service + customer string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// CountChromeHardwareFleetDevices: Counts of devices with a specific +// hardware specification from the requested hardware type (for example +// model name, processor type). Further information can be found here +// https://support.google.com/chrome/a/answer/10564947 +// +// - customer: The customer ID or "my_customer". +func (r *CustomersReportsService) CountChromeHardwareFleetDevices(customer string) *CustomersReportsCountChromeHardwareFleetDevicesCall { + c := &CustomersReportsCountChromeHardwareFleetDevicesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.customer = customer + return c +} + +// OrgUnitId sets the optional parameter "orgUnitId": The ID of the +// organizational unit. If omitted, all data will be returned. +func (c *CustomersReportsCountChromeHardwareFleetDevicesCall) OrgUnitId(orgUnitId string) *CustomersReportsCountChromeHardwareFleetDevicesCall { + c.urlParams_.Set("orgUnitId", orgUnitId) + return c +} + +// ReadMask sets the optional parameter "readMask": Required. Mask of +// the fields that should be populated in the returned report. +func (c *CustomersReportsCountChromeHardwareFleetDevicesCall) ReadMask(readMask string) *CustomersReportsCountChromeHardwareFleetDevicesCall { + 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 *CustomersReportsCountChromeHardwareFleetDevicesCall) Fields(s ...googleapi.Field) *CustomersReportsCountChromeHardwareFleetDevicesCall { + 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 *CustomersReportsCountChromeHardwareFleetDevicesCall) IfNoneMatch(entityTag string) *CustomersReportsCountChromeHardwareFleetDevicesCall { + 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 *CustomersReportsCountChromeHardwareFleetDevicesCall) Context(ctx context.Context) *CustomersReportsCountChromeHardwareFleetDevicesCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *CustomersReportsCountChromeHardwareFleetDevicesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *CustomersReportsCountChromeHardwareFleetDevicesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-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/{+customer}/reports:countChromeHardwareFleetDevices") + 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{ + "customer": c.customer, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "chromemanagement.customers.reports.countChromeHardwareFleetDevices" call. +// Exactly one of +// *GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse.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 *CustomersReportsCountChromeHardwareFleetDevicesCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Counts of devices with a specific hardware specification from the requested hardware type (for example model name, processor type). Further information can be found here https://support.google.com/chrome/a/answer/10564947", + // "flatPath": "v1/customers/{customersId}/reports:countChromeHardwareFleetDevices", + // "httpMethod": "GET", + // "id": "chromemanagement.customers.reports.countChromeHardwareFleetDevices", + // "parameterOrder": [ + // "customer" + // ], + // "parameters": { + // "customer": { + // "description": "Required. The customer ID or \"my_customer\".", + // "location": "path", + // "pattern": "^customers/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "orgUnitId": { + // "description": "Optional. The ID of the organizational unit. If omitted, all data will be returned.", + // "location": "query", + // "type": "string" + // }, + // "readMask": { + // "description": "Required. Mask of the fields that should be populated in the returned report.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+customer}/reports:countChromeHardwareFleetDevices", + // "response": { + // "$ref": "GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/chrome.management.reports.readonly" + // ] + // } + +} + // method id "chromemanagement.customers.reports.countChromeVersions": type CustomersReportsCountChromeVersionsCall struct { diff --git a/chromepolicy/v1/chromepolicy-api.json b/chromepolicy/v1/chromepolicy-api.json index 3803dd680df..0264eb93d93 100644 --- a/chromepolicy/v1/chromepolicy-api.json +++ b/chromepolicy/v1/chromepolicy-api.json @@ -428,10 +428,10 @@ }, "path": "v1/{+customer}/policies/files:uploadPolicyFile", "request": { - "$ref": "GoogleChromePolicyV1UploadPolicyFileRequest" + "$ref": "GoogleChromePolicyVersionsV1UploadPolicyFileRequest" }, "response": { - "$ref": "GoogleChromePolicyV1UploadPolicyFileResponse" + "$ref": "GoogleChromePolicyVersionsV1UploadPolicyFileResponse" }, "scopes": [ "https://www.googleapis.com/auth/chrome.management.policy" @@ -441,7 +441,7 @@ } } }, - "revision": "20220913", + "revision": "20220914", "rootUrl": "https://chromepolicy.googleapis.com/", "schemas": { "ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle": { @@ -1040,9 +1040,9 @@ }, "type": "object" }, - "GoogleChromePolicyV1UploadPolicyFileRequest": { + "GoogleChromePolicyVersionsV1UploadPolicyFileRequest": { "description": "Request message for uploading a file for a policy. Next ID: 5", - "id": "GoogleChromePolicyV1UploadPolicyFileRequest", + "id": "GoogleChromePolicyVersionsV1UploadPolicyFileRequest", "properties": { "policyField": { "description": "Required. The fully qualified policy schema and field name this file is uploaded for. This information will be used to validate the content type of the file.", @@ -1051,9 +1051,9 @@ }, "type": "object" }, - "GoogleChromePolicyV1UploadPolicyFileResponse": { + "GoogleChromePolicyVersionsV1UploadPolicyFileResponse": { "description": "Response message for downloading an uploaded file. Next ID: 2", - "id": "GoogleChromePolicyV1UploadPolicyFileResponse", + "id": "GoogleChromePolicyVersionsV1UploadPolicyFileResponse", "properties": { "downloadUri": { "description": "The uri for end user to download the file.", diff --git a/chromepolicy/v1/chromepolicy-gen.go b/chromepolicy/v1/chromepolicy-gen.go index 5582d85623b..3322d4b87ea 100644 --- a/chromepolicy/v1/chromepolicy-gen.go +++ b/chromepolicy/v1/chromepolicy-gen.go @@ -1261,9 +1261,9 @@ func (s *GoogleChromePolicyV1UpdateGroupPriorityOrderingRequest) MarshalJSON() ( return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleChromePolicyV1UploadPolicyFileRequest: Request message for -// uploading a file for a policy. Next ID: 5 -type GoogleChromePolicyV1UploadPolicyFileRequest struct { +// GoogleChromePolicyVersionsV1UploadPolicyFileRequest: Request message +// for uploading a file for a policy. Next ID: 5 +type GoogleChromePolicyVersionsV1UploadPolicyFileRequest struct { // PolicyField: Required. The fully qualified policy schema and field // name this file is uploaded for. This information will be used to // validate the content type of the file. @@ -1286,15 +1286,15 @@ type GoogleChromePolicyV1UploadPolicyFileRequest struct { NullFields []string `json:"-"` } -func (s *GoogleChromePolicyV1UploadPolicyFileRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChromePolicyV1UploadPolicyFileRequest +func (s *GoogleChromePolicyVersionsV1UploadPolicyFileRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromePolicyVersionsV1UploadPolicyFileRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleChromePolicyV1UploadPolicyFileResponse: Response message for -// downloading an uploaded file. Next ID: 2 -type GoogleChromePolicyV1UploadPolicyFileResponse struct { +// GoogleChromePolicyVersionsV1UploadPolicyFileResponse: Response +// message for downloading an uploaded file. Next ID: 2 +type GoogleChromePolicyVersionsV1UploadPolicyFileResponse struct { // DownloadUri: The uri for end user to download the file. DownloadUri string `json:"downloadUri,omitempty"` @@ -1319,8 +1319,8 @@ type GoogleChromePolicyV1UploadPolicyFileResponse struct { NullFields []string `json:"-"` } -func (s *GoogleChromePolicyV1UploadPolicyFileResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChromePolicyV1UploadPolicyFileResponse +func (s *GoogleChromePolicyVersionsV1UploadPolicyFileResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromePolicyVersionsV1UploadPolicyFileResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } @@ -3069,23 +3069,23 @@ func (c *CustomersPolicySchemasListCall) Pages(ctx context.Context, f func(*Goog // method id "chromepolicy.media.upload": type MediaUploadCall struct { - s *Service - customer string - googlechromepolicyv1uploadpolicyfilerequest *GoogleChromePolicyV1UploadPolicyFileRequest - urlParams_ gensupport.URLParams - mediaInfo_ *gensupport.MediaInfo - ctx_ context.Context - header_ http.Header + s *Service + customer string + googlechromepolicyversionsv1uploadpolicyfilerequest *GoogleChromePolicyVersionsV1UploadPolicyFileRequest + urlParams_ gensupport.URLParams + mediaInfo_ *gensupport.MediaInfo + ctx_ context.Context + header_ http.Header } // Upload: Creates an enterprise file from the content provided by user. // Returns a public download url for end user. // // - customer: The customer for which the file upload will apply. -func (r *MediaService) Upload(customer string, googlechromepolicyv1uploadpolicyfilerequest *GoogleChromePolicyV1UploadPolicyFileRequest) *MediaUploadCall { +func (r *MediaService) Upload(customer string, googlechromepolicyversionsv1uploadpolicyfilerequest *GoogleChromePolicyVersionsV1UploadPolicyFileRequest) *MediaUploadCall { c := &MediaUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.customer = customer - c.googlechromepolicyv1uploadpolicyfilerequest = googlechromepolicyv1uploadpolicyfilerequest + c.googlechromepolicyversionsv1uploadpolicyfilerequest = googlechromepolicyversionsv1uploadpolicyfilerequest return c } @@ -3161,7 +3161,7 @@ func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlechromepolicyv1uploadpolicyfilerequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlechromepolicyversionsv1uploadpolicyfilerequest) if err != nil { return nil, err } @@ -3193,15 +3193,15 @@ func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { } // Do executes the "chromepolicy.media.upload" call. -// Exactly one of *GoogleChromePolicyV1UploadPolicyFileResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleChromePolicyV1UploadPolicyFileResponse.ServerResponse.Header -// or (if a response was returned at all) in +// Exactly one of *GoogleChromePolicyVersionsV1UploadPolicyFileResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleChromePolicyVersionsV1UploadPolicyFileResponse.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 *MediaUploadCall) Do(opts ...googleapi.CallOption) (*GoogleChromePolicyV1UploadPolicyFileResponse, error) { +func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*GoogleChromePolicyVersionsV1UploadPolicyFileResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3237,7 +3237,7 @@ func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*GoogleChromePolicyV return nil, err } } - ret := &GoogleChromePolicyV1UploadPolicyFileResponse{ + ret := &GoogleChromePolicyVersionsV1UploadPolicyFileResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -3278,10 +3278,10 @@ func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*GoogleChromePolicyV // }, // "path": "v1/{+customer}/policies/files:uploadPolicyFile", // "request": { - // "$ref": "GoogleChromePolicyV1UploadPolicyFileRequest" + // "$ref": "GoogleChromePolicyVersionsV1UploadPolicyFileRequest" // }, // "response": { - // "$ref": "GoogleChromePolicyV1UploadPolicyFileResponse" + // "$ref": "GoogleChromePolicyVersionsV1UploadPolicyFileResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/chrome.management.policy" diff --git a/cloudbilling/v1beta/cloudbilling-api.json b/cloudbilling/v1beta/cloudbilling-api.json new file mode 100644 index 00000000000..f1e5f9eb99c --- /dev/null +++ b/cloudbilling/v1beta/cloudbilling-api.json @@ -0,0 +1,871 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/cloud-billing": { + "description": "View and manage your Google Cloud Platform billing accounts" + }, + "https://www.googleapis.com/auth/cloud-billing.readonly": { + "description": "View your Google Cloud Platform billing accounts" + }, + "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://cloudbilling.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Cloudbilling", + "description": "Allows developers to manage billing for their Google Cloud Platform projects programmatically.", + "discoveryVersion": "v1", + "documentationLink": "https://cloud.google.com/billing/", + "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": "cloudbilling:v1beta", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://cloudbilling.mtls.googleapis.com/", + "name": "cloudbilling", + "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": { + "billingAccounts": { + "methods": { + "estimateCostScenario": { + "description": "Use custom pricing in the estimate, using a `CostScenario` with a defined `billingAccount`.", + "flatPath": "v1beta/billingAccounts/{billingAccountsId}:estimateCostScenario", + "httpMethod": "POST", + "id": "cloudbilling.billingAccounts.estimateCostScenario", + "parameterOrder": [ + "billingAccount" + ], + "parameters": { + "billingAccount": { + "description": "Resource name of the billing account for the cost estimate. The resource name has the form `billingAccounts/{billing_acount_id}`. For example, `billingAccounts/012345-567890-ABCDEF` is the resource name for billing account `012345-567890-ABCDEF`. Must be specified.", + "location": "path", + "pattern": "^billingAccounts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+billingAccount}:estimateCostScenario", + "request": { + "$ref": "EstimateCostScenarioForBillingAccountRequest" + }, + "response": { + "$ref": "EstimateCostScenarioForBillingAccountResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-billing", + "https://www.googleapis.com/auth/cloud-billing.readonly", + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "v1beta": { + "methods": { + "estimateCostScenario": { + "description": "Estimate list prices using a `CostScenario` without a defined `billingAccount`.", + "flatPath": "v1beta:estimateCostScenario", + "httpMethod": "POST", + "id": "cloudbilling.estimateCostScenario", + "parameterOrder": [], + "parameters": {}, + "path": "v1beta:estimateCostScenario", + "request": { + "$ref": "EstimateCostScenarioWithListPriceRequest" + }, + "response": { + "$ref": "EstimateCostScenarioWithListPriceResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-billing", + "https://www.googleapis.com/auth/cloud-billing.readonly", + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + }, + "revision": "20220914", + "rootUrl": "https://cloudbilling.googleapis.com/", + "schemas": { + "CloudStorageWorkload": { + "description": "Specifies usage of Cloud Storage resources.", + "id": "CloudStorageWorkload", + "properties": { + "dataRetrieval": { + "$ref": "Usage", + "description": "Data retrieval usage. A retrieval cost applies when data or metadata is read, copied, or rewritten . For example: units such as \"GiBy/s\" or \"By/s\"." + }, + "dataStored": { + "$ref": "Usage", + "description": "Data storage usage. The amount of data stored in buckets. For example: units such as \"GiBy/s\" or \"TBy/mo\"." + }, + "dualRegion": { + "$ref": "DualRegional", + "description": "Specify dual regions." + }, + "multiRegion": { + "$ref": "MultiRegional", + "description": "Specify multi regions." + }, + "operationA": { + "$ref": "Usage", + "description": "Class A operation usage in Cloud Storage, such as listing the objects in buckets. See the [operations pricing](https://cloud.google.com/storage/pricing#operations-pricing) tables for a list of which operations fall into each class. For example: units such as \"1/s\"." + }, + "operationB": { + "$ref": "Usage", + "description": "Class B operation usage in Cloud Storage, such as `getIamPolicy`. See the [operations pricing](https://cloud.google.com/storage/pricing#operations-pricing) tables for a list of which operations fall into each class. For example: units such as \"1/s\"." + }, + "region": { + "$ref": "Regional", + "description": "Specify a single region." + }, + "storageClass": { + "description": "The [storage class](https://cloud.google.com/storage/docs/storage-classes#classes) of the data and operation. For example: \"standard\" or \"nearline\".", + "type": "string" + } + }, + "type": "object" + }, + "Commitment": { + "description": "Commitments give you the ability to pay a recurring fee in exchange for a benefit, such as a discount for your use. For example, this object might contain details of a [spend-based committed use discount (CUD)](https://cloud.google.com/docs/cuds#spend_based_commitments). Within a CostScenario, adding a commitment includes the cost of the commitment and any discounts.", + "id": "Commitment", + "properties": { + "name": { + "description": "Required. A name for this commitment. All commitments in a CostScenario must have unique names. Each name must be a maximum of 32 characters.", + "type": "string" + }, + "vmResourceBasedCud": { + "$ref": "VmResourceBasedCud", + "description": "A resource-based committed use discount (CUD)." + } + }, + "type": "object" + }, + "CommitmentCostEstimate": { + "description": "Estimated cost for a commitment.", + "id": "CommitmentCostEstimate", + "properties": { + "commitmentTotalCostEstimate": { + "$ref": "CostEstimate", + "description": "Total estimated costs for the commitment." + }, + "name": { + "description": "The name of the commitment, as specified in the `CostScenario`.", + "type": "string" + }, + "skuCostEstimates": { + "description": "Estimated costs for each SKU in the commitment.", + "items": { + "$ref": "SkuCostEstimate" + }, + "type": "array" + } + }, + "type": "object" + }, + "ComputeVmWorkload": { + "description": "Specificies usage of a set of identical compute VM instances.", + "id": "ComputeVmWorkload", + "properties": { + "enableConfidentialCompute": { + "description": "Defines whether each instance has confidential compute enabled.", + "type": "boolean" + }, + "guestAccelerator": { + "$ref": "GuestAccelerator", + "description": "Guest accelerators attached to each machine." + }, + "instancesRunning": { + "$ref": "Usage", + "description": "VM usage. This is specified as a unitless quantity which indicates the number of instances running." + }, + "licenses": { + "description": "Premium image licenses used by each instance.", + "items": { + "type": "string" + }, + "type": "array" + }, + "machineType": { + "$ref": "MachineType", + "description": "The machine type." + }, + "persistentDisks": { + "description": "Persistent disks attached to each instance. Must include a boot disk.", + "items": { + "$ref": "PersistentDisk" + }, + "type": "array" + }, + "preemptible": { + "description": "Defines whether each instance is preemptible.", + "type": "boolean" + }, + "region": { + "description": "The [region](https://cloud.google.com/compute/docs/regions-zones) where the VMs run. For example: \"us-central1\".", + "type": "string" + } + }, + "type": "object" + }, + "CostEstimate": { + "description": "An estimated cost.", + "id": "CostEstimate", + "properties": { + "creditEstimates": { + "description": "The estimated credits applied.", + "items": { + "$ref": "CreditEstimate" + }, + "type": "array" + }, + "netCostEstimate": { + "$ref": "Money", + "description": "The estimated net cost after applying credits." + }, + "preCreditCostEstimate": { + "$ref": "Money", + "description": "The estimated cost prior to applying credits." + } + }, + "type": "object" + }, + "CostEstimationResult": { + "description": "The result of a estimating the costs of a `CostScenario`.", + "id": "CostEstimationResult", + "properties": { + "currencyCode": { + "description": "Required. The ISO 4217 currency code for the cost estimate.", + "type": "string" + }, + "segmentCostEstimates": { + "description": "Required. Estimated costs for each idealized month of a `CostScenario`.", + "items": { + "$ref": "SegmentCostEstimate" + }, + "type": "array" + }, + "skus": { + "description": "Required. Information about SKUs used in the estimate.", + "items": { + "$ref": "Sku" + }, + "type": "array" + } + }, + "type": "object" + }, + "CostScenario": { + "description": "Encapsulates all the information needed to perform a cost estimate. It includes a specification of the Google Cloud usage whose costs are estimated, and configuration options.", + "id": "CostScenario", + "properties": { + "commitments": { + "description": "New commitments to estimate the costs for. The cost of the commitments will be included in the estimate result and discounts the commitment entitles will be included in the workload cost estimates. A maximum of 100 workloads can be provided.", + "items": { + "$ref": "Commitment" + }, + "type": "array" + }, + "scenarioConfig": { + "$ref": "ScenarioConfig", + "description": "Configuration for the scenario." + }, + "workloads": { + "description": "The Google Cloud usage whose costs are estimated. A maximum of 100 workloads can be provided.", + "items": { + "$ref": "Workload" + }, + "type": "array" + } + }, + "type": "object" + }, + "CreditEstimate": { + "description": "An estimated credit applied to the costs on a SKU.", + "id": "CreditEstimate", + "properties": { + "creditAmount": { + "$ref": "Money", + "description": "The estimated credit amount." + }, + "creditDescription": { + "description": "The credit description.", + "type": "string" + }, + "creditType": { + "description": "The credit type.", + "type": "string" + } + }, + "type": "object" + }, + "CustomMachineType": { + "description": "Specification of a custom machine type.", + "id": "CustomMachineType", + "properties": { + "machineSeries": { + "description": "Required. The machine series. Only certain [machine series](https://cloud.google.com/compute/docs/general-purpose-machines#custom_machine_types) support custom configurations. For example: \"n1\".", + "type": "string" + }, + "memorySizeGb": { + "description": "Required. Memory size of the VM in GB (2^30 bytes). Must be an increment of 0.25 (256 MB). Each [machine series](https://cloud.google.com/compute/docs/machine-types#machine_type_comparison) has limitations on allowed values for the ratio of memory-to-vCPU count.", + "format": "double", + "type": "number" + }, + "virtualCpuCount": { + "description": "Required. The number of vCPUs. The allowed values depend on the [machine series](https://cloud.google.com/compute/docs/machine-types#machine_type_comparison).", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "DualRegional": { + "description": "Area contains dual locations.", + "id": "DualRegional", + "properties": { + "name": { + "description": "The [location name](https://cloud.google.com/storage/docs/locations#available-locations) where the data is stored. For example: \"asia1\" for dual region.", + "type": "string" + } + }, + "type": "object" + }, + "EstimateCostScenarioForBillingAccountRequest": { + "description": "Request for EstimateCostScenarioForBillingAccount.", + "id": "EstimateCostScenarioForBillingAccountRequest", + "properties": { + "costScenario": { + "$ref": "CostScenario", + "description": "The scenario to estimate costs for." + } + }, + "type": "object" + }, + "EstimateCostScenarioForBillingAccountResponse": { + "description": "Response for EstimateCostScenarioForBillingAccount", + "id": "EstimateCostScenarioForBillingAccountResponse", + "properties": { + "costEstimationResult": { + "$ref": "CostEstimationResult", + "description": "The result of the cost estimation." + } + }, + "type": "object" + }, + "EstimateCostScenarioWithListPriceRequest": { + "description": "Request for EstimateCostScenarioWithListPrice.", + "id": "EstimateCostScenarioWithListPriceRequest", + "properties": { + "costScenario": { + "$ref": "CostScenario", + "description": "The scenario to estimate costs for." + } + }, + "type": "object" + }, + "EstimateCostScenarioWithListPriceResponse": { + "description": "Response for EstimateCostScenarioWithListPrice", + "id": "EstimateCostScenarioWithListPriceResponse", + "properties": { + "costEstimationResult": { + "$ref": "CostEstimationResult", + "description": "The result of the cost estimation." + } + }, + "type": "object" + }, + "EstimationTimePoint": { + "description": "Represents a point in time.", + "id": "EstimationTimePoint", + "properties": { + "estimationTimeFrameOffset": { + "description": "The point in time, relative to the start of the time frame covered by the cost estimate.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "GuestAccelerator": { + "description": "Specification of a set of guest accelerators attached to a machine.", + "id": "GuestAccelerator", + "properties": { + "acceleratorCount": { + "description": "The number of the guest accelerator cards exposed to each instance.", + "format": "int64", + "type": "string" + }, + "acceleratorType": { + "description": "The type of the guest accelerator cards. For example: \"nvidia-tesla-t4\".", + "type": "string" + } + }, + "type": "object" + }, + "MachineType": { + "description": "Specification of machine series, memory, and number of vCPUs.", + "id": "MachineType", + "properties": { + "customMachineType": { + "$ref": "CustomMachineType" + }, + "predefinedMachineType": { + "$ref": "PredefinedMachineType" + } + }, + "type": "object" + }, + "Money": { + "description": "Represents an amount of money with its currency type.", + "id": "Money", + "properties": { + "currencyCode": { + "description": "The three-letter currency code defined in ISO 4217.", + "type": "string" + }, + "nanos": { + "description": "Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.", + "format": "int32", + "type": "integer" + }, + "units": { + "description": "The whole units of the amount. For example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "MultiRegional": { + "description": "Area contains multiple locations.", + "id": "MultiRegional", + "properties": { + "name": { + "description": "The [location name](https://cloud.google.com/storage/docs/locations#available-locations) where the data is stored. For example: \"us\" for multi-region.", + "type": "string" + } + }, + "type": "object" + }, + "PersistentDisk": { + "description": "Specification of a persistent disk attached to a VM.", + "id": "PersistentDisk", + "properties": { + "diskSize": { + "$ref": "Usage", + "description": "Specifies the size of disk. Must be at least 10 GB." + }, + "diskType": { + "description": "The [disk type](https://cloud.google.com/compute/docs/disks#disk-types). For example: \"pd-standard\".", + "type": "string" + }, + "provisionedIops": { + "$ref": "Usage", + "description": "Indicates how many IOPS to provision for the disk for extreme persistent disks. This sets the number of I/O operations per second that the disk can handle. Values must be between 10,000 and 120,000." + }, + "scope": { + "description": "The geographic scope of the disk. Defaults to `SCOPE_ZONAL` if not specified.", + "enum": [ + "SCOPE_UNSPECIFIED", + "SCOPE_ZONAL", + "SCOPE_REGIONAL" + ], + "enumDescriptions": [ + "Unspecified.", + "The disk exists in a single zone.", + "The disk is replicated in a secondary zone within the same region." + ], + "type": "string" + } + }, + "type": "object" + }, + "PredefinedMachineType": { + "description": "Specification of a predefined machine type.", + "id": "PredefinedMachineType", + "properties": { + "machineType": { + "description": "The [machine type](https://cloud.google.com/compute/docs/machine-types). For example: \"n1-standard1\".", + "type": "string" + } + }, + "type": "object" + }, + "Price": { + "description": "The price of a SKU at a point int time.", + "id": "Price", + "properties": { + "effectiveTime": { + "$ref": "EstimationTimePoint", + "description": "The timestamp within the estimation time frame when the price was set." + }, + "priceType": { + "description": "The type of price. Possible values: \"RATE\"", + "type": "string" + }, + "rate": { + "$ref": "Rate", + "description": "A set of tiered rates." + } + }, + "type": "object" + }, + "Rate": { + "description": "A SKU price consisting of tiered rates.", + "id": "Rate", + "properties": { + "tiers": { + "description": "The service tiers.", + "items": { + "$ref": "RateTier" + }, + "type": "array" + }, + "unit": { + "description": "The SKU's pricing unit. For example, if the tier price is $1 per 1000000 Bytes, then this field will show 'By'. The `start_amount` field in each tier will be in this unit.", + "type": "string" + }, + "unitCount": { + "description": "The SKU's count for the pricing unit. For example, if the tier price is $1 per 1000000 Bytes, then this column will show 1000000.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "RateTier": { + "description": "Pricing details for a service tier.", + "id": "RateTier", + "properties": { + "price": { + "$ref": "Money", + "description": "The price for this tier." + }, + "startAmount": { + "description": "The magnitude of usage in which the tier interval begins. Example: \"From 100 GiBi the price is $1 per byte\" implies `start_amount` = 100", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "Regional": { + "description": "Area contains only one location.", + "id": "Regional", + "properties": { + "name": { + "description": "The [location name](https://cloud.google.com/storage/docs/locations#available-locations). For example: \"us-central1\" for region.", + "type": "string" + } + }, + "type": "object" + }, + "ScenarioConfig": { + "description": "Configuration for a CostScenario. Specifies how costs are calculated.", + "id": "ScenarioConfig", + "properties": { + "estimateDuration": { + "description": "Time frame for the estimate. Workloads must specify usage for this duration. Duration must be at least 1 hour (3,600 seconds) and at most 10 years (315,360,000 seconds). The calculations for years and months are based on a 730-hour (2,628,000-second) month.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "SegmentCostEstimate": { + "description": "Workload cost estimates for a single time segment.", + "id": "SegmentCostEstimate", + "properties": { + "commitmentCostEstimates": { + "description": "Estimated costs for each commitment.", + "items": { + "$ref": "CommitmentCostEstimate" + }, + "type": "array" + }, + "segmentStartTime": { + "$ref": "EstimationTimePoint", + "description": "Timestamp for the start of the segment." + }, + "segmentTotalCostEstimate": { + "$ref": "CostEstimate", + "description": "Total estimated costs for the time segment." + }, + "workloadCostEstimates": { + "description": "Estimated costs for each workload.", + "items": { + "$ref": "WorkloadCostEstimate" + }, + "type": "array" + } + }, + "type": "object" + }, + "Sku": { + "description": "Information about SKUs appearing in the cost estimate.", + "id": "Sku", + "properties": { + "displayName": { + "description": "The display name for the SKU. Example: A2 Instance Core running in Americas", + "type": "string" + }, + "prices": { + "description": "A timeline of prices for a SKU in chronological order. Note: The API currently only supports using a constant price for the entire estimation time frame so this list will contain a single value.", + "items": { + "$ref": "Price" + }, + "type": "array" + }, + "sku": { + "description": "The resource name for the SKU. Example: \"services/DA34-426B-A397/skus/AA95-CD31-42FE\"", + "type": "string" + } + }, + "type": "object" + }, + "SkuCostEstimate": { + "description": "Estimated cost for usage on a SKU.", + "id": "SkuCostEstimate", + "properties": { + "costEstimate": { + "$ref": "CostEstimate", + "description": "The estimated cost for the usage on this SKU." + }, + "sku": { + "description": "The resource name for the SKU. Example: \"services/DA34-426B-A397/skus/AA95-CD31-42FE\" More information about the SKU can be found in the `skus` field of the `CostEstimationResult`.", + "type": "string" + }, + "usageAmount": { + "description": "The amount of usage on this SKU.", + "format": "double", + "type": "number" + }, + "usageUnit": { + "description": "The unit for the usage on this SKU.", + "type": "string" + } + }, + "type": "object" + }, + "Usage": { + "description": "An amount of usage over a time frame.", + "id": "Usage", + "properties": { + "usageRateTimeline": { + "$ref": "UsageRateTimeline", + "description": "A timeline of usage rates over the estimate interval." + } + }, + "type": "object" + }, + "UsageRateTimeline": { + "description": "A timeline of usage rates. Consists of a series of entries, each of which specifies a constant rate of usage during a time interval. Each entry contains an effective time. The usage rate is in effect from that time until the effective time of the subsequent entry, or, for the last entry, for the remaining portion of estimation time frame. Effective times are specified as an offset into the estimation time frame. Usage is considered to be zero until the `effective_time` of the first entry. All subsequent entries must have an effective time greater than the previous entry and less than the estimate time frame. The effective time on all entries must be an integer number of hours.", + "id": "UsageRateTimeline", + "properties": { + "unit": { + "description": "The unit for the usage rate in each timeline entry. The supported units are a subset of [The Unified Code for Units of Measure](https://ucum.org/ucum.html) standard: * **Time units (TIME-UNIT)** * `s` second * `min` minute * `h` hour * `d` day * `wk` week * `mo` month * `yr` year * `ms` millisecond * `us` microsecond * `ns` nanosecond * **Basic storage units (BASIC-STORAGE-UNIT)** * `bit` bit * `By` byte * **Count units (COUNT-UNIT)** * `count` count * **Prefixes (PREFIX)** * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^12) * `P` peta (10^15) * `Ki` kibi (2^10) * `Mi` mebi (2^20) * `Gi` gibi (2^30) * `Ti` tebi (2^40) * `Pi` pebi (2^50) **Grammar** The grammar also includes these connectors: * `/` division or ratio (as an infix operator). For example: `kBy/{email}` or `MiBy/10ms`. * `.` multiplication or composition (as an infix operator). For example: `GBy.d` or `k{watt}.h`. The grammar for a unit is as follows: ``` Expression = Component { \".\" Component } { \"/\" Component } ; Component = ( [ PREFIX ] UNIT | \"%\" ) [ Annotation ] | Annotation | \"1\" ; UNIT = TIME-UNIT | STORAGE-UNIT | DATA-UNIT | COUNT-UNIT Annotation = \"{\" NAME \"}\" ; ``` Examples: * Request per second: `1/s` or `{requests}/s` * GibiBytes: `GiBy` * GibiBytes * seconds: `GiBy.s`", + "type": "string" + }, + "usageRateTimelineEntries": { + "description": "The timeline entries. Each entry has a start time and usage rate. The start time specifies the effective time of the usage rate. The entries must be sorted by start time in an increasing order.", + "items": { + "$ref": "UsageRateTimelineEntry" + }, + "type": "array" + } + }, + "type": "object" + }, + "UsageRateTimelineEntry": { + "description": "A usage rate timeline entry. Each entry specifies a constant usage rate during a time interval.", + "id": "UsageRateTimelineEntry", + "properties": { + "effectiveTime": { + "$ref": "EstimationTimePoint", + "description": "The effective time for this entry. The usage rate is in effect starting at this time until the effective time of the subsequent entry in the timeline. The last entry defines the usage rate until the end of the `Usage` time frame. Must correspond to an integer number of hours." + }, + "usageRate": { + "description": "The usage rate.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "VmResourceBasedCud": { + "description": "Specifies a resource-based committed use discount (CUD).", + "id": "VmResourceBasedCud", + "properties": { + "guestAccelerator": { + "$ref": "GuestAccelerator", + "description": "Guest accelerator, known as GPU." + }, + "machineSeries": { + "description": "The machine series for CUD. For example: \"n1\" for general purpose N1 machine type commitments. \"n2\" for general purpose N2 machine type commitments. \"e2\" for general purpose E2 machine type commitments. \"n2d\" for general purpose N2D machine type commitments. \"t2d\" for general purpose T2D machine type commitments. \"c2\"/\"c2d\" for compute-optimized commitments. \"m1\"/\"m2\" for the memory-optimized commitments. \"a2' for the accelerator-optimized commitments.", + "type": "string" + }, + "memorySizeGb": { + "description": "Memory size of the VM in GB (2^30 bytes). Must be an increment of 0.25 (256 MB).", + "format": "double", + "type": "number" + }, + "plan": { + "description": "Commitment usage plan.", + "enum": [ + "COMMITMENT_PLAN_UNSPECIFIED", + "TWELVE_MONTH", + "THIRTY_SIX_MONTH" + ], + "enumDescriptions": [ + "Not specified commitment plan.", + "1 year commitment.", + "3 years commitment." + ], + "type": "string" + }, + "region": { + "description": "The region where the VM runs. For example: \"us-central1\"", + "type": "string" + }, + "virtualCpuCount": { + "description": "The number of vCPUs. The number of vCPUs must be an integer of 0 or more and can be even or odd.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "Workload": { + "description": "Specifies usage on a single Google Cloud product over a time frame. Each Google Cloud product has its own message, containing specific product configuration parameters of the product usage amounts along each dimension in which the product is billed.", + "id": "Workload", + "properties": { + "cloudStorageWorkload": { + "$ref": "CloudStorageWorkload", + "description": "Usage on Google Cloud Storage." + }, + "computeVmWorkload": { + "$ref": "ComputeVmWorkload", + "description": "Usage of a Google Compute Engine Virtual Machine." + }, + "name": { + "description": "Required. A name for this workload. All workloads in a `CostScenario` must have a unique `name`. Each `name` must be a maximum of 32 characters.", + "type": "string" + } + }, + "type": "object" + }, + "WorkloadCostEstimate": { + "description": "Estimated cost for a workload.", + "id": "WorkloadCostEstimate", + "properties": { + "name": { + "description": "The name of the workload, as specified in the `CostScenario`.", + "type": "string" + }, + "skuCostEstimates": { + "description": "Estimated costs for each SKU in the workload.", + "items": { + "$ref": "SkuCostEstimate" + }, + "type": "array" + }, + "workloadTotalCostEstimate": { + "$ref": "CostEstimate", + "description": "Total estimated costs for the workload." + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "Cloud Billing API", + "version": "v1beta", + "version_module": true +} \ No newline at end of file diff --git a/cloudbilling/v1beta/cloudbilling-gen.go b/cloudbilling/v1beta/cloudbilling-gen.go new file mode 100644 index 00000000000..4a4869fb92d --- /dev/null +++ b/cloudbilling/v1beta/cloudbilling-gen.go @@ -0,0 +1,1874 @@ +// 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 cloudbilling provides access to the Cloud Billing API. +// +// For product documentation, see: https://cloud.google.com/billing/ +// +// # Creating a client +// +// Usage example: +// +// import "google.golang.org/api/cloudbilling/v1beta" +// ... +// ctx := context.Background() +// cloudbillingService, err := cloudbilling.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 +// +// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// +// cloudbillingService, err := cloudbilling.NewService(ctx, option.WithScopes(cloudbilling.CloudPlatformScope)) +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// cloudbillingService, err := cloudbilling.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, ...) +// cloudbillingService, err := cloudbilling.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package cloudbilling // import "google.golang.org/api/cloudbilling/v1beta" + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" + gensupport "google.golang.org/api/internal/gensupport" + option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" + htransport "google.golang.org/api/transport/http" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = gensupport.MarshalJSON +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint + +const apiId = "cloudbilling:v1beta" +const apiName = "cloudbilling" +const apiVersion = "v1beta" +const basePath = "https://cloudbilling.googleapis.com/" +const mtlsBasePath = "https://cloudbilling.mtls.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // View and manage your Google Cloud Platform billing accounts + CloudBillingScope = "https://www.googleapis.com/auth/cloud-billing" + + // View your Google Cloud Platform billing accounts + CloudBillingReadonlyScope = "https://www.googleapis.com/auth/cloud-billing.readonly" + + // 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-billing", + "https://www.googleapis.com/auth/cloud-billing.readonly", + "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.BillingAccounts = NewBillingAccountsService(s) + s.V1beta = NewV1betaService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + BillingAccounts *BillingAccountsService + + V1beta *V1betaService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewBillingAccountsService(s *Service) *BillingAccountsService { + rs := &BillingAccountsService{s: s} + return rs +} + +type BillingAccountsService struct { + s *Service +} + +func NewV1betaService(s *Service) *V1betaService { + rs := &V1betaService{s: s} + return rs +} + +type V1betaService struct { + s *Service +} + +// CloudStorageWorkload: Specifies usage of Cloud Storage resources. +type CloudStorageWorkload struct { + // DataRetrieval: Data retrieval usage. A retrieval cost applies when + // data or metadata is read, copied, or rewritten . For example: units + // such as "GiBy/s" or "By/s". + DataRetrieval *Usage `json:"dataRetrieval,omitempty"` + + // DataStored: Data storage usage. The amount of data stored in buckets. + // For example: units such as "GiBy/s" or "TBy/mo". + DataStored *Usage `json:"dataStored,omitempty"` + + // DualRegion: Specify dual regions. + DualRegion *DualRegional `json:"dualRegion,omitempty"` + + // MultiRegion: Specify multi regions. + MultiRegion *MultiRegional `json:"multiRegion,omitempty"` + + // OperationA: Class A operation usage in Cloud Storage, such as listing + // the objects in buckets. See the operations pricing + // (https://cloud.google.com/storage/pricing#operations-pricing) tables + // for a list of which operations fall into each class. For example: + // units such as "1/s". + OperationA *Usage `json:"operationA,omitempty"` + + // OperationB: Class B operation usage in Cloud Storage, such as + // `getIamPolicy`. See the operations pricing + // (https://cloud.google.com/storage/pricing#operations-pricing) tables + // for a list of which operations fall into each class. For example: + // units such as "1/s". + OperationB *Usage `json:"operationB,omitempty"` + + // Region: Specify a single region. + Region *Regional `json:"region,omitempty"` + + // StorageClass: The storage class + // (https://cloud.google.com/storage/docs/storage-classes#classes) of + // the data and operation. For example: "standard" or "nearline". + StorageClass string `json:"storageClass,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DataRetrieval") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DataRetrieval") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CloudStorageWorkload) MarshalJSON() ([]byte, error) { + type NoMethod CloudStorageWorkload + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Commitment: Commitments give you the ability to pay a recurring fee +// in exchange for a benefit, such as a discount for your use. For +// example, this object might contain details of a spend-based committed +// use discount (CUD) +// (https://cloud.google.com/docs/cuds#spend_based_commitments). Within +// a CostScenario, adding a commitment includes the cost of the +// commitment and any discounts. +type Commitment struct { + // Name: Required. A name for this commitment. All commitments in a + // CostScenario must have unique names. Each name must be a maximum of + // 32 characters. + Name string `json:"name,omitempty"` + + // VmResourceBasedCud: A resource-based committed use discount (CUD). + VmResourceBasedCud *VmResourceBasedCud `json:"vmResourceBasedCud,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 *Commitment) MarshalJSON() ([]byte, error) { + type NoMethod Commitment + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CommitmentCostEstimate: Estimated cost for a commitment. +type CommitmentCostEstimate struct { + // CommitmentTotalCostEstimate: Total estimated costs for the + // commitment. + CommitmentTotalCostEstimate *CostEstimate `json:"commitmentTotalCostEstimate,omitempty"` + + // Name: The name of the commitment, as specified in the `CostScenario`. + Name string `json:"name,omitempty"` + + // SkuCostEstimates: Estimated costs for each SKU in the commitment. + SkuCostEstimates []*SkuCostEstimate `json:"skuCostEstimates,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CommitmentTotalCostEstimate") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "CommitmentTotalCostEstimate") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CommitmentCostEstimate) MarshalJSON() ([]byte, error) { + type NoMethod CommitmentCostEstimate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ComputeVmWorkload: Specificies usage of a set of identical compute VM +// instances. +type ComputeVmWorkload struct { + // EnableConfidentialCompute: Defines whether each instance has + // confidential compute enabled. + EnableConfidentialCompute bool `json:"enableConfidentialCompute,omitempty"` + + // GuestAccelerator: Guest accelerators attached to each machine. + GuestAccelerator *GuestAccelerator `json:"guestAccelerator,omitempty"` + + // InstancesRunning: VM usage. This is specified as a unitless quantity + // which indicates the number of instances running. + InstancesRunning *Usage `json:"instancesRunning,omitempty"` + + // Licenses: Premium image licenses used by each instance. + Licenses []string `json:"licenses,omitempty"` + + // MachineType: The machine type. + MachineType *MachineType `json:"machineType,omitempty"` + + // PersistentDisks: Persistent disks attached to each instance. Must + // include a boot disk. + PersistentDisks []*PersistentDisk `json:"persistentDisks,omitempty"` + + // Preemptible: Defines whether each instance is preemptible. + Preemptible bool `json:"preemptible,omitempty"` + + // Region: The region + // (https://cloud.google.com/compute/docs/regions-zones) where the VMs + // run. For example: "us-central1". + Region string `json:"region,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "EnableConfidentialCompute") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "EnableConfidentialCompute") to include in API requests with the JSON + // null value. By default, fields with empty values are omitted from API + // requests. However, any field with an empty value appearing in + // NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ComputeVmWorkload) MarshalJSON() ([]byte, error) { + type NoMethod ComputeVmWorkload + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CostEstimate: An estimated cost. +type CostEstimate struct { + // CreditEstimates: The estimated credits applied. + CreditEstimates []*CreditEstimate `json:"creditEstimates,omitempty"` + + // NetCostEstimate: The estimated net cost after applying credits. + NetCostEstimate *Money `json:"netCostEstimate,omitempty"` + + // PreCreditCostEstimate: The estimated cost prior to applying credits. + PreCreditCostEstimate *Money `json:"preCreditCostEstimate,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreditEstimates") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreditEstimates") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CostEstimate) MarshalJSON() ([]byte, error) { + type NoMethod CostEstimate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CostEstimationResult: The result of a estimating the costs of a +// `CostScenario`. +type CostEstimationResult struct { + // CurrencyCode: Required. The ISO 4217 currency code for the cost + // estimate. + CurrencyCode string `json:"currencyCode,omitempty"` + + // SegmentCostEstimates: Required. Estimated costs for each idealized + // month of a `CostScenario`. + SegmentCostEstimates []*SegmentCostEstimate `json:"segmentCostEstimates,omitempty"` + + // Skus: Required. Information about SKUs used in the estimate. + Skus []*Sku `json:"skus,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CurrencyCode") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CurrencyCode") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CostEstimationResult) MarshalJSON() ([]byte, error) { + type NoMethod CostEstimationResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CostScenario: Encapsulates all the information needed to perform a +// cost estimate. It includes a specification of the Google Cloud usage +// whose costs are estimated, and configuration options. +type CostScenario struct { + // Commitments: New commitments to estimate the costs for. The cost of + // the commitments will be included in the estimate result and discounts + // the commitment entitles will be included in the workload cost + // estimates. A maximum of 100 workloads can be provided. + Commitments []*Commitment `json:"commitments,omitempty"` + + // ScenarioConfig: Configuration for the scenario. + ScenarioConfig *ScenarioConfig `json:"scenarioConfig,omitempty"` + + // Workloads: The Google Cloud usage whose costs are estimated. A + // maximum of 100 workloads can be provided. + Workloads []*Workload `json:"workloads,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Commitments") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Commitments") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CostScenario) MarshalJSON() ([]byte, error) { + type NoMethod CostScenario + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CreditEstimate: An estimated credit applied to the costs on a SKU. +type CreditEstimate struct { + // CreditAmount: The estimated credit amount. + CreditAmount *Money `json:"creditAmount,omitempty"` + + // CreditDescription: The credit description. + CreditDescription string `json:"creditDescription,omitempty"` + + // CreditType: The credit type. + CreditType string `json:"creditType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreditAmount") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreditAmount") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CreditEstimate) MarshalJSON() ([]byte, error) { + type NoMethod CreditEstimate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CustomMachineType: Specification of a custom machine type. +type CustomMachineType struct { + // MachineSeries: Required. The machine series. Only certain machine + // series + // (https://cloud.google.com/compute/docs/general-purpose-machines#custom_machine_types) + // support custom configurations. For example: "n1". + MachineSeries string `json:"machineSeries,omitempty"` + + // MemorySizeGb: Required. Memory size of the VM in GB (2^30 bytes). + // Must be an increment of 0.25 (256 MB). Each machine series + // (https://cloud.google.com/compute/docs/machine-types#machine_type_comparison) + // has limitations on allowed values for the ratio of memory-to-vCPU + // count. + MemorySizeGb float64 `json:"memorySizeGb,omitempty"` + + // VirtualCpuCount: Required. The number of vCPUs. The allowed values + // depend on the machine series + // (https://cloud.google.com/compute/docs/machine-types#machine_type_comparison). + VirtualCpuCount int64 `json:"virtualCpuCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "MachineSeries") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MachineSeries") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CustomMachineType) MarshalJSON() ([]byte, error) { + type NoMethod CustomMachineType + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *CustomMachineType) UnmarshalJSON(data []byte) error { + type NoMethod CustomMachineType + var s1 struct { + MemorySizeGb gensupport.JSONFloat64 `json:"memorySizeGb"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.MemorySizeGb = float64(s1.MemorySizeGb) + return nil +} + +// DualRegional: Area contains dual locations. +type DualRegional struct { + // Name: The location name + // (https://cloud.google.com/storage/docs/locations#available-locations) + // where the data is stored. For example: "asia1" for dual region. + 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 *DualRegional) MarshalJSON() ([]byte, error) { + type NoMethod DualRegional + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EstimateCostScenarioForBillingAccountRequest: Request for +// EstimateCostScenarioForBillingAccount. +type EstimateCostScenarioForBillingAccountRequest struct { + // CostScenario: The scenario to estimate costs for. + CostScenario *CostScenario `json:"costScenario,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CostScenario") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CostScenario") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EstimateCostScenarioForBillingAccountRequest) MarshalJSON() ([]byte, error) { + type NoMethod EstimateCostScenarioForBillingAccountRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EstimateCostScenarioForBillingAccountResponse: Response for +// EstimateCostScenarioForBillingAccount +type EstimateCostScenarioForBillingAccountResponse struct { + // CostEstimationResult: The result of the cost estimation. + CostEstimationResult *CostEstimationResult `json:"costEstimationResult,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "CostEstimationResult") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CostEstimationResult") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EstimateCostScenarioForBillingAccountResponse) MarshalJSON() ([]byte, error) { + type NoMethod EstimateCostScenarioForBillingAccountResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EstimateCostScenarioWithListPriceRequest: Request for +// EstimateCostScenarioWithListPrice. +type EstimateCostScenarioWithListPriceRequest struct { + // CostScenario: The scenario to estimate costs for. + CostScenario *CostScenario `json:"costScenario,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CostScenario") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CostScenario") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EstimateCostScenarioWithListPriceRequest) MarshalJSON() ([]byte, error) { + type NoMethod EstimateCostScenarioWithListPriceRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EstimateCostScenarioWithListPriceResponse: Response for +// EstimateCostScenarioWithListPrice +type EstimateCostScenarioWithListPriceResponse struct { + // CostEstimationResult: The result of the cost estimation. + CostEstimationResult *CostEstimationResult `json:"costEstimationResult,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "CostEstimationResult") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CostEstimationResult") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EstimateCostScenarioWithListPriceResponse) MarshalJSON() ([]byte, error) { + type NoMethod EstimateCostScenarioWithListPriceResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EstimationTimePoint: Represents a point in time. +type EstimationTimePoint struct { + // EstimationTimeFrameOffset: The point in time, relative to the start + // of the time frame covered by the cost estimate. + EstimationTimeFrameOffset string `json:"estimationTimeFrameOffset,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "EstimationTimeFrameOffset") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "EstimationTimeFrameOffset") to include in API requests with the JSON + // null value. By default, fields with empty values are omitted from API + // requests. However, any field with an empty value appearing in + // NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EstimationTimePoint) MarshalJSON() ([]byte, error) { + type NoMethod EstimationTimePoint + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GuestAccelerator: Specification of a set of guest accelerators +// attached to a machine. +type GuestAccelerator struct { + // AcceleratorCount: The number of the guest accelerator cards exposed + // to each instance. + AcceleratorCount int64 `json:"acceleratorCount,omitempty,string"` + + // AcceleratorType: The type of the guest accelerator cards. For + // example: "nvidia-tesla-t4". + AcceleratorType string `json:"acceleratorType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AcceleratorCount") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AcceleratorCount") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GuestAccelerator) MarshalJSON() ([]byte, error) { + type NoMethod GuestAccelerator + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MachineType: Specification of machine series, memory, and number of +// vCPUs. +type MachineType struct { + CustomMachineType *CustomMachineType `json:"customMachineType,omitempty"` + + PredefinedMachineType *PredefinedMachineType `json:"predefinedMachineType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CustomMachineType") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CustomMachineType") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *MachineType) MarshalJSON() ([]byte, error) { + type NoMethod MachineType + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Money: Represents an amount of money with its currency type. +type Money struct { + // CurrencyCode: The three-letter currency code defined in ISO 4217. + CurrencyCode string `json:"currencyCode,omitempty"` + + // Nanos: Number of nano (10^-9) units of the amount. The value must be + // between -999,999,999 and +999,999,999 inclusive. If `units` is + // positive, `nanos` must be positive or zero. If `units` is zero, + // `nanos` can be positive, zero, or negative. If `units` is negative, + // `nanos` must be negative or zero. For example $-1.75 is represented + // as `units`=-1 and `nanos`=-750,000,000. + Nanos int64 `json:"nanos,omitempty"` + + // Units: The whole units of the amount. For example if `currencyCode` + // is "USD", then 1 unit is one US dollar. + Units int64 `json:"units,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "CurrencyCode") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CurrencyCode") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Money) MarshalJSON() ([]byte, error) { + type NoMethod Money + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MultiRegional: Area contains multiple locations. +type MultiRegional struct { + // Name: The location name + // (https://cloud.google.com/storage/docs/locations#available-locations) + // where the data is stored. For example: "us" for multi-region. + 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 *MultiRegional) MarshalJSON() ([]byte, error) { + type NoMethod MultiRegional + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PersistentDisk: Specification of a persistent disk attached to a VM. +type PersistentDisk struct { + // DiskSize: Specifies the size of disk. Must be at least 10 GB. + DiskSize *Usage `json:"diskSize,omitempty"` + + // DiskType: The disk type + // (https://cloud.google.com/compute/docs/disks#disk-types). For + // example: "pd-standard". + DiskType string `json:"diskType,omitempty"` + + // ProvisionedIops: Indicates how many IOPS to provision for the disk + // for extreme persistent disks. This sets the number of I/O operations + // per second that the disk can handle. Values must be between 10,000 + // and 120,000. + ProvisionedIops *Usage `json:"provisionedIops,omitempty"` + + // Scope: The geographic scope of the disk. Defaults to `SCOPE_ZONAL` if + // not specified. + // + // Possible values: + // "SCOPE_UNSPECIFIED" - Unspecified. + // "SCOPE_ZONAL" - The disk exists in a single zone. + // "SCOPE_REGIONAL" - The disk is replicated in a secondary zone + // within the same region. + Scope string `json:"scope,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DiskSize") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DiskSize") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PersistentDisk) MarshalJSON() ([]byte, error) { + type NoMethod PersistentDisk + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PredefinedMachineType: Specification of a predefined machine type. +type PredefinedMachineType struct { + // MachineType: The machine type + // (https://cloud.google.com/compute/docs/machine-types). For example: + // "n1-standard1". + MachineType string `json:"machineType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MachineType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MachineType") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PredefinedMachineType) MarshalJSON() ([]byte, error) { + type NoMethod PredefinedMachineType + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Price: The price of a SKU at a point int time. +type Price struct { + // EffectiveTime: The timestamp within the estimation time frame when + // the price was set. + EffectiveTime *EstimationTimePoint `json:"effectiveTime,omitempty"` + + // PriceType: The type of price. Possible values: "RATE" + PriceType string `json:"priceType,omitempty"` + + // Rate: A set of tiered rates. + Rate *Rate `json:"rate,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EffectiveTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EffectiveTime") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Price) MarshalJSON() ([]byte, error) { + type NoMethod Price + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Rate: A SKU price consisting of tiered rates. +type Rate struct { + // Tiers: The service tiers. + Tiers []*RateTier `json:"tiers,omitempty"` + + // Unit: The SKU's pricing unit. For example, if the tier price is $1 + // per 1000000 Bytes, then this field will show 'By'. The `start_amount` + // field in each tier will be in this unit. + Unit string `json:"unit,omitempty"` + + // UnitCount: The SKU's count for the pricing unit. For example, if the + // tier price is $1 per 1000000 Bytes, then this column will show + // 1000000. + UnitCount float64 `json:"unitCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Tiers") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Tiers") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Rate) MarshalJSON() ([]byte, error) { + type NoMethod Rate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *Rate) UnmarshalJSON(data []byte) error { + type NoMethod Rate + var s1 struct { + UnitCount gensupport.JSONFloat64 `json:"unitCount"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.UnitCount = float64(s1.UnitCount) + return nil +} + +// RateTier: Pricing details for a service tier. +type RateTier struct { + // Price: The price for this tier. + Price *Money `json:"price,omitempty"` + + // StartAmount: The magnitude of usage in which the tier interval + // begins. Example: "From 100 GiBi the price is $1 per byte" implies + // `start_amount` = 100 + StartAmount float64 `json:"startAmount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Price") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Price") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RateTier) MarshalJSON() ([]byte, error) { + type NoMethod RateTier + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *RateTier) UnmarshalJSON(data []byte) error { + type NoMethod RateTier + var s1 struct { + StartAmount gensupport.JSONFloat64 `json:"startAmount"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.StartAmount = float64(s1.StartAmount) + return nil +} + +// Regional: Area contains only one location. +type Regional struct { + // Name: The location name + // (https://cloud.google.com/storage/docs/locations#available-locations). + // For example: "us-central1" for region. + 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 *Regional) MarshalJSON() ([]byte, error) { + type NoMethod Regional + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ScenarioConfig: Configuration for a CostScenario. Specifies how costs +// are calculated. +type ScenarioConfig struct { + // EstimateDuration: Time frame for the estimate. Workloads must specify + // usage for this duration. Duration must be at least 1 hour (3,600 + // seconds) and at most 10 years (315,360,000 seconds). The calculations + // for years and months are based on a 730-hour (2,628,000-second) + // month. + EstimateDuration string `json:"estimateDuration,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EstimateDuration") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EstimateDuration") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ScenarioConfig) MarshalJSON() ([]byte, error) { + type NoMethod ScenarioConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SegmentCostEstimate: Workload cost estimates for a single time +// segment. +type SegmentCostEstimate struct { + // CommitmentCostEstimates: Estimated costs for each commitment. + CommitmentCostEstimates []*CommitmentCostEstimate `json:"commitmentCostEstimates,omitempty"` + + // SegmentStartTime: Timestamp for the start of the segment. + SegmentStartTime *EstimationTimePoint `json:"segmentStartTime,omitempty"` + + // SegmentTotalCostEstimate: Total estimated costs for the time segment. + SegmentTotalCostEstimate *CostEstimate `json:"segmentTotalCostEstimate,omitempty"` + + // WorkloadCostEstimates: Estimated costs for each workload. + WorkloadCostEstimates []*WorkloadCostEstimate `json:"workloadCostEstimates,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CommitmentCostEstimates") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommitmentCostEstimates") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SegmentCostEstimate) MarshalJSON() ([]byte, error) { + type NoMethod SegmentCostEstimate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Sku: Information about SKUs appearing in the cost estimate. +type Sku struct { + // DisplayName: The display name for the SKU. Example: A2 Instance Core + // running in Americas + DisplayName string `json:"displayName,omitempty"` + + // Prices: A timeline of prices for a SKU in chronological order. Note: + // The API currently only supports using a constant price for the entire + // estimation time frame so this list will contain a single value. + Prices []*Price `json:"prices,omitempty"` + + // Sku: The resource name for the SKU. Example: + // "services/DA34-426B-A397/skus/AA95-CD31-42FE" + Sku string `json:"sku,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Sku) MarshalJSON() ([]byte, error) { + type NoMethod Sku + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SkuCostEstimate: Estimated cost for usage on a SKU. +type SkuCostEstimate struct { + // CostEstimate: The estimated cost for the usage on this SKU. + CostEstimate *CostEstimate `json:"costEstimate,omitempty"` + + // Sku: The resource name for the SKU. Example: + // "services/DA34-426B-A397/skus/AA95-CD31-42FE" More information about + // the SKU can be found in the `skus` field of the + // `CostEstimationResult`. + Sku string `json:"sku,omitempty"` + + // UsageAmount: The amount of usage on this SKU. + UsageAmount float64 `json:"usageAmount,omitempty"` + + // UsageUnit: The unit for the usage on this SKU. + UsageUnit string `json:"usageUnit,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CostEstimate") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CostEstimate") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SkuCostEstimate) MarshalJSON() ([]byte, error) { + type NoMethod SkuCostEstimate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *SkuCostEstimate) UnmarshalJSON(data []byte) error { + type NoMethod SkuCostEstimate + var s1 struct { + UsageAmount gensupport.JSONFloat64 `json:"usageAmount"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.UsageAmount = float64(s1.UsageAmount) + return nil +} + +// Usage: An amount of usage over a time frame. +type Usage struct { + // UsageRateTimeline: A timeline of usage rates over the estimate + // interval. + UsageRateTimeline *UsageRateTimeline `json:"usageRateTimeline,omitempty"` + + // ForceSendFields is a list of field names (e.g. "UsageRateTimeline") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "UsageRateTimeline") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *Usage) MarshalJSON() ([]byte, error) { + type NoMethod Usage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// UsageRateTimeline: A timeline of usage rates. Consists of a series of +// entries, each of which specifies a constant rate of usage during a +// time interval. Each entry contains an effective time. The usage rate +// is in effect from that time until the effective time of the +// subsequent entry, or, for the last entry, for the remaining portion +// of estimation time frame. Effective times are specified as an offset +// into the estimation time frame. Usage is considered to be zero until +// the `effective_time` of the first entry. All subsequent entries must +// have an effective time greater than the previous entry and less than +// the estimate time frame. The effective time on all entries must be an +// integer number of hours. +type UsageRateTimeline struct { + // Unit: The unit for the usage rate in each timeline entry. The + // supported units are a subset of The Unified Code for Units of Measure + // (https://ucum.org/ucum.html) standard: * **Time units (TIME-UNIT)** * + // `s` second * `min` minute * `h` hour * `d` day * `wk` week * `mo` + // month * `yr` year * `ms` millisecond * `us` microsecond * `ns` + // nanosecond * **Basic storage units (BASIC-STORAGE-UNIT)** * `bit` bit + // * `By` byte * **Count units (COUNT-UNIT)** * `count` count * + // **Prefixes (PREFIX)** * `k` kilo (10^3) * `M` mega (10^6) * `G` giga + // (10^9) * `T` tera (10^12) * `P` peta (10^15) * `Ki` kibi (2^10) * + // `Mi` mebi (2^20) * `Gi` gibi (2^30) * `Ti` tebi (2^40) * `Pi` pebi + // (2^50) **Grammar** The grammar also includes these connectors: * `/` + // division or ratio (as an infix operator). For example: `kBy/{email}` + // or `MiBy/10ms`. * `.` multiplication or composition (as an infix + // operator). For example: `GBy.d` or `k{watt}.h`. The grammar for a + // unit is as follows: ``` Expression = Component { "." Component } { + // "/" Component } ; Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation + // ] | Annotation | "1" ; UNIT = TIME-UNIT | STORAGE-UNIT | DATA-UNIT | + // COUNT-UNIT Annotation = "{" NAME "}" ; ``` Examples: * Request per + // second: `1/s` or `{requests}/s` * GibiBytes: `GiBy` * GibiBytes * + // seconds: `GiBy.s` + Unit string `json:"unit,omitempty"` + + // UsageRateTimelineEntries: The timeline entries. Each entry has a + // start time and usage rate. The start time specifies the effective + // time of the usage rate. The entries must be sorted by start time in + // an increasing order. + UsageRateTimelineEntries []*UsageRateTimelineEntry `json:"usageRateTimelineEntries,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Unit") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Unit") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *UsageRateTimeline) MarshalJSON() ([]byte, error) { + type NoMethod UsageRateTimeline + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// UsageRateTimelineEntry: A usage rate timeline entry. Each entry +// specifies a constant usage rate during a time interval. +type UsageRateTimelineEntry struct { + // EffectiveTime: The effective time for this entry. The usage rate is + // in effect starting at this time until the effective time of the + // subsequent entry in the timeline. The last entry defines the usage + // rate until the end of the `Usage` time frame. Must correspond to an + // integer number of hours. + EffectiveTime *EstimationTimePoint `json:"effectiveTime,omitempty"` + + // UsageRate: The usage rate. + UsageRate float64 `json:"usageRate,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EffectiveTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EffectiveTime") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *UsageRateTimelineEntry) MarshalJSON() ([]byte, error) { + type NoMethod UsageRateTimelineEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *UsageRateTimelineEntry) UnmarshalJSON(data []byte) error { + type NoMethod UsageRateTimelineEntry + var s1 struct { + UsageRate gensupport.JSONFloat64 `json:"usageRate"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.UsageRate = float64(s1.UsageRate) + return nil +} + +// VmResourceBasedCud: Specifies a resource-based committed use discount +// (CUD). +type VmResourceBasedCud struct { + // GuestAccelerator: Guest accelerator, known as GPU. + GuestAccelerator *GuestAccelerator `json:"guestAccelerator,omitempty"` + + // MachineSeries: The machine series for CUD. For example: "n1" for + // general purpose N1 machine type commitments. "n2" for general purpose + // N2 machine type commitments. "e2" for general purpose E2 machine type + // commitments. "n2d" for general purpose N2D machine type commitments. + // "t2d" for general purpose T2D machine type commitments. "c2"/"c2d" + // for compute-optimized commitments. "m1"/"m2" for the memory-optimized + // commitments. "a2' for the accelerator-optimized commitments. + MachineSeries string `json:"machineSeries,omitempty"` + + // MemorySizeGb: Memory size of the VM in GB (2^30 bytes). Must be an + // increment of 0.25 (256 MB). + MemorySizeGb float64 `json:"memorySizeGb,omitempty"` + + // Plan: Commitment usage plan. + // + // Possible values: + // "COMMITMENT_PLAN_UNSPECIFIED" - Not specified commitment plan. + // "TWELVE_MONTH" - 1 year commitment. + // "THIRTY_SIX_MONTH" - 3 years commitment. + Plan string `json:"plan,omitempty"` + + // Region: The region where the VM runs. For example: "us-central1" + Region string `json:"region,omitempty"` + + // VirtualCpuCount: The number of vCPUs. The number of vCPUs must be an + // integer of 0 or more and can be even or odd. + VirtualCpuCount int64 `json:"virtualCpuCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "GuestAccelerator") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GuestAccelerator") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *VmResourceBasedCud) MarshalJSON() ([]byte, error) { + type NoMethod VmResourceBasedCud + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *VmResourceBasedCud) UnmarshalJSON(data []byte) error { + type NoMethod VmResourceBasedCud + var s1 struct { + MemorySizeGb gensupport.JSONFloat64 `json:"memorySizeGb"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.MemorySizeGb = float64(s1.MemorySizeGb) + return nil +} + +// Workload: Specifies usage on a single Google Cloud product over a +// time frame. Each Google Cloud product has its own message, containing +// specific product configuration parameters of the product usage +// amounts along each dimension in which the product is billed. +type Workload struct { + // CloudStorageWorkload: Usage on Google Cloud Storage. + CloudStorageWorkload *CloudStorageWorkload `json:"cloudStorageWorkload,omitempty"` + + // ComputeVmWorkload: Usage of a Google Compute Engine Virtual Machine. + ComputeVmWorkload *ComputeVmWorkload `json:"computeVmWorkload,omitempty"` + + // Name: Required. A name for this workload. All workloads in a + // `CostScenario` must have a unique `name`. Each `name` must be a + // maximum of 32 characters. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CloudStorageWorkload") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CloudStorageWorkload") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *Workload) MarshalJSON() ([]byte, error) { + type NoMethod Workload + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WorkloadCostEstimate: Estimated cost for a workload. +type WorkloadCostEstimate struct { + // Name: The name of the workload, as specified in the `CostScenario`. + Name string `json:"name,omitempty"` + + // SkuCostEstimates: Estimated costs for each SKU in the workload. + SkuCostEstimates []*SkuCostEstimate `json:"skuCostEstimates,omitempty"` + + // WorkloadTotalCostEstimate: Total estimated costs for the workload. + WorkloadTotalCostEstimate *CostEstimate `json:"workloadTotalCostEstimate,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 *WorkloadCostEstimate) MarshalJSON() ([]byte, error) { + type NoMethod WorkloadCostEstimate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "cloudbilling.billingAccounts.estimateCostScenario": + +type BillingAccountsEstimateCostScenarioCall struct { + s *Service + billingAccount string + estimatecostscenarioforbillingaccountrequest *EstimateCostScenarioForBillingAccountRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// EstimateCostScenario: Use custom pricing in the estimate, using a +// `CostScenario` with a defined `billingAccount`. +// +// - billingAccount: Resource name of the billing account for the cost +// estimate. The resource name has the form +// `billingAccounts/{billing_acount_id}`. For example, +// `billingAccounts/012345-567890-ABCDEF` is the resource name for +// billing account `012345-567890-ABCDEF`. Must be specified. +func (r *BillingAccountsService) EstimateCostScenario(billingAccount string, estimatecostscenarioforbillingaccountrequest *EstimateCostScenarioForBillingAccountRequest) *BillingAccountsEstimateCostScenarioCall { + c := &BillingAccountsEstimateCostScenarioCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.billingAccount = billingAccount + c.estimatecostscenarioforbillingaccountrequest = estimatecostscenarioforbillingaccountrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *BillingAccountsEstimateCostScenarioCall) Fields(s ...googleapi.Field) *BillingAccountsEstimateCostScenarioCall { + 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 *BillingAccountsEstimateCostScenarioCall) Context(ctx context.Context) *BillingAccountsEstimateCostScenarioCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *BillingAccountsEstimateCostScenarioCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *BillingAccountsEstimateCostScenarioCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-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.estimatecostscenarioforbillingaccountrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+billingAccount}:estimateCostScenario") + 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{ + "billingAccount": c.billingAccount, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "cloudbilling.billingAccounts.estimateCostScenario" call. +// Exactly one of *EstimateCostScenarioForBillingAccountResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *EstimateCostScenarioForBillingAccountResponse.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *BillingAccountsEstimateCostScenarioCall) Do(opts ...googleapi.CallOption) (*EstimateCostScenarioForBillingAccountResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &EstimateCostScenarioForBillingAccountResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Use custom pricing in the estimate, using a `CostScenario` with a defined `billingAccount`.", + // "flatPath": "v1beta/billingAccounts/{billingAccountsId}:estimateCostScenario", + // "httpMethod": "POST", + // "id": "cloudbilling.billingAccounts.estimateCostScenario", + // "parameterOrder": [ + // "billingAccount" + // ], + // "parameters": { + // "billingAccount": { + // "description": "Resource name of the billing account for the cost estimate. The resource name has the form `billingAccounts/{billing_acount_id}`. For example, `billingAccounts/012345-567890-ABCDEF` is the resource name for billing account `012345-567890-ABCDEF`. Must be specified.", + // "location": "path", + // "pattern": "^billingAccounts/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+billingAccount}:estimateCostScenario", + // "request": { + // "$ref": "EstimateCostScenarioForBillingAccountRequest" + // }, + // "response": { + // "$ref": "EstimateCostScenarioForBillingAccountResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-billing", + // "https://www.googleapis.com/auth/cloud-billing.readonly", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "cloudbilling.estimateCostScenario": + +type V1betaEstimateCostScenarioCall struct { + s *Service + estimatecostscenariowithlistpricerequest *EstimateCostScenarioWithListPriceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// EstimateCostScenario: Estimate list prices using a `CostScenario` +// without a defined `billingAccount`. +func (r *V1betaService) EstimateCostScenario(estimatecostscenariowithlistpricerequest *EstimateCostScenarioWithListPriceRequest) *V1betaEstimateCostScenarioCall { + c := &V1betaEstimateCostScenarioCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.estimatecostscenariowithlistpricerequest = estimatecostscenariowithlistpricerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *V1betaEstimateCostScenarioCall) Fields(s ...googleapi.Field) *V1betaEstimateCostScenarioCall { + 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 *V1betaEstimateCostScenarioCall) Context(ctx context.Context) *V1betaEstimateCostScenarioCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *V1betaEstimateCostScenarioCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *V1betaEstimateCostScenarioCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-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.estimatecostscenariowithlistpricerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta:estimateCostScenario") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "cloudbilling.estimateCostScenario" call. +// Exactly one of *EstimateCostScenarioWithListPriceResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *EstimateCostScenarioWithListPriceResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *V1betaEstimateCostScenarioCall) Do(opts ...googleapi.CallOption) (*EstimateCostScenarioWithListPriceResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &EstimateCostScenarioWithListPriceResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Estimate list prices using a `CostScenario` without a defined `billingAccount`.", + // "flatPath": "v1beta:estimateCostScenario", + // "httpMethod": "POST", + // "id": "cloudbilling.estimateCostScenario", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1beta:estimateCostScenario", + // "request": { + // "$ref": "EstimateCostScenarioWithListPriceRequest" + // }, + // "response": { + // "$ref": "EstimateCostScenarioWithListPriceResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-billing", + // "https://www.googleapis.com/auth/cloud-billing.readonly", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} diff --git a/container/v1/container-api.json b/container/v1/container-api.json index 7517b9f3d71..5d56de6dae0 100644 --- a/container/v1/container-api.json +++ b/container/v1/container-api.json @@ -2487,7 +2487,7 @@ } } }, - "revision": "20220811", + "revision": "20220826", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2636,7 +2636,7 @@ "description": "Specifies the node management options for NAP created node-pools." }, "minCpuPlatform": { - "description": "Deprecated. Minimum CPU platform to be used for NAP created node pools. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: Intel Haswell or minCpuPlatform: Intel Sandy Bridge. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) This field is deprecated, min_cpu_platform should be specified using https://cloud.google.com/requested-min-cpu-platform label selector on the pod. To unset the min cpu platform field pass \"automatic\" as field value.", + "description": "Deprecated. Minimum CPU platform to be used for NAP created node pools. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: Intel Haswell or minCpuPlatform: Intel Sandy Bridge. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). This field is deprecated, min_cpu_platform should be specified using https://cloud.google.com/requested-min-cpu-platform label selector on the pod. To unset the min cpu platform field pass \"automatic\" as field value.", "type": "string" }, "oauthScopes": { @@ -5204,7 +5204,7 @@ "type": "string" }, "key": { - "description": "Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify \"googleapis.com/reservation-name\" as the key and specify the name of your reservation as its value.", + "description": "Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify \"compute.googleapis.com/reservation-name\" as the key and specify the name of your reservation as its value.", "type": "string" }, "values": { diff --git a/container/v1/container-gen.go b/container/v1/container-gen.go index 5aa51fbd303..62a52528d0e 100644 --- a/container/v1/container-gen.go +++ b/container/v1/container-gen.go @@ -562,7 +562,7 @@ type AutoprovisioningNodePoolDefaults struct { // platforms, such as minCpuPlatform: Intel Haswell or minCpuPlatform: // Intel Sandy Bridge. For more information, read how to specify min CPU // platform - // (https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + // (https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). // This field is deprecated, min_cpu_platform should be specified using // https://cloud.google.com/requested-min-cpu-platform label selector on // the pod. To unset the min cpu platform field pass "automatic" as @@ -4838,8 +4838,8 @@ type ReservationAffinity struct { // Key: Corresponds to the label key of a reservation resource. To // target a SPECIFIC_RESERVATION by name, specify - // "googleapis.com/reservation-name" as the key and specify the name of - // your reservation as its value. + // "compute.googleapis.com/reservation-name" as the key and specify the + // name of your reservation as its value. Key string `json:"key,omitempty"` // Values: Corresponds to the label value(s) of reservation resource(s). diff --git a/container/v1beta1/container-api.json b/container/v1beta1/container-api.json index 65393fb2920..4f235ae30d1 100644 --- a/container/v1beta1/container-api.json +++ b/container/v1beta1/container-api.json @@ -2512,7 +2512,7 @@ } } }, - "revision": "20220811", + "revision": "20220913", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2678,7 +2678,7 @@ "description": "NodeManagement configuration for this NodePool." }, "minCpuPlatform": { - "description": "Deprecated. Minimum CPU platform to be used for NAP created node pools. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: Intel Haswell or minCpuPlatform: Intel Sandy Bridge. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) This field is deprecated, min_cpu_platform should be specified using https://cloud.google.com/requested-min-cpu-platform label selector on the pod. To unset the min cpu platform field pass \"automatic\" as field value.", + "description": "Deprecated. Minimum CPU platform to be used for NAP created node pools. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: Intel Haswell or minCpuPlatform: Intel Sandy Bridge. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). This field is deprecated, min_cpu_platform should be specified using https://cloud.google.com/requested-min-cpu-platform label selector on the pod. To unset the min cpu platform field pass \"automatic\" as field value.", "type": "string" }, "oauthScopes": { @@ -4849,7 +4849,7 @@ "type": "object" }, "minCpuPlatform": { - "description": "Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: \"Intel Haswell\"` or `minCpuPlatform: \"Intel Sandy Bridge\"`. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)", + "description": "Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: \"Intel Haswell\"` or `minCpuPlatform: \"Intel Sandy Bridge\"`. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).", "type": "string" }, "nodeGroup": { @@ -5626,7 +5626,7 @@ "type": "string" }, "key": { - "description": "Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify \"googleapis.com/reservation-name\" as the key and specify the name of your reservation as its value.", + "description": "Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify \"compute.googleapis.com/reservation-name\" as the key and specify the name of your reservation as its value.", "type": "string" }, "values": { diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go index fc73090c4ac..cbbbd668c39 100644 --- a/container/v1beta1/container-gen.go +++ b/container/v1beta1/container-gen.go @@ -578,7 +578,7 @@ type AutoprovisioningNodePoolDefaults struct { // platforms, such as minCpuPlatform: Intel Haswell or minCpuPlatform: // Intel Sandy Bridge. For more information, read how to specify min CPU // platform - // (https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + // (https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). // This field is deprecated, min_cpu_platform should be specified using // https://cloud.google.com/requested-min-cpu-platform label selector on // the pod. To unset the min cpu platform field pass "automatic" as @@ -4227,7 +4227,7 @@ type NodeConfig struct { // Applicable values are the friendly names of CPU platforms, such as // `minCpuPlatform: "Intel Haswell" or `minCpuPlatform: "Intel Sandy // Bridge". For more information, read how to specify min CPU platform - // (https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + // (https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). MinCpuPlatform string `json:"minCpuPlatform,omitempty"` // NodeGroup: Setting this field will assign instances of this pool to @@ -5477,8 +5477,8 @@ type ReservationAffinity struct { // Key: Corresponds to the label key of a reservation resource. To // target a SPECIFIC_RESERVATION by name, specify - // "googleapis.com/reservation-name" as the key and specify the name of - // your reservation as its value. + // "compute.googleapis.com/reservation-name" as the key and specify the + // name of your reservation as its value. Key string `json:"key,omitempty"` // Values: Corresponds to the label value(s) of reservation resource(s). diff --git a/displayvideo/v2/displayvideo-api.json b/displayvideo/v2/displayvideo-api.json new file mode 100644 index 00000000000..6278ef8a31a --- /dev/null +++ b/displayvideo/v2/displayvideo-api.json @@ -0,0 +1,299 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/display-video": { + "description": "Create, see, edit, and permanently delete your Display \u0026 Video 360 entities and reports" + }, + "https://www.googleapis.com/auth/doubleclickbidmanager": { + "description": "View and manage your reports in DoubleClick Bid Manager" + } + } + } + }, + "basePath": "", + "baseUrl": "https://displayvideo.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Display Video", + "description": "Display \u0026 Video 360 API allows users to automate complex Display \u0026 Video 360 workflows, such as creating insertion orders and setting targeting options for individual line items.", + "discoveryVersion": "v1", + "documentationLink": "https://developers.google.com/display-video/", + "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": "displayvideo:v2", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://displayvideo.mtls.googleapis.com/", + "name": "displayvideo", + "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": { + "media": { + "methods": { + "download": { + "description": "Downloads media. Download is supported on the URI `/download/{resource_name=**}?alt=media.` **Note**: Download requests will not be successful without including `alt=media` query string.", + "flatPath": "download/{downloadId}", + "httpMethod": "GET", + "id": "displayvideo.media.download", + "parameterOrder": [ + "resourceName" + ], + "parameters": { + "resourceName": { + "description": "Name of the media that is being downloaded. See ReadRequest.resource_name.", + "location": "path", + "pattern": "^.*$", + "required": true, + "type": "string" + } + }, + "path": "download/{+resourceName}", + "response": { + "$ref": "GoogleBytestreamMedia" + }, + "scopes": [ + "https://www.googleapis.com/auth/display-video", + "https://www.googleapis.com/auth/doubleclickbidmanager" + ], + "supportsMediaDownload": true + }, + "upload": { + "description": "Uploads media. Upload is supported on the URI `/upload/media/{resource_name=**}?upload_type=media.` **Note**: Upload requests will not be successful without including `upload_type=media` query string.", + "flatPath": "media/{mediaId}", + "httpMethod": "POST", + "id": "displayvideo.media.upload", + "mediaUpload": { + "accept": [ + "*/*" + ], + "protocols": { + "simple": { + "multipart": true, + "path": "/upload/media/{+resourceName}" + } + } + }, + "parameterOrder": [ + "resourceName" + ], + "parameters": { + "resourceName": { + "description": "Name of the media that is being downloaded. See ReadRequest.resource_name.", + "location": "path", + "pattern": "^.*$", + "required": true, + "type": "string" + } + }, + "path": "media/{+resourceName}", + "request": { + "$ref": "GoogleBytestreamMedia" + }, + "response": { + "$ref": "GoogleBytestreamMedia" + }, + "scopes": [ + "https://www.googleapis.com/auth/display-video", + "https://www.googleapis.com/auth/doubleclickbidmanager" + ], + "supportsMediaUpload": true + } + } + }, + "sdfdownloadtasks": { + "resources": { + "operations": { + "methods": { + "get": { + "description": "Gets the latest state of an asynchronous SDF download task operation. Clients should poll this method at intervals of 30 seconds.", + "flatPath": "v2/sdfdownloadtasks/operations/{operationsId}", + "httpMethod": "GET", + "id": "displayvideo.sdfdownloadtasks.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^sdfdownloadtasks/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/display-video", + "https://www.googleapis.com/auth/doubleclickbidmanager" + ] + } + } + } + } + } + }, + "revision": "20220915", + "rootUrl": "https://displayvideo.googleapis.com/", + "schemas": { + "GoogleBytestreamMedia": { + "description": "Media resource.", + "id": "GoogleBytestreamMedia", + "properties": { + "resourceName": { + "description": "Name of the media resource.", + "type": "string" + } + }, + "type": "object" + }, + "Operation": { + "description": "This resource represents a long-running operation that is the result of a network API call.", + "id": "Operation", + "properties": { + "done": { + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", + "type": "boolean" + }, + "error": { + "$ref": "Status", + "description": "The error result of the operation in case of failure or cancellation." + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object" + }, + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", + "type": "string" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "type": "object" + } + }, + "type": "object" + }, + "Status": { + "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", + "id": "Status", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "Display \u0026 Video 360 API", + "version": "v2", + "version_module": true +} \ No newline at end of file diff --git a/displayvideo/v2/displayvideo-gen.go b/displayvideo/v2/displayvideo-gen.go new file mode 100644 index 00000000000..c804d4440a0 --- /dev/null +++ b/displayvideo/v2/displayvideo-gen.go @@ -0,0 +1,860 @@ +// 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 displayvideo provides access to the Display & Video 360 API. +// +// For product documentation, see: https://developers.google.com/display-video/ +// +// # Creating a client +// +// Usage example: +// +// import "google.golang.org/api/displayvideo/v2" +// ... +// ctx := context.Background() +// displayvideoService, err := displayvideo.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 +// +// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// +// displayvideoService, err := displayvideo.NewService(ctx, option.WithScopes(displayvideo.DoubleclickbidmanagerScope)) +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// displayvideoService, err := displayvideo.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, ...) +// displayvideoService, err := displayvideo.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package displayvideo // import "google.golang.org/api/displayvideo/v2" + +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 = "displayvideo:v2" +const apiName = "displayvideo" +const apiVersion = "v2" +const basePath = "https://displayvideo.googleapis.com/" +const mtlsBasePath = "https://displayvideo.mtls.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // Create, see, edit, and permanently delete your Display & Video 360 + // entities and reports + DisplayVideoScope = "https://www.googleapis.com/auth/display-video" + + // View and manage your reports in DoubleClick Bid Manager + DoubleclickbidmanagerScope = "https://www.googleapis.com/auth/doubleclickbidmanager" +) + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + scopesOption := internaloption.WithDefaultScopes( + "https://www.googleapis.com/auth/display-video", + "https://www.googleapis.com/auth/doubleclickbidmanager", + ) + // 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.Media = NewMediaService(s) + s.Sdfdownloadtasks = NewSdfdownloadtasksService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Media *MediaService + + Sdfdownloadtasks *SdfdownloadtasksService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewMediaService(s *Service) *MediaService { + rs := &MediaService{s: s} + return rs +} + +type MediaService struct { + s *Service +} + +func NewSdfdownloadtasksService(s *Service) *SdfdownloadtasksService { + rs := &SdfdownloadtasksService{s: s} + rs.Operations = NewSdfdownloadtasksOperationsService(s) + return rs +} + +type SdfdownloadtasksService struct { + s *Service + + Operations *SdfdownloadtasksOperationsService +} + +func NewSdfdownloadtasksOperationsService(s *Service) *SdfdownloadtasksOperationsService { + rs := &SdfdownloadtasksOperationsService{s: s} + return rs +} + +type SdfdownloadtasksOperationsService struct { + s *Service +} + +// GoogleBytestreamMedia: Media resource. +type GoogleBytestreamMedia struct { + // ResourceName: Name of the media resource. + ResourceName string `json:"resourceName,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ResourceName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ResourceName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleBytestreamMedia) MarshalJSON() ([]byte, error) { + type NoMethod GoogleBytestreamMedia + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Operation: This resource represents a long-running operation that is +// the result of a network API call. +type Operation struct { + // Done: If the value is `false`, it means the operation is still in + // progress. If `true`, the operation is completed, and either `error` + // or `response` is available. + Done bool `json:"done,omitempty"` + + // Error: The error result of the operation in case of failure or + // cancellation. + Error *Status `json:"error,omitempty"` + + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as + // create time. Some services might not provide such metadata. Any + // method that returns a long-running operation should document the + // metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: The server-assigned name, which is only unique within the same + // service that originally returns it. If you use the default HTTP + // mapping, the `name` should be a resource name ending with + // `operations/{unique_id}`. + Name string `json:"name,omitempty"` + + // Response: The normal response of the operation in case of success. If + // the original method returns no data on success, such as `Delete`, the + // response is `google.protobuf.Empty`. If the original method is + // standard `Get`/`Create`/`Update`, the response should be the + // resource. For other methods, the response should have the type + // `XxxResponse`, where `Xxx` is the original method name. For example, + // if the original method name is `TakeSnapshot()`, the inferred + // response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Done") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Done") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Operation) MarshalJSON() ([]byte, error) { + type NoMethod Operation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Status: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs +// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each +// `Status` message contains three pieces of data: error code, error +// message, and error details. You can find out more about this error +// model and how to work with it in the API Design Guide +// (https://cloud.google.com/apis/design/errors). +type Status struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "displayvideo.media.download": + +type MediaDownloadCall struct { + s *Service + resourceName string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Download: Downloads media. Download is supported on the URI +// `/download/{resource_name=**}?alt=media.` **Note**: Download requests +// will not be successful without including `alt=media` query string. +// +// - resourceName: Name of the media that is being downloaded. See +// ReadRequest.resource_name. +func (r *MediaService) Download(resourceName string) *MediaDownloadCall { + c := &MediaDownloadCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resourceName = resourceName + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *MediaDownloadCall) Fields(s ...googleapi.Field) *MediaDownloadCall { + 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 *MediaDownloadCall) IfNoneMatch(entityTag string) *MediaDownloadCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do and Download +// methods. Any pending HTTP request will be aborted if the provided +// context is canceled. +func (c *MediaDownloadCall) Context(ctx context.Context) *MediaDownloadCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *MediaDownloadCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-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, "download/{+resourceName}") + 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{ + "resourceName": c.resourceName, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Download fetches the API endpoint's "media" value, instead of the normal +// API response value. If the returned error is nil, the Response is guaranteed to +// have a 2xx status code. Callers must close the Response.Body as usual. +func (c *MediaDownloadCall) Download(opts ...googleapi.CallOption) (*http.Response, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("media") + if err != nil { + return nil, err + } + if err := googleapi.CheckResponse(res); err != nil { + res.Body.Close() + return nil, err + } + return res, nil +} + +// Do executes the "displayvideo.media.download" call. +// Exactly one of *GoogleBytestreamMedia or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleBytestreamMedia.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamMedia, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleBytestreamMedia{ + ServerResponse: googleapi.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 media. Download is supported on the URI `/download/{resource_name=**}?alt=media.` **Note**: Download requests will not be successful without including `alt=media` query string.", + // "flatPath": "download/{downloadId}", + // "httpMethod": "GET", + // "id": "displayvideo.media.download", + // "parameterOrder": [ + // "resourceName" + // ], + // "parameters": { + // "resourceName": { + // "description": "Name of the media that is being downloaded. See ReadRequest.resource_name.", + // "location": "path", + // "pattern": "^.*$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "download/{+resourceName}", + // "response": { + // "$ref": "GoogleBytestreamMedia" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/display-video", + // "https://www.googleapis.com/auth/doubleclickbidmanager" + // ], + // "supportsMediaDownload": true + // } + +} + +// method id "displayvideo.media.upload": + +type MediaUploadCall struct { + s *Service + resourceName string + googlebytestreammedia *GoogleBytestreamMedia + urlParams_ gensupport.URLParams + mediaInfo_ *gensupport.MediaInfo + ctx_ context.Context + header_ http.Header +} + +// Upload: Uploads media. Upload is supported on the URI +// `/upload/media/{resource_name=**}?upload_type=media.` **Note**: +// Upload requests will not be successful without including +// `upload_type=media` query string. +// +// - resourceName: Name of the media that is being downloaded. See +// ReadRequest.resource_name. +func (r *MediaService) Upload(resourceName string, googlebytestreammedia *GoogleBytestreamMedia) *MediaUploadCall { + c := &MediaUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resourceName = resourceName + c.googlebytestreammedia = googlebytestreammedia + return c +} + +// Media specifies the media to upload in one or more chunks. The chunk +// size may be controlled by supplying a MediaOption generated by +// googleapi.ChunkSize. The chunk size defaults to +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the +// upload request will be determined by sniffing the contents of r, +// unless a MediaOption generated by googleapi.ContentType is +// supplied. +// At most one of Media and ResumableMedia may be set. +func (c *MediaUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *MediaUploadCall { + c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) + return c +} + +// ResumableMedia specifies the media to upload in chunks and can be +// canceled with ctx. +// +// Deprecated: use Media instead. +// +// At most one of Media and ResumableMedia may be set. mediaType +// identifies the MIME media type of the upload, such as "image/png". If +// mediaType is "", it will be auto-detected. The provided ctx will +// supersede any context previously provided to the Context method. +func (c *MediaUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *MediaUploadCall { + c.ctx_ = ctx + c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) + return c +} + +// ProgressUpdater provides a callback function that will be called +// after every chunk. It should be a low-latency function in order to +// not slow down the upload operation. This should only be called when +// using ResumableMedia (as opposed to Media). +func (c *MediaUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *MediaUploadCall { + c.mediaInfo_.SetProgressUpdater(pu) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *MediaUploadCall) Fields(s ...googleapi.Field) *MediaUploadCall { + 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. +// This context will supersede any context previously provided to the +// ResumableMedia method. +func (c *MediaUploadCall) Context(ctx context.Context) *MediaUploadCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *MediaUploadCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-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.googlebytestreammedia) + 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, "media/{+resourceName}") + if c.mediaInfo_ != nil { + urls = googleapi.ResolveRelative(c.s.BasePath, "/upload/media/{+resourceName}") + c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType()) + } + if body == nil { + body = new(bytes.Buffer) + reqHeaders.Set("Content-Type", "application/json") + } + body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body) + defer cleanup() + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + req.GetBody = getBody + googleapi.Expand(req.URL, map[string]string{ + "resourceName": c.resourceName, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "displayvideo.media.upload" call. +// Exactly one of *GoogleBytestreamMedia or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleBytestreamMedia.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamMedia, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) + if rx != nil { + rx.Client = c.s.client + rx.UserAgent = c.s.userAgent() + ctx := c.ctx_ + if ctx == nil { + ctx = context.TODO() + } + res, err = rx.Upload(ctx) + if err != nil { + return nil, err + } + defer res.Body.Close() + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + } + ret := &GoogleBytestreamMedia{ + ServerResponse: googleapi.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 media. Upload is supported on the URI `/upload/media/{resource_name=**}?upload_type=media.` **Note**: Upload requests will not be successful without including `upload_type=media` query string.", + // "flatPath": "media/{mediaId}", + // "httpMethod": "POST", + // "id": "displayvideo.media.upload", + // "mediaUpload": { + // "accept": [ + // "*/*" + // ], + // "protocols": { + // "simple": { + // "multipart": true, + // "path": "/upload/media/{+resourceName}" + // } + // } + // }, + // "parameterOrder": [ + // "resourceName" + // ], + // "parameters": { + // "resourceName": { + // "description": "Name of the media that is being downloaded. See ReadRequest.resource_name.", + // "location": "path", + // "pattern": "^.*$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "media/{+resourceName}", + // "request": { + // "$ref": "GoogleBytestreamMedia" + // }, + // "response": { + // "$ref": "GoogleBytestreamMedia" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/display-video", + // "https://www.googleapis.com/auth/doubleclickbidmanager" + // ], + // "supportsMediaUpload": true + // } + +} + +// method id "displayvideo.sdfdownloadtasks.operations.get": + +type SdfdownloadtasksOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of an asynchronous SDF download task +// operation. Clients should poll this method at intervals of 30 +// seconds. +// +// - name: The name of the operation resource. +func (r *SdfdownloadtasksOperationsService) Get(name string) *SdfdownloadtasksOperationsGetCall { + c := &SdfdownloadtasksOperationsGetCall{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 *SdfdownloadtasksOperationsGetCall) Fields(s ...googleapi.Field) *SdfdownloadtasksOperationsGetCall { + 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 *SdfdownloadtasksOperationsGetCall) IfNoneMatch(entityTag string) *SdfdownloadtasksOperationsGetCall { + 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 *SdfdownloadtasksOperationsGetCall) Context(ctx context.Context) *SdfdownloadtasksOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *SdfdownloadtasksOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *SdfdownloadtasksOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "displayvideo.sdfdownloadtasks.operations.get" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *SdfdownloadtasksOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of an asynchronous SDF download task operation. Clients should poll this method at intervals of 30 seconds.", + // "flatPath": "v2/sdfdownloadtasks/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "displayvideo.sdfdownloadtasks.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^sdfdownloadtasks/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/display-video", + // "https://www.googleapis.com/auth/doubleclickbidmanager" + // ] + // } + +} diff --git a/integrations/v1alpha/integrations-api.json b/integrations/v1alpha/integrations-api.json new file mode 100644 index 00000000000..56e8d059ec4 --- /dev/null +++ b/integrations/v1alpha/integrations-api.json @@ -0,0 +1,11238 @@ +{ + "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": "http://www.google.com", + "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:v1alpha", + "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": "v1alpha/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": "v1alpha/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": "v1alpha/connectorPlatformRegions:enumerate", + "httpMethod": "GET", + "id": "integrations.connectorPlatformRegions.enumerate", + "parameterOrder": [], + "parameters": {}, + "path": "v1alpha/connectorPlatformRegions:enumerate", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "projects": { + "resources": { + "locations": { + "methods": { + "listTaskEntities": { + "description": "This is a UI only method and will be moved away. Returns a list of common tasks.", + "flatPath": "v1alpha/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": "v1alpha/{+parent}:listTaskEntities", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "appsScriptProjects": { + "methods": { + "create": { + "description": "Creates an Apps Script project.", + "flatPath": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+parent}/authConfigs", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an auth config.", + "flatPath": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+name}", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "certificates": { + "methods": { + "get": { + "description": "Get a certificates in the specified project.", + "flatPath": "v1alpha/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": "v1alpha/{+name}", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "connections": { + "methods": { + "getConnectionSchemaMetadata": { + "description": "Lists the available entities and actions associated with a Connection.", + "flatPath": "v1alpha/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": "v1alpha/{+name}", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Connections in a given project and location.", + "flatPath": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+parent}/runtimeEntitySchemas", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "integrations": { + "methods": { + "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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+parent}/integrations", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "monitorexecutionstats": { + "description": "Get execution stats", + "flatPath": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+name}:schedule", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "executions": { + "methods": { + "list": { + "description": "Lists the status of the integration executions.", + "flatPath": "v1alpha/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.triggerId": { + "description": "Trigger id.", + "location": "query", + "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": "v1alpha/{+parent}/executions", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListExecutionsResponse" + }, + "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": "v1alpha/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}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+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": "v1alpha/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}/integrations/{integration}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+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": "v1alpha/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}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}:deactivate", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Get a integration in the specified project.", + "flatPath": "v1alpha/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}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+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": "v1alpha/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}/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+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": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:takeoverEditLock", + "httpMethod": "POST", + "id": "integrations.projects.locations.integrations.versions.takeoverEditLock", + "parameterOrder": [ + "integrationVersion" + ], + "parameters": { + "integrationVersion": { + "description": "Required. The version to take over edit lock. Format: projects/{project}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+integrationVersion}:takeoverEditLock", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse" + }, + "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": "v1alpha/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}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+parent}/authConfigs", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an auth config.", + "flatPath": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+parent}/certificates", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Delete a certificate", + "flatPath": "v1alpha/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": "v1alpha/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Get a certificates in the specified project.", + "flatPath": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+name}", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + }, + "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": "v1alpha/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}/integrations/{integration}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+parent}/integrations", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "monitorexecutionstats": { + "description": "Get execution stats", + "flatPath": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+name}:schedule", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "executions": { + "methods": { + "cancel": { + "description": "Cancellation of an execution", + "flatPath": "v1alpha/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": "v1alpha/{+name}:cancel", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaCancelExecutionRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaCancelExecutionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Get an execution in the specified project.", + "flatPath": "v1alpha/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": "v1alpha/{+name}", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaExecution" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists the status of the integration executions.", + "flatPath": "v1alpha/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.triggerId": { + "description": "Trigger id.", + "location": "query", + "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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+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": "v1alpha/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}/integrations/{integration}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+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": "v1alpha/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}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}:deactivate", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse" + }, + "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": "v1alpha/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}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}:download", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Get a integration in the specified project.", + "flatPath": "v1alpha/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}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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}/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+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": "v1alpha/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}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+integrationVersion}:takeoverEditLock", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse" + }, + "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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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}/integrations/{integration}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+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": "v1alpha/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}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}:validate", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "integrationtemplates": { + "resources": { + "versions": { + "methods": { + "create": { + "description": "Creates an IntegrationTemplateVersion.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrationtemplates/{integrationtemplatesId}/versions", + "httpMethod": "POST", + "id": "integrations.projects.locations.products.integrationtemplates.versions.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource where this TemplateVersion will be created. Format: projects/{project}/location/{location}/product/{product}/integrationtemplates/{integrationtemplate}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrationtemplates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/versions", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Returns an IntegrationTemplateVersion in the specified project.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrationtemplates/{integrationtemplatesId}/versions/{versionsId}", + "httpMethod": "GET", + "id": "integrations.projects.locations.products.integrationtemplates.versions.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The TemplateVersion to retrieve. Format: projects/{project}/locations/{location}/products/{product}/integrationtemplates/{integrationtemplate}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrationtemplates/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Returns the list of all IntegrationTemplateVersions in the specified project.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrationtemplates/{integrationtemplatesId}/versions", + "httpMethod": "GET", + "id": "integrations.projects.locations.products.integrationtemplates.versions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Filter syntax: defined in the EBNF grammar.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of IntegrationTemplateVersions 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 `ListIntegrationTemplateVersions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListIntegrationTemplateVersions` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Format: projects/{project}/location/{location}/product/{product}/integrationtemplates/{integrationtemplate}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrationtemplates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/versions", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse" + }, + "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": "v1alpha/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": "v1alpha/{+parent}/sfdcInstances", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an sfdc instance.", + "flatPath": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+parent}/sfdcChannels", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an sfdc channel.", + "flatPath": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+parent}/sfdcInstances", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an sfdc instance.", + "flatPath": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+parent}/sfdcChannels", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an sfdc channel.", + "flatPath": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+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": "v1alpha/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": "v1alpha/{+name}", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + } + } + } + }, + "revision": "20220913", + "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" + }, + "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: 16", + "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" + }, + "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" + ], + "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" + }, + "password": { + "$ref": "GoogleCloudConnectorsV1Secret", + "description": "This is an optional field used in case client has enabled multi-factor authentication" + }, + "sshClientCert": { + "$ref": "GoogleCloudConnectorsV1Secret", + "description": "SSH Client Cert. It should contain both public and private key." + }, + "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" + }, + "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" + }, + "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" + }, + "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" + }, + "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": "Optional. Matched against all {@link TriggerConfig}s across all integrations. i.e. TriggerConfig.trigger_id.equals(trigger_id)", + "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" + }, + "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" + }, + "GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion": { + "description": "IntegrationTemplateVersion definition. An IntegrationTemplateVersion provides configurations required to construct an IntegrationVersion. It cannot be executed directly like an Integration. Users can create IntegrationTemplateVersions using Integrations. These Templates can be shared by users across GCP projects.", + "id": "GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion", + "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 templateversion description. Permitted format is alphanumeric with underscores and no spaces.", + "type": "string" + }, + "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" + }, + "name": { + "description": "Output only. Auto-generated primary key. Format: projects/{project}/locations/{location}/products/{product}/integrationtemplates/{integrationtemplate}/versions/{version}", + "readOnly": true, + "type": "string" + }, + "parentIntegrationVersionId": { + "description": "Optional. ID of the IntegrationVersion that was used to create this IntegrationTemplateVersion", + "type": "string" + }, + "snapshotNumber": { + "description": "Output only. An increasing sequence that is set when a new snapshot is created.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "status": { + "description": "Optional. Generated by eventbus. User should not set it as an input.", + "enum": [ + "UNKNOWN", + "DRAFT", + "ACTIVE", + "ARCHIVED", + "SNAPSHOT" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "taskConfigs": { + "description": "Optional. Task configuration for the IntegrationTemplateVersion. It's optional, but the IntegrationTemplateVersion 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." + }, + "templateParameters": { + "$ref": "EnterpriseCrmFrontendsEventbusProtoWorkflowParameters", + "description": "Optional. Parameters that are expected to be passed to the IntegrationTemplateVersion when an event is triggered. This consists of all the parameters that are expected in the IntegrationTemplateVersion execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter." + }, + "triggerConfigs": { + "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" + }, + "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" + }, + "GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse": { + "description": "Response for IntegrationTemplateVersions.ListIntegrationTemplateVersions.", + "id": "GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse", + "properties": { + "integrationTemplateVersions": { + "description": "The IntegrationTemplateVersions which match the request.", + "items": { + "$ref": "GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, + "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" + }, + "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" + }, + "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" + }, + "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" + ], + "enumDescriptions": [ + "Unknown.", + "Trigger by scheduled time.", + "Trigger by API call.", + "Trigger by Salesforce Channel.", + "Trigger by Pub/Sub external.", + "SFDC Channel Trigger for CDC." + ], + "type": "string" + } + }, + "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": "v1alpha", + "version_module": true +} \ No newline at end of file diff --git a/integrations/v1alpha/integrations-gen.go b/integrations/v1alpha/integrations-gen.go new file mode 100644 index 00000000000..fe07382984e --- /dev/null +++ b/integrations/v1alpha/integrations-gen.go @@ -0,0 +1,27018 @@ +// 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: http://www.google.com +// +// # Creating a client +// +// Usage example: +// +// import "google.golang.org/api/integrations/v1alpha" +// ... +// 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/v1alpha" + +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:v1alpha" +const apiName = "integrations" +const apiVersion = "v1alpha" +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.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 + + 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 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.Versions = NewProjectsLocationsIntegrationsVersionsService(s) + return rs +} + +type ProjectsLocationsIntegrationsService struct { + s *Service + + Executions *ProjectsLocationsIntegrationsExecutionsService + + Versions *ProjectsLocationsIntegrationsVersionsService +} + +func NewProjectsLocationsIntegrationsExecutionsService(s *Service) *ProjectsLocationsIntegrationsExecutionsService { + rs := &ProjectsLocationsIntegrationsExecutionsService{s: s} + return rs +} + +type ProjectsLocationsIntegrationsExecutionsService 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.Integrations = NewProjectsLocationsProductsIntegrationsService(s) + rs.Integrationtemplates = NewProjectsLocationsProductsIntegrationtemplatesService(s) + rs.SfdcInstances = NewProjectsLocationsProductsSfdcInstancesService(s) + return rs +} + +type ProjectsLocationsProductsService struct { + s *Service + + AuthConfigs *ProjectsLocationsProductsAuthConfigsService + + Certificates *ProjectsLocationsProductsCertificatesService + + Integrations *ProjectsLocationsProductsIntegrationsService + + Integrationtemplates *ProjectsLocationsProductsIntegrationtemplatesService + + 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 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 NewProjectsLocationsProductsIntegrationtemplatesService(s *Service) *ProjectsLocationsProductsIntegrationtemplatesService { + rs := &ProjectsLocationsProductsIntegrationtemplatesService{s: s} + rs.Versions = NewProjectsLocationsProductsIntegrationtemplatesVersionsService(s) + return rs +} + +type ProjectsLocationsProductsIntegrationtemplatesService struct { + s *Service + + Versions *ProjectsLocationsProductsIntegrationtemplatesVersionsService +} + +func NewProjectsLocationsProductsIntegrationtemplatesVersionsService(s *Service) *ProjectsLocationsProductsIntegrationtemplatesVersionsService { + rs := &ProjectsLocationsProductsIntegrationtemplatesVersionsService{s: s} + return rs +} + +type ProjectsLocationsProductsIntegrationtemplatesVersionsService 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) +} + +// 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: 16 +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"` + + // 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" + 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"` + + // Password: This is an optional field used in case client has enabled + // multi-factor authentication + Password *GoogleCloudConnectorsV1Secret `json:"password,omitempty"` + + // SshClientCert: SSH Client Cert. It should contain both public and + // private key. + SshClientCert *GoogleCloudConnectorsV1Secret `json:"sshClientCert,omitempty"` + + // 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) +} + +// 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) +} + +// 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:"-"` +} + +// 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) +} + +// 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: Optional. 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. "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) +} + +// 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) +} + +// GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion: +// IntegrationTemplateVersion definition. An IntegrationTemplateVersion +// provides configurations required to construct an IntegrationVersion. +// It cannot be executed directly like an Integration. Users can create +// IntegrationTemplateVersions using Integrations. These Templates can +// be shared by users across GCP projects. +type GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion 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 templateversion description. Permitted + // format is alphanumeric with underscores and no spaces. + Description string `json:"description,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"` + + // Name: Output only. Auto-generated primary key. Format: + // projects/{project}/locations/{location}/products/{product}/integration + // templates/{integrationtemplate}/versions/{version} + Name string `json:"name,omitempty"` + + // ParentIntegrationVersionId: Optional. ID of the IntegrationVersion + // that was used to create this IntegrationTemplateVersion + ParentIntegrationVersionId string `json:"parentIntegrationVersionId,omitempty"` + + // SnapshotNumber: Output only. An increasing sequence that is set when + // a new snapshot is created. + SnapshotNumber int64 `json:"snapshotNumber,omitempty,string"` + + // Status: Optional. 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 + // IntegrationTemplateVersion. It's optional, but the + // IntegrationTemplateVersion doesn't do anything without task_configs. + TaskConfigs []*EnterpriseCrmFrontendsEventbusProtoTaskConfig `json:"taskConfigs,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"` + + // TemplateParameters: Optional. Parameters that are expected to be + // passed to the IntegrationTemplateVersion when an event is triggered. + // This consists of all the parameters that are expected in the + // IntegrationTemplateVersion execution. This gives the user the ability + // to provide default values, add information like PII and also provide + // data types of each parameter. + TemplateParameters *EnterpriseCrmFrontendsEventbusProtoWorkflowParameters `json:"templateParameters,omitempty"` + + // TriggerConfigs: Optional. Trigger configurations. + TriggerConfigs []*EnterpriseCrmFrontendsEventbusProtoTriggerConfig `json:"triggerConfigs,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 *GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion + 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) +} + +// GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse: +// +// Response for +// +// IntegrationTemplateVersions.ListIntegrationTemplateVersions. +type GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse struct { + // IntegrationTemplateVersions: The IntegrationTemplateVersions which + // match the request. + IntegrationTemplateVersions []*GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion `json:"integrationTemplateVersions,omitempty"` + + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "IntegrationTemplateVersions") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "IntegrationTemplateVersions") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse + 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) +} + +// 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) +} + +// 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"` + + // 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. + 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) +} + +// 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, "v1alpha/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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/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, "v1alpha/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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/connectorPlatformRegions:enumerate", + // "httpMethod": "GET", + // "id": "integrations.connectorPlatformRegions.enumerate", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1alpha/connectorPlatformRegions:enumerate", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse" + // }, + // "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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+name}", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + // }, + // "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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + // }, + // "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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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.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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+name}:schedule", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse" + // }, + // "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 status of the integration executions. +// +// - 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 +} + +// FilterParamsTriggerId sets the optional parameter +// "filterParams.triggerId": Trigger id. +func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsTriggerId(filterParamsTriggerId string) *ProjectsLocationsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.triggerId", filterParamsTriggerId) + return c +} + +// FilterParamsWorkflowName sets the optional parameter +// "filterParams.workflowName": Workflow name. +func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsWorkflowName(filterParamsWorkflowName string) *ProjectsLocationsIntegrationsExecutionsListCall { + 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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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 status of the integration executions.", + // "flatPath": "v1alpha/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.triggerId": { + // "description": "Trigger id.", + // "location": "query", + // "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": "v1alpha/{+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.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}/integrations/{integration}/versions/{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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+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}/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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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}/integrations/{integration}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+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}/integrations/{integration}/versions/{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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}:deactivate", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse" + // }, + // "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}/integrations/{integration}/versions/{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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+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}/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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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}/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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}/integrations/{integration}/versions/{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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}:publish", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.integrations.versions.takeoverEditLock": + +type ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall 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}/integrations/{integration}/versions/{version}. +func (r *ProjectsLocationsIntegrationsVersionsService) TakeoverEditLock(integrationVersion string, googlecloudintegrationsv1alphatakeovereditlockrequest *GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest) *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall { + c := &ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall{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 *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall { + 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 *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-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, "v1alpha/{+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.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 *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) 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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:takeoverEditLock", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.integrations.versions.takeoverEditLock", + // "parameterOrder": [ + // "integrationVersion" + // ], + // "parameters": { + // "integrationVersion": { + // "description": "Required. The version to take over edit lock. Format: projects/{project}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+integrationVersion}:takeoverEditLock", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse" + // }, + // "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}/integrations/{integration}/versions/{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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+name}", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + // }, + // "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}/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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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}/integrations/{integration}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+name}:schedule", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse" + // }, + // "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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+name}:cancel", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaCancelExecutionRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaCancelExecutionResponse" + // }, + // "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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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 status of the integration executions. +// +// - 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 +} + +// FilterParamsTriggerId sets the optional parameter +// "filterParams.triggerId": Trigger id. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsTriggerId(filterParamsTriggerId string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.triggerId", filterParamsTriggerId) + return c +} + +// FilterParamsWorkflowName sets the optional parameter +// "filterParams.workflowName": Workflow name. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsWorkflowName(filterParamsWorkflowName string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + 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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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 status of the integration executions.", + // "flatPath": "v1alpha/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.triggerId": { + // "description": "Trigger id.", + // "location": "query", + // "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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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}/integrations/{integration}/versions/{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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+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}/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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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}/integrations/{integration}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+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}/integrations/{integration}/versions/{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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}:deactivate", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse" + // }, + // "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}/integrations/{integration}/versions/{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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+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}/integrations/{integration}/versions/{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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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}/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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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}/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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}/integrations/{integration}/versions/{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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+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}/integrations/{integration}/versions/{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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+integrationVersion}:takeoverEditLock", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse" + // }, + // "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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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}/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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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}/integrations/{integration}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+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}/integrations/{integration}/versions/{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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}:validate", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrationtemplates.versions.create": + +type ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall struct { + s *Service + parent string + googlecloudintegrationsv1alphaintegrationtemplateversion *GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates an IntegrationTemplateVersion. +// +// - parent: The parent resource where this TemplateVersion will be +// created. Format: +// projects/{project}/location/{location}/product/{product}/integration +// templates/{integrationtemplate}. +func (r *ProjectsLocationsProductsIntegrationtemplatesVersionsService) Create(parent string, googlecloudintegrationsv1alphaintegrationtemplateversion *GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion) *ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall { + c := &ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphaintegrationtemplateversion = googlecloudintegrationsv1alphaintegrationtemplateversion + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall { + 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 *ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-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.googlecloudintegrationsv1alphaintegrationtemplateversion) + 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, "v1alpha/{+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.integrationtemplates.versions.create" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion.ServerRespon +// se.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion{ + ServerResponse: googleapi.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 IntegrationTemplateVersion.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrationtemplates/{integrationtemplatesId}/versions", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.integrationtemplates.versions.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent resource where this TemplateVersion will be created. Format: projects/{project}/location/{location}/product/{product}/integrationtemplates/{integrationtemplate}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrationtemplates/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/versions", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrationtemplates.versions.get": + +type ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns an IntegrationTemplateVersion in the specified project. +// +// - name: The TemplateVersion to retrieve. Format: +// projects/{project}/locations/{location}/products/{product}/integrati +// ontemplates/{integrationtemplate}/versions/{version}. +func (r *ProjectsLocationsProductsIntegrationtemplatesVersionsService) Get(name string) *ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall { + c := &ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall{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 *ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall { + 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 *ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall { + 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 *ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-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, "v1alpha/{+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.integrationtemplates.versions.get" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion.ServerRespon +// se.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion{ + ServerResponse: googleapi.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 an IntegrationTemplateVersion in the specified project.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrationtemplates/{integrationtemplatesId}/versions/{versionsId}", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.products.integrationtemplates.versions.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The TemplateVersion to retrieve. Format: projects/{project}/locations/{location}/products/{product}/integrationtemplates/{integrationtemplate}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrationtemplates/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.integrationtemplates.versions.list": + +type ProjectsLocationsProductsIntegrationtemplatesVersionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Returns the list of all IntegrationTemplateVersions in the +// specified project. +// +// - parent: Format: +// projects/{project}/location/{location}/product/{product}/integration +// templates/{integrationtemplate}. +func (r *ProjectsLocationsProductsIntegrationtemplatesVersionsService) List(parent string) *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall { + c := &ProjectsLocationsProductsIntegrationtemplatesVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter syntax: defined +// in the EBNF grammar. +func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) Filter(filter string) *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of IntegrationTemplateVersions 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 *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListIntegrationTemplateVersions` call. +// Provide this to retrieve the subsequent page. When paginating, all +// other parameters provided to `ListIntegrationTemplateVersions` must +// match the call that provided the page token. +func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) PageToken(pageToken string) *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall { + 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 *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall { + 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 *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall { + 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 *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-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, "v1alpha/{+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.integrationtemplates.versions.list" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse +// +// or error will be non-nil. Any non-2xx status code is an error. +// +// Response headers are in either +// *GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse +// .ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse{ + ServerResponse: googleapi.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 IntegrationTemplateVersions in the specified project.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrationtemplates/{integrationtemplatesId}/versions", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.products.integrationtemplates.versions.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Filter syntax: defined in the EBNF grammar.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of IntegrationTemplateVersions 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 `ListIntegrationTemplateVersions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListIntegrationTemplateVersions` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Format: projects/{project}/location/{location}/product/{product}/integrationtemplates/{integrationtemplate}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrationtemplates/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/versions", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse" + // }, + // "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 *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse) 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.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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+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, "v1alpha/{+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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &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": "v1alpha/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": "v1alpha/{+name}", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} diff --git a/mybusinesslodging/v1/mybusinesslodging-api.json b/mybusinesslodging/v1/mybusinesslodging-api.json index 5d1dbfe786a..db76dfe40eb 100644 --- a/mybusinesslodging/v1/mybusinesslodging-api.json +++ b/mybusinesslodging/v1/mybusinesslodging-api.json @@ -194,7 +194,7 @@ } } }, - "revision": "20220127", + "revision": "20220914", "rootUrl": "https://mybusinesslodging.googleapis.com/", "schemas": { "Accessibility": { @@ -4982,7 +4982,7 @@ "type": "array" }, "leedCertification": { - "description": "LEED certification.", + "description": "LEED certification. Deprecated: this field is no longer populated. LEED certification status is now provided directly by USGBC.", "enum": [ "LEED_CERTIFICATION_UNSPECIFIED", "NO_LEED_CERTIFICATION", @@ -5002,7 +5002,7 @@ "type": "string" }, "leedCertificationException": { - "description": "LEED certification exception.", + "description": "LEED certification exception. Deprecated: this field is no longer populated. LEED certification status is now provided directly by USGBC.", "enum": [ "EXCEPTION_UNSPECIFIED", "UNDER_CONSTRUCTION", diff --git a/mybusinesslodging/v1/mybusinesslodging-gen.go b/mybusinesslodging/v1/mybusinesslodging-gen.go index aec01cb5fce..e83dea49e54 100644 --- a/mybusinesslodging/v1/mybusinesslodging-gen.go +++ b/mybusinesslodging/v1/mybusinesslodging-gen.go @@ -5195,7 +5195,9 @@ type SustainabilityCertifications struct { // EcoCertifications: The eco certificates awarded to the hotel. EcoCertifications []*EcoCertification `json:"ecoCertifications,omitempty"` - // LeedCertification: LEED certification. + // LeedCertification: LEED certification. Deprecated: this field is no + // longer populated. LEED certification status is now provided directly + // by USGBC. // // Possible values: // "LEED_CERTIFICATION_UNSPECIFIED" - Default LeedCertification. Do @@ -5207,7 +5209,9 @@ type SustainabilityCertifications struct { // "LEED_PLATINUM" - LEED Platinum. LeedCertification string `json:"leedCertification,omitempty"` - // LeedCertificationException: LEED certification exception. + // LeedCertificationException: LEED certification exception. Deprecated: + // this field is no longer populated. LEED certification status is now + // provided directly by USGBC. // // Possible values: // "EXCEPTION_UNSPECIFIED" - Default unspecified exception. Use this diff --git a/pubsub/v1/pubsub-api.json b/pubsub/v1/pubsub-api.json index d369aeaf5db..e06943bfdef 100644 --- a/pubsub/v1/pubsub-api.json +++ b/pubsub/v1/pubsub-api.json @@ -426,7 +426,7 @@ ], "parameters": { "name": { - "description": "Required. User-provided name for this snapshot. If the name is not provided in the request, the server will assign a random name for this snapshot on the same project as the subscription. Note that for REST API requests, you must specify a name. See the resource name rules. Format is `projects/{project}/snapshots/{snap}`.", + "description": "Required. User-provided name for this snapshot. If the name is not provided in the request, the server will assign a random name for this snapshot on the same project as the subscription. Note that for REST API requests, you must specify a name. See the [resource name rules](https://cloud.google.com/pubsub/docs/admin#resource_names). Format is `projects/{project}/snapshots/{snap}`.", "location": "path", "pattern": "^projects/[^/]+/snapshots/[^/]+$", "required": true, @@ -1424,7 +1424,7 @@ } } }, - "revision": "20220829", + "revision": "20220904", "rootUrl": "https://pubsub.googleapis.com/", "schemas": { "AcknowledgeRequest": { @@ -1513,7 +1513,7 @@ "additionalProperties": { "type": "string" }, - "description": "See Creating and managing labels.", + "description": "See [Creating and managing labels](https://cloud.google.com/pubsub/docs/labels).", "type": "object" }, "subscription": { @@ -1874,7 +1874,7 @@ "additionalProperties": { "type": "string" }, - "description": "Endpoint configuration attributes that can be used to control different aspects of the message delivery. The only currently supported attribute is `x-goog-version`, which you can use to change the format of the pushed message. This attribute indicates the version of the data expected by the endpoint. This controls the shape of the pushed message (i.e., its fields and metadata). If not present during the `CreateSubscription` call, it will default to the version of the Pub/Sub API used to make such call. If not present in a `ModifyPushConfig` call, its value will not be changed. `GetSubscription` calls will always return a valid version, even if the subscription was created without this attribute. The only supported values for the `x-goog-version` attribute are: * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API. * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API. For example: attributes { \"x-goog-version\": \"v1\" } ", + "description": "Endpoint configuration attributes that can be used to control different aspects of the message delivery. The only currently supported attribute is `x-goog-version`, which you can use to change the format of the pushed message. This attribute indicates the version of the data expected by the endpoint. This controls the shape of the pushed message (i.e., its fields and metadata). If not present during the `CreateSubscription` call, it will default to the version of the Pub/Sub API used to make such call. If not present in a `ModifyPushConfig` call, its value will not be changed. `GetSubscription` calls will always return a valid version, even if the subscription was created without this attribute. The only supported values for the `x-goog-version` attribute are: * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API. * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API. For example: `attributes { \"x-goog-version\": \"v1\" }`", "type": "object" }, "oidcToken": { @@ -2063,7 +2063,7 @@ "id": "Subscription", "properties": { "ackDeadlineSeconds": { - "description": "The approximate amount of time (on a best-effort basis) Pub/Sub waits for the subscriber to acknowledge receipt before resending the message. In the interval after the message is delivered and before it is acknowledged, it is considered to be *outstanding*. During that time period, the message will not be redelivered (on a best-effort basis). For pull subscriptions, this value is used as the initial value for the ack deadline. To override this value for a given message, call `ModifyAckDeadline` with the corresponding `ack_id` if using non-streaming pull or send the `ack_id` in a `StreamingModifyAckDeadlineRequest` if using streaming pull. The minimum custom deadline you can specify is 10 seconds. The maximum custom deadline you can specify is 600 seconds (10 minutes). If this parameter is 0, a default value of 10 seconds is used. For push delivery, this value is also used to set the request timeout for the call to the push endpoint. If the subscriber never acknowledges the message, the Pub/Sub system will eventually redeliver the message.", + "description": "The approximate amount of time (on a best-effort basis) Pub/Sub waits for the subscriber to acknowledge receipt before resending the message. In the interval after the message is delivered and before it is acknowledged, it is considered to be _outstanding_. During that time period, the message will not be redelivered (on a best-effort basis). For pull subscriptions, this value is used as the initial value for the ack deadline. To override this value for a given message, call `ModifyAckDeadline` with the corresponding `ack_id` if using non-streaming pull or send the `ack_id` in a `StreamingModifyAckDeadlineRequest` if using streaming pull. The minimum custom deadline you can specify is 10 seconds. The maximum custom deadline you can specify is 600 seconds (10 minutes). If this parameter is 0, a default value of 10 seconds is used. For push delivery, this value is also used to set the request timeout for the call to the push endpoint. If the subscriber never acknowledges the message, the Pub/Sub system will eventually redeliver the message.", "format": "int32", "type": "integer" }, @@ -2099,7 +2099,7 @@ "additionalProperties": { "type": "string" }, - "description": "See Creating and managing labels.", + "description": "See [Creating and managing labels](https://cloud.google.com/pubsub/docs/labels).", "type": "object" }, "messageRetentionDuration": { diff --git a/pubsub/v1/pubsub-gen.go b/pubsub/v1/pubsub-gen.go index 47529c87dee..e4e4626813a 100644 --- a/pubsub/v1/pubsub-gen.go +++ b/pubsub/v1/pubsub-gen.go @@ -401,7 +401,8 @@ func (s *Binding) MarshalJSON() ([]byte, error) { // CreateSnapshotRequest: Request for the `CreateSnapshot` method. type CreateSnapshotRequest struct { - // Labels: See Creating and managing labels. + // Labels: See Creating and managing labels + // (https://cloud.google.com/pubsub/docs/labels). Labels map[string]string `json:"labels,omitempty"` // Subscription: Required. The subscription whose backlog the snapshot @@ -1301,7 +1302,7 @@ type PushConfig struct { // supported values for the `x-goog-version` attribute are: * `v1beta1`: // uses the push format defined in the v1beta1 Pub/Sub API. * `v1` or // `v1beta2`: uses the push format defined in the v1 Pub/Sub API. For - // example: attributes { "x-goog-version": "v1" } + // example: `attributes { "x-goog-version": "v1" }` Attributes map[string]string `json:"attributes,omitempty"` // OidcToken: If specified, Pub/Sub will generate and attach an OIDC JWT @@ -1675,7 +1676,7 @@ type Subscription struct { // AckDeadlineSeconds: The approximate amount of time (on a best-effort // basis) Pub/Sub waits for the subscriber to acknowledge receipt before // resending the message. In the interval after the message is delivered - // and before it is acknowledged, it is considered to be *outstanding*. + // and before it is acknowledged, it is considered to be _outstanding_. // During that time period, the message will not be redelivered (on a // best-effort basis). For pull subscriptions, this value is used as the // initial value for the ack deadline. To override this value for a @@ -1744,7 +1745,8 @@ type Subscription struct { // filtered out. Filter string `json:"filter,omitempty"` - // Labels: See Creating and managing labels. + // Labels: See Creating and managing labels + // (https://cloud.google.com/pubsub/docs/labels). Labels map[string]string `json:"labels,omitempty"` // MessageRetentionDuration: How long to retain unacknowledged messages @@ -3667,7 +3669,9 @@ type ProjectsSnapshotsCreateCall struct { // provided in the request, the server will assign a random name for // this snapshot on the same project as the subscription. Note that // for REST API requests, you must specify a name. See the resource -// name rules. Format is `projects/{project}/snapshots/{snap}`. +// name rules +// (https://cloud.google.com/pubsub/docs/admin#resource_names). Format +// is `projects/{project}/snapshots/{snap}`. func (r *ProjectsSnapshotsService) Create(name string, createsnapshotrequest *CreateSnapshotRequest) *ProjectsSnapshotsCreateCall { c := &ProjectsSnapshotsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3775,7 +3779,7 @@ func (c *ProjectsSnapshotsCreateCall) Do(opts ...googleapi.CallOption) (*Snapsho // ], // "parameters": { // "name": { - // "description": "Required. User-provided name for this snapshot. If the name is not provided in the request, the server will assign a random name for this snapshot on the same project as the subscription. Note that for REST API requests, you must specify a name. See the resource name rules. Format is `projects/{project}/snapshots/{snap}`.", + // "description": "Required. User-provided name for this snapshot. If the name is not provided in the request, the server will assign a random name for this snapshot on the same project as the subscription. Note that for REST API requests, you must specify a name. See the [resource name rules](https://cloud.google.com/pubsub/docs/admin#resource_names). Format is `projects/{project}/snapshots/{snap}`.", // "location": "path", // "pattern": "^projects/[^/]+/snapshots/[^/]+$", // "required": true, diff --git a/run/v1/run-api.json b/run/v1/run-api.json index 6d7751b2d99..15601eda7c0 100644 --- a/run/v1/run-api.json +++ b/run/v1/run-api.json @@ -2289,7 +2289,7 @@ } } }, - "revision": "20220828", + "revision": "20220911", "rootUrl": "https://run.googleapis.com/", "schemas": { "Addressable": { @@ -2569,7 +2569,7 @@ }, "livenessProbe": { "$ref": "Probe", - "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" + "description": "Not supported by Cloud Run." }, "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", diff --git a/run/v1/run-gen.go b/run/v1/run-gen.go index 04a12f58356..39db6338994 100644 --- a/run/v1/run-gen.go +++ b/run/v1/run-gen.go @@ -922,9 +922,7 @@ type Container struct { // https://kubernetes.io/docs/concepts/containers/images#updating-images ImagePullPolicy string `json:"imagePullPolicy,omitempty"` - // LivenessProbe: 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 + // LivenessProbe: Not supported by Cloud Run. LivenessProbe *Probe `json:"livenessProbe,omitempty"` // Name: Name of the container specified as a DNS_LABEL. Currently diff --git a/servicemanagement/v1/servicemanagement-api.json b/servicemanagement/v1/servicemanagement-api.json index 5881626752b..2a151725fcb 100644 --- a/servicemanagement/v1/servicemanagement-api.json +++ b/servicemanagement/v1/servicemanagement-api.json @@ -829,7 +829,7 @@ } } }, - "revision": "20220826", + "revision": "20220913", "rootUrl": "https://servicemanagement.googleapis.com/", "schemas": { "Advice": { @@ -2548,18 +2548,18 @@ "type": "object" }, "Quota": { - "description": "Quota configuration helps to achieve fairness and budgeting in service usage. The metric based quota configuration works this way: - The service configuration defines a set of metrics. - For API calls, the quota.metric_rules maps methods to metrics with corresponding costs. - The quota.limits defines limits on the metrics, which will be used for quota checks at runtime. An example quota configuration in yaml format: quota: limits: - name: apiWriteQpsPerProject metric: library.googleapis.com/write_calls unit: \"1/min/{project}\" # rate limit for consumer projects values: STANDARD: 10000 # The metric rules bind all methods to the read_calls metric, # except for the UpdateBook and DeleteBook methods. These two methods # are mapped to the write_calls metric, with the UpdateBook method # consuming at twice rate as the DeleteBook method. metric_rules: - selector: \"*\" metric_costs: library.googleapis.com/read_calls: 1 - selector: google.example.library.v1.LibraryService.UpdateBook metric_costs: library.googleapis.com/write_calls: 2 - selector: google.example.library.v1.LibraryService.DeleteBook metric_costs: library.googleapis.com/write_calls: 1 Corresponding Metric definition: metrics: - name: library.googleapis.com/read_calls display_name: Read requests metric_kind: DELTA value_type: INT64 - name: library.googleapis.com/write_calls display_name: Write requests metric_kind: DELTA value_type: INT64 ", + "description": "Quota configuration helps to achieve fairness and budgeting in service usage. The metric based quota configuration works this way: - The service configuration defines a set of metrics. - For API calls, the quota.metric_rules maps methods to metrics with corresponding costs. - The quota.limits defines limits on the metrics, which will be used for quota checks at runtime. An example quota configuration in yaml format: quota: limits: - name: apiWriteQpsPerProject metric: library.googleapis.com/write_calls unit: \"1/min/{project}\" # rate limit for consumer projects values: STANDARD: 10000 (The metric rules bind all methods to the read_calls metric, except for the UpdateBook and DeleteBook methods. These two methods are mapped to the write_calls metric, with the UpdateBook method consuming at twice rate as the DeleteBook method.) metric_rules: - selector: \"*\" metric_costs: library.googleapis.com/read_calls: 1 - selector: google.example.library.v1.LibraryService.UpdateBook metric_costs: library.googleapis.com/write_calls: 2 - selector: google.example.library.v1.LibraryService.DeleteBook metric_costs: library.googleapis.com/write_calls: 1 Corresponding Metric definition: metrics: - name: library.googleapis.com/read_calls display_name: Read requests metric_kind: DELTA value_type: INT64 - name: library.googleapis.com/write_calls display_name: Write requests metric_kind: DELTA value_type: INT64 ", "id": "Quota", "properties": { "limits": { - "description": "List of `QuotaLimit` definitions for the service.", + "description": "List of QuotaLimit definitions for the service.", "items": { "$ref": "QuotaLimit" }, "type": "array" }, "metricRules": { - "description": "List of `MetricRule` definitions, each one mapping a selected method to one or more metrics.", + "description": "List of MetricRule definitions, each one mapping a selected method to one or more metrics.", "items": { "$ref": "MetricRule" }, diff --git a/servicemanagement/v1/servicemanagement-gen.go b/servicemanagement/v1/servicemanagement-gen.go index 1792168061d..fb7a6276c9d 100644 --- a/servicemanagement/v1/servicemanagement-gen.go +++ b/servicemanagement/v1/servicemanagement-gen.go @@ -3727,11 +3727,11 @@ func (s *Policy) MarshalJSON() ([]byte, error) { // be used for quota checks at runtime. An example quota configuration // in yaml format: quota: limits: - name: apiWriteQpsPerProject metric: // library.googleapis.com/write_calls unit: "1/min/{project}" # rate -// limit for consumer projects values: STANDARD: 10000 # The metric -// rules bind all methods to the read_calls metric, # except for the -// UpdateBook and DeleteBook methods. These two methods # are mapped to -// the write_calls metric, with the UpdateBook method # consuming at -// twice rate as the DeleteBook method. metric_rules: - selector: "*" +// limit for consumer projects values: STANDARD: 10000 (The metric rules +// bind all methods to the read_calls metric, except for the UpdateBook +// and DeleteBook methods. These two methods are mapped to the +// write_calls metric, with the UpdateBook method consuming at twice +// rate as the DeleteBook method.) metric_rules: - selector: "*" // metric_costs: library.googleapis.com/read_calls: 1 - selector: // google.example.library.v1.LibraryService.UpdateBook metric_costs: // library.googleapis.com/write_calls: 2 - selector: @@ -3742,10 +3742,10 @@ func (s *Policy) MarshalJSON() ([]byte, error) { // name: library.googleapis.com/write_calls display_name: Write requests // metric_kind: DELTA value_type: INT64 type Quota struct { - // Limits: List of `QuotaLimit` definitions for the service. + // Limits: List of QuotaLimit definitions for the service. Limits []*QuotaLimit `json:"limits,omitempty"` - // MetricRules: List of `MetricRule` definitions, each one mapping a + // MetricRules: List of MetricRule definitions, each one mapping a // selected method to one or more metrics. MetricRules []*MetricRule `json:"metricRules,omitempty"` diff --git a/sqladmin/v1/sqladmin-api.json b/sqladmin/v1/sqladmin-api.json index c51f54f406a..586a85f16b4 100644 --- a/sqladmin/v1/sqladmin-api.json +++ b/sqladmin/v1/sqladmin-api.json @@ -979,7 +979,7 @@ ] }, "patch": { - "description": "Updates settings of a Cloud SQL instance. This method supports patch semantics.", + "description": "Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics.", "flatPath": "v1/projects/{project}/instances/{instance}", "httpMethod": "PATCH", "id": "sql.instances.patch", @@ -1916,7 +1916,7 @@ } } }, - "revision": "20220824", + "revision": "20220905", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2154,6 +2154,10 @@ ], "type": "string" }, + "timeZone": { + "description": "Backup time zone to prevent restores to an instance with a different time zone. Now relevant only for SQL Server.", + "type": "string" + }, "type": { "description": "The type of this run; can be either \"AUTOMATED\" or \"ON_DEMAND\" or \"FINAL\". This field defaults to \"ON_DEMAND\" and is ignored, when specified for insert requests.", "enum": [ @@ -2230,6 +2234,13 @@ "$ref": "BinLogCoordinates", "description": "Binary log coordinates, if specified, identify the position up to which the source instance is cloned. If not specified, the source instance is cloned up to the most recent binary log coordinates." }, + "databaseNames": { + "description": "(SQL Server only) Clone only the specified databases from the source instance. Clone all databases if empty.", + "items": { + "type": "string" + }, + "type": "array" + }, "destinationInstanceName": { "description": "Name of the Cloud SQL instance to be created as a clone.", "type": "string" @@ -4075,7 +4086,7 @@ "type": "string" }, "connectorEnforcement": { - "description": "Specifies if connections must use Cloud SQL connectors. Option values include the following: * `NOT_REQUIRED`: Cloud SQL instances can be connected without Cloud SQL Connectors. * `REQUIRED`: Only allow connections that use Cloud SQL Connectors. Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance.", + "description": "Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud SQL Connectors). Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance.", "enum": [ "CONNECTOR_ENFORCEMENT_UNSPECIFIED", "NOT_REQUIRED", @@ -4209,6 +4220,10 @@ "description": "The tier (or machine type) for this instance, for example `db-custom-1-3840`. WARNING: Changing this restarts the instance.", "type": "string" }, + "timeZone": { + "description": "Server timezone, relevant only for Cloud SQL for SQL Server.", + "type": "string" + }, "userLabels": { "additionalProperties": { "type": "string" diff --git a/sqladmin/v1/sqladmin-gen.go b/sqladmin/v1/sqladmin-gen.go index 2a87b30cdcc..b5dd2c1a4d5 100644 --- a/sqladmin/v1/sqladmin-gen.go +++ b/sqladmin/v1/sqladmin-gen.go @@ -563,6 +563,10 @@ type BackupRun struct { // "DELETED" - The backup has been deleted. Status string `json:"status,omitempty"` + // TimeZone: Backup time zone to prevent restores to an instance with a + // different time zone. Now relevant only for SQL Server. + TimeZone string `json:"timeZone,omitempty"` + // Type: The type of this run; can be either "AUTOMATED" or "ON_DEMAND" // or "FINAL". This field defaults to "ON_DEMAND" and is ignored, when // specified for insert requests. @@ -700,6 +704,10 @@ type CloneContext struct { // coordinates. BinLogCoordinates *BinLogCoordinates `json:"binLogCoordinates,omitempty"` + // DatabaseNames: (SQL Server only) Clone only the specified databases + // from the source instance. Clone all databases if empty. + DatabaseNames []string `json:"databaseNames,omitempty"` + // DestinationInstanceName: Name of the Cloud SQL instance to be created // as a clone. DestinationInstanceName string `json:"destinationInstanceName,omitempty"` @@ -3463,13 +3471,14 @@ type Settings struct { Collation string `json:"collation,omitempty"` // ConnectorEnforcement: Specifies if connections must use Cloud SQL - // connectors. Option values include the following: * `NOT_REQUIRED`: - // Cloud SQL instances can be connected without Cloud SQL Connectors. * - // `REQUIRED`: Only allow connections that use Cloud SQL Connectors. - // Note that using REQUIRED disables all existing authorized networks. - // If this field is not specified when creating a new instance, - // NOT_REQUIRED is used. If this field is not specified when patching or - // updating an existing instance, it is left unchanged in the instance. + // connectors. Option values include the following: `NOT_REQUIRED` + // (Cloud SQL instances can be connected without Cloud SQL Connectors) + // and `REQUIRED` (Only allow connections that use Cloud SQL + // Connectors). Note that using REQUIRED disables all existing + // authorized networks. If this field is not specified when creating a + // new instance, NOT_REQUIRED is used. If this field is not specified + // when patching or updating an existing instance, it is left unchanged + // in the instance. // // Possible values: // "CONNECTOR_ENFORCEMENT_UNSPECIFIED" - The requirement for Cloud SQL @@ -3593,6 +3602,10 @@ type Settings struct { // `db-custom-1-3840`. WARNING: Changing this restarts the instance. Tier string `json:"tier,omitempty"` + // TimeZone: Server timezone, relevant only for Cloud SQL for SQL + // Server. + TimeZone string `json:"timeZone,omitempty"` + // UserLabels: User-provided labels, represented as a dictionary where // each label is a single key value pair. UserLabels map[string]string `json:"userLabels,omitempty"` @@ -8531,7 +8544,8 @@ type InstancesPatchCall struct { header_ http.Header } -// Patch: Updates settings of a Cloud SQL instance. This method supports +// Patch: Partially updates settings of a Cloud SQL instance by merging +// the request with the current configuration. This method supports // patch semantics. // // - instance: Cloud SQL instance ID. This does not include the project @@ -8637,7 +8651,7 @@ func (c *InstancesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error } return ret, nil // { - // "description": "Updates settings of a Cloud SQL instance. This method supports patch semantics.", + // "description": "Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics.", // "flatPath": "v1/projects/{project}/instances/{instance}", // "httpMethod": "PATCH", // "id": "sql.instances.patch", diff --git a/sqladmin/v1beta4/sqladmin-api.json b/sqladmin/v1beta4/sqladmin-api.json index 14fc76311e2..47028e3a3f8 100644 --- a/sqladmin/v1beta4/sqladmin-api.json +++ b/sqladmin/v1beta4/sqladmin-api.json @@ -979,7 +979,7 @@ ] }, "patch": { - "description": "Updates settings of a Cloud SQL instance. This method supports patch semantics.", + "description": "Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics.", "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}", "httpMethod": "PATCH", "id": "sql.instances.patch", @@ -1916,7 +1916,7 @@ } } }, - "revision": "20220824", + "revision": "20220905", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2154,6 +2154,10 @@ ], "type": "string" }, + "timeZone": { + "description": "Backup time zone to prevent restores to an instance with a different time zone. Now relevant only for SQL Server.", + "type": "string" + }, "type": { "description": "The type of this run; can be either \"AUTOMATED\" or \"ON_DEMAND\" or \"FINAL\". This field defaults to \"ON_DEMAND\" and is ignored, when specified for insert requests.", "enum": [ @@ -2230,6 +2234,13 @@ "$ref": "BinLogCoordinates", "description": "Binary log coordinates, if specified, identify the position up to which the source instance is cloned. If not specified, the source instance is cloned up to the most recent binary log coordinates." }, + "databaseNames": { + "description": "(SQL Server only) Clone only the specified databases from the source instance. Clone all databases if empty.", + "items": { + "type": "string" + }, + "type": "array" + }, "destinationInstanceName": { "description": "Name of the Cloud SQL instance to be created as a clone.", "type": "string" @@ -4075,7 +4086,7 @@ "type": "string" }, "connectorEnforcement": { - "description": "Specifies if connections must use Cloud SQL connectors. Option values include the following: * `NOT_REQUIRED`: Cloud SQL instances can be connected without Cloud SQL Connectors. * `REQUIRED`: Only allow connections that use Cloud SQL Connectors. Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance.", + "description": "Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud SQL Connectors) Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance.", "enum": [ "CONNECTOR_ENFORCEMENT_UNSPECIFIED", "NOT_REQUIRED", @@ -4209,6 +4220,10 @@ "description": "The tier (or machine type) for this instance, for example `db-custom-1-3840`. WARNING: Changing this restarts the instance.", "type": "string" }, + "timeZone": { + "description": "Server timezone, relevant only for Cloud SQL for SQL Server.", + "type": "string" + }, "userLabels": { "additionalProperties": { "type": "string" diff --git a/sqladmin/v1beta4/sqladmin-gen.go b/sqladmin/v1beta4/sqladmin-gen.go index 4827131a7e7..01823a17249 100644 --- a/sqladmin/v1beta4/sqladmin-gen.go +++ b/sqladmin/v1beta4/sqladmin-gen.go @@ -563,6 +563,10 @@ type BackupRun struct { // "DELETED" - The backup has been deleted. Status string `json:"status,omitempty"` + // TimeZone: Backup time zone to prevent restores to an instance with a + // different time zone. Now relevant only for SQL Server. + TimeZone string `json:"timeZone,omitempty"` + // Type: The type of this run; can be either "AUTOMATED" or "ON_DEMAND" // or "FINAL". This field defaults to "ON_DEMAND" and is ignored, when // specified for insert requests. @@ -700,6 +704,10 @@ type CloneContext struct { // coordinates. BinLogCoordinates *BinLogCoordinates `json:"binLogCoordinates,omitempty"` + // DatabaseNames: (SQL Server only) Clone only the specified databases + // from the source instance. Clone all databases if empty. + DatabaseNames []string `json:"databaseNames,omitempty"` + // DestinationInstanceName: Name of the Cloud SQL instance to be created // as a clone. DestinationInstanceName string `json:"destinationInstanceName,omitempty"` @@ -3463,9 +3471,9 @@ type Settings struct { Collation string `json:"collation,omitempty"` // ConnectorEnforcement: Specifies if connections must use Cloud SQL - // connectors. Option values include the following: * `NOT_REQUIRED`: - // Cloud SQL instances can be connected without Cloud SQL Connectors. * - // `REQUIRED`: Only allow connections that use Cloud SQL Connectors. + // connectors. Option values include the following: `NOT_REQUIRED` + // (Cloud SQL instances can be connected without Cloud SQL Connectors) + // and `REQUIRED` (Only allow connections that use Cloud SQL Connectors) // Note that using REQUIRED disables all existing authorized networks. // If this field is not specified when creating a new instance, // NOT_REQUIRED is used. If this field is not specified when patching or @@ -3593,6 +3601,10 @@ type Settings struct { // `db-custom-1-3840`. WARNING: Changing this restarts the instance. Tier string `json:"tier,omitempty"` + // TimeZone: Server timezone, relevant only for Cloud SQL for SQL + // Server. + TimeZone string `json:"timeZone,omitempty"` + // UserLabels: User-provided labels, represented as a dictionary where // each label is a single key value pair. UserLabels map[string]string `json:"userLabels,omitempty"` @@ -8527,7 +8539,8 @@ type InstancesPatchCall struct { header_ http.Header } -// Patch: Updates settings of a Cloud SQL instance. This method supports +// Patch: Partially updates settings of a Cloud SQL instance by merging +// the request with the current configuration. This method supports // patch semantics. // // - instance: Cloud SQL instance ID. This does not include the project @@ -8633,7 +8646,7 @@ func (c *InstancesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error } return ret, nil // { - // "description": "Updates settings of a Cloud SQL instance. This method supports patch semantics.", + // "description": "Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics.", // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}", // "httpMethod": "PATCH", // "id": "sql.instances.patch", diff --git a/vmmigration/v1/vmmigration-api.json b/vmmigration/v1/vmmigration-api.json index b619e8aa631..bed51e76b4f 100644 --- a/vmmigration/v1/vmmigration-api.json +++ b/vmmigration/v1/vmmigration-api.json @@ -1532,6 +1532,81 @@ ] } } + }, + "replicationCycles": { + "methods": { + "get": { + "description": "Gets details of a single ReplicationCycle.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/migratingVms/{migratingVmsId}/replicationCycles/{replicationCyclesId}", + "httpMethod": "GET", + "id": "vmmigration.projects.locations.sources.migratingVms.replicationCycles.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the ReplicationCycle.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+/migratingVms/[^/]+/replicationCycles/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "ReplicationCycle" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists ReplicationCycles in a given MigratingVM.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/migratingVms/{migratingVmsId}/replicationCycles", + "httpMethod": "GET", + "id": "vmmigration.projects.locations.sources.migratingVms.replicationCycles.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. The filter request.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. the order by fields for the result.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of replication cycles to return. The service may return fewer than this value. If unspecified, at most 100 migrating VMs will be returned. The maximum value is 100; values above 100 will be coerced to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Required. A page token, received from a previous `ListReplicationCycles` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReplicationCycles` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent, which owns this collection of ReplicationCycles.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+/migratingVms/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/replicationCycles", + "response": { + "$ref": "ListReplicationCyclesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } } }, @@ -1897,7 +1972,7 @@ } } }, - "revision": "20220811", + "revision": "20220908", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AddGroupMigrationRequest": { @@ -1954,7 +2029,7 @@ "Unspecified license for the OS.", "No license available for the OS.", "The license type is Pay As You Go license type.", - "The license type is is Bring Your Own License type." + "The license type is Bring Your Own License type." ], "type": "string" } @@ -2784,6 +2859,34 @@ }, "type": "object" }, + "ListReplicationCyclesResponse": { + "description": "Response message for 'ListReplicationCycles' request.", + "id": "ListReplicationCyclesResponse", + "properties": { + "nextPageToken": { + "description": "Output only. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "readOnly": true, + "type": "string" + }, + "replicationCycles": { + "description": "Output only. The list of replication cycles response.", + "items": { + "$ref": "ReplicationCycle" + }, + "readOnly": true, + "type": "array" + }, + "unreachable": { + "description": "Output only. Locations that could not be reached.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, "ListSourcesResponse": { "description": "Response message for 'ListSources' request.", "id": "ListSourcesResponse", diff --git a/vmmigration/v1/vmmigration-gen.go b/vmmigration/v1/vmmigration-gen.go index 067a2e7c453..a3477100588 100644 --- a/vmmigration/v1/vmmigration-gen.go +++ b/vmmigration/v1/vmmigration-gen.go @@ -219,6 +219,7 @@ func NewProjectsLocationsSourcesMigratingVmsService(s *Service) *ProjectsLocatio rs := &ProjectsLocationsSourcesMigratingVmsService{s: s} rs.CloneJobs = NewProjectsLocationsSourcesMigratingVmsCloneJobsService(s) rs.CutoverJobs = NewProjectsLocationsSourcesMigratingVmsCutoverJobsService(s) + rs.ReplicationCycles = NewProjectsLocationsSourcesMigratingVmsReplicationCyclesService(s) return rs } @@ -228,6 +229,8 @@ type ProjectsLocationsSourcesMigratingVmsService struct { CloneJobs *ProjectsLocationsSourcesMigratingVmsCloneJobsService CutoverJobs *ProjectsLocationsSourcesMigratingVmsCutoverJobsService + + ReplicationCycles *ProjectsLocationsSourcesMigratingVmsReplicationCyclesService } func NewProjectsLocationsSourcesMigratingVmsCloneJobsService(s *Service) *ProjectsLocationsSourcesMigratingVmsCloneJobsService { @@ -248,6 +251,15 @@ type ProjectsLocationsSourcesMigratingVmsCutoverJobsService struct { s *Service } +func NewProjectsLocationsSourcesMigratingVmsReplicationCyclesService(s *Service) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesService { + rs := &ProjectsLocationsSourcesMigratingVmsReplicationCyclesService{s: s} + return rs +} + +type ProjectsLocationsSourcesMigratingVmsReplicationCyclesService struct { + s *Service +} + func NewProjectsLocationsSourcesUtilizationReportsService(s *Service) *ProjectsLocationsSourcesUtilizationReportsService { rs := &ProjectsLocationsSourcesUtilizationReportsService{s: s} return rs @@ -347,7 +359,7 @@ type AppliedLicense struct { // "TYPE_UNSPECIFIED" - Unspecified license for the OS. // "NONE" - No license available for the OS. // "PAYG" - The license type is Pay As You Go license type. - // "BYOL" - The license type is is Bring Your Own License type. + // "BYOL" - The license type is Bring Your Own License type. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "OsLicense") to @@ -1374,6 +1386,48 @@ func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListReplicationCyclesResponse: Response message for +// 'ListReplicationCycles' request. +type ListReplicationCyclesResponse struct { + // NextPageToken: Output only. 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"` + + // ReplicationCycles: Output only. The list of replication cycles + // response. + ReplicationCycles []*ReplicationCycle `json:"replicationCycles,omitempty"` + + // Unreachable: Output only. Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "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 *ListReplicationCyclesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListReplicationCyclesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListSourcesResponse: Response message for 'ListSources' request. type ListSourcesResponse struct { // NextPageToken: Output only. A token, which can be sent as @@ -1967,6 +2021,10 @@ type ReplicationCycle struct { // StartTime: The time the replication cycle has started. StartTime string `json:"startTime,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "ProgressPercent") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -9628,6 +9686,374 @@ func (c *ProjectsLocationsSourcesMigratingVmsCutoverJobsListCall) Pages(ctx cont } } +// method id "vmmigration.projects.locations.sources.migratingVms.replicationCycles.get": + +type ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single ReplicationCycle. +// +// - name: The name of the ReplicationCycle. +func (r *ProjectsLocationsSourcesMigratingVmsReplicationCyclesService) Get(name string) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall { + c := &ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall{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 *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall { + 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 *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall { + 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 *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall) Context(ctx context.Context) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-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 "vmmigration.projects.locations.sources.migratingVms.replicationCycles.get" call. +// Exactly one of *ReplicationCycle or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ReplicationCycle.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall) Do(opts ...googleapi.CallOption) (*ReplicationCycle, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ReplicationCycle{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets details of a single ReplicationCycle.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/migratingVms/{migratingVmsId}/replicationCycles/{replicationCyclesId}", + // "httpMethod": "GET", + // "id": "vmmigration.projects.locations.sources.migratingVms.replicationCycles.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the ReplicationCycle.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+/migratingVms/[^/]+/replicationCycles/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "ReplicationCycle" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "vmmigration.projects.locations.sources.migratingVms.replicationCycles.list": + +type ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists ReplicationCycles in a given MigratingVM. +// +// - parent: The parent, which owns this collection of +// ReplicationCycles. +func (r *ProjectsLocationsSourcesMigratingVmsReplicationCyclesService) List(parent string) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall { + c := &ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": The filter request. +func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) Filter(filter string) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": the order by fields +// for the result. +func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) OrderBy(orderBy string) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of replication cycles to return. The service may return fewer than +// this value. If unspecified, at most 100 migrating VMs will be +// returned. The maximum value is 100; values above 100 will be coerced +// to 100. +func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) PageSize(pageSize int64) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Required. A page +// token, received from a previous `ListReplicationCycles` call. Provide +// this to retrieve the subsequent page. When paginating, all other +// parameters provided to `ListReplicationCycles` must match the call +// that provided the page token. +func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) PageToken(pageToken string) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall { + 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 *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall { + 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 *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall { + 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 *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) Context(ctx context.Context) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-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}/replicationCycles") + 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 "vmmigration.projects.locations.sources.migratingVms.replicationCycles.list" call. +// Exactly one of *ListReplicationCyclesResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListReplicationCyclesResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) Do(opts ...googleapi.CallOption) (*ListReplicationCyclesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListReplicationCyclesResponse{ + ServerResponse: googleapi.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 ReplicationCycles in a given MigratingVM.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/migratingVms/{migratingVmsId}/replicationCycles", + // "httpMethod": "GET", + // "id": "vmmigration.projects.locations.sources.migratingVms.replicationCycles.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. The filter request.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Optional. the order by fields for the result.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. The maximum number of replication cycles to return. The service may return fewer than this value. If unspecified, at most 100 migrating VMs will be returned. The maximum value is 100; values above 100 will be coerced to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Required. A page token, received from a previous `ListReplicationCycles` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReplicationCycles` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent, which owns this collection of ReplicationCycles.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+/migratingVms/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/replicationCycles", + // "response": { + // "$ref": "ListReplicationCyclesResponse" + // }, + // "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 *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) Pages(ctx context.Context, f func(*ListReplicationCyclesResponse) 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 "vmmigration.projects.locations.sources.utilizationReports.create": type ProjectsLocationsSourcesUtilizationReportsCreateCall struct { diff --git a/vmmigration/v1alpha1/vmmigration-api.json b/vmmigration/v1alpha1/vmmigration-api.json index 1b2407bc265..9219c4b30a5 100644 --- a/vmmigration/v1alpha1/vmmigration-api.json +++ b/vmmigration/v1alpha1/vmmigration-api.json @@ -1532,6 +1532,81 @@ ] } } + }, + "replicationCycles": { + "methods": { + "get": { + "description": "Gets details of a single ReplicationCycle.", + "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/migratingVms/{migratingVmsId}/replicationCycles/{replicationCyclesId}", + "httpMethod": "GET", + "id": "vmmigration.projects.locations.sources.migratingVms.replicationCycles.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the ReplicationCycle.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+/migratingVms/[^/]+/replicationCycles/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha1/{+name}", + "response": { + "$ref": "ReplicationCycle" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists ReplicationCycles in a given MigratingVM.", + "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/migratingVms/{migratingVmsId}/replicationCycles", + "httpMethod": "GET", + "id": "vmmigration.projects.locations.sources.migratingVms.replicationCycles.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. The filter request.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. the order by fields for the result.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of replication cycles to return. The service may return fewer than this value. If unspecified, at most 100 migrating VMs will be returned. The maximum value is 100; values above 100 will be coerced to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Required. A page token, received from a previous `ListReplicationCycles` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReplicationCycles` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent, which owns this collection of ReplicationCycles.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+/migratingVms/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha1/{+parent}/replicationCycles", + "response": { + "$ref": "ListReplicationCyclesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } } }, @@ -1897,7 +1972,7 @@ } } }, - "revision": "20220811", + "revision": "20220908", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AdaptingOSStep": { @@ -1960,7 +2035,7 @@ "Unspecified license for the OS.", "No license available for the OS.", "The license type is Pay As You Go license type.", - "The license type is is Bring Your Own License type." + "The license type is Bring Your Own License type." ], "type": "string" } @@ -2942,6 +3017,34 @@ }, "type": "object" }, + "ListReplicationCyclesResponse": { + "description": "Response message for 'ListReplicationCycles' request.", + "id": "ListReplicationCyclesResponse", + "properties": { + "nextPageToken": { + "description": "Output only. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "readOnly": true, + "type": "string" + }, + "replicationCycles": { + "description": "Output only. The list of replication cycles response.", + "items": { + "$ref": "ReplicationCycle" + }, + "readOnly": true, + "type": "array" + }, + "unreachable": { + "description": "Output only. Locations that could not be reached.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, "ListSourcesResponse": { "description": "Response message for 'ListSources' request.", "id": "ListSourcesResponse", @@ -3431,11 +3534,20 @@ "description": "ReplicationCycle contains information about the current replication cycle status.", "id": "ReplicationCycle", "properties": { + "cycleNumber": { + "description": "The cycle's ordinal number.", + "format": "int32", + "type": "integer" + }, "endTime": { "description": "The time the replication cycle has ended.", "format": "google-datetime", "type": "string" }, + "error": { + "$ref": "Status", + "description": "Provides details on the state of the cycle in case of an error." + }, "name": { "description": "The identifier of the ReplicationCycle.", "type": "string" @@ -3455,6 +3567,24 @@ "format": "google-datetime", "type": "string" }, + "state": { + "description": "State of the MigratingVm.", + "enum": [ + "STATE_UNSPECIFIED", + "RUNNING", + "PAUSED", + "FAILED", + "SUCCEEDED" + ], + "enumDescriptions": [ + "The state is unknown. This is used for API compatibility only and is not used by the system.", + "The replication cycle is running.", + "The replication cycle is paused.", + "The replication cycle finished with errors.", + "The replication cycle finished successfully." + ], + "type": "string" + }, "steps": { "description": "The cycle's steps list representing its progress.", "items": { diff --git a/vmmigration/v1alpha1/vmmigration-gen.go b/vmmigration/v1alpha1/vmmigration-gen.go index d5f2b0347ed..3bfb8a49f21 100644 --- a/vmmigration/v1alpha1/vmmigration-gen.go +++ b/vmmigration/v1alpha1/vmmigration-gen.go @@ -219,6 +219,7 @@ func NewProjectsLocationsSourcesMigratingVmsService(s *Service) *ProjectsLocatio rs := &ProjectsLocationsSourcesMigratingVmsService{s: s} rs.CloneJobs = NewProjectsLocationsSourcesMigratingVmsCloneJobsService(s) rs.CutoverJobs = NewProjectsLocationsSourcesMigratingVmsCutoverJobsService(s) + rs.ReplicationCycles = NewProjectsLocationsSourcesMigratingVmsReplicationCyclesService(s) return rs } @@ -228,6 +229,8 @@ type ProjectsLocationsSourcesMigratingVmsService struct { CloneJobs *ProjectsLocationsSourcesMigratingVmsCloneJobsService CutoverJobs *ProjectsLocationsSourcesMigratingVmsCutoverJobsService + + ReplicationCycles *ProjectsLocationsSourcesMigratingVmsReplicationCyclesService } func NewProjectsLocationsSourcesMigratingVmsCloneJobsService(s *Service) *ProjectsLocationsSourcesMigratingVmsCloneJobsService { @@ -248,6 +251,15 @@ type ProjectsLocationsSourcesMigratingVmsCutoverJobsService struct { s *Service } +func NewProjectsLocationsSourcesMigratingVmsReplicationCyclesService(s *Service) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesService { + rs := &ProjectsLocationsSourcesMigratingVmsReplicationCyclesService{s: s} + return rs +} + +type ProjectsLocationsSourcesMigratingVmsReplicationCyclesService struct { + s *Service +} + func NewProjectsLocationsSourcesUtilizationReportsService(s *Service) *ProjectsLocationsSourcesUtilizationReportsService { rs := &ProjectsLocationsSourcesUtilizationReportsService{s: s} return rs @@ -351,7 +363,7 @@ type AppliedLicense struct { // "TYPE_UNSPECIFIED" - Unspecified license for the OS. // "NONE" - No license available for the OS. // "PAYG" - The license type is Pay As You Go license type. - // "BYOL" - The license type is is Bring Your Own License type. + // "BYOL" - The license type is Bring Your Own License type. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "OsLicense") to @@ -1546,6 +1558,48 @@ func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListReplicationCyclesResponse: Response message for +// 'ListReplicationCycles' request. +type ListReplicationCyclesResponse struct { + // NextPageToken: Output only. 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"` + + // ReplicationCycles: Output only. The list of replication cycles + // response. + ReplicationCycles []*ReplicationCycle `json:"replicationCycles,omitempty"` + + // Unreachable: Output only. Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "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 *ListReplicationCyclesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListReplicationCyclesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListSourcesResponse: Response message for 'ListSources' request. type ListSourcesResponse struct { // NextPageToken: Output only. A token, which can be sent as @@ -2193,9 +2247,16 @@ func (s *ReplicatingStep) MarshalJSON() ([]byte, error) { // ReplicationCycle: ReplicationCycle contains information about the // current replication cycle status. type ReplicationCycle struct { + // CycleNumber: The cycle's ordinal number. + CycleNumber int64 `json:"cycleNumber,omitempty"` + // EndTime: The time the replication cycle has ended. EndTime string `json:"endTime,omitempty"` + // Error: Provides details on the state of the cycle in case of an + // error. + Error *Status `json:"error,omitempty"` + // Name: The identifier of the ReplicationCycle. Name string `json:"name,omitempty"` @@ -2208,6 +2269,17 @@ type ReplicationCycle struct { // StartTime: The time the replication cycle has started. StartTime string `json:"startTime,omitempty"` + // State: State of the MigratingVm. + // + // Possible values: + // "STATE_UNSPECIFIED" - The state is unknown. This is used for API + // compatibility only and is not used by the system. + // "RUNNING" - The replication cycle is running. + // "PAUSED" - The replication cycle is paused. + // "FAILED" - The replication cycle finished with errors. + // "SUCCEEDED" - The replication cycle finished successfully. + State string `json:"state,omitempty"` + // Steps: The cycle's steps list representing its progress. Steps []*CycleStep `json:"steps,omitempty"` @@ -2215,7 +2287,11 @@ type ReplicationCycle struct { // was paused. TotalPauseDuration string `json:"totalPauseDuration,omitempty"` - // ForceSendFields is a list of field names (e.g. "EndTime") to + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CycleNumber") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2223,10 +2299,10 @@ type ReplicationCycle struct { // 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 + // NullFields is a list of field names (e.g. "CycleNumber") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -10030,6 +10106,374 @@ func (c *ProjectsLocationsSourcesMigratingVmsCutoverJobsListCall) Pages(ctx cont } } +// method id "vmmigration.projects.locations.sources.migratingVms.replicationCycles.get": + +type ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single ReplicationCycle. +// +// - name: The name of the ReplicationCycle. +func (r *ProjectsLocationsSourcesMigratingVmsReplicationCyclesService) Get(name string) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall { + c := &ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall{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 *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall { + 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 *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall { + 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 *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall) Context(ctx context.Context) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-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, "v1alpha1/{+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 "vmmigration.projects.locations.sources.migratingVms.replicationCycles.get" call. +// Exactly one of *ReplicationCycle or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ReplicationCycle.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall) Do(opts ...googleapi.CallOption) (*ReplicationCycle, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ReplicationCycle{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets details of a single ReplicationCycle.", + // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/migratingVms/{migratingVmsId}/replicationCycles/{replicationCyclesId}", + // "httpMethod": "GET", + // "id": "vmmigration.projects.locations.sources.migratingVms.replicationCycles.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the ReplicationCycle.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+/migratingVms/[^/]+/replicationCycles/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+name}", + // "response": { + // "$ref": "ReplicationCycle" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "vmmigration.projects.locations.sources.migratingVms.replicationCycles.list": + +type ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists ReplicationCycles in a given MigratingVM. +// +// - parent: The parent, which owns this collection of +// ReplicationCycles. +func (r *ProjectsLocationsSourcesMigratingVmsReplicationCyclesService) List(parent string) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall { + c := &ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": The filter request. +func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) Filter(filter string) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": the order by fields +// for the result. +func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) OrderBy(orderBy string) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of replication cycles to return. The service may return fewer than +// this value. If unspecified, at most 100 migrating VMs will be +// returned. The maximum value is 100; values above 100 will be coerced +// to 100. +func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) PageSize(pageSize int64) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Required. A page +// token, received from a previous `ListReplicationCycles` call. Provide +// this to retrieve the subsequent page. When paginating, all other +// parameters provided to `ListReplicationCycles` must match the call +// that provided the page token. +func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) PageToken(pageToken string) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall { + 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 *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall { + 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 *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall { + 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 *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) Context(ctx context.Context) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-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, "v1alpha1/{+parent}/replicationCycles") + 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 "vmmigration.projects.locations.sources.migratingVms.replicationCycles.list" call. +// Exactly one of *ListReplicationCyclesResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListReplicationCyclesResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) Do(opts ...googleapi.CallOption) (*ListReplicationCyclesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListReplicationCyclesResponse{ + ServerResponse: googleapi.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 ReplicationCycles in a given MigratingVM.", + // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/migratingVms/{migratingVmsId}/replicationCycles", + // "httpMethod": "GET", + // "id": "vmmigration.projects.locations.sources.migratingVms.replicationCycles.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. The filter request.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Optional. the order by fields for the result.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. The maximum number of replication cycles to return. The service may return fewer than this value. If unspecified, at most 100 migrating VMs will be returned. The maximum value is 100; values above 100 will be coerced to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Required. A page token, received from a previous `ListReplicationCycles` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReplicationCycles` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent, which owns this collection of ReplicationCycles.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+/migratingVms/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+parent}/replicationCycles", + // "response": { + // "$ref": "ListReplicationCyclesResponse" + // }, + // "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 *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) Pages(ctx context.Context, f func(*ListReplicationCyclesResponse) 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 "vmmigration.projects.locations.sources.utilizationReports.create": type ProjectsLocationsSourcesUtilizationReportsCreateCall struct {