From cfd97f4f6921c22be4bbe7f96ae5996fcf616d45 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 15 Apr 2023 07:10:47 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- apigee/v1/apigee-api.json | 16 +- apigee/v1/apigee-gen.go | 29 +- chromemanagement/v1/chromemanagement-api.json | 214 +-- chromemanagement/v1/chromemanagement-gen.go | 652 --------- container/v1/container-api.json | 12 +- container/v1/container-gen.go | 25 + datamigration/v1/datamigration-api.json | 92 +- datamigration/v1/datamigration-gen.go | 49 + file/v1/file-api.json | 53 +- file/v1/file-gen.go | 182 +++ file/v1beta1/file-api.json | 12 +- file/v1beta1/file-gen.go | 15 +- gkehub/v1/gkehub-api.json | 48 +- gkehub/v1/gkehub-gen.go | 89 ++ gkehub/v1alpha/gkehub-api.json | 48 +- gkehub/v1alpha/gkehub-gen.go | 89 ++ gkehub/v1alpha2/gkehub-api.json | 33 +- gkehub/v1alpha2/gkehub-gen.go | 57 + gkehub/v1beta/gkehub-api.json | 305 +++- gkehub/v1beta/gkehub-gen.go | 1298 ++++++++++++++++- gkehub/v1beta1/gkehub-api.json | 33 +- gkehub/v1beta1/gkehub-gen.go | 57 + integrations/v1alpha/integrations-api.json | 71 +- integrations/v1alpha/integrations-gen.go | 98 ++ 24 files changed, 2632 insertions(+), 945 deletions(-) diff --git a/apigee/v1/apigee-api.json b/apigee/v1/apigee-api.json index 073ef2f33d1..676536aff1a 100644 --- a/apigee/v1/apigee-api.json +++ b/apigee/v1/apigee-api.json @@ -8744,7 +8744,7 @@ } } }, - "revision": "20230329", + "revision": "20230410", "rootUrl": "https://apigee.googleapis.com/", "schemas": { "EdgeConfigstoreBundleBadBundle": { @@ -11960,7 +11960,7 @@ "id": "GoogleCloudApigeeV1KeyValueMap", "properties": { "encrypted": { - "description": "Optional. Flag that specifies whether entry values will be encrypted. You must set this value to `true`. Apigee X and hybrid do not support unencrytped key value maps.", + "description": "Required. Flag that specifies whether entry values will be encrypted. This field is retained for backward compatibility and the value of encrypted will always be `true`. Apigee X and hybrid do not support unencrypted key value maps.", "type": "boolean" }, "name": { @@ -12897,6 +12897,14 @@ "description": "Required. DEPRECATED: This field will be deprecated once Apigee supports DRZ. Primary Google Cloud region for analytics data storage. For valid values, see [Create an Apigee organization](https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).", "type": "string" }, + "apiConsumerDataEncryptionKeyName": { + "description": "Cloud KMS key name used for encrypting API consumer data. Required for US/EU regions when [BillingType](#BillingType) is `SUBSCRIPTION`. When [BillingType](#BillingType) is `EVALUATION` or the region is not US/EU, a Google-Managed encryption key will be used. Format: `projects/*/locations/*/keyRings/*/cryptoKeys/*`", + "type": "string" + }, + "apiConsumerDataLocation": { + "description": "This field is needed only for customers with control plane in US or EU. Apigee stores some control plane data only in single region. This field determines which single region Apigee should use. For example: \"us-west1\" when control plane is in US or \"europe-west2\" when control plane is in EU.", + "type": "string" + }, "apigeeProjectId": { "description": "Output only. Apigee Project ID associated with the organization. Use this project to allowlist Apigee in the Service Attachment when using private service connect with Apigee.", "readOnly": true, @@ -12935,6 +12943,10 @@ "readOnly": true, "type": "string" }, + "controlPlaneEncryptionKeyName": { + "description": "Cloud KMS key name used for encrypting control plane data that is stored in a multi region. Required when [BillingType](#BillingType) is `SUBSCRIPTION`. When [BillingType](#BillingType) is `EVALUATION`, a Google-Managed encryption key will be used. Format: `projects/*/locations/*/keyRings/*/cryptoKeys/*`", + "type": "string" + }, "createdAt": { "description": "Output only. Time that the Apigee organization was created in milliseconds since epoch.", "format": "int64", diff --git a/apigee/v1/apigee-gen.go b/apigee/v1/apigee-gen.go index 074f9059a19..9c507803110 100644 --- a/apigee/v1/apigee-gen.go +++ b/apigee/v1/apigee-gen.go @@ -5861,9 +5861,10 @@ func (s *GoogleCloudApigeeV1KeyValueEntry) MarshalJSON() ([]byte, error) { // GoogleCloudApigeeV1KeyValueMap: Collection of key/value string pairs. type GoogleCloudApigeeV1KeyValueMap struct { - // Encrypted: Optional. Flag that specifies whether entry values will be - // encrypted. You must set this value to `true`. Apigee X and hybrid do - // not support unencrytped key value maps. + // Encrypted: Required. Flag that specifies whether entry values will be + // encrypted. This field is retained for backward compatibility and the + // value of encrypted will always be `true`. Apigee X and hybrid do not + // support unencrypted key value maps. Encrypted bool `json:"encrypted,omitempty"` // Name: Required. ID of the key value map. @@ -7698,6 +7699,21 @@ type GoogleCloudApigeeV1Organization struct { // (https://cloud.google.com/apigee/docs/api-platform/get-started/create-org). AnalyticsRegion string `json:"analyticsRegion,omitempty"` + // ApiConsumerDataEncryptionKeyName: Cloud KMS key name used for + // encrypting API consumer data. Required for US/EU regions when + // BillingType (#BillingType) is `SUBSCRIPTION`. When BillingType + // (#BillingType) is `EVALUATION` or the region is not US/EU, a + // Google-Managed encryption key will be used. Format: + // `projects/*/locations/*/keyRings/*/cryptoKeys/*` + ApiConsumerDataEncryptionKeyName string `json:"apiConsumerDataEncryptionKeyName,omitempty"` + + // ApiConsumerDataLocation: This field is needed only for customers with + // control plane in US or EU. Apigee stores some control plane data only + // in single region. This field determines which single region Apigee + // should use. For example: "us-west1" when control plane is in US or + // "europe-west2" when control plane is in EU. + ApiConsumerDataLocation string `json:"apiConsumerDataLocation,omitempty"` + // ApigeeProjectId: Output only. Apigee Project ID associated with the // organization. Use this project to allowlist Apigee in the Service // Attachment when using private service connect with Apigee. @@ -7738,6 +7754,13 @@ type GoogleCloudApigeeV1Organization struct { // (#RuntimeType) is `CLOUD`. CaCertificate string `json:"caCertificate,omitempty"` + // ControlPlaneEncryptionKeyName: Cloud KMS key name used for encrypting + // control plane data that is stored in a multi region. Required when + // BillingType (#BillingType) is `SUBSCRIPTION`. When BillingType + // (#BillingType) is `EVALUATION`, a Google-Managed encryption key will + // be used. Format: `projects/*/locations/*/keyRings/*/cryptoKeys/*` + ControlPlaneEncryptionKeyName string `json:"controlPlaneEncryptionKeyName,omitempty"` + // CreatedAt: Output only. Time that the Apigee organization was created // in milliseconds since epoch. CreatedAt int64 `json:"createdAt,omitempty,string"` diff --git a/chromemanagement/v1/chromemanagement-api.json b/chromemanagement/v1/chromemanagement-api.json index 000ecd8e514..32933c95f8b 100644 --- a/chromemanagement/v1/chromemanagement-api.json +++ b/chromemanagement/v1/chromemanagement-api.json @@ -493,108 +493,6 @@ "https://www.googleapis.com/auth/chrome.management.reports.readonly" ] }, - "countPrintJobsByPrinter": { - "description": "Get a summary of printing done by each printer.", - "flatPath": "v1/customers/{customersId}/reports:countPrintJobsByPrinter", - "httpMethod": "GET", - "id": "chromemanagement.customers.reports.countPrintJobsByPrinter", - "parameterOrder": [ - "customer" - ], - "parameters": { - "customer": { - "description": "Required. Customer ID prefixed with \"customers/\" or \"customers/my_customer\" to use the customer associated to the account making the request.", - "location": "path", - "pattern": "^customers/[^/]+$", - "required": true, - "type": "string" - }, - "filter": { - "description": "Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Note: Only \u003e= and \u003c= comparators are supported in this filter. Supported filter fields: * complete_time", - "location": "query", - "type": "string" - }, - "orderBy": { - "description": "Field used to order results. If omitted, results will be ordered in ascending order of the 'printer' field. Supported order_by fields: * printer * job_count * device_count * user_count", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Maximum number of results to return. Maximum and default are 100.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Token to specify the page of the response to be returned.", - "location": "query", - "type": "string" - }, - "printerOrgUnitId": { - "description": "The ID of the organizational unit for printers. If specified, only data for printers from the specified organizational unit will be returned. If omitted, data for printers from all organizational units will be returned.", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+customer}/reports:countPrintJobsByPrinter", - "response": { - "$ref": "GoogleChromeManagementV1CountPrintJobsByPrinterResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/chrome.management.reports.readonly" - ] - }, - "countPrintJobsByUser": { - "description": "Get a summary of printing done by each user.", - "flatPath": "v1/customers/{customersId}/reports:countPrintJobsByUser", - "httpMethod": "GET", - "id": "chromemanagement.customers.reports.countPrintJobsByUser", - "parameterOrder": [ - "customer" - ], - "parameters": { - "customer": { - "description": "Required. Customer ID prefixed with \"customers/\" or \"customers/my_customer\" to use the customer associated to the account making the request.", - "location": "path", - "pattern": "^customers/[^/]+$", - "required": true, - "type": "string" - }, - "filter": { - "description": "Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Note: Only \u003e= and \u003c= comparators are supported in this filter. Supported filter fields: * complete_time", - "location": "query", - "type": "string" - }, - "orderBy": { - "description": "Field used to order results. If omitted, results will be ordered in ascending order of the 'user_email' field. Supported order_by fields: * user_email * job_count * printer_count * device_count", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Maximum number of results to return. Maximum and default are 100.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Token to specify the page of the response to be returned.", - "location": "query", - "type": "string" - }, - "printerOrgUnitId": { - "description": "The ID of the organizational unit for printers. If specified, only print jobs initiated with printers from the specified organizational unit will be counted. If omitted, all print jobs will be counted.", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+customer}/reports:countPrintJobsByUser", - "response": { - "$ref": "GoogleChromeManagementV1CountPrintJobsByUserResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/chrome.management.reports.readonly" - ] - }, "findInstalledAppDevices": { "description": "Generate report of managed Chrome browser devices that have a specified app installed.", "flatPath": "v1/customers/{customersId}/reports:findInstalledAppDevices", @@ -896,7 +794,7 @@ } } }, - "revision": "20230330", + "revision": "20230413", "rootUrl": "https://chromemanagement.googleapis.com/", "schemas": { "GoogleChromeManagementV1AndroidAppInfo": { @@ -1683,52 +1581,6 @@ }, "type": "object" }, - "GoogleChromeManagementV1CountPrintJobsByPrinterResponse": { - "description": "Response containing a summary printing report for each printer from the specified organizational unit for the requested time interval.", - "id": "GoogleChromeManagementV1CountPrintJobsByPrinterResponse", - "properties": { - "nextPageToken": { - "description": "Pagination token for requesting the next page.", - "type": "string" - }, - "printerReports": { - "description": "List of PrinterReports matching request.", - "items": { - "$ref": "GoogleChromeManagementV1PrinterReport" - }, - "type": "array" - }, - "totalSize": { - "description": "Total number of printers matching request.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "GoogleChromeManagementV1CountPrintJobsByUserResponse": { - "description": "Response containing a summary printing report for each user that has initiated a print job with a printer from the specified organizational unit during the requested time interval.", - "id": "GoogleChromeManagementV1CountPrintJobsByUserResponse", - "properties": { - "nextPageToken": { - "description": "Pagination token for requesting the next page.", - "type": "string" - }, - "totalSize": { - "description": "Total number of users matching request.", - "format": "int64", - "type": "string" - }, - "userPrintReports": { - "description": "List of UserPrintReports matching request.", - "items": { - "$ref": "GoogleChromeManagementV1UserPrintReport" - }, - "type": "array" - } - }, - "type": "object" - }, "GoogleChromeManagementV1CpuInfo": { "description": "CPU specifications for the device * This field provides device information, which is static and will not change over time. * Data for this field is controlled via policy: [ReportDeviceCpuInfo](https://chromeenterprise.google/policies/#ReportDeviceCpuInfo) * Data Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: No * Reported for affiliated users only: N/A", "id": "GoogleChromeManagementV1CpuInfo", @@ -2700,40 +2552,6 @@ }, "type": "object" }, - "GoogleChromeManagementV1PrinterReport": { - "description": "Report for CountPrintJobsByPrinter, contains statistics on printer usage. Contains the total number of print jobs initiated with this printer, the number of users and the number of devices that have initiated at least one print job with this printer.", - "id": "GoogleChromeManagementV1PrinterReport", - "properties": { - "deviceCount": { - "description": "Number of chrome devices that have been used to send print jobs to the specified printer.", - "format": "int64", - "type": "string" - }, - "jobCount": { - "description": "Number of print jobs sent to the printer.", - "format": "int64", - "type": "string" - }, - "printer": { - "description": "Printer name.", - "type": "string" - }, - "printerId": { - "description": "Printer API ID.", - "type": "string" - }, - "printerModel": { - "description": "Printer model.", - "type": "string" - }, - "userCount": { - "description": "Number of users that have sent print jobs to the printer.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, "GoogleChromeManagementV1StorageInfo": { "description": "Status data for storage. * This field is telemetry information and this will change over time as the device is utilized. * Data for this field is controlled via policy: [ReportDeviceStorageStatus](https://chromeenterprise.google/policies/#ReportDeviceStorageStatus) * Data Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: No * Reported for affiliated users only: N/A", "id": "GoogleChromeManagementV1StorageInfo", @@ -3341,36 +3159,6 @@ }, "type": "object" }, - "GoogleChromeManagementV1UserPrintReport": { - "description": "Report for CountPrintJobsByUser, contains printing statistics for a user. Contains the number of printers, the number of devices used to initiate print jobs, and the number of print jobs initiated.", - "id": "GoogleChromeManagementV1UserPrintReport", - "properties": { - "deviceCount": { - "description": "Number of chrome devices that have been used to initiate print jobs by the user.", - "format": "int64", - "type": "string" - }, - "jobCount": { - "description": "Number of print jobs initiated by the user.", - "format": "int64", - "type": "string" - }, - "printerCount": { - "description": "Number of printers used by the user.", - "format": "int64", - "type": "string" - }, - "userEmail": { - "description": "The primary e-mail address of the user.", - "type": "string" - }, - "userId": { - "description": "The unique Directory API ID of the user.", - "type": "string" - } - }, - "type": "object" - }, "GoogleRpcStatus": { "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": "GoogleRpcStatus", diff --git a/chromemanagement/v1/chromemanagement-gen.go b/chromemanagement/v1/chromemanagement-gen.go index eb93da76c48..8d7a99a77d9 100644 --- a/chromemanagement/v1/chromemanagement-gen.go +++ b/chromemanagement/v1/chromemanagement-gen.go @@ -1301,87 +1301,6 @@ func (s *GoogleChromeManagementV1CountInstalledAppsResponse) MarshalJSON() ([]by return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleChromeManagementV1CountPrintJobsByPrinterResponse: Response -// containing a summary printing report for each printer from the -// specified organizational unit for the requested time interval. -type GoogleChromeManagementV1CountPrintJobsByPrinterResponse struct { - // NextPageToken: Pagination token for requesting the next page. - NextPageToken string `json:"nextPageToken,omitempty"` - - // PrinterReports: List of PrinterReports matching request. - PrinterReports []*GoogleChromeManagementV1PrinterReport `json:"printerReports,omitempty"` - - // TotalSize: Total number of printers matching request. - TotalSize int64 `json:"totalSize,omitempty,string"` - - // 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 *GoogleChromeManagementV1CountPrintJobsByPrinterResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChromeManagementV1CountPrintJobsByPrinterResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleChromeManagementV1CountPrintJobsByUserResponse: Response -// containing a summary printing report for each user that has initiated -// a print job with a printer from the specified organizational unit -// during the requested time interval. -type GoogleChromeManagementV1CountPrintJobsByUserResponse struct { - // NextPageToken: Pagination token for requesting the next page. - NextPageToken string `json:"nextPageToken,omitempty"` - - // TotalSize: Total number of users matching request. - TotalSize int64 `json:"totalSize,omitempty,string"` - - // UserPrintReports: List of UserPrintReports matching request. - UserPrintReports []*GoogleChromeManagementV1UserPrintReport `json:"userPrintReports,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 *GoogleChromeManagementV1CountPrintJobsByUserResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChromeManagementV1CountPrintJobsByUserResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleChromeManagementV1CpuInfo: CPU specifications for the device * // This field provides device information, which is static and will not // change over time. * Data for this field is controlled via policy: @@ -2675,54 +2594,6 @@ func (s *GoogleChromeManagementV1PeripheralsReport) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleChromeManagementV1PrinterReport: Report for -// CountPrintJobsByPrinter, contains statistics on printer usage. -// Contains the total number of print jobs initiated with this printer, -// the number of users and the number of devices that have initiated at -// least one print job with this printer. -type GoogleChromeManagementV1PrinterReport struct { - // DeviceCount: Number of chrome devices that have been used to send - // print jobs to the specified printer. - DeviceCount int64 `json:"deviceCount,omitempty,string"` - - // JobCount: Number of print jobs sent to the printer. - JobCount int64 `json:"jobCount,omitempty,string"` - - // Printer: Printer name. - Printer string `json:"printer,omitempty"` - - // PrinterId: Printer API ID. - PrinterId string `json:"printerId,omitempty"` - - // PrinterModel: Printer model. - PrinterModel string `json:"printerModel,omitempty"` - - // UserCount: Number of users that have sent print jobs to the printer. - UserCount int64 `json:"userCount,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "DeviceCount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeviceCount") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleChromeManagementV1PrinterReport) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChromeManagementV1PrinterReport - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleChromeManagementV1StorageInfo: Status data for storage. * This // field is telemetry information and this will change over time as the // device is utilized. * Data for this field is controlled via policy: @@ -3520,50 +3391,6 @@ func (s *GoogleChromeManagementV1UsbPeripheralReport) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleChromeManagementV1UserPrintReport: Report for -// CountPrintJobsByUser, contains printing statistics for a user. -// Contains the number of printers, the number of devices used to -// initiate print jobs, and the number of print jobs initiated. -type GoogleChromeManagementV1UserPrintReport struct { - // DeviceCount: Number of chrome devices that have been used to initiate - // print jobs by the user. - DeviceCount int64 `json:"deviceCount,omitempty,string"` - - // JobCount: Number of print jobs initiated by the user. - JobCount int64 `json:"jobCount,omitempty,string"` - - // PrinterCount: Number of printers used by the user. - PrinterCount int64 `json:"printerCount,omitempty,string"` - - // UserEmail: The primary e-mail address of the user. - UserEmail string `json:"userEmail,omitempty"` - - // UserId: The unique Directory API ID of the user. - UserId string `json:"userId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DeviceCount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeviceCount") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleChromeManagementV1UserPrintReport) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChromeManagementV1UserPrintReport - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleRpcStatus: 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 @@ -5499,485 +5326,6 @@ func (c *CustomersReportsCountInstalledAppsCall) Pages(ctx context.Context, f fu } } -// method id "chromemanagement.customers.reports.countPrintJobsByPrinter": - -type CustomersReportsCountPrintJobsByPrinterCall struct { - s *Service - customer string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// CountPrintJobsByPrinter: Get a summary of printing done by each -// printer. -// -// - customer: Customer ID prefixed with "customers/" or -// "customers/my_customer" to use the customer associated to the -// account making the request. -func (r *CustomersReportsService) CountPrintJobsByPrinter(customer string) *CustomersReportsCountPrintJobsByPrinterCall { - c := &CustomersReportsCountPrintJobsByPrinterCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.customer = customer - return c -} - -// Filter sets the optional parameter "filter": Query string to filter -// results, AND-separated fields in EBNF syntax. Note: OR operations are -// not supported in this filter. Note: Only >= and <= comparators are -// supported in this filter. Supported filter fields: * complete_time -func (c *CustomersReportsCountPrintJobsByPrinterCall) Filter(filter string) *CustomersReportsCountPrintJobsByPrinterCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": Field used to order -// results. If omitted, results will be ordered in ascending order of -// the 'printer' field. Supported order_by fields: * printer * job_count -// * device_count * user_count -func (c *CustomersReportsCountPrintJobsByPrinterCall) OrderBy(orderBy string) *CustomersReportsCountPrintJobsByPrinterCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": Maximum number of -// results to return. Maximum and default are 100. -func (c *CustomersReportsCountPrintJobsByPrinterCall) PageSize(pageSize int64) *CustomersReportsCountPrintJobsByPrinterCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": Token to specify -// the page of the response to be returned. -func (c *CustomersReportsCountPrintJobsByPrinterCall) PageToken(pageToken string) *CustomersReportsCountPrintJobsByPrinterCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// PrinterOrgUnitId sets the optional parameter "printerOrgUnitId": The -// ID of the organizational unit for printers. If specified, only data -// for printers from the specified organizational unit will be returned. -// If omitted, data for printers from all organizational units will be -// returned. -func (c *CustomersReportsCountPrintJobsByPrinterCall) PrinterOrgUnitId(printerOrgUnitId string) *CustomersReportsCountPrintJobsByPrinterCall { - c.urlParams_.Set("printerOrgUnitId", printerOrgUnitId) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *CustomersReportsCountPrintJobsByPrinterCall) Fields(s ...googleapi.Field) *CustomersReportsCountPrintJobsByPrinterCall { - 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 *CustomersReportsCountPrintJobsByPrinterCall) IfNoneMatch(entityTag string) *CustomersReportsCountPrintJobsByPrinterCall { - 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 *CustomersReportsCountPrintJobsByPrinterCall) Context(ctx context.Context) *CustomersReportsCountPrintJobsByPrinterCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *CustomersReportsCountPrintJobsByPrinterCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CustomersReportsCountPrintJobsByPrinterCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-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:countPrintJobsByPrinter") - 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.countPrintJobsByPrinter" call. -// Exactly one of -// *GoogleChromeManagementV1CountPrintJobsByPrinterResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleChromeManagementV1CountPrintJobsByPrinterResponse.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 *CustomersReportsCountPrintJobsByPrinterCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1CountPrintJobsByPrinterResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleChromeManagementV1CountPrintJobsByPrinterResponse{ - ServerResponse: googleapi.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 summary of printing done by each printer.", - // "flatPath": "v1/customers/{customersId}/reports:countPrintJobsByPrinter", - // "httpMethod": "GET", - // "id": "chromemanagement.customers.reports.countPrintJobsByPrinter", - // "parameterOrder": [ - // "customer" - // ], - // "parameters": { - // "customer": { - // "description": "Required. Customer ID prefixed with \"customers/\" or \"customers/my_customer\" to use the customer associated to the account making the request.", - // "location": "path", - // "pattern": "^customers/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Note: Only \u003e= and \u003c= comparators are supported in this filter. Supported filter fields: * complete_time", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field used to order results. If omitted, results will be ordered in ascending order of the 'printer' field. Supported order_by fields: * printer * job_count * device_count * user_count", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Maximum number of results to return. Maximum and default are 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Token to specify the page of the response to be returned.", - // "location": "query", - // "type": "string" - // }, - // "printerOrgUnitId": { - // "description": "The ID of the organizational unit for printers. If specified, only data for printers from the specified organizational unit will be returned. If omitted, data for printers from all organizational units will be returned.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+customer}/reports:countPrintJobsByPrinter", - // "response": { - // "$ref": "GoogleChromeManagementV1CountPrintJobsByPrinterResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/chrome.management.reports.readonly" - // ] - // } - -} - -// 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 *CustomersReportsCountPrintJobsByPrinterCall) Pages(ctx context.Context, f func(*GoogleChromeManagementV1CountPrintJobsByPrinterResponse) 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 "chromemanagement.customers.reports.countPrintJobsByUser": - -type CustomersReportsCountPrintJobsByUserCall struct { - s *Service - customer string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// CountPrintJobsByUser: Get a summary of printing done by each user. -// -// - customer: Customer ID prefixed with "customers/" or -// "customers/my_customer" to use the customer associated to the -// account making the request. -func (r *CustomersReportsService) CountPrintJobsByUser(customer string) *CustomersReportsCountPrintJobsByUserCall { - c := &CustomersReportsCountPrintJobsByUserCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.customer = customer - return c -} - -// Filter sets the optional parameter "filter": Query string to filter -// results, AND-separated fields in EBNF syntax. Note: OR operations are -// not supported in this filter. Note: Only >= and <= comparators are -// supported in this filter. Supported filter fields: * complete_time -func (c *CustomersReportsCountPrintJobsByUserCall) Filter(filter string) *CustomersReportsCountPrintJobsByUserCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": Field used to order -// results. If omitted, results will be ordered in ascending order of -// the 'user_email' field. Supported order_by fields: * user_email * -// job_count * printer_count * device_count -func (c *CustomersReportsCountPrintJobsByUserCall) OrderBy(orderBy string) *CustomersReportsCountPrintJobsByUserCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": Maximum number of -// results to return. Maximum and default are 100. -func (c *CustomersReportsCountPrintJobsByUserCall) PageSize(pageSize int64) *CustomersReportsCountPrintJobsByUserCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": Token to specify -// the page of the response to be returned. -func (c *CustomersReportsCountPrintJobsByUserCall) PageToken(pageToken string) *CustomersReportsCountPrintJobsByUserCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// PrinterOrgUnitId sets the optional parameter "printerOrgUnitId": The -// ID of the organizational unit for printers. If specified, only print -// jobs initiated with printers from the specified organizational unit -// will be counted. If omitted, all print jobs will be counted. -func (c *CustomersReportsCountPrintJobsByUserCall) PrinterOrgUnitId(printerOrgUnitId string) *CustomersReportsCountPrintJobsByUserCall { - c.urlParams_.Set("printerOrgUnitId", printerOrgUnitId) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *CustomersReportsCountPrintJobsByUserCall) Fields(s ...googleapi.Field) *CustomersReportsCountPrintJobsByUserCall { - 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 *CustomersReportsCountPrintJobsByUserCall) IfNoneMatch(entityTag string) *CustomersReportsCountPrintJobsByUserCall { - 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 *CustomersReportsCountPrintJobsByUserCall) Context(ctx context.Context) *CustomersReportsCountPrintJobsByUserCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *CustomersReportsCountPrintJobsByUserCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CustomersReportsCountPrintJobsByUserCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-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:countPrintJobsByUser") - 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.countPrintJobsByUser" call. -// Exactly one of *GoogleChromeManagementV1CountPrintJobsByUserResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleChromeManagementV1CountPrintJobsByUserResponse.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 *CustomersReportsCountPrintJobsByUserCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1CountPrintJobsByUserResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleChromeManagementV1CountPrintJobsByUserResponse{ - ServerResponse: googleapi.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 summary of printing done by each user.", - // "flatPath": "v1/customers/{customersId}/reports:countPrintJobsByUser", - // "httpMethod": "GET", - // "id": "chromemanagement.customers.reports.countPrintJobsByUser", - // "parameterOrder": [ - // "customer" - // ], - // "parameters": { - // "customer": { - // "description": "Required. Customer ID prefixed with \"customers/\" or \"customers/my_customer\" to use the customer associated to the account making the request.", - // "location": "path", - // "pattern": "^customers/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Note: Only \u003e= and \u003c= comparators are supported in this filter. Supported filter fields: * complete_time", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field used to order results. If omitted, results will be ordered in ascending order of the 'user_email' field. Supported order_by fields: * user_email * job_count * printer_count * device_count", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Maximum number of results to return. Maximum and default are 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Token to specify the page of the response to be returned.", - // "location": "query", - // "type": "string" - // }, - // "printerOrgUnitId": { - // "description": "The ID of the organizational unit for printers. If specified, only print jobs initiated with printers from the specified organizational unit will be counted. If omitted, all print jobs will be counted.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+customer}/reports:countPrintJobsByUser", - // "response": { - // "$ref": "GoogleChromeManagementV1CountPrintJobsByUserResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/chrome.management.reports.readonly" - // ] - // } - -} - -// 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 *CustomersReportsCountPrintJobsByUserCall) Pages(ctx context.Context, f func(*GoogleChromeManagementV1CountPrintJobsByUserResponse) 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 "chromemanagement.customers.reports.findInstalledAppDevices": type CustomersReportsFindInstalledAppDevicesCall struct { diff --git a/container/v1/container-api.json b/container/v1/container-api.json index 8a503d40778..4a97b184388 100644 --- a/container/v1/container-api.json +++ b/container/v1/container-api.json @@ -2487,7 +2487,7 @@ } } }, - "revision": "20230322", + "revision": "20230326", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2517,7 +2517,15 @@ "AdditionalPodRangesConfig": { "description": "AdditionalPodRangesConfig is the configuration for additional pod secondary ranges supporting the ClusterUpdate message.", "id": "AdditionalPodRangesConfig", - "properties": {}, + "properties": { + "podRangeNames": { + "description": "Name for pod secondary ipv4 range which has the actual range defined ahead.", + "items": { + "type": "string" + }, + "type": "array" + } + }, "type": "object" }, "AddonsConfig": { diff --git a/container/v1/container-gen.go b/container/v1/container-gen.go index 813cdc44aad..59312130297 100644 --- a/container/v1/container-gen.go +++ b/container/v1/container-gen.go @@ -327,6 +327,31 @@ func (s *AcceleratorConfig) MarshalJSON() ([]byte, error) { // configuration for additional pod secondary ranges supporting the // ClusterUpdate message. type AdditionalPodRangesConfig struct { + // PodRangeNames: Name for pod secondary ipv4 range which has the actual + // range defined ahead. + PodRangeNames []string `json:"podRangeNames,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PodRangeNames") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PodRangeNames") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AdditionalPodRangesConfig) MarshalJSON() ([]byte, error) { + type NoMethod AdditionalPodRangesConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // AddonsConfig: Configuration for the addons that can be automatically diff --git a/datamigration/v1/datamigration-api.json b/datamigration/v1/datamigration-api.json index 408ee842dcf..4c25a504314 100644 --- a/datamigration/v1/datamigration-api.json +++ b/datamigration/v1/datamigration-api.json @@ -1831,7 +1831,7 @@ } } }, - "revision": "20230327", + "revision": "20230405", "rootUrl": "https://datamigration.googleapis.com/", "schemas": { "AlloyDbConnectionProfile": { @@ -2846,6 +2846,46 @@ "description": "Target entity full name. The draft entity can also include a column, index or constraint using the same naming notation schema.table.column.", "type": "string" }, + "draftType": { + "description": "Type of draft entity.", + "enum": [ + "DATABASE_ENTITY_TYPE_UNSPECIFIED", + "DATABASE_ENTITY_TYPE_SCHEMA", + "DATABASE_ENTITY_TYPE_TABLE", + "DATABASE_ENTITY_TYPE_COLUMN", + "DATABASE_ENTITY_TYPE_CONSTRAINT", + "DATABASE_ENTITY_TYPE_INDEX", + "DATABASE_ENTITY_TYPE_TRIGGER", + "DATABASE_ENTITY_TYPE_VIEW", + "DATABASE_ENTITY_TYPE_SEQUENCE", + "DATABASE_ENTITY_TYPE_STORED_PROCEDURE", + "DATABASE_ENTITY_TYPE_FUNCTION", + "DATABASE_ENTITY_TYPE_SYNONYM", + "DATABASE_ENTITY_TYPE_DATABASE_PACKAGE", + "DATABASE_ENTITY_TYPE_UDT", + "DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW", + "DATABASE_ENTITY_TYPE_DATABASE" + ], + "enumDescriptions": [ + "Unspecified database entity type.", + "Schema.", + "Table.", + "Column.", + "Constraint.", + "Index.", + "Trigger.", + "View.", + "Sequence.", + "Stored Procedure.", + "Function.", + "Synonym.", + "Package.", + "UDT.", + "Materialized View.", + "Database." + ], + "type": "string" + }, "mappingLog": { "description": "Entity mapping log entries. Multiple rules can be effective and contribute changes to a converted entity, such as a rule can handle the entity name, another rule can handle an entity type. In addition, rules which did not change the entity are also logged along with the reason preventing them to do so.", "items": { @@ -2856,6 +2896,46 @@ "sourceEntity": { "description": "Source entity full name. The source entity can also be a column, index or constraint using the same naming notation schema.table.column.", "type": "string" + }, + "sourceType": { + "description": "Type of source entity.", + "enum": [ + "DATABASE_ENTITY_TYPE_UNSPECIFIED", + "DATABASE_ENTITY_TYPE_SCHEMA", + "DATABASE_ENTITY_TYPE_TABLE", + "DATABASE_ENTITY_TYPE_COLUMN", + "DATABASE_ENTITY_TYPE_CONSTRAINT", + "DATABASE_ENTITY_TYPE_INDEX", + "DATABASE_ENTITY_TYPE_TRIGGER", + "DATABASE_ENTITY_TYPE_VIEW", + "DATABASE_ENTITY_TYPE_SEQUENCE", + "DATABASE_ENTITY_TYPE_STORED_PROCEDURE", + "DATABASE_ENTITY_TYPE_FUNCTION", + "DATABASE_ENTITY_TYPE_SYNONYM", + "DATABASE_ENTITY_TYPE_DATABASE_PACKAGE", + "DATABASE_ENTITY_TYPE_UDT", + "DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW", + "DATABASE_ENTITY_TYPE_DATABASE" + ], + "enumDescriptions": [ + "Unspecified database entity type.", + "Schema.", + "Table.", + "Column.", + "Constraint.", + "Index.", + "Trigger.", + "View.", + "Sequence.", + "Stored Procedure.", + "Function.", + "Synonym.", + "Package.", + "UDT.", + "Materialized View.", + "Database." + ], + "type": "string" } }, "type": "object" @@ -3508,7 +3588,10 @@ "UNSUPPORTED_TABLE_DEFINITION", "UNSUPPORTED_DEFINER", "CANT_RESTART_RUNNING_MIGRATION", - "TABLES_WITH_LIMITED_SUPPORT" + "TABLES_WITH_LIMITED_SUPPORT", + "UNSUPPORTED_DATABASE_LOCALE", + "UNSUPPORTED_DATABASE_FDW_CONFIG", + "ERROR_RDBMS" ], "enumDescriptions": [ "An unknown error occurred", @@ -3531,7 +3614,10 @@ "The table definition is not support due to missing primary key or replica identity.", "The definer is not supported.", "Migration is already running at the time of restart request.", - "The source has tables with limited support. E.g. PostgreSQL tables without primary keys." + "The source has tables with limited support. E.g. PostgreSQL tables without primary keys.", + "The source uses an unsupported locale.", + "The source uses an unsupported Foreign Data Wrapper configuration.", + "There was an underlying RDBMS error." ], "readOnly": true, "type": "string" diff --git a/datamigration/v1/datamigration-gen.go b/datamigration/v1/datamigration-gen.go index 6e3e7339d1b..966562a54b1 100644 --- a/datamigration/v1/datamigration-gen.go +++ b/datamigration/v1/datamigration-gen.go @@ -1634,6 +1634,28 @@ type EntityMapping struct { // schema.table.column. DraftEntity string `json:"draftEntity,omitempty"` + // DraftType: Type of draft entity. + // + // Possible values: + // "DATABASE_ENTITY_TYPE_UNSPECIFIED" - Unspecified database entity + // type. + // "DATABASE_ENTITY_TYPE_SCHEMA" - Schema. + // "DATABASE_ENTITY_TYPE_TABLE" - Table. + // "DATABASE_ENTITY_TYPE_COLUMN" - Column. + // "DATABASE_ENTITY_TYPE_CONSTRAINT" - Constraint. + // "DATABASE_ENTITY_TYPE_INDEX" - Index. + // "DATABASE_ENTITY_TYPE_TRIGGER" - Trigger. + // "DATABASE_ENTITY_TYPE_VIEW" - View. + // "DATABASE_ENTITY_TYPE_SEQUENCE" - Sequence. + // "DATABASE_ENTITY_TYPE_STORED_PROCEDURE" - Stored Procedure. + // "DATABASE_ENTITY_TYPE_FUNCTION" - Function. + // "DATABASE_ENTITY_TYPE_SYNONYM" - Synonym. + // "DATABASE_ENTITY_TYPE_DATABASE_PACKAGE" - Package. + // "DATABASE_ENTITY_TYPE_UDT" - UDT. + // "DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW" - Materialized View. + // "DATABASE_ENTITY_TYPE_DATABASE" - Database. + DraftType string `json:"draftType,omitempty"` + // MappingLog: Entity mapping log entries. Multiple rules can be // effective and contribute changes to a converted entity, such as a // rule can handle the entity name, another rule can handle an entity @@ -1646,6 +1668,28 @@ type EntityMapping struct { // schema.table.column. SourceEntity string `json:"sourceEntity,omitempty"` + // SourceType: Type of source entity. + // + // Possible values: + // "DATABASE_ENTITY_TYPE_UNSPECIFIED" - Unspecified database entity + // type. + // "DATABASE_ENTITY_TYPE_SCHEMA" - Schema. + // "DATABASE_ENTITY_TYPE_TABLE" - Table. + // "DATABASE_ENTITY_TYPE_COLUMN" - Column. + // "DATABASE_ENTITY_TYPE_CONSTRAINT" - Constraint. + // "DATABASE_ENTITY_TYPE_INDEX" - Index. + // "DATABASE_ENTITY_TYPE_TRIGGER" - Trigger. + // "DATABASE_ENTITY_TYPE_VIEW" - View. + // "DATABASE_ENTITY_TYPE_SEQUENCE" - Sequence. + // "DATABASE_ENTITY_TYPE_STORED_PROCEDURE" - Stored Procedure. + // "DATABASE_ENTITY_TYPE_FUNCTION" - Function. + // "DATABASE_ENTITY_TYPE_SYNONYM" - Synonym. + // "DATABASE_ENTITY_TYPE_DATABASE_PACKAGE" - Package. + // "DATABASE_ENTITY_TYPE_UDT" - UDT. + // "DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW" - Materialized View. + // "DATABASE_ENTITY_TYPE_DATABASE" - Database. + SourceType string `json:"sourceType,omitempty"` + // ForceSendFields is a list of field names (e.g. "DraftEntity") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -2612,6 +2656,11 @@ type MigrationJobVerificationError struct { // the time of restart request. // "TABLES_WITH_LIMITED_SUPPORT" - The source has tables with limited // support. E.g. PostgreSQL tables without primary keys. + // "UNSUPPORTED_DATABASE_LOCALE" - The source uses an unsupported + // locale. + // "UNSUPPORTED_DATABASE_FDW_CONFIG" - The source uses an unsupported + // Foreign Data Wrapper configuration. + // "ERROR_RDBMS" - There was an underlying RDBMS error. ErrorCode string `json:"errorCode,omitempty"` // ErrorDetailMessage: Output only. A specific detailed error message, diff --git a/file/v1/file-api.json b/file/v1/file-api.json index 7a876470c6c..e8aab35713f 100644 --- a/file/v1/file-api.json +++ b/file/v1/file-api.json @@ -546,6 +546,34 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "revert": { + "description": "Revert an existing instance's file system to a specified snapshot.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:revert", + "httpMethod": "POST", + "id": "file.projects.locations.instances.revert", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}. The resource name of the instance, in the format", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:revert", + "request": { + "$ref": "RevertInstanceRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -846,7 +874,7 @@ } } }, - "revision": "20230312", + "revision": "20230405", "rootUrl": "https://file.googleapis.com/", "schemas": { "Backup": { @@ -934,14 +962,16 @@ "CREATING", "FINALIZING", "READY", - "DELETING" + "DELETING", + "INVALID" ], "enumDescriptions": [ "State not set.", "Backup is being created.", "Backup has been taken and the operation is being finalized. At this point, changes to the file share will not be reflected in the backup.", "Backup is available for use.", - "Backup is being deleted." + "Backup is being deleted.", + "Backup is not valid and cannot be used for creating new instances or restoring existing instances." ], "readOnly": true, "type": "string" @@ -1390,7 +1420,8 @@ "RESTORING", "SUSPENDED", "SUSPENDING", - "RESUMING" + "RESUMING", + "REVERTING" ], "enumDescriptions": [ "State not set.", @@ -1402,7 +1433,8 @@ "The instance is restoring a backup to an existing file share and may be unusable during this time.", "The instance is suspended. You can get further details from the `suspension_reasons` field of the `Instance` resource.", "The instance is in the process of becoming suspended.", - "The instance is in the process of becoming active." + "The instance is in the process of becoming active.", + "The instance is reverting to a snapshot." ], "readOnly": true, "type": "string" @@ -1854,6 +1886,17 @@ }, "type": "object" }, + "RevertInstanceRequest": { + "description": "RevertInstanceRequest reverts the given instance's file share to the specified snapshot.", + "id": "RevertInstanceRequest", + "properties": { + "targetSnapshotId": { + "description": "Required. The snapshot resource ID, in the format 'my-snapshot', where the specified ID is the {snapshot_id} of the fully qualified name like projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}", + "type": "string" + } + }, + "type": "object" + }, "Schedule": { "description": "Configure the schedule.", "id": "Schedule", diff --git a/file/v1/file-gen.go b/file/v1/file-gen.go index 3dda1452841..aa90e020bc6 100644 --- a/file/v1/file-gen.go +++ b/file/v1/file-gen.go @@ -280,6 +280,8 @@ type Backup struct { // reflected in the backup. // "READY" - Backup is available for use. // "DELETING" - Backup is being deleted. + // "INVALID" - Backup is not valid and cannot be used for creating new + // instances or restoring existing instances. State string `json:"state,omitempty"` // StorageBytes: Output only. The size of the storage used by the @@ -1028,6 +1030,7 @@ type Instance struct { // "SUSPENDING" - The instance is in the process of becoming // suspended. // "RESUMING" - The instance is in the process of becoming active. + // "REVERTING" - The instance is reverting to a snapshot. State string `json:"state,omitempty"` // StatusMessage: Output only. Additional information about the instance @@ -1728,6 +1731,40 @@ func (s *RestoreInstanceRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// RevertInstanceRequest: RevertInstanceRequest reverts the given +// instance's file share to the specified snapshot. +type RevertInstanceRequest struct { + // TargetSnapshotId: Required. The snapshot resource ID, in the format + // 'my-snapshot', where the specified ID is the {snapshot_id} of the + // fully qualified name like + // projects/{project_id}/locations/{location_id}/instances/{instance_id}/ + // snapshots/{snapshot_id} + TargetSnapshotId string `json:"targetSnapshotId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TargetSnapshotId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TargetSnapshotId") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *RevertInstanceRequest) MarshalJSON() ([]byte, error) { + type NoMethod RevertInstanceRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Schedule: Configure the schedule. type Schedule struct { // Day: Allows to define schedule that runs specified day of the week. @@ -4175,6 +4212,151 @@ func (c *ProjectsLocationsInstancesRestoreCall) Do(opts ...googleapi.CallOption) } +// method id "file.projects.locations.instances.revert": + +type ProjectsLocationsInstancesRevertCall struct { + s *Service + name string + revertinstancerequest *RevertInstanceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Revert: Revert an existing instance's file system to a specified +// snapshot. +// +// - name: +// projects/{project_id}/locations/{location_id}/instances/{instance_id +// }. The resource name of the instance, in the format. +func (r *ProjectsLocationsInstancesService) Revert(name string, revertinstancerequest *RevertInstanceRequest) *ProjectsLocationsInstancesRevertCall { + c := &ProjectsLocationsInstancesRevertCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.revertinstancerequest = revertinstancerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesRevertCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesRevertCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesRevertCall) Context(ctx context.Context) *ProjectsLocationsInstancesRevertCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesRevertCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesRevertCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" 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.revertinstancerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:revert") + 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 "file.projects.locations.instances.revert" 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 *ProjectsLocationsInstancesRevertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Revert an existing instance's file system to a specified snapshot.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:revert", + // "httpMethod": "POST", + // "id": "file.projects.locations.instances.revert", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}. The resource name of the instance, in the format", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:revert", + // "request": { + // "$ref": "RevertInstanceRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "file.projects.locations.instances.snapshots.create": type ProjectsLocationsInstancesSnapshotsCreateCall struct { diff --git a/file/v1beta1/file-api.json b/file/v1beta1/file-api.json index 4ae2277c773..8103041c94d 100644 --- a/file/v1beta1/file-api.json +++ b/file/v1beta1/file-api.json @@ -1041,7 +1041,7 @@ } } }, - "revision": "20230323", + "revision": "20230405", "rootUrl": "https://file.googleapis.com/", "schemas": { "Backup": { @@ -1129,14 +1129,16 @@ "CREATING", "FINALIZING", "READY", - "DELETING" + "DELETING", + "INVALID" ], "enumDescriptions": [ "State not set.", "Backup is being created.", "Backup has been taken and the operation is being finalized. At this point, changes to the file share will not be reflected in the backup.", "Backup is available for use.", - "Backup is being deleted." + "Backup is being deleted.", + "Backup is not valid and cannot be used for creating new instances or restoring existing instances." ], "readOnly": true, "type": "string" @@ -2175,6 +2177,10 @@ "description": "A Filestore share.", "id": "Share", "properties": { + "backup": { + "description": "Immutable. Full name of the Cloud Filestore Backup resource that this Share is restored from, in the format of projects/{project_id}/locations/{location_id}/backups/{backup_id}. Empty, if the Share is created from scratch and not restored from a backup.", + "type": "string" + }, "capacityGb": { "description": "File share capacity in gigabytes (GB). Filestore defines 1 GB as 1024^3 bytes. Must be greater than 0.", "format": "int64", diff --git a/file/v1beta1/file-gen.go b/file/v1beta1/file-gen.go index 4c1a92953e6..017b55ffd60 100644 --- a/file/v1beta1/file-gen.go +++ b/file/v1beta1/file-gen.go @@ -290,6 +290,8 @@ type Backup struct { // reflected in the backup. // "READY" - Backup is available for use. // "DELETING" - Backup is being deleted. + // "INVALID" - Backup is not valid and cannot be used for creating new + // instances or restoring existing instances. State string `json:"state,omitempty"` // StorageBytes: Output only. The size of the storage used by the @@ -1900,6 +1902,13 @@ func (s *Schedule) MarshalJSON() ([]byte, error) { // Share: A Filestore share. type Share struct { + // Backup: Immutable. Full name of the Cloud Filestore Backup resource + // that this Share is restored from, in the format of + // projects/{project_id}/locations/{location_id}/backups/{backup_id}. + // Empty, if the Share is created from scratch and not restored from a + // backup. + Backup string `json:"backup,omitempty"` + // CapacityGb: File share capacity in gigabytes (GB). Filestore defines // 1 GB as 1024^3 bytes. Must be greater than 0. CapacityGb int64 `json:"capacityGb,omitempty,string"` @@ -1941,7 +1950,7 @@ type Share struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CapacityGb") to + // ForceSendFields is a list of field names (e.g. "Backup") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1949,8 +1958,8 @@ type Share struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CapacityGb") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Backup") to include in API + // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. diff --git a/gkehub/v1/gkehub-api.json b/gkehub/v1/gkehub-api.json index f290ec8ae55..074021b4b32 100644 --- a/gkehub/v1/gkehub-api.json +++ b/gkehub/v1/gkehub-api.json @@ -1192,7 +1192,7 @@ } } }, - "revision": "20230329", + "revision": "20230407", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceFeatureSpec": { @@ -1386,6 +1386,10 @@ "$ref": "ConfigManagementGitConfig", "description": "Git repo configuration for the cluster." }, + "managed": { + "$ref": "ConfigManagementManaged", + "description": "Configuration for Managed Config Sync." + }, "oci": { "$ref": "ConfigManagementOciConfig", "description": "OCI repo configuration for the cluster" @@ -1810,6 +1814,17 @@ }, "type": "object" }, + "ConfigManagementManaged": { + "description": "Configuration for Managed Config Sync.", + "id": "ConfigManagementManaged", + "properties": { + "enabled": { + "description": "Set to true to enable Managed Config Sync. Defaults to false which disables Managed Config Sync.", + "type": "boolean" + } + }, + "type": "object" + }, "ConfigManagementMembershipSpec": { "description": "**Anthos Config Management**: Configuration for a single cluster. Intended to parallel the ConfigManagement CR.", "id": "ConfigManagementMembershipSpec", @@ -2851,6 +2866,10 @@ "readOnly": true, "type": "string" }, + "monitoringConfig": { + "$ref": "MonitoringConfig", + "description": "Optional. The monitoring config information for this membership." + }, "name": { "description": "Output only. The full, unique name of this Membership resource in the format `projects/*/locations/*/memberships/{membership_id}`, set during creation. `membership_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or `-` 3. It must start and end with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.", "readOnly": true, @@ -3075,6 +3094,33 @@ }, "type": "object" }, + "MonitoringConfig": { + "description": "This field informs Fleet-based applications/services/UIs with the necessary information for where each underlying Cluster reports its metrics.", + "id": "MonitoringConfig", + "properties": { + "cluster": { + "description": "Immutable. Cluster name used to report metrics. For Anthos on VMWare/Baremetal, it would be in format `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in format `{azureClusters, awsClusters}/cluster_name`.", + "type": "string" + }, + "clusterHash": { + "description": "Immutable. Cluster hash, this is a unique string generated by google code, which does not contain any PII, which we can use to reference the cluster. This is expected to be created by the monitoring stack and persisted into the Cluster object as well as to GKE-Hub.", + "type": "string" + }, + "kubernetesMetricsPrefix": { + "description": "Kubernetes system metrics, if available, are written to this prefix. This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today but will migration to be under kubernetes.io/anthos", + "type": "string" + }, + "location": { + "description": "Immutable. Location used to report Metrics", + "type": "string" + }, + "projectId": { + "description": "Immutable. Project used to report Metrics", + "type": "string" + } + }, + "type": "object" + }, "MultiCloudCluster": { "description": "MultiCloudCluster contains information specific to GKE Multi-Cloud clusters.", "id": "MultiCloudCluster", diff --git a/gkehub/v1/gkehub-gen.go b/gkehub/v1/gkehub-gen.go index b90dfd4edec..6905e7b7ce1 100644 --- a/gkehub/v1/gkehub-gen.go +++ b/gkehub/v1/gkehub-gen.go @@ -620,6 +620,9 @@ type ConfigManagementConfigSync struct { // Git: Git repo configuration for the cluster. Git *ConfigManagementGitConfig `json:"git,omitempty"` + // Managed: Configuration for Managed Config Sync. + Managed *ConfigManagementManaged `json:"managed,omitempty"` + // Oci: OCI repo configuration for the cluster Oci *ConfigManagementOciConfig `json:"oci,omitempty"` @@ -1210,6 +1213,35 @@ func (s *ConfigManagementInstallError) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ConfigManagementManaged: Configuration for Managed Config Sync. +type ConfigManagementManaged struct { + // Enabled: Set to true to enable Managed Config Sync. Defaults to false + // which disables Managed Config Sync. + Enabled bool `json:"enabled,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Enabled") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Enabled") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ConfigManagementManaged) MarshalJSON() ([]byte, error) { + type NoMethod ConfigManagementManaged + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ConfigManagementMembershipSpec: **Anthos Config Management**: // Configuration for a single cluster. Intended to parallel the // ConfigManagement CR. @@ -2860,6 +2892,10 @@ type Membership struct { // connected successfully, this field will be unset. LastConnectionTime string `json:"lastConnectionTime,omitempty"` + // MonitoringConfig: Optional. The monitoring config information for + // this membership. + MonitoringConfig *MonitoringConfig `json:"monitoringConfig,omitempty"` + // Name: Output only. The full, unique name of this Membership resource // in the format `projects/*/locations/*/memberships/{membership_id}`, // set during creation. `membership_id` must be a valid RFC 1123 @@ -3200,6 +3236,59 @@ func (s *MembershipState) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MonitoringConfig: This field informs Fleet-based +// applications/services/UIs with the necessary information for where +// each underlying Cluster reports its metrics. +type MonitoringConfig struct { + // Cluster: Immutable. Cluster name used to report metrics. For Anthos + // on VMWare/Baremetal, it would be in format + // `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would + // be in format `{azureClusters, awsClusters}/cluster_name`. + Cluster string `json:"cluster,omitempty"` + + // ClusterHash: Immutable. Cluster hash, this is a unique string + // generated by google code, which does not contain any PII, which we + // can use to reference the cluster. This is expected to be created by + // the monitoring stack and persisted into the Cluster object as well as + // to GKE-Hub. + ClusterHash string `json:"clusterHash,omitempty"` + + // KubernetesMetricsPrefix: Kubernetes system metrics, if available, are + // written to this prefix. This defaults to kubernetes.io for GKE, and + // kubernetes.io/anthos for Anthos eventually. Noted: Anthos MultiCloud + // will have kubernetes.io prefix today but will migration to be under + // kubernetes.io/anthos + KubernetesMetricsPrefix string `json:"kubernetesMetricsPrefix,omitempty"` + + // Location: Immutable. Location used to report Metrics + Location string `json:"location,omitempty"` + + // ProjectId: Immutable. Project used to report Metrics + ProjectId string `json:"projectId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Cluster") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Cluster") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MonitoringConfig) MarshalJSON() ([]byte, error) { + type NoMethod MonitoringConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // MultiCloudCluster: MultiCloudCluster contains information specific to // GKE Multi-Cloud clusters. type MultiCloudCluster struct { diff --git a/gkehub/v1alpha/gkehub-api.json b/gkehub/v1alpha/gkehub-api.json index f66e5069ddc..20197f51f49 100644 --- a/gkehub/v1alpha/gkehub-api.json +++ b/gkehub/v1alpha/gkehub-api.json @@ -1816,7 +1816,7 @@ } } }, - "revision": "20230329", + "revision": "20230407", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -2149,6 +2149,10 @@ "$ref": "ConfigManagementGitConfig", "description": "Git repo configuration for the cluster." }, + "managed": { + "$ref": "ConfigManagementManaged", + "description": "Configuration for Managed Config Sync." + }, "oci": { "$ref": "ConfigManagementOciConfig", "description": "OCI repo configuration for the cluster" @@ -2573,6 +2577,17 @@ }, "type": "object" }, + "ConfigManagementManaged": { + "description": "Configuration for Managed Config Sync.", + "id": "ConfigManagementManaged", + "properties": { + "enabled": { + "description": "Set to true to enable Managed Config Sync. Defaults to false which disables Managed Config Sync.", + "type": "boolean" + } + }, + "type": "object" + }, "ConfigManagementMembershipSpec": { "description": "**Anthos Config Management**: Configuration for a single cluster. Intended to parallel the ConfigManagement CR.", "id": "ConfigManagementMembershipSpec", @@ -3796,6 +3811,10 @@ "readOnly": true, "type": "string" }, + "monitoringConfig": { + "$ref": "MonitoringConfig", + "description": "Optional. The monitoring config information for this membership." + }, "name": { "description": "Output only. The full, unique name of this Membership resource in the format `projects/*/locations/*/memberships/{membership_id}`, set during creation. `membership_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or `-` 3. It must start and end with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.", "readOnly": true, @@ -4082,6 +4101,33 @@ }, "type": "object" }, + "MonitoringConfig": { + "description": "This field informs Fleet-based applications/services/UIs with the necessary information for where each underlying Cluster reports its metrics.", + "id": "MonitoringConfig", + "properties": { + "cluster": { + "description": "Immutable. Cluster name used to report metrics. For Anthos on VMWare/Baremetal, it would be in format `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in format `{azureClusters, awsClusters}/cluster_name`.", + "type": "string" + }, + "clusterHash": { + "description": "Immutable. Cluster hash, this is a unique string generated by google code, which does not contain any PII, which we can use to reference the cluster. This is expected to be created by the monitoring stack and persisted into the Cluster object as well as to GKE-Hub.", + "type": "string" + }, + "kubernetesMetricsPrefix": { + "description": "Kubernetes system metrics, if available, are written to this prefix. This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today but will migration to be under kubernetes.io/anthos", + "type": "string" + }, + "location": { + "description": "Immutable. Location used to report Metrics", + "type": "string" + }, + "projectId": { + "description": "Immutable. Project used to report Metrics", + "type": "string" + } + }, + "type": "object" + }, "MultiCloudCluster": { "description": "MultiCloudCluster contains information specific to GKE Multi-Cloud clusters.", "id": "MultiCloudCluster", diff --git a/gkehub/v1alpha/gkehub-gen.go b/gkehub/v1alpha/gkehub-gen.go index 66f14f14791..bf55d993f75 100644 --- a/gkehub/v1alpha/gkehub-gen.go +++ b/gkehub/v1alpha/gkehub-gen.go @@ -970,6 +970,9 @@ type ConfigManagementConfigSync struct { // Git: Git repo configuration for the cluster. Git *ConfigManagementGitConfig `json:"git,omitempty"` + // Managed: Configuration for Managed Config Sync. + Managed *ConfigManagementManaged `json:"managed,omitempty"` + // Oci: OCI repo configuration for the cluster Oci *ConfigManagementOciConfig `json:"oci,omitempty"` @@ -1560,6 +1563,35 @@ func (s *ConfigManagementInstallError) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ConfigManagementManaged: Configuration for Managed Config Sync. +type ConfigManagementManaged struct { + // Enabled: Set to true to enable Managed Config Sync. Defaults to false + // which disables Managed Config Sync. + Enabled bool `json:"enabled,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Enabled") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Enabled") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ConfigManagementManaged) MarshalJSON() ([]byte, error) { + type NoMethod ConfigManagementManaged + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ConfigManagementMembershipSpec: **Anthos Config Management**: // Configuration for a single cluster. Intended to parallel the // ConfigManagement CR. @@ -3508,6 +3540,10 @@ type Membership struct { // connected successfully, this field will be unset. LastConnectionTime string `json:"lastConnectionTime,omitempty"` + // MonitoringConfig: Optional. The monitoring config information for + // this membership. + MonitoringConfig *MonitoringConfig `json:"monitoringConfig,omitempty"` + // Name: Output only. The full, unique name of this Membership resource // in the format `projects/*/locations/*/memberships/{membership_id}`, // set during creation. `membership_id` must be a valid RFC 1123 @@ -3951,6 +3987,59 @@ func (s *MeteringMembershipState) UnmarshalJSON(data []byte) error { return nil } +// MonitoringConfig: This field informs Fleet-based +// applications/services/UIs with the necessary information for where +// each underlying Cluster reports its metrics. +type MonitoringConfig struct { + // Cluster: Immutable. Cluster name used to report metrics. For Anthos + // on VMWare/Baremetal, it would be in format + // `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would + // be in format `{azureClusters, awsClusters}/cluster_name`. + Cluster string `json:"cluster,omitempty"` + + // ClusterHash: Immutable. Cluster hash, this is a unique string + // generated by google code, which does not contain any PII, which we + // can use to reference the cluster. This is expected to be created by + // the monitoring stack and persisted into the Cluster object as well as + // to GKE-Hub. + ClusterHash string `json:"clusterHash,omitempty"` + + // KubernetesMetricsPrefix: Kubernetes system metrics, if available, are + // written to this prefix. This defaults to kubernetes.io for GKE, and + // kubernetes.io/anthos for Anthos eventually. Noted: Anthos MultiCloud + // will have kubernetes.io prefix today but will migration to be under + // kubernetes.io/anthos + KubernetesMetricsPrefix string `json:"kubernetesMetricsPrefix,omitempty"` + + // Location: Immutable. Location used to report Metrics + Location string `json:"location,omitempty"` + + // ProjectId: Immutable. Project used to report Metrics + ProjectId string `json:"projectId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Cluster") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Cluster") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MonitoringConfig) MarshalJSON() ([]byte, error) { + type NoMethod MonitoringConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // MultiCloudCluster: MultiCloudCluster contains information specific to // GKE Multi-Cloud clusters. type MultiCloudCluster struct { diff --git a/gkehub/v1alpha2/gkehub-api.json b/gkehub/v1alpha2/gkehub-api.json index 9c2817ec656..65cb2e3e495 100644 --- a/gkehub/v1alpha2/gkehub-api.json +++ b/gkehub/v1alpha2/gkehub-api.json @@ -657,7 +657,7 @@ } } }, - "revision": "20230310", + "revision": "20230407", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "ApplianceCluster": { @@ -1133,6 +1133,10 @@ "readOnly": true, "type": "string" }, + "monitoringConfig": { + "$ref": "MonitoringConfig", + "description": "Optional. The monitoring config information for this membership." + }, "name": { "description": "Output only. The full, unique name of this Membership resource in the format `projects/*/locations/*/memberships/{membership_id}`, set during creation. `membership_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or `-` 3. It must start and end with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.", "readOnly": true, @@ -1221,6 +1225,33 @@ }, "type": "object" }, + "MonitoringConfig": { + "description": "This field informs Fleet-based applications/services/UIs with the necessary information for where each underlying Cluster reports its metrics.", + "id": "MonitoringConfig", + "properties": { + "cluster": { + "description": "Immutable. Cluster name used to report metrics. For Anthos on VMWare/Baremetal, it would be in format `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in format `{azureClusters, awsClusters}/cluster_name`.", + "type": "string" + }, + "clusterHash": { + "description": "Immutable. Cluster hash, this is a unique string generated by google code, which does not contain any PII, which we can use to reference the cluster. This is expected to be created by the monitoring stack and persisted into the Cluster object as well as to GKE-Hub.", + "type": "string" + }, + "kubernetesMetricsPrefix": { + "description": "Kubernetes system metrics, if available, are written to this prefix. This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today but will migration to be under kubernetes.io/anthos", + "type": "string" + }, + "location": { + "description": "Immutable. Location used to report Metrics", + "type": "string" + }, + "projectId": { + "description": "Immutable. Project used to report Metrics", + "type": "string" + } + }, + "type": "object" + }, "MultiCloudCluster": { "description": "MultiCloudCluster contains information specific to GKE Multi-Cloud clusters.", "id": "MultiCloudCluster", diff --git a/gkehub/v1alpha2/gkehub-gen.go b/gkehub/v1alpha2/gkehub-gen.go index 16c0e212967..6e96b4ee73e 100644 --- a/gkehub/v1alpha2/gkehub-gen.go +++ b/gkehub/v1alpha2/gkehub-gen.go @@ -1107,6 +1107,10 @@ type Membership struct { // connected successfully, this field will be unset. LastConnectionTime string `json:"lastConnectionTime,omitempty"` + // MonitoringConfig: Optional. The monitoring config information for + // this membership. + MonitoringConfig *MonitoringConfig `json:"monitoringConfig,omitempty"` + // Name: Output only. The full, unique name of this Membership resource // in the format `projects/*/locations/*/memberships/{membership_id}`, // set during creation. `membership_id` must be a valid RFC 1123 @@ -1254,6 +1258,59 @@ func (s *MembershipState) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MonitoringConfig: This field informs Fleet-based +// applications/services/UIs with the necessary information for where +// each underlying Cluster reports its metrics. +type MonitoringConfig struct { + // Cluster: Immutable. Cluster name used to report metrics. For Anthos + // on VMWare/Baremetal, it would be in format + // `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would + // be in format `{azureClusters, awsClusters}/cluster_name`. + Cluster string `json:"cluster,omitempty"` + + // ClusterHash: Immutable. Cluster hash, this is a unique string + // generated by google code, which does not contain any PII, which we + // can use to reference the cluster. This is expected to be created by + // the monitoring stack and persisted into the Cluster object as well as + // to GKE-Hub. + ClusterHash string `json:"clusterHash,omitempty"` + + // KubernetesMetricsPrefix: Kubernetes system metrics, if available, are + // written to this prefix. This defaults to kubernetes.io for GKE, and + // kubernetes.io/anthos for Anthos eventually. Noted: Anthos MultiCloud + // will have kubernetes.io prefix today but will migration to be under + // kubernetes.io/anthos + KubernetesMetricsPrefix string `json:"kubernetesMetricsPrefix,omitempty"` + + // Location: Immutable. Location used to report Metrics + Location string `json:"location,omitempty"` + + // ProjectId: Immutable. Project used to report Metrics + ProjectId string `json:"projectId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Cluster") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Cluster") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MonitoringConfig) MarshalJSON() ([]byte, error) { + type NoMethod MonitoringConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // MultiCloudCluster: MultiCloudCluster contains information specific to // GKE Multi-Cloud clusters. type MultiCloudCluster struct { diff --git a/gkehub/v1beta/gkehub-api.json b/gkehub/v1beta/gkehub-api.json index b005dc12043..ce7d148d51e 100644 --- a/gkehub/v1beta/gkehub-api.json +++ b/gkehub/v1beta/gkehub-api.json @@ -105,6 +105,54 @@ }, "protocol": "rest", "resources": { + "organizations": { + "resources": { + "locations": { + "resources": { + "fleets": { + "methods": { + "list": { + "description": "Returns all fleets within an organization or a project that the caller has access to.", + "flatPath": "v1beta/organizations/{organizationsId}/locations/{locationsId}/fleets", + "httpMethod": "GET", + "id": "gkehub.organizations.locations.fleets.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of fleets to return. The service may return fewer than this value. If unspecified, at most 200 fleets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListFleets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFleets` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The organization or project to list for Fleets under, in the format `organizations/*/locations/*` or `projects/*/locations/*`.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+parent}/fleets", + "response": { + "$ref": "ListFleetsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + }, "projects": { "resources": { "locations": { @@ -451,6 +499,158 @@ } } }, + "fleets": { + "methods": { + "create": { + "description": "Creates a fleet.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/fleets", + "httpMethod": "POST", + "id": "gkehub.projects.locations.fleets.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent (project and location) where the Fleet will be created. Specified in the format `projects/*/locations/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+parent}/fleets", + "request": { + "$ref": "Fleet" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Removes a Fleet. There must be no memberships remaining in the Fleet.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/fleets/{fleetsId}", + "httpMethod": "DELETE", + "id": "gkehub.projects.locations.fleets.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The Fleet resource name in the format `projects/*/locations/*/fleets/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/fleets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Returns the details of a fleet.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/fleets/{fleetsId}", + "httpMethod": "GET", + "id": "gkehub.projects.locations.fleets.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The Fleet resource name in the format `projects/*/locations/*/fleets/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/fleets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}", + "response": { + "$ref": "Fleet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Returns all fleets within an organization or a project that the caller has access to.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/fleets", + "httpMethod": "GET", + "id": "gkehub.projects.locations.fleets.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of fleets to return. The service may return fewer than this value. If unspecified, at most 200 fleets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListFleets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFleets` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The organization or project to list for Fleets under, in the format `organizations/*/locations/*` or `projects/*/locations/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+parent}/fleets", + "response": { + "$ref": "ListFleetsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a fleet.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/fleets/{fleetsId}", + "httpMethod": "PATCH", + "id": "gkehub.projects.locations.fleets.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The full, unique resource name of this fleet in the format of `projects/{project}/locations/{location}/fleets/{fleet}`. Each GCP project can have at most one fleet resource, named \"default\".", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/fleets/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The fields to be updated;", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta/{+name}", + "request": { + "$ref": "Fleet" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "memberships": { "methods": { "getIamPolicy": { @@ -1302,7 +1502,7 @@ } } }, - "revision": "20230329", + "revision": "20230407", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -1547,6 +1747,10 @@ "$ref": "ConfigManagementGitConfig", "description": "Git repo configuration for the cluster." }, + "managed": { + "$ref": "ConfigManagementManaged", + "description": "Configuration for Managed Config Sync." + }, "oci": { "$ref": "ConfigManagementOciConfig", "description": "OCI repo configuration for the cluster" @@ -1971,6 +2175,17 @@ }, "type": "object" }, + "ConfigManagementManaged": { + "description": "Configuration for Managed Config Sync.", + "id": "ConfigManagementManaged", + "properties": { + "enabled": { + "description": "Set to true to enable Managed Config Sync. Defaults to false which disables Managed Config Sync.", + "type": "boolean" + } + }, + "type": "object" + }, "ConfigManagementMembershipSpec": { "description": "**Anthos Config Management**: Configuration for a single cluster. Intended to parallel the ConfigManagement CR.", "id": "ConfigManagementMembershipSpec", @@ -2467,6 +2682,76 @@ }, "type": "object" }, + "Fleet": { + "description": "Fleet contains the Fleet-wide metadata and configuration.", + "id": "Fleet", + "properties": { + "createTime": { + "description": "Output only. When the Fleet was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "deleteTime": { + "description": "Output only. When the Fleet was deleted.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Optional. A user-assigned display name of the Fleet. When present, it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: `Production Fleet`", + "type": "string" + }, + "name": { + "description": "Output only. The full, unique resource name of this fleet in the format of `projects/{project}/locations/{location}/fleets/{fleet}`. Each GCP project can have at most one fleet resource, named \"default\".", + "readOnly": true, + "type": "string" + }, + "state": { + "$ref": "FleetLifecycleState", + "description": "Output only. State of the namespace resource.", + "readOnly": true + }, + "uid": { + "description": "Output only. Google-generated UUID for this resource. This is unique across all Fleet resources. If a Fleet resource is deleted and another resource with the same name is created, it gets a different uid.", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. When the Fleet was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "FleetLifecycleState": { + "description": "FleetLifecycleState describes the state of a Fleet resource.", + "id": "FleetLifecycleState", + "properties": { + "code": { + "description": "Output only. The current state of the Fleet resource.", + "enum": [ + "CODE_UNSPECIFIED", + "CREATING", + "READY", + "DELETING", + "UPDATING" + ], + "enumDescriptions": [ + "The code is not set.", + "The fleet is being created.", + "The fleet active.", + "The fleet is being deleted.", + "The fleet is being updated." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "FleetObservabilityFeatureSpec": { "description": "**Fleet Observability**: The Hub-wide input for the FleetObservability feature.", "id": "FleetObservabilityFeatureSpec", @@ -2715,6 +3000,24 @@ }, "type": "object" }, + "ListFleetsResponse": { + "description": "Response message for the `GkeHub.ListFleetsResponse` method.", + "id": "ListFleetsResponse", + "properties": { + "fleets": { + "description": "The list of matching fleets.", + "items": { + "$ref": "Fleet" + }, + "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. The token is only valid for 1h.", + "type": "string" + } + }, + "type": "object" + }, "ListLocationsResponse": { "description": "The response message for Locations.ListLocations.", "id": "ListLocationsResponse", diff --git a/gkehub/v1beta/gkehub-gen.go b/gkehub/v1beta/gkehub-gen.go index b3f88639311..78a183fd54f 100644 --- a/gkehub/v1beta/gkehub-gen.go +++ b/gkehub/v1beta/gkehub-gen.go @@ -119,6 +119,7 @@ func New(client *http.Client) (*Service, error) { return nil, errors.New("client is nil") } s := &Service{client: client, BasePath: basePath} + s.Organizations = NewOrganizationsService(s) s.Projects = NewProjectsService(s) return s, nil } @@ -128,6 +129,8 @@ type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment + Organizations *OrganizationsService + Projects *ProjectsService } @@ -138,6 +141,39 @@ func (s *Service) userAgent() string { return googleapi.UserAgent + " " + s.UserAgent } +func NewOrganizationsService(s *Service) *OrganizationsService { + rs := &OrganizationsService{s: s} + rs.Locations = NewOrganizationsLocationsService(s) + return rs +} + +type OrganizationsService struct { + s *Service + + Locations *OrganizationsLocationsService +} + +func NewOrganizationsLocationsService(s *Service) *OrganizationsLocationsService { + rs := &OrganizationsLocationsService{s: s} + rs.Fleets = NewOrganizationsLocationsFleetsService(s) + return rs +} + +type OrganizationsLocationsService struct { + s *Service + + Fleets *OrganizationsLocationsFleetsService +} + +func NewOrganizationsLocationsFleetsService(s *Service) *OrganizationsLocationsFleetsService { + rs := &OrganizationsLocationsFleetsService{s: s} + return rs +} + +type OrganizationsLocationsFleetsService struct { + s *Service +} + func NewProjectsService(s *Service) *ProjectsService { rs := &ProjectsService{s: s} rs.Locations = NewProjectsLocationsService(s) @@ -153,6 +189,7 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} rs.Features = NewProjectsLocationsFeaturesService(s) + rs.Fleets = NewProjectsLocationsFleetsService(s) rs.Memberships = NewProjectsLocationsMembershipsService(s) rs.Namespaces = NewProjectsLocationsNamespacesService(s) rs.Operations = NewProjectsLocationsOperationsService(s) @@ -165,6 +202,8 @@ type ProjectsLocationsService struct { Features *ProjectsLocationsFeaturesService + Fleets *ProjectsLocationsFleetsService + Memberships *ProjectsLocationsMembershipsService Namespaces *ProjectsLocationsNamespacesService @@ -183,6 +222,15 @@ type ProjectsLocationsFeaturesService struct { s *Service } +func NewProjectsLocationsFleetsService(s *Service) *ProjectsLocationsFleetsService { + rs := &ProjectsLocationsFleetsService{s: s} + return rs +} + +type ProjectsLocationsFleetsService struct { + s *Service +} + func NewProjectsLocationsMembershipsService(s *Service) *ProjectsLocationsMembershipsService { rs := &ProjectsLocationsMembershipsService{s: s} rs.Bindings = NewProjectsLocationsMembershipsBindingsService(s) @@ -748,6 +796,9 @@ type ConfigManagementConfigSync struct { // Git: Git repo configuration for the cluster. Git *ConfigManagementGitConfig `json:"git,omitempty"` + // Managed: Configuration for Managed Config Sync. + Managed *ConfigManagementManaged `json:"managed,omitempty"` + // Oci: OCI repo configuration for the cluster Oci *ConfigManagementOciConfig `json:"oci,omitempty"` @@ -1338,6 +1389,35 @@ func (s *ConfigManagementInstallError) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ConfigManagementManaged: Configuration for Managed Config Sync. +type ConfigManagementManaged struct { + // Enabled: Set to true to enable Managed Config Sync. Defaults to false + // which disables Managed Config Sync. + Enabled bool `json:"enabled,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Enabled") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Enabled") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ConfigManagementManaged) MarshalJSON() ([]byte, error) { + type NoMethod ConfigManagementManaged + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ConfigManagementMembershipSpec: **Anthos Config Management**: // Configuration for a single cluster. Intended to parallel the // ConfigManagement CR. @@ -2097,6 +2177,102 @@ func (s *FeatureState) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Fleet: Fleet contains the Fleet-wide metadata and configuration. +type Fleet struct { + // CreateTime: Output only. When the Fleet was created. + CreateTime string `json:"createTime,omitempty"` + + // DeleteTime: Output only. When the Fleet was deleted. + DeleteTime string `json:"deleteTime,omitempty"` + + // DisplayName: Optional. A user-assigned display name of the Fleet. + // When present, it must be between 4 to 30 characters. Allowed + // characters are: lowercase and uppercase letters, numbers, hyphen, + // single-quote, double-quote, space, and exclamation point. Example: + // `Production Fleet` + DisplayName string `json:"displayName,omitempty"` + + // Name: Output only. The full, unique resource name of this fleet in + // the format of + // `projects/{project}/locations/{location}/fleets/{fleet}`. Each GCP + // project can have at most one fleet resource, named "default". + Name string `json:"name,omitempty"` + + // State: Output only. State of the namespace resource. + State *FleetLifecycleState `json:"state,omitempty"` + + // Uid: Output only. Google-generated UUID for this resource. This is + // unique across all Fleet resources. If a Fleet resource is deleted and + // another resource with the same name is created, it gets a different + // uid. + Uid string `json:"uid,omitempty"` + + // UpdateTime: Output only. When the Fleet was last updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or 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 *Fleet) MarshalJSON() ([]byte, error) { + type NoMethod Fleet + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// FleetLifecycleState: FleetLifecycleState describes the state of a +// Fleet resource. +type FleetLifecycleState struct { + // Code: Output only. The current state of the Fleet resource. + // + // Possible values: + // "CODE_UNSPECIFIED" - The code is not set. + // "CREATING" - The fleet is being created. + // "READY" - The fleet active. + // "DELETING" - The fleet is being deleted. + // "UPDATING" - The fleet is being updated. + Code string `json:"code,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 *FleetLifecycleState) MarshalJSON() ([]byte, error) { + type NoMethod FleetLifecycleState + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // FleetObservabilityFeatureSpec: **Fleet Observability**: The Hub-wide // input for the FleetObservability feature. type FleetObservabilityFeatureSpec struct { @@ -2463,6 +2639,44 @@ func (s *ListFeaturesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListFleetsResponse: Response message for the +// `GkeHub.ListFleetsResponse` method. +type ListFleetsResponse struct { + // Fleets: The list of matching fleets. + Fleets []*Fleet `json:"fleets,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. The token is only valid for 1h. + 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. "Fleets") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Fleets") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListFleetsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListFleetsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListLocationsResponse: The response message for // Locations.ListLocations. type ListLocationsResponse struct { @@ -4593,30 +4807,51 @@ func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// method id "gkehub.projects.locations.get": +// method id "gkehub.organizations.locations.fleets.list": -type ProjectsLocationsGetCall struct { +type OrganizationsLocationsFleetsListCall struct { s *Service - name string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Get: Gets information about a location. +// List: Returns all fleets within an organization or a project that the +// caller has access to. // -// - name: Resource name for the location. -func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { - c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The organization or project to list for Fleets under, in +// the format `organizations/*/locations/*` or +// `projects/*/locations/*`. +func (r *OrganizationsLocationsFleetsService) List(parent string) *OrganizationsLocationsFleetsListCall { + c := &OrganizationsLocationsFleetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of fleets to return. The service may return fewer than this value. If +// unspecified, at most 200 fleets will be returned. The maximum value +// is 1000; values above 1000 will be coerced to 1000. +func (c *OrganizationsLocationsFleetsListCall) PageSize(pageSize int64) *OrganizationsLocationsFleetsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListFleets` call. Provide this to retrieve +// the subsequent page. When paginating, all other parameters provided +// to `ListFleets` must match the call that provided the page token. +func (c *OrganizationsLocationsFleetsListCall) PageToken(pageToken string) *OrganizationsLocationsFleetsListCall { + 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 *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { +func (c *OrganizationsLocationsFleetsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsFleetsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4626,7 +4861,7 @@ func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocatio // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { +func (c *OrganizationsLocationsFleetsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsFleetsListCall { c.ifNoneMatch_ = entityTag return c } @@ -4634,21 +4869,21 @@ func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocati // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { +func (c *OrganizationsLocationsFleetsListCall) Context(ctx context.Context) *OrganizationsLocationsFleetsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsGetCall) Header() http.Header { +func (c *OrganizationsLocationsFleetsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsFleetsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -4661,7 +4896,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/fleets") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -4669,19 +4904,19 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "gkehub.projects.locations.get" call. -// Exactly one of *Location or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Location.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { +// Do executes the "gkehub.organizations.locations.fleets.list" call. +// Exactly one of *ListFleetsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListFleetsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsLocationsFleetsListCall) Do(opts ...googleapi.CallOption) (*ListFleetsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4700,7 +4935,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Location{ + ret := &ListFleetsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4712,25 +4947,36 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, } return ret, nil // { - // "description": "Gets information about a location.", - // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}", + // "description": "Returns all fleets within an organization or a project that the caller has access to.", + // "flatPath": "v1beta/organizations/{organizationsId}/locations/{locationsId}/fleets", // "httpMethod": "GET", - // "id": "gkehub.projects.locations.get", + // "id": "gkehub.organizations.locations.fleets.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Resource name for the location.", + // "pageSize": { + // "description": "Optional. The maximum number of fleets to return. The service may return fewer than this value. If unspecified, at most 200 fleets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. A page token, received from a previous `ListFleets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFleets` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The organization or project to list for Fleets under, in the format `organizations/*/locations/*` or `projects/*/locations/*`.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^organizations/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta/{+name}", + // "path": "v1beta/{+parent}/fleets", // "response": { - // "$ref": "Location" + // "$ref": "ListFleetsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4739,9 +4985,30 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, } -// method id "gkehub.projects.locations.list": +// 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 *OrganizationsLocationsFleetsListCall) Pages(ctx context.Context, f func(*ListFleetsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type ProjectsLocationsListCall struct { +// method id "gkehub.projects.locations.get": + +type ProjectsLocationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -4750,31 +5017,177 @@ type ProjectsLocationsListCall struct { header_ http.Header } -// List: Lists information about the supported locations for this -// service. +// Get: Gets information about a location. // -// - name: The resource that owns the locations collection, if -// applicable. -func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { - c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Resource name for the location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": A filter to narrow down -// results to a preferred subset. The filtering language accepts strings -// like "displayName=tokyo", and is documented in more detail in -// AIP-160 (https://google.aip.dev/160). -func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { - c.urlParams_.Set("filter", filter) +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return. If not set, the service selects a default. -func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "gkehub.projects.locations.get" call. +// Exactly one of *Location or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Location.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Location{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets information about a location.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "gkehub.projects.locations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name for the location.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+name}", + // "response": { + // "$ref": "Location" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "gkehub.projects.locations.list": + +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists information about the supported locations for this +// service. +// +// - name: The resource that owns the locations collection, if +// applicable. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": A filter to narrow down +// results to a preferred subset. The filtering language accepts strings +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return. If not set, the service selects a default. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c } // PageToken sets the optional parameter "pageToken": A page token @@ -6316,6 +6729,787 @@ func (c *ProjectsLocationsFeaturesTestIamPermissionsCall) Do(opts ...googleapi.C } +// method id "gkehub.projects.locations.fleets.create": + +type ProjectsLocationsFleetsCreateCall struct { + s *Service + parent string + fleet *Fleet + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a fleet. +// +// - parent: The parent (project and location) where the Fleet will be +// created. Specified in the format `projects/*/locations/*`. +func (r *ProjectsLocationsFleetsService) Create(parent string, fleet *Fleet) *ProjectsLocationsFleetsCreateCall { + c := &ProjectsLocationsFleetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.fleet = fleet + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFleetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFleetsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFleetsCreateCall) Context(ctx context.Context) *ProjectsLocationsFleetsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFleetsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFleetsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" 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.fleet) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/fleets") + 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 "gkehub.projects.locations.fleets.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsFleetsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a fleet.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/fleets", + // "httpMethod": "POST", + // "id": "gkehub.projects.locations.fleets.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent (project and location) where the Fleet will be created. Specified in the format `projects/*/locations/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+parent}/fleets", + // "request": { + // "$ref": "Fleet" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "gkehub.projects.locations.fleets.delete": + +type ProjectsLocationsFleetsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Removes a Fleet. There must be no memberships remaining in +// the Fleet. +// +// - name: The Fleet resource name in the format +// `projects/*/locations/*/fleets/*`. +func (r *ProjectsLocationsFleetsService) Delete(name string) *ProjectsLocationsFleetsDeleteCall { + c := &ProjectsLocationsFleetsDeleteCall{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 *ProjectsLocationsFleetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFleetsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFleetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFleetsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFleetsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFleetsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "gkehub.projects.locations.fleets.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsFleetsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Removes a Fleet. There must be no memberships remaining in the Fleet.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/fleets/{fleetsId}", + // "httpMethod": "DELETE", + // "id": "gkehub.projects.locations.fleets.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The Fleet resource name in the format `projects/*/locations/*/fleets/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/fleets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "gkehub.projects.locations.fleets.get": + +type ProjectsLocationsFleetsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns the details of a fleet. +// +// - name: The Fleet resource name in the format +// `projects/*/locations/*/fleets/*`. +func (r *ProjectsLocationsFleetsService) Get(name string) *ProjectsLocationsFleetsGetCall { + c := &ProjectsLocationsFleetsGetCall{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 *ProjectsLocationsFleetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFleetsGetCall { + 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 *ProjectsLocationsFleetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFleetsGetCall { + 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 *ProjectsLocationsFleetsGetCall) Context(ctx context.Context) *ProjectsLocationsFleetsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFleetsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFleetsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "gkehub.projects.locations.fleets.get" call. +// Exactly one of *Fleet or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Fleet.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsFleetsGetCall) Do(opts ...googleapi.CallOption) (*Fleet, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Fleet{ + ServerResponse: googleapi.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 details of a fleet.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/fleets/{fleetsId}", + // "httpMethod": "GET", + // "id": "gkehub.projects.locations.fleets.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The Fleet resource name in the format `projects/*/locations/*/fleets/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/fleets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+name}", + // "response": { + // "$ref": "Fleet" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "gkehub.projects.locations.fleets.list": + +type ProjectsLocationsFleetsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Returns all fleets within an organization or a project that the +// caller has access to. +// +// - parent: The organization or project to list for Fleets under, in +// the format `organizations/*/locations/*` or +// `projects/*/locations/*`. +func (r *ProjectsLocationsFleetsService) List(parent string) *ProjectsLocationsFleetsListCall { + c := &ProjectsLocationsFleetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of fleets to return. The service may return fewer than this value. If +// unspecified, at most 200 fleets will be returned. The maximum value +// is 1000; values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsFleetsListCall) PageSize(pageSize int64) *ProjectsLocationsFleetsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListFleets` call. Provide this to retrieve +// the subsequent page. When paginating, all other parameters provided +// to `ListFleets` must match the call that provided the page token. +func (c *ProjectsLocationsFleetsListCall) PageToken(pageToken string) *ProjectsLocationsFleetsListCall { + 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 *ProjectsLocationsFleetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFleetsListCall { + 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 *ProjectsLocationsFleetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFleetsListCall { + 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 *ProjectsLocationsFleetsListCall) Context(ctx context.Context) *ProjectsLocationsFleetsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFleetsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFleetsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/fleets") + 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 "gkehub.projects.locations.fleets.list" call. +// Exactly one of *ListFleetsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListFleetsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFleetsListCall) Do(opts ...googleapi.CallOption) (*ListFleetsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListFleetsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns all fleets within an organization or a project that the caller has access to.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/fleets", + // "httpMethod": "GET", + // "id": "gkehub.projects.locations.fleets.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. The maximum number of fleets to return. The service may return fewer than this value. If unspecified, at most 200 fleets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. A page token, received from a previous `ListFleets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFleets` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The organization or project to list for Fleets under, in the format `organizations/*/locations/*` or `projects/*/locations/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+parent}/fleets", + // "response": { + // "$ref": "ListFleetsResponse" + // }, + // "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 *ProjectsLocationsFleetsListCall) Pages(ctx context.Context, f func(*ListFleetsResponse) 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 "gkehub.projects.locations.fleets.patch": + +type ProjectsLocationsFleetsPatchCall struct { + s *Service + name string + fleet *Fleet + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a fleet. +// +// - name: Output only. The full, unique resource name of this fleet in +// the format of +// `projects/{project}/locations/{location}/fleets/{fleet}`. Each GCP +// project can have at most one fleet resource, named "default". +func (r *ProjectsLocationsFleetsService) Patch(name string, fleet *Fleet) *ProjectsLocationsFleetsPatchCall { + c := &ProjectsLocationsFleetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.fleet = fleet + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// fields to be updated; +func (c *ProjectsLocationsFleetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFleetsPatchCall { + 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 *ProjectsLocationsFleetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFleetsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFleetsPatchCall) Context(ctx context.Context) *ProjectsLocationsFleetsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFleetsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFleetsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" 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.fleet) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "gkehub.projects.locations.fleets.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsFleetsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a fleet.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/fleets/{fleetsId}", + // "httpMethod": "PATCH", + // "id": "gkehub.projects.locations.fleets.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. The full, unique resource name of this fleet in the format of `projects/{project}/locations/{location}/fleets/{fleet}`. Each GCP project can have at most one fleet resource, named \"default\".", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/fleets/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The fields to be updated;", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta/{+name}", + // "request": { + // "$ref": "Fleet" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "gkehub.projects.locations.memberships.getIamPolicy": type ProjectsLocationsMembershipsGetIamPolicyCall struct { diff --git a/gkehub/v1beta1/gkehub-api.json b/gkehub/v1beta1/gkehub-api.json index e885323e11b..c6ff4afa1e2 100644 --- a/gkehub/v1beta1/gkehub-api.json +++ b/gkehub/v1beta1/gkehub-api.json @@ -711,7 +711,7 @@ } } }, - "revision": "20230310", + "revision": "20230407", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "ApplianceCluster": { @@ -1180,6 +1180,10 @@ "readOnly": true, "type": "string" }, + "monitoringConfig": { + "$ref": "MonitoringConfig", + "description": "Optional. The monitoring config information for this membership." + }, "name": { "description": "Output only. The full, unique name of this Membership resource in the format `projects/*/locations/*/memberships/{membership_id}`, set during creation. `membership_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or `-` 3. It must start and end with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.", "readOnly": true, @@ -1277,6 +1281,33 @@ }, "type": "object" }, + "MonitoringConfig": { + "description": "This field informs Fleet-based applications/services/UIs with the necessary information for where each underlying Cluster reports its metrics.", + "id": "MonitoringConfig", + "properties": { + "cluster": { + "description": "Immutable. Cluster name used to report metrics. For Anthos on VMWare/Baremetal, it would be in format `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in format `{azureClusters, awsClusters}/cluster_name`.", + "type": "string" + }, + "clusterHash": { + "description": "Immutable. Cluster hash, this is a unique string generated by google code, which does not contain any PII, which we can use to reference the cluster. This is expected to be created by the monitoring stack and persisted into the Cluster object as well as to GKE-Hub.", + "type": "string" + }, + "kubernetesMetricsPrefix": { + "description": "Kubernetes system metrics, if available, are written to this prefix. This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today but will migration to be under kubernetes.io/anthos", + "type": "string" + }, + "location": { + "description": "Immutable. Location used to report Metrics", + "type": "string" + }, + "projectId": { + "description": "Immutable. Project used to report Metrics", + "type": "string" + } + }, + "type": "object" + }, "MultiCloudCluster": { "description": "MultiCloudCluster contains information specific to GKE Multi-Cloud clusters.", "id": "MultiCloudCluster", diff --git a/gkehub/v1beta1/gkehub-gen.go b/gkehub/v1beta1/gkehub-gen.go index afd22db486f..b1c9db6fe2a 100644 --- a/gkehub/v1beta1/gkehub-gen.go +++ b/gkehub/v1beta1/gkehub-gen.go @@ -1077,6 +1077,10 @@ type Membership struct { // connected successfully, this field will be unset. LastConnectionTime string `json:"lastConnectionTime,omitempty"` + // MonitoringConfig: Optional. The monitoring config information for + // this membership. + MonitoringConfig *MonitoringConfig `json:"monitoringConfig,omitempty"` + // Name: Output only. The full, unique name of this Membership resource // in the format `projects/*/locations/*/memberships/{membership_id}`, // set during creation. `membership_id` must be a valid RFC 1123 @@ -1229,6 +1233,59 @@ func (s *MembershipState) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MonitoringConfig: This field informs Fleet-based +// applications/services/UIs with the necessary information for where +// each underlying Cluster reports its metrics. +type MonitoringConfig struct { + // Cluster: Immutable. Cluster name used to report metrics. For Anthos + // on VMWare/Baremetal, it would be in format + // `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would + // be in format `{azureClusters, awsClusters}/cluster_name`. + Cluster string `json:"cluster,omitempty"` + + // ClusterHash: Immutable. Cluster hash, this is a unique string + // generated by google code, which does not contain any PII, which we + // can use to reference the cluster. This is expected to be created by + // the monitoring stack and persisted into the Cluster object as well as + // to GKE-Hub. + ClusterHash string `json:"clusterHash,omitempty"` + + // KubernetesMetricsPrefix: Kubernetes system metrics, if available, are + // written to this prefix. This defaults to kubernetes.io for GKE, and + // kubernetes.io/anthos for Anthos eventually. Noted: Anthos MultiCloud + // will have kubernetes.io prefix today but will migration to be under + // kubernetes.io/anthos + KubernetesMetricsPrefix string `json:"kubernetesMetricsPrefix,omitempty"` + + // Location: Immutable. Location used to report Metrics + Location string `json:"location,omitempty"` + + // ProjectId: Immutable. Project used to report Metrics + ProjectId string `json:"projectId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Cluster") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Cluster") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MonitoringConfig) MarshalJSON() ([]byte, error) { + type NoMethod MonitoringConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // MultiCloudCluster: MultiCloudCluster contains information specific to // GKE Multi-Cloud clusters. type MultiCloudCluster struct { diff --git a/integrations/v1alpha/integrations-api.json b/integrations/v1alpha/integrations-api.json index abe1a189e1e..6587573eceb 100644 --- a/integrations/v1alpha/integrations-api.json +++ b/integrations/v1alpha/integrations-api.json @@ -3202,7 +3202,7 @@ } } }, - "revision": "20230322", + "revision": "20230409", "rootUrl": "https://integrations.googleapis.com/", "schemas": { "CrmlogErrorCode": { @@ -4202,6 +4202,10 @@ "format": "int32", "type": "integer" }, + "taskLabel": { + "description": "the task label associated with this snapshot. Could be empty.", + "type": "string" + }, "taskName": { "description": "the task name associated with this snapshot. Could be empty.", "type": "string" @@ -5405,7 +5409,8 @@ "EQUALS_IGNORE_CASE", "REPLACE_ALL", "SUBSTRING", - "RESOLVE_TEMPLATE" + "RESOLVE_TEMPLATE", + "DECODE_BASE64_STRING" ], "enumDescriptions": [ "", @@ -5424,6 +5429,7 @@ "", "", "", + "", "" ], "type": "string" @@ -7701,6 +7707,10 @@ ], "type": "string" }, + "oauth2AuthCodeFlow": { + "$ref": "GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow", + "description": "Oauth2AuthCodeFlow." + }, "oauth2ClientCredentials": { "$ref": "GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials", "description": "Oauth2ClientCredentials." @@ -7720,6 +7730,44 @@ }, "type": "object" }, + "GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow": { + "description": "Parameters to support Oauth 2.0 Auth Code Grant Authentication. See https://www.rfc-editor.org/rfc/rfc6749#section-1.3.1 for more details.", + "id": "GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow", + "properties": { + "authCode": { + "description": "Authorization code to be exchanged for access and refresh tokens.", + "type": "string" + }, + "clientId": { + "description": "Client ID for user-provided OAuth app.", + "type": "string" + }, + "clientSecret": { + "$ref": "GoogleCloudConnectorsV1Secret", + "description": "Client secret for user-provided OAuth app." + }, + "enablePkce": { + "description": "Whether to enable PKCE when the user performs the auth code flow.", + "type": "boolean" + }, + "pkceVerifier": { + "description": "PKCE verifier to be used during the auth code exchange.", + "type": "string" + }, + "redirectUri": { + "description": "Redirect URI to be provided during the auth code exchange.", + "type": "string" + }, + "scopes": { + "description": "Scopes the connection will request when the user performs the auth code flow.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "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", @@ -7892,6 +7940,10 @@ "$ref": "GoogleCloudConnectorsV1LockConfig", "description": "Optional. Configuration that indicates whether or not the Connection can be edited." }, + "logConfig": { + "$ref": "GoogleCloudConnectorsV1LogConfig", + "description": "Optional. Log configuration for the connection." + }, "name": { "description": "Output only. Resource name of the Connection. Format: projects/{project}/locations/{location}/connections/{connection}", "readOnly": true, @@ -8023,6 +8075,17 @@ }, "type": "object" }, + "GoogleCloudConnectorsV1LogConfig": { + "description": "Log configuration for the connection.", + "id": "GoogleCloudConnectorsV1LogConfig", + "properties": { + "enabled": { + "description": "Enabled represents whether logging is enabled or not for a connection.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudConnectorsV1NodeConfig": { "description": "Node configuration for the connection.", "id": "GoogleCloudConnectorsV1NodeConfig", @@ -8948,6 +9011,10 @@ "format": "int32", "type": "integer" }, + "taskLabel": { + "description": "the task label associated with this snapshot. Could be empty.", + "type": "string" + }, "taskNumber": { "description": "The task number associated with this snapshot.", "type": "string" diff --git a/integrations/v1alpha/integrations-gen.go b/integrations/v1alpha/integrations-gen.go index 62d934c3294..d7dfc7a5fa0 100644 --- a/integrations/v1alpha/integrations-gen.go +++ b/integrations/v1alpha/integrations-gen.go @@ -1747,6 +1747,10 @@ type EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetad // Could be empty. TaskAttemptNum int64 `json:"taskAttemptNum,omitempty"` + // TaskLabel: the task label associated with this snapshot. Could be + // empty. + TaskLabel string `json:"taskLabel,omitempty"` + // TaskName: the task name associated with this snapshot. Could be // empty. TaskName string `json:"taskName,omitempty"` @@ -3450,6 +3454,7 @@ type EnterpriseCrmEventbusProtoStringFunction struct { // "REPLACE_ALL" // "SUBSTRING" // "RESOLVE_TEMPLATE" + // "DECODE_BASE64_STRING" FunctionName string `json:"functionName,omitempty"` // ForceSendFields is a list of field names (e.g. "FunctionName") to @@ -6251,6 +6256,9 @@ type GoogleCloudConnectorsV1AuthConfig struct { // "OAUTH2_AUTH_CODE_FLOW" - Oauth 2.0 Authorization Code Flow AuthType string `json:"authType,omitempty"` + // Oauth2AuthCodeFlow: Oauth2AuthCodeFlow. + Oauth2AuthCodeFlow *GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow `json:"oauth2AuthCodeFlow,omitempty"` + // Oauth2ClientCredentials: Oauth2ClientCredentials. Oauth2ClientCredentials *GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials `json:"oauth2ClientCredentials,omitempty"` @@ -6287,6 +6295,59 @@ func (s *GoogleCloudConnectorsV1AuthConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow: Parameters to +// support Oauth 2.0 Auth Code Grant Authentication. See +// https://www.rfc-editor.org/rfc/rfc6749#section-1.3.1 for more +// details. +type GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow struct { + // AuthCode: Authorization code to be exchanged for access and refresh + // tokens. + AuthCode string `json:"authCode,omitempty"` + + // ClientId: Client ID for user-provided OAuth app. + ClientId string `json:"clientId,omitempty"` + + // ClientSecret: Client secret for user-provided OAuth app. + ClientSecret *GoogleCloudConnectorsV1Secret `json:"clientSecret,omitempty"` + + // EnablePkce: Whether to enable PKCE when the user performs the auth + // code flow. + EnablePkce bool `json:"enablePkce,omitempty"` + + // PkceVerifier: PKCE verifier to be used during the auth code exchange. + PkceVerifier string `json:"pkceVerifier,omitempty"` + + // RedirectUri: Redirect URI to be provided during the auth code + // exchange. + RedirectUri string `json:"redirectUri,omitempty"` + + // Scopes: Scopes the connection will request when the user performs the + // auth code flow. + Scopes []string `json:"scopes,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AuthCode") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AuthCode") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow + 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. @@ -6550,6 +6611,9 @@ type GoogleCloudConnectorsV1Connection struct { // Connection can be edited. LockConfig *GoogleCloudConnectorsV1LockConfig `json:"lockConfig,omitempty"` + // LogConfig: Optional. Log configuration for the connection. + LogConfig *GoogleCloudConnectorsV1LogConfig `json:"logConfig,omitempty"` + // Name: Output only. Resource name of the Connection. Format: // projects/{project}/locations/{location}/connections/{connection} Name string `json:"name,omitempty"` @@ -6750,6 +6814,36 @@ func (s *GoogleCloudConnectorsV1LockConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudConnectorsV1LogConfig: Log configuration for the +// connection. +type GoogleCloudConnectorsV1LogConfig struct { + // Enabled: Enabled represents whether logging is enabled or not for a + // connection. + Enabled bool `json:"enabled,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Enabled") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Enabled") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudConnectorsV1LogConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudConnectorsV1LogConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudConnectorsV1NodeConfig: Node configuration for the // connection. type GoogleCloudConnectorsV1NodeConfig struct { @@ -8059,6 +8153,10 @@ type GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata st // TaskAttempt: the task attempt number this snapshot belongs to. TaskAttempt int64 `json:"taskAttempt,omitempty"` + // TaskLabel: the task label associated with this snapshot. Could be + // empty. + TaskLabel string `json:"taskLabel,omitempty"` + // TaskNumber: The task number associated with this snapshot. TaskNumber string `json:"taskNumber,omitempty"`