diff --git a/analyticshub/v1/analyticshub-api.json b/analyticshub/v1/analyticshub-api.json index 87f84d59fba..63305b56348 100644 --- a/analyticshub/v1/analyticshub-api.json +++ b/analyticshub/v1/analyticshub-api.json @@ -1022,7 +1022,7 @@ } } }, - "revision": "20240219", + "revision": "20240307", "rootUrl": "https://analyticshub.googleapis.com/", "schemas": { "AuditConfig": { @@ -1080,6 +1080,13 @@ "dataset": { "description": "Resource name of the dataset source for this listing. e.g. `projects/myproject/datasets/123`", "type": "string" + }, + "selectedResources": { + "description": "Optional. Resources in this dataset that are selectively shared. If this field is empty, then the entire dataset (all resources) are shared. This field is only valid for data clean room exchanges.", + "items": { + "$ref": "SelectedResource" + }, + "type": "array" } }, "type": "object" @@ -1677,6 +1684,17 @@ "properties": {}, "type": "object" }, + "SelectedResource": { + "description": "Resource in this dataset that are selectively shared.", + "id": "SelectedResource", + "properties": { + "table": { + "description": "Optional. Format: For table: `projects/{projectId}/datasets/{datasetId}/tables/{tableId}` Example:\"projects/test_project/datasets/test_dataset/tables/test_table\"", + "type": "string" + } + }, + "type": "object" + }, "SetIamPolicyRequest": { "description": "Request message for `SetIamPolicy` method.", "id": "SetIamPolicyRequest", diff --git a/analyticshub/v1/analyticshub-gen.go b/analyticshub/v1/analyticshub-gen.go index 22462162a83..5b5c2caa49d 100644 --- a/analyticshub/v1/analyticshub-gen.go +++ b/analyticshub/v1/analyticshub-gen.go @@ -367,6 +367,12 @@ type BigQueryDatasetSource struct { // `projects/myproject/datasets/123` Dataset string `json:"dataset,omitempty"` + // SelectedResources: Optional. Resources in this dataset that are + // selectively shared. If this field is empty, then the entire dataset + // (all resources) are shared. This field is only valid for data clean + // room exchanges. + SelectedResources []*SelectedResource `json:"selectedResources,omitempty"` + // ForceSendFields is a list of field names (e.g. "Dataset") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -1546,6 +1552,38 @@ type RevokeSubscriptionResponse struct { googleapi.ServerResponse `json:"-"` } +// SelectedResource: Resource in this dataset that are selectively +// shared. +type SelectedResource struct { + // Table: Optional. Format: For table: + // `projects/{projectId}/datasets/{datasetId}/tables/{tableId}` + // Example:"projects/test_project/datasets/test_dataset/tables/test_table + // " + Table string `json:"table,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Table") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Table") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SelectedResource) MarshalJSON() ([]byte, error) { + type NoMethod SelectedResource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SetIamPolicyRequest: Request message for `SetIamPolicy` method. type SetIamPolicyRequest struct { // Policy: REQUIRED: The complete policy to be applied to the diff --git a/assuredworkloads/v1/assuredworkloads-api.json b/assuredworkloads/v1/assuredworkloads-api.json index d3964a9b3b3..3d7b1496d09 100644 --- a/assuredworkloads/v1/assuredworkloads-api.json +++ b/assuredworkloads/v1/assuredworkloads-api.json @@ -591,7 +591,7 @@ } } }, - "revision": "20231201", + "revision": "20240315", "rootUrl": "https://assuredworkloads.googleapis.com/", "schemas": { "GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest": { @@ -695,7 +695,8 @@ "CA_PROTECTED_B", "IL5", "IL2", - "JP_REGIONS_AND_SUPPORT" + "JP_REGIONS_AND_SUPPORT", + "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS" ], "enumDescriptions": [ "Unknown compliance regime.", @@ -716,7 +717,8 @@ "Assured Workloads for Canada Protected B regime", "Information protection as per DoD IL5 requirements.", "Information protection as per DoD IL2 requirements.", - "Assured Workloads for Japan Regions" + "Assured Workloads for Japan Regions", + "KSA R5 Controls." ], "type": "string" }, @@ -1172,7 +1174,8 @@ "CA_PROTECTED_B", "IL5", "IL2", - "JP_REGIONS_AND_SUPPORT" + "JP_REGIONS_AND_SUPPORT", + "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS" ], "enumDescriptions": [ "Unknown compliance regime.", @@ -1193,7 +1196,8 @@ "Assured Workloads for Canada Protected B regime", "Information protection as per DoD IL5 requirements.", "Information protection as per DoD IL2 requirements.", - "Assured Workloads for Japan Regions" + "Assured Workloads for Japan Regions", + "KSA R5 Controls." ], "type": "string" }, diff --git a/assuredworkloads/v1/assuredworkloads-gen.go b/assuredworkloads/v1/assuredworkloads-gen.go index 64951c78247..dc171fe15af 100644 --- a/assuredworkloads/v1/assuredworkloads-gen.go +++ b/assuredworkloads/v1/assuredworkloads-gen.go @@ -378,6 +378,8 @@ type GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata struct { // "IL5" - Information protection as per DoD IL5 requirements. // "IL2" - Information protection as per DoD IL2 requirements. // "JP_REGIONS_AND_SUPPORT" - Assured Workloads for Japan Regions + // "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS" - KSA R5 + // Controls. ComplianceRegime string `json:"complianceRegime,omitempty"` // CreateTime: Optional. Time when the operation was created. @@ -1060,6 +1062,8 @@ type GoogleCloudAssuredworkloadsV1Workload struct { // "IL5" - Information protection as per DoD IL5 requirements. // "IL2" - Information protection as per DoD IL2 requirements. // "JP_REGIONS_AND_SUPPORT" - Assured Workloads for Japan Regions + // "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS" - KSA R5 + // Controls. ComplianceRegime string `json:"complianceRegime,omitempty"` // ComplianceStatus: Output only. Count of active Violations in the diff --git a/assuredworkloads/v1beta1/assuredworkloads-api.json b/assuredworkloads/v1beta1/assuredworkloads-api.json index b3e3e0e29c4..78fccc415d9 100644 --- a/assuredworkloads/v1beta1/assuredworkloads-api.json +++ b/assuredworkloads/v1beta1/assuredworkloads-api.json @@ -563,7 +563,7 @@ } } }, - "revision": "20231201", + "revision": "20240315", "rootUrl": "https://assuredworkloads.googleapis.com/", "schemas": { "GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest": { @@ -667,7 +667,8 @@ "CA_PROTECTED_B", "IL5", "IL2", - "JP_REGIONS_AND_SUPPORT" + "JP_REGIONS_AND_SUPPORT", + "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS" ], "enumDescriptions": [ "Unknown compliance regime.", @@ -688,7 +689,8 @@ "Assured Workloads for Canada Protected B regime", "Information protection as per DoD IL5 requirements.", "Information protection as per DoD IL2 requirements.", - "Assured Workloads for Japan Regions" + "Assured Workloads for Japan Regions", + "KSA R5 Controls." ], "type": "string" }, @@ -1136,7 +1138,8 @@ "CA_PROTECTED_B", "IL5", "IL2", - "JP_REGIONS_AND_SUPPORT" + "JP_REGIONS_AND_SUPPORT", + "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS" ], "enumDescriptions": [ "Unknown compliance regime.", @@ -1157,7 +1160,8 @@ "Assured Workloads for Canada Protected B regime", "Information protection as per DoD IL5 requirements.", "Information protection as per DoD IL2 requirements.", - "Assured Workloads for Japan Regions" + "Assured Workloads for Japan Regions", + "KSA R5 Controls." ], "type": "string" }, diff --git a/assuredworkloads/v1beta1/assuredworkloads-gen.go b/assuredworkloads/v1beta1/assuredworkloads-gen.go index ca746d35e4d..98fc87daff3 100644 --- a/assuredworkloads/v1beta1/assuredworkloads-gen.go +++ b/assuredworkloads/v1beta1/assuredworkloads-gen.go @@ -379,6 +379,8 @@ type GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata struct { // "IL5" - Information protection as per DoD IL5 requirements. // "IL2" - Information protection as per DoD IL2 requirements. // "JP_REGIONS_AND_SUPPORT" - Assured Workloads for Japan Regions + // "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS" - KSA R5 + // Controls. ComplianceRegime string `json:"complianceRegime,omitempty"` // CreateTime: Optional. Time when the operation was created. @@ -1033,6 +1035,8 @@ type GoogleCloudAssuredworkloadsV1beta1Workload struct { // "IL5" - Information protection as per DoD IL5 requirements. // "IL2" - Information protection as per DoD IL2 requirements. // "JP_REGIONS_AND_SUPPORT" - Assured Workloads for Japan Regions + // "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS" - KSA R5 + // Controls. ComplianceRegime string `json:"complianceRegime,omitempty"` // ComplianceStatus: Output only. Count of active Violations in the diff --git a/bigtableadmin/v2/bigtableadmin-api.json b/bigtableadmin/v2/bigtableadmin-api.json index 2caf6fbf1f6..9224ad1d67d 100644 --- a/bigtableadmin/v2/bigtableadmin-api.json +++ b/bigtableadmin/v2/bigtableadmin-api.json @@ -1817,6 +1817,229 @@ "https://www.googleapis.com/auth/cloud-platform" ] } + }, + "resources": { + "authorizedViews": { + "methods": { + "create": { + "description": "Creates a new AuthorizedView in a table.", + "flatPath": "v2/projects/{projectsId}/instances/{instancesId}/tables/{tablesId}/authorizedViews", + "httpMethod": "POST", + "id": "bigtableadmin.projects.instances.tables.authorizedViews.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "authorizedViewId": { + "description": "Required. The id of the AuthorizedView to create. This AuthorizedView must not already exist. The `authorized_view_id` appended to `parent` forms the full AuthorizedView name of the form `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. This is the name of the table the AuthorizedView belongs to. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`.", + "location": "path", + "pattern": "^projects/[^/]+/instances/[^/]+/tables/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/authorizedViews", + "request": { + "$ref": "AuthorizedView" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigtable.admin", + "https://www.googleapis.com/auth/bigtable.admin.table", + "https://www.googleapis.com/auth/cloud-bigtable.admin", + "https://www.googleapis.com/auth/cloud-bigtable.admin.table", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Permanently deletes a specified AuthorizedView.", + "flatPath": "v2/projects/{projectsId}/instances/{instancesId}/tables/{tablesId}/authorizedViews/{authorizedViewsId}", + "httpMethod": "DELETE", + "id": "bigtableadmin.projects.instances.tables.authorizedViews.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "etag": { + "description": "Optional. The current etag of the AuthorizedView. If an etag is provided and does not match the current etag of the AuthorizedView, deletion will be blocked and an ABORTED error will be returned.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The unique name of the AuthorizedView to be deleted. Values are of the form `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`.", + "location": "path", + "pattern": "^projects/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigtable.admin", + "https://www.googleapis.com/auth/bigtable.admin.table", + "https://www.googleapis.com/auth/cloud-bigtable.admin", + "https://www.googleapis.com/auth/cloud-bigtable.admin.table", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets information from a specified AuthorizedView.", + "flatPath": "v2/projects/{projectsId}/instances/{instancesId}/tables/{tablesId}/authorizedViews/{authorizedViewsId}", + "httpMethod": "GET", + "id": "bigtableadmin.projects.instances.tables.authorizedViews.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The unique name of the requested AuthorizedView. Values are of the form `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`.", + "location": "path", + "pattern": "^projects/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+$", + "required": true, + "type": "string" + }, + "view": { + "description": "Optional. The resource_view to be applied to the returned AuthorizedView's fields. Default to BASIC.", + "enum": [ + "RESPONSE_VIEW_UNSPECIFIED", + "NAME_ONLY", + "BASIC", + "FULL" + ], + "enumDescriptions": [ + "Uses the default view for each method as documented in the request.", + "Only populates `name`.", + "Only populates the AuthorizedView's basic metadata. This includes: name, deletion_protection, etag.", + "Populates every fields." + ], + "location": "query", + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "AuthorizedView" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigtable.admin", + "https://www.googleapis.com/auth/bigtable.admin.table", + "https://www.googleapis.com/auth/cloud-bigtable.admin", + "https://www.googleapis.com/auth/cloud-bigtable.admin.table", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all AuthorizedViews from a specific table.", + "flatPath": "v2/projects/{projectsId}/instances/{instancesId}/tables/{tablesId}/authorizedViews", + "httpMethod": "GET", + "id": "bigtableadmin.projects.instances.tables.authorizedViews.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. Maximum number of results per page. A page_size of zero lets the server choose the number of items to return. A page_size which is strictly positive will return at most that many items. A negative page_size will cause an error. Following the first request, subsequent paginated calls are not required to pass a page_size. If a page_size is set in subsequent calls, it must match the page_size given in the first request.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The value of `next_page_token` returned by a previous call.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The unique name of the table for which AuthorizedViews should be listed. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`.", + "location": "path", + "pattern": "^projects/[^/]+/instances/[^/]+/tables/[^/]+$", + "required": true, + "type": "string" + }, + "view": { + "description": "Optional. The resource_view to be applied to the returned views' fields. Default to NAME_ONLY.", + "enum": [ + "RESPONSE_VIEW_UNSPECIFIED", + "NAME_ONLY", + "BASIC", + "FULL" + ], + "enumDescriptions": [ + "Uses the default view for each method as documented in the request.", + "Only populates `name`.", + "Only populates the AuthorizedView's basic metadata. This includes: name, deletion_protection, etag.", + "Populates every fields." + ], + "location": "query", + "type": "string" + } + }, + "path": "v2/{+parent}/authorizedViews", + "response": { + "$ref": "ListAuthorizedViewsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigtable.admin", + "https://www.googleapis.com/auth/bigtable.admin.table", + "https://www.googleapis.com/auth/cloud-bigtable.admin", + "https://www.googleapis.com/auth/cloud-bigtable.admin.table", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an AuthorizedView in a table.", + "flatPath": "v2/projects/{projectsId}/instances/{instancesId}/tables/{tablesId}/authorizedViews/{authorizedViewsId}", + "httpMethod": "PATCH", + "id": "bigtableadmin.projects.instances.tables.authorizedViews.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "ignoreWarnings": { + "description": "Optional. If true, ignore the safety checks when updating the AuthorizedView.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Identifier. The name of this AuthorizedView. Values are of the form `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`", + "location": "path", + "pattern": "^projects/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. The list of fields to update. A mask specifying which fields in the AuthorizedView resource should be updated. This mask is relative to the AuthorizedView resource, not to the request message. A field will be overwritten if it is in the mask. If empty, all fields set in the request will be overwritten. A special value `*` means to overwrite all fields (including fields not set in the request).", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v2/{+name}", + "request": { + "$ref": "AuthorizedView" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigtable.admin", + "https://www.googleapis.com/auth/bigtable.admin.table", + "https://www.googleapis.com/auth/cloud-bigtable.admin", + "https://www.googleapis.com/auth/cloud-bigtable.admin.table", + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } } } } @@ -1875,7 +2098,7 @@ } } }, - "revision": "20240225", + "revision": "20240306", "rootUrl": "https://bigtableadmin.googleapis.com/", "schemas": { "AppProfile": { @@ -1974,6 +2197,29 @@ }, "type": "object" }, + "AuthorizedView": { + "description": "Placeholder for admin API work while we work out the internals.", + "id": "AuthorizedView", + "properties": { + "deletionProtection": { + "description": "Set to true to make the AuthorizedView protected against deletion. The parent Table and containing Instance cannot be deleted if an AuthorizedView has this bit set.", + "type": "boolean" + }, + "etag": { + "description": "The etag for this AuthorizedView. If this is provided on update, it must match the server's etag. The server returns ABORTED error on a mismatched etag.", + "type": "string" + }, + "name": { + "description": "Identifier. The name of this AuthorizedView. Values are of the form `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`", + "type": "string" + }, + "subsetView": { + "$ref": "GoogleBigtableAdminV2AuthorizedViewSubsetView", + "description": "An AuthorizedView permitting access to an explicit subset of a Table." + } + }, + "type": "object" + }, "AutomatedBackupPolicy": { "description": "Defines an automated backup policy for a table", "id": "AutomatedBackupPolicy", @@ -2378,6 +2624,46 @@ }, "type": "object" }, + "CreateAuthorizedViewMetadata": { + "description": "The metadata for the Operation returned by CreateAuthorizedView.", + "id": "CreateAuthorizedViewMetadata", + "properties": { + "finishTime": { + "description": "The time at which the operation failed or was completed successfully.", + "format": "google-datetime", + "type": "string" + }, + "originalRequest": { + "$ref": "CreateAuthorizedViewRequest", + "description": "The request that prompted the initiation of this CreateInstance operation." + }, + "requestTime": { + "description": "The time at which the original request was received.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "CreateAuthorizedViewRequest": { + "description": "The request for CreateAuthorizedView", + "id": "CreateAuthorizedViewRequest", + "properties": { + "authorizedView": { + "$ref": "AuthorizedView", + "description": "Required. The AuthorizedView to create." + }, + "authorizedViewId": { + "description": "Required. The id of the AuthorizedView to create. This AuthorizedView must not already exist. The `authorized_view_id` appended to `parent` forms the full AuthorizedView name of the form `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`.", + "type": "string" + }, + "parent": { + "description": "Required. This is the name of the table the AuthorizedView belongs to. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`.", + "type": "string" + } + }, + "type": "object" + }, "CreateBackupMetadata": { "description": "Metadata type for the operation returned by CreateBackup.", "id": "CreateBackupMetadata", @@ -2672,6 +2958,51 @@ }, "type": "object" }, + "GoogleBigtableAdminV2AuthorizedViewFamilySubsets": { + "description": "Subsets of a column family that are included in this AuthorizedView.", + "id": "GoogleBigtableAdminV2AuthorizedViewFamilySubsets", + "properties": { + "qualifierPrefixes": { + "description": "Prefixes for qualifiers to be included in the AuthorizedView. Every qualifier starting with one of these prefixes is included in the AuthorizedView. To provide access to all qualifiers, include the empty string as a prefix (\"\").", + "items": { + "format": "byte", + "type": "string" + }, + "type": "array" + }, + "qualifiers": { + "description": "Individual exact column qualifiers to be included in the AuthorizedView.", + "items": { + "format": "byte", + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleBigtableAdminV2AuthorizedViewSubsetView": { + "description": "Defines a simple AuthorizedView that is a subset of the underlying Table.", + "id": "GoogleBigtableAdminV2AuthorizedViewSubsetView", + "properties": { + "familySubsets": { + "additionalProperties": { + "$ref": "GoogleBigtableAdminV2AuthorizedViewFamilySubsets" + }, + "description": "Map from column family name to the columns in this family to be included in the AuthorizedView.", + "type": "object" + }, + "rowPrefixes": { + "description": "Row prefixes to be included in the AuthorizedView. To provide access to all rows, include the empty string as a prefix (\"\").", + "items": { + "format": "byte", + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "HotTablet": { "description": "A tablet is a defined by a start and end key and is explained in https://cloud.google.com/bigtable/docs/overview#architecture and https://cloud.google.com/bigtable/docs/performance#optimization. A Hot tablet is a tablet that exhibits high average cpu usage during the time interval from start time to end time.", "id": "HotTablet", @@ -2814,6 +3145,24 @@ }, "type": "object" }, + "ListAuthorizedViewsResponse": { + "description": "Response message for google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews", + "id": "ListAuthorizedViewsResponse", + "properties": { + "authorizedViews": { + "description": "The AuthorizedViews present in the requested table.", + "items": { + "$ref": "AuthorizedView" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Set if not all tables could be returned in a single response. Pass this value to `page_token` in another request to get the next page of results.", + "type": "string" + } + }, + "type": "object" + }, "ListBackupsResponse": { "description": "The response for ListBackups.", "id": "ListBackupsResponse", @@ -3565,6 +3914,47 @@ "properties": {}, "type": "object" }, + "UpdateAuthorizedViewMetadata": { + "description": "Metadata for the google.longrunning.Operation returned by UpdateAuthorizedView.", + "id": "UpdateAuthorizedViewMetadata", + "properties": { + "finishTime": { + "description": "The time at which the operation failed or was completed successfully.", + "format": "google-datetime", + "type": "string" + }, + "originalRequest": { + "$ref": "UpdateAuthorizedViewRequest", + "description": "The request that prompted the initiation of this UpdateAuthorizedView operation." + }, + "requestTime": { + "description": "The time at which the original request was received.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "UpdateAuthorizedViewRequest": { + "description": "The request for UpdateAuthorizedView.", + "id": "UpdateAuthorizedViewRequest", + "properties": { + "authorizedView": { + "$ref": "AuthorizedView", + "description": "Required. The AuthorizedView to update. The `name` in `authorized_view` is used to identify the AuthorizedView. AuthorizedView name must in this format projects//instances//tables//authorizedViews/" + }, + "ignoreWarnings": { + "description": "Optional. If true, ignore the safety checks when updating the AuthorizedView.", + "type": "boolean" + }, + "updateMask": { + "description": "Optional. The list of fields to update. A mask specifying which fields in the AuthorizedView resource should be updated. This mask is relative to the AuthorizedView resource, not to the request message. A field will be overwritten if it is in the mask. If empty, all fields set in the request will be overwritten. A special value `*` means to overwrite all fields (including fields not set in the request).", + "format": "google-fieldmask", + "type": "string" + } + }, + "type": "object" + }, "UpdateClusterMetadata": { "description": "The metadata for the Operation returned by UpdateCluster.", "id": "UpdateClusterMetadata", diff --git a/bigtableadmin/v2/bigtableadmin-gen.go b/bigtableadmin/v2/bigtableadmin-gen.go index b86fb0a57f4..f37c66a7c78 100644 --- a/bigtableadmin/v2/bigtableadmin-gen.go +++ b/bigtableadmin/v2/bigtableadmin-gen.go @@ -306,11 +306,23 @@ type ProjectsInstancesClustersHotTabletsService struct { func NewProjectsInstancesTablesService(s *Service) *ProjectsInstancesTablesService { rs := &ProjectsInstancesTablesService{s: s} + rs.AuthorizedViews = NewProjectsInstancesTablesAuthorizedViewsService(s) return rs } type ProjectsInstancesTablesService struct { s *Service + + AuthorizedViews *ProjectsInstancesTablesAuthorizedViewsService +} + +func NewProjectsInstancesTablesAuthorizedViewsService(s *Service) *ProjectsInstancesTablesAuthorizedViewsService { + rs := &ProjectsInstancesTablesAuthorizedViewsService{s: s} + return rs +} + +type ProjectsInstancesTablesAuthorizedViewsService struct { + s *Service } func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { @@ -489,6 +501,57 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AuthorizedView: Placeholder for admin API work while we work out the +// internals. +type AuthorizedView struct { + // DeletionProtection: Set to true to make the AuthorizedView protected + // against deletion. The parent Table and containing Instance cannot be + // deleted if an AuthorizedView has this bit set. + DeletionProtection bool `json:"deletionProtection,omitempty"` + + // Etag: The etag for this AuthorizedView. If this is provided on + // update, it must match the server's etag. The server returns ABORTED + // error on a mismatched etag. + Etag string `json:"etag,omitempty"` + + // Name: Identifier. The name of this AuthorizedView. Values are of the + // form + // `projects/{project}/instances/{instance}/tables/{table}/authorizedView + // s/{authorized_view}` + Name string `json:"name,omitempty"` + + // SubsetView: An AuthorizedView permitting access to an explicit subset + // of a Table. + SubsetView *GoogleBigtableAdminV2AuthorizedViewSubsetView `json:"subsetView,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DeletionProtection") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DeletionProtection") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AuthorizedView) MarshalJSON() ([]byte, error) { + type NoMethod AuthorizedView + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AutomatedBackupPolicy: Defines an automated backup policy for a table type AutomatedBackupPolicy struct { // Frequency: Required. How frequently automated backups should occur. @@ -1339,6 +1402,84 @@ func (s *CopyBackupRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CreateAuthorizedViewMetadata: The metadata for the Operation returned +// by CreateAuthorizedView. +type CreateAuthorizedViewMetadata struct { + // FinishTime: The time at which the operation failed or was completed + // successfully. + FinishTime string `json:"finishTime,omitempty"` + + // OriginalRequest: The request that prompted the initiation of this + // CreateInstance operation. + OriginalRequest *CreateAuthorizedViewRequest `json:"originalRequest,omitempty"` + + // RequestTime: The time at which the original request was received. + RequestTime string `json:"requestTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FinishTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FinishTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CreateAuthorizedViewMetadata) MarshalJSON() ([]byte, error) { + type NoMethod CreateAuthorizedViewMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CreateAuthorizedViewRequest: The request for CreateAuthorizedView +type CreateAuthorizedViewRequest struct { + // AuthorizedView: Required. The AuthorizedView to create. + AuthorizedView *AuthorizedView `json:"authorizedView,omitempty"` + + // AuthorizedViewId: Required. The id of the AuthorizedView to create. + // This AuthorizedView must not already exist. The `authorized_view_id` + // appended to `parent` forms the full AuthorizedView name of the form + // `projects/{project}/instances/{instance}/tables/{table}/authorizedView + // /{authorized_view}`. + AuthorizedViewId string `json:"authorizedViewId,omitempty"` + + // Parent: Required. This is the name of the table the AuthorizedView + // belongs to. Values are of the form + // `projects/{project}/instances/{instance}/tables/{table}`. + Parent string `json:"parent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AuthorizedView") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AuthorizedView") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CreateAuthorizedViewRequest) MarshalJSON() ([]byte, error) { + type NoMethod CreateAuthorizedViewRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CreateBackupMetadata: Metadata type for the operation returned by // CreateBackup. type CreateBackupMetadata struct { @@ -1944,6 +2085,78 @@ func (s *GetPolicyOptions) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleBigtableAdminV2AuthorizedViewFamilySubsets: Subsets of a column +// family that are included in this AuthorizedView. +type GoogleBigtableAdminV2AuthorizedViewFamilySubsets struct { + // QualifierPrefixes: Prefixes for qualifiers to be included in the + // AuthorizedView. Every qualifier starting with one of these prefixes + // is included in the AuthorizedView. To provide access to all + // qualifiers, include the empty string as a prefix (""). + QualifierPrefixes []string `json:"qualifierPrefixes,omitempty"` + + // Qualifiers: Individual exact column qualifiers to be included in the + // AuthorizedView. + Qualifiers []string `json:"qualifiers,omitempty"` + + // ForceSendFields is a list of field names (e.g. "QualifierPrefixes") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "QualifierPrefixes") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleBigtableAdminV2AuthorizedViewFamilySubsets) MarshalJSON() ([]byte, error) { + type NoMethod GoogleBigtableAdminV2AuthorizedViewFamilySubsets + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleBigtableAdminV2AuthorizedViewSubsetView: Defines a simple +// AuthorizedView that is a subset of the underlying Table. +type GoogleBigtableAdminV2AuthorizedViewSubsetView struct { + // FamilySubsets: Map from column family name to the columns in this + // family to be included in the AuthorizedView. + FamilySubsets map[string]GoogleBigtableAdminV2AuthorizedViewFamilySubsets `json:"familySubsets,omitempty"` + + // RowPrefixes: Row prefixes to be included in the AuthorizedView. To + // provide access to all rows, include the empty string as a prefix + // (""). + RowPrefixes []string `json:"rowPrefixes,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FamilySubsets") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FamilySubsets") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleBigtableAdminV2AuthorizedViewSubsetView) MarshalJSON() ([]byte, error) { + type NoMethod GoogleBigtableAdminV2AuthorizedViewSubsetView + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // HotTablet: A tablet is a defined by a start and end key and is // explained in // https://cloud.google.com/bigtable/docs/overview#architecture and @@ -2175,6 +2388,45 @@ func (s *ListAppProfilesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListAuthorizedViewsResponse: Response message for +// google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews +type ListAuthorizedViewsResponse struct { + // AuthorizedViews: The AuthorizedViews present in the requested table. + AuthorizedViews []*AuthorizedView `json:"authorizedViews,omitempty"` + + // NextPageToken: Set if not all tables could be returned in a single + // response. Pass this value to `page_token` in another request to get + // the next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AuthorizedViews") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AuthorizedViews") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ListAuthorizedViewsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListAuthorizedViewsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListBackupsResponse: The response for ListBackups. type ListBackupsResponse struct { // Backups: The list of matching backups. @@ -3619,6 +3871,88 @@ func (s *Union) MarshalJSON() ([]byte, error) { type UpdateAppProfileMetadata struct { } +// UpdateAuthorizedViewMetadata: Metadata for the +// google.longrunning.Operation returned by UpdateAuthorizedView. +type UpdateAuthorizedViewMetadata struct { + // FinishTime: The time at which the operation failed or was completed + // successfully. + FinishTime string `json:"finishTime,omitempty"` + + // OriginalRequest: The request that prompted the initiation of this + // UpdateAuthorizedView operation. + OriginalRequest *UpdateAuthorizedViewRequest `json:"originalRequest,omitempty"` + + // RequestTime: The time at which the original request was received. + RequestTime string `json:"requestTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FinishTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FinishTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *UpdateAuthorizedViewMetadata) MarshalJSON() ([]byte, error) { + type NoMethod UpdateAuthorizedViewMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// UpdateAuthorizedViewRequest: The request for UpdateAuthorizedView. +type UpdateAuthorizedViewRequest struct { + // AuthorizedView: Required. The AuthorizedView to update. The `name` in + // `authorized_view` is used to identify the AuthorizedView. + // AuthorizedView name must in this format + // projects//instances//tables//authorizedViews/ + AuthorizedView *AuthorizedView `json:"authorizedView,omitempty"` + + // IgnoreWarnings: Optional. If true, ignore the safety checks when + // updating the AuthorizedView. + IgnoreWarnings bool `json:"ignoreWarnings,omitempty"` + + // UpdateMask: Optional. The list of fields to update. A mask specifying + // which fields in the AuthorizedView resource should be updated. This + // mask is relative to the AuthorizedView resource, not to the request + // message. A field will be overwritten if it is in the mask. If empty, + // all fields set in the request will be overwritten. A special value + // `*` means to overwrite all fields (including fields not set in the + // request). + UpdateMask string `json:"updateMask,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AuthorizedView") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AuthorizedView") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *UpdateAuthorizedViewRequest) MarshalJSON() ([]byte, error) { + type NoMethod UpdateAuthorizedViewRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // UpdateClusterMetadata: The metadata for the Operation returned by // UpdateCluster. type UpdateClusterMetadata struct { @@ -11330,6 +11664,932 @@ func (c *ProjectsInstancesTablesUndeleteCall) Do(opts ...googleapi.CallOption) ( } +// method id "bigtableadmin.projects.instances.tables.authorizedViews.create": + +type ProjectsInstancesTablesAuthorizedViewsCreateCall struct { + s *Service + parent string + authorizedview *AuthorizedView + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new AuthorizedView in a table. +// +// - parent: This is the name of the table the AuthorizedView belongs +// to. Values are of the form +// `projects/{project}/instances/{instance}/tables/{table}`. +func (r *ProjectsInstancesTablesAuthorizedViewsService) Create(parent string, authorizedview *AuthorizedView) *ProjectsInstancesTablesAuthorizedViewsCreateCall { + c := &ProjectsInstancesTablesAuthorizedViewsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.authorizedview = authorizedview + return c +} + +// AuthorizedViewId sets the optional parameter "authorizedViewId": +// Required. The id of the AuthorizedView to create. This AuthorizedView +// must not already exist. The `authorized_view_id` appended to `parent` +// forms the full AuthorizedView name of the form +// `projects/{project}/instances/{instance}/tables/{table}/authorizedView +// /{authorized_view}`. +func (c *ProjectsInstancesTablesAuthorizedViewsCreateCall) AuthorizedViewId(authorizedViewId string) *ProjectsInstancesTablesAuthorizedViewsCreateCall { + c.urlParams_.Set("authorizedViewId", authorizedViewId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsInstancesTablesAuthorizedViewsCreateCall) Fields(s ...googleapi.Field) *ProjectsInstancesTablesAuthorizedViewsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsInstancesTablesAuthorizedViewsCreateCall) Context(ctx context.Context) *ProjectsInstancesTablesAuthorizedViewsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsInstancesTablesAuthorizedViewsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsInstancesTablesAuthorizedViewsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" 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.authorizedview) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/authorizedViews") + 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 "bigtableadmin.projects.instances.tables.authorizedViews.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 *ProjectsInstancesTablesAuthorizedViewsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new AuthorizedView in a table.", + // "flatPath": "v2/projects/{projectsId}/instances/{instancesId}/tables/{tablesId}/authorizedViews", + // "httpMethod": "POST", + // "id": "bigtableadmin.projects.instances.tables.authorizedViews.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "authorizedViewId": { + // "description": "Required. The id of the AuthorizedView to create. This AuthorizedView must not already exist. The `authorized_view_id` appended to `parent` forms the full AuthorizedView name of the form `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. This is the name of the table the AuthorizedView belongs to. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`.", + // "location": "path", + // "pattern": "^projects/[^/]+/instances/[^/]+/tables/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/authorizedViews", + // "request": { + // "$ref": "AuthorizedView" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/bigtable.admin", + // "https://www.googleapis.com/auth/bigtable.admin.table", + // "https://www.googleapis.com/auth/cloud-bigtable.admin", + // "https://www.googleapis.com/auth/cloud-bigtable.admin.table", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "bigtableadmin.projects.instances.tables.authorizedViews.delete": + +type ProjectsInstancesTablesAuthorizedViewsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Permanently deletes a specified AuthorizedView. +// +// - name: The unique name of the AuthorizedView to be deleted. Values +// are of the form +// `projects/{project}/instances/{instance}/tables/{table}/authorizedVi +// ews/{authorized_view}`. +func (r *ProjectsInstancesTablesAuthorizedViewsService) Delete(name string) *ProjectsInstancesTablesAuthorizedViewsDeleteCall { + c := &ProjectsInstancesTablesAuthorizedViewsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Etag sets the optional parameter "etag": The current etag of the +// AuthorizedView. If an etag is provided and does not match the current +// etag of the AuthorizedView, deletion will be blocked and an ABORTED +// error will be returned. +func (c *ProjectsInstancesTablesAuthorizedViewsDeleteCall) Etag(etag string) *ProjectsInstancesTablesAuthorizedViewsDeleteCall { + c.urlParams_.Set("etag", etag) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsInstancesTablesAuthorizedViewsDeleteCall) Fields(s ...googleapi.Field) *ProjectsInstancesTablesAuthorizedViewsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsInstancesTablesAuthorizedViewsDeleteCall) Context(ctx context.Context) *ProjectsInstancesTablesAuthorizedViewsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsInstancesTablesAuthorizedViewsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsInstancesTablesAuthorizedViewsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" 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, "v2/{+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 "bigtableadmin.projects.instances.tables.authorizedViews.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsInstancesTablesAuthorizedViewsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Permanently deletes a specified AuthorizedView.", + // "flatPath": "v2/projects/{projectsId}/instances/{instancesId}/tables/{tablesId}/authorizedViews/{authorizedViewsId}", + // "httpMethod": "DELETE", + // "id": "bigtableadmin.projects.instances.tables.authorizedViews.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "etag": { + // "description": "Optional. The current etag of the AuthorizedView. If an etag is provided and does not match the current etag of the AuthorizedView, deletion will be blocked and an ABORTED error will be returned.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "Required. The unique name of the AuthorizedView to be deleted. Values are of the form `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`.", + // "location": "path", + // "pattern": "^projects/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/bigtable.admin", + // "https://www.googleapis.com/auth/bigtable.admin.table", + // "https://www.googleapis.com/auth/cloud-bigtable.admin", + // "https://www.googleapis.com/auth/cloud-bigtable.admin.table", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "bigtableadmin.projects.instances.tables.authorizedViews.get": + +type ProjectsInstancesTablesAuthorizedViewsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information from a specified AuthorizedView. +// +// - name: The unique name of the requested AuthorizedView. Values are +// of the form +// `projects/{project}/instances/{instance}/tables/{table}/authorizedVi +// ews/{authorized_view}`. +func (r *ProjectsInstancesTablesAuthorizedViewsService) Get(name string) *ProjectsInstancesTablesAuthorizedViewsGetCall { + c := &ProjectsInstancesTablesAuthorizedViewsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// View sets the optional parameter "view": The resource_view to be +// applied to the returned AuthorizedView's fields. Default to BASIC. +// +// Possible values: +// +// "RESPONSE_VIEW_UNSPECIFIED" - Uses the default view for each method +// +// as documented in the request. +// +// "NAME_ONLY" - Only populates `name`. +// "BASIC" - Only populates the AuthorizedView's basic metadata. This +// +// includes: name, deletion_protection, etag. +// +// "FULL" - Populates every fields. +func (c *ProjectsInstancesTablesAuthorizedViewsGetCall) View(view string) *ProjectsInstancesTablesAuthorizedViewsGetCall { + c.urlParams_.Set("view", view) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsInstancesTablesAuthorizedViewsGetCall) Fields(s ...googleapi.Field) *ProjectsInstancesTablesAuthorizedViewsGetCall { + 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 *ProjectsInstancesTablesAuthorizedViewsGetCall) IfNoneMatch(entityTag string) *ProjectsInstancesTablesAuthorizedViewsGetCall { + 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 *ProjectsInstancesTablesAuthorizedViewsGetCall) Context(ctx context.Context) *ProjectsInstancesTablesAuthorizedViewsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsInstancesTablesAuthorizedViewsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsInstancesTablesAuthorizedViewsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "bigtableadmin.projects.instances.tables.authorizedViews.get" call. +// Exactly one of *AuthorizedView or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *AuthorizedView.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsInstancesTablesAuthorizedViewsGetCall) Do(opts ...googleapi.CallOption) (*AuthorizedView, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &AuthorizedView{ + ServerResponse: googleapi.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 from a specified AuthorizedView.", + // "flatPath": "v2/projects/{projectsId}/instances/{instancesId}/tables/{tablesId}/authorizedViews/{authorizedViewsId}", + // "httpMethod": "GET", + // "id": "bigtableadmin.projects.instances.tables.authorizedViews.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The unique name of the requested AuthorizedView. Values are of the form `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`.", + // "location": "path", + // "pattern": "^projects/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "view": { + // "description": "Optional. The resource_view to be applied to the returned AuthorizedView's fields. Default to BASIC.", + // "enum": [ + // "RESPONSE_VIEW_UNSPECIFIED", + // "NAME_ONLY", + // "BASIC", + // "FULL" + // ], + // "enumDescriptions": [ + // "Uses the default view for each method as documented in the request.", + // "Only populates `name`.", + // "Only populates the AuthorizedView's basic metadata. This includes: name, deletion_protection, etag.", + // "Populates every fields." + // ], + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "AuthorizedView" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/bigtable.admin", + // "https://www.googleapis.com/auth/bigtable.admin.table", + // "https://www.googleapis.com/auth/cloud-bigtable.admin", + // "https://www.googleapis.com/auth/cloud-bigtable.admin.table", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "bigtableadmin.projects.instances.tables.authorizedViews.list": + +type ProjectsInstancesTablesAuthorizedViewsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all AuthorizedViews from a specific table. +// +// - parent: The unique name of the table for which AuthorizedViews +// should be listed. Values are of the form +// `projects/{project}/instances/{instance}/tables/{table}`. +func (r *ProjectsInstancesTablesAuthorizedViewsService) List(parent string) *ProjectsInstancesTablesAuthorizedViewsListCall { + c := &ProjectsInstancesTablesAuthorizedViewsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// results per page. A page_size of zero lets the server choose the +// number of items to return. A page_size which is strictly positive +// will return at most that many items. A negative page_size will cause +// an error. Following the first request, subsequent paginated calls are +// not required to pass a page_size. If a page_size is set in subsequent +// calls, it must match the page_size given in the first request. +func (c *ProjectsInstancesTablesAuthorizedViewsListCall) PageSize(pageSize int64) *ProjectsInstancesTablesAuthorizedViewsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value of +// `next_page_token` returned by a previous call. +func (c *ProjectsInstancesTablesAuthorizedViewsListCall) PageToken(pageToken string) *ProjectsInstancesTablesAuthorizedViewsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// View sets the optional parameter "view": The resource_view to be +// applied to the returned views' fields. Default to NAME_ONLY. +// +// Possible values: +// +// "RESPONSE_VIEW_UNSPECIFIED" - Uses the default view for each method +// +// as documented in the request. +// +// "NAME_ONLY" - Only populates `name`. +// "BASIC" - Only populates the AuthorizedView's basic metadata. This +// +// includes: name, deletion_protection, etag. +// +// "FULL" - Populates every fields. +func (c *ProjectsInstancesTablesAuthorizedViewsListCall) View(view string) *ProjectsInstancesTablesAuthorizedViewsListCall { + c.urlParams_.Set("view", view) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsInstancesTablesAuthorizedViewsListCall) Fields(s ...googleapi.Field) *ProjectsInstancesTablesAuthorizedViewsListCall { + 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 *ProjectsInstancesTablesAuthorizedViewsListCall) IfNoneMatch(entityTag string) *ProjectsInstancesTablesAuthorizedViewsListCall { + 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 *ProjectsInstancesTablesAuthorizedViewsListCall) Context(ctx context.Context) *ProjectsInstancesTablesAuthorizedViewsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsInstancesTablesAuthorizedViewsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsInstancesTablesAuthorizedViewsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/authorizedViews") + 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 "bigtableadmin.projects.instances.tables.authorizedViews.list" call. +// Exactly one of *ListAuthorizedViewsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListAuthorizedViewsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsInstancesTablesAuthorizedViewsListCall) Do(opts ...googleapi.CallOption) (*ListAuthorizedViewsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListAuthorizedViewsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists all AuthorizedViews from a specific table.", + // "flatPath": "v2/projects/{projectsId}/instances/{instancesId}/tables/{tablesId}/authorizedViews", + // "httpMethod": "GET", + // "id": "bigtableadmin.projects.instances.tables.authorizedViews.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. Maximum number of results per page. A page_size of zero lets the server choose the number of items to return. A page_size which is strictly positive will return at most that many items. A negative page_size will cause an error. Following the first request, subsequent paginated calls are not required to pass a page_size. If a page_size is set in subsequent calls, it must match the page_size given in the first request.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. The value of `next_page_token` returned by a previous call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The unique name of the table for which AuthorizedViews should be listed. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`.", + // "location": "path", + // "pattern": "^projects/[^/]+/instances/[^/]+/tables/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "view": { + // "description": "Optional. The resource_view to be applied to the returned views' fields. Default to NAME_ONLY.", + // "enum": [ + // "RESPONSE_VIEW_UNSPECIFIED", + // "NAME_ONLY", + // "BASIC", + // "FULL" + // ], + // "enumDescriptions": [ + // "Uses the default view for each method as documented in the request.", + // "Only populates `name`.", + // "Only populates the AuthorizedView's basic metadata. This includes: name, deletion_protection, etag.", + // "Populates every fields." + // ], + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/authorizedViews", + // "response": { + // "$ref": "ListAuthorizedViewsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/bigtable.admin", + // "https://www.googleapis.com/auth/bigtable.admin.table", + // "https://www.googleapis.com/auth/cloud-bigtable.admin", + // "https://www.googleapis.com/auth/cloud-bigtable.admin.table", + // "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 *ProjectsInstancesTablesAuthorizedViewsListCall) Pages(ctx context.Context, f func(*ListAuthorizedViewsResponse) 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 "bigtableadmin.projects.instances.tables.authorizedViews.patch": + +type ProjectsInstancesTablesAuthorizedViewsPatchCall struct { + s *Service + name string + authorizedview *AuthorizedView + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an AuthorizedView in a table. +// +// - name: Identifier. The name of this AuthorizedView. Values are of +// the form +// `projects/{project}/instances/{instance}/tables/{table}/authorizedVi +// ews/{authorized_view}`. +func (r *ProjectsInstancesTablesAuthorizedViewsService) Patch(name string, authorizedview *AuthorizedView) *ProjectsInstancesTablesAuthorizedViewsPatchCall { + c := &ProjectsInstancesTablesAuthorizedViewsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.authorizedview = authorizedview + return c +} + +// IgnoreWarnings sets the optional parameter "ignoreWarnings": If true, +// ignore the safety checks when updating the AuthorizedView. +func (c *ProjectsInstancesTablesAuthorizedViewsPatchCall) IgnoreWarnings(ignoreWarnings bool) *ProjectsInstancesTablesAuthorizedViewsPatchCall { + c.urlParams_.Set("ignoreWarnings", fmt.Sprint(ignoreWarnings)) + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of +// fields to update. A mask specifying which fields in the +// AuthorizedView resource should be updated. This mask is relative to +// the AuthorizedView resource, not to the request message. A field will +// be overwritten if it is in the mask. If empty, all fields set in the +// request will be overwritten. A special value `*` means to overwrite +// all fields (including fields not set in the request). +func (c *ProjectsInstancesTablesAuthorizedViewsPatchCall) UpdateMask(updateMask string) *ProjectsInstancesTablesAuthorizedViewsPatchCall { + 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 *ProjectsInstancesTablesAuthorizedViewsPatchCall) Fields(s ...googleapi.Field) *ProjectsInstancesTablesAuthorizedViewsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsInstancesTablesAuthorizedViewsPatchCall) Context(ctx context.Context) *ProjectsInstancesTablesAuthorizedViewsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsInstancesTablesAuthorizedViewsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsInstancesTablesAuthorizedViewsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" 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.authorizedview) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("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 "bigtableadmin.projects.instances.tables.authorizedViews.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 *ProjectsInstancesTablesAuthorizedViewsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates an AuthorizedView in a table.", + // "flatPath": "v2/projects/{projectsId}/instances/{instancesId}/tables/{tablesId}/authorizedViews/{authorizedViewsId}", + // "httpMethod": "PATCH", + // "id": "bigtableadmin.projects.instances.tables.authorizedViews.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "ignoreWarnings": { + // "description": "Optional. If true, ignore the safety checks when updating the AuthorizedView.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Identifier. The name of this AuthorizedView. Values are of the form `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`", + // "location": "path", + // "pattern": "^projects/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Optional. The list of fields to update. A mask specifying which fields in the AuthorizedView resource should be updated. This mask is relative to the AuthorizedView resource, not to the request message. A field will be overwritten if it is in the mask. If empty, all fields set in the request will be overwritten. A special value `*` means to overwrite all fields (including fields not set in the request).", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "request": { + // "$ref": "AuthorizedView" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/bigtable.admin", + // "https://www.googleapis.com/auth/bigtable.admin.table", + // "https://www.googleapis.com/auth/cloud-bigtable.admin", + // "https://www.googleapis.com/auth/cloud-bigtable.admin.table", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "bigtableadmin.projects.locations.list": type ProjectsLocationsListCall struct { diff --git a/checks/v1alpha/checks-api.json b/checks/v1alpha/checks-api.json index 296f6190353..e060005ab32 100644 --- a/checks/v1alpha/checks-api.json +++ b/checks/v1alpha/checks-api.json @@ -414,7 +414,7 @@ } } }, - "revision": "20240312", + "revision": "20240314", "rootUrl": "https://checks.googleapis.com/", "schemas": { "CancelOperationRequest": { @@ -796,7 +796,8 @@ "QUEBEC_ACT", "QUEBEC_BILL_64", "CHINA_PIPL", - "SOUTH_KOREA_PIPA" + "SOUTH_KOREA_PIPA", + "SOUTH_AFRICA_POPIA" ], "enumDescriptions": [ "Not specified.", @@ -819,7 +820,8 @@ "Quebec: Act Respecting the Protection of Personal Information in the Private Sector.", "Quebec Bill 64: An Act to Modernize Legislative Provisions as Regards the Protection of Personal Information.", "China Personal Information Protection Law.", - "South Korea Personal Information Protection Act." + "South Korea Personal Information Protection Act.", + "South Africa Protection of Personal Information Act." ], "type": "string" } diff --git a/checks/v1alpha/checks-gen.go b/checks/v1alpha/checks-gen.go index 34d2b3cb438..bc329067675 100644 --- a/checks/v1alpha/checks-gen.go +++ b/checks/v1alpha/checks-gen.go @@ -714,6 +714,8 @@ type GoogleChecksReportV1alphaCheckCitation struct { // "CHINA_PIPL" - China Personal Information Protection Law. // "SOUTH_KOREA_PIPA" - South Korea Personal Information Protection // Act. + // "SOUTH_AFRICA_POPIA" - South Africa Protection of Personal + // Information Act. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Type") to diff --git a/chromemanagement/v1/chromemanagement-api.json b/chromemanagement/v1/chromemanagement-api.json index f42ec8e3e46..141b3cef418 100644 --- a/chromemanagement/v1/chromemanagement-api.json +++ b/chromemanagement/v1/chromemanagement-api.json @@ -376,6 +376,46 @@ "https://www.googleapis.com/auth/chrome.management.reports.readonly" ] }, + "countChromeCrashEvents": { + "description": "Get a count of Chrome crash events.", + "flatPath": "v1/customers/{customersId}/reports:countChromeCrashEvents", + "httpMethod": "GET", + "id": "chromemanagement.customers.reports.countChromeCrashEvents", + "parameterOrder": [ + "customer" + ], + "parameters": { + "customer": { + "description": "Customer ID.", + "location": "path", + "pattern": "^customers/[^/]+$", + "required": true, + "type": "string" + }, + "filter": { + "description": "Query string to filter results, AND-separated fields in EBNF syntax. Supported filter fields: * major_browser_version * minor_browser_version * browser_channel * device_platform * past_number_days Example: `major_browser_version = 'M115' AND past_number_days = '28'`.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Field used to order results. Supported order by fields: * browser_version * count * date", + "location": "query", + "type": "string" + }, + "orgUnitId": { + "description": "If specified, only count the number of crash events of the devices in this organizational unit.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+customer}/reports:countChromeCrashEvents", + "response": { + "$ref": "GoogleChromeManagementV1CountChromeCrashEventsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/chrome.management.reports.readonly" + ] + }, "countChromeDevicesReachingAutoExpirationDate": { "description": "Generate report of the number of devices expiring in each month of the selected time frame. Devices are grouped by auto update expiration date and model. Further information can be found [here](https://support.google.com/chrome/a/answer/10564947).", "flatPath": "v1/customers/{customersId}/reports:countChromeDevicesReachingAutoExpirationDate", @@ -1132,7 +1172,7 @@ } } }, - "revision": "20240312", + "revision": "20240314", "rootUrl": "https://chromemanagement.googleapis.com/", "schemas": { "GoogleChromeManagementV1AndroidAppInfo": { @@ -1792,6 +1832,40 @@ }, "type": "object" }, + "GoogleChromeManagementV1CountChromeCrashEventsResponse": { + "description": "Response contains a list of CrashEventCountByVersionPerDay which count the chrome crash at the certain date.", + "id": "GoogleChromeManagementV1CountChromeCrashEventsResponse", + "properties": { + "crashEventCounts": { + "description": "Crash event counts grouped by date and browser version.", + "items": { + "$ref": "GoogleChromeManagementV1CountChromeCrashEventsResponseCrashEventCount" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleChromeManagementV1CountChromeCrashEventsResponseCrashEventCount": { + "description": "The `count` of the Chrome crash events at the `date`.", + "id": "GoogleChromeManagementV1CountChromeCrashEventsResponseCrashEventCount", + "properties": { + "browserVersion": { + "description": "Browser version this is counting.", + "type": "string" + }, + "count": { + "description": "Total count of crash events.", + "format": "int64", + "type": "string" + }, + "date": { + "$ref": "GoogleTypeDate", + "description": "Date of the crash event." + } + }, + "type": "object" + }, "GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse": { "description": "Response containing a list of devices expiring in each month of a selected time frame. Counts are grouped by model and Auto Update Expiration date.", "id": "GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse", diff --git a/chromemanagement/v1/chromemanagement-gen.go b/chromemanagement/v1/chromemanagement-gen.go index aba0d98da8b..2a36b677ab6 100644 --- a/chromemanagement/v1/chromemanagement-gen.go +++ b/chromemanagement/v1/chromemanagement-gen.go @@ -1118,6 +1118,79 @@ func (s *GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse) Ma return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleChromeManagementV1CountChromeCrashEventsResponse: Response +// contains a list of CrashEventCountByVersionPerDay which count the +// chrome crash at the certain date. +type GoogleChromeManagementV1CountChromeCrashEventsResponse struct { + // CrashEventCounts: Crash event counts grouped by date and browser + // version. + CrashEventCounts []*GoogleChromeManagementV1CountChromeCrashEventsResponseCrashEventCount `json:"crashEventCounts,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CrashEventCounts") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CrashEventCounts") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleChromeManagementV1CountChromeCrashEventsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementV1CountChromeCrashEventsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleChromeManagementV1CountChromeCrashEventsResponseCrashEventCount: +// +// The `count` of the Chrome crash events at the `date`. +type GoogleChromeManagementV1CountChromeCrashEventsResponseCrashEventCount struct { + // BrowserVersion: Browser version this is counting. + BrowserVersion string `json:"browserVersion,omitempty"` + + // Count: Total count of crash events. + Count int64 `json:"count,omitempty,string"` + + // Date: Date of the crash event. + Date *GoogleTypeDate `json:"date,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BrowserVersion") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BrowserVersion") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleChromeManagementV1CountChromeCrashEventsResponseCrashEventCount) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementV1CountChromeCrashEventsResponseCrashEventCount + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateRe // sponse: Response containing a list of devices expiring in each month // of a selected time frame. Counts are grouped by model and Auto Update @@ -5801,6 +5874,195 @@ func (c *CustomersReportsCountChromeBrowsersNeedingAttentionCall) Do(opts ...goo } +// method id "chromemanagement.customers.reports.countChromeCrashEvents": + +type CustomersReportsCountChromeCrashEventsCall struct { + s *Service + customer string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// CountChromeCrashEvents: Get a count of Chrome crash events. +// +// - customer: Customer ID. +func (r *CustomersReportsService) CountChromeCrashEvents(customer string) *CustomersReportsCountChromeCrashEventsCall { + c := &CustomersReportsCountChromeCrashEventsCall{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. Supported filter +// fields: * major_browser_version * minor_browser_version * +// browser_channel * device_platform * past_number_days Example: +// `major_browser_version = 'M115' AND past_number_days = '28'`. +func (c *CustomersReportsCountChromeCrashEventsCall) Filter(filter string) *CustomersReportsCountChromeCrashEventsCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Field used to order +// results. Supported order by fields: * browser_version * count * date +func (c *CustomersReportsCountChromeCrashEventsCall) OrderBy(orderBy string) *CustomersReportsCountChromeCrashEventsCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// OrgUnitId sets the optional parameter "orgUnitId": If specified, only +// count the number of crash events of the devices in this +// organizational unit. +func (c *CustomersReportsCountChromeCrashEventsCall) OrgUnitId(orgUnitId string) *CustomersReportsCountChromeCrashEventsCall { + c.urlParams_.Set("orgUnitId", orgUnitId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *CustomersReportsCountChromeCrashEventsCall) Fields(s ...googleapi.Field) *CustomersReportsCountChromeCrashEventsCall { + 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 *CustomersReportsCountChromeCrashEventsCall) IfNoneMatch(entityTag string) *CustomersReportsCountChromeCrashEventsCall { + 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 *CustomersReportsCountChromeCrashEventsCall) Context(ctx context.Context) *CustomersReportsCountChromeCrashEventsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *CustomersReportsCountChromeCrashEventsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *CustomersReportsCountChromeCrashEventsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-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:countChromeCrashEvents") + 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.countChromeCrashEvents" call. +// Exactly one of +// *GoogleChromeManagementV1CountChromeCrashEventsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleChromeManagementV1CountChromeCrashEventsResponse.ServerResponse +// .Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *CustomersReportsCountChromeCrashEventsCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1CountChromeCrashEventsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleChromeManagementV1CountChromeCrashEventsResponse{ + ServerResponse: googleapi.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 count of Chrome crash events.", + // "flatPath": "v1/customers/{customersId}/reports:countChromeCrashEvents", + // "httpMethod": "GET", + // "id": "chromemanagement.customers.reports.countChromeCrashEvents", + // "parameterOrder": [ + // "customer" + // ], + // "parameters": { + // "customer": { + // "description": "Customer ID.", + // "location": "path", + // "pattern": "^customers/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "filter": { + // "description": "Query string to filter results, AND-separated fields in EBNF syntax. Supported filter fields: * major_browser_version * minor_browser_version * browser_channel * device_platform * past_number_days Example: `major_browser_version = 'M115' AND past_number_days = '28'`.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Field used to order results. Supported order by fields: * browser_version * count * date", + // "location": "query", + // "type": "string" + // }, + // "orgUnitId": { + // "description": "If specified, only count the number of crash events of the devices in this organizational unit.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+customer}/reports:countChromeCrashEvents", + // "response": { + // "$ref": "GoogleChromeManagementV1CountChromeCrashEventsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/chrome.management.reports.readonly" + // ] + // } + +} + // method id "chromemanagement.customers.reports.countChromeDevicesReachingAutoExpirationDate": type CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall struct { diff --git a/composer/v1/composer-api.json b/composer/v1/composer-api.json index 7d53da3e65b..8c1adebcbbc 100644 --- a/composer/v1/composer-api.json +++ b/composer/v1/composer-api.json @@ -938,7 +938,7 @@ } } }, - "revision": "20240227", + "revision": "20240310", "rootUrl": "https://composer.googleapis.com/", "schemas": { "AirflowMetadataRetentionPolicyConfig": { @@ -1134,7 +1134,7 @@ "type": "object" }, "DagProcessorResource": { - "description": "Configuration for resources used by Airflow DAG processors.", + "description": "Configuration for resources used by Airflow DAG processors. This field is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.", "id": "DagProcessorResource", "properties": { "count": { @@ -1357,7 +1357,7 @@ }, "maintenanceWindow": { "$ref": "MaintenanceWindow", - "description": "Optional. The maintenance window is the period when Cloud Composer components may undergo maintenance. It is defined so that maintenance is not executed during peak hours or critical time periods. The system will not be under maintenance for every occurrence of this window, but when maintenance is planned, it will be scheduled during the window. The maintenance window period must encompass at least 12 hours per week. This may be split into multiple chunks, each with a size of at least 4 hours. If this value is omitted, the default value for maintenance window will be applied. The default value is Saturday and Sunday 00-06 GMT." + "description": "Optional. The maintenance window is the period when Cloud Composer components may undergo maintenance. It is defined so that maintenance is not executed during peak hours or critical time periods. The system will not be under maintenance for every occurrence of this window, but when maintenance is planned, it will be scheduled during the window. The maintenance window period must encompass at least 12 hours per week. This may be split into multiple chunks, each with a size of at least 4 hours. If this value is omitted, the default value for maintenance window is applied. By default, maintenance windows are from 00:00:00 to 04:00:00 (GMT) on Friday, Saturday, and Sunday every week." }, "masterAuthorizedNetworksConfig": { "$ref": "MasterAuthorizedNetworksConfig", @@ -2280,7 +2280,7 @@ "id": "TaskLogsRetentionConfig", "properties": { "storageMode": { - "description": "Optional. The mode of storage for Airflow workers task logs. For details, see go/composer-store-task-logs-in-cloud-logging-only-design-doc", + "description": "Optional. The mode of storage for Airflow workers task logs.", "enum": [ "TASK_LOGS_STORAGE_MODE_UNSPECIFIED", "CLOUD_LOGGING_AND_CLOUD_STORAGE", diff --git a/composer/v1/composer-gen.go b/composer/v1/composer-gen.go index 0ccdcc9f330..4e0235c5880 100644 --- a/composer/v1/composer-gen.go +++ b/composer/v1/composer-gen.go @@ -531,7 +531,8 @@ func (s *ComposerWorkloadStatus) MarshalJSON() ([]byte, error) { } // DagProcessorResource: Configuration for resources used by Airflow DAG -// processors. +// processors. This field is supported for Cloud Composer environments +// in versions composer-3.*.*-airflow-*.*.* and newer. type DagProcessorResource struct { // Count: Optional. The number of DAG processors. If not provided or set // to 0, a single DAG processor instance will be created. @@ -907,8 +908,9 @@ type EnvironmentConfig struct { // be scheduled during the window. The maintenance window period must // encompass at least 12 hours per week. This may be split into multiple // chunks, each with a size of at least 4 hours. If this value is - // omitted, the default value for maintenance window will be applied. - // The default value is Saturday and Sunday 00-06 GMT. + // omitted, the default value for maintenance window is applied. By + // default, maintenance windows are from 00:00:00 to 04:00:00 (GMT) on + // Friday, Saturday, and Sunday every week. MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"` // MasterAuthorizedNetworksConfig: Optional. The configuration options @@ -2644,8 +2646,7 @@ func (s *StorageConfig) MarshalJSON() ([]byte, error) { // TaskLogsRetentionConfig: The configuration setting for Task Logs. type TaskLogsRetentionConfig struct { // StorageMode: Optional. The mode of storage for Airflow workers task - // logs. For details, see - // go/composer-store-task-logs-in-cloud-logging-only-design-doc + // logs. // // Possible values: // "TASK_LOGS_STORAGE_MODE_UNSPECIFIED" - This configuration is not diff --git a/composer/v1beta1/composer-api.json b/composer/v1beta1/composer-api.json index d3015116ac6..ab6b2999117 100644 --- a/composer/v1beta1/composer-api.json +++ b/composer/v1beta1/composer-api.json @@ -994,7 +994,7 @@ } } }, - "revision": "20240227", + "revision": "20240310", "rootUrl": "https://composer.googleapis.com/", "schemas": { "AirflowMetadataRetentionPolicyConfig": { @@ -1201,7 +1201,7 @@ "type": "object" }, "DagProcessorResource": { - "description": "Configuration for resources used by Airflow DAG processors.", + "description": "Configuration for resources used by Airflow DAG processors. This field is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.", "id": "DagProcessorResource", "properties": { "count": { @@ -1436,7 +1436,7 @@ }, "maintenanceWindow": { "$ref": "MaintenanceWindow", - "description": "Optional. The maintenance window is the period when Cloud Composer components may undergo maintenance. It is defined so that maintenance is not executed during peak hours or critical time periods. The system will not be under maintenance for every occurrence of this window, but when maintenance is planned, it will be scheduled during the window. The maintenance window period must encompass at least 12 hours per week. This may be split into multiple chunks, each with a size of at least 4 hours. If this value is omitted, Cloud Composer components may be subject to maintenance at any time." + "description": "Optional. The maintenance window is the period when Cloud Composer components may undergo maintenance. It is defined so that maintenance is not executed during peak hours or critical time periods. The system will not be under maintenance for every occurrence of this window, but when maintenance is planned, it will be scheduled during the window. The maintenance window period must encompass at least 12 hours per week. This may be split into multiple chunks, each with a size of at least 4 hours. If this value is omitted, the default value for maintenance window is applied. By default, maintenance windows are from 00:00:00 to 04:00:00 (GMT) on Friday, Saturday, and Sunday every week." }, "masterAuthorizedNetworksConfig": { "$ref": "MasterAuthorizedNetworksConfig", @@ -2368,7 +2368,7 @@ "id": "TaskLogsRetentionConfig", "properties": { "storageMode": { - "description": "Optional. The mode of storage for Airflow workers task logs. For details, see go/composer-store-task-logs-in-cloud-logging-only-design-doc", + "description": "Optional. The mode of storage for Airflow workers task logs.", "enum": [ "TASK_LOGS_STORAGE_MODE_UNSPECIFIED", "CLOUD_LOGGING_AND_CLOUD_STORAGE", diff --git a/composer/v1beta1/composer-gen.go b/composer/v1beta1/composer-gen.go index 7d1ac71c1e7..dcce785968a 100644 --- a/composer/v1beta1/composer-gen.go +++ b/composer/v1beta1/composer-gen.go @@ -581,7 +581,8 @@ func (s *ComposerWorkloadStatus) MarshalJSON() ([]byte, error) { } // DagProcessorResource: Configuration for resources used by Airflow DAG -// processors. +// processors. This field is supported for Cloud Composer environments +// in versions composer-3.*.*-airflow-*.*.* and newer. type DagProcessorResource struct { // Count: Optional. The number of DAG processors. If not provided or set // to 0, a single DAG processor instance will be created. @@ -963,8 +964,9 @@ type EnvironmentConfig struct { // be scheduled during the window. The maintenance window period must // encompass at least 12 hours per week. This may be split into multiple // chunks, each with a size of at least 4 hours. If this value is - // omitted, Cloud Composer components may be subject to maintenance at - // any time. + // omitted, the default value for maintenance window is applied. By + // default, maintenance windows are from 00:00:00 to 04:00:00 (GMT) on + // Friday, Saturday, and Sunday every week. MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"` // MasterAuthorizedNetworksConfig: Optional. The configuration options @@ -2724,8 +2726,7 @@ func (s *StorageConfig) MarshalJSON() ([]byte, error) { // TaskLogsRetentionConfig: The configuration setting for Task Logs. type TaskLogsRetentionConfig struct { // StorageMode: Optional. The mode of storage for Airflow workers task - // logs. For details, see - // go/composer-store-task-logs-in-cloud-logging-only-design-doc + // logs. // // Possible values: // "TASK_LOGS_STORAGE_MODE_UNSPECIFIED" - This configuration is not diff --git a/compute/v0.beta/compute-api.json b/compute/v0.beta/compute-api.json index 505a2a942fb..1672c304b7a 100644 --- a/compute/v0.beta/compute-api.json +++ b/compute/v0.beta/compute-api.json @@ -5309,11 +5309,6 @@ "required": true, "type": "string" }, - "paths": { - "location": "query", - "repeated": true, - "type": "string" - }, "project": { "description": "Project ID for this request.", "location": "path", @@ -41057,7 +41052,7 @@ } } }, - "revision": "20240227", + "revision": "20240305", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -46649,7 +46644,7 @@ "type": "array" }, "allowOriginRegexes": { - "description": "Specifies a regular expression that matches allowed origins. For more information about the regular expression syntax, see Syntax. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.", + "description": "Specifies a regular expression that matches allowed origins. For more information, see regular expression syntax . An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.", "items": { "type": "string" }, @@ -46663,7 +46658,7 @@ "type": "array" }, "disabled": { - "description": "If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.", + "description": "If true, disables the CORS policy. The default value is false, which indicates that the CORS policy is in effect.", "type": "boolean" }, "exposeHeaders": { @@ -55368,7 +55363,8 @@ "id": "InstanceGroupManagerResizeRequest", "properties": { "count": { - "description": "The count of instances to create as part of this resize request.", + "deprecated": true, + "description": "This field is deprecated, please use resize_by instead. The count of instances to create as part of this resize request.", "format": "int32", "type": "integer" }, @@ -55425,14 +55421,25 @@ "CREATING", "FAILED", "PROVISIONING", + "STATE_UNSPECIFIED", "SUCCEEDED" ], + "enumDeprecated": [ + false, + false, + false, + false, + true, + false, + false + ], "enumDescriptions": [ "The request was created successfully and was accepted for provisioning when the capacity becomes available.", "The request is cancelled.", - "resize request is being created and may still fail creation.", + "Resize request is being created and may still fail creation.", "The request failed before or during provisioning. If the request fails during provisioning, any VMs that were created during provisioning are rolled back and removed from the MIG.", - "The target resource(s) are being provisioned.", + "The value is deprecated. ResizeRequests would stay in the ACCEPTED state during provisioning attempts. The target resource(s) are being provisioned.", + "Default value. This value should never be returned.", "The request succeeded." ], "type": "string" @@ -72573,7 +72580,7 @@ "type": "array" }, "type": { - "description": "[Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL.", + "description": "[Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL.", "enum": [ "HIERARCHY", "NETWORK", diff --git a/compute/v0.beta/compute-gen.go b/compute/v0.beta/compute-gen.go index 7f4c14088d3..a82e287d3ca 100644 --- a/compute/v0.beta/compute-gen.go +++ b/compute/v0.beta/compute-gen.go @@ -9572,11 +9572,10 @@ type CorsPolicy struct { AllowMethods []string `json:"allowMethods,omitempty"` // AllowOriginRegexes: Specifies a regular expression that matches - // allowed origins. For more information about the regular expression - // syntax, see Syntax. An origin is allowed if it matches either an item - // in allowOrigins or an item in allowOriginRegexes. Regular expressions - // can only be used when the loadBalancingScheme is set to - // INTERNAL_SELF_MANAGED. + // allowed origins. For more information, see regular expression syntax + // . An origin is allowed if it matches either an item in allowOrigins + // or an item in allowOriginRegexes. Regular expressions can only be + // used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED. AllowOriginRegexes []string `json:"allowOriginRegexes,omitempty"` // AllowOrigins: Specifies the list of origins that is allowed to do @@ -9584,9 +9583,8 @@ type CorsPolicy struct { // allowOrigins or an item in allowOriginRegexes. AllowOrigins []string `json:"allowOrigins,omitempty"` - // Disabled: If true, the setting specifies the CORS policy is disabled. - // The default value of false, which indicates that the CORS policy is - // in effect. + // Disabled: If true, disables the CORS policy. The default value is + // false, which indicates that the CORS policy is in effect. Disabled bool `json:"disabled,omitempty"` // ExposeHeaders: Specifies the content for the @@ -22152,8 +22150,8 @@ func (s *InstanceGroupManagerParams) MarshalJSON() ([]byte, error) { // nested under InstanceGroupManager and the VMs created by this request // are added to the owning InstanceGroupManager. type InstanceGroupManagerResizeRequest struct { - // Count: The count of instances to create as part of this resize - // request. + // Count: This field is deprecated, please use resize_by instead. The + // count of instances to create as part of this resize request. Count int64 `json:"count,omitempty"` // CreationTimestamp: [Output Only] The creation timestamp for this @@ -22198,12 +22196,16 @@ type InstanceGroupManagerResizeRequest struct { // "ACCEPTED" - The request was created successfully and was accepted // for provisioning when the capacity becomes available. // "CANCELLED" - The request is cancelled. - // "CREATING" - resize request is being created and may still fail + // "CREATING" - Resize request is being created and may still fail // creation. // "FAILED" - The request failed before or during provisioning. If the // request fails during provisioning, any VMs that were created during // provisioning are rolled back and removed from the MIG. - // "PROVISIONING" - The target resource(s) are being provisioned. + // "PROVISIONING" - The value is deprecated. ResizeRequests would stay + // in the ACCEPTED state during provisioning attempts. The target + // resource(s) are being provisioned. + // "STATE_UNSPECIFIED" - Default value. This value should never be + // returned. // "SUCCEEDED" - The request succeeded. State string `json:"state,omitempty"` @@ -46401,7 +46403,7 @@ type RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewall Rules []*FirewallPolicyRule `json:"rules,omitempty"` // Type: [Output Only] The type of the firewall policy. Can be one of - // HIERARCHY, NETWORK, NETWORK_REGIONAL. + // HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. // // Possible values: // "HIERARCHY" @@ -92622,12 +92624,6 @@ func (r *FutureReservationsService) Update(project string, zone string, futureRe return c } -// Paths sets the optional parameter "paths": -func (c *FutureReservationsUpdateCall) Paths(paths ...string) *FutureReservationsUpdateCall { - c.urlParams_.SetMulti("paths", append([]string{}, paths...)) - return c -} - // RequestId sets the optional parameter "requestId": An optional // request ID to identify requests. Specify a unique request ID so that // if you must retry your request, the server will know to ignore the @@ -92760,11 +92756,6 @@ func (c *FutureReservationsUpdateCall) Do(opts ...googleapi.CallOption) (*Operat // "required": true, // "type": "string" // }, - // "paths": { - // "location": "query", - // "repeated": true, - // "type": "string" - // }, // "project": { // "description": "Project ID for this request.", // "location": "path", diff --git a/dataform/v1beta1/dataform-api.json b/dataform/v1beta1/dataform-api.json index a148496cb2a..01a68aaeb12 100644 --- a/dataform/v1beta1/dataform-api.json +++ b/dataform/v1beta1/dataform-api.json @@ -558,7 +558,7 @@ ], "parameters": { "name": { - "description": "Output only. The repository's name.", + "description": "Identifier. The repository's name.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", "required": true, @@ -2103,7 +2103,7 @@ } } }, - "revision": "20240302", + "revision": "20240310", "rootUrl": "https://dataform.googleapis.com/", "schemas": { "Assertion": { @@ -3501,8 +3501,7 @@ "type": "object" }, "name": { - "description": "Output only. The repository's name.", - "readOnly": true, + "description": "Identifier. The repository's name.", "type": "string" }, "npmrcEnvironmentVariablesSecretVersion": { @@ -3895,8 +3894,7 @@ "id": "Workspace", "properties": { "name": { - "description": "Output only. The workspace's name.", - "readOnly": true, + "description": "Identifier. The workspace's name.", "type": "string" } }, diff --git a/dataform/v1beta1/dataform-gen.go b/dataform/v1beta1/dataform-gen.go index 02e4ea7799e..cb45393fe07 100644 --- a/dataform/v1beta1/dataform-gen.go +++ b/dataform/v1beta1/dataform-gen.go @@ -2746,7 +2746,7 @@ type Repository struct { // Labels: Optional. Repository user labels. Labels map[string]string `json:"labels,omitempty"` - // Name: Output only. The repository's name. + // Name: Identifier. The repository's name. Name string `json:"name,omitempty"` // NpmrcEnvironmentVariablesSecretVersion: Optional. The name of the @@ -3427,7 +3427,7 @@ func (s *WorkflowInvocationAction) MarshalJSON() ([]byte, error) { // Workspace: Represents a Dataform Git workspace. type Workspace struct { - // Name: Output only. The workspace's name. + // Name: Identifier. The workspace's name. Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -5891,7 +5891,7 @@ type ProjectsLocationsRepositoriesPatchCall struct { // Patch: Updates a single Repository. // -// - name: Output only. The repository's name. +// - name: Identifier. The repository's name. func (r *ProjectsLocationsRepositoriesService) Patch(name string, repository *Repository) *ProjectsLocationsRepositoriesPatchCall { c := &ProjectsLocationsRepositoriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -6007,7 +6007,7 @@ func (c *ProjectsLocationsRepositoriesPatchCall) Do(opts ...googleapi.CallOption // ], // "parameters": { // "name": { - // "description": "Output only. The repository's name.", + // "description": "Identifier. The repository's name.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", // "required": true, diff --git a/file/v1/file-api.json b/file/v1/file-api.json index d119f9e3082..ca58cba1996 100644 --- a/file/v1/file-api.json +++ b/file/v1/file-api.json @@ -874,7 +874,7 @@ } } }, - "revision": "20240304", + "revision": "20240307", "rootUrl": "https://file.googleapis.com/", "schemas": { "Backup": { @@ -1643,7 +1643,7 @@ "type": "object" }, "MaintenancePolicy": { - "description": "LINT.IfChange Defines policies to service maintenance events.", + "description": "Defines policies to service maintenance events.", "id": "MaintenancePolicy", "properties": { "createTime": { diff --git a/file/v1/file-gen.go b/file/v1/file-gen.go index 3b9cb4960d5..61f0c94c343 100644 --- a/file/v1/file-gen.go +++ b/file/v1/file-gen.go @@ -1379,8 +1379,7 @@ func (s *Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// MaintenancePolicy: LINT.IfChange Defines policies to service -// maintenance events. +// MaintenancePolicy: Defines policies to service maintenance events. type MaintenancePolicy struct { // CreateTime: Output only. The time when the resource was created. CreateTime string `json:"createTime,omitempty"` diff --git a/file/v1beta1/file-api.json b/file/v1beta1/file-api.json index 667151d0f17..5a2372ed644 100644 --- a/file/v1beta1/file-api.json +++ b/file/v1beta1/file-api.json @@ -1069,7 +1069,7 @@ } } }, - "revision": "20240304", + "revision": "20240307", "rootUrl": "https://file.googleapis.com/", "schemas": { "Backup": { @@ -1920,7 +1920,7 @@ "type": "object" }, "MaintenancePolicy": { - "description": "LINT.IfChange Defines policies to service maintenance events.", + "description": "Defines policies to service maintenance events.", "id": "MaintenancePolicy", "properties": { "createTime": { diff --git a/file/v1beta1/file-gen.go b/file/v1beta1/file-gen.go index ee9a3be108c..a66f1941447 100644 --- a/file/v1beta1/file-gen.go +++ b/file/v1beta1/file-gen.go @@ -1501,8 +1501,7 @@ func (s *Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// MaintenancePolicy: LINT.IfChange Defines policies to service -// maintenance events. +// MaintenancePolicy: Defines policies to service maintenance events. type MaintenancePolicy struct { // CreateTime: Output only. The time when the resource was created. CreateTime string `json:"createTime,omitempty"` diff --git a/osconfig/v1/osconfig-api.json b/osconfig/v1/osconfig-api.json index ed170171b35..0b2d1746523 100644 --- a/osconfig/v1/osconfig-api.json +++ b/osconfig/v1/osconfig-api.json @@ -109,6 +109,69 @@ "resources": { "locations": { "resources": { + "global": { + "methods": { + "getProjectFeatureSettings": { + "description": "GetProjectFeatureSettings returns the feature settings for a project", + "flatPath": "v1/projects/{projectsId}/locations/global/projectFeatureSettings", + "httpMethod": "GET", + "id": "osconfig.projects.locations.global.getProjectFeatureSettings", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the billing config. \"projects//locations/global/projectFeatureSettings\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/global/projectFeatureSettings$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "ProjectFeatureSettings" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "updateProjectFeatureSettings": { + "description": "UpdateProjectFeatureSettings sets the feature settings for a project.", + "flatPath": "v1/projects/{projectsId}/locations/global/projectFeatureSettings", + "httpMethod": "PATCH", + "id": "osconfig.projects.locations.global.updateProjectFeatureSettings", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Immutable. Name of the config, e.g. projects/12345/locations/global/projectFeatureSettings", + "location": "path", + "pattern": "^projects/[^/]+/locations/global/projectFeatureSettings$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Field mask that controls which fields of the ProjectFeatureSettings should be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "ProjectFeatureSettings" + }, + "response": { + "$ref": "ProjectFeatureSettings" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "instances": { "resources": { "inventories": { @@ -1000,7 +1063,7 @@ } } }, - "revision": "20240121", + "revision": "20240314", "rootUrl": "https://osconfig.googleapis.com/", "schemas": { "AptSettings": { @@ -3293,6 +3356,31 @@ "properties": {}, "type": "object" }, + "ProjectFeatureSettings": { + "description": "ProjectFeatureSettings represents the features settings for the VM Manager. The project features settings can be set for a project.", + "id": "ProjectFeatureSettings", + "properties": { + "name": { + "description": "Required. Immutable. Name of the config, e.g. projects/12345/locations/global/projectFeatureSettings", + "type": "string" + }, + "patchAndConfigFeatureSet": { + "description": "Currently set PatchAndConfigFeatureSet for name.", + "enum": [ + "PATCH_AND_CONFIG_FEATURE_SET_UNSPECIFIED", + "OSCONFIG_B", + "OSCONFIG_C" + ], + "enumDescriptions": [ + "Not specified placeholder", + "Basic feature set. Enables only the basic set of features.", + "Classic set of functionality." + ], + "type": "string" + } + }, + "type": "object" + }, "RecurringSchedule": { "description": "Sets the time for recurring patch deployments.", "id": "RecurringSchedule", diff --git a/osconfig/v1/osconfig-gen.go b/osconfig/v1/osconfig-gen.go index dfc9a75d806..792395bc7bd 100644 --- a/osconfig/v1/osconfig-gen.go +++ b/osconfig/v1/osconfig-gen.go @@ -175,6 +175,7 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} + rs.Global = NewProjectsLocationsGlobalService(s) rs.Instances = NewProjectsLocationsInstancesService(s) rs.OsPolicyAssignments = NewProjectsLocationsOsPolicyAssignmentsService(s) return rs @@ -183,11 +184,22 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { type ProjectsLocationsService struct { s *Service + Global *ProjectsLocationsGlobalService + Instances *ProjectsLocationsInstancesService OsPolicyAssignments *ProjectsLocationsOsPolicyAssignmentsService } +func NewProjectsLocationsGlobalService(s *Service) *ProjectsLocationsGlobalService { + rs := &ProjectsLocationsGlobalService{s: s} + return rs +} + +type ProjectsLocationsGlobalService struct { + s *Service +} + func NewProjectsLocationsInstancesService(s *Service) *ProjectsLocationsInstancesService { rs := &ProjectsLocationsInstancesService{s: s} rs.Inventories = NewProjectsLocationsInstancesInventoriesService(s) @@ -3877,6 +3889,52 @@ func (s *PatchRollout) MarshalJSON() ([]byte, error) { type PausePatchDeploymentRequest struct { } +// ProjectFeatureSettings: ProjectFeatureSettings represents the +// features settings for the VM Manager. The project features settings +// can be set for a project. +type ProjectFeatureSettings struct { + // Name: Required. Immutable. Name of the config, e.g. + // projects/12345/locations/global/projectFeatureSettings + Name string `json:"name,omitempty"` + + // PatchAndConfigFeatureSet: Currently set PatchAndConfigFeatureSet for + // name. + // + // Possible values: + // "PATCH_AND_CONFIG_FEATURE_SET_UNSPECIFIED" - Not specified + // placeholder + // "OSCONFIG_B" - Basic feature set. Enables only the basic set of + // features. + // "OSCONFIG_C" - Classic set of functionality. + PatchAndConfigFeatureSet string `json:"patchAndConfigFeatureSet,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Name") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ProjectFeatureSettings) MarshalJSON() ([]byte, error) { + type NoMethod ProjectFeatureSettings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // RecurringSchedule: Sets the time for recurring patch deployments. type RecurringSchedule struct { // EndTime: Optional. The end time at which a recurring patch deployment @@ -4583,6 +4641,312 @@ func (s *ZypperSettings) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// method id "osconfig.projects.locations.global.getProjectFeatureSettings": + +type ProjectsLocationsGlobalGetProjectFeatureSettingsCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetProjectFeatureSettings: GetProjectFeatureSettings returns the +// feature settings for a project +// +// - name: Name of the billing config. +// "projects//locations/global/projectFeatureSettings". +func (r *ProjectsLocationsGlobalService) GetProjectFeatureSettings(name string) *ProjectsLocationsGlobalGetProjectFeatureSettingsCall { + c := &ProjectsLocationsGlobalGetProjectFeatureSettingsCall{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 *ProjectsLocationsGlobalGetProjectFeatureSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalGetProjectFeatureSettingsCall { + 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 *ProjectsLocationsGlobalGetProjectFeatureSettingsCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalGetProjectFeatureSettingsCall { + 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 *ProjectsLocationsGlobalGetProjectFeatureSettingsCall) Context(ctx context.Context) *ProjectsLocationsGlobalGetProjectFeatureSettingsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsGlobalGetProjectFeatureSettingsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGlobalGetProjectFeatureSettingsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "osconfig.projects.locations.global.getProjectFeatureSettings" call. +// Exactly one of *ProjectFeatureSettings or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ProjectFeatureSettings.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsGlobalGetProjectFeatureSettingsCall) Do(opts ...googleapi.CallOption) (*ProjectFeatureSettings, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ProjectFeatureSettings{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "GetProjectFeatureSettings returns the feature settings for a project", + // "flatPath": "v1/projects/{projectsId}/locations/global/projectFeatureSettings", + // "httpMethod": "GET", + // "id": "osconfig.projects.locations.global.getProjectFeatureSettings", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the billing config. \"projects//locations/global/projectFeatureSettings\"", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/global/projectFeatureSettings$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "ProjectFeatureSettings" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "osconfig.projects.locations.global.updateProjectFeatureSettings": + +type ProjectsLocationsGlobalUpdateProjectFeatureSettingsCall struct { + s *Service + name string + projectfeaturesettings *ProjectFeatureSettings + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateProjectFeatureSettings: UpdateProjectFeatureSettings sets the +// feature settings for a project. +// +// - name: Immutable. Name of the config, e.g. +// projects/12345/locations/global/projectFeatureSettings. +func (r *ProjectsLocationsGlobalService) UpdateProjectFeatureSettings(name string, projectfeaturesettings *ProjectFeatureSettings) *ProjectsLocationsGlobalUpdateProjectFeatureSettingsCall { + c := &ProjectsLocationsGlobalUpdateProjectFeatureSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.projectfeaturesettings = projectfeaturesettings + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask that +// controls which fields of the ProjectFeatureSettings should be +// updated. +func (c *ProjectsLocationsGlobalUpdateProjectFeatureSettingsCall) UpdateMask(updateMask string) *ProjectsLocationsGlobalUpdateProjectFeatureSettingsCall { + 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 *ProjectsLocationsGlobalUpdateProjectFeatureSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalUpdateProjectFeatureSettingsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsGlobalUpdateProjectFeatureSettingsCall) Context(ctx context.Context) *ProjectsLocationsGlobalUpdateProjectFeatureSettingsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsGlobalUpdateProjectFeatureSettingsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGlobalUpdateProjectFeatureSettingsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" 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.projectfeaturesettings) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "osconfig.projects.locations.global.updateProjectFeatureSettings" call. +// Exactly one of *ProjectFeatureSettings or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ProjectFeatureSettings.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsGlobalUpdateProjectFeatureSettingsCall) Do(opts ...googleapi.CallOption) (*ProjectFeatureSettings, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ProjectFeatureSettings{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "UpdateProjectFeatureSettings sets the feature settings for a project.", + // "flatPath": "v1/projects/{projectsId}/locations/global/projectFeatureSettings", + // "httpMethod": "PATCH", + // "id": "osconfig.projects.locations.global.updateProjectFeatureSettings", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Immutable. Name of the config, e.g. projects/12345/locations/global/projectFeatureSettings", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/global/projectFeatureSettings$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Optional. Field mask that controls which fields of the ProjectFeatureSettings should be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "ProjectFeatureSettings" + // }, + // "response": { + // "$ref": "ProjectFeatureSettings" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "osconfig.projects.locations.instances.inventories.get": type ProjectsLocationsInstancesInventoriesGetCall struct { diff --git a/redis/v1/redis-api.json b/redis/v1/redis-api.json index 6eee5479648..0a8fbd248d1 100644 --- a/redis/v1/redis-api.json +++ b/redis/v1/redis-api.json @@ -821,7 +821,7 @@ } } }, - "revision": "20240229", + "revision": "20240307", "rootUrl": "https://redis.googleapis.com/", "schemas": { "AvailabilityConfiguration": { @@ -1300,7 +1300,13 @@ "SIGNAL_TYPE_SERVER_CERTIFICATE_NEAR_EXPIRY", "SIGNAL_TYPE_DATABASE_AUDITING_DISABLED", "SIGNAL_TYPE_RESTRICT_AUTHORIZED_NETWORKS", - "SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP" + "SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP", + "SIGNAL_TYPE_CLUSTER_QUOTA_LIMIT", + "SIGNAL_TYPE_NO_PASSWORD_POLICY", + "SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT", + "SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT", + "SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT", + "SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES" ], "enumDeprecated": [ false, @@ -1363,6 +1369,12 @@ false, false, false, + false, + false, + false, + false, + false, + false, false ], "enumDescriptions": [ @@ -1426,7 +1438,13 @@ "Represents server certificate is near expiry.", "Represents database auditing is disabled.", "Represents not restricted to authorized networks.", - "Represents violate org policy restrict public ip." + "Represents violate org policy restrict public ip.", + "Cluster nearing quota limit", + "No password policy set on resources", + "Performance impact of connections settings", + "Performance impact of temporary tables settings", + "Performance impact of transaction logs settings", + "Performance impact of high joins without indexes" ], "type": "string" }, @@ -1630,10 +1648,15 @@ "format": "google-datetime", "type": "string" }, + "userLabelSet": { + "$ref": "UserLabels", + "description": "User-provided labels associated with the resource" + }, "userLabels": { "additionalProperties": { "type": "string" }, + "deprecated": true, "description": "User-provided labels, represented as a dictionary where each label is a single key value pair.", "type": "object" } @@ -1756,7 +1779,13 @@ "SIGNAL_TYPE_SERVER_CERTIFICATE_NEAR_EXPIRY", "SIGNAL_TYPE_DATABASE_AUDITING_DISABLED", "SIGNAL_TYPE_RESTRICT_AUTHORIZED_NETWORKS", - "SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP" + "SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP", + "SIGNAL_TYPE_CLUSTER_QUOTA_LIMIT", + "SIGNAL_TYPE_NO_PASSWORD_POLICY", + "SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT", + "SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT", + "SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT", + "SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES" ], "enumDeprecated": [ false, @@ -1819,6 +1848,12 @@ false, false, false, + false, + false, + false, + false, + false, + false, false ], "enumDescriptions": [ @@ -1882,7 +1917,13 @@ "Represents server certificate is near expiry.", "Represents database auditing is disabled.", "Represents not restricted to authorized networks.", - "Represents violate org policy restrict public ip." + "Represents violate org policy restrict public ip.", + "Cluster nearing quota limit", + "No password policy set on resources", + "Performance impact of connections settings", + "Performance impact of temporary tables settings", + "Performance impact of transaction logs settings", + "Performance impact of high joins without indexes" ], "type": "string" } @@ -3108,6 +3149,19 @@ }, "type": "object" }, + "UserLabels": { + "description": "Message type for storing user labels. User labels are used to tag App Engine resources, allowing users to search for resources matching a set of labels and to aggregate usage data by labels.", + "id": "UserLabels", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "type": "object" + }, "WeeklyMaintenanceWindow": { "description": "Time window in which disruptive maintenance updates occur. Non-disruptive updates can occur inside or outside this window.", "id": "WeeklyMaintenanceWindow", diff --git a/redis/v1/redis-gen.go b/redis/v1/redis-gen.go index 16e5dd38af5..5156aef156a 100644 --- a/redis/v1/redis-gen.go +++ b/redis/v1/redis-gen.go @@ -907,6 +907,17 @@ type DatabaseResourceHealthSignalData struct { // restricted to authorized networks. // "SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP" - Represents // violate org policy restrict public ip. + // "SIGNAL_TYPE_CLUSTER_QUOTA_LIMIT" - Cluster nearing quota limit + // "SIGNAL_TYPE_NO_PASSWORD_POLICY" - No password policy set on + // resources + // "SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT" - Performance impact + // of connections settings + // "SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT" - Performance impact of + // temporary tables settings + // "SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT" - Performance impact of + // transaction logs settings + // "SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES" - Performance impact of + // high joins without indexes SignalType string `json:"signalType,omitempty"` // Possible values: @@ -1100,6 +1111,9 @@ type DatabaseResourceMetadata struct { // at partner service. UpdationTime string `json:"updationTime,omitempty"` + // UserLabelSet: User-provided labels associated with the resource + UserLabelSet *UserLabels `json:"userLabelSet,omitempty"` + // UserLabels: User-provided labels, represented as a dictionary where // each label is a single key value pair. UserLabels map[string]string `json:"userLabels,omitempty"` @@ -1340,6 +1354,17 @@ type DatabaseResourceRecommendationSignalData struct { // restricted to authorized networks. // "SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP" - Represents // violate org policy restrict public ip. + // "SIGNAL_TYPE_CLUSTER_QUOTA_LIMIT" - Cluster nearing quota limit + // "SIGNAL_TYPE_NO_PASSWORD_POLICY" - No password policy set on + // resources + // "SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT" - Performance impact + // of connections settings + // "SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT" - Performance impact of + // temporary tables settings + // "SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT" - Performance impact of + // transaction logs settings + // "SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES" - Performance impact of + // high joins without indexes SignalType string `json:"signalType,omitempty"` // ForceSendFields is a list of field names (e.g. "AdditionalMetadata") @@ -3157,6 +3182,36 @@ func (s *UpgradeInstanceRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UserLabels: Message type for storing user labels. User labels are +// used to tag App Engine resources, allowing users to search for +// resources matching a set of labels and to aggregate usage data by +// labels. +type UserLabels struct { + Labels map[string]string `json:"labels,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Labels") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Labels") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *UserLabels) MarshalJSON() ([]byte, error) { + type NoMethod UserLabels + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // WeeklyMaintenanceWindow: Time window in which disruptive maintenance // updates occur. Non-disruptive updates can occur inside or outside // this window. diff --git a/redis/v1beta1/redis-api.json b/redis/v1beta1/redis-api.json index 110e43f7a60..b06b217b7a1 100644 --- a/redis/v1beta1/redis-api.json +++ b/redis/v1beta1/redis-api.json @@ -821,7 +821,7 @@ } } }, - "revision": "20240229", + "revision": "20240307", "rootUrl": "https://redis.googleapis.com/", "schemas": { "AvailabilityConfiguration": { @@ -1300,7 +1300,13 @@ "SIGNAL_TYPE_SERVER_CERTIFICATE_NEAR_EXPIRY", "SIGNAL_TYPE_DATABASE_AUDITING_DISABLED", "SIGNAL_TYPE_RESTRICT_AUTHORIZED_NETWORKS", - "SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP" + "SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP", + "SIGNAL_TYPE_CLUSTER_QUOTA_LIMIT", + "SIGNAL_TYPE_NO_PASSWORD_POLICY", + "SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT", + "SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT", + "SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT", + "SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES" ], "enumDeprecated": [ false, @@ -1363,6 +1369,12 @@ false, false, false, + false, + false, + false, + false, + false, + false, false ], "enumDescriptions": [ @@ -1426,7 +1438,13 @@ "Represents server certificate is near expiry.", "Represents database auditing is disabled.", "Represents not restricted to authorized networks.", - "Represents violate org policy restrict public ip." + "Represents violate org policy restrict public ip.", + "Cluster nearing quota limit", + "No password policy set on resources", + "Performance impact of connections settings", + "Performance impact of temporary tables settings", + "Performance impact of transaction logs settings", + "Performance impact of high joins without indexes" ], "type": "string" }, @@ -1630,10 +1648,15 @@ "format": "google-datetime", "type": "string" }, + "userLabelSet": { + "$ref": "UserLabels", + "description": "User-provided labels associated with the resource" + }, "userLabels": { "additionalProperties": { "type": "string" }, + "deprecated": true, "description": "User-provided labels, represented as a dictionary where each label is a single key value pair.", "type": "object" } @@ -1756,7 +1779,13 @@ "SIGNAL_TYPE_SERVER_CERTIFICATE_NEAR_EXPIRY", "SIGNAL_TYPE_DATABASE_AUDITING_DISABLED", "SIGNAL_TYPE_RESTRICT_AUTHORIZED_NETWORKS", - "SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP" + "SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP", + "SIGNAL_TYPE_CLUSTER_QUOTA_LIMIT", + "SIGNAL_TYPE_NO_PASSWORD_POLICY", + "SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT", + "SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT", + "SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT", + "SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES" ], "enumDeprecated": [ false, @@ -1819,6 +1848,12 @@ false, false, false, + false, + false, + false, + false, + false, + false, false ], "enumDescriptions": [ @@ -1882,7 +1917,13 @@ "Represents server certificate is near expiry.", "Represents database auditing is disabled.", "Represents not restricted to authorized networks.", - "Represents violate org policy restrict public ip." + "Represents violate org policy restrict public ip.", + "Cluster nearing quota limit", + "No password policy set on resources", + "Performance impact of connections settings", + "Performance impact of temporary tables settings", + "Performance impact of transaction logs settings", + "Performance impact of high joins without indexes" ], "type": "string" } @@ -3115,6 +3156,19 @@ }, "type": "object" }, + "UserLabels": { + "description": "Message type for storing user labels. User labels are used to tag App Engine resources, allowing users to search for resources matching a set of labels and to aggregate usage data by labels.", + "id": "UserLabels", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "type": "object" + }, "WeeklyMaintenanceWindow": { "description": "Time window in which disruptive maintenance updates occur. Non-disruptive updates can occur inside or outside this window.", "id": "WeeklyMaintenanceWindow", diff --git a/redis/v1beta1/redis-gen.go b/redis/v1beta1/redis-gen.go index 6686f5b0f61..98610e3e101 100644 --- a/redis/v1beta1/redis-gen.go +++ b/redis/v1beta1/redis-gen.go @@ -907,6 +907,17 @@ type DatabaseResourceHealthSignalData struct { // restricted to authorized networks. // "SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP" - Represents // violate org policy restrict public ip. + // "SIGNAL_TYPE_CLUSTER_QUOTA_LIMIT" - Cluster nearing quota limit + // "SIGNAL_TYPE_NO_PASSWORD_POLICY" - No password policy set on + // resources + // "SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT" - Performance impact + // of connections settings + // "SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT" - Performance impact of + // temporary tables settings + // "SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT" - Performance impact of + // transaction logs settings + // "SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES" - Performance impact of + // high joins without indexes SignalType string `json:"signalType,omitempty"` // Possible values: @@ -1100,6 +1111,9 @@ type DatabaseResourceMetadata struct { // at partner service. UpdationTime string `json:"updationTime,omitempty"` + // UserLabelSet: User-provided labels associated with the resource + UserLabelSet *UserLabels `json:"userLabelSet,omitempty"` + // UserLabels: User-provided labels, represented as a dictionary where // each label is a single key value pair. UserLabels map[string]string `json:"userLabels,omitempty"` @@ -1340,6 +1354,17 @@ type DatabaseResourceRecommendationSignalData struct { // restricted to authorized networks. // "SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP" - Represents // violate org policy restrict public ip. + // "SIGNAL_TYPE_CLUSTER_QUOTA_LIMIT" - Cluster nearing quota limit + // "SIGNAL_TYPE_NO_PASSWORD_POLICY" - No password policy set on + // resources + // "SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT" - Performance impact + // of connections settings + // "SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT" - Performance impact of + // temporary tables settings + // "SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT" - Performance impact of + // transaction logs settings + // "SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES" - Performance impact of + // high joins without indexes SignalType string `json:"signalType,omitempty"` // ForceSendFields is a list of field names (e.g. "AdditionalMetadata") @@ -3162,6 +3187,36 @@ func (s *UpgradeInstanceRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UserLabels: Message type for storing user labels. User labels are +// used to tag App Engine resources, allowing users to search for +// resources matching a set of labels and to aggregate usage data by +// labels. +type UserLabels struct { + Labels map[string]string `json:"labels,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Labels") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Labels") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *UserLabels) MarshalJSON() ([]byte, error) { + type NoMethod UserLabels + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // WeeklyMaintenanceWindow: Time window in which disruptive maintenance // updates occur. Non-disruptive updates can occur inside or outside // this window. diff --git a/run/v1/run-api.json b/run/v1/run-api.json index 6ec148a1fe8..94ed69aa799 100644 --- a/run/v1/run-api.json +++ b/run/v1/run-api.json @@ -2614,7 +2614,7 @@ } } }, - "revision": "20240303", + "revision": "20240310", "rootUrl": "https://run.googleapis.com/", "schemas": { "Addressable": { @@ -5867,7 +5867,7 @@ }, "metadata": { "$ref": "ObjectMeta", - "description": "Metadata associated with this Service, including name, namespace, labels, and annotations. In Cloud Run, annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, and the accepted annotations will be different depending on the resource type. The following Cloud Run-specific annotations are accepted in Service.metadata.annotations. * `run.googleapis.com/binary-authorization-breakglass` * `run.googleapis.com/binary-authorization` * `run.googleapis.com/client-name` * `run.googleapis.com/custom-audiences` * `run.googleapis.com/default-url-disabled`: Service. * `run.googleapis.com/description` * `run.googleapis.com/gc-traffic-tags` * `run.googleapis.com/ingress` * `run.googleapis.com/ingress` sets the ingress settings for the Service. See [the ingress settings documentation](/run/docs/securing/ingress) for details on configuring ingress settings. * `run.googleapis.com/ingress-status` is output-only and contains the currently active ingress settings for the Service. `run.googleapis.com/ingress-status` may differ from `run.googleapis.com/ingress` while the system is processing a change to `run.googleapis.com/ingress` or if the system failed to process a change to `run.googleapis.com/ingress`. When the system has processed all changes successfully `run.googleapis.com/ingress-status` and `run.googleapis.com/ingress` are equal." + "description": "Metadata associated with this Service, including name, namespace, labels, and annotations. In Cloud Run, annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, and the accepted annotations will be different depending on the resource type. The following Cloud Run-specific annotations are accepted in Service.metadata.annotations. * `run.googleapis.com/binary-authorization-breakglass` * `run.googleapis.com/binary-authorization` * `run.googleapis.com/client-name` * `run.googleapis.com/custom-audiences` * `run.googleapis.com/default-url-disabled` * `run.googleapis.com/description` * `run.googleapis.com/gc-traffic-tags` * `run.googleapis.com/ingress` * `run.googleapis.com/ingress` sets the ingress settings for the Service. See [the ingress settings documentation](/run/docs/securing/ingress) for details on configuring ingress settings. * `run.googleapis.com/ingress-status` is output-only and contains the currently active ingress settings for the Service. `run.googleapis.com/ingress-status` may differ from `run.googleapis.com/ingress` while the system is processing a change to `run.googleapis.com/ingress` or if the system failed to process a change to `run.googleapis.com/ingress`. When the system has processed all changes successfully `run.googleapis.com/ingress-status` and `run.googleapis.com/ingress` are equal." }, "spec": { "$ref": "ServiceSpec", diff --git a/run/v1/run-gen.go b/run/v1/run-gen.go index 253feff28a2..3d88b031651 100644 --- a/run/v1/run-gen.go +++ b/run/v1/run-gen.go @@ -5831,7 +5831,7 @@ type Service struct { // `run.googleapis.com/binary-authorization` * // `run.googleapis.com/client-name` * // `run.googleapis.com/custom-audiences` * - // `run.googleapis.com/default-url-disabled`: Service. * + // `run.googleapis.com/default-url-disabled` * // `run.googleapis.com/description` * // `run.googleapis.com/gc-traffic-tags` * `run.googleapis.com/ingress` * // `run.googleapis.com/ingress` sets the ingress settings for the diff --git a/storage/v1/storage-api.json b/storage/v1/storage-api.json index 0924de91ea2..e100da3e294 100644 --- a/storage/v1/storage-api.json +++ b/storage/v1/storage-api.json @@ -33,7 +33,7 @@ "location": "me-central2" } ], - "etag": "\"37303437343235343136323638383931333233\"", + "etag": "\"33383639383534303336303331313132393335\"", "icons": { "x16": "https://www.google.com/images/icons/product/cloud_storage-16.png", "x32": "https://www.google.com/images/icons/product/cloud_storage-32.png" @@ -1632,6 +1632,11 @@ "managedFolder" ], "parameters": { + "allowNonEmpty": { + "description": "Allows the deletion of a managed folder even if it is not empty. A managed folder is empty if there are no objects or managed folders that it applies to. Callers must have storage.managedFolders.setIamPolicy permission.", + "location": "query", + "type": "boolean" + }, "bucket": { "description": "Name of the bucket containing the managed folder.", "location": "path", @@ -4037,7 +4042,7 @@ } } }, - "revision": "20240307", + "revision": "20240311", "rootUrl": "https://storage.googleapis.com/", "schemas": { "AnywhereCache": { diff --git a/storage/v1/storage-gen.go b/storage/v1/storage-gen.go index 6b74b813dde..3fa41847266 100644 --- a/storage/v1/storage-gen.go +++ b/storage/v1/storage-gen.go @@ -9452,6 +9452,16 @@ func (r *ManagedFoldersService) Delete(bucket string, managedFolder string) *Man return c } +// AllowNonEmpty sets the optional parameter "allowNonEmpty": Allows the +// deletion of a managed folder even if it is not empty. A managed +// folder is empty if there are no objects or managed folders that it +// applies to. Callers must have storage.managedFolders.setIamPolicy +// permission. +func (c *ManagedFoldersDeleteCall) AllowNonEmpty(allowNonEmpty bool) *ManagedFoldersDeleteCall { + c.urlParams_.Set("allowNonEmpty", fmt.Sprint(allowNonEmpty)) + return c +} + // IfMetagenerationMatch sets the optional parameter // "ifMetagenerationMatch": If set, only deletes the managed folder if // its metageneration matches this value. @@ -9538,6 +9548,11 @@ func (c *ManagedFoldersDeleteCall) Do(opts ...googleapi.CallOption) error { // "managedFolder" // ], // "parameters": { + // "allowNonEmpty": { + // "description": "Allows the deletion of a managed folder even if it is not empty. A managed folder is empty if there are no objects or managed folders that it applies to. Callers must have storage.managedFolders.setIamPolicy permission.", + // "location": "query", + // "type": "boolean" + // }, // "bucket": { // "description": "Name of the bucket containing the managed folder.", // "location": "path", diff --git a/sts/v1/sts-api.json b/sts/v1/sts-api.json index 62e6b46240a..ba36d211f16 100644 --- a/sts/v1/sts-api.json +++ b/sts/v1/sts-api.json @@ -98,36 +98,6 @@ "resources": { "v1": { "methods": { - "introspect": { - "description": "Gets information about a Google OAuth 2.0 access token issued by the Google Cloud [Security Token Service API](https://cloud.google.com/iam/docs/reference/sts/rest).", - "flatPath": "v1/introspect", - "httpMethod": "POST", - "id": "sts.introspect", - "parameterOrder": [], - "parameters": {}, - "path": "v1/introspect", - "request": { - "$ref": "GoogleIdentityStsV1IntrospectTokenRequest" - }, - "response": { - "$ref": "GoogleIdentityStsV1IntrospectTokenResponse" - } - }, - "oauthtoken": { - "description": "Exchanges a credential that represents the resource owner's authorization for a Google-generated [OAuth 2.0 access token] (https://www.rfc-editor.org/rfc/rfc6749#section-5) or [refreshes an accesstoken] (https://www.rfc-editor.org/rfc/rfc6749#section-6) following [the OAuth 2.0 authorization framework] (https://tools.ietf.org/html/rfc8693) The credential can be one of the following: - An authorization code issued by the workforce identity federation authorization endpoint - A [refresh token](https://www.rfc-editor.org/rfc/rfc6749#section-10.4) issued by this endpoint This endpoint is only meant to be called by the Google Cloud CLI. Also note that this API only accepts the authorization code issued for workforce pools.", - "flatPath": "v1/oauthtoken", - "httpMethod": "POST", - "id": "sts.oauthtoken", - "parameterOrder": [], - "parameters": {}, - "path": "v1/oauthtoken", - "request": { - "$ref": "GoogleIdentityStsV1ExchangeOauthTokenRequest" - }, - "response": { - "$ref": "GoogleIdentityStsV1ExchangeOauthTokenResponse" - } - }, "token": { "description": "Exchanges a credential for a Google OAuth 2.0 access token. The token asserts an external identity within an identity pool, or it applies a Credential Access Boundary to a Google access token. Note that workforce pools do not support Credential Access Boundaries. When you call this method, do not send the `Authorization` HTTP header in the request. This method does not require the `Authorization` header, and using the header can cause the request to fail.", "flatPath": "v1/token", @@ -146,7 +116,7 @@ } } }, - "revision": "20240129", + "revision": "20240307", "rootUrl": "https://sts.googleapis.com/", "schemas": { "GoogleIamV1Binding": { @@ -207,73 +177,6 @@ }, "type": "object" }, - "GoogleIdentityStsV1ExchangeOauthTokenRequest": { - "description": "Request message for ExchangeOauthToken", - "id": "GoogleIdentityStsV1ExchangeOauthTokenRequest", - "properties": { - "clientId": { - "description": "Optional. The client identifier for the OAuth 2.0 client that requested the provided token. It is REQUIRED when the [client] (https://www.rfc-editor.org/rfc/rfc6749#section-1.1) is not authenticating with the authorization server, i.e. when authentication method is [client authentication] (https://www.rfc-editor.org/rfc/rfc6749#section-3.2.1).", - "type": "string" - }, - "code": { - "description": "Optional. The authorization code that was previously from workforce identity federation's `authorize` endpoint. Required if the flow is authorization code flow, i.e. if grant_type is 'authorization_code'", - "type": "string" - }, - "codeVerifier": { - "description": "Optional. The code verifier for the PKCE request, Google Cloud CLI originally generates it before the authorization request. PKCE is used to protect authorization code from interception attacks. See https://www.rfc-editor.org/rfc/rfc7636#section-1.1 and https://www.rfc-editor.org/rfc/rfc7636#section-3. It is required when the flow is authorization code flow, i.e. if grant_type is 'authorization_code'", - "type": "string" - }, - "grantType": { - "description": "Required. The grant types are as follows: - 'authorization_code' : an authorization code flow, i.e. exchange of authorization code for the Oauth access token - 'refresh_token' : a refresh token flow, i.e. obtain a new access token by providing the refresh token. See https://www.rfc-editor.org/rfc/rfc6749#section-6", - "type": "string" - }, - "redirectUri": { - "description": "Optional. redirect_url is required when the flow is authorization code flow i.e. if grant_type is `authorization_code` See https://www.rfc-editor.org/rfc/rfc6749#section-4.1.3", - "type": "string" - }, - "refreshToken": { - "description": "Optional. The Refresh token is the credential that is used to obtain a new access token when the current access token becomes invalid or expires. Required when using refresh token flow, i.e. if `grant_type` is 'refresh_token' See https://www.rfc-editor.org/rfc/rfc6749#section-1.5 and https://www.rfc-editor.org/rfc/rfc6749#section-6", - "type": "string" - }, - "scope": { - "description": "Optional. An optional list of scopes that are requested for the token to be returned. See https://www.rfc-editor.org/rfc/rfc6749#section-3.3 Must be a list of space-delimited, case-sensitive strings. Note: Currently, the scopes in the request are not supported", - "type": "string" - } - }, - "type": "object" - }, - "GoogleIdentityStsV1ExchangeOauthTokenResponse": { - "description": "Response message for ExchangeOauthToken. see https://www.rfc-editor.org/rfc/rfc6749#section-5.1", - "id": "GoogleIdentityStsV1ExchangeOauthTokenResponse", - "properties": { - "access_token": { - "description": "An OAuth 2.0 security token, issued by Google, in response to the Oauth token exchange request for the authorization code and refresh token flows. The returned [access token](https://www.rfc-editor.org/rfc/rfc6749#section-4.1.4). Tokens can vary in size, depending, in part, on the size of mapped claims, up to a maximum of 12288 bytes (12 KB). Google reserves the right to change the token size and the maximum length at any time.", - "type": "string" - }, - "expires_in": { - "description": "The amount of time, in seconds, between the time when the access token was issued and the time when the access token will expires.", - "format": "int32", - "type": "integer" - }, - "id_token": { - "description": "Google issued ID token in response to the OAuth token exchange request for ID token flow.", - "type": "string" - }, - "refresh_token": { - "description": "A refresh token, issued by Google, in response to the OAuth token exchange request for refresh token flow", - "type": "string" - }, - "scope": { - "description": "A list of scopes associated with the returned token.", - "type": "string" - }, - "token_type": { - "description": "The type of token. Field reserved for RFC compliance. See https://www.rfc-editor.org/rfc/rfc6749#section-5.1", - "type": "string" - } - }, - "type": "object" - }, "GoogleIdentityStsV1ExchangeTokenRequest": { "description": "Request message for ExchangeToken.", "id": "GoogleIdentityStsV1ExchangeTokenRequest", @@ -333,62 +236,6 @@ }, "type": "object" }, - "GoogleIdentityStsV1IntrospectTokenRequest": { - "description": "Request message for IntrospectToken.", - "id": "GoogleIdentityStsV1IntrospectTokenRequest", - "properties": { - "token": { - "description": "Required. The OAuth 2.0 security token issued by the Security Token Service API.", - "type": "string" - }, - "tokenTypeHint": { - "description": "Optional. The type of the given token. Supported values are `urn:ietf:params:oauth:token-type:access_token` and `access_token`.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleIdentityStsV1IntrospectTokenResponse": { - "description": "Response message for IntrospectToken.", - "id": "GoogleIdentityStsV1IntrospectTokenResponse", - "properties": { - "active": { - "description": "A boolean value that indicates whether the provided access token is currently active.", - "type": "boolean" - }, - "client_id": { - "description": "The client identifier for the OAuth 2.0 client that requested the provided token.", - "type": "string" - }, - "exp": { - "description": "The expiration timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire.", - "format": "int64", - "type": "string" - }, - "iat": { - "description": "The issued timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued.", - "format": "int64", - "type": "string" - }, - "iss": { - "description": "The issuer of the provided token.", - "type": "string" - }, - "scope": { - "description": "A list of scopes associated with the provided token.", - "type": "string" - }, - "sub": { - "description": "The unique user ID associated with the provided token. For Google Accounts, this value is based on the Google Account's user ID. For federated identities, this value is based on the identity pool ID and the value of the mapped `google.subject` attribute.", - "type": "string" - }, - "username": { - "description": "The human-readable identifier for the token principal subject. For example, if the provided token is associated with a workload identity pool, this field contains a value in the following format: `principal://iam.googleapis.com/projects//locations/global/workloadIdentityPools//subject/`. If the provided token is associated with a workforce pool, this field contains a value in the following format: `principal://iam.googleapis.com/locations/global/workforcePools//subject/`.", - "type": "string" - } - }, - "type": "object" - }, "GoogleIdentityStsV1Options": { "description": "An `Options` object configures features that the Security Token Service supports, but that are not supported by standard OAuth 2.0 token exchange endpoints, as defined in https://tools.ietf.org/html/rfc8693.", "id": "GoogleIdentityStsV1Options", diff --git a/sts/v1/sts-gen.go b/sts/v1/sts-gen.go index bda2a763dcd..203ede7cc30 100644 --- a/sts/v1/sts-gen.go +++ b/sts/v1/sts-gen.go @@ -356,142 +356,6 @@ func (s *GoogleIdentityStsV1AccessBoundaryRule) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleIdentityStsV1ExchangeOauthTokenRequest: Request message for -// ExchangeOauthToken -type GoogleIdentityStsV1ExchangeOauthTokenRequest struct { - // ClientId: Optional. The client identifier for the OAuth 2.0 client - // that requested the provided token. It is REQUIRED when the [client] - // (https://www.rfc-editor.org/rfc/rfc6749#section-1.1) is not - // authenticating with the authorization server, i.e. when - // authentication method is [client authentication] - // (https://www.rfc-editor.org/rfc/rfc6749#section-3.2.1). - ClientId string `json:"clientId,omitempty"` - - // Code: Optional. The authorization code that was previously from - // workforce identity federation's `authorize` endpoint. Required if the - // flow is authorization code flow, i.e. if grant_type is - // 'authorization_code' - Code string `json:"code,omitempty"` - - // CodeVerifier: Optional. The code verifier for the PKCE request, - // Google Cloud CLI originally generates it before the authorization - // request. PKCE is used to protect authorization code from interception - // attacks. See https://www.rfc-editor.org/rfc/rfc7636#section-1.1 and - // https://www.rfc-editor.org/rfc/rfc7636#section-3. It is required when - // the flow is authorization code flow, i.e. if grant_type is - // 'authorization_code' - CodeVerifier string `json:"codeVerifier,omitempty"` - - // GrantType: Required. The grant types are as follows: - - // 'authorization_code' : an authorization code flow, i.e. exchange of - // authorization code for the Oauth access token - 'refresh_token' : a - // refresh token flow, i.e. obtain a new access token by providing the - // refresh token. See https://www.rfc-editor.org/rfc/rfc6749#section-6 - GrantType string `json:"grantType,omitempty"` - - // RedirectUri: Optional. redirect_url is required when the flow is - // authorization code flow i.e. if grant_type is `authorization_code` - // See https://www.rfc-editor.org/rfc/rfc6749#section-4.1.3 - RedirectUri string `json:"redirectUri,omitempty"` - - // RefreshToken: Optional. The Refresh token is the credential that is - // used to obtain a new access token when the current access token - // becomes invalid or expires. Required when using refresh token flow, - // i.e. if `grant_type` is 'refresh_token' See - // https://www.rfc-editor.org/rfc/rfc6749#section-1.5 and - // https://www.rfc-editor.org/rfc/rfc6749#section-6 - RefreshToken string `json:"refreshToken,omitempty"` - - // Scope: Optional. An optional list of scopes that are requested for - // the token to be returned. See - // https://www.rfc-editor.org/rfc/rfc6749#section-3.3 Must be a list of - // space-delimited, case-sensitive strings. Note: Currently, the scopes - // in the request are not supported - Scope string `json:"scope,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ClientId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleIdentityStsV1ExchangeOauthTokenRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIdentityStsV1ExchangeOauthTokenRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleIdentityStsV1ExchangeOauthTokenResponse: Response message for -// ExchangeOauthToken. see -// https://www.rfc-editor.org/rfc/rfc6749#section-5.1 -type GoogleIdentityStsV1ExchangeOauthTokenResponse struct { - // AccessToken: An OAuth 2.0 security token, issued by Google, in - // response to the Oauth token exchange request for the authorization - // code and refresh token flows. The returned access token - // (https://www.rfc-editor.org/rfc/rfc6749#section-4.1.4). Tokens can - // vary in size, depending, in part, on the size of mapped claims, up to - // a maximum of 12288 bytes (12 KB). Google reserves the right to change - // the token size and the maximum length at any time. - AccessToken string `json:"access_token,omitempty"` - - // ExpiresIn: The amount of time, in seconds, between the time when the - // access token was issued and the time when the access token will - // expires. - ExpiresIn int64 `json:"expires_in,omitempty"` - - // IdToken: Google issued ID token in response to the OAuth token - // exchange request for ID token flow. - IdToken string `json:"id_token,omitempty"` - - // RefreshToken: A refresh token, issued by Google, in response to the - // OAuth token exchange request for refresh token flow - RefreshToken string `json:"refresh_token,omitempty"` - - // Scope: A list of scopes associated with the returned token. - Scope string `json:"scope,omitempty"` - - // TokenType: The type of token. Field reserved for RFC compliance. See - // https://www.rfc-editor.org/rfc/rfc6749#section-5.1 - TokenType string `json:"token_type,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccessToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccessToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleIdentityStsV1ExchangeOauthTokenResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIdentityStsV1ExchangeOauthTokenResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleIdentityStsV1ExchangeTokenRequest: Request message for // ExchangeToken. type GoogleIdentityStsV1ExchangeTokenRequest struct { @@ -703,110 +567,6 @@ func (s *GoogleIdentityStsV1ExchangeTokenResponse) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleIdentityStsV1IntrospectTokenRequest: Request message for -// IntrospectToken. -type GoogleIdentityStsV1IntrospectTokenRequest struct { - // Token: Required. The OAuth 2.0 security token issued by the Security - // Token Service API. - Token string `json:"token,omitempty"` - - // TokenTypeHint: Optional. The type of the given token. Supported - // values are `urn:ietf:params:oauth:token-type:access_token` and - // `access_token`. - TokenTypeHint string `json:"tokenTypeHint,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Token") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Token") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleIdentityStsV1IntrospectTokenRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIdentityStsV1IntrospectTokenRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleIdentityStsV1IntrospectTokenResponse: Response message for -// IntrospectToken. -type GoogleIdentityStsV1IntrospectTokenResponse struct { - // Active: A boolean value that indicates whether the provided access - // token is currently active. - Active bool `json:"active,omitempty"` - - // ClientId: The client identifier for the OAuth 2.0 client that - // requested the provided token. - ClientId string `json:"client_id,omitempty"` - - // Exp: The expiration timestamp, measured in the number of seconds - // since January 1 1970 UTC, indicating when this token will expire. - Exp int64 `json:"exp,omitempty,string"` - - // Iat: The issued timestamp, measured in the number of seconds since - // January 1 1970 UTC, indicating when this token was originally issued. - Iat int64 `json:"iat,omitempty,string"` - - // Iss: The issuer of the provided token. - Iss string `json:"iss,omitempty"` - - // Scope: A list of scopes associated with the provided token. - Scope string `json:"scope,omitempty"` - - // Sub: The unique user ID associated with the provided token. For - // Google Accounts, this value is based on the Google Account's user ID. - // For federated identities, this value is based on the identity pool ID - // and the value of the mapped `google.subject` attribute. - Sub string `json:"sub,omitempty"` - - // Username: The human-readable identifier for the token principal - // subject. For example, if the provided token is associated with a - // workload identity pool, this field contains a value in the following - // format: - // `principal://iam.googleapis.com/projects//locations/global/workloadIde - // ntityPools//subject/`. If the provided token is associated with a - // workforce pool, this field contains a value in the following format: - // `principal://iam.googleapis.com/locations/global/workforcePools//subje - // ct/`. - Username string `json:"username,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleIdentityStsV1IntrospectTokenResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIdentityStsV1IntrospectTokenResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleIdentityStsV1Options: An `Options` object configures features // that the Security Token Service supports, but that are not supported // by standard OAuth 2.0 token exchange endpoints, as defined in @@ -1062,267 +822,6 @@ func (s *GoogleTypeExpr) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// method id "sts.introspect": - -type V1IntrospectCall struct { - s *Service - googleidentitystsv1introspecttokenrequest *GoogleIdentityStsV1IntrospectTokenRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Introspect: Gets information about a Google OAuth 2.0 access token -// issued by the Google Cloud Security Token Service API -// (https://cloud.google.com/iam/docs/reference/sts/rest). -func (r *V1Service) Introspect(googleidentitystsv1introspecttokenrequest *GoogleIdentityStsV1IntrospectTokenRequest) *V1IntrospectCall { - c := &V1IntrospectCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.googleidentitystsv1introspecttokenrequest = googleidentitystsv1introspecttokenrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *V1IntrospectCall) Fields(s ...googleapi.Field) *V1IntrospectCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *V1IntrospectCall) Context(ctx context.Context) *V1IntrospectCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *V1IntrospectCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *V1IntrospectCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" 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.googleidentitystsv1introspecttokenrequest) - if err != nil { - return 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/introspect") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "sts.introspect" call. -// Exactly one of *GoogleIdentityStsV1IntrospectTokenResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleIdentityStsV1IntrospectTokenResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *V1IntrospectCall) Do(opts ...googleapi.CallOption) (*GoogleIdentityStsV1IntrospectTokenResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleIdentityStsV1IntrospectTokenResponse{ - ServerResponse: googleapi.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 Google OAuth 2.0 access token issued by the Google Cloud [Security Token Service API](https://cloud.google.com/iam/docs/reference/sts/rest).", - // "flatPath": "v1/introspect", - // "httpMethod": "POST", - // "id": "sts.introspect", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1/introspect", - // "request": { - // "$ref": "GoogleIdentityStsV1IntrospectTokenRequest" - // }, - // "response": { - // "$ref": "GoogleIdentityStsV1IntrospectTokenResponse" - // } - // } - -} - -// method id "sts.oauthtoken": - -type V1OauthtokenCall struct { - s *Service - googleidentitystsv1exchangeoauthtokenrequest *GoogleIdentityStsV1ExchangeOauthTokenRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Oauthtoken: Exchanges a credential that represents the resource -// owner's authorization for a Google-generated [OAuth 2.0 access token] -// (https://www.rfc-editor.org/rfc/rfc6749#section-5) or [refreshes an -// accesstoken] (https://www.rfc-editor.org/rfc/rfc6749#section-6) -// following [the OAuth 2.0 authorization framework] -// (https://tools.ietf.org/html/rfc8693) The credential can be one of -// the following: - An authorization code issued by the workforce -// identity federation authorization endpoint - A refresh token -// (https://www.rfc-editor.org/rfc/rfc6749#section-10.4) issued by this -// endpoint This endpoint is only meant to be called by the Google Cloud -// CLI. Also note that this API only accepts the authorization code -// issued for workforce pools. -func (r *V1Service) Oauthtoken(googleidentitystsv1exchangeoauthtokenrequest *GoogleIdentityStsV1ExchangeOauthTokenRequest) *V1OauthtokenCall { - c := &V1OauthtokenCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.googleidentitystsv1exchangeoauthtokenrequest = googleidentitystsv1exchangeoauthtokenrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *V1OauthtokenCall) Fields(s ...googleapi.Field) *V1OauthtokenCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *V1OauthtokenCall) Context(ctx context.Context) *V1OauthtokenCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *V1OauthtokenCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *V1OauthtokenCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" 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.googleidentitystsv1exchangeoauthtokenrequest) - if err != nil { - return 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/oauthtoken") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "sts.oauthtoken" call. -// Exactly one of *GoogleIdentityStsV1ExchangeOauthTokenResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleIdentityStsV1ExchangeOauthTokenResponse.ServerResponse.Header -// or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *V1OauthtokenCall) Do(opts ...googleapi.CallOption) (*GoogleIdentityStsV1ExchangeOauthTokenResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleIdentityStsV1ExchangeOauthTokenResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Exchanges a credential that represents the resource owner's authorization for a Google-generated [OAuth 2.0 access token] (https://www.rfc-editor.org/rfc/rfc6749#section-5) or [refreshes an accesstoken] (https://www.rfc-editor.org/rfc/rfc6749#section-6) following [the OAuth 2.0 authorization framework] (https://tools.ietf.org/html/rfc8693) The credential can be one of the following: - An authorization code issued by the workforce identity federation authorization endpoint - A [refresh token](https://www.rfc-editor.org/rfc/rfc6749#section-10.4) issued by this endpoint This endpoint is only meant to be called by the Google Cloud CLI. Also note that this API only accepts the authorization code issued for workforce pools.", - // "flatPath": "v1/oauthtoken", - // "httpMethod": "POST", - // "id": "sts.oauthtoken", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1/oauthtoken", - // "request": { - // "$ref": "GoogleIdentityStsV1ExchangeOauthTokenRequest" - // }, - // "response": { - // "$ref": "GoogleIdentityStsV1ExchangeOauthTokenResponse" - // } - // } - -} - // method id "sts.token": type V1TokenCall struct {