Skip to content

Commit 1b2ab49

Browse files
Google APIscopybara-github
authored andcommitted
feat: Update Membership API v1beta1 proto
PiperOrigin-RevId: 357242088
1 parent f235b89 commit 1b2ab49

2 files changed

Lines changed: 49 additions & 1 deletion

File tree

google/cloud/gkehub/v1beta1/gkehub_v1beta1.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ types:
1111

1212
documentation:
1313
rules:
14+
- selector: google.cloud.location.Locations.GetLocation
15+
description: Gets information about a location.
16+
17+
- selector: google.cloud.location.Locations.ListLocations
18+
description: Lists information about the supported locations for this service.
19+
1420
- selector: google.iam.v1.IAMPolicy.GetIamPolicy
1521
description: |-
1622
Gets the access control policy for a resource. Returns an empty policy
@@ -38,19 +44,55 @@ backend:
3844
rules:
3945
- selector: 'google.cloud.gkehub.v1beta1.GkeHubMembershipService.*'
4046
deadline: 60.0
47+
- selector: google.cloud.location.Locations.GetLocation
48+
deadline: 60.0
49+
- selector: google.cloud.location.Locations.ListLocations
50+
deadline: 60.0
4151
- selector: 'google.iam.v1.IAMPolicy.*'
4252
deadline: 60.0
4353
- selector: 'google.longrunning.Operations.*'
4454
deadline: 60.0
4555
- selector: google.longrunning.Operations.GetOperation
4656
deadline: 5.0
4757

58+
http:
59+
rules:
60+
- selector: google.cloud.location.Locations.GetLocation
61+
get: '/v1beta1/{name=projects/*/locations/*}'
62+
- selector: google.cloud.location.Locations.ListLocations
63+
get: '/v1beta1/{name=projects/*}/locations'
64+
- selector: google.iam.v1.IAMPolicy.GetIamPolicy
65+
get: '/v1beta1/{resource=projects/*/locations/*/memberships/*}:getIamPolicy'
66+
- selector: google.iam.v1.IAMPolicy.SetIamPolicy
67+
post: '/v1beta1/{resource=projects/*/locations/*/memberships/*}:setIamPolicy'
68+
body: '*'
69+
- selector: google.iam.v1.IAMPolicy.TestIamPermissions
70+
post: '/v1beta1/{resource=projects/*/locations/*/memberships/*}:testIamPermissions'
71+
body: '*'
72+
- selector: google.longrunning.Operations.CancelOperation
73+
post: '/v1beta1/{name=projects/*/locations/*/operations/*}:cancel'
74+
body: '*'
75+
- selector: google.longrunning.Operations.DeleteOperation
76+
delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'
77+
- selector: google.longrunning.Operations.GetOperation
78+
get: '/v1beta1/{name=projects/*/locations/*/operations/*}'
79+
- selector: google.longrunning.Operations.ListOperations
80+
get: '/v1beta1/{name=projects/*/locations/*}/operations'
81+
4882
authentication:
4983
rules:
5084
- selector: 'google.cloud.gkehub.v1beta1.GkeHubMembershipService.*'
5185
oauth:
5286
canonical_scopes: |-
5387
https://www.googleapis.com/auth/cloud-platform
88+
- selector: google.cloud.location.Locations.GetLocation
89+
oauth:
90+
canonical_scopes: |-
91+
https://www.googleapis.com/auth/cloud-platform
92+
- selector: google.cloud.location.Locations.ListLocations
93+
oauth:
94+
canonical_scopes: |-
95+
https://www.googleapis.com/auth/cloud-platform
5496
- selector: 'google.iam.v1.IAMPolicy.*'
5597
oauth:
5698
canonical_scopes: |-

google/cloud/gkehub/v1beta1/membership.proto

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -370,6 +370,12 @@ message Authority {
370370
// Output only. An identity provider that reflects the `issuer` in the workload identity
371371
// pool.
372372
string identity_provider = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
373+
374+
// Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
375+
//
376+
// When this field is set, OIDC discovery will NOT be performed on `issuer`,
377+
// and instead OIDC tokens will be validated using this field.
378+
bytes oidc_jwks = 4 [(google.api.field_behavior) = OPTIONAL];
373379
}
374380

375381
// State of the Membership resource.

0 commit comments

Comments
 (0)