Skip to content

Commit 3965406

Browse files
Google APIscopybara-github
authored andcommitted
fix(artifactregistry): add missing HTTP rules to service config
PiperOrigin-RevId: 420790332
1 parent de228c8 commit 3965406

File tree

2 files changed

+69
-23
lines changed

2 files changed

+69
-23
lines changed

google/devtools/artifactregistry/v1beta2/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ php_gapic_library(
216216
name = "artifactregistry_php_gapic",
217217
srcs = [":artifactregistry_proto_with_info"],
218218
grpc_service_config = "artifactregistry_grpc_service_config.json",
219+
service_yaml = "artifactregistry_v1beta2.yaml",
219220
deps = [
220221
":artifactregistry_php_grpc",
221222
":artifactregistry_php_proto",

google/devtools/artifactregistry/v1beta2/artifactregistry_v1beta2.yaml

Lines changed: 68 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -22,60 +22,105 @@ documentation:
2222
delivering value to the users of your services and applications. Note:
2323
Enabling the Artifact Registry API will not affect your use of Container
2424
Registry in the same project.
25+
rules:
26+
- selector: google.cloud.location.Locations.GetLocation
27+
description: Gets information about a location.
28+
29+
- selector: google.cloud.location.Locations.ListLocations
30+
description: Lists information about the supported locations for this service.
31+
32+
http:
33+
rules:
34+
- selector: google.cloud.location.Locations.GetLocation
35+
get: '/v1beta2/{name=projects/*/locations/*}'
36+
- selector: google.cloud.location.Locations.ListLocations
37+
get: '/v1beta2/{name=projects/*}/locations'
38+
- selector: google.longrunning.Operations.GetOperation
39+
get: '/v1beta2/{name=projects/*/locations/*/operations/*}'
2540

2641
authentication:
2742
rules:
28-
- selector: 'google.devtools.artifactregistry.v1beta2.ArtifactRegistry.*'
43+
- selector: google.cloud.location.Locations.GetLocation
2944
oauth:
3045
canonical_scopes: |-
3146
https://www.googleapis.com/auth/cloud-platform,
3247
https://www.googleapis.com/auth/cloud-platform.read-only
33-
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.CreateRepository
48+
- selector: google.cloud.location.Locations.ListLocations
3449
oauth:
3550
canonical_scopes: |-
36-
https://www.googleapis.com/auth/cloud-platform
37-
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.CreateTag
51+
https://www.googleapis.com/auth/cloud-platform,
52+
https://www.googleapis.com/auth/cloud-platform.read-only
53+
- selector: 'google.devtools.artifactregistry.v1beta2.ArtifactRegistry.*'
3854
oauth:
3955
canonical_scopes: |-
4056
https://www.googleapis.com/auth/cloud-platform
41-
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.DeletePackage
57+
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetFile
4258
oauth:
4359
canonical_scopes: |-
44-
https://www.googleapis.com/auth/cloud-platform
45-
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.DeleteRepository
60+
https://www.googleapis.com/auth/cloud-platform,
61+
https://www.googleapis.com/auth/cloud-platform.read-only
62+
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetIamPolicy
4663
oauth:
4764
canonical_scopes: |-
48-
https://www.googleapis.com/auth/cloud-platform
49-
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.DeleteTag
65+
https://www.googleapis.com/auth/cloud-platform,
66+
https://www.googleapis.com/auth/cloud-platform.read-only
67+
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetPackage
5068
oauth:
5169
canonical_scopes: |-
52-
https://www.googleapis.com/auth/cloud-platform
53-
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.DeleteVersion
70+
https://www.googleapis.com/auth/cloud-platform,
71+
https://www.googleapis.com/auth/cloud-platform.read-only
72+
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetProjectSettings
5473
oauth:
5574
canonical_scopes: |-
56-
https://www.googleapis.com/auth/cloud-platform
57-
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.SetIamPolicy
75+
https://www.googleapis.com/auth/cloud-platform,
76+
https://www.googleapis.com/auth/cloud-platform.read-only
77+
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetRepository
5878
oauth:
5979
canonical_scopes: |-
60-
https://www.googleapis.com/auth/cloud-platform
61-
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.UpdateRepository
80+
https://www.googleapis.com/auth/cloud-platform,
81+
https://www.googleapis.com/auth/cloud-platform.read-only
82+
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetTag
6283
oauth:
6384
canonical_scopes: |-
64-
https://www.googleapis.com/auth/cloud-platform
65-
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.UpdateTag
85+
https://www.googleapis.com/auth/cloud-platform,
86+
https://www.googleapis.com/auth/cloud-platform.read-only
87+
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetVersion
6688
oauth:
6789
canonical_scopes: |-
68-
https://www.googleapis.com/auth/cloud-platform
69-
- selector: 'google.longrunning.Operations.*'
90+
https://www.googleapis.com/auth/cloud-platform,
91+
https://www.googleapis.com/auth/cloud-platform.read-only
92+
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListFiles
7093
oauth:
7194
canonical_scopes: |-
7295
https://www.googleapis.com/auth/cloud-platform,
7396
https://www.googleapis.com/auth/cloud-platform.read-only
74-
- selector: google.longrunning.Operations.CancelOperation
97+
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListPackages
7598
oauth:
7699
canonical_scopes: |-
77-
https://www.googleapis.com/auth/cloud-platform
78-
- selector: google.longrunning.Operations.DeleteOperation
100+
https://www.googleapis.com/auth/cloud-platform,
101+
https://www.googleapis.com/auth/cloud-platform.read-only
102+
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListRepositories
79103
oauth:
80104
canonical_scopes: |-
81-
https://www.googleapis.com/auth/cloud-platform
105+
https://www.googleapis.com/auth/cloud-platform,
106+
https://www.googleapis.com/auth/cloud-platform.read-only
107+
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListTags
108+
oauth:
109+
canonical_scopes: |-
110+
https://www.googleapis.com/auth/cloud-platform,
111+
https://www.googleapis.com/auth/cloud-platform.read-only
112+
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListVersions
113+
oauth:
114+
canonical_scopes: |-
115+
https://www.googleapis.com/auth/cloud-platform,
116+
https://www.googleapis.com/auth/cloud-platform.read-only
117+
- selector: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.TestIamPermissions
118+
oauth:
119+
canonical_scopes: |-
120+
https://www.googleapis.com/auth/cloud-platform,
121+
https://www.googleapis.com/auth/cloud-platform.read-only
122+
- selector: google.longrunning.Operations.GetOperation
123+
oauth:
124+
canonical_scopes: |-
125+
https://www.googleapis.com/auth/cloud-platform,
126+
https://www.googleapis.com/auth/cloud-platform.read-only

0 commit comments

Comments
 (0)