From 15144161d1f79d161aaf14a2fdbbbf2ec238b5c5 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 23 Jun 2022 07:11:58 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- .../v1/accesscontextmanager-api.json | 4 +- .../v1/accesscontextmanager-gen.go | 8 +- admin/directory/v1/admin-api.json | 4 +- admin/directory/v1/admin-gen.go | 14 +- api-list.json | 2 +- artifactregistry/v1/artifactregistry-api.json | 375 ++- artifactregistry/v1/artifactregistry-gen.go | 2411 +++++++++++++---- .../v3/cloudresourcemanager-api.json | 8 +- .../v3/cloudresourcemanager-gen.go | 10 +- connectors/v1/connectors-api.json | 18 +- connectors/v1/connectors-gen.go | 23 +- firebase/v1beta1/firebase-api.json | 14 +- firebase/v1beta1/firebase-gen.go | 20 +- .../v1alpha1/prod_tt_sasportal-api.json | 236 +- .../v1alpha1/prod_tt_sasportal-gen.go | 239 +- run/v1alpha1/run-api.json | 10 +- run/v1alpha1/run-gen.go | 22 +- sasportal/v1alpha1/sasportal-api.json | 82 +- sasportal/v1alpha1/sasportal-gen.go | 85 + secretmanager/v1/secretmanager-api.json | 10 +- secretmanager/v1/secretmanager-gen.go | 11 + .../v1/servicemanagement-api.json | 29 +- servicemanagement/v1/servicemanagement-gen.go | 29 +- sts/v1/sts-api.json | 4 +- sts/v1/sts-gen.go | 3 +- sts/v1beta/sts-api.json | 4 +- sts/v1beta/sts-gen.go | 3 +- vmmigration/v1/vmmigration-api.json | 7 +- vmmigration/v1/vmmigration-gen.go | 30 +- vmmigration/v1alpha1/vmmigration-api.json | 7 +- vmmigration/v1alpha1/vmmigration-gen.go | 30 +- 31 files changed, 2913 insertions(+), 839 deletions(-) diff --git a/accesscontextmanager/v1/accesscontextmanager-api.json b/accesscontextmanager/v1/accesscontextmanager-api.json index 660e28243a8..b79f8270695 100644 --- a/accesscontextmanager/v1/accesscontextmanager-api.json +++ b/accesscontextmanager/v1/accesscontextmanager-api.json @@ -1083,7 +1083,7 @@ } } }, - "revision": "20220527", + "revision": "20220620", "rootUrl": "https://accesscontextmanager.googleapis.com/", "schemas": { "AccessContextManagerOperationMetadata": { @@ -1462,7 +1462,7 @@ "id": "EgressTo", "properties": { "externalResources": { - "description": "A list of external resources that are allowed to be accessed. A request matches if it contains an external resource in this list (Example: s3://bucket/path). Currently '*' is not allowed.", + "description": "A list of external resources that are allowed to be accessed. Only AWS and Azure resources are supported. For Amazon S3, the supported format is s3://BUCKET_NAME. For Azure Storage, the supported format is azure://myaccount.blob.core.windows.net/CONTAINER_NAME. A request matches if it contains an external resource in this list (Example: s3://bucket/path). Currently '*' is not allowed.", "items": { "type": "string" }, diff --git a/accesscontextmanager/v1/accesscontextmanager-gen.go b/accesscontextmanager/v1/accesscontextmanager-gen.go index 2053141d976..8b1bafbf5b0 100644 --- a/accesscontextmanager/v1/accesscontextmanager-gen.go +++ b/accesscontextmanager/v1/accesscontextmanager-gen.go @@ -937,8 +937,12 @@ func (s *EgressPolicy) MarshalJSON() ([]byte, error) { // in order to be allowed egress out of the perimeter. type EgressTo struct { // ExternalResources: A list of external resources that are allowed to - // be accessed. A request matches if it contains an external resource in - // this list (Example: s3://bucket/path). Currently '*' is not allowed. + // be accessed. Only AWS and Azure resources are supported. For Amazon + // S3, the supported format is s3://BUCKET_NAME. For Azure Storage, the + // supported format is + // azure://myaccount.blob.core.windows.net/CONTAINER_NAME. A request + // matches if it contains an external resource in this list (Example: + // s3://bucket/path). Currently '*' is not allowed. ExternalResources []string `json:"externalResources,omitempty"` // Operations: A list of ApiOperations allowed to be performed by the diff --git a/admin/directory/v1/admin-api.json b/admin/directory/v1/admin-api.json index 78c8774fcd9..124a8e4f7e5 100644 --- a/admin/directory/v1/admin-api.json +++ b/admin/directory/v1/admin-api.json @@ -4407,7 +4407,7 @@ } } }, - "revision": "20220614", + "revision": "20220621", "rootUrl": "https://admin.googleapis.com/", "schemas": { "Alias": { @@ -6999,7 +6999,7 @@ "type": "any" }, "hashFunction": { - "description": "Stores the hash format of the password property. We recommend sending the `password` property value as a base 16 bit hexadecimal-encoded hash value. The following `hashFunction` values are allowed: * `DES` * `MD5` - hash prefix is `$1$` * `SHA2-256` - hash prefix is `$5$` * `SHA2-512` - hash prefix is `$6$` If rounds are specified as part of the prefix, they must be 10,000 or fewer.", + "description": "Stores the hash format of the `password` property. The following `hashFunction` values are allowed: * `MD5` - Accepts simple hex-encoded values. * `SHA1` - Accepts simple hex-encoded values. * `crypt` - Compliant with the [C crypt library](https://en.wikipedia.org/wiki/Crypt_%28C%29). Supports the DES, MD5 (hash prefix `$1$`), SHA-256 (hash prefix `$5$`), and SHA-512 (hash prefix `$6$`) hash algorithms. If rounds are specified as part of the prefix, they must be 10,000 or fewer.", "type": "string" }, "id": { diff --git a/admin/directory/v1/admin-gen.go b/admin/directory/v1/admin-gen.go index 8e62af3e049..3edac477b1d 100644 --- a/admin/directory/v1/admin-gen.go +++ b/admin/directory/v1/admin-gen.go @@ -4554,12 +4554,14 @@ type User struct { // field is 1Kb. Gender interface{} `json:"gender,omitempty"` - // HashFunction: Stores the hash format of the password property. We - // recommend sending the `password` property value as a base 16 bit - // hexadecimal-encoded hash value. The following `hashFunction` values - // are allowed: * `DES` * `MD5` - hash prefix is `$1$` * `SHA2-256` - - // hash prefix is `$5$` * `SHA2-512` - hash prefix is `$6$` If rounds - // are specified as part of the prefix, they must be 10,000 or fewer. + // HashFunction: Stores the hash format of the `password` property. The + // following `hashFunction` values are allowed: * `MD5` - Accepts simple + // hex-encoded values. * `SHA1` - Accepts simple hex-encoded values. * + // `crypt` - Compliant with the C crypt library + // (https://en.wikipedia.org/wiki/Crypt_%28C%29). Supports the DES, MD5 + // (hash prefix `$1$`), SHA-256 (hash prefix `$5$`), and SHA-512 (hash + // prefix `$6$`) hash algorithms. If rounds are specified as part of the + // prefix, they must be 10,000 or fewer. HashFunction string `json:"hashFunction,omitempty"` // Id: The unique ID for the user. A user `id` can be used as a user diff --git a/api-list.json b/api-list.json index 2cdb7084075..6941d5837f4 100644 --- a/api-list.json +++ b/api-list.json @@ -577,7 +577,7 @@ "name": "baremetalsolution", "version": "v1alpha1", "title": "Bare Metal Solution API", - "description": "Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center.", + "description": "Bare Metal Solution provides hardware to run specialized workloads with low latency on Google Cloud.", "discoveryRestUrl": "https://baremetalsolution.googleapis.com/$discovery/rest?version=v1alpha1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", diff --git a/artifactregistry/v1/artifactregistry-api.json b/artifactregistry/v1/artifactregistry-api.json index 0dbb21082f3..1c667605339 100644 --- a/artifactregistry/v1/artifactregistry-api.json +++ b/artifactregistry/v1/artifactregistry-api.json @@ -738,6 +738,140 @@ } } }, + "mavenArtifacts": { + "methods": { + "get": { + "description": "Gets a maven artifact.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/mavenArtifacts/{mavenArtifactsId}", + "httpMethod": "GET", + "id": "artifactregistry.projects.locations.repositories.mavenArtifacts.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the maven artifact.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/mavenArtifacts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "MavenArtifact" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "list": { + "description": "Lists maven artifacts.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/mavenArtifacts", + "httpMethod": "GET", + "id": "artifactregistry.projects.locations.repositories.mavenArtifacts.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of artifacts to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The next_page_token value returned from a previous list request, if any.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the parent resource whose maven artifacts will be listed.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/mavenArtifacts", + "response": { + "$ref": "ListMavenArtifactsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + } + }, + "npmPackages": { + "methods": { + "get": { + "description": "Gets a npm package.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/npmPackages/{npmPackagesId}", + "httpMethod": "GET", + "id": "artifactregistry.projects.locations.repositories.npmPackages.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the npm package.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/npmPackages/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "NpmPackage" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "list": { + "description": "Lists npm packages.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/npmPackages", + "httpMethod": "GET", + "id": "artifactregistry.projects.locations.repositories.npmPackages.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of artifacts to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The next_page_token value returned from a previous list request, if any.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the parent resource whose npm packages will be listed.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/npmPackages", + "response": { + "$ref": "ListNpmPackagesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + } + }, "packages": { "methods": { "delete": { @@ -1128,6 +1262,73 @@ } } }, + "pythonPackages": { + "methods": { + "get": { + "description": "Gets a python package.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/pythonPackages/{pythonPackagesId}", + "httpMethod": "GET", + "id": "artifactregistry.projects.locations.repositories.pythonPackages.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the python package.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/pythonPackages/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "PythonPackage" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "list": { + "description": "Lists python packages.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/pythonPackages", + "httpMethod": "GET", + "id": "artifactregistry.projects.locations.repositories.pythonPackages.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of artifacts to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The next_page_token value returned from a previous list request, if any.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the parent resource whose python packages will be listed.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/pythonPackages", + "response": { + "$ref": "ListPythonPackagesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + } + }, "yumArtifacts": { "methods": { "import": { @@ -1207,7 +1408,7 @@ } } }, - "revision": "20220506", + "revision": "20220621", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "AptArtifact": { @@ -1623,6 +1824,42 @@ }, "type": "object" }, + "ListMavenArtifactsResponse": { + "description": "The response from listing maven artifacts.", + "id": "ListMavenArtifactsResponse", + "properties": { + "mavenArtifacts": { + "description": "The maven artifacts returned.", + "items": { + "$ref": "MavenArtifact" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The token to retrieve the next page of artifacts, or empty if there are no more artifacts to return.", + "type": "string" + } + }, + "type": "object" + }, + "ListNpmPackagesResponse": { + "description": "The response from listing npm packages.", + "id": "ListNpmPackagesResponse", + "properties": { + "nextPageToken": { + "description": "The token to retrieve the next page of artifacts, or empty if there are no more artifacts to return.", + "type": "string" + }, + "npmPackages": { + "description": "The npm packages returned.", + "items": { + "$ref": "NpmPackage" + }, + "type": "array" + } + }, + "type": "object" + }, "ListPackagesResponse": { "description": "The response from listing packages.", "id": "ListPackagesResponse", @@ -1641,6 +1878,24 @@ }, "type": "object" }, + "ListPythonPackagesResponse": { + "description": "The response from listing python packages.", + "id": "ListPythonPackagesResponse", + "properties": { + "nextPageToken": { + "description": "The token to retrieve the next page of artifacts, or empty if there are no more artifacts to return.", + "type": "string" + }, + "pythonPackages": { + "description": "The python packages returned.", + "items": { + "$ref": "PythonPackage" + }, + "type": "array" + } + }, + "type": "object" + }, "ListRepositoriesResponse": { "description": "The response from listing repositories.", "id": "ListRepositoriesResponse", @@ -1729,6 +1984,45 @@ }, "type": "object" }, + "MavenArtifact": { + "description": "MavenArtifact represents a maven artifact.", + "id": "MavenArtifact", + "properties": { + "artifactId": { + "description": "Artifact ID for the artifact.", + "type": "string" + }, + "createTime": { + "description": "Output only. Time the artifact was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "groupId": { + "description": "Group ID for the artifact. Example: com.google.guava", + "type": "string" + }, + "name": { + "description": "Required. registry_location, project_id, repository_name and maven_artifact forms a unique artifact For example, \"projects/test-project/locations/us-west4/repositories/test-repo/mavenArtifacts/ com.google.guava:guava:31.0-jre\", where \"us-west4\" is the registry_location, \"test-project\" is the project_id, \"test-repo\" is the repository_name and \"com.google.guava:guava:31.0-jre\" is the maven artifact.", + "type": "string" + }, + "pomUri": { + "description": "Required. URL to access the pom file of the artifact. Example: us-west4-maven.pkg.dev/test-project/test-repo/com/google/guava/guava/31.0/guava-31.0.pom", + "type": "string" + }, + "updateTime": { + "description": "Output only. Time the artifact was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "version": { + "description": "Version of this artifact.", + "type": "string" + } + }, + "type": "object" + }, "MavenRepositoryConfig": { "description": "MavenRepositoryConfig is maven related repository details. Provides additional configuration details for repositories of the maven format type.", "id": "MavenRepositoryConfig", @@ -1754,6 +2048,44 @@ }, "type": "object" }, + "NpmPackage": { + "description": "NpmPackage represents an npm artifact.", + "id": "NpmPackage", + "properties": { + "createTime": { + "description": "Output only. Time the package was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Required. registry_location, project_id, repository_name and npm_package forms a unique package For example, \"projects/test-project/locations/us-west4/repositories/test-repo/npmPackages/ npm_test:1.0.0\", where \"us-west4\" is the registry_location, \"test-project\" is the project_id, \"test-repo\" is the repository_name and npm_test:1.0.0\" is the npm package.", + "type": "string" + }, + "packageName": { + "description": "Package for the artifact.", + "type": "string" + }, + "tags": { + "description": "Tags attached to this package.", + "items": { + "type": "string" + }, + "type": "array" + }, + "updateTime": { + "description": "Output only. Time the package was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "version": { + "description": "Version of this package.", + "type": "string" + } + }, + "type": "object" + }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", @@ -1871,6 +2203,41 @@ }, "type": "object" }, + "PythonPackage": { + "description": "PythonPackage represents a python artifact.", + "id": "PythonPackage", + "properties": { + "createTime": { + "description": "Output only. Time the package was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Required. registry_location, project_id, repository_name and python_package forms a unique package name:`projects//locations//repository//pythonPackages/`. For example, \"projects/test-project/locations/us-west4/repositories/test-repo/pythonPackages/ python_package:1.0.0\", where \"us-west4\" is the registry_location, \"test-project\" is the project_id, \"test-repo\" is the repository_name and python_package:1.0.0\" is the python package.", + "type": "string" + }, + "packageName": { + "description": "Package for the artifact.", + "type": "string" + }, + "updateTime": { + "description": "Output only. Time the package was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "uri": { + "description": "Required. URL to access the package. Example: us-west4-python.pkg.dev/test-project/test-repo/python_package/file-name-1.0.0.tar.gz", + "type": "string" + }, + "version": { + "description": "Version of this package.", + "type": "string" + } + }, + "type": "object" + }, "Repository": { "description": "A Repository for storing artifacts with a specific format.", "id": "Repository", @@ -1893,7 +2260,8 @@ "NPM", "APT", "YUM", - "PYTHON" + "PYTHON", + "KFP" ], "enumDescriptions": [ "Unspecified package format.", @@ -1902,7 +2270,8 @@ "NPM package format.", "APT package format.", "YUM package format.", - "Python package format." + "Python package format.", + "Kubeflow Pipelines package format." ], "type": "string" }, diff --git a/artifactregistry/v1/artifactregistry-gen.go b/artifactregistry/v1/artifactregistry-gen.go index 2da71c60c85..bd3fbc18ab9 100644 --- a/artifactregistry/v1/artifactregistry-gen.go +++ b/artifactregistry/v1/artifactregistry-gen.go @@ -187,7 +187,10 @@ func NewProjectsLocationsRepositoriesService(s *Service) *ProjectsLocationsRepos rs.AptArtifacts = NewProjectsLocationsRepositoriesAptArtifactsService(s) rs.DockerImages = NewProjectsLocationsRepositoriesDockerImagesService(s) rs.Files = NewProjectsLocationsRepositoriesFilesService(s) + rs.MavenArtifacts = NewProjectsLocationsRepositoriesMavenArtifactsService(s) + rs.NpmPackages = NewProjectsLocationsRepositoriesNpmPackagesService(s) rs.Packages = NewProjectsLocationsRepositoriesPackagesService(s) + rs.PythonPackages = NewProjectsLocationsRepositoriesPythonPackagesService(s) rs.YumArtifacts = NewProjectsLocationsRepositoriesYumArtifactsService(s) return rs } @@ -201,8 +204,14 @@ type ProjectsLocationsRepositoriesService struct { Files *ProjectsLocationsRepositoriesFilesService + MavenArtifacts *ProjectsLocationsRepositoriesMavenArtifactsService + + NpmPackages *ProjectsLocationsRepositoriesNpmPackagesService + Packages *ProjectsLocationsRepositoriesPackagesService + PythonPackages *ProjectsLocationsRepositoriesPythonPackagesService + YumArtifacts *ProjectsLocationsRepositoriesYumArtifactsService } @@ -233,6 +242,24 @@ type ProjectsLocationsRepositoriesFilesService struct { s *Service } +func NewProjectsLocationsRepositoriesMavenArtifactsService(s *Service) *ProjectsLocationsRepositoriesMavenArtifactsService { + rs := &ProjectsLocationsRepositoriesMavenArtifactsService{s: s} + return rs +} + +type ProjectsLocationsRepositoriesMavenArtifactsService struct { + s *Service +} + +func NewProjectsLocationsRepositoriesNpmPackagesService(s *Service) *ProjectsLocationsRepositoriesNpmPackagesService { + rs := &ProjectsLocationsRepositoriesNpmPackagesService{s: s} + return rs +} + +type ProjectsLocationsRepositoriesNpmPackagesService struct { + s *Service +} + func NewProjectsLocationsRepositoriesPackagesService(s *Service) *ProjectsLocationsRepositoriesPackagesService { rs := &ProjectsLocationsRepositoriesPackagesService{s: s} rs.Tags = NewProjectsLocationsRepositoriesPackagesTagsService(s) @@ -266,6 +293,15 @@ type ProjectsLocationsRepositoriesPackagesVersionsService struct { s *Service } +func NewProjectsLocationsRepositoriesPythonPackagesService(s *Service) *ProjectsLocationsRepositoriesPythonPackagesService { + rs := &ProjectsLocationsRepositoriesPythonPackagesService{s: s} + return rs +} + +type ProjectsLocationsRepositoriesPythonPackagesService struct { + s *Service +} + func NewProjectsLocationsRepositoriesYumArtifactsService(s *Service) *ProjectsLocationsRepositoriesYumArtifactsService { rs := &ProjectsLocationsRepositoriesYumArtifactsService{s: s} return rs @@ -1030,6 +1066,80 @@ func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListMavenArtifactsResponse: The response from listing maven +// artifacts. +type ListMavenArtifactsResponse struct { + // MavenArtifacts: The maven artifacts returned. + MavenArtifacts []*MavenArtifact `json:"mavenArtifacts,omitempty"` + + // NextPageToken: The token to retrieve the next page of artifacts, or + // empty if there are no more artifacts to return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "MavenArtifacts") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MavenArtifacts") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ListMavenArtifactsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListMavenArtifactsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListNpmPackagesResponse: The response from listing npm packages. +type ListNpmPackagesResponse struct { + // NextPageToken: The token to retrieve the next page of artifacts, or + // empty if there are no more artifacts to return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // NpmPackages: The npm packages returned. + NpmPackages []*NpmPackage `json:"npmPackages,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListNpmPackagesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListNpmPackagesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListPackagesResponse: The response from listing packages. type ListPackagesResponse struct { // NextPageToken: The token to retrieve the next page of packages, or @@ -1066,6 +1176,43 @@ func (s *ListPackagesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListPythonPackagesResponse: The response from listing python +// packages. +type ListPythonPackagesResponse struct { + // NextPageToken: The token to retrieve the next page of artifacts, or + // empty if there are no more artifacts to return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // PythonPackages: The python packages returned. + PythonPackages []*PythonPackage `json:"pythonPackages,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListPythonPackagesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListPythonPackagesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListRepositoriesResponse: The response from listing repositories. type ListRepositoriesResponse struct { // NextPageToken: The token to retrieve the next page of repositories, @@ -1224,6 +1371,65 @@ func (s *Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MavenArtifact: MavenArtifact represents a maven artifact. +type MavenArtifact struct { + // ArtifactId: Artifact ID for the artifact. + ArtifactId string `json:"artifactId,omitempty"` + + // CreateTime: Output only. Time the artifact was created. + CreateTime string `json:"createTime,omitempty"` + + // GroupId: Group ID for the artifact. Example: com.google.guava + GroupId string `json:"groupId,omitempty"` + + // Name: Required. registry_location, project_id, repository_name and + // maven_artifact forms a unique artifact For example, + // "projects/test-project/locations/us-west4/repositories/test-repo/maven + // Artifacts/ com.google.guava:guava:31.0-jre", where "us-west4" is the + // registry_location, "test-project" is the project_id, "test-repo" is + // the repository_name and "com.google.guava:guava:31.0-jre" is the + // maven artifact. + Name string `json:"name,omitempty"` + + // PomUri: Required. URL to access the pom file of the artifact. + // Example: + // us-west4-maven.pkg.dev/test-project/test-repo/com/google/guava/guava/3 + // 1.0/guava-31.0.pom + PomUri string `json:"pomUri,omitempty"` + + // UpdateTime: Output only. Time the artifact was updated. + UpdateTime string `json:"updateTime,omitempty"` + + // Version: Version of this artifact. + Version string `json:"version,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ArtifactId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ArtifactId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MavenArtifact) MarshalJSON() ([]byte, error) { + type NoMethod MavenArtifact + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // MavenRepositoryConfig: MavenRepositoryConfig is maven related // repository details. Provides additional configuration details for // repositories of the maven format type. @@ -1269,6 +1475,58 @@ func (s *MavenRepositoryConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// NpmPackage: NpmPackage represents an npm artifact. +type NpmPackage struct { + // CreateTime: Output only. Time the package was created. + CreateTime string `json:"createTime,omitempty"` + + // Name: Required. registry_location, project_id, repository_name and + // npm_package forms a unique package For example, + // "projects/test-project/locations/us-west4/repositories/test-repo/npmPa + // ckages/ npm_test:1.0.0", where "us-west4" is the registry_location, + // "test-project" is the project_id, "test-repo" is the repository_name + // and npm_test:1.0.0" is the npm package. + Name string `json:"name,omitempty"` + + // PackageName: Package for the artifact. + PackageName string `json:"packageName,omitempty"` + + // Tags: Tags attached to this package. + Tags []string `json:"tags,omitempty"` + + // UpdateTime: Output only. Time the package was updated. + UpdateTime string `json:"updateTime,omitempty"` + + // Version: Version of this package. + Version string `json:"version,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *NpmPackage) MarshalJSON() ([]byte, error) { + type NoMethod NpmPackage + 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 { @@ -1535,6 +1793,61 @@ func (s *ProjectSettings) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// PythonPackage: PythonPackage represents a python artifact. +type PythonPackage struct { + // CreateTime: Output only. Time the package was created. + CreateTime string `json:"createTime,omitempty"` + + // Name: Required. registry_location, project_id, repository_name and + // python_package forms a unique package + // name:`projects//locations//repository//pythonPackages/`. For example, + // "projects/test-project/locations/us-west4/repositories/test-repo/pytho + // nPackages/ python_package:1.0.0", where "us-west4" is the + // registry_location, "test-project" is the project_id, "test-repo" is + // the repository_name and python_package:1.0.0" is the python package. + Name string `json:"name,omitempty"` + + // PackageName: Package for the artifact. + PackageName string `json:"packageName,omitempty"` + + // UpdateTime: Output only. Time the package was updated. + UpdateTime string `json:"updateTime,omitempty"` + + // Uri: Required. URL to access the package. Example: + // us-west4-python.pkg.dev/test-project/test-repo/python_package/file-nam + // e-1.0.0.tar.gz + Uri string `json:"uri,omitempty"` + + // Version: Version of this package. + Version string `json:"version,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PythonPackage) MarshalJSON() ([]byte, error) { + type NoMethod PythonPackage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Repository: A Repository for storing artifacts with a specific // format. type Repository struct { @@ -1554,6 +1867,7 @@ type Repository struct { // "APT" - APT package format. // "YUM" - YUM package format. // "PYTHON" - Python package format. + // "KFP" - Kubeflow Pipelines package format. Format string `json:"format,omitempty"` // KmsKeyName: The Cloud KMS resource name of the customer managed @@ -5193,22 +5507,22 @@ func (c *ProjectsLocationsRepositoriesFilesListCall) Pages(ctx context.Context, } } -// method id "artifactregistry.projects.locations.repositories.packages.delete": +// method id "artifactregistry.projects.locations.repositories.mavenArtifacts.get": -type ProjectsLocationsRepositoriesPackagesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsRepositoriesMavenArtifactsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a package and all of its versions and tags. The -// returned operation will complete once the package has been deleted. +// Get: Gets a maven artifact. // -// - name: The name of the package to delete. -func (r *ProjectsLocationsRepositoriesPackagesService) Delete(name string) *ProjectsLocationsRepositoriesPackagesDeleteCall { - c := &ProjectsLocationsRepositoriesPackagesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the maven artifact. +func (r *ProjectsLocationsRepositoriesMavenArtifactsService) Get(name string) *ProjectsLocationsRepositoriesMavenArtifactsGetCall { + c := &ProjectsLocationsRepositoriesMavenArtifactsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -5216,41 +5530,54 @@ func (r *ProjectsLocationsRepositoriesPackagesService) Delete(name string) *Proj // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsRepositoriesPackagesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesDeleteCall { +func (c *ProjectsLocationsRepositoriesMavenArtifactsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesMavenArtifactsGetCall { 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 *ProjectsLocationsRepositoriesMavenArtifactsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesMavenArtifactsGetCall { + 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 *ProjectsLocationsRepositoriesPackagesDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesDeleteCall { +func (c *ProjectsLocationsRepositoriesMavenArtifactsGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesMavenArtifactsGetCall { 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 *ProjectsLocationsRepositoriesPackagesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsRepositoriesMavenArtifactsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRepositoriesPackagesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRepositoriesMavenArtifactsGetCall) 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("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -5261,14 +5588,14 @@ func (c *ProjectsLocationsRepositoriesPackagesDeleteCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "artifactregistry.projects.locations.repositories.packages.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx +// Do executes the "artifactregistry.projects.locations.repositories.mavenArtifacts.get" call. +// Exactly one of *MavenArtifact or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsRepositoriesPackagesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *MavenArtifact.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 *ProjectsLocationsRepositoriesMavenArtifactsGetCall) Do(opts ...googleapi.CallOption) (*MavenArtifact, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5287,7 +5614,7 @@ func (c *ProjectsLocationsRepositoriesPackagesDeleteCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Operation{ + ret := &MavenArtifact{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5299,36 +5626,231 @@ func (c *ProjectsLocationsRepositoriesPackagesDeleteCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Deletes a package and all of its versions and tags. The returned operation will complete once the package has been deleted.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}", - // "httpMethod": "DELETE", - // "id": "artifactregistry.projects.locations.repositories.packages.delete", + // "description": "Gets a maven artifact.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/mavenArtifacts/{mavenArtifactsId}", + // "httpMethod": "GET", + // "id": "artifactregistry.projects.locations.repositories.mavenArtifacts.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the package to delete.", + // "description": "Required. The name of the maven artifact.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/mavenArtifacts/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "Operation" + // "$ref": "MavenArtifact" // }, // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" // ] // } } -// method id "artifactregistry.projects.locations.repositories.packages.get": +// method id "artifactregistry.projects.locations.repositories.mavenArtifacts.list": -type ProjectsLocationsRepositoriesPackagesGetCall struct { +type ProjectsLocationsRepositoriesMavenArtifactsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists maven artifacts. +// +// - parent: The name of the parent resource whose maven artifacts will +// be listed. +func (r *ProjectsLocationsRepositoriesMavenArtifactsService) List(parent string) *ProjectsLocationsRepositoriesMavenArtifactsListCall { + c := &ProjectsLocationsRepositoriesMavenArtifactsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of artifacts to return. +func (c *ProjectsLocationsRepositoriesMavenArtifactsListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesMavenArtifactsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// next_page_token value returned from a previous list request, if any. +func (c *ProjectsLocationsRepositoriesMavenArtifactsListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesMavenArtifactsListCall { + 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 *ProjectsLocationsRepositoriesMavenArtifactsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesMavenArtifactsListCall { + 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 *ProjectsLocationsRepositoriesMavenArtifactsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesMavenArtifactsListCall { + 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 *ProjectsLocationsRepositoriesMavenArtifactsListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesMavenArtifactsListCall { + 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 *ProjectsLocationsRepositoriesMavenArtifactsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesMavenArtifactsListCall) 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}/mavenArtifacts") + 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 "artifactregistry.projects.locations.repositories.mavenArtifacts.list" call. +// Exactly one of *ListMavenArtifactsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListMavenArtifactsResponse.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 *ProjectsLocationsRepositoriesMavenArtifactsListCall) Do(opts ...googleapi.CallOption) (*ListMavenArtifactsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListMavenArtifactsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists maven artifacts.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/mavenArtifacts", + // "httpMethod": "GET", + // "id": "artifactregistry.projects.locations.repositories.mavenArtifacts.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of artifacts to return.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The next_page_token value returned from a previous list request, if any.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The name of the parent resource whose maven artifacts will be listed.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/mavenArtifacts", + // "response": { + // "$ref": "ListMavenArtifactsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// 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 *ProjectsLocationsRepositoriesMavenArtifactsListCall) Pages(ctx context.Context, f func(*ListMavenArtifactsResponse) 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 "artifactregistry.projects.locations.repositories.npmPackages.get": + +type ProjectsLocationsRepositoriesNpmPackagesGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -5337,11 +5859,11 @@ type ProjectsLocationsRepositoriesPackagesGetCall struct { header_ http.Header } -// Get: Gets a package. +// Get: Gets a npm package. // -// - name: The name of the package to retrieve. -func (r *ProjectsLocationsRepositoriesPackagesService) Get(name string) *ProjectsLocationsRepositoriesPackagesGetCall { - c := &ProjectsLocationsRepositoriesPackagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the npm package. +func (r *ProjectsLocationsRepositoriesNpmPackagesService) Get(name string) *ProjectsLocationsRepositoriesNpmPackagesGetCall { + c := &ProjectsLocationsRepositoriesNpmPackagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -5349,7 +5871,7 @@ func (r *ProjectsLocationsRepositoriesPackagesService) Get(name string) *Project // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsRepositoriesPackagesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesGetCall { +func (c *ProjectsLocationsRepositoriesNpmPackagesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesNpmPackagesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5359,7 +5881,7 @@ func (c *ProjectsLocationsRepositoriesPackagesGetCall) Fields(s ...googleapi.Fie // 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 *ProjectsLocationsRepositoriesPackagesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPackagesGetCall { +func (c *ProjectsLocationsRepositoriesNpmPackagesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesNpmPackagesGetCall { c.ifNoneMatch_ = entityTag return c } @@ -5367,21 +5889,21 @@ func (c *ProjectsLocationsRepositoriesPackagesGetCall) IfNoneMatch(entityTag str // 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 *ProjectsLocationsRepositoriesPackagesGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesGetCall { +func (c *ProjectsLocationsRepositoriesNpmPackagesGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesNpmPackagesGetCall { 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 *ProjectsLocationsRepositoriesPackagesGetCall) Header() http.Header { +func (c *ProjectsLocationsRepositoriesNpmPackagesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRepositoriesPackagesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRepositoriesNpmPackagesGetCall) 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_ { @@ -5407,14 +5929,14 @@ func (c *ProjectsLocationsRepositoriesPackagesGetCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "artifactregistry.projects.locations.repositories.packages.get" call. -// Exactly one of *Package or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Package.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 *ProjectsLocationsRepositoriesPackagesGetCall) Do(opts ...googleapi.CallOption) (*Package, error) { +// Do executes the "artifactregistry.projects.locations.repositories.npmPackages.get" call. +// Exactly one of *NpmPackage or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *NpmPackage.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 *ProjectsLocationsRepositoriesNpmPackagesGetCall) Do(opts ...googleapi.CallOption) (*NpmPackage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5433,7 +5955,7 @@ func (c *ProjectsLocationsRepositoriesPackagesGetCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Package{ + ret := &NpmPackage{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5445,25 +5967,25 @@ func (c *ProjectsLocationsRepositoriesPackagesGetCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Gets a package.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}", + // "description": "Gets a npm package.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/npmPackages/{npmPackagesId}", // "httpMethod": "GET", - // "id": "artifactregistry.projects.locations.repositories.packages.get", + // "id": "artifactregistry.projects.locations.repositories.npmPackages.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the package to retrieve.", + // "description": "Required. The name of the npm package.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/npmPackages/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "Package" + // "$ref": "NpmPackage" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -5473,9 +5995,9 @@ func (c *ProjectsLocationsRepositoriesPackagesGetCall) Do(opts ...googleapi.Call } -// method id "artifactregistry.projects.locations.repositories.packages.list": +// method id "artifactregistry.projects.locations.repositories.npmPackages.list": -type ProjectsLocationsRepositoriesPackagesListCall struct { +type ProjectsLocationsRepositoriesNpmPackagesListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -5484,26 +6006,26 @@ type ProjectsLocationsRepositoriesPackagesListCall struct { header_ http.Header } -// List: Lists packages. +// List: Lists npm packages. // -// - parent: The name of the parent resource whose packages will be +// - parent: The name of the parent resource whose npm packages will be // listed. -func (r *ProjectsLocationsRepositoriesPackagesService) List(parent string) *ProjectsLocationsRepositoriesPackagesListCall { - c := &ProjectsLocationsRepositoriesPackagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsRepositoriesNpmPackagesService) List(parent string) *ProjectsLocationsRepositoriesNpmPackagesListCall { + c := &ProjectsLocationsRepositoriesNpmPackagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } // PageSize sets the optional parameter "pageSize": The maximum number -// of packages to return. Maximum page size is 1,000. -func (c *ProjectsLocationsRepositoriesPackagesListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesPackagesListCall { +// of artifacts to return. +func (c *ProjectsLocationsRepositoriesNpmPackagesListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesNpmPackagesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The // next_page_token value returned from a previous list request, if any. -func (c *ProjectsLocationsRepositoriesPackagesListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesPackagesListCall { +func (c *ProjectsLocationsRepositoriesNpmPackagesListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesNpmPackagesListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -5511,7 +6033,7 @@ func (c *ProjectsLocationsRepositoriesPackagesListCall) PageToken(pageToken stri // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsRepositoriesPackagesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesListCall { +func (c *ProjectsLocationsRepositoriesNpmPackagesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesNpmPackagesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5521,7 +6043,7 @@ func (c *ProjectsLocationsRepositoriesPackagesListCall) Fields(s ...googleapi.Fi // 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 *ProjectsLocationsRepositoriesPackagesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPackagesListCall { +func (c *ProjectsLocationsRepositoriesNpmPackagesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesNpmPackagesListCall { c.ifNoneMatch_ = entityTag return c } @@ -5529,21 +6051,21 @@ func (c *ProjectsLocationsRepositoriesPackagesListCall) IfNoneMatch(entityTag st // 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 *ProjectsLocationsRepositoriesPackagesListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesListCall { +func (c *ProjectsLocationsRepositoriesNpmPackagesListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesNpmPackagesListCall { 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 *ProjectsLocationsRepositoriesPackagesListCall) Header() http.Header { +func (c *ProjectsLocationsRepositoriesNpmPackagesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRepositoriesPackagesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRepositoriesNpmPackagesListCall) 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_ { @@ -5556,7 +6078,7 @@ func (c *ProjectsLocationsRepositoriesPackagesListCall) doRequest(alt string) (* var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/packages") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/npmPackages") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -5569,14 +6091,14 @@ func (c *ProjectsLocationsRepositoriesPackagesListCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "artifactregistry.projects.locations.repositories.packages.list" call. -// Exactly one of *ListPackagesResponse or error will be non-nil. Any +// Do executes the "artifactregistry.projects.locations.repositories.npmPackages.list" call. +// Exactly one of *ListNpmPackagesResponse or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either -// *ListPackagesResponse.ServerResponse.Header or (if a response was +// *ListNpmPackagesResponse.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 *ProjectsLocationsRepositoriesPackagesListCall) Do(opts ...googleapi.CallOption) (*ListPackagesResponse, error) { +func (c *ProjectsLocationsRepositoriesNpmPackagesListCall) Do(opts ...googleapi.CallOption) (*ListNpmPackagesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5595,7 +6117,7 @@ func (c *ProjectsLocationsRepositoriesPackagesListCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListPackagesResponse{ + ret := &ListNpmPackagesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5607,16 +6129,16 @@ func (c *ProjectsLocationsRepositoriesPackagesListCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Lists packages.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages", + // "description": "Lists npm packages.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/npmPackages", // "httpMethod": "GET", - // "id": "artifactregistry.projects.locations.repositories.packages.list", + // "id": "artifactregistry.projects.locations.repositories.npmPackages.list", // "parameterOrder": [ // "parent" // ], // "parameters": { // "pageSize": { - // "description": "The maximum number of packages to return. Maximum page size is 1,000.", + // "description": "The maximum number of artifacts to return.", // "format": "int32", // "location": "query", // "type": "integer" @@ -5627,16 +6149,16 @@ func (c *ProjectsLocationsRepositoriesPackagesListCall) Do(opts ...googleapi.Cal // "type": "string" // }, // "parent": { - // "description": "Required. The name of the parent resource whose packages will be listed.", + // "description": "Required. The name of the parent resource whose npm packages will be listed.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/packages", + // "path": "v1/{+parent}/npmPackages", // "response": { - // "$ref": "ListPackagesResponse" + // "$ref": "ListNpmPackagesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -5649,7 +6171,7 @@ func (c *ProjectsLocationsRepositoriesPackagesListCall) Do(opts ...googleapi.Cal // 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 *ProjectsLocationsRepositoriesPackagesListCall) Pages(ctx context.Context, f func(*ListPackagesResponse) error) error { +func (c *ProjectsLocationsRepositoriesNpmPackagesListCall) Pages(ctx context.Context, f func(*ListNpmPackagesResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -5667,39 +6189,30 @@ func (c *ProjectsLocationsRepositoriesPackagesListCall) Pages(ctx context.Contex } } -// method id "artifactregistry.projects.locations.repositories.packages.tags.create": +// method id "artifactregistry.projects.locations.repositories.packages.delete": -type ProjectsLocationsRepositoriesPackagesTagsCreateCall struct { +type ProjectsLocationsRepositoriesPackagesDeleteCall struct { s *Service - parent string - tag *Tag + name string urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Create: Creates a tag. +// Delete: Deletes a package and all of its versions and tags. The +// returned operation will complete once the package has been deleted. // -// - parent: The name of the parent resource where the tag will be -// created. -func (r *ProjectsLocationsRepositoriesPackagesTagsService) Create(parent string, tag *Tag) *ProjectsLocationsRepositoriesPackagesTagsCreateCall { - c := &ProjectsLocationsRepositoriesPackagesTagsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.tag = tag - return c -} - -// TagId sets the optional parameter "tagId": The tag id to use for this -// repository. -func (c *ProjectsLocationsRepositoriesPackagesTagsCreateCall) TagId(tagId string) *ProjectsLocationsRepositoriesPackagesTagsCreateCall { - c.urlParams_.Set("tagId", tagId) +// - name: The name of the package to delete. +func (r *ProjectsLocationsRepositoriesPackagesService) Delete(name string) *ProjectsLocationsRepositoriesPackagesDeleteCall { + c := &ProjectsLocationsRepositoriesPackagesDeleteCall{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 *ProjectsLocationsRepositoriesPackagesTagsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesTagsCreateCall { +func (c *ProjectsLocationsRepositoriesPackagesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5707,21 +6220,21 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsCreateCall) Fields(s ...google // 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 *ProjectsLocationsRepositoriesPackagesTagsCreateCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesTagsCreateCall { +func (c *ProjectsLocationsRepositoriesPackagesDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesDeleteCall { 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 *ProjectsLocationsRepositoriesPackagesTagsCreateCall) Header() http.Header { +func (c *ProjectsLocationsRepositoriesPackagesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRepositoriesPackagesTagsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRepositoriesPackagesDeleteCall) 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_ { @@ -5729,34 +6242,29 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsCreateCall) doRequest(alt stri } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.tag) - 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}/tags") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "artifactregistry.projects.locations.repositories.packages.tags.create" call. -// Exactly one of *Tag or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either -// *Tag.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 *ProjectsLocationsRepositoriesPackagesTagsCreateCall) Do(opts ...googleapi.CallOption) (*Tag, error) { +// Do executes the "artifactregistry.projects.locations.repositories.packages.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsRepositoriesPackagesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5775,7 +6283,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsCreateCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Tag{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5787,33 +6295,25 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsCreateCall) Do(opts ...googlea } return ret, nil // { - // "description": "Creates a tag.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/tags", - // "httpMethod": "POST", - // "id": "artifactregistry.projects.locations.repositories.packages.tags.create", + // "description": "Deletes a package and all of its versions and tags. The returned operation will complete once the package has been deleted.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}", + // "httpMethod": "DELETE", + // "id": "artifactregistry.projects.locations.repositories.packages.delete", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "The name of the parent resource where the tag will be created.", + // "name": { + // "description": "Required. The name of the package to delete.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$", // "required": true, // "type": "string" - // }, - // "tagId": { - // "description": "The tag id to use for this repository.", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+parent}/tags", - // "request": { - // "$ref": "Tag" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "Tag" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -5822,21 +6322,22 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsCreateCall) Do(opts ...googlea } -// method id "artifactregistry.projects.locations.repositories.packages.tags.delete": +// method id "artifactregistry.projects.locations.repositories.packages.get": -type ProjectsLocationsRepositoriesPackagesTagsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsRepositoriesPackagesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a tag. +// Get: Gets a package. // -// - name: The name of the tag to delete. -func (r *ProjectsLocationsRepositoriesPackagesTagsService) Delete(name string) *ProjectsLocationsRepositoriesPackagesTagsDeleteCall { - c := &ProjectsLocationsRepositoriesPackagesTagsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the package to retrieve. +func (r *ProjectsLocationsRepositoriesPackagesService) Get(name string) *ProjectsLocationsRepositoriesPackagesGetCall { + c := &ProjectsLocationsRepositoriesPackagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -5844,41 +6345,54 @@ func (r *ProjectsLocationsRepositoriesPackagesTagsService) Delete(name string) * // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsRepositoriesPackagesTagsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesTagsDeleteCall { +func (c *ProjectsLocationsRepositoriesPackagesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesGetCall { 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 *ProjectsLocationsRepositoriesPackagesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPackagesGetCall { + 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 *ProjectsLocationsRepositoriesPackagesTagsDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesTagsDeleteCall { +func (c *ProjectsLocationsRepositoriesPackagesGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesGetCall { 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 *ProjectsLocationsRepositoriesPackagesTagsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsRepositoriesPackagesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRepositoriesPackagesTagsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRepositoriesPackagesGetCall) 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("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -5889,14 +6403,14 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsDeleteCall) doRequest(alt stri return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "artifactregistry.projects.locations.repositories.packages.tags.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// Do executes the "artifactregistry.projects.locations.repositories.packages.get" call. +// Exactly one of *Package or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) +// *Package.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 *ProjectsLocationsRepositoriesPackagesTagsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +func (c *ProjectsLocationsRepositoriesPackagesGetCall) Do(opts ...googleapi.CallOption) (*Package, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5915,7 +6429,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsDeleteCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Empty{ + ret := &Package{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5927,57 +6441,73 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsDeleteCall) Do(opts ...googlea } return ret, nil // { - // "description": "Deletes a tag.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/tags/{tagsId}", - // "httpMethod": "DELETE", - // "id": "artifactregistry.projects.locations.repositories.packages.tags.delete", + // "description": "Gets a package.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}", + // "httpMethod": "GET", + // "id": "artifactregistry.projects.locations.repositories.packages.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the tag to delete.", + // "description": "Required. The name of the package to retrieve.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+/tags/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "Empty" + // "$ref": "Package" // }, // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" // ] // } } -// method id "artifactregistry.projects.locations.repositories.packages.tags.get": +// method id "artifactregistry.projects.locations.repositories.packages.list": -type ProjectsLocationsRepositoriesPackagesTagsGetCall struct { +type ProjectsLocationsRepositoriesPackagesListCall struct { s *Service - name string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Get: Gets a tag. +// List: Lists packages. // -// - name: The name of the tag to retrieve. -func (r *ProjectsLocationsRepositoriesPackagesTagsService) Get(name string) *ProjectsLocationsRepositoriesPackagesTagsGetCall { - c := &ProjectsLocationsRepositoriesPackagesTagsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The name of the parent resource whose packages will be +// listed. +func (r *ProjectsLocationsRepositoriesPackagesService) List(parent string) *ProjectsLocationsRepositoriesPackagesListCall { + c := &ProjectsLocationsRepositoriesPackagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of packages to return. Maximum page size is 1,000. +func (c *ProjectsLocationsRepositoriesPackagesListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesPackagesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// next_page_token value returned from a previous list request, if any. +func (c *ProjectsLocationsRepositoriesPackagesListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesPackagesListCall { + 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 *ProjectsLocationsRepositoriesPackagesTagsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesTagsGetCall { +func (c *ProjectsLocationsRepositoriesPackagesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5987,7 +6517,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsGetCall) Fields(s ...googleapi // 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 *ProjectsLocationsRepositoriesPackagesTagsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPackagesTagsGetCall { +func (c *ProjectsLocationsRepositoriesPackagesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPackagesListCall { c.ifNoneMatch_ = entityTag return c } @@ -5995,21 +6525,21 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsGetCall) IfNoneMatch(entityTag // 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 *ProjectsLocationsRepositoriesPackagesTagsGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesTagsGetCall { +func (c *ProjectsLocationsRepositoriesPackagesListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesListCall { 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 *ProjectsLocationsRepositoriesPackagesTagsGetCall) Header() http.Header { +func (c *ProjectsLocationsRepositoriesPackagesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRepositoriesPackagesTagsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRepositoriesPackagesListCall) 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_ { @@ -6022,7 +6552,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsGetCall) doRequest(alt string) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/packages") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -6030,19 +6560,19 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsGetCall) doRequest(alt string) } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "artifactregistry.projects.locations.repositories.packages.tags.get" call. -// Exactly one of *Tag or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either -// *Tag.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 *ProjectsLocationsRepositoriesPackagesTagsGetCall) Do(opts ...googleapi.CallOption) (*Tag, error) { +// Do executes the "artifactregistry.projects.locations.repositories.packages.list" call. +// Exactly one of *ListPackagesResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListPackagesResponse.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 *ProjectsLocationsRepositoriesPackagesListCall) Do(opts ...googleapi.CallOption) (*ListPackagesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6061,7 +6591,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsGetCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Tag{ + ret := &ListPackagesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6073,25 +6603,36 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsGetCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Gets a tag.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/tags/{tagsId}", + // "description": "Lists packages.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages", // "httpMethod": "GET", - // "id": "artifactregistry.projects.locations.repositories.packages.tags.get", + // "id": "artifactregistry.projects.locations.repositories.packages.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the tag to retrieve.", + // "pageSize": { + // "description": "The maximum number of packages to return. Maximum page size is 1,000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The next_page_token value returned from a previous list request, if any.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The name of the parent resource whose packages will be listed.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+/tags/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/packages", // "response": { - // "$ref": "Tag" + // "$ref": "ListPackagesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -6101,103 +6642,99 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsGetCall) Do(opts ...googleapi. } -// method id "artifactregistry.projects.locations.repositories.packages.tags.list": - -type ProjectsLocationsRepositoriesPackagesTagsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// 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 *ProjectsLocationsRepositoriesPackagesListCall) Pages(ctx context.Context, f func(*ListPackagesResponse) 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) + } } -// List: Lists tags. -// -// - parent: The name of the parent resource whose tags will be listed. -func (r *ProjectsLocationsRepositoriesPackagesTagsService) List(parent string) *ProjectsLocationsRepositoriesPackagesTagsListCall { - c := &ProjectsLocationsRepositoriesPackagesTagsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} +// method id "artifactregistry.projects.locations.repositories.packages.tags.create": -// Filter sets the optional parameter "filter": An expression for -// filtering the results of the request. Filter rules are case -// insensitive. The fields eligible for filtering are: * `version` An -// example of using a filter: * -// `version="projects/p1/locations/us-central1/repositories/repo1/package -// s/pkg1/versions/1.0" --> Tags that are applied to the version `1.0` -// in package `pkg1`. -func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) Filter(filter string) *ProjectsLocationsRepositoriesPackagesTagsListCall { - c.urlParams_.Set("filter", filter) - return c +type ProjectsLocationsRepositoriesPackagesTagsCreateCall struct { + s *Service + parent string + tag *Tag + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// PageSize sets the optional parameter "pageSize": The maximum number -// of tags to return. Maximum page size is 10,000. -func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesPackagesTagsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// Create: Creates a tag. +// +// - parent: The name of the parent resource where the tag will be +// created. +func (r *ProjectsLocationsRepositoriesPackagesTagsService) Create(parent string, tag *Tag) *ProjectsLocationsRepositoriesPackagesTagsCreateCall { + c := &ProjectsLocationsRepositoriesPackagesTagsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.tag = tag return c } -// PageToken sets the optional parameter "pageToken": The -// next_page_token value returned from a previous list request, if any. -func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesPackagesTagsListCall { - c.urlParams_.Set("pageToken", pageToken) +// TagId sets the optional parameter "tagId": The tag id to use for this +// repository. +func (c *ProjectsLocationsRepositoriesPackagesTagsCreateCall) TagId(tagId string) *ProjectsLocationsRepositoriesPackagesTagsCreateCall { + c.urlParams_.Set("tagId", tagId) 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 *ProjectsLocationsRepositoriesPackagesTagsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesTagsListCall { +func (c *ProjectsLocationsRepositoriesPackagesTagsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesTagsCreateCall { 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 *ProjectsLocationsRepositoriesPackagesTagsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPackagesTagsListCall { - 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 *ProjectsLocationsRepositoriesPackagesTagsListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesTagsListCall { +func (c *ProjectsLocationsRepositoriesPackagesTagsCreateCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesTagsCreateCall { 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 *ProjectsLocationsRepositoriesPackagesTagsListCall) Header() http.Header { +func (c *ProjectsLocationsRepositoriesPackagesTagsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRepositoriesPackagesTagsCreateCall) 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 + body, err := googleapi.WithoutDataWrapper.JSONReader(c.tag) + 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}/tags") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -6208,14 +6745,14 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) doRequest(alt string return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "artifactregistry.projects.locations.repositories.packages.tags.list" call. -// Exactly one of *ListTagsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListTagsResponse.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 *ProjectsLocationsRepositoriesPackagesTagsListCall) Do(opts ...googleapi.CallOption) (*ListTagsResponse, error) { +// Do executes the "artifactregistry.projects.locations.repositories.packages.tags.create" call. +// Exactly one of *Tag or error will be non-nil. Any non-2xx status code +// is an error. Response headers are in either +// *Tag.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 *ProjectsLocationsRepositoriesPackagesTagsCreateCall) Do(opts ...googleapi.CallOption) (*Tag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6234,7 +6771,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListTagsResponse{ + ret := &Tag{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6246,108 +6783,64 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) Do(opts ...googleapi } return ret, nil // { - // "description": "Lists tags.", + // "description": "Creates a tag.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/tags", - // "httpMethod": "GET", - // "id": "artifactregistry.projects.locations.repositories.packages.tags.list", + // "httpMethod": "POST", + // "id": "artifactregistry.projects.locations.repositories.packages.tags.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "filter": { - // "description": "An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: * `version` An example of using a filter: * `version=\"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0\"` --\u003e Tags that are applied to the version `1.0` in package `pkg1`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of tags to return. Maximum page size is 10,000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The next_page_token value returned from a previous list request, if any.", - // "location": "query", - // "type": "string" - // }, // "parent": { - // "description": "The name of the parent resource whose tags will be listed.", + // "description": "The name of the parent resource where the tag will be created.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$", // "required": true, // "type": "string" + // }, + // "tagId": { + // "description": "The tag id to use for this repository.", + // "location": "query", + // "type": "string" // } // }, // "path": "v1/{+parent}/tags", + // "request": { + // "$ref": "Tag" + // }, // "response": { - // "$ref": "ListTagsResponse" + // "$ref": "Tag" // }, // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" + // "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 *ProjectsLocationsRepositoriesPackagesTagsListCall) Pages(ctx context.Context, f func(*ListTagsResponse) 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 "artifactregistry.projects.locations.repositories.packages.tags.patch": +// method id "artifactregistry.projects.locations.repositories.packages.tags.delete": -type ProjectsLocationsRepositoriesPackagesTagsPatchCall struct { +type ProjectsLocationsRepositoriesPackagesTagsDeleteCall struct { s *Service name string - tag *Tag urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Patch: Updates a tag. +// Delete: Deletes a tag. // -// - name: The name of the tag, for example: -// "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/ -// tags/tag1". If the package part contains slashes, the slashes are -// escaped. The tag part can only have characters in -// [a-zA-Z0-9\-._~:@], anything else must be URL encoded. -func (r *ProjectsLocationsRepositoriesPackagesTagsService) Patch(name string, tag *Tag) *ProjectsLocationsRepositoriesPackagesTagsPatchCall { - c := &ProjectsLocationsRepositoriesPackagesTagsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the tag to delete. +func (r *ProjectsLocationsRepositoriesPackagesTagsService) Delete(name string) *ProjectsLocationsRepositoriesPackagesTagsDeleteCall { + c := &ProjectsLocationsRepositoriesPackagesTagsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.tag = tag - return c -} - -// UpdateMask sets the optional parameter "updateMask": The update mask -// applies to the resource. For the `FieldMask` definition, see -// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask -func (c *ProjectsLocationsRepositoriesPackagesTagsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRepositoriesPackagesTagsPatchCall { - c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsRepositoriesPackagesTagsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesTagsPatchCall { +func (c *ProjectsLocationsRepositoriesPackagesTagsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesTagsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6355,21 +6848,21 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsPatchCall) Fields(s ...googlea // 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 *ProjectsLocationsRepositoriesPackagesTagsPatchCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesTagsPatchCall { +func (c *ProjectsLocationsRepositoriesPackagesTagsDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesTagsDeleteCall { 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 *ProjectsLocationsRepositoriesPackagesTagsPatchCall) Header() http.Header { +func (c *ProjectsLocationsRepositoriesPackagesTagsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRepositoriesPackagesTagsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRepositoriesPackagesTagsDeleteCall) 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_ { @@ -6377,16 +6870,11 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsPatchCall) doRequest(alt strin } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.tag) - 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) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -6397,14 +6885,14 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsPatchCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "artifactregistry.projects.locations.repositories.packages.tags.patch" call. -// Exactly one of *Tag or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either -// *Tag.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 *ProjectsLocationsRepositoriesPackagesTagsPatchCall) Do(opts ...googleapi.CallOption) (*Tag, error) { +// Do executes the "artifactregistry.projects.locations.repositories.packages.tags.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsRepositoriesPackagesTagsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6423,7 +6911,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsPatchCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Tag{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6435,34 +6923,25 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsPatchCall) Do(opts ...googleap } return ret, nil // { - // "description": "Updates a tag.", + // "description": "Deletes a tag.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/tags/{tagsId}", - // "httpMethod": "PATCH", - // "id": "artifactregistry.projects.locations.repositories.packages.tags.patch", + // "httpMethod": "DELETE", + // "id": "artifactregistry.projects.locations.repositories.packages.tags.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the tag, for example: \"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1\". If the package part contains slashes, the slashes are escaped. The tag part can only have characters in [a-zA-Z0-9\\-._~:@], anything else must be URL encoded.", + // "description": "The name of the tag to delete.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+/tags/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v1/{+name}", - // "request": { - // "$ref": "Tag" - // }, // "response": { - // "$ref": "Tag" + // "$ref": "Empty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -6471,90 +6950,970 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsPatchCall) Do(opts ...googleap } -// method id "artifactregistry.projects.locations.repositories.packages.versions.delete": +// method id "artifactregistry.projects.locations.repositories.packages.tags.get": -type ProjectsLocationsRepositoriesPackagesVersionsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams +type ProjectsLocationsRepositoriesPackagesTagsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a tag. +// +// - name: The name of the tag to retrieve. +func (r *ProjectsLocationsRepositoriesPackagesTagsService) Get(name string) *ProjectsLocationsRepositoriesPackagesTagsGetCall { + c := &ProjectsLocationsRepositoriesPackagesTagsGetCall{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 *ProjectsLocationsRepositoriesPackagesTagsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesTagsGetCall { + 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 *ProjectsLocationsRepositoriesPackagesTagsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPackagesTagsGetCall { + 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 *ProjectsLocationsRepositoriesPackagesTagsGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesTagsGetCall { + 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 *ProjectsLocationsRepositoriesPackagesTagsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesPackagesTagsGetCall) 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 "artifactregistry.projects.locations.repositories.packages.tags.get" call. +// Exactly one of *Tag or error will be non-nil. Any non-2xx status code +// is an error. Response headers are in either +// *Tag.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 *ProjectsLocationsRepositoriesPackagesTagsGetCall) Do(opts ...googleapi.CallOption) (*Tag, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Tag{ + 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 tag.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/tags/{tagsId}", + // "httpMethod": "GET", + // "id": "artifactregistry.projects.locations.repositories.packages.tags.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the tag to retrieve.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+/tags/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Tag" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// method id "artifactregistry.projects.locations.repositories.packages.tags.list": + +type ProjectsLocationsRepositoriesPackagesTagsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists tags. +// +// - parent: The name of the parent resource whose tags will be listed. +func (r *ProjectsLocationsRepositoriesPackagesTagsService) List(parent string) *ProjectsLocationsRepositoriesPackagesTagsListCall { + c := &ProjectsLocationsRepositoriesPackagesTagsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": An expression for +// filtering the results of the request. Filter rules are case +// insensitive. The fields eligible for filtering are: * `version` An +// example of using a filter: * +// `version="projects/p1/locations/us-central1/repositories/repo1/package +// s/pkg1/versions/1.0" --> Tags that are applied to the version `1.0` +// in package `pkg1`. +func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) Filter(filter string) *ProjectsLocationsRepositoriesPackagesTagsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of tags to return. Maximum page size is 10,000. +func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesPackagesTagsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// next_page_token value returned from a previous list request, if any. +func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesPackagesTagsListCall { + 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 *ProjectsLocationsRepositoriesPackagesTagsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesTagsListCall { + 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 *ProjectsLocationsRepositoriesPackagesTagsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPackagesTagsListCall { + 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 *ProjectsLocationsRepositoriesPackagesTagsListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesTagsListCall { + 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 *ProjectsLocationsRepositoriesPackagesTagsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) 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}/tags") + 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 "artifactregistry.projects.locations.repositories.packages.tags.list" call. +// Exactly one of *ListTagsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListTagsResponse.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 *ProjectsLocationsRepositoriesPackagesTagsListCall) Do(opts ...googleapi.CallOption) (*ListTagsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListTagsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists tags.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/tags", + // "httpMethod": "GET", + // "id": "artifactregistry.projects.locations.repositories.packages.tags.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: * `version` An example of using a filter: * `version=\"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0\"` --\u003e Tags that are applied to the version `1.0` in package `pkg1`.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of tags to return. Maximum page size is 10,000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The next_page_token value returned from a previous list request, if any.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "The name of the parent resource whose tags will be listed.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/tags", + // "response": { + // "$ref": "ListTagsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// 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 *ProjectsLocationsRepositoriesPackagesTagsListCall) Pages(ctx context.Context, f func(*ListTagsResponse) 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 "artifactregistry.projects.locations.repositories.packages.tags.patch": + +type ProjectsLocationsRepositoriesPackagesTagsPatchCall struct { + s *Service + name string + tag *Tag + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a tag. +// +// - name: The name of the tag, for example: +// "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/ +// tags/tag1". If the package part contains slashes, the slashes are +// escaped. The tag part can only have characters in +// [a-zA-Z0-9\-._~:@], anything else must be URL encoded. +func (r *ProjectsLocationsRepositoriesPackagesTagsService) Patch(name string, tag *Tag) *ProjectsLocationsRepositoriesPackagesTagsPatchCall { + c := &ProjectsLocationsRepositoriesPackagesTagsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.tag = tag + return c +} + +// UpdateMask sets the optional parameter "updateMask": The update mask +// applies to the resource. For the `FieldMask` definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask +func (c *ProjectsLocationsRepositoriesPackagesTagsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRepositoriesPackagesTagsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesPackagesTagsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesTagsPatchCall { + 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 *ProjectsLocationsRepositoriesPackagesTagsPatchCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesTagsPatchCall { + 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 *ProjectsLocationsRepositoriesPackagesTagsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesPackagesTagsPatchCall) 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.tag) + 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 "artifactregistry.projects.locations.repositories.packages.tags.patch" call. +// Exactly one of *Tag or error will be non-nil. Any non-2xx status code +// is an error. Response headers are in either +// *Tag.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 *ProjectsLocationsRepositoriesPackagesTagsPatchCall) Do(opts ...googleapi.CallOption) (*Tag, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Tag{ + 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 tag.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/tags/{tagsId}", + // "httpMethod": "PATCH", + // "id": "artifactregistry.projects.locations.repositories.packages.tags.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the tag, for example: \"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1\". If the package part contains slashes, the slashes are escaped. The tag part can only have characters in [a-zA-Z0-9\\-._~:@], anything else must be URL encoded.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+/tags/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "Tag" + // }, + // "response": { + // "$ref": "Tag" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "artifactregistry.projects.locations.repositories.packages.versions.delete": + +type ProjectsLocationsRepositoriesPackagesVersionsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Delete: Deletes a version and all of its content. The returned -// operation will complete once the version has been deleted. +// Delete: Deletes a version and all of its content. The returned +// operation will complete once the version has been deleted. +// +// - name: The name of the version to delete. +func (r *ProjectsLocationsRepositoriesPackagesVersionsService) Delete(name string) *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall { + c := &ProjectsLocationsRepositoriesPackagesVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Force sets the optional parameter "force": By default, a version that +// is tagged may not be deleted. If force=true, the version and any tags +// pointing to the version are deleted. +func (c *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) Force(force bool) *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + 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 *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall { + 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 *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall { + 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 *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) 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 "artifactregistry.projects.locations.repositories.packages.versions.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a version and all of its content. The returned operation will complete once the version has been deleted.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/versions/{versionsId}", + // "httpMethod": "DELETE", + // "id": "artifactregistry.projects.locations.repositories.packages.versions.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "force": { + // "description": "By default, a version that is tagged may not be deleted. If force=true, the version and any tags pointing to the version are deleted.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "The name of the version to delete.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "artifactregistry.projects.locations.repositories.packages.versions.get": + +type ProjectsLocationsRepositoriesPackagesVersionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a version // -// - name: The name of the version to delete. -func (r *ProjectsLocationsRepositoriesPackagesVersionsService) Delete(name string) *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall { - c := &ProjectsLocationsRepositoriesPackagesVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the version to retrieve. +func (r *ProjectsLocationsRepositoriesPackagesVersionsService) Get(name string) *ProjectsLocationsRepositoriesPackagesVersionsGetCall { + c := &ProjectsLocationsRepositoriesPackagesVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Force sets the optional parameter "force": By default, a version that -// is tagged may not be deleted. If force=true, the version and any tags -// pointing to the version are deleted. -func (c *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) Force(force bool) *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall { - c.urlParams_.Set("force", fmt.Sprint(force)) +// View sets the optional parameter "view": The view that should be +// returned in the response. +// +// Possible values: +// "VERSION_VIEW_UNSPECIFIED" - The default / unset value. The API +// will default to the BASIC view. +// "BASIC" - Includes basic information about the version, but not any +// related tags. +// "FULL" - Include everything. +func (c *ProjectsLocationsRepositoriesPackagesVersionsGetCall) View(view string) *ProjectsLocationsRepositoriesPackagesVersionsGetCall { + c.urlParams_.Set("view", view) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall { +func (c *ProjectsLocationsRepositoriesPackagesVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesVersionsGetCall { + 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 *ProjectsLocationsRepositoriesPackagesVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPackagesVersionsGetCall { + 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 *ProjectsLocationsRepositoriesPackagesVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesVersionsGetCall { + 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 *ProjectsLocationsRepositoriesPackagesVersionsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesPackagesVersionsGetCall) 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 "artifactregistry.projects.locations.repositories.packages.versions.get" call. +// Exactly one of *Version or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Version.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 *ProjectsLocationsRepositoriesPackagesVersionsGetCall) Do(opts ...googleapi.CallOption) (*Version, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Version{ + 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 version", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/versions/{versionsId}", + // "httpMethod": "GET", + // "id": "artifactregistry.projects.locations.repositories.packages.versions.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the version to retrieve.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "view": { + // "description": "The view that should be returned in the response.", + // "enum": [ + // "VERSION_VIEW_UNSPECIFIED", + // "BASIC", + // "FULL" + // ], + // "enumDescriptions": [ + // "The default / unset value. The API will default to the BASIC view.", + // "Includes basic information about the version, but not any related tags.", + // "Include everything." + // ], + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Version" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// method id "artifactregistry.projects.locations.repositories.packages.versions.list": + +type ProjectsLocationsRepositoriesPackagesVersionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists versions. +// +// - parent: The name of the parent resource whose versions will be +// listed. +func (r *ProjectsLocationsRepositoriesPackagesVersionsService) List(parent string) *ProjectsLocationsRepositoriesPackagesVersionsListCall { + c := &ProjectsLocationsRepositoriesPackagesVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// OrderBy sets the optional parameter "orderBy": The field to order the +// results by. +func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) OrderBy(orderBy string) *ProjectsLocationsRepositoriesPackagesVersionsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of versions to return. Maximum page size is 1,000. +func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesPackagesVersionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// next_page_token value returned from a previous list request, if any. +func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesPackagesVersionsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// View sets the optional parameter "view": The view that should be +// returned in the response. +// +// Possible values: +// "VERSION_VIEW_UNSPECIFIED" - The default / unset value. The API +// will default to the BASIC view. +// "BASIC" - Includes basic information about the version, but not any +// related tags. +// "FULL" - Include everything. +func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) View(view string) *ProjectsLocationsRepositoriesPackagesVersionsListCall { + c.urlParams_.Set("view", view) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesVersionsListCall { 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 *ProjectsLocationsRepositoriesPackagesVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPackagesVersionsListCall { + 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 *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall { +func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesVersionsListCall { 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 *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/versions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + 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, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "artifactregistry.projects.locations.repositories.packages.versions.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// Do executes the "artifactregistry.projects.locations.repositories.packages.versions.list" call. +// Exactly one of *ListVersionsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListVersionsResponse.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 *ProjectsLocationsRepositoriesPackagesVersionsListCall) Do(opts ...googleapi.CallOption) (*ListVersionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6573,7 +7932,7 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) Do(opts ...goo if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Operation{ + ret := &ListVersionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6585,41 +7944,89 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) Do(opts ...goo } return ret, nil // { - // "description": "Deletes a version and all of its content. The returned operation will complete once the version has been deleted.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/versions/{versionsId}", - // "httpMethod": "DELETE", - // "id": "artifactregistry.projects.locations.repositories.packages.versions.delete", + // "description": "Lists versions.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/versions", + // "httpMethod": "GET", + // "id": "artifactregistry.projects.locations.repositories.packages.versions.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "force": { - // "description": "By default, a version that is tagged may not be deleted. If force=true, the version and any tags pointing to the version are deleted.", + // "orderBy": { + // "description": "Optional. The field to order the results by.", // "location": "query", - // "type": "boolean" + // "type": "string" // }, - // "name": { - // "description": "The name of the version to delete.", + // "pageSize": { + // "description": "The maximum number of versions to return. Maximum page size is 1,000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The next_page_token value returned from a previous list request, if any.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "The name of the parent resource whose versions will be listed.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+/versions/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$", // "required": true, // "type": "string" + // }, + // "view": { + // "description": "The view that should be returned in the response.", + // "enum": [ + // "VERSION_VIEW_UNSPECIFIED", + // "BASIC", + // "FULL" + // ], + // "enumDescriptions": [ + // "The default / unset value. The API will default to the BASIC view.", + // "Includes basic information about the version, but not any related tags.", + // "Include everything." + // ], + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/versions", // "response": { - // "$ref": "Operation" + // "$ref": "ListVersionsResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" // ] // } } -// method id "artifactregistry.projects.locations.repositories.packages.versions.get": +// 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 *ProjectsLocationsRepositoriesPackagesVersionsListCall) Pages(ctx context.Context, f func(*ListVersionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type ProjectsLocationsRepositoriesPackagesVersionsGetCall struct { +// method id "artifactregistry.projects.locations.repositories.pythonPackages.get": + +type ProjectsLocationsRepositoriesPythonPackagesGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -6628,33 +8035,19 @@ type ProjectsLocationsRepositoriesPackagesVersionsGetCall struct { header_ http.Header } -// Get: Gets a version +// Get: Gets a python package. // -// - name: The name of the version to retrieve. -func (r *ProjectsLocationsRepositoriesPackagesVersionsService) Get(name string) *ProjectsLocationsRepositoriesPackagesVersionsGetCall { - c := &ProjectsLocationsRepositoriesPackagesVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the python package. +func (r *ProjectsLocationsRepositoriesPythonPackagesService) Get(name string) *ProjectsLocationsRepositoriesPythonPackagesGetCall { + c := &ProjectsLocationsRepositoriesPythonPackagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// View sets the optional parameter "view": The view that should be -// returned in the response. -// -// Possible values: -// "VERSION_VIEW_UNSPECIFIED" - The default / unset value. The API -// will default to the BASIC view. -// "BASIC" - Includes basic information about the version, but not any -// related tags. -// "FULL" - Include everything. -func (c *ProjectsLocationsRepositoriesPackagesVersionsGetCall) View(view string) *ProjectsLocationsRepositoriesPackagesVersionsGetCall { - c.urlParams_.Set("view", view) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsRepositoriesPackagesVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesVersionsGetCall { +func (c *ProjectsLocationsRepositoriesPythonPackagesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPythonPackagesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6664,7 +8057,7 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsGetCall) Fields(s ...googl // 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 *ProjectsLocationsRepositoriesPackagesVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPackagesVersionsGetCall { +func (c *ProjectsLocationsRepositoriesPythonPackagesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPythonPackagesGetCall { c.ifNoneMatch_ = entityTag return c } @@ -6672,21 +8065,21 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsGetCall) IfNoneMatch(entit // 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 *ProjectsLocationsRepositoriesPackagesVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesVersionsGetCall { +func (c *ProjectsLocationsRepositoriesPythonPackagesGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPythonPackagesGetCall { 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 *ProjectsLocationsRepositoriesPackagesVersionsGetCall) Header() http.Header { +func (c *ProjectsLocationsRepositoriesPythonPackagesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRepositoriesPackagesVersionsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRepositoriesPythonPackagesGetCall) 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_ { @@ -6712,14 +8105,14 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsGetCall) doRequest(alt str return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "artifactregistry.projects.locations.repositories.packages.versions.get" call. -// Exactly one of *Version or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Version.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 *ProjectsLocationsRepositoriesPackagesVersionsGetCall) Do(opts ...googleapi.CallOption) (*Version, error) { +// Do executes the "artifactregistry.projects.locations.repositories.pythonPackages.get" call. +// Exactly one of *PythonPackage or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *PythonPackage.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 *ProjectsLocationsRepositoriesPythonPackagesGetCall) Do(opts ...googleapi.CallOption) (*PythonPackage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6738,7 +8131,7 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsGetCall) Do(opts ...google if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Version{ + ret := &PythonPackage{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6750,40 +8143,25 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsGetCall) Do(opts ...google } return ret, nil // { - // "description": "Gets a version", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/versions/{versionsId}", + // "description": "Gets a python package.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/pythonPackages/{pythonPackagesId}", // "httpMethod": "GET", - // "id": "artifactregistry.projects.locations.repositories.packages.versions.get", + // "id": "artifactregistry.projects.locations.repositories.pythonPackages.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the version to retrieve.", + // "description": "Required. The name of the python package.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+/versions/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/pythonPackages/[^/]+$", // "required": true, // "type": "string" - // }, - // "view": { - // "description": "The view that should be returned in the response.", - // "enum": [ - // "VERSION_VIEW_UNSPECIFIED", - // "BASIC", - // "FULL" - // ], - // "enumDescriptions": [ - // "The default / unset value. The API will default to the BASIC view.", - // "Includes basic information about the version, but not any related tags.", - // "Include everything." - // ], - // "location": "query", - // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "Version" + // "$ref": "PythonPackage" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -6793,9 +8171,9 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsGetCall) Do(opts ...google } -// method id "artifactregistry.projects.locations.repositories.packages.versions.list": +// method id "artifactregistry.projects.locations.repositories.pythonPackages.list": -type ProjectsLocationsRepositoriesPackagesVersionsListCall struct { +type ProjectsLocationsRepositoriesPythonPackagesListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -6804,55 +8182,34 @@ type ProjectsLocationsRepositoriesPackagesVersionsListCall struct { header_ http.Header } -// List: Lists versions. +// List: Lists python packages. // -// - parent: The name of the parent resource whose versions will be -// listed. -func (r *ProjectsLocationsRepositoriesPackagesVersionsService) List(parent string) *ProjectsLocationsRepositoriesPackagesVersionsListCall { - c := &ProjectsLocationsRepositoriesPackagesVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The name of the parent resource whose python packages will +// be listed. +func (r *ProjectsLocationsRepositoriesPythonPackagesService) List(parent string) *ProjectsLocationsRepositoriesPythonPackagesListCall { + c := &ProjectsLocationsRepositoriesPythonPackagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// OrderBy sets the optional parameter "orderBy": The field to order the -// results by. -func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) OrderBy(orderBy string) *ProjectsLocationsRepositoriesPackagesVersionsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - // PageSize sets the optional parameter "pageSize": The maximum number -// of versions to return. Maximum page size is 1,000. -func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesPackagesVersionsListCall { +// of artifacts to return. +func (c *ProjectsLocationsRepositoriesPythonPackagesListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesPythonPackagesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The // next_page_token value returned from a previous list request, if any. -func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesPackagesVersionsListCall { +func (c *ProjectsLocationsRepositoriesPythonPackagesListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesPythonPackagesListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// View sets the optional parameter "view": The view that should be -// returned in the response. -// -// Possible values: -// "VERSION_VIEW_UNSPECIFIED" - The default / unset value. The API -// will default to the BASIC view. -// "BASIC" - Includes basic information about the version, but not any -// related tags. -// "FULL" - Include everything. -func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) View(view string) *ProjectsLocationsRepositoriesPackagesVersionsListCall { - c.urlParams_.Set("view", view) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesVersionsListCall { +func (c *ProjectsLocationsRepositoriesPythonPackagesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPythonPackagesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6862,7 +8219,7 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) Fields(s ...goog // 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 *ProjectsLocationsRepositoriesPackagesVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPackagesVersionsListCall { +func (c *ProjectsLocationsRepositoriesPythonPackagesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPythonPackagesListCall { c.ifNoneMatch_ = entityTag return c } @@ -6870,21 +8227,21 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) IfNoneMatch(enti // 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 *ProjectsLocationsRepositoriesPackagesVersionsListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesVersionsListCall { +func (c *ProjectsLocationsRepositoriesPythonPackagesListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPythonPackagesListCall { 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 *ProjectsLocationsRepositoriesPackagesVersionsListCall) Header() http.Header { +func (c *ProjectsLocationsRepositoriesPythonPackagesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRepositoriesPythonPackagesListCall) 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_ { @@ -6897,7 +8254,7 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) doRequest(alt st var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/versions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/pythonPackages") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -6910,14 +8267,14 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) doRequest(alt st return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "artifactregistry.projects.locations.repositories.packages.versions.list" call. -// Exactly one of *ListVersionsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListVersionsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "artifactregistry.projects.locations.repositories.pythonPackages.list" call. +// Exactly one of *ListPythonPackagesResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListPythonPackagesResponse.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 *ProjectsLocationsRepositoriesPackagesVersionsListCall) Do(opts ...googleapi.CallOption) (*ListVersionsResponse, error) { +func (c *ProjectsLocationsRepositoriesPythonPackagesListCall) Do(opts ...googleapi.CallOption) (*ListPythonPackagesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6936,7 +8293,7 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) Do(opts ...googl if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListVersionsResponse{ + ret := &ListPythonPackagesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6948,21 +8305,16 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) Do(opts ...googl } return ret, nil // { - // "description": "Lists versions.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/versions", + // "description": "Lists python packages.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/pythonPackages", // "httpMethod": "GET", - // "id": "artifactregistry.projects.locations.repositories.packages.versions.list", + // "id": "artifactregistry.projects.locations.repositories.pythonPackages.list", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "orderBy": { - // "description": "Optional. The field to order the results by.", - // "location": "query", - // "type": "string" - // }, // "pageSize": { - // "description": "The maximum number of versions to return. Maximum page size is 1,000.", + // "description": "The maximum number of artifacts to return.", // "format": "int32", // "location": "query", // "type": "integer" @@ -6973,31 +8325,16 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) Do(opts ...googl // "type": "string" // }, // "parent": { - // "description": "The name of the parent resource whose versions will be listed.", + // "description": "Required. The name of the parent resource whose python packages will be listed.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", // "required": true, // "type": "string" - // }, - // "view": { - // "description": "The view that should be returned in the response.", - // "enum": [ - // "VERSION_VIEW_UNSPECIFIED", - // "BASIC", - // "FULL" - // ], - // "enumDescriptions": [ - // "The default / unset value. The API will default to the BASIC view.", - // "Includes basic information about the version, but not any related tags.", - // "Include everything." - // ], - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+parent}/versions", + // "path": "v1/{+parent}/pythonPackages", // "response": { - // "$ref": "ListVersionsResponse" + // "$ref": "ListPythonPackagesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -7010,7 +8347,7 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) Do(opts ...googl // 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 *ProjectsLocationsRepositoriesPackagesVersionsListCall) Pages(ctx context.Context, f func(*ListVersionsResponse) error) error { +func (c *ProjectsLocationsRepositoriesPythonPackagesListCall) Pages(ctx context.Context, f func(*ListPythonPackagesResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { diff --git a/cloudresourcemanager/v3/cloudresourcemanager-api.json b/cloudresourcemanager/v3/cloudresourcemanager-api.json index d95fa2f04cb..6d62075c547 100644 --- a/cloudresourcemanager/v3/cloudresourcemanager-api.json +++ b/cloudresourcemanager/v3/cloudresourcemanager-api.json @@ -1159,7 +1159,7 @@ "tagKeys": { "methods": { "create": { - "description": "Creates a new TagKey. If another request with the same parameters is sent while the original request is in process, the second request will receive an error. A maximum of 300 TagKeys can exist under a parent at any given time.", + "description": "Creates a new TagKey. If another request with the same parameters is sent while the original request is in process, the second request will receive an error. A maximum of 1000 TagKeys can exist under a parent at any given time.", "flatPath": "v3/tagKeys", "httpMethod": "POST", "id": "cloudresourcemanager.tagKeys.create", @@ -1405,7 +1405,7 @@ "tagValues": { "methods": { "create": { - "description": "Creates a TagValue as a child of the specified TagKey. If a another request with the same parameters is sent while the original request is in process the second request will receive an error. A maximum of 300 TagValues can exist under a TagKey at any given time.", + "description": "Creates a TagValue as a child of the specified TagKey. If a another request with the same parameters is sent while the original request is in process the second request will receive an error. A maximum of 1000 TagValues can exist under a TagKey at any given time.", "flatPath": "v3/tagValues", "httpMethod": "POST", "id": "cloudresourcemanager.tagValues.create", @@ -1760,7 +1760,7 @@ } } }, - "revision": "20220523", + "revision": "20220619", "rootUrl": "https://cloudresourcemanager.googleapis.com/", "schemas": { "AuditConfig": { @@ -2819,7 +2819,7 @@ ], "enumDescriptions": [ "Unspecified purpose.", - "Purpose for Compute Engine firewalls. A corresponding purpose_data should be set for the network the tag is intended for. The key should be 'network' and the value should be in the format of the network url id string: http://compute.googleapis.com/v1/projects/{project_number}/global/networks/{network_id}" + "Purpose for Compute Engine firewalls. A corresponding purpose_data should be set for the network the tag is intended for. The key should be 'network' and the value should be in the format of the network url id string: https://compute.googleapis.com/v1/projects/{project_number}/global/networks/{network_id}" ], "type": "string" }, diff --git a/cloudresourcemanager/v3/cloudresourcemanager-gen.go b/cloudresourcemanager/v3/cloudresourcemanager-gen.go index b3b5fd66dc6..ab682912db4 100644 --- a/cloudresourcemanager/v3/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v3/cloudresourcemanager-gen.go @@ -2205,7 +2205,7 @@ type TagKey struct { // corresponding purpose_data should be set for the network the tag is // intended for. The key should be 'network' and the value should be in // the format of the network url id string: - // http://compute.googleapis.com/v1/projects/{project_number}/global/networks/{network_id} + // https://compute.googleapis.com/v1/projects/{project_number}/global/networks/{network_id} Purpose string `json:"purpose,omitempty"` // PurposeData: Optional. Purpose data corresponds to the policy system @@ -8252,7 +8252,7 @@ type TagKeysCreateCall struct { // Create: Creates a new TagKey. If another request with the same // parameters is sent while the original request is in process, the -// second request will receive an error. A maximum of 300 TagKeys can +// second request will receive an error. A maximum of 1000 TagKeys can // exist under a parent at any given time. func (r *TagKeysService) Create(tagkey *TagKey) *TagKeysCreateCall { c := &TagKeysCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -8356,7 +8356,7 @@ func (c *TagKeysCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) } return ret, nil // { - // "description": "Creates a new TagKey. If another request with the same parameters is sent while the original request is in process, the second request will receive an error. A maximum of 300 TagKeys can exist under a parent at any given time.", + // "description": "Creates a new TagKey. If another request with the same parameters is sent while the original request is in process, the second request will receive an error. A maximum of 1000 TagKeys can exist under a parent at any given time.", // "flatPath": "v3/tagKeys", // "httpMethod": "POST", // "id": "cloudresourcemanager.tagKeys.create", @@ -9519,7 +9519,7 @@ type TagValuesCreateCall struct { // Create: Creates a TagValue as a child of the specified TagKey. If a // another request with the same parameters is sent while the original // request is in process the second request will receive an error. A -// maximum of 300 TagValues can exist under a TagKey at any given time. +// maximum of 1000 TagValues can exist under a TagKey at any given time. func (r *TagValuesService) Create(tagvalue *TagValue) *TagValuesCreateCall { c := &TagValuesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tagvalue = tagvalue @@ -9622,7 +9622,7 @@ func (c *TagValuesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, erro } return ret, nil // { - // "description": "Creates a TagValue as a child of the specified TagKey. If a another request with the same parameters is sent while the original request is in process the second request will receive an error. A maximum of 300 TagValues can exist under a TagKey at any given time.", + // "description": "Creates a TagValue as a child of the specified TagKey. If a another request with the same parameters is sent while the original request is in process the second request will receive an error. A maximum of 1000 TagValues can exist under a TagKey at any given time.", // "flatPath": "v3/tagValues", // "httpMethod": "POST", // "id": "cloudresourcemanager.tagValues.create", diff --git a/connectors/v1/connectors-api.json b/connectors/v1/connectors-api.json index 867ddecfaf4..11f12610392 100644 --- a/connectors/v1/connectors-api.json +++ b/connectors/v1/connectors-api.json @@ -436,7 +436,7 @@ "type": "string" }, "updateMask": { - "description": "Required. Field mask is used to specify the fields to be overwritten in the Connection resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + "description": "Field mask is used to specify the fields to be overwritten in the Connection resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1055,7 +1055,7 @@ } } }, - "revision": "20220603", + "revision": "20220616", "rootUrl": "https://connectors.googleapis.com/", "schemas": { "AuditConfig": { @@ -1329,6 +1329,14 @@ "description": "Optional. Description of the resource.", "type": "string" }, + "egressBackends": { + "description": "Output only. Outbound domains/hosts needs to be allowlisted.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "envoyImageLocation": { "description": "Output only. GCR location where the envoy image is stored. formatted like: gcr.io/{bucketName}/{imageName}", "readOnly": true, @@ -2647,11 +2655,6 @@ "readOnly": true, "type": "string" }, - "name": { - "description": "Output only. Resource name of the form: `projects/*/locations/*/runtimeConfig`", - "readOnly": true, - "type": "string" - }, "runtimeEndpoint": { "description": "Output only. The endpoint of the connectors runtime ingress.", "readOnly": true, @@ -2764,6 +2767,7 @@ "type": "object" }, "SshPublicKey": { + "description": "Parameters to support Ssh public key Authentication.", "id": "SshPublicKey", "properties": { "certType": { diff --git a/connectors/v1/connectors-gen.go b/connectors/v1/connectors-gen.go index 6e2eac64180..6029fa5c72e 100644 --- a/connectors/v1/connectors-gen.go +++ b/connectors/v1/connectors-gen.go @@ -659,6 +659,10 @@ type Connection struct { // Description: Optional. Description of the resource. Description string `json:"description,omitempty"` + // EgressBackends: Output only. Outbound domains/hosts needs to be + // allowlisted. + EgressBackends []string `json:"egressBackends,omitempty"` + // EnvoyImageLocation: Output only. GCR location where the envoy image // is stored. formatted like: gcr.io/{bucketName}/{imageName} EnvoyImageLocation string `json:"envoyImageLocation,omitempty"` @@ -2389,10 +2393,6 @@ type RuntimeConfig struct { // "us-west1". LocationId string `json:"locationId,omitempty"` - // Name: Output only. Resource name of the form: - // `projects/*/locations/*/runtimeConfig` - Name string `json:"name,omitempty"` - // RuntimeEndpoint: Output only. The endpoint of the connectors runtime // ingress. RuntimeEndpoint string `json:"runtimeEndpoint,omitempty"` @@ -2577,6 +2577,7 @@ func (s *Source) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SshPublicKey: Parameters to support Ssh public key Authentication. type SshPublicKey struct { // CertType: Format of SSH Client cert. CertType string `json:"certType,omitempty"` @@ -4352,12 +4353,12 @@ func (r *ProjectsLocationsConnectionsService) Patch(name string, connection *Con return c } -// UpdateMask sets the optional parameter "updateMask": Required. Field -// mask is used to specify the fields to be overwritten in the -// Connection resource by the update. The fields specified in the -// update_mask are relative to the resource, not the full request. A -// field will be overwritten if it is in the mask. If the user does not -// provide a mask then all fields will be overwritten. +// UpdateMask sets the optional parameter "updateMask": Field mask is +// used to specify the fields to be overwritten in the Connection +// resource by the update. The fields specified in the update_mask are +// relative to the resource, not the full request. A field will be +// overwritten if it is in the mask. If the user does not provide a mask +// then all fields will be overwritten. func (c *ProjectsLocationsConnectionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConnectionsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -4470,7 +4471,7 @@ func (c *ProjectsLocationsConnectionsPatchCall) Do(opts ...googleapi.CallOption) // "type": "string" // }, // "updateMask": { - // "description": "Required. Field mask is used to specify the fields to be overwritten in the Connection resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + // "description": "Field mask is used to specify the fields to be overwritten in the Connection resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", // "format": "google-fieldmask", // "location": "query", // "type": "string" diff --git a/firebase/v1beta1/firebase-api.json b/firebase/v1beta1/firebase-api.json index 37793c77aa9..d585887c297 100644 --- a/firebase/v1beta1/firebase-api.json +++ b/firebase/v1beta1/firebase-api.json @@ -1121,7 +1121,7 @@ } } }, - "revision": "20220602", + "revision": "20220621", "rootUrl": "https://firebase.googleapis.com/", "schemas": { "AddFirebaseRequest": { @@ -1217,7 +1217,8 @@ "type": "string" }, "appId": { - "description": "Immutable. The globally unique, Firebase-assigned identifier for the `AndroidApp`. This identifier should be treated as an opaque token, as the data format is not specified.", + "description": "Output only. Immutable. The globally unique, Firebase-assigned identifier for the `AndroidApp`. This identifier should be treated as an opaque token, as the data format is not specified.", + "readOnly": true, "type": "string" }, "displayName": { @@ -1233,7 +1234,8 @@ "type": "string" }, "projectId": { - "description": "Immutable. A user-assigned unique identifier of the parent FirebaseProject for the `AndroidApp`.", + "description": "Output only. Immutable. A user-assigned unique identifier of the parent FirebaseProject for the `AndroidApp`.", + "readOnly": true, "type": "string" } }, @@ -1387,7 +1389,8 @@ "type": "string" }, "appId": { - "description": "Immutable. The globally unique, Firebase-assigned identifier for the `IosApp`. This identifier should be treated as an opaque token, as the data format is not specified.", + "description": "Output only. Immutable. The globally unique, Firebase-assigned identifier for the `IosApp`. This identifier should be treated as an opaque token, as the data format is not specified.", + "readOnly": true, "type": "string" }, "appStoreId": { @@ -1407,7 +1410,8 @@ "type": "string" }, "projectId": { - "description": "Immutable. A user-assigned unique identifier of the parent FirebaseProject for the `IosApp`.", + "description": "Output only. Immutable. A user-assigned unique identifier of the parent FirebaseProject for the `IosApp`.", + "readOnly": true, "type": "string" }, "teamId": { diff --git a/firebase/v1beta1/firebase-gen.go b/firebase/v1beta1/firebase-gen.go index e26407872b2..c12c7720684 100644 --- a/firebase/v1beta1/firebase-gen.go +++ b/firebase/v1beta1/firebase-gen.go @@ -475,9 +475,9 @@ type AndroidApp struct { // to an empty value in update requests. ApiKeyId string `json:"apiKeyId,omitempty"` - // AppId: Immutable. The globally unique, Firebase-assigned identifier - // for the `AndroidApp`. This identifier should be treated as an opaque - // token, as the data format is not specified. + // AppId: Output only. Immutable. The globally unique, Firebase-assigned + // identifier for the `AndroidApp`. This identifier should be treated as + // an opaque token, as the data format is not specified. AppId string `json:"appId,omitempty"` // DisplayName: The user-assigned display name for the `AndroidApp`. @@ -500,8 +500,8 @@ type AndroidApp struct { // as would appear in the Google Play Developer Console. PackageName string `json:"packageName,omitempty"` - // ProjectId: Immutable. A user-assigned unique identifier of the parent - // FirebaseProject for the `AndroidApp`. + // ProjectId: Output only. Immutable. A user-assigned unique identifier + // of the parent FirebaseProject for the `AndroidApp`. ProjectId string `json:"projectId,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -820,9 +820,9 @@ type IosApp struct { // to an empty value in update requests. ApiKeyId string `json:"apiKeyId,omitempty"` - // AppId: Immutable. The globally unique, Firebase-assigned identifier - // for the `IosApp`. This identifier should be treated as an opaque - // token, as the data format is not specified. + // AppId: Output only. Immutable. The globally unique, Firebase-assigned + // identifier for the `IosApp`. This identifier should be treated as an + // opaque token, as the data format is not specified. AppId string `json:"appId,omitempty"` // AppStoreId: The automatically generated Apple ID assigned to the iOS @@ -849,8 +849,8 @@ type IosApp struct { // (see `appId` (../projects.iosApps#IosApp.FIELDS.app_id)). Name string `json:"name,omitempty"` - // ProjectId: Immutable. A user-assigned unique identifier of the parent - // FirebaseProject for the `IosApp`. + // ProjectId: Output only. Immutable. A user-assigned unique identifier + // of the parent FirebaseProject for the `IosApp`. ProjectId string `json:"projectId,omitempty"` // TeamId: The Apple Developer Team ID associated with the App in the diff --git a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-api.json b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-api.json index ebc4b645884..e44e13054a5 100644 --- a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-api.json +++ b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-api.json @@ -4,6 +4,9 @@ "scopes": { "https://www.googleapis.com/auth/sasportal": { "description": "Read, create, update, and delete your SAS Portal data." + }, + "https://www.googleapis.com/auth/userinfo.email": { + "description": "See your primary Google Account email address" } } } @@ -129,7 +132,8 @@ "$ref": "SasPortalCustomer" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "list": { @@ -156,7 +160,8 @@ "$ref": "SasPortalListCustomersResponse" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "patch": { @@ -190,7 +195,8 @@ "$ref": "SasPortalCustomer" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] } }, @@ -222,7 +228,8 @@ "$ref": "SasPortalDeployment" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "delete": { @@ -247,7 +254,8 @@ "$ref": "SasPortalEmpty" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "get": { @@ -272,7 +280,8 @@ "$ref": "SasPortalDeployment" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "list": { @@ -313,7 +322,8 @@ "$ref": "SasPortalListDeploymentsResponse" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "move": { @@ -341,7 +351,8 @@ "$ref": "SasPortalOperation" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "patch": { @@ -375,7 +386,8 @@ "$ref": "SasPortalDeployment" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] } }, @@ -407,7 +419,8 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "createSigned": { @@ -435,7 +448,8 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "list": { @@ -476,7 +490,8 @@ "$ref": "SasPortalListDevicesResponse" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] } } @@ -510,7 +525,8 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "createSigned": { @@ -538,7 +554,8 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "delete": { @@ -563,7 +580,8 @@ "$ref": "SasPortalEmpty" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "get": { @@ -588,7 +606,8 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "list": { @@ -629,7 +648,8 @@ "$ref": "SasPortalListDevicesResponse" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "move": { @@ -657,7 +677,8 @@ "$ref": "SasPortalOperation" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "patch": { @@ -691,7 +712,8 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "signDevice": { @@ -719,7 +741,8 @@ "$ref": "SasPortalEmpty" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "updateSigned": { @@ -747,7 +770,8 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] } } @@ -779,7 +803,8 @@ "$ref": "SasPortalNode" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "delete": { @@ -804,7 +829,8 @@ "$ref": "SasPortalEmpty" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "get": { @@ -829,7 +855,8 @@ "$ref": "SasPortalNode" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "list": { @@ -870,7 +897,8 @@ "$ref": "SasPortalListNodesResponse" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "move": { @@ -898,7 +926,8 @@ "$ref": "SasPortalOperation" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "patch": { @@ -932,7 +961,8 @@ "$ref": "SasPortalNode" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] } }, @@ -964,7 +994,8 @@ "$ref": "SasPortalDeployment" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "list": { @@ -1005,7 +1036,8 @@ "$ref": "SasPortalListDeploymentsResponse" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] } } @@ -1037,7 +1069,8 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "createSigned": { @@ -1065,7 +1098,8 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "list": { @@ -1106,7 +1140,8 @@ "$ref": "SasPortalListDevicesResponse" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] } } @@ -1138,7 +1173,8 @@ "$ref": "SasPortalNode" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "list": { @@ -1179,7 +1215,8 @@ "$ref": "SasPortalListNodesResponse" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] } } @@ -1212,7 +1249,8 @@ "$ref": "SasPortalDeployment" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] } }, @@ -1241,7 +1279,8 @@ "$ref": "SasPortalEmpty" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "get": { @@ -1266,7 +1305,8 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "move": { @@ -1294,7 +1334,8 @@ "$ref": "SasPortalOperation" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "patch": { @@ -1328,7 +1369,8 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "signDevice": { @@ -1356,7 +1398,8 @@ "$ref": "SasPortalEmpty" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "updateSigned": { @@ -1384,7 +1427,8 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] } } @@ -1408,7 +1452,8 @@ "$ref": "SasPortalGenerateSecretResponse" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "validate": { @@ -1426,7 +1471,8 @@ "$ref": "SasPortalValidateInstallerResponse" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] } } @@ -1455,7 +1501,8 @@ "$ref": "SasPortalNode" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] } }, @@ -1484,7 +1531,8 @@ "$ref": "SasPortalEmpty" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "get": { @@ -1509,7 +1557,8 @@ "$ref": "SasPortalDeployment" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "list": { @@ -1550,7 +1599,8 @@ "$ref": "SasPortalListDeploymentsResponse" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "move": { @@ -1578,7 +1628,8 @@ "$ref": "SasPortalOperation" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "patch": { @@ -1612,7 +1663,8 @@ "$ref": "SasPortalDeployment" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] } }, @@ -1644,7 +1696,8 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "createSigned": { @@ -1672,7 +1725,8 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "list": { @@ -1713,7 +1767,8 @@ "$ref": "SasPortalListDevicesResponse" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] } } @@ -1747,7 +1802,8 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "createSigned": { @@ -1775,7 +1831,8 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "delete": { @@ -1800,7 +1857,8 @@ "$ref": "SasPortalEmpty" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "get": { @@ -1825,7 +1883,8 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "list": { @@ -1866,7 +1925,8 @@ "$ref": "SasPortalListDevicesResponse" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "move": { @@ -1894,7 +1954,8 @@ "$ref": "SasPortalOperation" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "patch": { @@ -1928,7 +1989,8 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "signDevice": { @@ -1956,7 +2018,8 @@ "$ref": "SasPortalEmpty" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "updateSigned": { @@ -1984,7 +2047,8 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] } } @@ -2016,7 +2080,8 @@ "$ref": "SasPortalNode" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "delete": { @@ -2041,7 +2106,8 @@ "$ref": "SasPortalEmpty" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "get": { @@ -2066,7 +2132,8 @@ "$ref": "SasPortalNode" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "list": { @@ -2107,7 +2174,8 @@ "$ref": "SasPortalListNodesResponse" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "move": { @@ -2135,7 +2203,8 @@ "$ref": "SasPortalOperation" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "patch": { @@ -2169,7 +2238,8 @@ "$ref": "SasPortalNode" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] } }, @@ -2201,7 +2271,8 @@ "$ref": "SasPortalDeployment" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "list": { @@ -2242,7 +2313,8 @@ "$ref": "SasPortalListDeploymentsResponse" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] } } @@ -2274,7 +2346,8 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "createSigned": { @@ -2302,7 +2375,8 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "list": { @@ -2343,7 +2417,8 @@ "$ref": "SasPortalListDevicesResponse" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] } } @@ -2375,7 +2450,8 @@ "$ref": "SasPortalNode" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "list": { @@ -2416,7 +2492,8 @@ "$ref": "SasPortalListNodesResponse" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] } } @@ -2442,7 +2519,8 @@ "$ref": "SasPortalPolicy" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "set": { @@ -2460,7 +2538,8 @@ "$ref": "SasPortalPolicy" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] }, "test": { @@ -2478,13 +2557,14 @@ "$ref": "SasPortalTestPermissionsResponse" }, "scopes": [ - "https://www.googleapis.com/auth/sasportal" + "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email" ] } } } }, - "revision": "20220612", + "revision": "20220622", "rootUrl": "https://prod-tt-sasportal.googleapis.com/", "schemas": { "SasPortalAssignment": { diff --git a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go index b39f22a9721..9d03ac289c4 100644 --- a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go +++ b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go @@ -23,6 +23,10 @@ // // Other authentication options // +// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// +// prod_tt_sasportalService, err := prod_tt_sasportal.NewService(ctx, option.WithScopes(prod_tt_sasportal.UserinfoEmailScope)) +// // To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: // // prod_tt_sasportalService, err := prod_tt_sasportal.NewService(ctx, option.WithAPIKey("AIza...")) @@ -82,12 +86,16 @@ const mtlsBasePath = "https://prod-tt-sasportal.mtls.googleapis.com/" const ( // Read, create, update, and delete your SAS Portal data. SasportalScope = "https://www.googleapis.com/auth/sasportal" + + // See your primary Google Account email address + UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.email" ) // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/sasportal", + "https://www.googleapis.com/auth/userinfo.email", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) @@ -2063,7 +2071,8 @@ func (c *CustomersGetCall) Do(opts ...googleapi.CallOption) (*SasPortalCustomer, // "$ref": "SasPortalCustomer" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -2219,7 +2228,8 @@ func (c *CustomersListCall) Do(opts ...googleapi.CallOption) (*SasPortalListCust // "$ref": "SasPortalListCustomersResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -2395,7 +2405,8 @@ func (c *CustomersPatchCall) Do(opts ...googleapi.CallOption) (*SasPortalCustome // "$ref": "SasPortalCustomer" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -2538,7 +2549,8 @@ func (c *CustomersDeploymentsCreateCall) Do(opts ...googleapi.CallOption) (*SasP // "$ref": "SasPortalDeployment" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -2670,7 +2682,8 @@ func (c *CustomersDeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*SasP // "$ref": "SasPortalEmpty" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -2816,7 +2829,8 @@ func (c *CustomersDeploymentsGetCall) Do(opts ...googleapi.CallOption) (*SasPort // "$ref": "SasPortalDeployment" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -3003,7 +3017,8 @@ func (c *CustomersDeploymentsListCall) Do(opts ...googleapi.CallOption) (*SasPor // "$ref": "SasPortalListDeploymentsResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -3166,7 +3181,8 @@ func (c *CustomersDeploymentsMoveCall) Do(opts ...googleapi.CallOption) (*SasPor // "$ref": "SasPortalOperation" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -3321,7 +3337,8 @@ func (c *CustomersDeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*SasPo // "$ref": "SasPortalDeployment" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -3463,7 +3480,8 @@ func (c *CustomersDeploymentsDevicesCreateCall) Do(opts ...googleapi.CallOption) // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -3605,7 +3623,8 @@ func (c *CustomersDeploymentsDevicesCreateSignedCall) Do(opts ...googleapi.CallO // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -3792,7 +3811,8 @@ func (c *CustomersDeploymentsDevicesListCall) Do(opts ...googleapi.CallOption) ( // "$ref": "SasPortalListDevicesResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -3955,7 +3975,8 @@ func (c *CustomersDevicesCreateCall) Do(opts ...googleapi.CallOption) (*SasPorta // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -4097,7 +4118,8 @@ func (c *CustomersDevicesCreateSignedCall) Do(opts ...googleapi.CallOption) (*Sa // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -4229,7 +4251,8 @@ func (c *CustomersDevicesDeleteCall) Do(opts ...googleapi.CallOption) (*SasPorta // "$ref": "SasPortalEmpty" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -4375,7 +4398,8 @@ func (c *CustomersDevicesGetCall) Do(opts ...googleapi.CallOption) (*SasPortalDe // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -4562,7 +4586,8 @@ func (c *CustomersDevicesListCall) Do(opts ...googleapi.CallOption) (*SasPortalL // "$ref": "SasPortalListDevicesResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -4725,7 +4750,8 @@ func (c *CustomersDevicesMoveCall) Do(opts ...googleapi.CallOption) (*SasPortalO // "$ref": "SasPortalOperation" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -4880,7 +4906,8 @@ func (c *CustomersDevicesPatchCall) Do(opts ...googleapi.CallOption) (*SasPortal // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -5022,7 +5049,8 @@ func (c *CustomersDevicesSignDeviceCall) Do(opts ...googleapi.CallOption) (*SasP // "$ref": "SasPortalEmpty" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -5164,7 +5192,8 @@ func (c *CustomersDevicesUpdateSignedCall) Do(opts ...googleapi.CallOption) (*Sa // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -5306,7 +5335,8 @@ func (c *CustomersNodesCreateCall) Do(opts ...googleapi.CallOption) (*SasPortalN // "$ref": "SasPortalNode" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -5438,7 +5468,8 @@ func (c *CustomersNodesDeleteCall) Do(opts ...googleapi.CallOption) (*SasPortalE // "$ref": "SasPortalEmpty" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -5584,7 +5615,8 @@ func (c *CustomersNodesGetCall) Do(opts ...googleapi.CallOption) (*SasPortalNode // "$ref": "SasPortalNode" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -5770,7 +5802,8 @@ func (c *CustomersNodesListCall) Do(opts ...googleapi.CallOption) (*SasPortalLis // "$ref": "SasPortalListNodesResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -5933,7 +5966,8 @@ func (c *CustomersNodesMoveCall) Do(opts ...googleapi.CallOption) (*SasPortalOpe // "$ref": "SasPortalOperation" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -6088,7 +6122,8 @@ func (c *CustomersNodesPatchCall) Do(opts ...googleapi.CallOption) (*SasPortalNo // "$ref": "SasPortalNode" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -6231,7 +6266,8 @@ func (c *CustomersNodesDeploymentsCreateCall) Do(opts ...googleapi.CallOption) ( // "$ref": "SasPortalDeployment" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -6418,7 +6454,8 @@ func (c *CustomersNodesDeploymentsListCall) Do(opts ...googleapi.CallOption) (*S // "$ref": "SasPortalListDeploymentsResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -6581,7 +6618,8 @@ func (c *CustomersNodesDevicesCreateCall) Do(opts ...googleapi.CallOption) (*Sas // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -6723,7 +6761,8 @@ func (c *CustomersNodesDevicesCreateSignedCall) Do(opts ...googleapi.CallOption) // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -6910,7 +6949,8 @@ func (c *CustomersNodesDevicesListCall) Do(opts ...googleapi.CallOption) (*SasPo // "$ref": "SasPortalListDevicesResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -7073,7 +7113,8 @@ func (c *CustomersNodesNodesCreateCall) Do(opts ...googleapi.CallOption) (*SasPo // "$ref": "SasPortalNode" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -7259,7 +7300,8 @@ func (c *CustomersNodesNodesListCall) Do(opts ...googleapi.CallOption) (*SasPort // "$ref": "SasPortalListNodesResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -7426,7 +7468,8 @@ func (c *DeploymentsGetCall) Do(opts ...googleapi.CallOption) (*SasPortalDeploym // "$ref": "SasPortalDeployment" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -7558,7 +7601,8 @@ func (c *DeploymentsDevicesDeleteCall) Do(opts ...googleapi.CallOption) (*SasPor // "$ref": "SasPortalEmpty" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -7704,7 +7748,8 @@ func (c *DeploymentsDevicesGetCall) Do(opts ...googleapi.CallOption) (*SasPortal // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -7846,7 +7891,8 @@ func (c *DeploymentsDevicesMoveCall) Do(opts ...googleapi.CallOption) (*SasPorta // "$ref": "SasPortalOperation" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -8001,7 +8047,8 @@ func (c *DeploymentsDevicesPatchCall) Do(opts ...googleapi.CallOption) (*SasPort // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -8143,7 +8190,8 @@ func (c *DeploymentsDevicesSignDeviceCall) Do(opts ...googleapi.CallOption) (*Sa // "$ref": "SasPortalEmpty" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -8285,7 +8333,8 @@ func (c *DeploymentsDevicesUpdateSignedCall) Do(opts ...googleapi.CallOption) (* // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -8411,7 +8460,8 @@ func (c *InstallerGenerateSecretCall) Do(opts ...googleapi.CallOption) (*SasPort // "$ref": "SasPortalGenerateSecretResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -8538,7 +8588,8 @@ func (c *InstallerValidateCall) Do(opts ...googleapi.CallOption) (*SasPortalVali // "$ref": "SasPortalValidateInstallerResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -8684,7 +8735,8 @@ func (c *NodesGetCall) Do(opts ...googleapi.CallOption) (*SasPortalNode, error) // "$ref": "SasPortalNode" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -8816,7 +8868,8 @@ func (c *NodesDeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*SasPorta // "$ref": "SasPortalEmpty" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -8962,7 +9015,8 @@ func (c *NodesDeploymentsGetCall) Do(opts ...googleapi.CallOption) (*SasPortalDe // "$ref": "SasPortalDeployment" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -9149,7 +9203,8 @@ func (c *NodesDeploymentsListCall) Do(opts ...googleapi.CallOption) (*SasPortalL // "$ref": "SasPortalListDeploymentsResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -9312,7 +9367,8 @@ func (c *NodesDeploymentsMoveCall) Do(opts ...googleapi.CallOption) (*SasPortalO // "$ref": "SasPortalOperation" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -9467,7 +9523,8 @@ func (c *NodesDeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*SasPortal // "$ref": "SasPortalDeployment" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -9609,7 +9666,8 @@ func (c *NodesDeploymentsDevicesCreateCall) Do(opts ...googleapi.CallOption) (*S // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -9751,7 +9809,8 @@ func (c *NodesDeploymentsDevicesCreateSignedCall) Do(opts ...googleapi.CallOptio // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -9938,7 +9997,8 @@ func (c *NodesDeploymentsDevicesListCall) Do(opts ...googleapi.CallOption) (*Sas // "$ref": "SasPortalListDevicesResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -10101,7 +10161,8 @@ func (c *NodesDevicesCreateCall) Do(opts ...googleapi.CallOption) (*SasPortalDev // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -10243,7 +10304,8 @@ func (c *NodesDevicesCreateSignedCall) Do(opts ...googleapi.CallOption) (*SasPor // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -10375,7 +10437,8 @@ func (c *NodesDevicesDeleteCall) Do(opts ...googleapi.CallOption) (*SasPortalEmp // "$ref": "SasPortalEmpty" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -10521,7 +10584,8 @@ func (c *NodesDevicesGetCall) Do(opts ...googleapi.CallOption) (*SasPortalDevice // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -10708,7 +10772,8 @@ func (c *NodesDevicesListCall) Do(opts ...googleapi.CallOption) (*SasPortalListD // "$ref": "SasPortalListDevicesResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -10871,7 +10936,8 @@ func (c *NodesDevicesMoveCall) Do(opts ...googleapi.CallOption) (*SasPortalOpera // "$ref": "SasPortalOperation" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -11026,7 +11092,8 @@ func (c *NodesDevicesPatchCall) Do(opts ...googleapi.CallOption) (*SasPortalDevi // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -11168,7 +11235,8 @@ func (c *NodesDevicesSignDeviceCall) Do(opts ...googleapi.CallOption) (*SasPorta // "$ref": "SasPortalEmpty" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -11310,7 +11378,8 @@ func (c *NodesDevicesUpdateSignedCall) Do(opts ...googleapi.CallOption) (*SasPor // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -11452,7 +11521,8 @@ func (c *NodesNodesCreateCall) Do(opts ...googleapi.CallOption) (*SasPortalNode, // "$ref": "SasPortalNode" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -11584,7 +11654,8 @@ func (c *NodesNodesDeleteCall) Do(opts ...googleapi.CallOption) (*SasPortalEmpty // "$ref": "SasPortalEmpty" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -11730,7 +11801,8 @@ func (c *NodesNodesGetCall) Do(opts ...googleapi.CallOption) (*SasPortalNode, er // "$ref": "SasPortalNode" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -11916,7 +11988,8 @@ func (c *NodesNodesListCall) Do(opts ...googleapi.CallOption) (*SasPortalListNod // "$ref": "SasPortalListNodesResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -12079,7 +12152,8 @@ func (c *NodesNodesMoveCall) Do(opts ...googleapi.CallOption) (*SasPortalOperati // "$ref": "SasPortalOperation" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -12234,7 +12308,8 @@ func (c *NodesNodesPatchCall) Do(opts ...googleapi.CallOption) (*SasPortalNode, // "$ref": "SasPortalNode" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -12377,7 +12452,8 @@ func (c *NodesNodesDeploymentsCreateCall) Do(opts ...googleapi.CallOption) (*Sas // "$ref": "SasPortalDeployment" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -12564,7 +12640,8 @@ func (c *NodesNodesDeploymentsListCall) Do(opts ...googleapi.CallOption) (*SasPo // "$ref": "SasPortalListDeploymentsResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -12727,7 +12804,8 @@ func (c *NodesNodesDevicesCreateCall) Do(opts ...googleapi.CallOption) (*SasPort // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -12869,7 +12947,8 @@ func (c *NodesNodesDevicesCreateSignedCall) Do(opts ...googleapi.CallOption) (*S // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -13056,7 +13135,8 @@ func (c *NodesNodesDevicesListCall) Do(opts ...googleapi.CallOption) (*SasPortal // "$ref": "SasPortalListDevicesResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -13219,7 +13299,8 @@ func (c *NodesNodesNodesCreateCall) Do(opts ...googleapi.CallOption) (*SasPortal // "$ref": "SasPortalNode" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -13405,7 +13486,8 @@ func (c *NodesNodesNodesListCall) Do(opts ...googleapi.CallOption) (*SasPortalLi // "$ref": "SasPortalListNodesResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -13552,7 +13634,8 @@ func (c *PoliciesGetCall) Do(opts ...googleapi.CallOption) (*SasPortalPolicy, er // "$ref": "SasPortalPolicy" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -13678,7 +13761,8 @@ func (c *PoliciesSetCall) Do(opts ...googleapi.CallOption) (*SasPortalPolicy, er // "$ref": "SasPortalPolicy" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -13804,7 +13888,8 @@ func (c *PoliciesTestCall) Do(opts ...googleapi.CallOption) (*SasPortalTestPermi // "$ref": "SasPortalTestPermissionsResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/sasportal" + // "https://www.googleapis.com/auth/sasportal", + // "https://www.googleapis.com/auth/userinfo.email" // ] // } diff --git a/run/v1alpha1/run-api.json b/run/v1alpha1/run-api.json index dc7f9738337..9b388fc0f6a 100644 --- a/run/v1alpha1/run-api.json +++ b/run/v1alpha1/run-api.json @@ -268,7 +268,7 @@ } } }, - "revision": "20220429", + "revision": "20220617", "rootUrl": "https://run.googleapis.com/", "schemas": { "ConfigMapEnvSource": { @@ -1078,7 +1078,7 @@ "properties": { "exec": { "$ref": "ExecAction", - "description": "(Optional) One and only one of the following should be specified. Exec specifies the action to take. A field inlined from the Handler message." + "description": "(Optional) Not supported by Cloud Run One and only one of the following should be specified. Exec specifies the action to take. A field inlined from the Handler message." }, "failureThreshold": { "description": "(Optional) Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", @@ -1094,17 +1094,17 @@ "description": "(Optional) HTTPGet specifies the http request to perform. A field inlined from the Handler message." }, "initialDelaySeconds": { - "description": "(Optional) Number of seconds after the container has started before liveness probes are initiated. Defaults to 0 seconds. Minimum value is 0. Max value for liveness probe is 3600. Max value for startup probe is 240. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "description": "(Optional) Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", "format": "int32", "type": "integer" }, "periodSeconds": { - "description": "(Optional) How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Max value for liveness probe is 3600. Max value for startup probe is 240. Must be greater or equal than timeout_seconds.", + "description": "(Optional) How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeout_seconds.", "format": "int32", "type": "integer" }, "successThreshold": { - "description": "(Optional) Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup Probes.", + "description": "(Optional) Minimum consecutive successes for the probe to be considered successful after having failed. Must be 1 if set.", "format": "int32", "type": "integer" }, diff --git a/run/v1alpha1/run-gen.go b/run/v1alpha1/run-gen.go index 4a5412d3ec4..e0fb4bc5c33 100644 --- a/run/v1alpha1/run-gen.go +++ b/run/v1alpha1/run-gen.go @@ -1641,9 +1641,9 @@ func (s *OwnerReference) MarshalJSON() ([]byte, error) { // be performed against a container to determine whether it is alive or // ready to receive traffic. type Probe struct { - // Exec: (Optional) One and only one of the following should be - // specified. Exec specifies the action to take. A field inlined from - // the Handler message. + // Exec: (Optional) Not supported by Cloud Run One and only one of the + // following should be specified. Exec specifies the action to take. A + // field inlined from the Handler message. Exec *ExecAction `json:"exec,omitempty"` // FailureThreshold: (Optional) Minimum consecutive failures for the @@ -1660,21 +1660,21 @@ type Probe struct { HttpGet *HTTPGetAction `json:"httpGet,omitempty"` // InitialDelaySeconds: (Optional) Number of seconds after the container - // has started before liveness probes are initiated. Defaults to 0 - // seconds. Minimum value is 0. Max value for liveness probe is 3600. - // Max value for startup probe is 240. More info: + // has started before the probe is initiated. Defaults to 0 seconds. + // Minimum value is 0. Maximum value for liveness probe is 3600. Maximum + // value for startup probe is 240. More info: // https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes InitialDelaySeconds int64 `json:"initialDelaySeconds,omitempty"` // PeriodSeconds: (Optional) How often (in seconds) to perform the - // probe. Default to 10 seconds. Minimum value is 1. Max value for - // liveness probe is 3600. Max value for startup probe is 240. Must be - // greater or equal than timeout_seconds. + // probe. Default to 10 seconds. Minimum value is 1. Maximum value for + // liveness probe is 3600. Maximum value for startup probe is 240. Must + // be greater or equal than timeout_seconds. PeriodSeconds int64 `json:"periodSeconds,omitempty"` // SuccessThreshold: (Optional) Minimum consecutive successes for the - // probe to be considered successful after having failed. Defaults to 1. - // Must be 1 for liveness and startup Probes. + // probe to be considered successful after having failed. Must be 1 if + // set. SuccessThreshold int64 `json:"successThreshold,omitempty"` // TcpSocket: (Optional) TCPSocket specifies an action involving a TCP diff --git a/sasportal/v1alpha1/sasportal-api.json b/sasportal/v1alpha1/sasportal-api.json index c9a310b6ba9..55432a3b8f2 100644 --- a/sasportal/v1alpha1/sasportal-api.json +++ b/sasportal/v1alpha1/sasportal-api.json @@ -2,6 +2,9 @@ "auth": { "oauth2": { "scopes": { + "https://www.googleapis.com/auth/sasportal": { + "description": "Read, create, update, and delete your SAS Portal data." + }, "https://www.googleapis.com/auth/userinfo.email": { "description": "See your primary Google Account email address" } @@ -128,6 +131,7 @@ "$ref": "SasPortalCustomer" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -155,6 +159,7 @@ "$ref": "SasPortalListCustomersResponse" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -189,6 +194,7 @@ "$ref": "SasPortalCustomer" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] } @@ -221,6 +227,7 @@ "$ref": "SasPortalDeployment" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -246,6 +253,7 @@ "$ref": "SasPortalEmpty" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -271,6 +279,7 @@ "$ref": "SasPortalDeployment" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -312,6 +321,7 @@ "$ref": "SasPortalListDeploymentsResponse" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -340,6 +350,7 @@ "$ref": "SasPortalOperation" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -374,6 +385,7 @@ "$ref": "SasPortalDeployment" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] } @@ -406,6 +418,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -434,6 +447,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -475,6 +489,7 @@ "$ref": "SasPortalListDevicesResponse" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] } @@ -509,6 +524,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -537,6 +553,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -562,6 +579,7 @@ "$ref": "SasPortalEmpty" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -587,6 +605,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -628,6 +647,7 @@ "$ref": "SasPortalListDevicesResponse" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -656,6 +676,7 @@ "$ref": "SasPortalOperation" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -690,6 +711,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -718,6 +740,7 @@ "$ref": "SasPortalEmpty" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -746,6 +769,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] } @@ -778,6 +802,7 @@ "$ref": "SasPortalNode" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -803,6 +828,7 @@ "$ref": "SasPortalEmpty" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -828,6 +854,7 @@ "$ref": "SasPortalNode" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -869,6 +896,7 @@ "$ref": "SasPortalListNodesResponse" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -897,6 +925,7 @@ "$ref": "SasPortalOperation" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -931,6 +960,7 @@ "$ref": "SasPortalNode" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] } @@ -963,6 +993,7 @@ "$ref": "SasPortalDeployment" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -1004,6 +1035,7 @@ "$ref": "SasPortalListDeploymentsResponse" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] } @@ -1036,6 +1068,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -1064,6 +1097,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -1105,6 +1139,7 @@ "$ref": "SasPortalListDevicesResponse" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] } @@ -1137,6 +1172,7 @@ "$ref": "SasPortalNode" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -1178,6 +1214,7 @@ "$ref": "SasPortalListNodesResponse" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] } @@ -1211,6 +1248,7 @@ "$ref": "SasPortalDeployment" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] } @@ -1240,6 +1278,7 @@ "$ref": "SasPortalEmpty" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -1265,6 +1304,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -1293,6 +1333,7 @@ "$ref": "SasPortalOperation" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -1327,6 +1368,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -1355,6 +1397,7 @@ "$ref": "SasPortalEmpty" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -1383,6 +1426,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] } @@ -1407,6 +1451,7 @@ "$ref": "SasPortalGenerateSecretResponse" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -1425,6 +1470,7 @@ "$ref": "SasPortalValidateInstallerResponse" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] } @@ -1454,6 +1500,7 @@ "$ref": "SasPortalNode" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] } @@ -1483,6 +1530,7 @@ "$ref": "SasPortalEmpty" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -1508,6 +1556,7 @@ "$ref": "SasPortalDeployment" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -1549,6 +1598,7 @@ "$ref": "SasPortalListDeploymentsResponse" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -1577,6 +1627,7 @@ "$ref": "SasPortalOperation" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -1611,6 +1662,7 @@ "$ref": "SasPortalDeployment" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] } @@ -1643,6 +1695,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -1671,6 +1724,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -1712,6 +1766,7 @@ "$ref": "SasPortalListDevicesResponse" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] } @@ -1746,6 +1801,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -1774,6 +1830,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -1799,6 +1856,7 @@ "$ref": "SasPortalEmpty" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -1824,6 +1882,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -1865,6 +1924,7 @@ "$ref": "SasPortalListDevicesResponse" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -1893,6 +1953,7 @@ "$ref": "SasPortalOperation" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -1927,6 +1988,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -1955,6 +2017,7 @@ "$ref": "SasPortalEmpty" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -1983,6 +2046,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] } @@ -2015,6 +2079,7 @@ "$ref": "SasPortalNode" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -2040,6 +2105,7 @@ "$ref": "SasPortalEmpty" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -2065,6 +2131,7 @@ "$ref": "SasPortalNode" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -2106,6 +2173,7 @@ "$ref": "SasPortalListNodesResponse" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -2134,6 +2202,7 @@ "$ref": "SasPortalOperation" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -2168,6 +2237,7 @@ "$ref": "SasPortalNode" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] } @@ -2200,6 +2270,7 @@ "$ref": "SasPortalDeployment" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -2241,6 +2312,7 @@ "$ref": "SasPortalListDeploymentsResponse" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] } @@ -2273,6 +2345,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -2301,6 +2374,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -2342,6 +2416,7 @@ "$ref": "SasPortalListDevicesResponse" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] } @@ -2374,6 +2449,7 @@ "$ref": "SasPortalNode" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -2415,6 +2491,7 @@ "$ref": "SasPortalListNodesResponse" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] } @@ -2441,6 +2518,7 @@ "$ref": "SasPortalPolicy" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -2459,6 +2537,7 @@ "$ref": "SasPortalPolicy" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] }, @@ -2477,13 +2556,14 @@ "$ref": "SasPortalTestPermissionsResponse" }, "scopes": [ + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email" ] } } } }, - "revision": "20220425", + "revision": "20220622", "rootUrl": "https://sasportal.googleapis.com/", "schemas": { "SasPortalAssignment": { diff --git a/sasportal/v1alpha1/sasportal-gen.go b/sasportal/v1alpha1/sasportal-gen.go index a5e64ce8013..0eee996f249 100644 --- a/sasportal/v1alpha1/sasportal-gen.go +++ b/sasportal/v1alpha1/sasportal-gen.go @@ -23,6 +23,10 @@ // // Other authentication options // +// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// +// sasportalService, err := sasportal.NewService(ctx, option.WithScopes(sasportal.UserinfoEmailScope)) +// // To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: // // sasportalService, err := sasportal.NewService(ctx, option.WithAPIKey("AIza...")) @@ -80,6 +84,9 @@ const mtlsBasePath = "https://sasportal.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( + // Read, create, update, and delete your SAS Portal data. + SasportalScope = "https://www.googleapis.com/auth/sasportal" + // See your primary Google Account email address UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.email" ) @@ -87,6 +94,7 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { scopesOption := internaloption.WithDefaultScopes( + "https://www.googleapis.com/auth/sasportal", "https://www.googleapis.com/auth/userinfo.email", ) // NOTE: prepend, so we don't override user-specified scopes. @@ -2063,6 +2071,7 @@ func (c *CustomersGetCall) Do(opts ...googleapi.CallOption) (*SasPortalCustomer, // "$ref": "SasPortalCustomer" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -2219,6 +2228,7 @@ func (c *CustomersListCall) Do(opts ...googleapi.CallOption) (*SasPortalListCust // "$ref": "SasPortalListCustomersResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -2395,6 +2405,7 @@ func (c *CustomersPatchCall) Do(opts ...googleapi.CallOption) (*SasPortalCustome // "$ref": "SasPortalCustomer" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -2538,6 +2549,7 @@ func (c *CustomersDeploymentsCreateCall) Do(opts ...googleapi.CallOption) (*SasP // "$ref": "SasPortalDeployment" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -2670,6 +2682,7 @@ func (c *CustomersDeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*SasP // "$ref": "SasPortalEmpty" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -2816,6 +2829,7 @@ func (c *CustomersDeploymentsGetCall) Do(opts ...googleapi.CallOption) (*SasPort // "$ref": "SasPortalDeployment" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -3003,6 +3017,7 @@ func (c *CustomersDeploymentsListCall) Do(opts ...googleapi.CallOption) (*SasPor // "$ref": "SasPortalListDeploymentsResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -3166,6 +3181,7 @@ func (c *CustomersDeploymentsMoveCall) Do(opts ...googleapi.CallOption) (*SasPor // "$ref": "SasPortalOperation" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -3321,6 +3337,7 @@ func (c *CustomersDeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*SasPo // "$ref": "SasPortalDeployment" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -3463,6 +3480,7 @@ func (c *CustomersDeploymentsDevicesCreateCall) Do(opts ...googleapi.CallOption) // "$ref": "SasPortalDevice" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -3605,6 +3623,7 @@ func (c *CustomersDeploymentsDevicesCreateSignedCall) Do(opts ...googleapi.CallO // "$ref": "SasPortalDevice" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -3792,6 +3811,7 @@ func (c *CustomersDeploymentsDevicesListCall) Do(opts ...googleapi.CallOption) ( // "$ref": "SasPortalListDevicesResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -3955,6 +3975,7 @@ func (c *CustomersDevicesCreateCall) Do(opts ...googleapi.CallOption) (*SasPorta // "$ref": "SasPortalDevice" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -4097,6 +4118,7 @@ func (c *CustomersDevicesCreateSignedCall) Do(opts ...googleapi.CallOption) (*Sa // "$ref": "SasPortalDevice" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -4229,6 +4251,7 @@ func (c *CustomersDevicesDeleteCall) Do(opts ...googleapi.CallOption) (*SasPorta // "$ref": "SasPortalEmpty" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -4375,6 +4398,7 @@ func (c *CustomersDevicesGetCall) Do(opts ...googleapi.CallOption) (*SasPortalDe // "$ref": "SasPortalDevice" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -4562,6 +4586,7 @@ func (c *CustomersDevicesListCall) Do(opts ...googleapi.CallOption) (*SasPortalL // "$ref": "SasPortalListDevicesResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -4725,6 +4750,7 @@ func (c *CustomersDevicesMoveCall) Do(opts ...googleapi.CallOption) (*SasPortalO // "$ref": "SasPortalOperation" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -4880,6 +4906,7 @@ func (c *CustomersDevicesPatchCall) Do(opts ...googleapi.CallOption) (*SasPortal // "$ref": "SasPortalDevice" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -5022,6 +5049,7 @@ func (c *CustomersDevicesSignDeviceCall) Do(opts ...googleapi.CallOption) (*SasP // "$ref": "SasPortalEmpty" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -5164,6 +5192,7 @@ func (c *CustomersDevicesUpdateSignedCall) Do(opts ...googleapi.CallOption) (*Sa // "$ref": "SasPortalDevice" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -5306,6 +5335,7 @@ func (c *CustomersNodesCreateCall) Do(opts ...googleapi.CallOption) (*SasPortalN // "$ref": "SasPortalNode" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -5438,6 +5468,7 @@ func (c *CustomersNodesDeleteCall) Do(opts ...googleapi.CallOption) (*SasPortalE // "$ref": "SasPortalEmpty" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -5584,6 +5615,7 @@ func (c *CustomersNodesGetCall) Do(opts ...googleapi.CallOption) (*SasPortalNode // "$ref": "SasPortalNode" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -5770,6 +5802,7 @@ func (c *CustomersNodesListCall) Do(opts ...googleapi.CallOption) (*SasPortalLis // "$ref": "SasPortalListNodesResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -5933,6 +5966,7 @@ func (c *CustomersNodesMoveCall) Do(opts ...googleapi.CallOption) (*SasPortalOpe // "$ref": "SasPortalOperation" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -6088,6 +6122,7 @@ func (c *CustomersNodesPatchCall) Do(opts ...googleapi.CallOption) (*SasPortalNo // "$ref": "SasPortalNode" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -6231,6 +6266,7 @@ func (c *CustomersNodesDeploymentsCreateCall) Do(opts ...googleapi.CallOption) ( // "$ref": "SasPortalDeployment" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -6418,6 +6454,7 @@ func (c *CustomersNodesDeploymentsListCall) Do(opts ...googleapi.CallOption) (*S // "$ref": "SasPortalListDeploymentsResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -6581,6 +6618,7 @@ func (c *CustomersNodesDevicesCreateCall) Do(opts ...googleapi.CallOption) (*Sas // "$ref": "SasPortalDevice" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -6723,6 +6761,7 @@ func (c *CustomersNodesDevicesCreateSignedCall) Do(opts ...googleapi.CallOption) // "$ref": "SasPortalDevice" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -6910,6 +6949,7 @@ func (c *CustomersNodesDevicesListCall) Do(opts ...googleapi.CallOption) (*SasPo // "$ref": "SasPortalListDevicesResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -7073,6 +7113,7 @@ func (c *CustomersNodesNodesCreateCall) Do(opts ...googleapi.CallOption) (*SasPo // "$ref": "SasPortalNode" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -7259,6 +7300,7 @@ func (c *CustomersNodesNodesListCall) Do(opts ...googleapi.CallOption) (*SasPort // "$ref": "SasPortalListNodesResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -7426,6 +7468,7 @@ func (c *DeploymentsGetCall) Do(opts ...googleapi.CallOption) (*SasPortalDeploym // "$ref": "SasPortalDeployment" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -7558,6 +7601,7 @@ func (c *DeploymentsDevicesDeleteCall) Do(opts ...googleapi.CallOption) (*SasPor // "$ref": "SasPortalEmpty" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -7704,6 +7748,7 @@ func (c *DeploymentsDevicesGetCall) Do(opts ...googleapi.CallOption) (*SasPortal // "$ref": "SasPortalDevice" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -7846,6 +7891,7 @@ func (c *DeploymentsDevicesMoveCall) Do(opts ...googleapi.CallOption) (*SasPorta // "$ref": "SasPortalOperation" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -8001,6 +8047,7 @@ func (c *DeploymentsDevicesPatchCall) Do(opts ...googleapi.CallOption) (*SasPort // "$ref": "SasPortalDevice" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -8143,6 +8190,7 @@ func (c *DeploymentsDevicesSignDeviceCall) Do(opts ...googleapi.CallOption) (*Sa // "$ref": "SasPortalEmpty" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -8285,6 +8333,7 @@ func (c *DeploymentsDevicesUpdateSignedCall) Do(opts ...googleapi.CallOption) (* // "$ref": "SasPortalDevice" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -8411,6 +8460,7 @@ func (c *InstallerGenerateSecretCall) Do(opts ...googleapi.CallOption) (*SasPort // "$ref": "SasPortalGenerateSecretResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -8538,6 +8588,7 @@ func (c *InstallerValidateCall) Do(opts ...googleapi.CallOption) (*SasPortalVali // "$ref": "SasPortalValidateInstallerResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -8684,6 +8735,7 @@ func (c *NodesGetCall) Do(opts ...googleapi.CallOption) (*SasPortalNode, error) // "$ref": "SasPortalNode" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -8816,6 +8868,7 @@ func (c *NodesDeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*SasPorta // "$ref": "SasPortalEmpty" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -8962,6 +9015,7 @@ func (c *NodesDeploymentsGetCall) Do(opts ...googleapi.CallOption) (*SasPortalDe // "$ref": "SasPortalDeployment" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -9149,6 +9203,7 @@ func (c *NodesDeploymentsListCall) Do(opts ...googleapi.CallOption) (*SasPortalL // "$ref": "SasPortalListDeploymentsResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -9312,6 +9367,7 @@ func (c *NodesDeploymentsMoveCall) Do(opts ...googleapi.CallOption) (*SasPortalO // "$ref": "SasPortalOperation" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -9467,6 +9523,7 @@ func (c *NodesDeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*SasPortal // "$ref": "SasPortalDeployment" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -9609,6 +9666,7 @@ func (c *NodesDeploymentsDevicesCreateCall) Do(opts ...googleapi.CallOption) (*S // "$ref": "SasPortalDevice" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -9751,6 +9809,7 @@ func (c *NodesDeploymentsDevicesCreateSignedCall) Do(opts ...googleapi.CallOptio // "$ref": "SasPortalDevice" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -9938,6 +9997,7 @@ func (c *NodesDeploymentsDevicesListCall) Do(opts ...googleapi.CallOption) (*Sas // "$ref": "SasPortalListDevicesResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -10101,6 +10161,7 @@ func (c *NodesDevicesCreateCall) Do(opts ...googleapi.CallOption) (*SasPortalDev // "$ref": "SasPortalDevice" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -10243,6 +10304,7 @@ func (c *NodesDevicesCreateSignedCall) Do(opts ...googleapi.CallOption) (*SasPor // "$ref": "SasPortalDevice" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -10375,6 +10437,7 @@ func (c *NodesDevicesDeleteCall) Do(opts ...googleapi.CallOption) (*SasPortalEmp // "$ref": "SasPortalEmpty" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -10521,6 +10584,7 @@ func (c *NodesDevicesGetCall) Do(opts ...googleapi.CallOption) (*SasPortalDevice // "$ref": "SasPortalDevice" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -10708,6 +10772,7 @@ func (c *NodesDevicesListCall) Do(opts ...googleapi.CallOption) (*SasPortalListD // "$ref": "SasPortalListDevicesResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -10871,6 +10936,7 @@ func (c *NodesDevicesMoveCall) Do(opts ...googleapi.CallOption) (*SasPortalOpera // "$ref": "SasPortalOperation" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -11026,6 +11092,7 @@ func (c *NodesDevicesPatchCall) Do(opts ...googleapi.CallOption) (*SasPortalDevi // "$ref": "SasPortalDevice" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -11168,6 +11235,7 @@ func (c *NodesDevicesSignDeviceCall) Do(opts ...googleapi.CallOption) (*SasPorta // "$ref": "SasPortalEmpty" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -11310,6 +11378,7 @@ func (c *NodesDevicesUpdateSignedCall) Do(opts ...googleapi.CallOption) (*SasPor // "$ref": "SasPortalDevice" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -11452,6 +11521,7 @@ func (c *NodesNodesCreateCall) Do(opts ...googleapi.CallOption) (*SasPortalNode, // "$ref": "SasPortalNode" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -11584,6 +11654,7 @@ func (c *NodesNodesDeleteCall) Do(opts ...googleapi.CallOption) (*SasPortalEmpty // "$ref": "SasPortalEmpty" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -11730,6 +11801,7 @@ func (c *NodesNodesGetCall) Do(opts ...googleapi.CallOption) (*SasPortalNode, er // "$ref": "SasPortalNode" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -11916,6 +11988,7 @@ func (c *NodesNodesListCall) Do(opts ...googleapi.CallOption) (*SasPortalListNod // "$ref": "SasPortalListNodesResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -12079,6 +12152,7 @@ func (c *NodesNodesMoveCall) Do(opts ...googleapi.CallOption) (*SasPortalOperati // "$ref": "SasPortalOperation" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -12234,6 +12308,7 @@ func (c *NodesNodesPatchCall) Do(opts ...googleapi.CallOption) (*SasPortalNode, // "$ref": "SasPortalNode" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -12377,6 +12452,7 @@ func (c *NodesNodesDeploymentsCreateCall) Do(opts ...googleapi.CallOption) (*Sas // "$ref": "SasPortalDeployment" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -12564,6 +12640,7 @@ func (c *NodesNodesDeploymentsListCall) Do(opts ...googleapi.CallOption) (*SasPo // "$ref": "SasPortalListDeploymentsResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -12727,6 +12804,7 @@ func (c *NodesNodesDevicesCreateCall) Do(opts ...googleapi.CallOption) (*SasPort // "$ref": "SasPortalDevice" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -12869,6 +12947,7 @@ func (c *NodesNodesDevicesCreateSignedCall) Do(opts ...googleapi.CallOption) (*S // "$ref": "SasPortalDevice" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -13056,6 +13135,7 @@ func (c *NodesNodesDevicesListCall) Do(opts ...googleapi.CallOption) (*SasPortal // "$ref": "SasPortalListDevicesResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -13219,6 +13299,7 @@ func (c *NodesNodesNodesCreateCall) Do(opts ...googleapi.CallOption) (*SasPortal // "$ref": "SasPortalNode" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -13405,6 +13486,7 @@ func (c *NodesNodesNodesListCall) Do(opts ...googleapi.CallOption) (*SasPortalLi // "$ref": "SasPortalListNodesResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -13552,6 +13634,7 @@ func (c *PoliciesGetCall) Do(opts ...googleapi.CallOption) (*SasPortalPolicy, er // "$ref": "SasPortalPolicy" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -13678,6 +13761,7 @@ func (c *PoliciesSetCall) Do(opts ...googleapi.CallOption) (*SasPortalPolicy, er // "$ref": "SasPortalPolicy" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } @@ -13804,6 +13888,7 @@ func (c *PoliciesTestCall) Do(opts ...googleapi.CallOption) (*SasPortalTestPermi // "$ref": "SasPortalTestPermissionsResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/sasportal", // "https://www.googleapis.com/auth/userinfo.email" // ] // } diff --git a/secretmanager/v1/secretmanager-api.json b/secretmanager/v1/secretmanager-api.json index 9018b0e8541..589ed9aada1 100644 --- a/secretmanager/v1/secretmanager-api.json +++ b/secretmanager/v1/secretmanager-api.json @@ -643,7 +643,7 @@ } } }, - "revision": "20220506", + "revision": "20220617", "rootUrl": "https://secretmanager.googleapis.com/", "schemas": { "AccessSecretVersionResponse": { @@ -1107,6 +1107,14 @@ "description": "Input only. The TTL for the Secret.", "format": "google-duration", "type": "string" + }, + "versionAliases": { + "additionalProperties": { + "format": "int64", + "type": "string" + }, + "description": "Optional. Mapping from version alias to version name. A version alias is a string with a maximum length of 63 characters and can contain uppercase and lowercase letters, numerals, and the hyphen (`-`) and underscore ('_') characters. An alias string must start with a letter and cannot be the string 'latest' or 'NEW'. No more than 50 aliases can be assigned to a given secret. Version-Alias pairs will be viewable via GetSecret and modifiable via UpdateSecret. At launch Access by Allias will only be supported on GetSecretVersion and AccessSecretVersion.", + "type": "object" } }, "type": "object" diff --git a/secretmanager/v1/secretmanager-gen.go b/secretmanager/v1/secretmanager-gen.go index 94076650ab5..d0a43a91081 100644 --- a/secretmanager/v1/secretmanager-gen.go +++ b/secretmanager/v1/secretmanager-gen.go @@ -1235,6 +1235,17 @@ type Secret struct { // Ttl: Input only. The TTL for the Secret. Ttl string `json:"ttl,omitempty"` + // VersionAliases: Optional. Mapping from version alias to version name. + // A version alias is a string with a maximum length of 63 characters + // and can contain uppercase and lowercase letters, numerals, and the + // hyphen (`-`) and underscore ('_') characters. An alias string must + // start with a letter and cannot be the string 'latest' or 'NEW'. No + // more than 50 aliases can be assigned to a given secret. Version-Alias + // pairs will be viewable via GetSecret and modifiable via UpdateSecret. + // At launch Access by Allias will only be supported on GetSecretVersion + // and AccessSecretVersion. + VersionAliases map[string]string `json:"versionAliases,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` diff --git a/servicemanagement/v1/servicemanagement-api.json b/servicemanagement/v1/servicemanagement-api.json index 70aab63cbf7..6af06eb5331 100644 --- a/servicemanagement/v1/servicemanagement-api.json +++ b/servicemanagement/v1/servicemanagement-api.json @@ -829,7 +829,7 @@ } } }, - "revision": "20220524", + "revision": "20220617", "rootUrl": "https://servicemanagement.googleapis.com/", "schemas": { "Advice": { @@ -1482,6 +1482,12 @@ }, "type": "object" }, + "EnableServiceResponse": { + "description": "Operation payload for EnableService method.", + "id": "EnableServiceResponse", + "properties": {}, + "type": "object" + }, "Endpoint": { "description": "`Endpoint` describes a network address of a service that serves a set of APIs. It is commonly known as a service endpoint. A service may expose any number of service endpoints, and all service endpoints share the same service definition, such as quota limits and monitoring metrics. Example: type: google.api.Service name: library-example.googleapis.com endpoints: # Declares network address `https://library-example.googleapis.com` # for service `library-example.googleapis.com`. The `https` scheme # is implicit for all service endpoints. Other schemes may be # supported in the future. - name: library-example.googleapis.com allow_cors: false - name: content-staging-library-example.googleapis.com # Allows HTTP OPTIONS calls to be passed to the API frontend, for it # to decide whether the subsequent cross-origin request is allowed # to proceed. allow_cors: true", "id": "Endpoint", @@ -2254,27 +2260,6 @@ "description": "Bind API methods to metrics. Binding a method to a metric causes that metric's configured quota behaviors to apply to the method call.", "id": "MetricRule", "properties": { - "dynamicMetricCosts": { - "additionalProperties": { - "enum": [ - "DYNAMIC_COST_TYPE_UNSPECIFIED", - "REQUEST_BODY_BYTES", - "REQUEST_BODY_AND_HEADER_BYTES", - "RESPONSE_BODY_BYTES", - "RESPONSE_BODY_AND_HEADER_BYTES" - ], - "enumDescriptions": [ - "Unspecified dynamic cost type.", - "Cost is the request body bytes", - "Cost is the request body and HTTP header bytes", - "Cost is the response body bytes", - "Cost is the response body and header bytes" - ], - "type": "string" - }, - "description": "Metrics to update when the selected methods are called. The key of the map is the metric name, the value is the DynamicCostType to specify how to calculate the cost from the request. The cost amount will be increased for the metric against which the quota limits are defined. It is only implemented in CloudESF(go/cloudesf)", - "type": "object" - }, "metricCosts": { "additionalProperties": { "format": "int64", diff --git a/servicemanagement/v1/servicemanagement-gen.go b/servicemanagement/v1/servicemanagement-gen.go index 55ceca66695..3581f7b6a8d 100644 --- a/servicemanagement/v1/servicemanagement-gen.go +++ b/servicemanagement/v1/servicemanagement-gen.go @@ -1561,6 +1561,10 @@ func (s *DocumentationRule) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// EnableServiceResponse: Operation payload for EnableService method. +type EnableServiceResponse struct { +} + // Endpoint: `Endpoint` describes a network address of a service that // serves a set of APIs. It is commonly known as a service endpoint. A // service may expose any number of service endpoints, and all service @@ -3015,14 +3019,6 @@ func (s *MetricDescriptorMetadata) MarshalJSON() ([]byte, error) { // causes that metric's configured quota behaviors to apply to the // method call. type MetricRule struct { - // DynamicMetricCosts: Metrics to update when the selected methods are - // called. The key of the map is the metric name, the value is the - // DynamicCostType to specify how to calculate the cost from the - // request. The cost amount will be increased for the metric against - // which the quota limits are defined. It is only implemented in - // CloudESF(go/cloudesf) - DynamicMetricCosts map[string]string `json:"dynamicMetricCosts,omitempty"` - // MetricCosts: Metrics to update when the selected methods are called, // and the associated cost applied to each metric. The key of the map is // the metric name, and the values are the amount increased for the @@ -3034,21 +3030,20 @@ type MetricRule struct { // selector for syntax details. Selector string `json:"selector,omitempty"` - // ForceSendFields is a list of field names (e.g. "DynamicMetricCosts") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "MetricCosts") to + // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DynamicMetricCosts") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "MetricCosts") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if 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/sts/v1/sts-api.json b/sts/v1/sts-api.json index 6f2d7aa5b05..d6d472ed153 100644 --- a/sts/v1/sts-api.json +++ b/sts/v1/sts-api.json @@ -131,7 +131,7 @@ } } }, - "revision": "20220422", + "revision": "20220619", "rootUrl": "https://sts.googleapis.com/", "schemas": { "GoogleIamV1Binding": { @@ -205,7 +205,7 @@ "type": "string" }, "options": { - "description": "A set of features that Security Token Service supports, in addition to the standard OAuth 2.0 token exchange, formatted as a serialized JSON object of Options.", + "description": "A set of features that Security Token Service supports, in addition to the standard OAuth 2.0 token exchange, formatted as a serialized JSON object of Options. The size of the parameter value must not exceed 4096 characters.", "type": "string" }, "requestedTokenType": { diff --git a/sts/v1/sts-gen.go b/sts/v1/sts-gen.go index f89d3a68d0f..2e78e3976ff 100644 --- a/sts/v1/sts-gen.go +++ b/sts/v1/sts-gen.go @@ -318,7 +318,8 @@ type GoogleIdentityStsV1ExchangeTokenRequest struct { // Options: A set of features that Security Token Service supports, in // addition to the standard OAuth 2.0 token exchange, formatted as a - // serialized JSON object of Options. + // serialized JSON object of Options. The size of the parameter value + // must not exceed 4096 characters. Options string `json:"options,omitempty"` // RequestedTokenType: Required. An identifier for the type of requested diff --git a/sts/v1beta/sts-api.json b/sts/v1beta/sts-api.json index 133619d46c9..9036c047def 100644 --- a/sts/v1beta/sts-api.json +++ b/sts/v1beta/sts-api.json @@ -116,7 +116,7 @@ } } }, - "revision": "20220402", + "revision": "20220619", "rootUrl": "https://sts.googleapis.com/", "schemas": { "GoogleIamV1Binding": { @@ -248,7 +248,7 @@ "type": "string" }, "options": { - "description": "A set of features that Security Token Service supports, in addition to the standard OAuth 2.0 token exchange, formatted as a serialized JSON object of Options.", + "description": "A set of features that Security Token Service supports, in addition to the standard OAuth 2.0 token exchange, formatted as a serialized JSON object of Options. The size of the parameter value must not exceed 4096 characters.", "type": "string" }, "requestedTokenType": { diff --git a/sts/v1beta/sts-gen.go b/sts/v1beta/sts-gen.go index 5df08c185f3..542fa9500e7 100644 --- a/sts/v1beta/sts-gen.go +++ b/sts/v1beta/sts-gen.go @@ -462,7 +462,8 @@ type GoogleIdentityStsV1betaExchangeTokenRequest struct { // Options: A set of features that Security Token Service supports, in // addition to the standard OAuth 2.0 token exchange, formatted as a - // serialized JSON object of Options. + // serialized JSON object of Options. The size of the parameter value + // must not exceed 4096 characters. Options string `json:"options,omitempty"` // RequestedTokenType: Required. The type of security token. Must be diff --git a/vmmigration/v1/vmmigration-api.json b/vmmigration/v1/vmmigration-api.json index 3217445aa60..ebc18ceb22b 100644 --- a/vmmigration/v1/vmmigration-api.json +++ b/vmmigration/v1/vmmigration-api.json @@ -1972,7 +1972,7 @@ } } }, - "revision": "20220602", + "revision": "20220616", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AddGroupMigrationRequest": { @@ -2055,6 +2055,11 @@ "description": "Represent the source AWS VM details.", "id": "AwsSourceVmDetails", "properties": { + "committedStorageBytes": { + "description": "The total size of the disks being migrated in bytes.", + "format": "int64", + "type": "string" + }, "firmware": { "description": "The firmware type of the source VM.", "enum": [ diff --git a/vmmigration/v1/vmmigration-gen.go b/vmmigration/v1/vmmigration-gen.go index 4f2be7a944a..deefe2ddeca 100644 --- a/vmmigration/v1/vmmigration-gen.go +++ b/vmmigration/v1/vmmigration-gen.go @@ -422,6 +422,10 @@ func (s *AvailableUpdates) MarshalJSON() ([]byte, error) { // AwsSourceVmDetails: Represent the source AWS VM details. type AwsSourceVmDetails struct { + // CommittedStorageBytes: The total size of the disks being migrated in + // bytes. + CommittedStorageBytes int64 `json:"committedStorageBytes,omitempty,string"` + // Firmware: The firmware type of the source VM. // // Possible values: @@ -430,20 +434,22 @@ type AwsSourceVmDetails struct { // "BIOS" - The firmware is BIOS. Firmware string `json:"firmware,omitempty"` - // ForceSendFields is a list of field names (e.g. "Firmware") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. + // "CommittedStorageBytes") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Firmware") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CommittedStorageBytes") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if 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/vmmigration/v1alpha1/vmmigration-api.json b/vmmigration/v1alpha1/vmmigration-api.json index 634f4527666..ffd7297eb5e 100644 --- a/vmmigration/v1alpha1/vmmigration-api.json +++ b/vmmigration/v1alpha1/vmmigration-api.json @@ -1972,7 +1972,7 @@ } } }, - "revision": "20220602", + "revision": "20220616", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AdaptingOSStep": { @@ -2061,6 +2061,11 @@ "description": "Represent the source AWS VM details.", "id": "AwsSourceVmDetails", "properties": { + "committedStorageBytes": { + "description": "The total size of the disks being migrated in bytes.", + "format": "int64", + "type": "string" + }, "firmware": { "description": "The firmware type of the source VM.", "enum": [ diff --git a/vmmigration/v1alpha1/vmmigration-gen.go b/vmmigration/v1alpha1/vmmigration-gen.go index 3977b674797..11a141fa312 100644 --- a/vmmigration/v1alpha1/vmmigration-gen.go +++ b/vmmigration/v1alpha1/vmmigration-gen.go @@ -426,6 +426,10 @@ func (s *AvailableUpdates) MarshalJSON() ([]byte, error) { // AwsSourceVmDetails: Represent the source AWS VM details. type AwsSourceVmDetails struct { + // CommittedStorageBytes: The total size of the disks being migrated in + // bytes. + CommittedStorageBytes int64 `json:"committedStorageBytes,omitempty,string"` + // Firmware: The firmware type of the source VM. // // Possible values: @@ -434,20 +438,22 @@ type AwsSourceVmDetails struct { // "BIOS" - The firmware is BIOS. Firmware string `json:"firmware,omitempty"` - // ForceSendFields is a list of field names (e.g. "Firmware") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. + // "CommittedStorageBytes") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Firmware") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CommittedStorageBytes") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` }