Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/google/iam/v1/iam_policy_pb2.py: 39%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

51 statements  

1# -*- coding: utf-8 -*- 

2 

3# Copyright 2025 Google LLC 

4# 

5# Licensed under the Apache License, Version 2.0 (the "License"); 

6# you may not use this file except in compliance with the License. 

7# You may obtain a copy of the License at 

8# 

9# http://www.apache.org/licenses/LICENSE-2.0 

10# 

11# Unless required by applicable law or agreed to in writing, software 

12# distributed under the License is distributed on an "AS IS" BASIS, 

13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 

14# See the License for the specific language governing permissions and 

15# limitations under the License. 

16 

17# Generated by the protocol buffer compiler. DO NOT EDIT! 

18# NO CHECKED-IN PROTOBUF GENCODE 

19# source: google/iam/v1/iam_policy.proto 

20# Protobuf Python Version: 6.33.5 

21"""Generated protocol buffer code.""" 

22 

23from google.protobuf import descriptor as _descriptor 

24from google.protobuf import descriptor_pool as _descriptor_pool 

25from google.protobuf import runtime_version as _runtime_version 

26from google.protobuf import symbol_database as _symbol_database 

27from google.protobuf.internal import builder as _builder 

28 

29_runtime_version.ValidateProtobufRuntimeVersion( 

30 _runtime_version.Domain.PUBLIC, 6, 33, 5, "", "google/iam/v1/iam_policy.proto" 

31) 

32# @@protoc_insertion_point(imports) 

33 

34_sym_db = _symbol_database.Default() 

35 

36 

37from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 

38from google.api import client_pb2 as google_dot_api_dot_client__pb2 

39from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 

40from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 

41from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 

42 

43from google.iam.v1 import options_pb2 as google_dot_iam_dot_v1_dot_options__pb2 

44from google.iam.v1 import policy_pb2 as google_dot_iam_dot_v1_dot_policy__pb2 

45 

46DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( 

47 b'\n\x1egoogle/iam/v1/iam_policy.proto\x12\rgoogle.iam.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/iam/v1/options.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a google/protobuf/field_mask.proto"\x91\x01\n\x13SetIamPolicyRequest\x12\x1c\n\x08resource\x18\x01 \x01(\tB\n\xe2\x41\x01\x02\xfa\x41\x03\n\x01*\x12+\n\x06policy\x18\x02 \x01(\x0b\x32\x15.google.iam.v1.PolicyB\x04\xe2\x41\x01\x02\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"e\n\x13GetIamPolicyRequest\x12\x1c\n\x08resource\x18\x01 \x01(\tB\n\xe2\x41\x01\x02\xfa\x41\x03\n\x01*\x12\x30\n\x07options\x18\x02 \x01(\x0b\x32\x1f.google.iam.v1.GetPolicyOptions"T\n\x19TestIamPermissionsRequest\x12\x1c\n\x08resource\x18\x01 \x01(\tB\n\xe2\x41\x01\x02\xfa\x41\x03\n\x01*\x12\x19\n\x0bpermissions\x18\x02 \x03(\tB\x04\xe2\x41\x01\x02"1\n\x1aTestIamPermissionsResponse\x12\x13\n\x0bpermissions\x18\x01 \x03(\t2\xb4\x03\n\tIAMPolicy\x12t\n\x0cSetIamPolicy\x12".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy")\x82\xd3\xe4\x93\x02#"\x1e/v1/{resource=**}:setIamPolicy:\x01*\x12t\n\x0cGetIamPolicy\x12".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy")\x82\xd3\xe4\x93\x02#"\x1e/v1/{resource=**}:getIamPolicy:\x01*\x12\x9a\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse"/\x82\xd3\xe4\x93\x02)"$/v1/{resource=**}:testIamPermissions:\x01*\x1a\x1e\xca\x41\x1biam-meta-api.googleapis.comB|\n\x11\x63om.google.iam.v1B\x0eIamPolicyProtoP\x01Z)cloud.google.com/go/iam/apiv1/iampb;iampb\xaa\x02\x13Google.Cloud.Iam.V1\xca\x02\x13Google\\Cloud\\Iam\\V1b\x06proto3' 

48) 

49 

50_globals = globals() 

51_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) 

52_builder.BuildTopDescriptorsAndMessages( 

53 DESCRIPTOR, "google.iam.v1.iam_policy_pb2", _globals 

54) 

55if not _descriptor._USE_C_DESCRIPTORS: 

56 _globals["DESCRIPTOR"]._loaded_options = None 

57 _globals[ 

58 "DESCRIPTOR" 

59 ]._serialized_options = b"\n\021com.google.iam.v1B\016IamPolicyProtoP\001Z)cloud.google.com/go/iam/apiv1/iampb;iampb\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\Cloud\\Iam\\V1" 

60 _globals["_SETIAMPOLICYREQUEST"].fields_by_name["resource"]._loaded_options = None 

61 _globals["_SETIAMPOLICYREQUEST"].fields_by_name[ 

62 "resource" 

63 ]._serialized_options = b"\342A\001\002\372A\003\n\001*" 

64 _globals["_SETIAMPOLICYREQUEST"].fields_by_name["policy"]._loaded_options = None 

65 _globals["_SETIAMPOLICYREQUEST"].fields_by_name[ 

66 "policy" 

67 ]._serialized_options = b"\342A\001\002" 

68 _globals["_GETIAMPOLICYREQUEST"].fields_by_name["resource"]._loaded_options = None 

69 _globals["_GETIAMPOLICYREQUEST"].fields_by_name[ 

70 "resource" 

71 ]._serialized_options = b"\342A\001\002\372A\003\n\001*" 

72 _globals["_TESTIAMPERMISSIONSREQUEST"].fields_by_name[ 

73 "resource" 

74 ]._loaded_options = None 

75 _globals["_TESTIAMPERMISSIONSREQUEST"].fields_by_name[ 

76 "resource" 

77 ]._serialized_options = b"\342A\001\002\372A\003\n\001*" 

78 _globals["_TESTIAMPERMISSIONSREQUEST"].fields_by_name[ 

79 "permissions" 

80 ]._loaded_options = None 

81 _globals["_TESTIAMPERMISSIONSREQUEST"].fields_by_name[ 

82 "permissions" 

83 ]._serialized_options = b"\342A\001\002" 

84 _globals["_IAMPOLICY"]._loaded_options = None 

85 _globals["_IAMPOLICY"]._serialized_options = b"\312A\033iam-meta-api.googleapis.com" 

86 _globals["_IAMPOLICY"].methods_by_name["SetIamPolicy"]._loaded_options = None 

87 _globals["_IAMPOLICY"].methods_by_name[ 

88 "SetIamPolicy" 

89 ]._serialized_options = ( 

90 b'\202\323\344\223\002#"\036/v1/{resource=**}:setIamPolicy:\001*' 

91 ) 

92 _globals["_IAMPOLICY"].methods_by_name["GetIamPolicy"]._loaded_options = None 

93 _globals["_IAMPOLICY"].methods_by_name[ 

94 "GetIamPolicy" 

95 ]._serialized_options = ( 

96 b'\202\323\344\223\002#"\036/v1/{resource=**}:getIamPolicy:\001*' 

97 ) 

98 _globals["_IAMPOLICY"].methods_by_name["TestIamPermissions"]._loaded_options = None 

99 _globals["_IAMPOLICY"].methods_by_name[ 

100 "TestIamPermissions" 

101 ]._serialized_options = ( 

102 b'\202\323\344\223\002)"$/v1/{resource=**}:testIamPermissions:\001*' 

103 ) 

104 _globals["_SETIAMPOLICYREQUEST"]._serialized_start = 256 

105 _globals["_SETIAMPOLICYREQUEST"]._serialized_end = 401 

106 _globals["_GETIAMPOLICYREQUEST"]._serialized_start = 403 

107 _globals["_GETIAMPOLICYREQUEST"]._serialized_end = 504 

108 _globals["_TESTIAMPERMISSIONSREQUEST"]._serialized_start = 506 

109 _globals["_TESTIAMPERMISSIONSREQUEST"]._serialized_end = 590 

110 _globals["_TESTIAMPERMISSIONSRESPONSE"]._serialized_start = 592 

111 _globals["_TESTIAMPERMISSIONSRESPONSE"]._serialized_end = 641 

112 _globals["_IAMPOLICY"]._serialized_start = 644 

113 _globals["_IAMPOLICY"]._serialized_end = 1080 

114# @@protoc_insertion_point(module_scope)