From 4dca4e00ad5b16c8a06dec1c4ae9d3b5f917406a Mon Sep 17 00:00:00 2001 From: Cody Oss <6331106+codyoss@users.noreply.github.com> Date: Wed, 11 Jan 2023 23:00:22 +0000 Subject: [PATCH] feat: re-enable integrations:v1 (#1801) Backend changes were made so this API generates. --- google-api-go-generator/gen.go | 3 +- integrations/v1/integrations-api.json | 367 +----------- integrations/v1/integrations-gen.go | 834 +------------------------- 3 files changed, 24 insertions(+), 1180 deletions(-) diff --git a/google-api-go-generator/gen.go b/google-api-go-generator/gen.go index 9f09583e4c6..56befdf257d 100644 --- a/google-api-go-generator/gen.go +++ b/google-api-go-generator/gen.go @@ -68,8 +68,7 @@ var ( // skipAPIGeneration is a set of APIs to not generate when generating all clients. var skipAPIGeneration = map[string]bool{ - "sql:v1beta4": true, - "integrations:v1": true, + "sql:v1beta4": true, } // API represents an API to generate, as well as its state while it's diff --git a/integrations/v1/integrations-api.json b/integrations/v1/integrations-api.json index 032bc43c24e..96fb18df3bf 100644 --- a/integrations/v1/integrations-api.json +++ b/integrations/v1/integrations-api.json @@ -1040,34 +1040,6 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "monitorexecutionstats": { - "description": "Get execution stats", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}:monitorexecutionstats", - "httpMethod": "POST", - "id": "integrations.projects.locations.integrations.monitorexecutionstats", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The parent resource name: {parent=projects/*/locations/*}.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}:monitorexecutionstats", - "request": { - "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest" - }, - "response": { - "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "schedule": { "description": "Schedules an integration for execution by passing the trigger id and the scheduled time in the request body.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}:schedule", @@ -2397,34 +2369,6 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "monitorexecutionstats": { - "description": "Get execution stats", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:monitorexecutionstats", - "httpMethod": "POST", - "id": "integrations.projects.locations.products.integrations.monitorexecutionstats", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The parent resource name: {parent=projects/*/locations/*}.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}:monitorexecutionstats", - "request": { - "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest" - }, - "response": { - "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "schedule": { "description": "Schedules an integration for execution by passing the trigger id and the scheduled time in the request body.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:schedule", @@ -3977,7 +3921,7 @@ } } }, - "revision": "20221122", + "revision": "20230103", "rootUrl": "https://integrations.googleapis.com/", "schemas": { "CrmlogErrorCode": { @@ -4118,115 +4062,6 @@ }, "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": { @@ -6479,6 +6314,9 @@ "resolvedBy": { "type": "string" }, + "resolvedByCpi": { + "type": "string" + }, "timestamp": { "format": "google-datetime", "type": "string" @@ -8711,7 +8549,7 @@ }, "nodeConfig": { "$ref": "GoogleCloudConnectorsV1NodeConfig", - "description": "Optional. Configuration for the connection." + "description": "Optional. Node configuration for the connection." }, "serviceAccount": { "description": "Optional. Service account needed for runtime plane to access GCP resources.", @@ -8830,7 +8668,7 @@ "type": "object" }, "GoogleCloudConnectorsV1NodeConfig": { - "description": "Configuration for the connection.", + "description": "Node configuration for the connection.", "id": "GoogleCloudConnectorsV1NodeConfig", "properties": { "maxNodeCount": { @@ -10645,199 +10483,6 @@ }, "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", diff --git a/integrations/v1/integrations-gen.go b/integrations/v1/integrations-gen.go index 1af95b4a26d..b2be2a684ae 100644 --- a/integrations/v1/integrations-gen.go +++ b/integrations/v1/integrations-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -589,228 +589,6 @@ func (s *CrmlogErrorCode) MarshalJSON() ([]byte, error) { 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 @@ -3965,6 +3743,8 @@ func (s *EnterpriseCrmEventbusProtoSuspensionResolutionInfo) MarshalJSON() ([]by type EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit struct { ResolvedBy string `json:"resolvedBy,omitempty"` + ResolvedByCpi string `json:"resolvedByCpi,omitempty"` + Timestamp string `json:"timestamp,omitempty"` // ForceSendFields is a list of field names (e.g. "ResolvedBy") to @@ -6748,7 +6528,7 @@ type GoogleCloudConnectorsV1Connection struct { // projects/{project}/locations/{location}/connections/{connection} Name string `json:"name,omitempty"` - // NodeConfig: Optional. Configuration for the connection. + // NodeConfig: Optional. Node configuration for the connection. NodeConfig *GoogleCloudConnectorsV1NodeConfig `json:"nodeConfig,omitempty"` // ServiceAccount: Optional. Service account needed for runtime plane to @@ -6939,7 +6719,8 @@ func (s *GoogleCloudConnectorsV1LockConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1NodeConfig: Configuration for the connection. +// GoogleCloudConnectorsV1NodeConfig: Node configuration for the +// connection. type GoogleCloudConnectorsV1NodeConfig struct { // MaxNodeCount: Maximum number of nodes in the runtime nodes. MaxNodeCount int64 `json:"maxNodeCount,omitempty"` @@ -9828,322 +9609,31 @@ func (s *GoogleCloudIntegrationsV1alphaListSuspensionsResponse) MarshalJSON() ([ // 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"` + 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. "AplosSeriesListData") - // to unconditionally include in API requests. By default, fields with + // 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. "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 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 *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse +func (s *GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } @@ -16609,151 +16099,6 @@ func (c *ProjectsLocationsIntegrationsListCall) Pages(ctx context.Context, f fun } } -// method id "integrations.projects.locations.integrations.monitorexecutionstats": - -type ProjectsLocationsIntegrationsMonitorexecutionstatsCall struct { - s *Service - parent string - googlecloudintegrationsv1alphamonitorexecutionstatsrequest *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Monitorexecutionstats: Get execution stats -// -// - parent: The parent resource name: {parent=projects/*/locations/*}. -func (r *ProjectsLocationsIntegrationsService) Monitorexecutionstats(parent string, googlecloudintegrationsv1alphamonitorexecutionstatsrequest *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest) *ProjectsLocationsIntegrationsMonitorexecutionstatsCall { - c := &ProjectsLocationsIntegrationsMonitorexecutionstatsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudintegrationsv1alphamonitorexecutionstatsrequest = googlecloudintegrationsv1alphamonitorexecutionstatsrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsIntegrationsMonitorexecutionstatsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsMonitorexecutionstatsCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsIntegrationsMonitorexecutionstatsCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsMonitorexecutionstatsCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsIntegrationsMonitorexecutionstatsCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsIntegrationsMonitorexecutionstatsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphamonitorexecutionstatsrequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:monitorexecutionstats") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "integrations.projects.locations.integrations.monitorexecutionstats" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse.ServerRes -// ponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsIntegrationsMonitorexecutionstatsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Get execution stats", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}:monitorexecutionstats", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.monitorexecutionstats", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The parent resource name: {parent=projects/*/locations/*}.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}:monitorexecutionstats", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "integrations.projects.locations.integrations.schedule": type ProjectsLocationsIntegrationsScheduleCall struct { @@ -23201,151 +22546,6 @@ func (c *ProjectsLocationsProductsIntegrationsListCall) Pages(ctx context.Contex } } -// method id "integrations.projects.locations.products.integrations.monitorexecutionstats": - -type ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall struct { - s *Service - parent string - googlecloudintegrationsv1alphamonitorexecutionstatsrequest *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Monitorexecutionstats: Get execution stats -// -// - parent: The parent resource name: {parent=projects/*/locations/*}. -func (r *ProjectsLocationsProductsIntegrationsService) Monitorexecutionstats(parent string, googlecloudintegrationsv1alphamonitorexecutionstatsrequest *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest) *ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall { - c := &ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudintegrationsv1alphamonitorexecutionstatsrequest = googlecloudintegrationsv1alphamonitorexecutionstatsrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphamonitorexecutionstatsrequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:monitorexecutionstats") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "integrations.projects.locations.products.integrations.monitorexecutionstats" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse.ServerRes -// ponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Get execution stats", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:monitorexecutionstats", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.monitorexecutionstats", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The parent resource name: {parent=projects/*/locations/*}.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}:monitorexecutionstats", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "integrations.projects.locations.products.integrations.schedule": type ProjectsLocationsProductsIntegrationsScheduleCall struct {