From ed9c3510449e636b4199bd181a6fc26d443d02ff Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 28 Feb 2024 08:11:05 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- api-list.json | 10 +- apigee/v1/apigee-api.json | 452 ++++- apigee/v1/apigee-gen.go | 1470 +++++++++++++++++ artifactregistry/v1/artifactregistry-api.json | 11 +- artifactregistry/v1/artifactregistry-gen.go | 2 + .../v1beta2/artifactregistry-api.json | 11 +- .../v1beta2/artifactregistry-gen.go | 2 + chat/v1/chat-api.json | 6 +- chat/v1/chat-gen.go | 19 +- compute/v0.beta/compute-api.json | 19 +- compute/v0.beta/compute-gen.go | 31 + documentai/v1/documentai-api.json | 16 +- documentai/v1/documentai-gen.go | 28 +- documentai/v1beta2/documentai-api.json | 6 +- documentai/v1beta2/documentai-gen.go | 6 +- documentai/v1beta3/documentai-api.json | 12 +- documentai/v1beta3/documentai-gen.go | 22 +- healthcare/v1/healthcare-api.json | 96 +- healthcare/v1/healthcare-gen.go | 487 ++++++ healthcare/v1beta1/healthcare-api.json | 96 +- healthcare/v1beta1/healthcare-gen.go | 487 ++++++ policysimulator/v1/policysimulator-api.json | 97 +- policysimulator/v1/policysimulator-gen.go | 504 ++++++ securitycenter/v1/securitycenter-api.json | 76 +- securitycenter/v1/securitycenter-gen.go | 80 +- .../v1beta1/securitycenter-api.json | 76 +- securitycenter/v1beta1/securitycenter-gen.go | 80 +- .../v1beta2/securitycenter-api.json | 82 +- securitycenter/v1beta2/securitycenter-gen.go | 81 +- storagetransfer/v1/storagetransfer-api.json | 107 +- storagetransfer/v1/storagetransfer-gen.go | 234 +-- 31 files changed, 4141 insertions(+), 565 deletions(-) diff --git a/api-list.json b/api-list.json index 19bc87f5e34..6a6bbe889df 100644 --- a/api-list.json +++ b/api-list.json @@ -2536,7 +2536,7 @@ "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "https://cloud.google.com/dlp/docs/", + "documentationLink": "https://cloud.google.com/sensitive-data-protection/docs/", "preferred": true }, { @@ -3477,7 +3477,7 @@ "name": "iam", "version": "v2beta", "title": "Identity and Access Management (IAM) API", - "description": "Manages identity and access control for Google Cloud Platform resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls.", + "description": "Manages identity and access control for Google Cloud resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls. Enabling this API also enables the IAM Service Account Credentials API (iamcredentials.googleapis.com). However, disabling this API doesn't disable the IAM Service Account Credentials API.", "discoveryRestUrl": "https://iam.googleapis.com/$discovery/rest?version=v2beta", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", @@ -3492,7 +3492,7 @@ "name": "iam", "version": "v1", "title": "Identity and Access Management (IAM) API", - "description": "Manages identity and access control for Google Cloud Platform resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls.", + "description": "Manages identity and access control for Google Cloud resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls. Enabling this API also enables the IAM Service Account Credentials API (iamcredentials.googleapis.com). However, disabling this API doesn't disable the IAM Service Account Credentials API.", "discoveryRestUrl": "https://iam.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", @@ -3507,7 +3507,7 @@ "name": "iam", "version": "v2", "title": "Identity and Access Management (IAM) API", - "description": "Manages identity and access control for Google Cloud Platform resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls.", + "description": "Manages identity and access control for Google Cloud resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls. Enabling this API also enables the IAM Service Account Credentials API (iamcredentials.googleapis.com). However, disabling this API doesn't disable the IAM Service Account Credentials API.", "discoveryRestUrl": "https://iam.googleapis.com/$discovery/rest?version=v2", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", @@ -3522,7 +3522,7 @@ "name": "iamcredentials", "version": "v1", "title": "IAM Service Account Credentials API", - "description": "Creates short-lived credentials for impersonating IAM service accounts. To enable this API, you must enable the IAM API (iam.googleapis.com).", + "description": "Creates short-lived credentials for impersonating IAM service accounts. Disabling this API also disables the IAM API (iam.googleapis.com). However, enabling this API doesn't enable the IAM API.", "discoveryRestUrl": "https://iamcredentials.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", diff --git a/apigee/v1/apigee-api.json b/apigee/v1/apigee-api.json index 2665035c618..ede2c800457 100644 --- a/apigee/v1/apigee-api.json +++ b/apigee/v1/apigee-api.json @@ -9776,6 +9776,205 @@ ] } } + }, + "apidocs": { + "methods": { + "create": { + "description": "Creates a new catalog item.", + "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apidocs", + "httpMethod": "POST", + "id": "apigee.organizations.sites.apidocs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Name of the portal. Use the following structure in your request: `organizations/{org}/sites/{site}`", + "location": "path", + "pattern": "^organizations/[^/]+/sites/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/apidocs", + "request": { + "$ref": "GoogleCloudApigeeV1ApiDoc" + }, + "response": { + "$ref": "GoogleCloudApigeeV1ApiDocResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a catalog item.", + "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apidocs/{apidocsId}", + "httpMethod": "DELETE", + "id": "apigee.organizations.sites.apidocs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the catalog item. Use the following structure in your request: `organizations/{org}/sites/{site}/apidocs/{apidoc}`", + "location": "path", + "pattern": "^organizations/[^/]+/sites/[^/]+/apidocs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudApigeeV1DeleteResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a catalog item.", + "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apidocs/{apidocsId}", + "httpMethod": "GET", + "id": "apigee.organizations.sites.apidocs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the catalog item. Use the following structure in your request: `organizations/{org}/sites/{site}/apidocs/{apidoc}`", + "location": "path", + "pattern": "^organizations/[^/]+/sites/[^/]+/apidocs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudApigeeV1ApiDocResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getDocumentation": { + "description": "Gets the documentation for the specified catalog item.", + "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apidocs/{apidocsId}/documentation", + "httpMethod": "GET", + "id": "apigee.organizations.sites.apidocs.getDocumentation", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name of the catalog item documentation. Use the following structure in your request: `organizations/{org}/sites/{site}/apidocs/{apidoc}/documentation`", + "location": "path", + "pattern": "^organizations/[^/]+/sites/[^/]+/apidocs/[^/]+/documentation$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudApigeeV1ApiDocDocumentationResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Returns the catalog items associated with a portal.", + "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apidocs", + "httpMethod": "GET", + "id": "apigee.organizations.sites.apidocs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of items to return. The service may return fewer than this value. If unspecified, at most 25 books will be returned. The maximum value is 100; values above 100 will be coerced to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListApiDocs` call. Provide this to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Name of the portal. Use the following structure in your request: `organizations/{org}/sites/{site}`", + "location": "path", + "pattern": "^organizations/[^/]+/sites/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/apidocs", + "response": { + "$ref": "GoogleCloudApigeeV1ListApiDocsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "update": { + "description": "Updates a catalog item.", + "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apidocs/{apidocsId}", + "httpMethod": "PUT", + "id": "apigee.organizations.sites.apidocs.update", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the catalog item. Use the following structure in your request: `organizations/{org}/sites/{site}/apidocs/{apidoc}`", + "location": "path", + "pattern": "^organizations/[^/]+/sites/[^/]+/apidocs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudApigeeV1ApiDoc" + }, + "response": { + "$ref": "GoogleCloudApigeeV1ApiDocResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "updateDocumentation": { + "description": "Updates the documentation for the specified catalog item. Note that the documentation file contents will not be populated in the return message.", + "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apidocs/{apidocsId}/documentation", + "httpMethod": "PATCH", + "id": "apigee.organizations.sites.apidocs.updateDocumentation", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name of the catalog item documentation. Use the following structure in your request: `organizations/{org}/sites/{site}/apidocs/{apidoc}/documentation`", + "location": "path", + "pattern": "^organizations/[^/]+/sites/[^/]+/apidocs/[^/]+/documentation$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudApigeeV1ApiDocDocumentation" + }, + "response": { + "$ref": "GoogleCloudApigeeV1ApiDocDocumentationResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } } } @@ -9814,7 +10013,7 @@ } } }, - "revision": "20240220", + "revision": "20240222", "rootUrl": "https://apigee.googleapis.com/", "schemas": { "EdgeConfigstoreBundleBadBundle": { @@ -10153,6 +10352,167 @@ }, "type": "object" }, + "GoogleCloudApigeeV1ApiDoc": { + "description": "`ApiDoc` represents an API catalog item. Catalog items are used in two ways in a portal: - Users can browse and interact with a visual representation of the API documentation - The `api_product_name` field provides a link to a backing API product. Through this link, portal users can create and manage developer apps linked to one or more API products.", + "id": "GoogleCloudApigeeV1ApiDoc", + "properties": { + "anonAllowed": { + "description": "Optional. Boolean flag that manages user access to the catalog item. When true, the catalog item can be viewed anonymously; otherwise, only registered users may view it. Note: when the parent portal is enrolled in the [audience management feature](https://cloud.google.com/apigee/docs/api-platform/publish/portal/portal-audience#enrolling_in_the_beta_release_of_the_audience_management_feature), this flag is ignored; instead visibility must be further managed in the management UI (see [Manage the visibility of an API in your portal](https://cloud.google.com/apigee/docs/api-platform/publish/portal/publish-apis#visibility)).", + "type": "boolean" + }, + "apiProductName": { + "description": "Required. Immutable. The `name` field of the associated [API product](/apigee/docs/reference/apis/apigee/rest/v1/organizations.apiproducts). A portal may have only one catalog item associated with a given API product.", + "type": "string" + }, + "categoryIds": { + "description": "Optional. The IDs of the API categories to which this catalog item belongs.", + "items": { + "type": "string" + }, + "type": "array" + }, + "description": { + "description": "Optional. Description of the catalog item. Max length is 10,000 characters.", + "type": "string" + }, + "edgeAPIProductName": { + "description": "Optional. Immutable. DEPRECATED: use the `apiProductName` field instead", + "type": "string" + }, + "graphqlEndpointUrl": { + "deprecated": true, + "description": "Optional. DEPRECATED: manage documentation through the `getDocumentation` and `updateDocumentation` methods", + "type": "string" + }, + "graphqlSchema": { + "deprecated": true, + "description": "Optional. DEPRECATED: manage documentation through the `getDocumentation` and `updateDocumentation` methods", + "type": "string" + }, + "graphqlSchemaDisplayName": { + "deprecated": true, + "description": "Optional. DEPRECATED: manage documentation through the `getDocumentation` and `updateDocumentation` methods", + "type": "string" + }, + "id": { + "description": "Output only. The ID of the catalog item.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "imageUrl": { + "description": "Optional. Location of the image used for the catalog item in the catalog. For portal files, this can have the format `/files/{filename}`. Max length is 2,083 characters.", + "type": "string" + }, + "modified": { + "description": "Output only. Time the catalog item was last modified in milliseconds since epoch.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "published": { + "description": "Optional. Denotes whether the catalog item is published to the portal or is in a draft state. When the parent portal is enrolled in the [audience management feature](https://cloud.google.com/apigee/docs/api-platform/publish/portal/portal-audience#enrolling_in_the_beta_release_of_the_audience_management_feature), the visibility must be further managed in the management UI (see [Manage the visibility of an API in your portal](https://cloud.google.com/apigee/docs/api-platform/publish/portal/publish-apis#visibility)) before it can be visible to any users. If not enrolled in the audience management feature, the visibility is further managed by the `anonAllowed` flag.", + "type": "boolean" + }, + "requireCallbackUrl": { + "description": "Optional. Whether a callback URL is required when this catalog item's API product is enabled in a developer app. When true, a portal user will be required to input a URL when managing the app (this is typically used for the app's OAuth flow).", + "type": "boolean" + }, + "siteId": { + "description": "Output only. The ID of the parent portal.", + "readOnly": true, + "type": "string" + }, + "specId": { + "deprecated": true, + "description": "Optional. DEPRECATED: DO NOT USE", + "type": "string" + }, + "title": { + "description": "Required. The user-facing name of the catalog item. `title` must be a non-empty string with a max length of 255 characters.", + "type": "string" + }, + "visibility": { + "description": "Optional. DEPRECATED: use the `published` field instead", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudApigeeV1ApiDocDocumentation": { + "description": "The documentation for a catalog item.", + "id": "GoogleCloudApigeeV1ApiDocDocumentation", + "properties": { + "graphqlDocumentation": { + "$ref": "GoogleCloudApigeeV1GraphqlDocumentation", + "description": "Optional. GraphQL documentation." + }, + "oasDocumentation": { + "$ref": "GoogleCloudApigeeV1OASDocumentation", + "description": "Optional. OpenAPI Specification documentation." + } + }, + "type": "object" + }, + "GoogleCloudApigeeV1ApiDocDocumentationResponse": { + "description": "The catalog item documentation wrapped with response status, error_code, etc.", + "id": "GoogleCloudApigeeV1ApiDocDocumentationResponse", + "properties": { + "data": { + "$ref": "GoogleCloudApigeeV1ApiDocDocumentation", + "description": "Output only. The documentation resource.", + "readOnly": true + }, + "errorCode": { + "description": "Output only. Unique error code for the request, if any.", + "readOnly": true, + "type": "string" + }, + "message": { + "description": "Output only. Description of the operation.", + "readOnly": true, + "type": "string" + }, + "requestId": { + "description": "Output only. Unique ID of the request.", + "readOnly": true, + "type": "string" + }, + "status": { + "description": "Output only. Status of the operation.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudApigeeV1ApiDocResponse": { + "description": "The catalog item resource wrapped with response status, error_code, etc.", + "id": "GoogleCloudApigeeV1ApiDocResponse", + "properties": { + "data": { + "$ref": "GoogleCloudApigeeV1ApiDoc", + "description": "The catalog item resource." + }, + "errorCode": { + "description": "Unique error code for the request, if any.", + "type": "string" + }, + "message": { + "description": "Description of the operation.", + "type": "string" + }, + "requestId": { + "description": "Unique ID of the request.", + "type": "string" + }, + "status": { + "description": "Status of the operation.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudApigeeV1ApiProduct": { "id": "GoogleCloudApigeeV1ApiProduct", "properties": { @@ -12374,6 +12734,22 @@ "properties": {}, "type": "object" }, + "GoogleCloudApigeeV1DocumentationFile": { + "description": "Documentation file contents for a catalog item.", + "id": "GoogleCloudApigeeV1DocumentationFile", + "properties": { + "contents": { + "description": "Required. The file contents. The max size is 4 MB.", + "format": "byte", + "type": "string" + }, + "displayName": { + "description": "Required. A display name for the file, shown in the management UI. Max length is 255 characters.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudApigeeV1EnableSecurityActionRequest": { "description": "Message to enable a disabled SecurityAction.", "id": "GoogleCloudApigeeV1EnableSecurityActionRequest", @@ -13110,6 +13486,21 @@ }, "type": "object" }, + "GoogleCloudApigeeV1GraphqlDocumentation": { + "description": "GraphQL documentation for a catalog item.", + "id": "GoogleCloudApigeeV1GraphqlDocumentation", + "properties": { + "endpointUri": { + "description": "Required. The GraphQL endpoint URI to be queried by API consumers. Max length is 2,083 characters.", + "type": "string" + }, + "schema": { + "$ref": "GoogleCloudApigeeV1DocumentationFile", + "description": "Required. The documentation file contents for the GraphQL schema." + } + }, + "type": "object" + }, "GoogleCloudApigeeV1GrpcOperationConfig": { "description": "Binds the resources in a proxy or remote service with the gRPC operation and its associated quota enforcement.", "id": "GoogleCloudApigeeV1GrpcOperationConfig", @@ -13510,6 +13901,39 @@ }, "type": "object" }, + "GoogleCloudApigeeV1ListApiDocsResponse": { + "id": "GoogleCloudApigeeV1ListApiDocsResponse", + "properties": { + "data": { + "description": "The catalog item resources.", + "items": { + "$ref": "GoogleCloudApigeeV1ApiDoc" + }, + "type": "array" + }, + "errorCode": { + "description": "Unique error code for the request, if any.", + "type": "string" + }, + "message": { + "description": "Description of the operation.", + "type": "string" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "requestId": { + "description": "Unique ID of the request.", + "type": "string" + }, + "status": { + "description": "Status of the operation.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudApigeeV1ListApiProductsResponse": { "id": "GoogleCloudApigeeV1ListApiProductsResponse", "properties": { @@ -14221,6 +14645,32 @@ }, "type": "object" }, + "GoogleCloudApigeeV1OASDocumentation": { + "description": "OpenAPI Specification documentation for a catalog item.", + "id": "GoogleCloudApigeeV1OASDocumentation", + "properties": { + "format": { + "description": "Output only. The format of the input specification file contents.", + "enum": [ + "FORMAT_UNSPECIFIED", + "YAML", + "JSON" + ], + "enumDescriptions": [ + "The format is not available.", + "YAML format.", + "JSON format." + ], + "readOnly": true, + "type": "string" + }, + "spec": { + "$ref": "GoogleCloudApigeeV1DocumentationFile", + "description": "Required. The documentation file contents for the OpenAPI Specification. JSON and YAML file formats are supported." + } + }, + "type": "object" + }, "GoogleCloudApigeeV1Operation": { "description": "Represents the pairing of REST resource path and the actions (verbs) allowed on the resource path.", "id": "GoogleCloudApigeeV1Operation", diff --git a/apigee/v1/apigee-gen.go b/apigee/v1/apigee-gen.go index c4da7812c95..c20c7f1faa1 100644 --- a/apigee/v1/apigee-gen.go +++ b/apigee/v1/apigee-gen.go @@ -1181,6 +1181,7 @@ type OrganizationsSharedflowsRevisionsDeploymentsService struct { func NewOrganizationsSitesService(s *Service) *OrganizationsSitesService { rs := &OrganizationsSitesService{s: s} rs.Apicategories = NewOrganizationsSitesApicategoriesService(s) + rs.Apidocs = NewOrganizationsSitesApidocsService(s) return rs } @@ -1188,6 +1189,8 @@ type OrganizationsSitesService struct { s *Service Apicategories *OrganizationsSitesApicategoriesService + + Apidocs *OrganizationsSitesApidocsService } func NewOrganizationsSitesApicategoriesService(s *Service) *OrganizationsSitesApicategoriesService { @@ -1199,6 +1202,15 @@ type OrganizationsSitesApicategoriesService struct { s *Service } +func NewOrganizationsSitesApidocsService(s *Service) *OrganizationsSitesApidocsService { + rs := &OrganizationsSitesApidocsService{s: s} + return rs +} + +type OrganizationsSitesApidocsService struct { + s *Service +} + func NewProjectsService(s *Service) *ProjectsService { rs := &ProjectsService{s: s} return rs @@ -1822,6 +1834,244 @@ func (s *GoogleCloudApigeeV1ApiCategoryResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudApigeeV1ApiDoc: `ApiDoc` represents an API catalog item. +// Catalog items are used in two ways in a portal: - Users can browse +// and interact with a visual representation of the API documentation - +// The `api_product_name` field provides a link to a backing API +// product. Through this link, portal users can create and manage +// developer apps linked to one or more API products. +type GoogleCloudApigeeV1ApiDoc struct { + // AnonAllowed: Optional. Boolean flag that manages user access to the + // catalog item. When true, the catalog item can be viewed anonymously; + // otherwise, only registered users may view it. Note: when the parent + // portal is enrolled in the audience management feature + // (https://cloud.google.com/apigee/docs/api-platform/publish/portal/portal-audience#enrolling_in_the_beta_release_of_the_audience_management_feature), + // this flag is ignored; instead visibility must be further managed in + // the management UI (see Manage the visibility of an API in your portal + // (https://cloud.google.com/apigee/docs/api-platform/publish/portal/publish-apis#visibility)). + AnonAllowed bool `json:"anonAllowed,omitempty"` + + // ApiProductName: Required. Immutable. The `name` field of the + // associated API product + // (/apigee/docs/reference/apis/apigee/rest/v1/organizations.apiproducts) + // . A portal may have only one catalog item associated with a given API + // product. + ApiProductName string `json:"apiProductName,omitempty"` + + // CategoryIds: Optional. The IDs of the API categories to which this + // catalog item belongs. + CategoryIds []string `json:"categoryIds,omitempty"` + + // Description: Optional. Description of the catalog item. Max length is + // 10,000 characters. + Description string `json:"description,omitempty"` + + // EdgeAPIProductName: Optional. Immutable. DEPRECATED: use the + // `apiProductName` field instead + EdgeAPIProductName string `json:"edgeAPIProductName,omitempty"` + + // GraphqlEndpointUrl: Optional. DEPRECATED: manage documentation + // through the `getDocumentation` and `updateDocumentation` methods + GraphqlEndpointUrl string `json:"graphqlEndpointUrl,omitempty"` + + // GraphqlSchema: Optional. DEPRECATED: manage documentation through the + // `getDocumentation` and `updateDocumentation` methods + GraphqlSchema string `json:"graphqlSchema,omitempty"` + + // GraphqlSchemaDisplayName: Optional. DEPRECATED: manage documentation + // through the `getDocumentation` and `updateDocumentation` methods + GraphqlSchemaDisplayName string `json:"graphqlSchemaDisplayName,omitempty"` + + // Id: Output only. The ID of the catalog item. + Id int64 `json:"id,omitempty,string"` + + // ImageUrl: Optional. Location of the image used for the catalog item + // in the catalog. For portal files, this can have the format + // `/files/{filename}`. Max length is 2,083 characters. + ImageUrl string `json:"imageUrl,omitempty"` + + // Modified: Output only. Time the catalog item was last modified in + // milliseconds since epoch. + Modified int64 `json:"modified,omitempty,string"` + + // Published: Optional. Denotes whether the catalog item is published to + // the portal or is in a draft state. When the parent portal is enrolled + // in the audience management feature + // (https://cloud.google.com/apigee/docs/api-platform/publish/portal/portal-audience#enrolling_in_the_beta_release_of_the_audience_management_feature), + // the visibility must be further managed in the management UI (see + // Manage the visibility of an API in your portal + // (https://cloud.google.com/apigee/docs/api-platform/publish/portal/publish-apis#visibility)) + // before it can be visible to any users. If not enrolled in the + // audience management feature, the visibility is further managed by the + // `anonAllowed` flag. + Published bool `json:"published,omitempty"` + + // RequireCallbackUrl: Optional. Whether a callback URL is required when + // this catalog item's API product is enabled in a developer app. When + // true, a portal user will be required to input a URL when managing the + // app (this is typically used for the app's OAuth flow). + RequireCallbackUrl bool `json:"requireCallbackUrl,omitempty"` + + // SiteId: Output only. The ID of the parent portal. + SiteId string `json:"siteId,omitempty"` + + // SpecId: Optional. DEPRECATED: DO NOT USE + SpecId string `json:"specId,omitempty"` + + // Title: Required. The user-facing name of the catalog item. `title` + // must be a non-empty string with a max length of 255 characters. + Title string `json:"title,omitempty"` + + // Visibility: Optional. DEPRECATED: use the `published` field instead + Visibility bool `json:"visibility,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnonAllowed") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnonAllowed") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudApigeeV1ApiDoc) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1ApiDoc + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudApigeeV1ApiDocDocumentation: The documentation for a +// catalog item. +type GoogleCloudApigeeV1ApiDocDocumentation struct { + // GraphqlDocumentation: Optional. GraphQL documentation. + GraphqlDocumentation *GoogleCloudApigeeV1GraphqlDocumentation `json:"graphqlDocumentation,omitempty"` + + // OasDocumentation: Optional. OpenAPI Specification documentation. + OasDocumentation *GoogleCloudApigeeV1OASDocumentation `json:"oasDocumentation,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "GraphqlDocumentation") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GraphqlDocumentation") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudApigeeV1ApiDocDocumentation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1ApiDocDocumentation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudApigeeV1ApiDocDocumentationResponse: The catalog item +// documentation wrapped with response status, error_code, etc. +type GoogleCloudApigeeV1ApiDocDocumentationResponse struct { + // Data: Output only. The documentation resource. + Data *GoogleCloudApigeeV1ApiDocDocumentation `json:"data,omitempty"` + + // ErrorCode: Output only. Unique error code for the request, if any. + ErrorCode string `json:"errorCode,omitempty"` + + // Message: Output only. Description of the operation. + Message string `json:"message,omitempty"` + + // RequestId: Output only. Unique ID of the request. + RequestId string `json:"requestId,omitempty"` + + // Status: Output only. Status of the operation. + Status string `json:"status,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Data") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Data") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudApigeeV1ApiDocDocumentationResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1ApiDocDocumentationResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudApigeeV1ApiDocResponse: The catalog item resource wrapped +// with response status, error_code, etc. +type GoogleCloudApigeeV1ApiDocResponse struct { + // Data: The catalog item resource. + Data *GoogleCloudApigeeV1ApiDoc `json:"data,omitempty"` + + // ErrorCode: Unique error code for the request, if any. + ErrorCode string `json:"errorCode,omitempty"` + + // Message: Description of the operation. + Message string `json:"message,omitempty"` + + // RequestId: Unique ID of the request. + RequestId string `json:"requestId,omitempty"` + + // Status: Status of the operation. + Status string `json:"status,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Data") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Data") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudApigeeV1ApiDocResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1ApiDocResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type GoogleCloudApigeeV1ApiProduct struct { // ApiResources: Comma-separated list of API resources to be bundled in // the API product. By default, the resource paths are mapped from the @@ -4901,6 +5151,39 @@ func (s *GoogleCloudApigeeV1DimensionMetric) MarshalJSON() ([]byte, error) { type GoogleCloudApigeeV1DisableSecurityActionRequest struct { } +// GoogleCloudApigeeV1DocumentationFile: Documentation file contents for +// a catalog item. +type GoogleCloudApigeeV1DocumentationFile struct { + // Contents: Required. The file contents. The max size is 4 MB. + Contents string `json:"contents,omitempty"` + + // DisplayName: Required. A display name for the file, shown in the + // management UI. Max length is 255 characters. + DisplayName string `json:"displayName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Contents") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Contents") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudApigeeV1DocumentationFile) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1DocumentationFile + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudApigeeV1EnableSecurityActionRequest: Message to enable a // disabled SecurityAction. type GoogleCloudApigeeV1EnableSecurityActionRequest struct { @@ -5975,6 +6258,40 @@ func (s *GoogleCloudApigeeV1GraphQLOperationGroup) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudApigeeV1GraphqlDocumentation: GraphQL documentation for a +// catalog item. +type GoogleCloudApigeeV1GraphqlDocumentation struct { + // EndpointUri: Required. The GraphQL endpoint URI to be queried by API + // consumers. Max length is 2,083 characters. + EndpointUri string `json:"endpointUri,omitempty"` + + // Schema: Required. The documentation file contents for the GraphQL + // schema. + Schema *GoogleCloudApigeeV1DocumentationFile `json:"schema,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndpointUri") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EndpointUri") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudApigeeV1GraphqlDocumentation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1GraphqlDocumentation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudApigeeV1GrpcOperationConfig: Binds the resources in a // proxy or remote service with the gRPC operation and its associated // quota enforcement. @@ -6631,6 +6948,54 @@ func (s *GoogleCloudApigeeV1ListApiCategoriesResponse) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type GoogleCloudApigeeV1ListApiDocsResponse struct { + // Data: The catalog item resources. + Data []*GoogleCloudApigeeV1ApiDoc `json:"data,omitempty"` + + // ErrorCode: Unique error code for the request, if any. + ErrorCode string `json:"errorCode,omitempty"` + + // Message: Description of the operation. + Message string `json:"message,omitempty"` + + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // RequestId: Unique ID of the request. + RequestId string `json:"requestId,omitempty"` + + // Status: Status of the operation. + Status string `json:"status,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Data") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Data") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudApigeeV1ListApiDocsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1ListApiDocsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type GoogleCloudApigeeV1ListApiProductsResponse struct { // ApiProduct: Lists all API product names defined for an organization. ApiProduct []*GoogleCloudApigeeV1ApiProduct `json:"apiProduct,omitempty"` @@ -8107,6 +8472,45 @@ func (s *GoogleCloudApigeeV1NodeConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudApigeeV1OASDocumentation: OpenAPI Specification +// documentation for a catalog item. +type GoogleCloudApigeeV1OASDocumentation struct { + // Format: Output only. The format of the input specification file + // contents. + // + // Possible values: + // "FORMAT_UNSPECIFIED" - The format is not available. + // "YAML" - YAML format. + // "JSON" - JSON format. + Format string `json:"format,omitempty"` + + // Spec: Required. The documentation file contents for the OpenAPI + // Specification. JSON and YAML file formats are supported. + Spec *GoogleCloudApigeeV1DocumentationFile `json:"spec,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Format") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Format") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudApigeeV1OASDocumentation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1OASDocumentation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudApigeeV1Operation: Represents the pairing of REST resource // path and the actions (verbs) allowed on the resource path. type GoogleCloudApigeeV1Operation struct { @@ -62422,6 +62826,1072 @@ func (c *OrganizationsSitesApicategoriesPatchCall) Do(opts ...googleapi.CallOpti } +// method id "apigee.organizations.sites.apidocs.create": + +type OrganizationsSitesApidocsCreateCall struct { + s *Service + parent string + googlecloudapigeev1apidoc *GoogleCloudApigeeV1ApiDoc + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new catalog item. +// +// - parent: Name of the portal. Use the following structure in your +// request: `organizations/{org}/sites/{site}`. +func (r *OrganizationsSitesApidocsService) Create(parent string, googlecloudapigeev1apidoc *GoogleCloudApigeeV1ApiDoc) *OrganizationsSitesApidocsCreateCall { + c := &OrganizationsSitesApidocsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudapigeev1apidoc = googlecloudapigeev1apidoc + 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 *OrganizationsSitesApidocsCreateCall) Fields(s ...googleapi.Field) *OrganizationsSitesApidocsCreateCall { + 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 *OrganizationsSitesApidocsCreateCall) Context(ctx context.Context) *OrganizationsSitesApidocsCreateCall { + 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 *OrganizationsSitesApidocsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsSitesApidocsCreateCall) 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.googlecloudapigeev1apidoc) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apidocs") + 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 "apigee.organizations.sites.apidocs.create" call. +// Exactly one of *GoogleCloudApigeeV1ApiDocResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1ApiDocResponse.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 *OrganizationsSitesApidocsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiDocResponse, 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 := &GoogleCloudApigeeV1ApiDocResponse{ + 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 catalog item.", + // "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apidocs", + // "httpMethod": "POST", + // "id": "apigee.organizations.sites.apidocs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Name of the portal. Use the following structure in your request: `organizations/{org}/sites/{site}`", + // "location": "path", + // "pattern": "^organizations/[^/]+/sites/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/apidocs", + // "request": { + // "$ref": "GoogleCloudApigeeV1ApiDoc" + // }, + // "response": { + // "$ref": "GoogleCloudApigeeV1ApiDocResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "apigee.organizations.sites.apidocs.delete": + +type OrganizationsSitesApidocsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a catalog item. +// +// - name: Name of the catalog item. Use the following structure in your +// request: `organizations/{org}/sites/{site}/apidocs/{apidoc}`. +func (r *OrganizationsSitesApidocsService) Delete(name string) *OrganizationsSitesApidocsDeleteCall { + c := &OrganizationsSitesApidocsDeleteCall{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 *OrganizationsSitesApidocsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSitesApidocsDeleteCall { + 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 *OrganizationsSitesApidocsDeleteCall) Context(ctx context.Context) *OrganizationsSitesApidocsDeleteCall { + 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 *OrganizationsSitesApidocsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsSitesApidocsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apigee.organizations.sites.apidocs.delete" call. +// Exactly one of *GoogleCloudApigeeV1DeleteResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1DeleteResponse.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 *OrganizationsSitesApidocsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeleteResponse, 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 := &GoogleCloudApigeeV1DeleteResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a catalog item.", + // "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apidocs/{apidocsId}", + // "httpMethod": "DELETE", + // "id": "apigee.organizations.sites.apidocs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the catalog item. Use the following structure in your request: `organizations/{org}/sites/{site}/apidocs/{apidoc}`", + // "location": "path", + // "pattern": "^organizations/[^/]+/sites/[^/]+/apidocs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudApigeeV1DeleteResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "apigee.organizations.sites.apidocs.get": + +type OrganizationsSitesApidocsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a catalog item. +// +// - name: Name of the catalog item. Use the following structure in your +// request: `organizations/{org}/sites/{site}/apidocs/{apidoc}`. +func (r *OrganizationsSitesApidocsService) Get(name string) *OrganizationsSitesApidocsGetCall { + c := &OrganizationsSitesApidocsGetCall{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 *OrganizationsSitesApidocsGetCall) Fields(s ...googleapi.Field) *OrganizationsSitesApidocsGetCall { + 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 *OrganizationsSitesApidocsGetCall) IfNoneMatch(entityTag string) *OrganizationsSitesApidocsGetCall { + 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 *OrganizationsSitesApidocsGetCall) Context(ctx context.Context) *OrganizationsSitesApidocsGetCall { + 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 *OrganizationsSitesApidocsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsSitesApidocsGetCall) 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 "apigee.organizations.sites.apidocs.get" call. +// Exactly one of *GoogleCloudApigeeV1ApiDocResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1ApiDocResponse.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 *OrganizationsSitesApidocsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiDocResponse, 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 := &GoogleCloudApigeeV1ApiDocResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a catalog item.", + // "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apidocs/{apidocsId}", + // "httpMethod": "GET", + // "id": "apigee.organizations.sites.apidocs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the catalog item. Use the following structure in your request: `organizations/{org}/sites/{site}/apidocs/{apidoc}`", + // "location": "path", + // "pattern": "^organizations/[^/]+/sites/[^/]+/apidocs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudApigeeV1ApiDocResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "apigee.organizations.sites.apidocs.getDocumentation": + +type OrganizationsSitesApidocsGetDocumentationCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetDocumentation: Gets the documentation for the specified catalog +// item. +// +// - name: Resource name of the catalog item documentation. Use the +// following structure in your request: +// `organizations/{org}/sites/{site}/apidocs/{apidoc}/documentation`. +func (r *OrganizationsSitesApidocsService) GetDocumentation(name string) *OrganizationsSitesApidocsGetDocumentationCall { + c := &OrganizationsSitesApidocsGetDocumentationCall{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 *OrganizationsSitesApidocsGetDocumentationCall) Fields(s ...googleapi.Field) *OrganizationsSitesApidocsGetDocumentationCall { + 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 *OrganizationsSitesApidocsGetDocumentationCall) IfNoneMatch(entityTag string) *OrganizationsSitesApidocsGetDocumentationCall { + 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 *OrganizationsSitesApidocsGetDocumentationCall) Context(ctx context.Context) *OrganizationsSitesApidocsGetDocumentationCall { + 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 *OrganizationsSitesApidocsGetDocumentationCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsSitesApidocsGetDocumentationCall) 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 "apigee.organizations.sites.apidocs.getDocumentation" call. +// Exactly one of *GoogleCloudApigeeV1ApiDocDocumentationResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudApigeeV1ApiDocDocumentationResponse.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 *OrganizationsSitesApidocsGetDocumentationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiDocDocumentationResponse, 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 := &GoogleCloudApigeeV1ApiDocDocumentationResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the documentation for the specified catalog item.", + // "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apidocs/{apidocsId}/documentation", + // "httpMethod": "GET", + // "id": "apigee.organizations.sites.apidocs.getDocumentation", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Resource name of the catalog item documentation. Use the following structure in your request: `organizations/{org}/sites/{site}/apidocs/{apidoc}/documentation`", + // "location": "path", + // "pattern": "^organizations/[^/]+/sites/[^/]+/apidocs/[^/]+/documentation$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudApigeeV1ApiDocDocumentationResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "apigee.organizations.sites.apidocs.list": + +type OrganizationsSitesApidocsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Returns the catalog items associated with a portal. +// +// - parent: Name of the portal. Use the following structure in your +// request: `organizations/{org}/sites/{site}`. +func (r *OrganizationsSitesApidocsService) List(parent string) *OrganizationsSitesApidocsListCall { + c := &OrganizationsSitesApidocsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of items to return. The service may return fewer than this value. If +// unspecified, at most 25 books will be returned. The maximum value is +// 100; values above 100 will be coerced to 100. +func (c *OrganizationsSitesApidocsListCall) PageSize(pageSize int64) *OrganizationsSitesApidocsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListApiDocs` call. Provide this to retrieve +// the subsequent page. +func (c *OrganizationsSitesApidocsListCall) PageToken(pageToken string) *OrganizationsSitesApidocsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsSitesApidocsListCall) Fields(s ...googleapi.Field) *OrganizationsSitesApidocsListCall { + 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 *OrganizationsSitesApidocsListCall) IfNoneMatch(entityTag string) *OrganizationsSitesApidocsListCall { + 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 *OrganizationsSitesApidocsListCall) Context(ctx context.Context) *OrganizationsSitesApidocsListCall { + 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 *OrganizationsSitesApidocsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsSitesApidocsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apidocs") + 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 "apigee.organizations.sites.apidocs.list" call. +// Exactly one of *GoogleCloudApigeeV1ListApiDocsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudApigeeV1ListApiDocsResponse.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 *OrganizationsSitesApidocsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiDocsResponse, 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 := &GoogleCloudApigeeV1ListApiDocsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the catalog items associated with a portal.", + // "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apidocs", + // "httpMethod": "GET", + // "id": "apigee.organizations.sites.apidocs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. The maximum number of items to return. The service may return fewer than this value. If unspecified, at most 25 books will be returned. The maximum value is 100; values above 100 will be coerced to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. A page token, received from a previous `ListApiDocs` call. Provide this to retrieve the subsequent page.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Name of the portal. Use the following structure in your request: `organizations/{org}/sites/{site}`", + // "location": "path", + // "pattern": "^organizations/[^/]+/sites/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/apidocs", + // "response": { + // "$ref": "GoogleCloudApigeeV1ListApiDocsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationsSitesApidocsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListApiDocsResponse) 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 "apigee.organizations.sites.apidocs.update": + +type OrganizationsSitesApidocsUpdateCall struct { + s *Service + name string + googlecloudapigeev1apidoc *GoogleCloudApigeeV1ApiDoc + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Update: Updates a catalog item. +// +// - name: Name of the catalog item. Use the following structure in your +// request: `organizations/{org}/sites/{site}/apidocs/{apidoc}`. +func (r *OrganizationsSitesApidocsService) Update(name string, googlecloudapigeev1apidoc *GoogleCloudApigeeV1ApiDoc) *OrganizationsSitesApidocsUpdateCall { + c := &OrganizationsSitesApidocsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudapigeev1apidoc = googlecloudapigeev1apidoc + 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 *OrganizationsSitesApidocsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsSitesApidocsUpdateCall { + 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 *OrganizationsSitesApidocsUpdateCall) Context(ctx context.Context) *OrganizationsSitesApidocsUpdateCall { + 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 *OrganizationsSitesApidocsUpdateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsSitesApidocsUpdateCall) 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.googlecloudapigeev1apidoc) + 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("PUT", 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 "apigee.organizations.sites.apidocs.update" call. +// Exactly one of *GoogleCloudApigeeV1ApiDocResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1ApiDocResponse.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 *OrganizationsSitesApidocsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiDocResponse, 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 := &GoogleCloudApigeeV1ApiDocResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a catalog item.", + // "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apidocs/{apidocsId}", + // "httpMethod": "PUT", + // "id": "apigee.organizations.sites.apidocs.update", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the catalog item. Use the following structure in your request: `organizations/{org}/sites/{site}/apidocs/{apidoc}`", + // "location": "path", + // "pattern": "^organizations/[^/]+/sites/[^/]+/apidocs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudApigeeV1ApiDoc" + // }, + // "response": { + // "$ref": "GoogleCloudApigeeV1ApiDocResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "apigee.organizations.sites.apidocs.updateDocumentation": + +type OrganizationsSitesApidocsUpdateDocumentationCall struct { + s *Service + name string + googlecloudapigeev1apidocdocumentation *GoogleCloudApigeeV1ApiDocDocumentation + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateDocumentation: Updates the documentation for the specified +// catalog item. Note that the documentation file contents will not be +// populated in the return message. +// +// - name: Resource name of the catalog item documentation. Use the +// following structure in your request: +// `organizations/{org}/sites/{site}/apidocs/{apidoc}/documentation`. +func (r *OrganizationsSitesApidocsService) UpdateDocumentation(name string, googlecloudapigeev1apidocdocumentation *GoogleCloudApigeeV1ApiDocDocumentation) *OrganizationsSitesApidocsUpdateDocumentationCall { + c := &OrganizationsSitesApidocsUpdateDocumentationCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudapigeev1apidocdocumentation = googlecloudapigeev1apidocdocumentation + 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 *OrganizationsSitesApidocsUpdateDocumentationCall) Fields(s ...googleapi.Field) *OrganizationsSitesApidocsUpdateDocumentationCall { + 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 *OrganizationsSitesApidocsUpdateDocumentationCall) Context(ctx context.Context) *OrganizationsSitesApidocsUpdateDocumentationCall { + 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 *OrganizationsSitesApidocsUpdateDocumentationCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsSitesApidocsUpdateDocumentationCall) 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.googlecloudapigeev1apidocdocumentation) + 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 "apigee.organizations.sites.apidocs.updateDocumentation" call. +// Exactly one of *GoogleCloudApigeeV1ApiDocDocumentationResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudApigeeV1ApiDocDocumentationResponse.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 *OrganizationsSitesApidocsUpdateDocumentationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiDocDocumentationResponse, 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 := &GoogleCloudApigeeV1ApiDocDocumentationResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates the documentation for the specified catalog item. Note that the documentation file contents will not be populated in the return message.", + // "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apidocs/{apidocsId}/documentation", + // "httpMethod": "PATCH", + // "id": "apigee.organizations.sites.apidocs.updateDocumentation", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Resource name of the catalog item documentation. Use the following structure in your request: `organizations/{org}/sites/{site}/apidocs/{apidoc}/documentation`", + // "location": "path", + // "pattern": "^organizations/[^/]+/sites/[^/]+/apidocs/[^/]+/documentation$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudApigeeV1ApiDocDocumentation" + // }, + // "response": { + // "$ref": "GoogleCloudApigeeV1ApiDocDocumentationResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "apigee.projects.provisionOrganization": type ProjectsProvisionOrganizationCall struct { diff --git a/artifactregistry/v1/artifactregistry-api.json b/artifactregistry/v1/artifactregistry-api.json index 093ea5167b7..0055e4ec6c0 100644 --- a/artifactregistry/v1/artifactregistry-api.json +++ b/artifactregistry/v1/artifactregistry-api.json @@ -1668,7 +1668,7 @@ } } }, - "revision": "20240202", + "revision": "20240223", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "AptArtifact": { @@ -2859,19 +2859,22 @@ "REDIRECTION_STATE_UNSPECIFIED", "REDIRECTION_FROM_GCR_IO_DISABLED", "REDIRECTION_FROM_GCR_IO_ENABLED", - "REDIRECTION_FROM_GCR_IO_FINALIZED" + "REDIRECTION_FROM_GCR_IO_FINALIZED", + "REDIRECTION_FROM_GCR_IO_ENABLED_AND_COPYING" ], "enumDeprecated": [ false, false, false, - true + true, + false ], "enumDescriptions": [ "No redirection status has been set.", "Redirection is disabled.", "Redirection is enabled.", - "Redirection is enabled, and has been finalized so cannot be reverted." + "Redirection is enabled, and has been finalized so cannot be reverted.", + "Redirection is enabled and missing images are copied from GCR" ], "type": "string" }, diff --git a/artifactregistry/v1/artifactregistry-gen.go b/artifactregistry/v1/artifactregistry-gen.go index 9386672db48..7edfc956e30 100644 --- a/artifactregistry/v1/artifactregistry-gen.go +++ b/artifactregistry/v1/artifactregistry-gen.go @@ -2514,6 +2514,8 @@ type ProjectSettings struct { // "REDIRECTION_FROM_GCR_IO_ENABLED" - Redirection is enabled. // "REDIRECTION_FROM_GCR_IO_FINALIZED" - Redirection is enabled, and // has been finalized so cannot be reverted. + // "REDIRECTION_FROM_GCR_IO_ENABLED_AND_COPYING" - Redirection is + // enabled and missing images are copied from GCR LegacyRedirectionState string `json:"legacyRedirectionState,omitempty"` // Name: The name of the project's settings. Always of the form: diff --git a/artifactregistry/v1beta2/artifactregistry-api.json b/artifactregistry/v1beta2/artifactregistry-api.json index f226032eed3..d56389b36fe 100644 --- a/artifactregistry/v1beta2/artifactregistry-api.json +++ b/artifactregistry/v1beta2/artifactregistry-api.json @@ -1142,7 +1142,7 @@ } } }, - "revision": "20240122", + "revision": "20240223", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "AptArtifact": { @@ -1718,19 +1718,22 @@ "REDIRECTION_STATE_UNSPECIFIED", "REDIRECTION_FROM_GCR_IO_DISABLED", "REDIRECTION_FROM_GCR_IO_ENABLED", - "REDIRECTION_FROM_GCR_IO_FINALIZED" + "REDIRECTION_FROM_GCR_IO_FINALIZED", + "REDIRECTION_FROM_GCR_IO_ENABLED_AND_COPYING" ], "enumDeprecated": [ false, false, false, - true + true, + false ], "enumDescriptions": [ "No redirection status has been set.", "Redirection is disabled.", "Redirection is enabled.", - "Redirection is enabled, and has been finalized so cannot be reverted." + "Redirection is enabled, and has been finalized so cannot be reverted.", + "Redirection is enabled and missing images are copied from GCR" ], "type": "string" }, diff --git a/artifactregistry/v1beta2/artifactregistry-gen.go b/artifactregistry/v1beta2/artifactregistry-gen.go index b22163a98f7..9aba6fed651 100644 --- a/artifactregistry/v1beta2/artifactregistry-gen.go +++ b/artifactregistry/v1beta2/artifactregistry-gen.go @@ -1407,6 +1407,8 @@ type ProjectSettings struct { // "REDIRECTION_FROM_GCR_IO_ENABLED" - Redirection is enabled. // "REDIRECTION_FROM_GCR_IO_FINALIZED" - Redirection is enabled, and // has been finalized so cannot be reverted. + // "REDIRECTION_FROM_GCR_IO_ENABLED_AND_COPYING" - Redirection is + // enabled and missing images are copied from GCR LegacyRedirectionState string `json:"legacyRedirectionState,omitempty"` // Name: The name of the project's settings. Always of the form: diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index 729623c74e7..28a9a12bd06 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -990,7 +990,7 @@ } } }, - "revision": "20240220", + "revision": "20240222", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { @@ -2058,7 +2058,7 @@ "type": "object" }, "GoogleAppsCardV1Columns": { - "description": "The `Columns` widget displays up to 2 columns in a card message or dialog. You can add widgets to each column; the widgets appear in the order that they are specified. For an example in Google Chat apps, see [Columns](https://developers.google.com/chat/ui/widgets/columns). The height of each column is determined by the taller column. For example, if the first column is taller than the second column, both columns have the height of the first column. Because each column can contain a different number of widgets, you can't define rows or align widgets between the columns. Columns are displayed side-by-side. You can customize the width of each column using the `HorizontalSizeStyle` field. If the user's screen width is too narrow, the second column wraps below the first: * On web, the second column wraps if the screen width is less than or equal to 480 pixels. * On iOS devices, the second column wraps if the screen width is less than or equal to 300 pt. * On Android devices, the second column wraps if the screen width is less than or equal to 320 dp. To include more than 2 columns, or to use rows, use the `Grid` widget. [Google Chat apps](https://developers.google.com/chat):", + "description": "The `Columns` widget displays up to 2 columns in a card or dialog. You can add widgets to each column; the widgets appear in the order that they are specified. For an example in Google Chat apps, see [Columns](https://developers.google.com/chat/ui/widgets/columns). The height of each column is determined by the taller column. For example, if the first column is taller than the second column, both columns have the height of the first column. Because each column can contain a different number of widgets, you can't define rows or align widgets between the columns. Columns are displayed side-by-side. You can customize the width of each column using the `HorizontalSizeStyle` field. If the user's screen width is too narrow, the second column wraps below the first: * On web, the second column wraps if the screen width is less than or equal to 480 pixels. * On iOS devices, the second column wraps if the screen width is less than or equal to 300 pt. * On Android devices, the second column wraps if the screen width is less than or equal to 320 dp. To include more than 2 columns, or to use rows, use the `Grid` widget. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend): Columns for Google Workspace Add-ons are in [Developer Preview](https://developers.google.com/workspace/preview).", "id": "GoogleAppsCardV1Columns", "properties": { "columnItems": { @@ -2502,7 +2502,7 @@ "A set of radio buttons. Users can select one radio button.", "A set of switches. Users can turn on one or more switches.", "A dropdown menu. Users can select one item from the menu.", - "A multiselect menu for static or dynamic data. From the menu bar, users select one or more items. Users can also input values to populate dynamic data. For example, users can start typing the name of a Google Chat space and the widget autosuggests the space. To populate items for a multiselect menu, you can use one of the following types of data sources: * Static data: Items are specified as `SelectionItem` objects in the widget. Up to 100 items. * Google Workspace data: Items are populated using data from Google Workspace, such as Google Workspace users or Google Chat spaces. * External data: Items are populated from an external data source outside of Google Workspace. For examples of how to implement multiselect menus, see the [`SelectionInput` widget page](https://developers.google.com/chat/ui/widgets/selection-input#multiselect-menu). [Google Chat apps](https://developers.google.com/chat):" + "A multiselect menu for static or dynamic data. From the menu bar, users select one or more items. Users can also input values to populate dynamic data. For example, users can start typing the name of a Google Chat space and the widget autosuggests the space. To populate items for a multiselect menu, you can use one of the following types of data sources: * Static data: Items are specified as `SelectionItem` objects in the widget. Up to 100 items. * Google Workspace data: Items are populated using data from Google Workspace, such as Google Workspace users or Google Chat spaces. * External data: Items are populated from an external data source outside of Google Workspace. For examples of how to implement multiselect menus, see the [`SelectionInput` widget page](https://developers.google.com/chat/ui/widgets/selection-input#multiselect-menu). [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend): multiselect for Google Workspace Add-ons are in [Developer Preview](https://developers.google.com/workspace/preview)." ], "type": "string" } diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 5d08554d1ec..398fe1fbf67 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -2249,9 +2249,9 @@ func (s *GoogleAppsCardV1Column) MarshalJSON() ([]byte, error) { } // GoogleAppsCardV1Columns: The `Columns` widget displays up to 2 -// columns in a card message or dialog. You can add widgets to each -// column; the widgets appear in the order that they are specified. For -// an example in Google Chat apps, see Columns +// columns in a card or dialog. You can add widgets to each column; the +// widgets appear in the order that they are specified. For an example +// in Google Chat apps, see Columns // (https://developers.google.com/chat/ui/widgets/columns). The height // of each column is determined by the taller column. For example, if // the first column is taller than the second column, both columns have @@ -2265,8 +2265,11 @@ func (s *GoogleAppsCardV1Column) MarshalJSON() ([]byte, error) { // the second column wraps if the screen width is less than or equal to // 300 pt. * On Android devices, the second column wraps if the screen // width is less than or equal to 320 dp. To include more than 2 -// columns, or to use rows, use the `Grid` widget. Google Chat apps -// (https://developers.google.com/chat): +// columns, or to use rows, use the `Grid` widget. Google Workspace +// Add-ons and Chat apps +// (https://developers.google.com/workspace/extend): Columns for Google +// Workspace Add-ons are in Developer Preview +// (https://developers.google.com/workspace/preview). type GoogleAppsCardV1Columns struct { // ColumnItems: An array of columns. You can include up to 2 columns in // a card or dialog. @@ -3055,8 +3058,10 @@ type GoogleAppsCardV1SelectionInput struct { // outside of Google Workspace. For examples of how to implement // multiselect menus, see the [`SelectionInput` widget // page](https://developers.google.com/chat/ui/widgets/selection-input#mu - // ltiselect-menu). [Google Chat - // apps](https://developers.google.com/chat): + // ltiselect-menu). [Google Workspace Add-ons and Chat + // apps](https://developers.google.com/workspace/extend): multiselect + // for Google Workspace Add-ons are in [Developer + // Preview](https://developers.google.com/workspace/preview). Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "ExternalDataSource") diff --git a/compute/v0.beta/compute-api.json b/compute/v0.beta/compute-api.json index 244f53b8570..0570abbb60b 100644 --- a/compute/v0.beta/compute-api.json +++ b/compute/v0.beta/compute-api.json @@ -40344,7 +40344,7 @@ } } }, - "revision": "20240218", + "revision": "20240220", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -50883,6 +50883,13 @@ "description": "[Output Only] Server-defined URL for the resource.", "type": "string" }, + "sourceRegions": { + "description": "The list of cloud regions from which health checks are performed. If any regions are specified, then exactly 3 regions should be specified. The region names must be valid names of GCP regions. This can only be set for global health check. If this list is non-empty, then there are restrictions on what other health check fields are supported and what other resources can use this health check: - SSL, HTTP2, and GRPC protocols are not supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - The health check cannot be used with BackendService nor with managed instance group auto-healing. ", + "items": { + "type": "string" + }, + "type": "array" + }, "sslHealthCheck": { "$ref": "SSLHealthCheck" }, @@ -77412,6 +77419,11 @@ "description": "The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint identified by this service attachment.", "type": "string" }, + "propagatedConnectionLimit": { + "description": "The number of consumer Network Connectivity Center spokes that connected Private Service Connect endpoints can be propagated to. This limit lets a service producer indirectly limit how many propagated Private Service Connect connections can be established to the producer's service attachment. If the connection preference of the service attachment is ACCEPT_MANUAL, the limit applies to each project or network that is listed in the consumer accept list. If the connection preference of the service attachment is ACCEPT_AUTOMATIC, the limit applies to each project that contains a connected endpoint. If unspecified, the default propagated connection limit is 250.", + "format": "uint32", + "type": "integer" + }, "pscServiceAttachmentId": { "$ref": "Uint128", "description": "[Output Only] An 128-bit global unique ID of the PSC service attachment." @@ -77611,6 +77623,11 @@ "description": "The url of a connected endpoint.", "type": "string" }, + "propagatedConnectionCount": { + "description": "The number of consumer Network Connectivity Center spokes that the connected Private Service Connect endpoint has propagated to.", + "format": "uint32", + "type": "integer" + }, "pscConnectionId": { "description": "The PSC connection id of the connected endpoint.", "format": "uint64", diff --git a/compute/v0.beta/compute-gen.go b/compute/v0.beta/compute-gen.go index 8d4d293c08f..55f1521b7f3 100644 --- a/compute/v0.beta/compute-gen.go +++ b/compute/v0.beta/compute-gen.go @@ -16784,6 +16784,19 @@ type HealthCheck struct { // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` + // SourceRegions: The list of cloud regions from which health checks are + // performed. If any regions are specified, then exactly 3 regions + // should be specified. The region names must be valid names of GCP + // regions. This can only be set for global health check. If this list + // is non-empty, then there are restrictions on what other health check + // fields are supported and what other resources can use this health + // check: - SSL, HTTP2, and GRPC protocols are not supported. - The TCP + // request field is not supported. - The proxyHeader field for HTTP, + // HTTPS, and TCP is not supported. - The checkIntervalSec field must be + // at least 30. - The health check cannot be used with BackendService + // nor with managed instance group auto-healing. + SourceRegions []string `json:"sourceRegions,omitempty"` + SslHealthCheck *SSLHealthCheck `json:"sslHealthCheck,omitempty"` TcpHealthCheck *TCPHealthCheck `json:"tcpHealthCheck,omitempty"` @@ -54023,6 +54036,19 @@ type ServiceAttachment struct { // by this service attachment. ProducerForwardingRule string `json:"producerForwardingRule,omitempty"` + // PropagatedConnectionLimit: The number of consumer Network + // Connectivity Center spokes that connected Private Service Connect + // endpoints can be propagated to. This limit lets a service producer + // indirectly limit how many propagated Private Service Connect + // connections can be established to the producer's service attachment. + // If the connection preference of the service attachment is + // ACCEPT_MANUAL, the limit applies to each project or network that is + // listed in the consumer accept list. If the connection preference of + // the service attachment is ACCEPT_AUTOMATIC, the limit applies to each + // project that contains a connected endpoint. If unspecified, the + // default propagated connection limit is 250. + PropagatedConnectionLimit int64 `json:"propagatedConnectionLimit,omitempty"` + // PscServiceAttachmentId: [Output Only] An 128-bit global unique ID of // the PSC service attachment. PscServiceAttachmentId *Uint128 `json:"pscServiceAttachmentId,omitempty"` @@ -54292,6 +54318,11 @@ type ServiceAttachmentConnectedEndpoint struct { // Endpoint: The url of a connected endpoint. Endpoint string `json:"endpoint,omitempty"` + // PropagatedConnectionCount: The number of consumer Network + // Connectivity Center spokes that the connected Private Service Connect + // endpoint has propagated to. + PropagatedConnectionCount int64 `json:"propagatedConnectionCount,omitempty"` + // PscConnectionId: The PSC connection id of the connected endpoint. PscConnectionId uint64 `json:"pscConnectionId,omitempty,string"` diff --git a/documentai/v1/documentai-api.json b/documentai/v1/documentai-api.json index 3c186f857af..a9b222822f4 100644 --- a/documentai/v1/documentai-api.json +++ b/documentai/v1/documentai-api.json @@ -1042,7 +1042,7 @@ } } }, - "revision": "20240126", + "revision": "20240223", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": { @@ -2581,7 +2581,7 @@ "properties": { "boundingPoly": { "$ref": "GoogleCloudDocumentaiV1BoundingPoly", - "description": "Optional. Identifies the bounding polygon of a layout element on the page." + "description": "Optional. Identifies the bounding polygon of a layout element on the page. If `layout_type` is set, the bounding polygon must be exactly the same to the layout element it's referring to." }, "confidence": { "description": "Optional. Confidence of detected page element, if applicable. Range `[0, 1]`.", @@ -3380,6 +3380,10 @@ "description": "Defines properties that can be part of the entity type.", "id": "GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty", "properties": { + "displayName": { + "description": "User defined name for the property.", + "type": "string" + }, "name": { "description": "The name of the property. Follows the same guidelines as the EntityType name.", "type": "string" @@ -4116,6 +4120,10 @@ "ocrConfig": { "$ref": "GoogleCloudDocumentaiV1OcrConfig", "description": "Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`. Returns error if set on other processor types." + }, + "schemaOverride": { + "$ref": "GoogleCloudDocumentaiV1DocumentSchema", + "description": "Optional. Override the schema of the ProcessorVersion. Will return an Invalid Argument error if this field is set when the underlying ProcessorVersion doesn't support schema override." } }, "type": "object" @@ -5110,7 +5118,7 @@ "properties": { "boundingPoly": { "$ref": "GoogleCloudDocumentaiV1beta1BoundingPoly", - "description": "Optional. Identifies the bounding polygon of a layout element on the page." + "description": "Optional. Identifies the bounding polygon of a layout element on the page. If `layout_type` is set, the bounding polygon must be exactly the same to the layout element it's referring to." }, "confidence": { "description": "Optional. Confidence of detected page element, if applicable. Range `[0, 1]`.", @@ -6511,7 +6519,7 @@ "properties": { "boundingPoly": { "$ref": "GoogleCloudDocumentaiV1beta2BoundingPoly", - "description": "Optional. Identifies the bounding polygon of a layout element on the page." + "description": "Optional. Identifies the bounding polygon of a layout element on the page. If `layout_type` is set, the bounding polygon must be exactly the same to the layout element it's referring to." }, "confidence": { "description": "Optional. Confidence of detected page element, if applicable. Range `[0, 1]`.", diff --git a/documentai/v1/documentai-gen.go b/documentai/v1/documentai-gen.go index 3ce6dcfd11c..f5a9895c80c 100644 --- a/documentai/v1/documentai-gen.go +++ b/documentai/v1/documentai-gen.go @@ -2893,7 +2893,8 @@ func (s *GoogleCloudDocumentaiV1DocumentPageAnchor) MarshalJSON() ([]byte, error // reference to a page element within a document. type GoogleCloudDocumentaiV1DocumentPageAnchorPageRef struct { // BoundingPoly: Optional. Identifies the bounding polygon of a layout - // element on the page. + // element on the page. If `layout_type` is set, the bounding polygon + // must be exactly the same to the layout element it's referring to. BoundingPoly *GoogleCloudDocumentaiV1BoundingPoly `json:"boundingPoly,omitempty"` // Confidence: Optional. Confidence of detected page element, if @@ -4170,6 +4171,9 @@ func (s *GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues) MarshalJSON( // GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty: Defines // properties that can be part of the entity type. type GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty struct { + // DisplayName: User defined name for the property. + DisplayName string `json:"displayName,omitempty"` + // Name: The name of the property. Follows the same guidelines as the // EntityType name. Name string `json:"name,omitempty"` @@ -4193,7 +4197,7 @@ type GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty struct { // is subject to the same conventions as the `Entity.base_types` field. ValueType string `json:"valueType,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to + // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4201,10 +4205,10 @@ type GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty struct { // 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 + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -5525,6 +5529,12 @@ type GoogleCloudDocumentaiV1ProcessOptions struct { // types. OcrConfig *GoogleCloudDocumentaiV1OcrConfig `json:"ocrConfig,omitempty"` + // SchemaOverride: Optional. Override the schema of the + // ProcessorVersion. Will return an Invalid Argument error if this field + // is set when the underlying ProcessorVersion doesn't support schema + // override. + SchemaOverride *GoogleCloudDocumentaiV1DocumentSchema `json:"schemaOverride,omitempty"` + // ForceSendFields is a list of field names (e.g. "FromEnd") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -7087,7 +7097,8 @@ func (s *GoogleCloudDocumentaiV1beta1DocumentPageAnchor) MarshalJSON() ([]byte, // weak reference to a page element within a document. type GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef struct { // BoundingPoly: Optional. Identifies the bounding polygon of a layout - // element on the page. + // element on the page. If `layout_type` is set, the bounding polygon + // must be exactly the same to the layout element it's referring to. BoundingPoly *GoogleCloudDocumentaiV1beta1BoundingPoly `json:"boundingPoly,omitempty"` // Confidence: Optional. Confidence of detected page element, if @@ -9358,7 +9369,8 @@ func (s *GoogleCloudDocumentaiV1beta2DocumentPageAnchor) MarshalJSON() ([]byte, // weak reference to a page element within a document. type GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef struct { // BoundingPoly: Optional. Identifies the bounding polygon of a layout - // element on the page. + // element on the page. If `layout_type` is set, the bounding polygon + // must be exactly the same to the layout element it's referring to. BoundingPoly *GoogleCloudDocumentaiV1beta2BoundingPoly `json:"boundingPoly,omitempty"` // Confidence: Optional. Confidence of detected page element, if diff --git a/documentai/v1beta2/documentai-api.json b/documentai/v1beta2/documentai-api.json index 13bf02ca39c..63eaa0dc081 100644 --- a/documentai/v1beta2/documentai-api.json +++ b/documentai/v1beta2/documentai-api.json @@ -292,7 +292,7 @@ } } }, - "revision": "20240112", + "revision": "20240223", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": { @@ -1951,7 +1951,7 @@ "properties": { "boundingPoly": { "$ref": "GoogleCloudDocumentaiV1beta1BoundingPoly", - "description": "Optional. Identifies the bounding polygon of a layout element on the page." + "description": "Optional. Identifies the bounding polygon of a layout element on the page. If `layout_type` is set, the bounding polygon must be exactly the same to the layout element it's referring to." }, "confidence": { "description": "Optional. Confidence of detected page element, if applicable. Range `[0, 1]`.", @@ -3377,7 +3377,7 @@ "properties": { "boundingPoly": { "$ref": "GoogleCloudDocumentaiV1beta2BoundingPoly", - "description": "Optional. Identifies the bounding polygon of a layout element on the page." + "description": "Optional. Identifies the bounding polygon of a layout element on the page. If `layout_type` is set, the bounding polygon must be exactly the same to the layout element it's referring to." }, "confidence": { "description": "Optional. Confidence of detected page element, if applicable. Range `[0, 1]`.", diff --git a/documentai/v1beta2/documentai-gen.go b/documentai/v1beta2/documentai-gen.go index 857a4e738d2..afd99a38d49 100644 --- a/documentai/v1beta2/documentai-gen.go +++ b/documentai/v1beta2/documentai-gen.go @@ -3091,7 +3091,8 @@ func (s *GoogleCloudDocumentaiV1beta1DocumentPageAnchor) MarshalJSON() ([]byte, // weak reference to a page element within a document. type GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef struct { // BoundingPoly: Optional. Identifies the bounding polygon of a layout - // element on the page. + // element on the page. If `layout_type` is set, the bounding polygon + // must be exactly the same to the layout element it's referring to. BoundingPoly *GoogleCloudDocumentaiV1beta1BoundingPoly `json:"boundingPoly,omitempty"` // Confidence: Optional. Confidence of detected page element, if @@ -5426,7 +5427,8 @@ func (s *GoogleCloudDocumentaiV1beta2DocumentPageAnchor) MarshalJSON() ([]byte, // weak reference to a page element within a document. type GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef struct { // BoundingPoly: Optional. Identifies the bounding polygon of a layout - // element on the page. + // element on the page. If `layout_type` is set, the bounding polygon + // must be exactly the same to the layout element it's referring to. BoundingPoly *GoogleCloudDocumentaiV1beta2BoundingPoly `json:"boundingPoly,omitempty"` // Confidence: Optional. Confidence of detected page element, if diff --git a/documentai/v1beta3/documentai-api.json b/documentai/v1beta3/documentai-api.json index 756b1cf95f5..83a99076390 100644 --- a/documentai/v1beta3/documentai-api.json +++ b/documentai/v1beta3/documentai-api.json @@ -1284,7 +1284,7 @@ } } }, - "revision": "20240126", + "revision": "20240223", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": { @@ -2943,7 +2943,7 @@ "properties": { "boundingPoly": { "$ref": "GoogleCloudDocumentaiV1beta1BoundingPoly", - "description": "Optional. Identifies the bounding polygon of a layout element on the page." + "description": "Optional. Identifies the bounding polygon of a layout element on the page. If `layout_type` is set, the bounding polygon must be exactly the same to the layout element it's referring to." }, "confidence": { "description": "Optional. Confidence of detected page element, if applicable. Range `[0, 1]`.", @@ -4344,7 +4344,7 @@ "properties": { "boundingPoly": { "$ref": "GoogleCloudDocumentaiV1beta2BoundingPoly", - "description": "Optional. Identifies the bounding polygon of a layout element on the page." + "description": "Optional. Identifies the bounding polygon of a layout element on the page. If `layout_type` is set, the bounding polygon must be exactly the same to the layout element it's referring to." }, "confidence": { "description": "Optional. Confidence of detected page element, if applicable. Range `[0, 1]`.", @@ -6324,7 +6324,7 @@ "properties": { "boundingPoly": { "$ref": "GoogleCloudDocumentaiV1beta3BoundingPoly", - "description": "Optional. Identifies the bounding polygon of a layout element on the page." + "description": "Optional. Identifies the bounding polygon of a layout element on the page. If `layout_type` is set, the bounding polygon must be exactly the same to the layout element it's referring to." }, "confidence": { "description": "Optional. Confidence of detected page element, if applicable. Range `[0, 1]`.", @@ -7127,6 +7127,10 @@ "description": "Defines properties that can be part of the entity type.", "id": "GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty", "properties": { + "displayName": { + "description": "User defined name for the property.", + "type": "string" + }, "name": { "description": "The name of the property. Follows the same guidelines as the EntityType name.", "type": "string" diff --git a/documentai/v1beta3/documentai-gen.go b/documentai/v1beta3/documentai-gen.go index 139f8389474..c7d575e6f37 100644 --- a/documentai/v1beta3/documentai-gen.go +++ b/documentai/v1beta3/documentai-gen.go @@ -3127,7 +3127,8 @@ func (s *GoogleCloudDocumentaiV1beta1DocumentPageAnchor) MarshalJSON() ([]byte, // weak reference to a page element within a document. type GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef struct { // BoundingPoly: Optional. Identifies the bounding polygon of a layout - // element on the page. + // element on the page. If `layout_type` is set, the bounding polygon + // must be exactly the same to the layout element it's referring to. BoundingPoly *GoogleCloudDocumentaiV1beta1BoundingPoly `json:"boundingPoly,omitempty"` // Confidence: Optional. Confidence of detected page element, if @@ -5398,7 +5399,8 @@ func (s *GoogleCloudDocumentaiV1beta2DocumentPageAnchor) MarshalJSON() ([]byte, // weak reference to a page element within a document. type GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef struct { // BoundingPoly: Optional. Identifies the bounding polygon of a layout - // element on the page. + // element on the page. If `layout_type` is set, the bounding polygon + // must be exactly the same to the layout element it's referring to. BoundingPoly *GoogleCloudDocumentaiV1beta2BoundingPoly `json:"boundingPoly,omitempty"` // Confidence: Optional. Confidence of detected page element, if @@ -8652,7 +8654,8 @@ func (s *GoogleCloudDocumentaiV1beta3DocumentPageAnchor) MarshalJSON() ([]byte, // weak reference to a page element within a document. type GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef struct { // BoundingPoly: Optional. Identifies the bounding polygon of a layout - // element on the page. + // element on the page. If `layout_type` is set, the bounding polygon + // must be exactly the same to the layout element it's referring to. BoundingPoly *GoogleCloudDocumentaiV1beta3BoundingPoly `json:"boundingPoly,omitempty"` // Confidence: Optional. Confidence of detected page element, if @@ -9933,6 +9936,9 @@ func (s *GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues) Marshal // GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty: Defines // properties that can be part of the entity type. type GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty struct { + // DisplayName: User defined name for the property. + DisplayName string `json:"displayName,omitempty"` + // Name: The name of the property. Follows the same guidelines as the // EntityType name. Name string `json:"name,omitempty"` @@ -9960,7 +9966,7 @@ type GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty struct { // is subject to the same conventions as the `Entity.base_types` field. ValueType string `json:"valueType,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to + // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -9968,10 +9974,10 @@ type GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty struct { // 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 + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` diff --git a/healthcare/v1/healthcare-api.json b/healthcare/v1/healthcare-api.json index 13a2a8974df..663c042ee07 100644 --- a/healthcare/v1/healthcare-api.json +++ b/healthcare/v1/healthcare-api.json @@ -1611,6 +1611,100 @@ } } }, + "dataMapperWorkspaces": { + "methods": { + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataMapperWorkspaces/{dataMapperWorkspacesId}:getIamPolicy", + "httpMethod": "GET", + "id": "healthcare.projects.locations.datasets.dataMapperWorkspaces.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataMapperWorkspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-healthcare", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataMapperWorkspaces/{dataMapperWorkspacesId}:setIamPolicy", + "httpMethod": "POST", + "id": "healthcare.projects.locations.datasets.dataMapperWorkspaces.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataMapperWorkspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-healthcare", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataMapperWorkspaces/{dataMapperWorkspacesId}:testIamPermissions", + "httpMethod": "POST", + "id": "healthcare.projects.locations.datasets.dataMapperWorkspaces.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataMapperWorkspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-healthcare", + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "dicomStores": { "methods": { "create": { @@ -4460,7 +4554,7 @@ } } }, - "revision": "20240130", + "revision": "20240220", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "ActivateConsentRequest": { diff --git a/healthcare/v1/healthcare-gen.go b/healthcare/v1/healthcare-gen.go index 06d8d45b352..3661e0139d5 100644 --- a/healthcare/v1/healthcare-gen.go +++ b/healthcare/v1/healthcare-gen.go @@ -194,6 +194,7 @@ type ProjectsLocationsService struct { func NewProjectsLocationsDatasetsService(s *Service) *ProjectsLocationsDatasetsService { rs := &ProjectsLocationsDatasetsService{s: s} rs.ConsentStores = NewProjectsLocationsDatasetsConsentStoresService(s) + rs.DataMapperWorkspaces = NewProjectsLocationsDatasetsDataMapperWorkspacesService(s) rs.DicomStores = NewProjectsLocationsDatasetsDicomStoresService(s) rs.FhirStores = NewProjectsLocationsDatasetsFhirStoresService(s) rs.Hl7V2Stores = NewProjectsLocationsDatasetsHl7V2StoresService(s) @@ -206,6 +207,8 @@ type ProjectsLocationsDatasetsService struct { ConsentStores *ProjectsLocationsDatasetsConsentStoresService + DataMapperWorkspaces *ProjectsLocationsDatasetsDataMapperWorkspacesService + DicomStores *ProjectsLocationsDatasetsDicomStoresService FhirStores *ProjectsLocationsDatasetsFhirStoresService @@ -272,6 +275,15 @@ type ProjectsLocationsDatasetsConsentStoresUserDataMappingsService struct { s *Service } +func NewProjectsLocationsDatasetsDataMapperWorkspacesService(s *Service) *ProjectsLocationsDatasetsDataMapperWorkspacesService { + rs := &ProjectsLocationsDatasetsDataMapperWorkspacesService{s: s} + return rs +} + +type ProjectsLocationsDatasetsDataMapperWorkspacesService struct { + s *Service +} + func NewProjectsLocationsDatasetsDicomStoresService(s *Service) *ProjectsLocationsDatasetsDicomStoresService { rs := &ProjectsLocationsDatasetsDicomStoresService{s: s} rs.DicomWeb = NewProjectsLocationsDatasetsDicomStoresDicomWebService(s) @@ -14464,6 +14476,481 @@ func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall) Do(opt } +// method id "healthcare.projects.locations.datasets.dataMapperWorkspaces.getIamPolicy": + +type ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsDatasetsDataMapperWorkspacesService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall { + c := &ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that +// will be used to format the policy. Valid values are 0, 1, and 3. +// Requests specifying an invalid value will be rejected. Requests for +// policies with any conditional role bindings must specify version 3. +// Policies with no conditional role bindings may specify any valid +// value or leave the field unset. The policy in the response might use +// the policy version that you specified, or it might use a lower policy +// version. For example, if you specify version 3, but the policy has no +// conditional role bindings, the response uses version 1. To learn +// which resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + 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 *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall { + 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 *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall { + 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 *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall { + 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 *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) 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/{+resource}:getIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "healthcare.projects.locations.datasets.dataMapperWorkspaces.getIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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 := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataMapperWorkspaces/{dataMapperWorkspacesId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "healthcare.projects.locations.datasets.dataMapperWorkspaces.getIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "options.requestedPolicyVersion": { + // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataMapperWorkspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:getIamPolicy", + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-healthcare", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "healthcare.projects.locations.datasets.dataMapperWorkspaces.setIamPolicy": + +type ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsDatasetsDataMapperWorkspacesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall { + c := &ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + 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 *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall { + 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 *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall { + 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 *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall) 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.setiampolicyrequest) + 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/{+resource}:setIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "healthcare.projects.locations.datasets.dataMapperWorkspaces.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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 := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataMapperWorkspaces/{dataMapperWorkspacesId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "healthcare.projects.locations.datasets.dataMapperWorkspaces.setIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataMapperWorkspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-healthcare", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "healthcare.projects.locations.datasets.dataMapperWorkspaces.testIamPermissions": + +type ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsDatasetsDataMapperWorkspacesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall { + c := &ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + 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 *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall { + 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 *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall { + 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 *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall) 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.testiampermissionsrequest) + 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/{+resource}:testIamPermissions") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "healthcare.projects.locations.datasets.dataMapperWorkspaces.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.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 *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, 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 := &TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataMapperWorkspaces/{dataMapperWorkspacesId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "healthcare.projects.locations.datasets.dataMapperWorkspaces.testIamPermissions", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataMapperWorkspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-healthcare", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "healthcare.projects.locations.datasets.dicomStores.create": type ProjectsLocationsDatasetsDicomStoresCreateCall struct { diff --git a/healthcare/v1beta1/healthcare-api.json b/healthcare/v1beta1/healthcare-api.json index f9ee2a492f6..4d76667c2c0 100644 --- a/healthcare/v1beta1/healthcare-api.json +++ b/healthcare/v1beta1/healthcare-api.json @@ -2134,6 +2134,100 @@ } } }, + "dataMapperWorkspaces": { + "methods": { + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataMapperWorkspaces/{dataMapperWorkspacesId}:getIamPolicy", + "httpMethod": "GET", + "id": "healthcare.projects.locations.datasets.dataMapperWorkspaces.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataMapperWorkspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-healthcare", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataMapperWorkspaces/{dataMapperWorkspacesId}:setIamPolicy", + "httpMethod": "POST", + "id": "healthcare.projects.locations.datasets.dataMapperWorkspaces.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataMapperWorkspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-healthcare", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataMapperWorkspaces/{dataMapperWorkspacesId}:testIamPermissions", + "httpMethod": "POST", + "id": "healthcare.projects.locations.datasets.dataMapperWorkspaces.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataMapperWorkspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-healthcare", + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "dicomStores": { "methods": { "create": { @@ -5520,7 +5614,7 @@ } } }, - "revision": "20240206", + "revision": "20240220", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "AccessDeterminationLogConfig": { diff --git a/healthcare/v1beta1/healthcare-gen.go b/healthcare/v1beta1/healthcare-gen.go index 9eb3b1d7212..ba1b06768f4 100644 --- a/healthcare/v1beta1/healthcare-gen.go +++ b/healthcare/v1beta1/healthcare-gen.go @@ -195,6 +195,7 @@ func NewProjectsLocationsDatasetsService(s *Service) *ProjectsLocationsDatasetsS rs := &ProjectsLocationsDatasetsService{s: s} rs.AnnotationStores = NewProjectsLocationsDatasetsAnnotationStoresService(s) rs.ConsentStores = NewProjectsLocationsDatasetsConsentStoresService(s) + rs.DataMapperWorkspaces = NewProjectsLocationsDatasetsDataMapperWorkspacesService(s) rs.DicomStores = NewProjectsLocationsDatasetsDicomStoresService(s) rs.FhirStores = NewProjectsLocationsDatasetsFhirStoresService(s) rs.Hl7V2Stores = NewProjectsLocationsDatasetsHl7V2StoresService(s) @@ -209,6 +210,8 @@ type ProjectsLocationsDatasetsService struct { ConsentStores *ProjectsLocationsDatasetsConsentStoresService + DataMapperWorkspaces *ProjectsLocationsDatasetsDataMapperWorkspacesService + DicomStores *ProjectsLocationsDatasetsDicomStoresService FhirStores *ProjectsLocationsDatasetsFhirStoresService @@ -296,6 +299,15 @@ type ProjectsLocationsDatasetsConsentStoresUserDataMappingsService struct { s *Service } +func NewProjectsLocationsDatasetsDataMapperWorkspacesService(s *Service) *ProjectsLocationsDatasetsDataMapperWorkspacesService { + rs := &ProjectsLocationsDatasetsDataMapperWorkspacesService{s: s} + return rs +} + +type ProjectsLocationsDatasetsDataMapperWorkspacesService struct { + s *Service +} + func NewProjectsLocationsDatasetsDicomStoresService(s *Service) *ProjectsLocationsDatasetsDicomStoresService { rs := &ProjectsLocationsDatasetsDicomStoresService{s: s} rs.DicomWeb = NewProjectsLocationsDatasetsDicomStoresDicomWebService(s) @@ -19691,6 +19703,481 @@ func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall) Do(opt } +// method id "healthcare.projects.locations.datasets.dataMapperWorkspaces.getIamPolicy": + +type ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsDatasetsDataMapperWorkspacesService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall { + c := &ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that +// will be used to format the policy. Valid values are 0, 1, and 3. +// Requests specifying an invalid value will be rejected. Requests for +// policies with any conditional role bindings must specify version 3. +// Policies with no conditional role bindings may specify any valid +// value or leave the field unset. The policy in the response might use +// the policy version that you specified, or it might use a lower policy +// version. For example, if you specify version 3, but the policy has no +// conditional role bindings, the response uses version 1. To learn +// which resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + 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 *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall { + 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 *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall { + 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 *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall { + 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 *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) 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, "v1beta1/{+resource}:getIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "healthcare.projects.locations.datasets.dataMapperWorkspaces.getIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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 := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataMapperWorkspaces/{dataMapperWorkspacesId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "healthcare.projects.locations.datasets.dataMapperWorkspaces.getIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "options.requestedPolicyVersion": { + // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataMapperWorkspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:getIamPolicy", + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-healthcare", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "healthcare.projects.locations.datasets.dataMapperWorkspaces.setIamPolicy": + +type ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsDatasetsDataMapperWorkspacesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall { + c := &ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + 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 *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall { + 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 *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall { + 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 *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall) 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.setiampolicyrequest) + 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, "v1beta1/{+resource}:setIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "healthcare.projects.locations.datasets.dataMapperWorkspaces.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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 := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataMapperWorkspaces/{dataMapperWorkspacesId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "healthcare.projects.locations.datasets.dataMapperWorkspaces.setIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataMapperWorkspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-healthcare", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "healthcare.projects.locations.datasets.dataMapperWorkspaces.testIamPermissions": + +type ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsDatasetsDataMapperWorkspacesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall { + c := &ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + 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 *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall { + 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 *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall { + 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 *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall) 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.testiampermissionsrequest) + 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, "v1beta1/{+resource}:testIamPermissions") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "healthcare.projects.locations.datasets.dataMapperWorkspaces.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.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 *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, 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 := &TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataMapperWorkspaces/{dataMapperWorkspacesId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "healthcare.projects.locations.datasets.dataMapperWorkspaces.testIamPermissions", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataMapperWorkspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-healthcare", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "healthcare.projects.locations.datasets.dicomStores.create": type ProjectsLocationsDatasetsDicomStoresCreateCall struct { diff --git a/policysimulator/v1/policysimulator-api.json b/policysimulator/v1/policysimulator-api.json index 4acf3d3dcd8..2cd07639ce1 100644 --- a/policysimulator/v1/policysimulator-api.json +++ b/policysimulator/v1/policysimulator-api.json @@ -109,6 +109,39 @@ "resources": { "locations": { "resources": { + "orgPolicyViolationsPreviews": { + "resources": { + "operations": { + "methods": { + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreviewsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "policysimulator.folders.locations.orgPolicyViolationsPreviews.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^folders/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+/operations/.*$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, "replays": { "methods": { "create": { @@ -454,6 +487,35 @@ } }, "resources": { + "operations": { + "methods": { + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreviewsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "policysimulator.organizations.locations.orgPolicyViolationsPreviews.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+/operations/.*$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "orgPolicyViolations": { "methods": { "list": { @@ -673,6 +735,39 @@ "resources": { "locations": { "resources": { + "orgPolicyViolationsPreviews": { + "resources": { + "operations": { + "methods": { + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreviewsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "policysimulator.projects.locations.orgPolicyViolationsPreviews.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+/operations/.*$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, "replays": { "methods": { "create": { @@ -847,7 +942,7 @@ } } }, - "revision": "20240218", + "revision": "20240225", "rootUrl": "https://policysimulator.googleapis.com/", "schemas": { "GoogleCloudOrgpolicyV2AlternatePolicySpec": { diff --git a/policysimulator/v1/policysimulator-gen.go b/policysimulator/v1/policysimulator-gen.go index f4523941a72..a943aab13d1 100644 --- a/policysimulator/v1/policysimulator-gen.go +++ b/policysimulator/v1/policysimulator-gen.go @@ -178,6 +178,7 @@ type FoldersService struct { func NewFoldersLocationsService(s *Service) *FoldersLocationsService { rs := &FoldersLocationsService{s: s} + rs.OrgPolicyViolationsPreviews = NewFoldersLocationsOrgPolicyViolationsPreviewsService(s) rs.Replays = NewFoldersLocationsReplaysService(s) return rs } @@ -185,9 +186,32 @@ func NewFoldersLocationsService(s *Service) *FoldersLocationsService { type FoldersLocationsService struct { s *Service + OrgPolicyViolationsPreviews *FoldersLocationsOrgPolicyViolationsPreviewsService + Replays *FoldersLocationsReplaysService } +func NewFoldersLocationsOrgPolicyViolationsPreviewsService(s *Service) *FoldersLocationsOrgPolicyViolationsPreviewsService { + rs := &FoldersLocationsOrgPolicyViolationsPreviewsService{s: s} + rs.Operations = NewFoldersLocationsOrgPolicyViolationsPreviewsOperationsService(s) + return rs +} + +type FoldersLocationsOrgPolicyViolationsPreviewsService struct { + s *Service + + Operations *FoldersLocationsOrgPolicyViolationsPreviewsOperationsService +} + +func NewFoldersLocationsOrgPolicyViolationsPreviewsOperationsService(s *Service) *FoldersLocationsOrgPolicyViolationsPreviewsOperationsService { + rs := &FoldersLocationsOrgPolicyViolationsPreviewsOperationsService{s: s} + return rs +} + +type FoldersLocationsOrgPolicyViolationsPreviewsOperationsService struct { + s *Service +} + func NewFoldersLocationsReplaysService(s *Service) *FoldersLocationsReplaysService { rs := &FoldersLocationsReplaysService{s: s} rs.Operations = NewFoldersLocationsReplaysOperationsService(s) @@ -259,6 +283,7 @@ type OrganizationsLocationsService struct { func NewOrganizationsLocationsOrgPolicyViolationsPreviewsService(s *Service) *OrganizationsLocationsOrgPolicyViolationsPreviewsService { rs := &OrganizationsLocationsOrgPolicyViolationsPreviewsService{s: s} + rs.Operations = NewOrganizationsLocationsOrgPolicyViolationsPreviewsOperationsService(s) rs.OrgPolicyViolations = NewOrganizationsLocationsOrgPolicyViolationsPreviewsOrgPolicyViolationsService(s) return rs } @@ -266,9 +291,20 @@ func NewOrganizationsLocationsOrgPolicyViolationsPreviewsService(s *Service) *Or type OrganizationsLocationsOrgPolicyViolationsPreviewsService struct { s *Service + Operations *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsService + OrgPolicyViolations *OrganizationsLocationsOrgPolicyViolationsPreviewsOrgPolicyViolationsService } +func NewOrganizationsLocationsOrgPolicyViolationsPreviewsOperationsService(s *Service) *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsService { + rs := &OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsService{s: s} + return rs +} + +type OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsService struct { + s *Service +} + func NewOrganizationsLocationsOrgPolicyViolationsPreviewsOrgPolicyViolationsService(s *Service) *OrganizationsLocationsOrgPolicyViolationsPreviewsOrgPolicyViolationsService { rs := &OrganizationsLocationsOrgPolicyViolationsPreviewsOrgPolicyViolationsService{s: s} return rs @@ -325,6 +361,7 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} + rs.OrgPolicyViolationsPreviews = NewProjectsLocationsOrgPolicyViolationsPreviewsService(s) rs.Replays = NewProjectsLocationsReplaysService(s) return rs } @@ -332,9 +369,32 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { type ProjectsLocationsService struct { s *Service + OrgPolicyViolationsPreviews *ProjectsLocationsOrgPolicyViolationsPreviewsService + Replays *ProjectsLocationsReplaysService } +func NewProjectsLocationsOrgPolicyViolationsPreviewsService(s *Service) *ProjectsLocationsOrgPolicyViolationsPreviewsService { + rs := &ProjectsLocationsOrgPolicyViolationsPreviewsService{s: s} + rs.Operations = NewProjectsLocationsOrgPolicyViolationsPreviewsOperationsService(s) + return rs +} + +type ProjectsLocationsOrgPolicyViolationsPreviewsService struct { + s *Service + + Operations *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsService +} + +func NewProjectsLocationsOrgPolicyViolationsPreviewsOperationsService(s *Service) *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsService { + rs := &ProjectsLocationsOrgPolicyViolationsPreviewsOperationsService{s: s} + return rs +} + +type ProjectsLocationsOrgPolicyViolationsPreviewsOperationsService struct { + s *Service +} + func NewProjectsLocationsReplaysService(s *Service) *ProjectsLocationsReplaysService { rs := &ProjectsLocationsReplaysService{s: s} rs.Operations = NewProjectsLocationsReplaysOperationsService(s) @@ -3136,6 +3196,154 @@ func (s *GoogleTypeExpr) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// method id "policysimulator.folders.locations.orgPolicyViolationsPreviews.operations.get": + +type FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +// +// - name: The name of the operation resource. +func (r *FoldersLocationsOrgPolicyViolationsPreviewsOperationsService) Get(name string) *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall { + c := &FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall{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 *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Fields(s ...googleapi.Field) *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall { + 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 *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall) IfNoneMatch(entityTag string) *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall { + 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 *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Context(ctx context.Context) *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall { + 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 *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall) 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 "policysimulator.folders.locations.orgPolicyViolationsPreviews.operations.get" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreviewsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "policysimulator.folders.locations.orgPolicyViolationsPreviews.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^folders/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+/operations/.*$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "policysimulator.folders.locations.replays.create": type FoldersLocationsReplaysCreateCall struct { @@ -4862,6 +5070,154 @@ func (c *OrganizationsLocationsOrgPolicyViolationsPreviewsListCall) Pages(ctx co } } +// method id "policysimulator.organizations.locations.orgPolicyViolationsPreviews.operations.get": + +type OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +// +// - name: The name of the operation resource. +func (r *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsService) Get(name string) *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall { + c := &OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall{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 *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall { + 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 *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall { + 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 *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Context(ctx context.Context) *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall { + 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 *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) 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 "policysimulator.organizations.locations.orgPolicyViolationsPreviews.operations.get" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreviewsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "policysimulator.organizations.locations.orgPolicyViolationsPreviews.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+/operations/.*$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "policysimulator.organizations.locations.orgPolicyViolationsPreviews.orgPolicyViolations.list": type OrganizationsLocationsOrgPolicyViolationsPreviewsOrgPolicyViolationsListCall struct { @@ -5920,6 +6276,154 @@ func (c *OrganizationsLocationsReplaysResultsListCall) Pages(ctx context.Context } } +// method id "policysimulator.projects.locations.orgPolicyViolationsPreviews.operations.get": + +type ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +// +// - name: The name of the operation resource. +func (r *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsService) Get(name string) *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall { + c := &ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall{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 *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall { + 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 *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall { + 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 *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall { + 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 *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) 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 "policysimulator.projects.locations.orgPolicyViolationsPreviews.operations.get" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreviewsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "policysimulator.projects.locations.orgPolicyViolationsPreviews.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+/operations/.*$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "policysimulator.projects.locations.replays.create": type ProjectsLocationsReplaysCreateCall struct { diff --git a/securitycenter/v1/securitycenter-api.json b/securitycenter/v1/securitycenter-api.json index 263e50d89a7..d89c831ec62 100644 --- a/securitycenter/v1/securitycenter-api.json +++ b/securitycenter/v1/securitycenter-api.json @@ -5820,7 +5820,7 @@ } } }, - "revision": "20240213", + "revision": "20240226", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -5917,11 +5917,11 @@ "id": "Application", "properties": { "baseUri": { - "description": "The base URI that identifies the network location of the application in which the vulnerability was detected. Examples: http://11.22.33.44, http://foo.com, http://11.22.33.44:8080", + "description": "The base URI that identifies the network location of the application in which the vulnerability was detected. For example, `http://example.com`.", "type": "string" }, "fullUri": { - "description": "The full URI with payload that can be used to reproduce the vulnerability. Example: http://11.22.33.44/reflected/parameter/attribute/singlequoted/js?p=aMmYgI6H", + "description": "The full URI with payload that can be used to reproduce the vulnerability. For example, `http://example.com?p=aMmYgI6H`.", "type": "string" } }, @@ -6230,11 +6230,11 @@ "id": "BackupDisasterRecovery", "properties": { "appliance": { - "description": "The name of the Backup and DR appliance that captures, moves, and manages the lifecycle of backup data. For example, “backup-server-57137”.", + "description": "The name of the Backup and DR appliance that captures, moves, and manages the lifecycle of backup data. For example, `backup-server-57137`.", "type": "string" }, "applications": { - "description": "The names of Backup and DR applications. An application is a VM, database, or file system on a managed host monitored by a backup and recovery appliance. For example, “centos7-01-vol00”, “centos7-01-vol01”, “centos7-01-vol02”.", + "description": "The names of Backup and DR applications. An application is a VM, database, or file system on a managed host monitored by a backup and recovery appliance. For example, `centos7-01-vol00`, `centos7-01-vol01`, `centos7-01-vol02`.", "items": { "type": "string" }, @@ -6246,37 +6246,37 @@ "type": "string" }, "backupTemplate": { - "description": "The name of a Backup and DR template which comprises one or more backup policies. See the [Backup and DR documentation](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp) for more information. For example, “snap-ov”.", + "description": "The name of a Backup and DR template which comprises one or more backup policies. See the [Backup and DR documentation](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp) for more information. For example, `snap-ov`.", "type": "string" }, "backupType": { - "description": "The backup type of the Backup and DR image. For example, “Snapshot”, “Remote Snapshot”, “OnVault”.", + "description": "The backup type of the Backup and DR image. For example, `Snapshot`, `Remote Snapshot`, `OnVault`.", "type": "string" }, "host": { - "description": "The name of a Backup and DR host, which is managed by the backup and recovery appliance and known to the management console. The host can be of type Generic (for example, Compute Engine, SQL Server, Oracle DB, SMB file system, etc.), vCenter, or an ESX server. See the [Backup and DR documentation on hosts](https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications) for more information. For example, “centos7-01”.", + "description": "The name of a Backup and DR host, which is managed by the backup and recovery appliance and known to the management console. The host can be of type Generic (for example, Compute Engine, SQL Server, Oracle DB, SMB file system, etc.), vCenter, or an ESX server. See the [Backup and DR documentation on hosts](https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications) for more information. For example, `centos7-01`.", "type": "string" }, "policies": { - "description": "The names of Backup and DR policies that are associated with a template and that define when to run a backup, how frequently to run a backup, and how long to retain the backup image. For example, “onvaults”.", + "description": "The names of Backup and DR policies that are associated with a template and that define when to run a backup, how frequently to run a backup, and how long to retain the backup image. For example, `onvaults`.", "items": { "type": "string" }, "type": "array" }, "policyOptions": { - "description": "The names of Backup and DR advanced policy options of a policy applying to an application. See the [Backup and DR documentation on policy options](https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings). For example, “skipofflineappsincongrp, nounmap”.", + "description": "The names of Backup and DR advanced policy options of a policy applying to an application. See the [Backup and DR documentation on policy options](https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings). For example, `skipofflineappsincongrp, nounmap`.", "items": { "type": "string" }, "type": "array" }, "profile": { - "description": "The name of the Backup and DR resource profile that specifies the storage media for backups of application and VM data. See the [Backup and DR documentation on profiles](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile). For example, “GCP”.", + "description": "The name of the Backup and DR resource profile that specifies the storage media for backups of application and VM data. See the [Backup and DR documentation on profiles](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile). For example, `GCP`.", "type": "string" }, "storagePool": { - "description": "The name of the Backup and DR storage pool that the backup and recovery appliance is storing data in. The storage pool could be of type Cloud, Primary, Snapshot, or OnVault. See the [Backup and DR documentation on storage pools](https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools). For example, “DiskPoolOne”.", + "description": "The name of the Backup and DR storage pool that the backup and recovery appliance is storing data in. The storage pool could be of type Cloud, Primary, Snapshot, or OnVault. See the [Backup and DR documentation on storage pools](https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools). For example, `DiskPoolOne`.", "type": "string" } }, @@ -7666,6 +7666,16 @@ }, "type": "array" }, + "caseCloseTime": { + "description": "The time when the case was closed, as reported by the external system.", + "format": "google-datetime", + "type": "string" + }, + "caseCreateTime": { + "description": "The time when the case was created, as reported by the external system.", + "format": "google-datetime", + "type": "string" + }, "casePriority": { "description": "The priority of the finding's corresponding case in the external system.", "type": "string" @@ -8354,11 +8364,11 @@ "id": "GoogleCloudSecuritycenterV2Application", "properties": { "baseUri": { - "description": "The base URI that identifies the network location of the application in which the vulnerability was detected. Examples: http://11.22.33.44, http://foo.com, http://11.22.33.44:8080", + "description": "The base URI that identifies the network location of the application in which the vulnerability was detected. For example, `http://example.com`.", "type": "string" }, "fullUri": { - "description": "The full URI with payload that could be used to reproduce the vulnerability. Example: http://11.22.33.44/reflected/parameter/attribute/singlequoted/js?p=aMmYgI6H", + "description": "The full URI with payload that could be used to reproduce the vulnerability. For example, `http://example.com?p=aMmYgI6H`.", "type": "string" } }, @@ -8420,11 +8430,11 @@ "id": "GoogleCloudSecuritycenterV2BackupDisasterRecovery", "properties": { "appliance": { - "description": "The name of the Backup and DR appliance that captures, moves, and manages the lifecycle of backup data. For example, “backup-server-57137”.", + "description": "The name of the Backup and DR appliance that captures, moves, and manages the lifecycle of backup data. For example, `backup-server-57137`.", "type": "string" }, "applications": { - "description": "The names of Backup and DR applications. An application is a VM, database, or file system on a managed host monitored by a backup and recovery appliance. For example, “centos7-01-vol00”, “centos7-01-vol01”, “centos7-01-vol02”.", + "description": "The names of Backup and DR applications. An application is a VM, database, or file system on a managed host monitored by a backup and recovery appliance. For example, `centos7-01-vol00`, `centos7-01-vol01`, `centos7-01-vol02`.", "items": { "type": "string" }, @@ -8436,37 +8446,37 @@ "type": "string" }, "backupTemplate": { - "description": "The name of a Backup and DR template which comprises one or more backup policies. See the [Backup and DR documentation](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp) for more information. For example, “snap-ov”.", + "description": "The name of a Backup and DR template which comprises one or more backup policies. See the [Backup and DR documentation](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp) for more information. For example, `snap-ov`.", "type": "string" }, "backupType": { - "description": "The backup type of the Backup and DR image. For example, “Snapshot”, “Remote Snapshot”, “OnVault”.", + "description": "The backup type of the Backup and DR image. For example, `Snapshot`, `Remote Snapshot`, `OnVault`.", "type": "string" }, "host": { - "description": "The name of a Backup and DR host, which is managed by the backup and recovery appliance and known to the management console. The host can be of type Generic (for example, Compute Engine, SQL Server, Oracle DB, SMB file system, etc.), vCenter, or an ESX server. See the [Backup and DR documentation on hosts](https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications) for more information. For example, “centos7-01”.", + "description": "The name of a Backup and DR host, which is managed by the backup and recovery appliance and known to the management console. The host can be of type Generic (for example, Compute Engine, SQL Server, Oracle DB, SMB file system, etc.), vCenter, or an ESX server. See the [Backup and DR documentation on hosts](https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications) for more information. For example, `centos7-01`.", "type": "string" }, "policies": { - "description": "The names of Backup and DR policies that are associated with a template and that define when to run a backup, how frequently to run a backup, and how long to retain the backup image. For example, “onvaults”.", + "description": "The names of Backup and DR policies that are associated with a template and that define when to run a backup, how frequently to run a backup, and how long to retain the backup image. For example, `onvaults`.", "items": { "type": "string" }, "type": "array" }, "policyOptions": { - "description": "The names of Backup and DR advanced policy options of a policy applying to an application. See the [Backup and DR documentation on policy options](https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings). For example, “skipofflineappsincongrp, nounmap”.", + "description": "The names of Backup and DR advanced policy options of a policy applying to an application. See the [Backup and DR documentation on policy options](https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings). For example, `skipofflineappsincongrp, nounmap`.", "items": { "type": "string" }, "type": "array" }, "profile": { - "description": "The name of the Backup and DR resource profile that specifies the storage media for backups of application and VM data. See the [Backup and DR documentation on profiles](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile). For example, “GCP”.", + "description": "The name of the Backup and DR resource profile that specifies the storage media for backups of application and VM data. See the [Backup and DR documentation on profiles](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile). For example, `GCP`.", "type": "string" }, "storagePool": { - "description": "The name of the Backup and DR storage pool that the backup and recovery appliance is storing data in. The storage pool could be of type Cloud, Primary, Snapshot, or OnVault. See the [Backup and DR documentation on storage pools](https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools). For example, “DiskPoolOne”.", + "description": "The name of the Backup and DR storage pool that the backup and recovery appliance is storing data in. The storage pool could be of type Cloud, Primary, Snapshot, or OnVault. See the [Backup and DR documentation on storage pools](https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools). For example, `DiskPoolOne`.", "type": "string" } }, @@ -9088,6 +9098,16 @@ }, "type": "array" }, + "caseCloseTime": { + "description": "The time when the case was closed, as reported by the external system.", + "format": "google-datetime", + "type": "string" + }, + "caseCreateTime": { + "description": "The time when the case was created, as reported by the external system.", + "format": "google-datetime", + "type": "string" + }, "casePriority": { "description": "The priority of the finding's corresponding case in the external system.", "type": "string" @@ -10221,11 +10241,11 @@ "id": "GoogleCloudSecuritycenterV2PolicyDriftDetails", "properties": { "detectedValue": { - "description": "The detected value that violates the deployed posture, for example, `false` or `allowed_values={\"projects/22831892”}`.", + "description": "The detected value that violates the deployed posture, for example, `false` or `allowed_values={\"projects/22831892\"}`.", "type": "string" }, "expectedValue": { - "description": "The value of this field that was configured in a posture, for example, `true` or `allowed_values={\"projects/29831892”}`.", + "description": "The value of this field that was configured in a posture, for example, `true` or `allowed_values={\"projects/29831892\"}`.", "type": "string" }, "field": { @@ -12044,15 +12064,15 @@ "type": "object" }, "PolicyDriftDetails": { - "description": "The policy field that violates the deployed posture and its expected and and detected values.", + "description": "The policy field that violates the deployed posture and its expected and detected values.", "id": "PolicyDriftDetails", "properties": { "detectedValue": { - "description": "The detected value that violates the deployed posture, for example, `false` or `allowed_values={\"projects/22831892”}`.", + "description": "The detected value that violates the deployed posture, for example, `false` or `allowed_values={\"projects/22831892\"}`.", "type": "string" }, "expectedValue": { - "description": "The value of this field that was configured in a posture, for example, `true` or `allowed_values={\"projects/29831892”}`.", + "description": "The value of this field that was configured in a posture, for example, `true` or `allowed_values={\"projects/29831892\"}`.", "type": "string" }, "field": { diff --git a/securitycenter/v1/securitycenter-gen.go b/securitycenter/v1/securitycenter-gen.go index fee56ed4ca5..1f8ca1c1e84 100644 --- a/securitycenter/v1/securitycenter-gen.go +++ b/securitycenter/v1/securitycenter-gen.go @@ -1019,13 +1019,12 @@ func (s *AccessReview) MarshalJSON() ([]byte, error) { // Application: Represents an application associated with a finding. type Application struct { // BaseUri: The base URI that identifies the network location of the - // application in which the vulnerability was detected. Examples: - // http://11.22.33.44, http://foo.com, http://11.22.33.44:8080 + // application in which the vulnerability was detected. For example, + // `http://example.com`. BaseUri string `json:"baseUri,omitempty"` // FullUri: The full URI with payload that can be used to reproduce the - // vulnerability. Example: - // http://11.22.33.44/reflected/parameter/attribute/singlequoted/js?p=aMmYgI6H + // vulnerability. For example, `http://example.com?p=aMmYgI6H`. FullUri string `json:"fullUri,omitempty"` // ForceSendFields is a list of field names (e.g. "BaseUri") to @@ -1513,13 +1512,13 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { type BackupDisasterRecovery struct { // Appliance: The name of the Backup and DR appliance that captures, // moves, and manages the lifecycle of backup data. For example, - // “backup-server-57137”. + // `backup-server-57137`. Appliance string `json:"appliance,omitempty"` // Applications: The names of Backup and DR applications. An application // is a VM, database, or file system on a managed host monitored by a - // backup and recovery appliance. For example, “centos7-01-vol00”, - // “centos7-01-vol01”, “centos7-01-vol02”. + // backup and recovery appliance. For example, `centos7-01-vol00`, + // `centos7-01-vol01`, `centos7-01-vol02`. Applications []string `json:"applications,omitempty"` // BackupCreateTime: The timestamp at which the Backup and DR backup was @@ -1529,11 +1528,11 @@ type BackupDisasterRecovery struct { // BackupTemplate: The name of a Backup and DR template which comprises // one or more backup policies. See the Backup and DR documentation // (https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp) - // for more information. For example, “snap-ov”. + // for more information. For example, `snap-ov`. BackupTemplate string `json:"backupTemplate,omitempty"` // BackupType: The backup type of the Backup and DR image. For example, - // “Snapshot”, “Remote Snapshot”, “OnVault”. + // `Snapshot`, `Remote Snapshot`, `OnVault`. BackupType string `json:"backupType,omitempty"` // Host: The name of a Backup and DR host, which is managed by the @@ -1542,27 +1541,27 @@ type BackupDisasterRecovery struct { // Server, Oracle DB, SMB file system, etc.), vCenter, or an ESX server. // See the Backup and DR documentation on hosts // (https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications) - // for more information. For example, “centos7-01”. + // for more information. For example, `centos7-01`. Host string `json:"host,omitempty"` // Policies: The names of Backup and DR policies that are associated // with a template and that define when to run a backup, how frequently // to run a backup, and how long to retain the backup image. For - // example, “onvaults”. + // example, `onvaults`. Policies []string `json:"policies,omitempty"` // PolicyOptions: The names of Backup and DR advanced policy options of // a policy applying to an application. See the Backup and DR // documentation on policy options // (https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings). - // For example, “skipofflineappsincongrp, nounmap”. + // For example, `skipofflineappsincongrp, nounmap`. PolicyOptions []string `json:"policyOptions,omitempty"` // Profile: The name of the Backup and DR resource profile that // specifies the storage media for backups of application and VM data. // See the Backup and DR documentation on profiles // (https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile). - // For example, “GCP”. + // For example, `GCP`. Profile string `json:"profile,omitempty"` // StoragePool: The name of the Backup and DR storage pool that the @@ -1570,7 +1569,7 @@ type BackupDisasterRecovery struct { // could be of type Cloud, Primary, Snapshot, or OnVault. See the Backup // and DR documentation on storage pools // (https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools). - // For example, “DiskPoolOne”. + // For example, `DiskPoolOne`. StoragePool string `json:"storagePool,omitempty"` // ForceSendFields is a list of field names (e.g. "Appliance") to @@ -3799,6 +3798,14 @@ type GoogleCloudSecuritycenterV1ExternalSystem struct { // system. Assignees []string `json:"assignees,omitempty"` + // CaseCloseTime: The time when the case was closed, as reported by the + // external system. + CaseCloseTime string `json:"caseCloseTime,omitempty"` + + // CaseCreateTime: The time when the case was created, as reported by + // the external system. + CaseCreateTime string `json:"caseCreateTime,omitempty"` + // CasePriority: The priority of the finding's corresponding case in the // external system. CasePriority string `json:"casePriority,omitempty"` @@ -4877,13 +4884,12 @@ func (s *GoogleCloudSecuritycenterV2AccessReview) MarshalJSON() ([]byte, error) // associated with a finding. type GoogleCloudSecuritycenterV2Application struct { // BaseUri: The base URI that identifies the network location of the - // application in which the vulnerability was detected. Examples: - // http://11.22.33.44, http://foo.com, http://11.22.33.44:8080 + // application in which the vulnerability was detected. For example, + // `http://example.com`. BaseUri string `json:"baseUri,omitempty"` // FullUri: The full URI with payload that could be used to reproduce - // the vulnerability. Example: - // http://11.22.33.44/reflected/parameter/attribute/singlequoted/js?p=aMmYgI6H + // the vulnerability. For example, `http://example.com?p=aMmYgI6H`. FullUri string `json:"fullUri,omitempty"` // ForceSendFields is a list of field names (e.g. "BaseUri") to @@ -4993,13 +4999,13 @@ func (s *GoogleCloudSecuritycenterV2AttackExposure) UnmarshalJSON(data []byte) e type GoogleCloudSecuritycenterV2BackupDisasterRecovery struct { // Appliance: The name of the Backup and DR appliance that captures, // moves, and manages the lifecycle of backup data. For example, - // “backup-server-57137”. + // `backup-server-57137`. Appliance string `json:"appliance,omitempty"` // Applications: The names of Backup and DR applications. An application // is a VM, database, or file system on a managed host monitored by a - // backup and recovery appliance. For example, “centos7-01-vol00”, - // “centos7-01-vol01”, “centos7-01-vol02”. + // backup and recovery appliance. For example, `centos7-01-vol00`, + // `centos7-01-vol01`, `centos7-01-vol02`. Applications []string `json:"applications,omitempty"` // BackupCreateTime: The timestamp at which the Backup and DR backup was @@ -5009,11 +5015,11 @@ type GoogleCloudSecuritycenterV2BackupDisasterRecovery struct { // BackupTemplate: The name of a Backup and DR template which comprises // one or more backup policies. See the Backup and DR documentation // (https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp) - // for more information. For example, “snap-ov”. + // for more information. For example, `snap-ov`. BackupTemplate string `json:"backupTemplate,omitempty"` // BackupType: The backup type of the Backup and DR image. For example, - // “Snapshot”, “Remote Snapshot”, “OnVault”. + // `Snapshot`, `Remote Snapshot`, `OnVault`. BackupType string `json:"backupType,omitempty"` // Host: The name of a Backup and DR host, which is managed by the @@ -5022,27 +5028,27 @@ type GoogleCloudSecuritycenterV2BackupDisasterRecovery struct { // Server, Oracle DB, SMB file system, etc.), vCenter, or an ESX server. // See the Backup and DR documentation on hosts // (https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications) - // for more information. For example, “centos7-01”. + // for more information. For example, `centos7-01`. Host string `json:"host,omitempty"` // Policies: The names of Backup and DR policies that are associated // with a template and that define when to run a backup, how frequently // to run a backup, and how long to retain the backup image. For - // example, “onvaults”. + // example, `onvaults`. Policies []string `json:"policies,omitempty"` // PolicyOptions: The names of Backup and DR advanced policy options of // a policy applying to an application. See the Backup and DR // documentation on policy options // (https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings). - // For example, “skipofflineappsincongrp, nounmap”. + // For example, `skipofflineappsincongrp, nounmap`. PolicyOptions []string `json:"policyOptions,omitempty"` // Profile: The name of the Backup and DR resource profile that // specifies the storage media for backups of application and VM data. // See the Backup and DR documentation on profiles // (https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile). - // For example, “GCP”. + // For example, `GCP`. Profile string `json:"profile,omitempty"` // StoragePool: The name of the Backup and DR storage pool that the @@ -5050,7 +5056,7 @@ type GoogleCloudSecuritycenterV2BackupDisasterRecovery struct { // could be of type Cloud, Primary, Snapshot, or OnVault. See the Backup // and DR documentation on storage pools // (https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools). - // For example, “DiskPoolOne”. + // For example, `DiskPoolOne`. StoragePool string `json:"storagePool,omitempty"` // ForceSendFields is a list of field names (e.g. "Appliance") to @@ -6022,6 +6028,14 @@ type GoogleCloudSecuritycenterV2ExternalSystem struct { // system. Assignees []string `json:"assignees,omitempty"` + // CaseCloseTime: The time when the case was closed, as reported by the + // external system. + CaseCloseTime string `json:"caseCloseTime,omitempty"` + + // CaseCreateTime: The time when the case was created, as reported by + // the external system. + CaseCreateTime string `json:"caseCreateTime,omitempty"` + // CasePriority: The priority of the finding's corresponding case in the // external system. CasePriority string `json:"casePriority,omitempty"` @@ -7376,12 +7390,12 @@ func (s *GoogleCloudSecuritycenterV2Pod) MarshalJSON() ([]byte, error) { // violates the deployed posture and its expected and detected values. type GoogleCloudSecuritycenterV2PolicyDriftDetails struct { // DetectedValue: The detected value that violates the deployed posture, - // for example, `false` or `allowed_values={"projects/22831892”}`. + // for example, `false` or `allowed_values={"projects/22831892"}`. DetectedValue string `json:"detectedValue,omitempty"` // ExpectedValue: The value of this field that was configured in a // posture, for example, `true` or - // `allowed_values={"projects/29831892”}`. + // `allowed_values={"projects/29831892"}`. ExpectedValue string `json:"expectedValue,omitempty"` // Field: The name of the updated field, for example @@ -10277,15 +10291,15 @@ func (s *Policy) MarshalJSON() ([]byte, error) { } // PolicyDriftDetails: The policy field that violates the deployed -// posture and its expected and and detected values. +// posture and its expected and detected values. type PolicyDriftDetails struct { // DetectedValue: The detected value that violates the deployed posture, - // for example, `false` or `allowed_values={"projects/22831892”}`. + // for example, `false` or `allowed_values={"projects/22831892"}`. DetectedValue string `json:"detectedValue,omitempty"` // ExpectedValue: The value of this field that was configured in a // posture, for example, `true` or - // `allowed_values={"projects/29831892”}`. + // `allowed_values={"projects/29831892"}`. ExpectedValue string `json:"expectedValue,omitempty"` // Field: The name of the updated field, for example diff --git a/securitycenter/v1beta1/securitycenter-api.json b/securitycenter/v1beta1/securitycenter-api.json index 5af995d1954..8675c2f96ef 100644 --- a/securitycenter/v1beta1/securitycenter-api.json +++ b/securitycenter/v1beta1/securitycenter-api.json @@ -896,7 +896,7 @@ } } }, - "revision": "20240213", + "revision": "20240226", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -993,11 +993,11 @@ "id": "Application", "properties": { "baseUri": { - "description": "The base URI that identifies the network location of the application in which the vulnerability was detected. Examples: http://11.22.33.44, http://foo.com, http://11.22.33.44:8080", + "description": "The base URI that identifies the network location of the application in which the vulnerability was detected. For example, `http://example.com`.", "type": "string" }, "fullUri": { - "description": "The full URI with payload that can be used to reproduce the vulnerability. Example: http://11.22.33.44/reflected/parameter/attribute/singlequoted/js?p=aMmYgI6H", + "description": "The full URI with payload that can be used to reproduce the vulnerability. For example, `http://example.com?p=aMmYgI6H`.", "type": "string" } }, @@ -1170,11 +1170,11 @@ "id": "BackupDisasterRecovery", "properties": { "appliance": { - "description": "The name of the Backup and DR appliance that captures, moves, and manages the lifecycle of backup data. For example, “backup-server-57137”.", + "description": "The name of the Backup and DR appliance that captures, moves, and manages the lifecycle of backup data. For example, `backup-server-57137`.", "type": "string" }, "applications": { - "description": "The names of Backup and DR applications. An application is a VM, database, or file system on a managed host monitored by a backup and recovery appliance. For example, “centos7-01-vol00”, “centos7-01-vol01”, “centos7-01-vol02”.", + "description": "The names of Backup and DR applications. An application is a VM, database, or file system on a managed host monitored by a backup and recovery appliance. For example, `centos7-01-vol00`, `centos7-01-vol01`, `centos7-01-vol02`.", "items": { "type": "string" }, @@ -1186,37 +1186,37 @@ "type": "string" }, "backupTemplate": { - "description": "The name of a Backup and DR template which comprises one or more backup policies. See the [Backup and DR documentation](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp) for more information. For example, “snap-ov”.", + "description": "The name of a Backup and DR template which comprises one or more backup policies. See the [Backup and DR documentation](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp) for more information. For example, `snap-ov`.", "type": "string" }, "backupType": { - "description": "The backup type of the Backup and DR image. For example, “Snapshot”, “Remote Snapshot”, “OnVault”.", + "description": "The backup type of the Backup and DR image. For example, `Snapshot`, `Remote Snapshot`, `OnVault`.", "type": "string" }, "host": { - "description": "The name of a Backup and DR host, which is managed by the backup and recovery appliance and known to the management console. The host can be of type Generic (for example, Compute Engine, SQL Server, Oracle DB, SMB file system, etc.), vCenter, or an ESX server. See the [Backup and DR documentation on hosts](https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications) for more information. For example, “centos7-01”.", + "description": "The name of a Backup and DR host, which is managed by the backup and recovery appliance and known to the management console. The host can be of type Generic (for example, Compute Engine, SQL Server, Oracle DB, SMB file system, etc.), vCenter, or an ESX server. See the [Backup and DR documentation on hosts](https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications) for more information. For example, `centos7-01`.", "type": "string" }, "policies": { - "description": "The names of Backup and DR policies that are associated with a template and that define when to run a backup, how frequently to run a backup, and how long to retain the backup image. For example, “onvaults”.", + "description": "The names of Backup and DR policies that are associated with a template and that define when to run a backup, how frequently to run a backup, and how long to retain the backup image. For example, `onvaults`.", "items": { "type": "string" }, "type": "array" }, "policyOptions": { - "description": "The names of Backup and DR advanced policy options of a policy applying to an application. See the [Backup and DR documentation on policy options](https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings). For example, “skipofflineappsincongrp, nounmap”.", + "description": "The names of Backup and DR advanced policy options of a policy applying to an application. See the [Backup and DR documentation on policy options](https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings). For example, `skipofflineappsincongrp, nounmap`.", "items": { "type": "string" }, "type": "array" }, "profile": { - "description": "The name of the Backup and DR resource profile that specifies the storage media for backups of application and VM data. See the [Backup and DR documentation on profiles](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile). For example, “GCP”.", + "description": "The name of the Backup and DR resource profile that specifies the storage media for backups of application and VM data. See the [Backup and DR documentation on profiles](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile). For example, `GCP`.", "type": "string" }, "storagePool": { - "description": "The name of the Backup and DR storage pool that the backup and recovery appliance is storing data in. The storage pool could be of type Cloud, Primary, Snapshot, or OnVault. See the [Backup and DR documentation on storage pools](https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools). For example, “DiskPoolOne”.", + "description": "The name of the Backup and DR storage pool that the backup and recovery appliance is storing data in. The storage pool could be of type Cloud, Primary, Snapshot, or OnVault. See the [Backup and DR documentation on storage pools](https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools). For example, `DiskPoolOne`.", "type": "string" } }, @@ -2403,6 +2403,16 @@ }, "type": "array" }, + "caseCloseTime": { + "description": "The time when the case was closed, as reported by the external system.", + "format": "google-datetime", + "type": "string" + }, + "caseCreateTime": { + "description": "The time when the case was created, as reported by the external system.", + "format": "google-datetime", + "type": "string" + }, "casePriority": { "description": "The priority of the finding's corresponding case in the external system.", "type": "string" @@ -3172,11 +3182,11 @@ "id": "GoogleCloudSecuritycenterV2Application", "properties": { "baseUri": { - "description": "The base URI that identifies the network location of the application in which the vulnerability was detected. Examples: http://11.22.33.44, http://foo.com, http://11.22.33.44:8080", + "description": "The base URI that identifies the network location of the application in which the vulnerability was detected. For example, `http://example.com`.", "type": "string" }, "fullUri": { - "description": "The full URI with payload that could be used to reproduce the vulnerability. Example: http://11.22.33.44/reflected/parameter/attribute/singlequoted/js?p=aMmYgI6H", + "description": "The full URI with payload that could be used to reproduce the vulnerability. For example, `http://example.com?p=aMmYgI6H`.", "type": "string" } }, @@ -3238,11 +3248,11 @@ "id": "GoogleCloudSecuritycenterV2BackupDisasterRecovery", "properties": { "appliance": { - "description": "The name of the Backup and DR appliance that captures, moves, and manages the lifecycle of backup data. For example, “backup-server-57137”.", + "description": "The name of the Backup and DR appliance that captures, moves, and manages the lifecycle of backup data. For example, `backup-server-57137`.", "type": "string" }, "applications": { - "description": "The names of Backup and DR applications. An application is a VM, database, or file system on a managed host monitored by a backup and recovery appliance. For example, “centos7-01-vol00”, “centos7-01-vol01”, “centos7-01-vol02”.", + "description": "The names of Backup and DR applications. An application is a VM, database, or file system on a managed host monitored by a backup and recovery appliance. For example, `centos7-01-vol00`, `centos7-01-vol01`, `centos7-01-vol02`.", "items": { "type": "string" }, @@ -3254,37 +3264,37 @@ "type": "string" }, "backupTemplate": { - "description": "The name of a Backup and DR template which comprises one or more backup policies. See the [Backup and DR documentation](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp) for more information. For example, “snap-ov”.", + "description": "The name of a Backup and DR template which comprises one or more backup policies. See the [Backup and DR documentation](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp) for more information. For example, `snap-ov`.", "type": "string" }, "backupType": { - "description": "The backup type of the Backup and DR image. For example, “Snapshot”, “Remote Snapshot”, “OnVault”.", + "description": "The backup type of the Backup and DR image. For example, `Snapshot`, `Remote Snapshot`, `OnVault`.", "type": "string" }, "host": { - "description": "The name of a Backup and DR host, which is managed by the backup and recovery appliance and known to the management console. The host can be of type Generic (for example, Compute Engine, SQL Server, Oracle DB, SMB file system, etc.), vCenter, or an ESX server. See the [Backup and DR documentation on hosts](https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications) for more information. For example, “centos7-01”.", + "description": "The name of a Backup and DR host, which is managed by the backup and recovery appliance and known to the management console. The host can be of type Generic (for example, Compute Engine, SQL Server, Oracle DB, SMB file system, etc.), vCenter, or an ESX server. See the [Backup and DR documentation on hosts](https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications) for more information. For example, `centos7-01`.", "type": "string" }, "policies": { - "description": "The names of Backup and DR policies that are associated with a template and that define when to run a backup, how frequently to run a backup, and how long to retain the backup image. For example, “onvaults”.", + "description": "The names of Backup and DR policies that are associated with a template and that define when to run a backup, how frequently to run a backup, and how long to retain the backup image. For example, `onvaults`.", "items": { "type": "string" }, "type": "array" }, "policyOptions": { - "description": "The names of Backup and DR advanced policy options of a policy applying to an application. See the [Backup and DR documentation on policy options](https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings). For example, “skipofflineappsincongrp, nounmap”.", + "description": "The names of Backup and DR advanced policy options of a policy applying to an application. See the [Backup and DR documentation on policy options](https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings). For example, `skipofflineappsincongrp, nounmap`.", "items": { "type": "string" }, "type": "array" }, "profile": { - "description": "The name of the Backup and DR resource profile that specifies the storage media for backups of application and VM data. See the [Backup and DR documentation on profiles](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile). For example, “GCP”.", + "description": "The name of the Backup and DR resource profile that specifies the storage media for backups of application and VM data. See the [Backup and DR documentation on profiles](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile). For example, `GCP`.", "type": "string" }, "storagePool": { - "description": "The name of the Backup and DR storage pool that the backup and recovery appliance is storing data in. The storage pool could be of type Cloud, Primary, Snapshot, or OnVault. See the [Backup and DR documentation on storage pools](https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools). For example, “DiskPoolOne”.", + "description": "The name of the Backup and DR storage pool that the backup and recovery appliance is storing data in. The storage pool could be of type Cloud, Primary, Snapshot, or OnVault. See the [Backup and DR documentation on storage pools](https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools). For example, `DiskPoolOne`.", "type": "string" } }, @@ -3906,6 +3916,16 @@ }, "type": "array" }, + "caseCloseTime": { + "description": "The time when the case was closed, as reported by the external system.", + "format": "google-datetime", + "type": "string" + }, + "caseCreateTime": { + "description": "The time when the case was created, as reported by the external system.", + "format": "google-datetime", + "type": "string" + }, "casePriority": { "description": "The priority of the finding's corresponding case in the external system.", "type": "string" @@ -5039,11 +5059,11 @@ "id": "GoogleCloudSecuritycenterV2PolicyDriftDetails", "properties": { "detectedValue": { - "description": "The detected value that violates the deployed posture, for example, `false` or `allowed_values={\"projects/22831892”}`.", + "description": "The detected value that violates the deployed posture, for example, `false` or `allowed_values={\"projects/22831892\"}`.", "type": "string" }, "expectedValue": { - "description": "The value of this field that was configured in a posture, for example, `true` or `allowed_values={\"projects/29831892”}`.", + "description": "The value of this field that was configured in a posture, for example, `true` or `allowed_values={\"projects/29831892\"}`.", "type": "string" }, "field": { @@ -6536,15 +6556,15 @@ "type": "object" }, "PolicyDriftDetails": { - "description": "The policy field that violates the deployed posture and its expected and and detected values.", + "description": "The policy field that violates the deployed posture and its expected and detected values.", "id": "PolicyDriftDetails", "properties": { "detectedValue": { - "description": "The detected value that violates the deployed posture, for example, `false` or `allowed_values={\"projects/22831892”}`.", + "description": "The detected value that violates the deployed posture, for example, `false` or `allowed_values={\"projects/22831892\"}`.", "type": "string" }, "expectedValue": { - "description": "The value of this field that was configured in a posture, for example, `true` or `allowed_values={\"projects/29831892”}`.", + "description": "The value of this field that was configured in a posture, for example, `true` or `allowed_values={\"projects/29831892\"}`.", "type": "string" }, "field": { diff --git a/securitycenter/v1beta1/securitycenter-gen.go b/securitycenter/v1beta1/securitycenter-gen.go index 8b1db5f4442..9eb8df93f98 100644 --- a/securitycenter/v1beta1/securitycenter-gen.go +++ b/securitycenter/v1beta1/securitycenter-gen.go @@ -359,13 +359,12 @@ func (s *AccessReview) MarshalJSON() ([]byte, error) { // Application: Represents an application associated with a finding. type Application struct { // BaseUri: The base URI that identifies the network location of the - // application in which the vulnerability was detected. Examples: - // http://11.22.33.44, http://foo.com, http://11.22.33.44:8080 + // application in which the vulnerability was detected. For example, + // `http://example.com`. BaseUri string `json:"baseUri,omitempty"` // FullUri: The full URI with payload that can be used to reproduce the - // vulnerability. Example: - // http://11.22.33.44/reflected/parameter/attribute/singlequoted/js?p=aMmYgI6H + // vulnerability. For example, `http://example.com?p=aMmYgI6H`. FullUri string `json:"fullUri,omitempty"` // ForceSendFields is a list of field names (e.g. "BaseUri") to @@ -669,13 +668,13 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { type BackupDisasterRecovery struct { // Appliance: The name of the Backup and DR appliance that captures, // moves, and manages the lifecycle of backup data. For example, - // “backup-server-57137”. + // `backup-server-57137`. Appliance string `json:"appliance,omitempty"` // Applications: The names of Backup and DR applications. An application // is a VM, database, or file system on a managed host monitored by a - // backup and recovery appliance. For example, “centos7-01-vol00”, - // “centos7-01-vol01”, “centos7-01-vol02”. + // backup and recovery appliance. For example, `centos7-01-vol00`, + // `centos7-01-vol01`, `centos7-01-vol02`. Applications []string `json:"applications,omitempty"` // BackupCreateTime: The timestamp at which the Backup and DR backup was @@ -685,11 +684,11 @@ type BackupDisasterRecovery struct { // BackupTemplate: The name of a Backup and DR template which comprises // one or more backup policies. See the Backup and DR documentation // (https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp) - // for more information. For example, “snap-ov”. + // for more information. For example, `snap-ov`. BackupTemplate string `json:"backupTemplate,omitempty"` // BackupType: The backup type of the Backup and DR image. For example, - // “Snapshot”, “Remote Snapshot”, “OnVault”. + // `Snapshot`, `Remote Snapshot`, `OnVault`. BackupType string `json:"backupType,omitempty"` // Host: The name of a Backup and DR host, which is managed by the @@ -698,27 +697,27 @@ type BackupDisasterRecovery struct { // Server, Oracle DB, SMB file system, etc.), vCenter, or an ESX server. // See the Backup and DR documentation on hosts // (https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications) - // for more information. For example, “centos7-01”. + // for more information. For example, `centos7-01`. Host string `json:"host,omitempty"` // Policies: The names of Backup and DR policies that are associated // with a template and that define when to run a backup, how frequently // to run a backup, and how long to retain the backup image. For - // example, “onvaults”. + // example, `onvaults`. Policies []string `json:"policies,omitempty"` // PolicyOptions: The names of Backup and DR advanced policy options of // a policy applying to an application. See the Backup and DR // documentation on policy options // (https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings). - // For example, “skipofflineappsincongrp, nounmap”. + // For example, `skipofflineappsincongrp, nounmap`. PolicyOptions []string `json:"policyOptions,omitempty"` // Profile: The name of the Backup and DR resource profile that // specifies the storage media for backups of application and VM data. // See the Backup and DR documentation on profiles // (https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile). - // For example, “GCP”. + // For example, `GCP`. Profile string `json:"profile,omitempty"` // StoragePool: The name of the Backup and DR storage pool that the @@ -726,7 +725,7 @@ type BackupDisasterRecovery struct { // could be of type Cloud, Primary, Snapshot, or OnVault. See the Backup // and DR documentation on storage pools // (https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools). - // For example, “DiskPoolOne”. + // For example, `DiskPoolOne`. StoragePool string `json:"storagePool,omitempty"` // ForceSendFields is a list of field names (e.g. "Appliance") to @@ -2578,6 +2577,14 @@ type GoogleCloudSecuritycenterV1ExternalSystem struct { // system. Assignees []string `json:"assignees,omitempty"` + // CaseCloseTime: The time when the case was closed, as reported by the + // external system. + CaseCloseTime string `json:"caseCloseTime,omitempty"` + + // CaseCreateTime: The time when the case was created, as reported by + // the external system. + CaseCreateTime string `json:"caseCreateTime,omitempty"` + // CasePriority: The priority of the finding's corresponding case in the // external system. CasePriority string `json:"casePriority,omitempty"` @@ -3790,13 +3797,12 @@ func (s *GoogleCloudSecuritycenterV2AccessReview) MarshalJSON() ([]byte, error) // associated with a finding. type GoogleCloudSecuritycenterV2Application struct { // BaseUri: The base URI that identifies the network location of the - // application in which the vulnerability was detected. Examples: - // http://11.22.33.44, http://foo.com, http://11.22.33.44:8080 + // application in which the vulnerability was detected. For example, + // `http://example.com`. BaseUri string `json:"baseUri,omitempty"` // FullUri: The full URI with payload that could be used to reproduce - // the vulnerability. Example: - // http://11.22.33.44/reflected/parameter/attribute/singlequoted/js?p=aMmYgI6H + // the vulnerability. For example, `http://example.com?p=aMmYgI6H`. FullUri string `json:"fullUri,omitempty"` // ForceSendFields is a list of field names (e.g. "BaseUri") to @@ -3906,13 +3912,13 @@ func (s *GoogleCloudSecuritycenterV2AttackExposure) UnmarshalJSON(data []byte) e type GoogleCloudSecuritycenterV2BackupDisasterRecovery struct { // Appliance: The name of the Backup and DR appliance that captures, // moves, and manages the lifecycle of backup data. For example, - // “backup-server-57137”. + // `backup-server-57137`. Appliance string `json:"appliance,omitempty"` // Applications: The names of Backup and DR applications. An application // is a VM, database, or file system on a managed host monitored by a - // backup and recovery appliance. For example, “centos7-01-vol00”, - // “centos7-01-vol01”, “centos7-01-vol02”. + // backup and recovery appliance. For example, `centos7-01-vol00`, + // `centos7-01-vol01`, `centos7-01-vol02`. Applications []string `json:"applications,omitempty"` // BackupCreateTime: The timestamp at which the Backup and DR backup was @@ -3922,11 +3928,11 @@ type GoogleCloudSecuritycenterV2BackupDisasterRecovery struct { // BackupTemplate: The name of a Backup and DR template which comprises // one or more backup policies. See the Backup and DR documentation // (https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp) - // for more information. For example, “snap-ov”. + // for more information. For example, `snap-ov`. BackupTemplate string `json:"backupTemplate,omitempty"` // BackupType: The backup type of the Backup and DR image. For example, - // “Snapshot”, “Remote Snapshot”, “OnVault”. + // `Snapshot`, `Remote Snapshot`, `OnVault`. BackupType string `json:"backupType,omitempty"` // Host: The name of a Backup and DR host, which is managed by the @@ -3935,27 +3941,27 @@ type GoogleCloudSecuritycenterV2BackupDisasterRecovery struct { // Server, Oracle DB, SMB file system, etc.), vCenter, or an ESX server. // See the Backup and DR documentation on hosts // (https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications) - // for more information. For example, “centos7-01”. + // for more information. For example, `centos7-01`. Host string `json:"host,omitempty"` // Policies: The names of Backup and DR policies that are associated // with a template and that define when to run a backup, how frequently // to run a backup, and how long to retain the backup image. For - // example, “onvaults”. + // example, `onvaults`. Policies []string `json:"policies,omitempty"` // PolicyOptions: The names of Backup and DR advanced policy options of // a policy applying to an application. See the Backup and DR // documentation on policy options // (https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings). - // For example, “skipofflineappsincongrp, nounmap”. + // For example, `skipofflineappsincongrp, nounmap`. PolicyOptions []string `json:"policyOptions,omitempty"` // Profile: The name of the Backup and DR resource profile that // specifies the storage media for backups of application and VM data. // See the Backup and DR documentation on profiles // (https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile). - // For example, “GCP”. + // For example, `GCP`. Profile string `json:"profile,omitempty"` // StoragePool: The name of the Backup and DR storage pool that the @@ -3963,7 +3969,7 @@ type GoogleCloudSecuritycenterV2BackupDisasterRecovery struct { // could be of type Cloud, Primary, Snapshot, or OnVault. See the Backup // and DR documentation on storage pools // (https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools). - // For example, “DiskPoolOne”. + // For example, `DiskPoolOne`. StoragePool string `json:"storagePool,omitempty"` // ForceSendFields is a list of field names (e.g. "Appliance") to @@ -4935,6 +4941,14 @@ type GoogleCloudSecuritycenterV2ExternalSystem struct { // system. Assignees []string `json:"assignees,omitempty"` + // CaseCloseTime: The time when the case was closed, as reported by the + // external system. + CaseCloseTime string `json:"caseCloseTime,omitempty"` + + // CaseCreateTime: The time when the case was created, as reported by + // the external system. + CaseCreateTime string `json:"caseCreateTime,omitempty"` + // CasePriority: The priority of the finding's corresponding case in the // external system. CasePriority string `json:"casePriority,omitempty"` @@ -6289,12 +6303,12 @@ func (s *GoogleCloudSecuritycenterV2Pod) MarshalJSON() ([]byte, error) { // violates the deployed posture and its expected and detected values. type GoogleCloudSecuritycenterV2PolicyDriftDetails struct { // DetectedValue: The detected value that violates the deployed posture, - // for example, `false` or `allowed_values={"projects/22831892”}`. + // for example, `false` or `allowed_values={"projects/22831892"}`. DetectedValue string `json:"detectedValue,omitempty"` // ExpectedValue: The value of this field that was configured in a // posture, for example, `true` or - // `allowed_values={"projects/29831892”}`. + // `allowed_values={"projects/29831892"}`. ExpectedValue string `json:"expectedValue,omitempty"` // Field: The name of the updated field, for example @@ -8466,15 +8480,15 @@ func (s *Policy) MarshalJSON() ([]byte, error) { } // PolicyDriftDetails: The policy field that violates the deployed -// posture and its expected and and detected values. +// posture and its expected and detected values. type PolicyDriftDetails struct { // DetectedValue: The detected value that violates the deployed posture, - // for example, `false` or `allowed_values={"projects/22831892”}`. + // for example, `false` or `allowed_values={"projects/22831892"}`. DetectedValue string `json:"detectedValue,omitempty"` // ExpectedValue: The value of this field that was configured in a // posture, for example, `true` or - // `allowed_values={"projects/29831892”}`. + // `allowed_values={"projects/29831892"}`. ExpectedValue string `json:"expectedValue,omitempty"` // Field: The name of the updated field, for example diff --git a/securitycenter/v1beta2/securitycenter-api.json b/securitycenter/v1beta2/securitycenter-api.json index 8f116591702..d0f875f8db3 100644 --- a/securitycenter/v1beta2/securitycenter-api.json +++ b/securitycenter/v1beta2/securitycenter-api.json @@ -1906,7 +1906,7 @@ } } }, - "revision": "20240213", + "revision": "20240226", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -2003,11 +2003,11 @@ "id": "Application", "properties": { "baseUri": { - "description": "The base URI that identifies the network location of the application in which the vulnerability was detected. Examples: http://11.22.33.44, http://foo.com, http://11.22.33.44:8080", + "description": "The base URI that identifies the network location of the application in which the vulnerability was detected. For example, `http://example.com`.", "type": "string" }, "fullUri": { - "description": "The full URI with payload that can be used to reproduce the vulnerability. Example: http://11.22.33.44/reflected/parameter/attribute/singlequoted/js?p=aMmYgI6H", + "description": "The full URI with payload that can be used to reproduce the vulnerability. For example, `http://example.com?p=aMmYgI6H`.", "type": "string" } }, @@ -2068,11 +2068,11 @@ "id": "BackupDisasterRecovery", "properties": { "appliance": { - "description": "The name of the Backup and DR appliance that captures, moves, and manages the lifecycle of backup data. For example, “backup-server-57137”.", + "description": "The name of the Backup and DR appliance that captures, moves, and manages the lifecycle of backup data. For example, `backup-server-57137`.", "type": "string" }, "applications": { - "description": "The names of Backup and DR applications. An application is a VM, database, or file system on a managed host monitored by a backup and recovery appliance. For example, “centos7-01-vol00”, “centos7-01-vol01”, “centos7-01-vol02”.", + "description": "The names of Backup and DR applications. An application is a VM, database, or file system on a managed host monitored by a backup and recovery appliance. For example, `centos7-01-vol00`, `centos7-01-vol01`, `centos7-01-vol02`.", "items": { "type": "string" }, @@ -2084,37 +2084,37 @@ "type": "string" }, "backupTemplate": { - "description": "The name of a Backup and DR template which comprises one or more backup policies. See the [Backup and DR documentation](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp) for more information. For example, “snap-ov”.", + "description": "The name of a Backup and DR template which comprises one or more backup policies. See the [Backup and DR documentation](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp) for more information. For example, `snap-ov`.", "type": "string" }, "backupType": { - "description": "The backup type of the Backup and DR image. For example, “Snapshot”, “Remote Snapshot”, “OnVault”.", + "description": "The backup type of the Backup and DR image. For example, `Snapshot`, `Remote Snapshot`, `OnVault`.", "type": "string" }, "host": { - "description": "The name of a Backup and DR host, which is managed by the backup and recovery appliance and known to the management console. The host can be of type Generic (for example, Compute Engine, SQL Server, Oracle DB, SMB file system, etc.), vCenter, or an ESX server. See the [Backup and DR documentation on hosts](https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications) for more information. For example, “centos7-01”.", + "description": "The name of a Backup and DR host, which is managed by the backup and recovery appliance and known to the management console. The host can be of type Generic (for example, Compute Engine, SQL Server, Oracle DB, SMB file system, etc.), vCenter, or an ESX server. See the [Backup and DR documentation on hosts](https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications) for more information. For example, `centos7-01`.", "type": "string" }, "policies": { - "description": "The names of Backup and DR policies that are associated with a template and that define when to run a backup, how frequently to run a backup, and how long to retain the backup image. For example, “onvaults”.", + "description": "The names of Backup and DR policies that are associated with a template and that define when to run a backup, how frequently to run a backup, and how long to retain the backup image. For example, `onvaults`.", "items": { "type": "string" }, "type": "array" }, "policyOptions": { - "description": "The names of Backup and DR advanced policy options of a policy applying to an application. See the [Backup and DR documentation on policy options](https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings). For example, “skipofflineappsincongrp, nounmap”.", + "description": "The names of Backup and DR advanced policy options of a policy applying to an application. See the [Backup and DR documentation on policy options](https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings). For example, `skipofflineappsincongrp, nounmap`.", "items": { "type": "string" }, "type": "array" }, "profile": { - "description": "The name of the Backup and DR resource profile that specifies the storage media for backups of application and VM data. See the [Backup and DR documentation on profiles](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile). For example, “GCP”.", + "description": "The name of the Backup and DR resource profile that specifies the storage media for backups of application and VM data. See the [Backup and DR documentation on profiles](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile). For example, `GCP`.", "type": "string" }, "storagePool": { - "description": "The name of the Backup and DR storage pool that the backup and recovery appliance is storing data in. The storage pool could be of type Cloud, Primary, Snapshot, or OnVault. See the [Backup and DR documentation on storage pools](https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools). For example, “DiskPoolOne”.", + "description": "The name of the Backup and DR storage pool that the backup and recovery appliance is storing data in. The storage pool could be of type Cloud, Primary, Snapshot, or OnVault. See the [Backup and DR documentation on storage pools](https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools). For example, `DiskPoolOne`.", "type": "string" } }, @@ -3397,6 +3397,16 @@ }, "type": "array" }, + "caseCloseTime": { + "description": "The time when the case was closed, as reported by the external system.", + "format": "google-datetime", + "type": "string" + }, + "caseCreateTime": { + "description": "The time when the case was created, as reported by the external system.", + "format": "google-datetime", + "type": "string" + }, "casePriority": { "description": "The priority of the finding's corresponding case in the external system.", "type": "string" @@ -4085,11 +4095,11 @@ "id": "GoogleCloudSecuritycenterV2Application", "properties": { "baseUri": { - "description": "The base URI that identifies the network location of the application in which the vulnerability was detected. Examples: http://11.22.33.44, http://foo.com, http://11.22.33.44:8080", + "description": "The base URI that identifies the network location of the application in which the vulnerability was detected. For example, `http://example.com`.", "type": "string" }, "fullUri": { - "description": "The full URI with payload that could be used to reproduce the vulnerability. Example: http://11.22.33.44/reflected/parameter/attribute/singlequoted/js?p=aMmYgI6H", + "description": "The full URI with payload that could be used to reproduce the vulnerability. For example, `http://example.com?p=aMmYgI6H`.", "type": "string" } }, @@ -4151,11 +4161,11 @@ "id": "GoogleCloudSecuritycenterV2BackupDisasterRecovery", "properties": { "appliance": { - "description": "The name of the Backup and DR appliance that captures, moves, and manages the lifecycle of backup data. For example, “backup-server-57137”.", + "description": "The name of the Backup and DR appliance that captures, moves, and manages the lifecycle of backup data. For example, `backup-server-57137`.", "type": "string" }, "applications": { - "description": "The names of Backup and DR applications. An application is a VM, database, or file system on a managed host monitored by a backup and recovery appliance. For example, “centos7-01-vol00”, “centos7-01-vol01”, “centos7-01-vol02”.", + "description": "The names of Backup and DR applications. An application is a VM, database, or file system on a managed host monitored by a backup and recovery appliance. For example, `centos7-01-vol00`, `centos7-01-vol01`, `centos7-01-vol02`.", "items": { "type": "string" }, @@ -4167,37 +4177,37 @@ "type": "string" }, "backupTemplate": { - "description": "The name of a Backup and DR template which comprises one or more backup policies. See the [Backup and DR documentation](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp) for more information. For example, “snap-ov”.", + "description": "The name of a Backup and DR template which comprises one or more backup policies. See the [Backup and DR documentation](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp) for more information. For example, `snap-ov`.", "type": "string" }, "backupType": { - "description": "The backup type of the Backup and DR image. For example, “Snapshot”, “Remote Snapshot”, “OnVault”.", + "description": "The backup type of the Backup and DR image. For example, `Snapshot`, `Remote Snapshot`, `OnVault`.", "type": "string" }, "host": { - "description": "The name of a Backup and DR host, which is managed by the backup and recovery appliance and known to the management console. The host can be of type Generic (for example, Compute Engine, SQL Server, Oracle DB, SMB file system, etc.), vCenter, or an ESX server. See the [Backup and DR documentation on hosts](https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications) for more information. For example, “centos7-01”.", + "description": "The name of a Backup and DR host, which is managed by the backup and recovery appliance and known to the management console. The host can be of type Generic (for example, Compute Engine, SQL Server, Oracle DB, SMB file system, etc.), vCenter, or an ESX server. See the [Backup and DR documentation on hosts](https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications) for more information. For example, `centos7-01`.", "type": "string" }, "policies": { - "description": "The names of Backup and DR policies that are associated with a template and that define when to run a backup, how frequently to run a backup, and how long to retain the backup image. For example, “onvaults”.", + "description": "The names of Backup and DR policies that are associated with a template and that define when to run a backup, how frequently to run a backup, and how long to retain the backup image. For example, `onvaults`.", "items": { "type": "string" }, "type": "array" }, "policyOptions": { - "description": "The names of Backup and DR advanced policy options of a policy applying to an application. See the [Backup and DR documentation on policy options](https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings). For example, “skipofflineappsincongrp, nounmap”.", + "description": "The names of Backup and DR advanced policy options of a policy applying to an application. See the [Backup and DR documentation on policy options](https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings). For example, `skipofflineappsincongrp, nounmap`.", "items": { "type": "string" }, "type": "array" }, "profile": { - "description": "The name of the Backup and DR resource profile that specifies the storage media for backups of application and VM data. See the [Backup and DR documentation on profiles](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile). For example, “GCP”.", + "description": "The name of the Backup and DR resource profile that specifies the storage media for backups of application and VM data. See the [Backup and DR documentation on profiles](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile). For example, `GCP`.", "type": "string" }, "storagePool": { - "description": "The name of the Backup and DR storage pool that the backup and recovery appliance is storing data in. The storage pool could be of type Cloud, Primary, Snapshot, or OnVault. See the [Backup and DR documentation on storage pools](https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools). For example, “DiskPoolOne”.", + "description": "The name of the Backup and DR storage pool that the backup and recovery appliance is storing data in. The storage pool could be of type Cloud, Primary, Snapshot, or OnVault. See the [Backup and DR documentation on storage pools](https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools). For example, `DiskPoolOne`.", "type": "string" } }, @@ -4819,6 +4829,16 @@ }, "type": "array" }, + "caseCloseTime": { + "description": "The time when the case was closed, as reported by the external system.", + "format": "google-datetime", + "type": "string" + }, + "caseCreateTime": { + "description": "The time when the case was created, as reported by the external system.", + "format": "google-datetime", + "type": "string" + }, "casePriority": { "description": "The priority of the finding's corresponding case in the external system.", "type": "string" @@ -5952,11 +5972,11 @@ "id": "GoogleCloudSecuritycenterV2PolicyDriftDetails", "properties": { "detectedValue": { - "description": "The detected value that violates the deployed posture, for example, `false` or `allowed_values={\"projects/22831892”}`.", + "description": "The detected value that violates the deployed posture, for example, `false` or `allowed_values={\"projects/22831892\"}`.", "type": "string" }, "expectedValue": { - "description": "The value of this field that was configured in a posture, for example, `true` or `allowed_values={\"projects/29831892”}`.", + "description": "The value of this field that was configured in a posture, for example, `true` or `allowed_values={\"projects/29831892\"}`.", "type": "string" }, "field": { @@ -7115,15 +7135,15 @@ "type": "object" }, "PolicyDriftDetails": { - "description": "The policy field that violates the deployed posture and its expected and and detected values.", + "description": "The policy field that violates the deployed posture and its expected and detected values.", "id": "PolicyDriftDetails", "properties": { "detectedValue": { - "description": "The detected value that violates the deployed posture, for example, `false` or `allowed_values={\"projects/22831892”}`.", + "description": "The detected value that violates the deployed posture, for example, `false` or `allowed_values={\"projects/22831892\"}`.", "type": "string" }, "expectedValue": { - "description": "The value of this field that was configured in a posture, for example, `true` or `allowed_values={\"projects/29831892”}`.", + "description": "The value of this field that was configured in a posture, for example, `true` or `allowed_values={\"projects/29831892\"}`.", "type": "string" }, "field": { @@ -7523,13 +7543,15 @@ "TIER_UNSPECIFIED", "STANDARD", "PREMIUM", - "ENTERPRISE" + "ENTERPRISE", + "ENTERPRISE_MC" ], "enumDescriptions": [ "Default value. This value is unused.", "The standard tier.", "The premium tier.", - "The enterprise tier." + "The enterprise tier.", + "The enterprise MC tier." ], "type": "string" } diff --git a/securitycenter/v1beta2/securitycenter-gen.go b/securitycenter/v1beta2/securitycenter-gen.go index cbf952736fc..dbd0f3e5621 100644 --- a/securitycenter/v1beta2/securitycenter-gen.go +++ b/securitycenter/v1beta2/securitycenter-gen.go @@ -587,13 +587,12 @@ func (s *AccessReview) MarshalJSON() ([]byte, error) { // Application: Represents an application associated with a finding. type Application struct { // BaseUri: The base URI that identifies the network location of the - // application in which the vulnerability was detected. Examples: - // http://11.22.33.44, http://foo.com, http://11.22.33.44:8080 + // application in which the vulnerability was detected. For example, + // `http://example.com`. BaseUri string `json:"baseUri,omitempty"` // FullUri: The full URI with payload that can be used to reproduce the - // vulnerability. Example: - // http://11.22.33.44/reflected/parameter/attribute/singlequoted/js?p=aMmYgI6H + // vulnerability. For example, `http://example.com?p=aMmYgI6H`. FullUri string `json:"fullUri,omitempty"` // ForceSendFields is a list of field names (e.g. "BaseUri") to @@ -702,13 +701,13 @@ func (s *AttackExposure) UnmarshalJSON(data []byte) error { type BackupDisasterRecovery struct { // Appliance: The name of the Backup and DR appliance that captures, // moves, and manages the lifecycle of backup data. For example, - // “backup-server-57137”. + // `backup-server-57137`. Appliance string `json:"appliance,omitempty"` // Applications: The names of Backup and DR applications. An application // is a VM, database, or file system on a managed host monitored by a - // backup and recovery appliance. For example, “centos7-01-vol00”, - // “centos7-01-vol01”, “centos7-01-vol02”. + // backup and recovery appliance. For example, `centos7-01-vol00`, + // `centos7-01-vol01`, `centos7-01-vol02`. Applications []string `json:"applications,omitempty"` // BackupCreateTime: The timestamp at which the Backup and DR backup was @@ -718,11 +717,11 @@ type BackupDisasterRecovery struct { // BackupTemplate: The name of a Backup and DR template which comprises // one or more backup policies. See the Backup and DR documentation // (https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp) - // for more information. For example, “snap-ov”. + // for more information. For example, `snap-ov`. BackupTemplate string `json:"backupTemplate,omitempty"` // BackupType: The backup type of the Backup and DR image. For example, - // “Snapshot”, “Remote Snapshot”, “OnVault”. + // `Snapshot`, `Remote Snapshot`, `OnVault`. BackupType string `json:"backupType,omitempty"` // Host: The name of a Backup and DR host, which is managed by the @@ -731,27 +730,27 @@ type BackupDisasterRecovery struct { // Server, Oracle DB, SMB file system, etc.), vCenter, or an ESX server. // See the Backup and DR documentation on hosts // (https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications) - // for more information. For example, “centos7-01”. + // for more information. For example, `centos7-01`. Host string `json:"host,omitempty"` // Policies: The names of Backup and DR policies that are associated // with a template and that define when to run a backup, how frequently // to run a backup, and how long to retain the backup image. For - // example, “onvaults”. + // example, `onvaults`. Policies []string `json:"policies,omitempty"` // PolicyOptions: The names of Backup and DR advanced policy options of // a policy applying to an application. See the Backup and DR // documentation on policy options // (https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings). - // For example, “skipofflineappsincongrp, nounmap”. + // For example, `skipofflineappsincongrp, nounmap`. PolicyOptions []string `json:"policyOptions,omitempty"` // Profile: The name of the Backup and DR resource profile that // specifies the storage media for backups of application and VM data. // See the Backup and DR documentation on profiles // (https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile). - // For example, “GCP”. + // For example, `GCP`. Profile string `json:"profile,omitempty"` // StoragePool: The name of the Backup and DR storage pool that the @@ -759,7 +758,7 @@ type BackupDisasterRecovery struct { // could be of type Cloud, Primary, Snapshot, or OnVault. See the Backup // and DR documentation on storage pools // (https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools). - // For example, “DiskPoolOne”. + // For example, `DiskPoolOne`. StoragePool string `json:"storagePool,omitempty"` // ForceSendFields is a list of field names (e.g. "Appliance") to @@ -2620,6 +2619,14 @@ type GoogleCloudSecuritycenterV1ExternalSystem struct { // system. Assignees []string `json:"assignees,omitempty"` + // CaseCloseTime: The time when the case was closed, as reported by the + // external system. + CaseCloseTime string `json:"caseCloseTime,omitempty"` + + // CaseCreateTime: The time when the case was created, as reported by + // the external system. + CaseCreateTime string `json:"caseCreateTime,omitempty"` + // CasePriority: The priority of the finding's corresponding case in the // external system. CasePriority string `json:"casePriority,omitempty"` @@ -3682,13 +3689,12 @@ func (s *GoogleCloudSecuritycenterV2AccessReview) MarshalJSON() ([]byte, error) // associated with a finding. type GoogleCloudSecuritycenterV2Application struct { // BaseUri: The base URI that identifies the network location of the - // application in which the vulnerability was detected. Examples: - // http://11.22.33.44, http://foo.com, http://11.22.33.44:8080 + // application in which the vulnerability was detected. For example, + // `http://example.com`. BaseUri string `json:"baseUri,omitempty"` // FullUri: The full URI with payload that could be used to reproduce - // the vulnerability. Example: - // http://11.22.33.44/reflected/parameter/attribute/singlequoted/js?p=aMmYgI6H + // the vulnerability. For example, `http://example.com?p=aMmYgI6H`. FullUri string `json:"fullUri,omitempty"` // ForceSendFields is a list of field names (e.g. "BaseUri") to @@ -3798,13 +3804,13 @@ func (s *GoogleCloudSecuritycenterV2AttackExposure) UnmarshalJSON(data []byte) e type GoogleCloudSecuritycenterV2BackupDisasterRecovery struct { // Appliance: The name of the Backup and DR appliance that captures, // moves, and manages the lifecycle of backup data. For example, - // “backup-server-57137”. + // `backup-server-57137`. Appliance string `json:"appliance,omitempty"` // Applications: The names of Backup and DR applications. An application // is a VM, database, or file system on a managed host monitored by a - // backup and recovery appliance. For example, “centos7-01-vol00”, - // “centos7-01-vol01”, “centos7-01-vol02”. + // backup and recovery appliance. For example, `centos7-01-vol00`, + // `centos7-01-vol01`, `centos7-01-vol02`. Applications []string `json:"applications,omitempty"` // BackupCreateTime: The timestamp at which the Backup and DR backup was @@ -3814,11 +3820,11 @@ type GoogleCloudSecuritycenterV2BackupDisasterRecovery struct { // BackupTemplate: The name of a Backup and DR template which comprises // one or more backup policies. See the Backup and DR documentation // (https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp) - // for more information. For example, “snap-ov”. + // for more information. For example, `snap-ov`. BackupTemplate string `json:"backupTemplate,omitempty"` // BackupType: The backup type of the Backup and DR image. For example, - // “Snapshot”, “Remote Snapshot”, “OnVault”. + // `Snapshot`, `Remote Snapshot`, `OnVault`. BackupType string `json:"backupType,omitempty"` // Host: The name of a Backup and DR host, which is managed by the @@ -3827,27 +3833,27 @@ type GoogleCloudSecuritycenterV2BackupDisasterRecovery struct { // Server, Oracle DB, SMB file system, etc.), vCenter, or an ESX server. // See the Backup and DR documentation on hosts // (https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications) - // for more information. For example, “centos7-01”. + // for more information. For example, `centos7-01`. Host string `json:"host,omitempty"` // Policies: The names of Backup and DR policies that are associated // with a template and that define when to run a backup, how frequently // to run a backup, and how long to retain the backup image. For - // example, “onvaults”. + // example, `onvaults`. Policies []string `json:"policies,omitempty"` // PolicyOptions: The names of Backup and DR advanced policy options of // a policy applying to an application. See the Backup and DR // documentation on policy options // (https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings). - // For example, “skipofflineappsincongrp, nounmap”. + // For example, `skipofflineappsincongrp, nounmap`. PolicyOptions []string `json:"policyOptions,omitempty"` // Profile: The name of the Backup and DR resource profile that // specifies the storage media for backups of application and VM data. // See the Backup and DR documentation on profiles // (https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile). - // For example, “GCP”. + // For example, `GCP`. Profile string `json:"profile,omitempty"` // StoragePool: The name of the Backup and DR storage pool that the @@ -3855,7 +3861,7 @@ type GoogleCloudSecuritycenterV2BackupDisasterRecovery struct { // could be of type Cloud, Primary, Snapshot, or OnVault. See the Backup // and DR documentation on storage pools // (https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools). - // For example, “DiskPoolOne”. + // For example, `DiskPoolOne`. StoragePool string `json:"storagePool,omitempty"` // ForceSendFields is a list of field names (e.g. "Appliance") to @@ -4827,6 +4833,14 @@ type GoogleCloudSecuritycenterV2ExternalSystem struct { // system. Assignees []string `json:"assignees,omitempty"` + // CaseCloseTime: The time when the case was closed, as reported by the + // external system. + CaseCloseTime string `json:"caseCloseTime,omitempty"` + + // CaseCreateTime: The time when the case was created, as reported by + // the external system. + CaseCreateTime string `json:"caseCreateTime,omitempty"` + // CasePriority: The priority of the finding's corresponding case in the // external system. CasePriority string `json:"casePriority,omitempty"` @@ -6181,12 +6195,12 @@ func (s *GoogleCloudSecuritycenterV2Pod) MarshalJSON() ([]byte, error) { // violates the deployed posture and its expected and detected values. type GoogleCloudSecuritycenterV2PolicyDriftDetails struct { // DetectedValue: The detected value that violates the deployed posture, - // for example, `false` or `allowed_values={"projects/22831892”}`. + // for example, `false` or `allowed_values={"projects/22831892"}`. DetectedValue string `json:"detectedValue,omitempty"` // ExpectedValue: The value of this field that was configured in a // posture, for example, `true` or - // `allowed_values={"projects/29831892”}`. + // `allowed_values={"projects/29831892"}`. ExpectedValue string `json:"expectedValue,omitempty"` // Field: The name of the updated field, for example @@ -7677,15 +7691,15 @@ func (s *Pod) MarshalJSON() ([]byte, error) { } // PolicyDriftDetails: The policy field that violates the deployed -// posture and its expected and and detected values. +// posture and its expected and detected values. type PolicyDriftDetails struct { // DetectedValue: The detected value that violates the deployed posture, - // for example, `false` or `allowed_values={"projects/22831892”}`. + // for example, `false` or `allowed_values={"projects/22831892"}`. DetectedValue string `json:"detectedValue,omitempty"` // ExpectedValue: The value of this field that was configured in a // posture, for example, `true` or - // `allowed_values={"projects/29831892”}`. + // `allowed_values={"projects/29831892"}`. ExpectedValue string `json:"expectedValue,omitempty"` // Field: The name of the updated field, for example @@ -8314,6 +8328,7 @@ type Subscription struct { // "STANDARD" - The standard tier. // "PREMIUM" - The premium tier. // "ENTERPRISE" - The enterprise tier. + // "ENTERPRISE_MC" - The enterprise MC tier. Tier string `json:"tier,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/storagetransfer/v1/storagetransfer-api.json b/storagetransfer/v1/storagetransfer-api.json index 78f9e81737b..5c047b9b582 100644 --- a/storagetransfer/v1/storagetransfer-api.json +++ b/storagetransfer/v1/storagetransfer-api.json @@ -541,7 +541,7 @@ ], "parameters": { "filter": { - "description": "Required. A list of query parameters specified as JSON text in the form of: `{\"projectId\":\"my_project_id\", \"jobNames\":[\"jobid1\",\"jobid2\",...], \"operationNames\":[\"opid1\",\"opid2\",...], \"transferStatuses\":[\"status1\",\"status2\",...]}` Since `jobNames`, `operationNames`, and `transferStatuses` support multiple values, they must be specified with array notation. `projectId` is required. `jobNames`, `operationNames`, and `transferStatuses` are optional. The valid values for `transferStatuses` are case-insensitive: IN_PROGRESS, PAUSED, SUCCESS, FAILED, and ABORTED.", + "description": "Required. A list of query parameters specified as JSON text in the form of: `{\"projectId\":\"my_project_id\", \"jobNames\":[\"jobid1\",\"jobid2\",...], \"jobNamePattern\": \"job_name_pattern\", \"operationNames\":[\"opid1\",\"opid2\",...], \"operationNamePattern\": \"operation_name_pattern\", \"minCreationTime\": \"min_creation_time\", \"maxCreationTime\": \"max_creation_time\", \"transferStatuses\":[\"status1\",\"status2\",...]}` Since `jobNames`, `operationNames`, and `transferStatuses` support multiple values, they must be specified with array notation. `projectId` is the only argument that is required. If specified, `jobNamePattern` and `operationNamePattern` must match the full job or operation name respectively. '*' is a wildcard matching 0 or more characters. `minCreationTime` and `maxCreationTime` should be timestamps encoded as a string in the [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. The valid values for `transferStatuses` are case-insensitive: IN_PROGRESS, PAUSED, SUCCESS, FAILED, and ABORTED.", "location": "query", "required": true, "type": "string" @@ -632,7 +632,7 @@ } } }, - "revision": "20240217", + "revision": "20240224", "rootUrl": "https://storagetransfer.googleapis.com/", "schemas": { "AgentPool": { @@ -794,21 +794,6 @@ }, "type": "object" }, - "BatchTaskSpec": { - "id": "BatchTaskSpec", - "properties": { - "deleteObjectTaskSpec": { - "$ref": "DeleteObjectTaskSpec" - }, - "listTaskSpec": { - "$ref": "ListTaskSpec" - }, - "metadataTaskSpec": { - "$ref": "MetadataTaskSpec" - } - }, - "type": "object" - }, "CancelOperationRequest": { "description": "The request message for Operations.CancelOperation.", "id": "CancelOperationRequest", @@ -837,26 +822,6 @@ }, "type": "object" }, - "DeleteObjectTaskSpec": { - "id": "DeleteObjectTaskSpec", - "properties": { - "generation": { - "format": "int64", - "type": "string" - }, - "hardDeleteVersionedObject": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "size": { - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", @@ -1055,18 +1020,6 @@ }, "type": "object" }, - "ListTaskSpec": { - "id": "ListTaskSpec", - "properties": { - "manifest": { - "$ref": "Manifest" - }, - "objectPrefixes": { - "$ref": "ObjectPrefixes" - } - }, - "type": "object" - }, "ListTransferJobsResponse": { "description": "Response from ListTransferJobs.", "id": "ListTransferJobsResponse", @@ -1132,18 +1085,6 @@ }, "type": "object" }, - "Manifest": { - "id": "Manifest", - "properties": { - "manifestLocation": { - "type": "string" - }, - "root": { - "type": "string" - } - }, - "type": "object" - }, "MetadataOptions": { "description": "Specifies the metadata options for running a transfer.", "id": "MetadataOptions", @@ -1285,26 +1226,6 @@ }, "type": "object" }, - "MetadataTaskSpec": { - "id": "MetadataTaskSpec", - "properties": { - "bucketName": { - "type": "string" - }, - "generation": { - "format": "int64", - "type": "string" - }, - "key": { - "type": "string" - }, - "size": { - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, "NotificationConfig": { "description": "Specification to configure notifications published to Pub/Sub. Notifications are published to the customer-provided topic using the following `PubsubMessage.attributes`: * `\"eventType\"`: one of the EventType values * `\"payloadFormat\"`: one of the PayloadFormat values * `\"projectId\"`: the project_id of the `TransferOperation` * `\"transferJobName\"`: the transfer_job_name of the `TransferOperation` * `\"transferOperationName\"`: the name of the `TransferOperation` The `PubsubMessage.data` contains a TransferOperation resource formatted according to the specified `PayloadFormat`.", "id": "NotificationConfig", @@ -1390,30 +1311,6 @@ }, "type": "object" }, - "ObjectPrefix": { - "id": "ObjectPrefix", - "properties": { - "bucketName": { - "type": "string" - }, - "objectPrefix": { - "type": "string" - } - }, - "type": "object" - }, - "ObjectPrefixes": { - "id": "ObjectPrefixes", - "properties": { - "objectPrefixes": { - "items": { - "$ref": "ObjectPrefix" - }, - "type": "array" - } - }, - "type": "object" - }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", diff --git a/storagetransfer/v1/storagetransfer-gen.go b/storagetransfer/v1/storagetransfer-gen.go index be9e06f7dc4..dc213d737e8 100644 --- a/storagetransfer/v1/storagetransfer-gen.go +++ b/storagetransfer/v1/storagetransfer-gen.go @@ -544,38 +544,6 @@ func (s *BandwidthLimit) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type BatchTaskSpec struct { - DeleteObjectTaskSpec *DeleteObjectTaskSpec `json:"deleteObjectTaskSpec,omitempty"` - - ListTaskSpec *ListTaskSpec `json:"listTaskSpec,omitempty"` - - MetadataTaskSpec *MetadataTaskSpec `json:"metadataTaskSpec,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "DeleteObjectTaskSpec") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeleteObjectTaskSpec") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *BatchTaskSpec) MarshalJSON() ([]byte, error) { - type NoMethod BatchTaskSpec - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // CancelOperationRequest: The request message for // Operations.CancelOperation. type CancelOperationRequest struct { @@ -628,38 +596,6 @@ func (s *Date) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type DeleteObjectTaskSpec struct { - Generation int64 `json:"generation,omitempty,string"` - - HardDeleteVersionedObject bool `json:"hardDeleteVersionedObject,omitempty"` - - Name string `json:"name,omitempty"` - - Size int64 `json:"size,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Generation") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Generation") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *DeleteObjectTaskSpec) MarshalJSON() ([]byte, error) { - type NoMethod DeleteObjectTaskSpec - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For @@ -1114,34 +1050,6 @@ func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type ListTaskSpec struct { - Manifest *Manifest `json:"manifest,omitempty"` - - ObjectPrefixes *ObjectPrefixes `json:"objectPrefixes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Manifest") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Manifest") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *ListTaskSpec) MarshalJSON() ([]byte, error) { - type NoMethod ListTaskSpec - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // ListTransferJobsResponse: Response from ListTransferJobs. type ListTransferJobsResponse struct { // NextPageToken: The list next page token. @@ -1243,35 +1151,6 @@ func (s *LoggingConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type Manifest struct { - ManifestLocation string `json:"manifestLocation,omitempty"` - - Root string `json:"root,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ManifestLocation") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ManifestLocation") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *Manifest) MarshalJSON() ([]byte, error) { - type NoMethod Manifest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // MetadataOptions: Specifies the metadata options for running a // transfer. type MetadataOptions struct { @@ -1420,38 +1299,6 @@ func (s *MetadataOptions) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type MetadataTaskSpec struct { - BucketName string `json:"bucketName,omitempty"` - - Generation int64 `json:"generation,omitempty,string"` - - Key string `json:"key,omitempty"` - - Size int64 `json:"size,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "BucketName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BucketName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *MetadataTaskSpec) MarshalJSON() ([]byte, error) { - type NoMethod MetadataTaskSpec - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // NotificationConfig: Specification to configure notifications // published to Pub/Sub. Notifications are published to the // customer-provided topic using the following @@ -1630,61 +1477,6 @@ func (s *ObjectConditions) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type ObjectPrefix struct { - BucketName string `json:"bucketName,omitempty"` - - ObjectPrefix string `json:"objectPrefix,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BucketName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BucketName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *ObjectPrefix) MarshalJSON() ([]byte, error) { - type NoMethod ObjectPrefix - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type ObjectPrefixes struct { - ObjectPrefixes []*ObjectPrefix `json:"objectPrefixes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ObjectPrefixes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ObjectPrefixes") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *ObjectPrefixes) MarshalJSON() ([]byte, error) { - type NoMethod ObjectPrefixes - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // Operation: This resource represents a long-running operation that is // the result of a network API call. type Operation struct { @@ -4760,15 +4552,21 @@ type TransferOperationsListCall struct { // // - filter: A list of query parameters specified as JSON text in the // form of: `{"projectId":"my_project_id", -// "jobNames":["jobid1","jobid2",...], -// "operationNames":["opid1","opid2",...], -// "transferStatuses":["status1","status2",...]}` Since `jobNames`, -// `operationNames`, and `transferStatuses` support multiple values, -// they must be specified with array notation. `projectId` is -// required. `jobNames`, `operationNames`, and `transferStatuses` are -// optional. The valid values for `transferStatuses` are -// case-insensitive: IN_PROGRESS, PAUSED, SUCCESS, FAILED, and -// ABORTED. +// "jobNames":["jobid1","jobid2",...], "jobNamePattern": +// "job_name_pattern", "operationNames":["opid1","opid2",...], +// "operationNamePattern": "operation_name_pattern", +// "minCreationTime": "min_creation_time", "maxCreationTime": +// "max_creation_time", "transferStatuses":["status1","status2",...]}` +// Since `jobNames`, `operationNames`, and `transferStatuses` support +// multiple values, they must be specified with array notation. +// `projectId` is the only argument that is required. If specified, +// `jobNamePattern` and `operationNamePattern` must match the full job +// or operation name respectively. '*' is a wildcard matching 0 or +// more characters. `minCreationTime` and `maxCreationTime` should be +// timestamps encoded as a string in the RFC 3339 +// (https://www.ietf.org/rfc/rfc3339.txt) format. The valid values for +// `transferStatuses` are case-insensitive: IN_PROGRESS, PAUSED, +// SUCCESS, FAILED, and ABORTED. // - name: The name of the type being listed; must be // `transferOperations`. func (r *TransferOperationsService) List(name string, filter string) *TransferOperationsListCall { @@ -4901,7 +4699,7 @@ func (c *TransferOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOper // ], // "parameters": { // "filter": { - // "description": "Required. A list of query parameters specified as JSON text in the form of: `{\"projectId\":\"my_project_id\", \"jobNames\":[\"jobid1\",\"jobid2\",...], \"operationNames\":[\"opid1\",\"opid2\",...], \"transferStatuses\":[\"status1\",\"status2\",...]}` Since `jobNames`, `operationNames`, and `transferStatuses` support multiple values, they must be specified with array notation. `projectId` is required. `jobNames`, `operationNames`, and `transferStatuses` are optional. The valid values for `transferStatuses` are case-insensitive: IN_PROGRESS, PAUSED, SUCCESS, FAILED, and ABORTED.", + // "description": "Required. A list of query parameters specified as JSON text in the form of: `{\"projectId\":\"my_project_id\", \"jobNames\":[\"jobid1\",\"jobid2\",...], \"jobNamePattern\": \"job_name_pattern\", \"operationNames\":[\"opid1\",\"opid2\",...], \"operationNamePattern\": \"operation_name_pattern\", \"minCreationTime\": \"min_creation_time\", \"maxCreationTime\": \"max_creation_time\", \"transferStatuses\":[\"status1\",\"status2\",...]}` Since `jobNames`, `operationNames`, and `transferStatuses` support multiple values, they must be specified with array notation. `projectId` is the only argument that is required. If specified, `jobNamePattern` and `operationNamePattern` must match the full job or operation name respectively. '*' is a wildcard matching 0 or more characters. `minCreationTime` and `maxCreationTime` should be timestamps encoded as a string in the [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. The valid values for `transferStatuses` are case-insensitive: IN_PROGRESS, PAUSED, SUCCESS, FAILED, and ABORTED.", // "location": "query", // "required": true, // "type": "string"