service.proto 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // Copyright 2021 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.iap.v1beta1;
  16. import "google/api/annotations.proto";
  17. import "google/api/client.proto";
  18. import "google/iam/v1/iam_policy.proto";
  19. import "google/iam/v1/policy.proto";
  20. option go_package = "google.golang.org/genproto/googleapis/cloud/iap/v1beta1;iap";
  21. option java_multiple_files = true;
  22. option java_package = "com.google.cloud.iap.v1beta1";
  23. // APIs for Identity-Aware Proxy Admin configurations.
  24. service IdentityAwareProxyAdminV1Beta1 {
  25. option (google.api.default_host) = "iap.googleapis.com";
  26. option (google.api.oauth_scopes) =
  27. "https://www.googleapis.com/auth/cloud-platform";
  28. // Sets the access control policy for an Identity-Aware Proxy protected
  29. // resource. Replaces any existing policy.
  30. // More information about managing access via IAP can be found at:
  31. // https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
  32. rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest)
  33. returns (google.iam.v1.Policy) {
  34. option (google.api.http) = {
  35. post: "/v1beta1/{resource=**}:setIamPolicy"
  36. body: "*"
  37. };
  38. }
  39. // Gets the access control policy for an Identity-Aware Proxy protected
  40. // resource.
  41. // More information about managing access via IAP can be found at:
  42. // https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
  43. rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest)
  44. returns (google.iam.v1.Policy) {
  45. option (google.api.http) = {
  46. post: "/v1beta1/{resource=**}:getIamPolicy"
  47. body: "*"
  48. };
  49. }
  50. // Returns permissions that a caller has on the Identity-Aware Proxy protected
  51. // resource. If the resource does not exist or the caller does not have
  52. // Identity-Aware Proxy permissions a [google.rpc.Code.PERMISSION_DENIED]
  53. // will be returned.
  54. // More information about managing access via IAP can be found at:
  55. // https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
  56. rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest)
  57. returns (google.iam.v1.TestIamPermissionsResponse) {
  58. option (google.api.http) = {
  59. post: "/v1beta1/{resource=**}:testIamPermissions"
  60. body: "*"
  61. };
  62. }
  63. }