Skip to content

Commit

Permalink
fix(artifactregistry): add missing HTTP rules to service config
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 420790332
  • Loading branch information
Google APIs authored and Copybara-Service committed Jan 10, 2022
1 parent de228c8 commit 3965406
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 23 deletions.
1 change: 1 addition & 0 deletions google/devtools/artifactregistry/v1beta2/BUILD.bazel
Expand Up @@ -216,6 +216,7 @@ php_gapic_library(
name = "artifactregistry_php_gapic",
srcs = [":artifactregistry_proto_with_info"],
grpc_service_config = "artifactregistry_grpc_service_config.json",
service_yaml = "artifactregistry_v1beta2.yaml",
deps = [
":artifactregistry_php_grpc",
":artifactregistry_php_proto",
Expand Down
Expand Up @@ -22,60 +22,105 @@ documentation:
delivering value to the users of your services and applications. Note:
Enabling the Artifact Registry API will not affect your use of Container
Registry in the same project.
rules:
- selector: google.cloud.location.Locations.GetLocation
description: Gets information about a location.

- selector: google.cloud.location.Locations.ListLocations
description: Lists information about the supported locations for this service.

http:
rules:
- selector: google.cloud.location.Locations.GetLocation
get: '/v1beta2/{name=projects/*/locations/*}'
- selector: google.cloud.location.Locations.ListLocations
get: '/v1beta2/{name=projects/*}/locations'
- selector: google.longrunning.Operations.GetOperation
get: '/v1beta2/{name=projects/*/locations/*/operations/*}'

authentication:
rules:
- selector: 'google.devtools.artifactregistry.v1beta2.ArtifactRegistry.*'
- selector: google.cloud.location.Locations.GetLocation
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/cloud-platform.read-only
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.CreateRepository
- selector: google.cloud.location.Locations.ListLocations
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.CreateTag
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/cloud-platform.read-only
- selector: 'google.devtools.artifactregistry.v1beta2.ArtifactRegistry.*'
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.DeletePackage
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetFile
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.DeleteRepository
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/cloud-platform.read-only
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetIamPolicy
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.DeleteTag
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/cloud-platform.read-only
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetPackage
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.DeleteVersion
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/cloud-platform.read-only
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetProjectSettings
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.SetIamPolicy
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/cloud-platform.read-only
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetRepository
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.UpdateRepository
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/cloud-platform.read-only
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetTag
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.UpdateTag
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/cloud-platform.read-only
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetVersion
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform
- selector: 'google.longrunning.Operations.*'
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/cloud-platform.read-only
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListFiles
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/cloud-platform.read-only
- selector: google.longrunning.Operations.CancelOperation
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListPackages
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform
- selector: google.longrunning.Operations.DeleteOperation
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/cloud-platform.read-only
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListRepositories
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/cloud-platform.read-only
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListTags
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/cloud-platform.read-only
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListVersions
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/cloud-platform.read-only
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.TestIamPermissions
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/cloud-platform.read-only
- selector: google.longrunning.Operations.GetOperation
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/cloud-platform.read-only

0 comments on commit 3965406

Please sign in to comment.