OSDN Git Service

new repo
[bytom/vapor.git] / vendor / google.golang.org / genproto / googleapis / iam / v1 / policy.pb.go
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/iam/v1/policy.proto
3
4 package iam
5
6 import proto "github.com/golang/protobuf/proto"
7 import fmt "fmt"
8 import math "math"
9 import _ "google.golang.org/genproto/googleapis/api/annotations"
10
11 // Reference imports to suppress errors if they are not otherwise used.
12 var _ = proto.Marshal
13 var _ = fmt.Errorf
14 var _ = math.Inf
15
16 // The type of action performed on a Binding in a policy.
17 type BindingDelta_Action int32
18
19 const (
20         // Unspecified.
21         BindingDelta_ACTION_UNSPECIFIED BindingDelta_Action = 0
22         // Addition of a Binding.
23         BindingDelta_ADD BindingDelta_Action = 1
24         // Removal of a Binding.
25         BindingDelta_REMOVE BindingDelta_Action = 2
26 )
27
28 var BindingDelta_Action_name = map[int32]string{
29         0: "ACTION_UNSPECIFIED",
30         1: "ADD",
31         2: "REMOVE",
32 }
33 var BindingDelta_Action_value = map[string]int32{
34         "ACTION_UNSPECIFIED": 0,
35         "ADD":                1,
36         "REMOVE":             2,
37 }
38
39 func (x BindingDelta_Action) String() string {
40         return proto.EnumName(BindingDelta_Action_name, int32(x))
41 }
42 func (BindingDelta_Action) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{3, 0} }
43
44 // Defines an Identity and Access Management (IAM) policy. It is used to
45 // specify access control policies for Cloud Platform resources.
46 //
47 //
48 // A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
49 // `members` to a `role`, where the members can be user accounts, Google groups,
50 // Google domains, and service accounts. A `role` is a named list of permissions
51 // defined by IAM.
52 //
53 // **Example**
54 //
55 //     {
56 //       "bindings": [
57 //         {
58 //           "role": "roles/owner",
59 //           "members": [
60 //             "user:mike@example.com",
61 //             "group:admins@example.com",
62 //             "domain:google.com",
63 //             "serviceAccount:my-other-app@appspot.gserviceaccount.com",
64 //           ]
65 //         },
66 //         {
67 //           "role": "roles/viewer",
68 //           "members": ["user:sean@example.com"]
69 //         }
70 //       ]
71 //     }
72 //
73 // For a description of IAM and its features, see the
74 // [IAM developer's guide](https://cloud.google.com/iam).
75 type Policy struct {
76         // Version of the `Policy`. The default version is 0.
77         Version int32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
78         // Associates a list of `members` to a `role`.
79         // Multiple `bindings` must not be specified for the same `role`.
80         // `bindings` with no members will result in an error.
81         Bindings []*Binding `protobuf:"bytes,4,rep,name=bindings" json:"bindings,omitempty"`
82         // `etag` is used for optimistic concurrency control as a way to help
83         // prevent simultaneous updates of a policy from overwriting each other.
84         // It is strongly suggested that systems make use of the `etag` in the
85         // read-modify-write cycle to perform policy updates in order to avoid race
86         // conditions: An `etag` is returned in the response to `getIamPolicy`, and
87         // systems are expected to put that etag in the request to `setIamPolicy` to
88         // ensure that their change will be applied to the same version of the policy.
89         //
90         // If no `etag` is provided in the call to `setIamPolicy`, then the existing
91         // policy is overwritten blindly.
92         Etag []byte `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"`
93 }
94
95 func (m *Policy) Reset()                    { *m = Policy{} }
96 func (m *Policy) String() string            { return proto.CompactTextString(m) }
97 func (*Policy) ProtoMessage()               {}
98 func (*Policy) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
99
100 func (m *Policy) GetVersion() int32 {
101         if m != nil {
102                 return m.Version
103         }
104         return 0
105 }
106
107 func (m *Policy) GetBindings() []*Binding {
108         if m != nil {
109                 return m.Bindings
110         }
111         return nil
112 }
113
114 func (m *Policy) GetEtag() []byte {
115         if m != nil {
116                 return m.Etag
117         }
118         return nil
119 }
120
121 // Associates `members` with a `role`.
122 type Binding struct {
123         // Role that is assigned to `members`.
124         // For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
125         // Required
126         Role string `protobuf:"bytes,1,opt,name=role" json:"role,omitempty"`
127         // Specifies the identities requesting access for a Cloud Platform resource.
128         // `members` can have the following values:
129         //
130         // * `allUsers`: A special identifier that represents anyone who is
131         //    on the internet; with or without a Google account.
132         //
133         // * `allAuthenticatedUsers`: A special identifier that represents anyone
134         //    who is authenticated with a Google account or a service account.
135         //
136         // * `user:{emailid}`: An email address that represents a specific Google
137         //    account. For example, `alice@gmail.com` or `joe@example.com`.
138         //
139         //
140         // * `serviceAccount:{emailid}`: An email address that represents a service
141         //    account. For example, `my-other-app@appspot.gserviceaccount.com`.
142         //
143         // * `group:{emailid}`: An email address that represents a Google group.
144         //    For example, `admins@example.com`.
145         //
146         // * `domain:{domain}`: A Google Apps domain name that represents all the
147         //    users of that domain. For example, `google.com` or `example.com`.
148         //
149         //
150         Members []string `protobuf:"bytes,2,rep,name=members" json:"members,omitempty"`
151 }
152
153 func (m *Binding) Reset()                    { *m = Binding{} }
154 func (m *Binding) String() string            { return proto.CompactTextString(m) }
155 func (*Binding) ProtoMessage()               {}
156 func (*Binding) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
157
158 func (m *Binding) GetRole() string {
159         if m != nil {
160                 return m.Role
161         }
162         return ""
163 }
164
165 func (m *Binding) GetMembers() []string {
166         if m != nil {
167                 return m.Members
168         }
169         return nil
170 }
171
172 // The difference delta between two policies.
173 type PolicyDelta struct {
174         // The delta for Bindings between two policies.
175         BindingDeltas []*BindingDelta `protobuf:"bytes,1,rep,name=binding_deltas,json=bindingDeltas" json:"binding_deltas,omitempty"`
176 }
177
178 func (m *PolicyDelta) Reset()                    { *m = PolicyDelta{} }
179 func (m *PolicyDelta) String() string            { return proto.CompactTextString(m) }
180 func (*PolicyDelta) ProtoMessage()               {}
181 func (*PolicyDelta) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
182
183 func (m *PolicyDelta) GetBindingDeltas() []*BindingDelta {
184         if m != nil {
185                 return m.BindingDeltas
186         }
187         return nil
188 }
189
190 // One delta entry for Binding. Each individual change (only one member in each
191 // entry) to a binding will be a separate entry.
192 type BindingDelta struct {
193         // The action that was performed on a Binding.
194         // Required
195         Action BindingDelta_Action `protobuf:"varint,1,opt,name=action,enum=google.iam.v1.BindingDelta_Action" json:"action,omitempty"`
196         // Role that is assigned to `members`.
197         // For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
198         // Required
199         Role string `protobuf:"bytes,2,opt,name=role" json:"role,omitempty"`
200         // A single identity requesting access for a Cloud Platform resource.
201         // Follows the same format of Binding.members.
202         // Required
203         Member string `protobuf:"bytes,3,opt,name=member" json:"member,omitempty"`
204 }
205
206 func (m *BindingDelta) Reset()                    { *m = BindingDelta{} }
207 func (m *BindingDelta) String() string            { return proto.CompactTextString(m) }
208 func (*BindingDelta) ProtoMessage()               {}
209 func (*BindingDelta) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
210
211 func (m *BindingDelta) GetAction() BindingDelta_Action {
212         if m != nil {
213                 return m.Action
214         }
215         return BindingDelta_ACTION_UNSPECIFIED
216 }
217
218 func (m *BindingDelta) GetRole() string {
219         if m != nil {
220                 return m.Role
221         }
222         return ""
223 }
224
225 func (m *BindingDelta) GetMember() string {
226         if m != nil {
227                 return m.Member
228         }
229         return ""
230 }
231
232 func init() {
233         proto.RegisterType((*Policy)(nil), "google.iam.v1.Policy")
234         proto.RegisterType((*Binding)(nil), "google.iam.v1.Binding")
235         proto.RegisterType((*PolicyDelta)(nil), "google.iam.v1.PolicyDelta")
236         proto.RegisterType((*BindingDelta)(nil), "google.iam.v1.BindingDelta")
237         proto.RegisterEnum("google.iam.v1.BindingDelta_Action", BindingDelta_Action_name, BindingDelta_Action_value)
238 }
239
240 func init() { proto.RegisterFile("google/iam/v1/policy.proto", fileDescriptor1) }
241
242 var fileDescriptor1 = []byte{
243         // 387 bytes of a gzipped FileDescriptorProto
244         0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x52, 0x4d, 0x8f, 0xd3, 0x30,
245         0x10, 0xc5, 0xed, 0x92, 0xd2, 0xd9, 0x0f, 0x15, 0x23, 0x55, 0xd1, 0xc2, 0xa1, 0xca, 0x29, 0x27,
246         0x87, 0x16, 0x21, 0x24, 0x38, 0x35, 0x4d, 0x40, 0x39, 0xb0, 0x1b, 0x0c, 0xec, 0x81, 0xcb, 0xca,
247         0x69, 0x2d, 0xcb, 0x28, 0xb6, 0xa3, 0x24, 0x54, 0xe2, 0x2f, 0x21, 0xf1, 0xff, 0x38, 0xa2, 0xd8,
248         0xee, 0xaa, 0x95, 0x10, 0xb7, 0x79, 0x79, 0xef, 0x65, 0xde, 0xcc, 0x18, 0xae, 0x85, 0x31, 0xa2,
249         0xe6, 0x89, 0x64, 0x2a, 0xd9, 0x2f, 0x93, 0xc6, 0xd4, 0x72, 0xfb, 0x93, 0x34, 0xad, 0xe9, 0x0d,
250         0xbe, 0x74, 0x1c, 0x91, 0x4c, 0x91, 0xfd, 0xf2, 0xfa, 0x85, 0x97, 0xb2, 0x46, 0x26, 0x4c, 0x6b,
251         0xd3, 0xb3, 0x5e, 0x1a, 0xdd, 0x39, 0x71, 0xf4, 0x1d, 0x82, 0xd2, 0x9a, 0x71, 0x08, 0x93, 0x3d,
252         0x6f, 0x3b, 0x69, 0x74, 0x88, 0x16, 0x28, 0x7e, 0x4c, 0x0f, 0x10, 0xaf, 0xe0, 0x49, 0x25, 0xf5,
253         0x4e, 0x6a, 0xd1, 0x85, 0x67, 0x8b, 0x71, 0x7c, 0xbe, 0x9a, 0x93, 0x93, 0x1e, 0x24, 0x75, 0x34,
254         0x7d, 0xd0, 0x61, 0x0c, 0x67, 0xbc, 0x67, 0x22, 0x1c, 0x2f, 0x50, 0x7c, 0x41, 0x6d, 0x1d, 0xbd,
255         0x81, 0x89, 0x17, 0x0e, 0x74, 0x6b, 0x6a, 0x6e, 0x3b, 0x4d, 0xa9, 0xad, 0x87, 0x00, 0x8a, 0xab,
256         0x8a, 0xb7, 0x5d, 0x38, 0x5a, 0x8c, 0xe3, 0x29, 0x3d, 0xc0, 0xe8, 0x13, 0x9c, 0xbb, 0x90, 0x19,
257         0xaf, 0x7b, 0x86, 0x53, 0xb8, 0xf2, 0x7d, 0xee, 0x77, 0xc3, 0x87, 0x2e, 0x44, 0x36, 0xd5, 0xf3,
258         0x7f, 0xa7, 0xb2, 0x26, 0x7a, 0x59, 0x1d, 0xa1, 0x2e, 0xfa, 0x8d, 0xe0, 0xe2, 0x98, 0xc7, 0x6f,
259         0x21, 0x60, 0xdb, 0xfe, 0x30, 0xfd, 0xd5, 0x2a, 0xfa, 0xcf, 0xcf, 0xc8, 0xda, 0x2a, 0xa9, 0x77,
260         0x3c, 0x4c, 0x33, 0x3a, 0x9a, 0x66, 0x0e, 0x81, 0x8b, 0x6f, 0x57, 0x30, 0xa5, 0x1e, 0x45, 0xaf,
261         0x21, 0x70, 0x6e, 0x3c, 0x07, 0xbc, 0xde, 0x7c, 0x29, 0x6e, 0x6f, 0xee, 0xbf, 0xde, 0x7c, 0x2e,
262         0xf3, 0x4d, 0xf1, 0xbe, 0xc8, 0xb3, 0xd9, 0x23, 0x3c, 0x81, 0xf1, 0x3a, 0xcb, 0x66, 0x08, 0x03,
263         0x04, 0x34, 0xff, 0x78, 0x7b, 0x97, 0xcf, 0x46, 0xa9, 0x82, 0xa7, 0x5b, 0xa3, 0x4e, 0x33, 0xa5,
264         0x7e, 0x2b, 0xe5, 0x70, 0xc9, 0x12, 0x7d, 0x7b, 0xe9, 0x59, 0x61, 0x6a, 0xa6, 0x05, 0x31, 0xad,
265         0x48, 0x04, 0xd7, 0xf6, 0xce, 0x89, 0xa3, 0x58, 0x23, 0x3b, 0xff, 0x66, 0xde, 0x49, 0xa6, 0xfe,
266         0x20, 0xf4, 0x6b, 0xf4, 0xec, 0x83, 0x73, 0x6d, 0x6a, 0xf3, 0x63, 0x47, 0x0a, 0xa6, 0xc8, 0xdd,
267         0xb2, 0x0a, 0xac, 0xeb, 0xd5, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8c, 0x4a, 0x85, 0x10, 0x68,
268         0x02, 0x00, 0x00,
269 }