structure saas with tools
This commit is contained in:
13
.venv/lib/python3.10/site-packages/google/iam/v1/__init__.py
Normal file
13
.venv/lib/python3.10/site-packages/google/iam/v1/__init__.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# Copyright 2022 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,99 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2024 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/iam/v1/iam_policy.proto
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2
|
||||
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
||||
from google.api import client_pb2 as google_dot_api_dot_client__pb2
|
||||
from google.api import resource_pb2 as google_dot_api_dot_resource__pb2
|
||||
from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2
|
||||
|
||||
from google.iam.v1 import options_pb2 as google_dot_iam_dot_v1_dot_options__pb2
|
||||
from google.iam.v1 import policy_pb2 as google_dot_iam_dot_v1_dot_policy__pb2
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
||||
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"\x8f\x01\n\x13SetIamPolicyRequest\x12\x1b\n\x08resource\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12*\n\x06policy\x18\x02 \x01(\x0b\x32\x15.google.iam.v1.PolicyB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"d\n\x13GetIamPolicyRequest\x12\x1b\n\x08resource\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12\x30\n\x07options\x18\x02 \x01(\x0b\x32\x1f.google.iam.v1.GetPolicyOptions"R\n\x19TestIamPermissionsRequest\x12\x1b\n\x08resource\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12\x18\n\x0bpermissions\x18\x02 \x03(\tB\x03\xe0\x41\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'
|
||||
)
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(
|
||||
DESCRIPTOR, "google.iam.v1.iam_policy_pb2", _globals
|
||||
)
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
DESCRIPTOR._options = None
|
||||
DESCRIPTOR._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"
|
||||
_SETIAMPOLICYREQUEST.fields_by_name["resource"]._options = None
|
||||
_SETIAMPOLICYREQUEST.fields_by_name[
|
||||
"resource"
|
||||
]._serialized_options = b"\340A\002\372A\003\n\001*"
|
||||
_SETIAMPOLICYREQUEST.fields_by_name["policy"]._options = None
|
||||
_SETIAMPOLICYREQUEST.fields_by_name["policy"]._serialized_options = b"\340A\002"
|
||||
_GETIAMPOLICYREQUEST.fields_by_name["resource"]._options = None
|
||||
_GETIAMPOLICYREQUEST.fields_by_name[
|
||||
"resource"
|
||||
]._serialized_options = b"\340A\002\372A\003\n\001*"
|
||||
_TESTIAMPERMISSIONSREQUEST.fields_by_name["resource"]._options = None
|
||||
_TESTIAMPERMISSIONSREQUEST.fields_by_name[
|
||||
"resource"
|
||||
]._serialized_options = b"\340A\002\372A\003\n\001*"
|
||||
_TESTIAMPERMISSIONSREQUEST.fields_by_name["permissions"]._options = None
|
||||
_TESTIAMPERMISSIONSREQUEST.fields_by_name[
|
||||
"permissions"
|
||||
]._serialized_options = b"\340A\002"
|
||||
_IAMPOLICY._options = None
|
||||
_IAMPOLICY._serialized_options = b"\312A\033iam-meta-api.googleapis.com"
|
||||
_IAMPOLICY.methods_by_name["SetIamPolicy"]._options = None
|
||||
_IAMPOLICY.methods_by_name[
|
||||
"SetIamPolicy"
|
||||
]._serialized_options = (
|
||||
b'\202\323\344\223\002#"\036/v1/{resource=**}:setIamPolicy:\001*'
|
||||
)
|
||||
_IAMPOLICY.methods_by_name["GetIamPolicy"]._options = None
|
||||
_IAMPOLICY.methods_by_name[
|
||||
"GetIamPolicy"
|
||||
]._serialized_options = (
|
||||
b'\202\323\344\223\002#"\036/v1/{resource=**}:getIamPolicy:\001*'
|
||||
)
|
||||
_IAMPOLICY.methods_by_name["TestIamPermissions"]._options = None
|
||||
_IAMPOLICY.methods_by_name[
|
||||
"TestIamPermissions"
|
||||
]._serialized_options = (
|
||||
b'\202\323\344\223\002)"$/v1/{resource=**}:testIamPermissions:\001*'
|
||||
)
|
||||
_globals["_SETIAMPOLICYREQUEST"]._serialized_start = 256
|
||||
_globals["_SETIAMPOLICYREQUEST"]._serialized_end = 399
|
||||
_globals["_GETIAMPOLICYREQUEST"]._serialized_start = 401
|
||||
_globals["_GETIAMPOLICYREQUEST"]._serialized_end = 501
|
||||
_globals["_TESTIAMPERMISSIONSREQUEST"]._serialized_start = 503
|
||||
_globals["_TESTIAMPERMISSIONSREQUEST"]._serialized_end = 585
|
||||
_globals["_TESTIAMPERMISSIONSRESPONSE"]._serialized_start = 587
|
||||
_globals["_TESTIAMPERMISSIONSRESPONSE"]._serialized_end = 636
|
||||
_globals["_IAMPOLICY"]._serialized_start = 639
|
||||
_globals["_IAMPOLICY"]._serialized_end = 1075
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
@@ -0,0 +1,155 @@
|
||||
# Copyright 2022 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
|
||||
|
||||
import grpc
|
||||
|
||||
from google.iam.v1 import iam_policy_pb2 as google_dot_iam_dot_v1_dot_iam__policy__pb2
|
||||
from google.iam.v1 import policy_pb2 as google_dot_iam_dot_v1_dot_policy__pb2
|
||||
|
||||
|
||||
class IAMPolicyStub(object):
|
||||
"""## API Overview
|
||||
|
||||
Manages Identity and Access Management (IAM) policies.
|
||||
|
||||
Any implementation of an API that offers access control features
|
||||
implements the google.iam.v1.IAMPolicy interface.
|
||||
|
||||
## Data model
|
||||
|
||||
Access control is applied when a principal (user or service account), takes
|
||||
some action on a resource exposed by a service. Resources, identified by
|
||||
URI-like names, are the unit of access control specification. Service
|
||||
implementations can choose the granularity of access control and the
|
||||
supported permissions for their resources.
|
||||
For example one database service may allow access control to be
|
||||
specified only at the Table level, whereas another might allow access control
|
||||
to also be specified at the Column level.
|
||||
|
||||
## Policy Structure
|
||||
|
||||
See google.iam.v1.Policy
|
||||
|
||||
This is intentionally not a CRUD style API because access control policies
|
||||
are created and deleted implicitly with the resources to which they are
|
||||
attached.
|
||||
"""
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
|
||||
Args:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.SetIamPolicy = channel.unary_unary(
|
||||
"/google.iam.v1.IAMPolicy/SetIamPolicy",
|
||||
request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.SerializeToString,
|
||||
response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString,
|
||||
)
|
||||
self.GetIamPolicy = channel.unary_unary(
|
||||
"/google.iam.v1.IAMPolicy/GetIamPolicy",
|
||||
request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.SerializeToString,
|
||||
response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString,
|
||||
)
|
||||
self.TestIamPermissions = channel.unary_unary(
|
||||
"/google.iam.v1.IAMPolicy/TestIamPermissions",
|
||||
request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.SerializeToString,
|
||||
response_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.FromString,
|
||||
)
|
||||
|
||||
|
||||
class IAMPolicyServicer(object):
|
||||
"""## API Overview
|
||||
|
||||
Manages Identity and Access Management (IAM) policies.
|
||||
|
||||
Any implementation of an API that offers access control features
|
||||
implements the google.iam.v1.IAMPolicy interface.
|
||||
|
||||
## Data model
|
||||
|
||||
Access control is applied when a principal (user or service account), takes
|
||||
some action on a resource exposed by a service. Resources, identified by
|
||||
URI-like names, are the unit of access control specification. Service
|
||||
implementations can choose the granularity of access control and the
|
||||
supported permissions for their resources.
|
||||
For example one database service may allow access control to be
|
||||
specified only at the Table level, whereas another might allow access control
|
||||
to also be specified at the Column level.
|
||||
|
||||
## Policy Structure
|
||||
|
||||
See google.iam.v1.Policy
|
||||
|
||||
This is intentionally not a CRUD style API because access control policies
|
||||
are created and deleted implicitly with the resources to which they are
|
||||
attached.
|
||||
"""
|
||||
|
||||
def SetIamPolicy(self, request, context):
|
||||
"""Sets the access control policy on the specified resource. Replaces any
|
||||
existing policy.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details("Method not implemented!")
|
||||
raise NotImplementedError("Method not implemented!")
|
||||
|
||||
def GetIamPolicy(self, request, context):
|
||||
"""Gets the access control policy for a resource.
|
||||
Returns an empty policy if the resource exists and does not have a policy
|
||||
set.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details("Method not implemented!")
|
||||
raise NotImplementedError("Method not implemented!")
|
||||
|
||||
def TestIamPermissions(self, request, context):
|
||||
"""Returns permissions that a caller has on the specified resource.
|
||||
If the resource does not exist, this will return an empty set of
|
||||
permissions, not a NOT_FOUND error.
|
||||
|
||||
Note: This operation is designed to be used for building permission-aware
|
||||
UIs and command-line tools, not for authorization checking. This operation
|
||||
may "fail open" without warning.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details("Method not implemented!")
|
||||
raise NotImplementedError("Method not implemented!")
|
||||
|
||||
|
||||
def add_IAMPolicyServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
"SetIamPolicy": grpc.unary_unary_rpc_method_handler(
|
||||
servicer.SetIamPolicy,
|
||||
request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.FromString,
|
||||
response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString,
|
||||
),
|
||||
"GetIamPolicy": grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetIamPolicy,
|
||||
request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.FromString,
|
||||
response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString,
|
||||
),
|
||||
"TestIamPermissions": grpc.unary_unary_rpc_method_handler(
|
||||
servicer.TestIamPermissions,
|
||||
request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.FromString,
|
||||
response_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
"google.iam.v1.IAMPolicy", rpc_method_handlers
|
||||
)
|
||||
server.add_generic_rpc_handlers((generic_handler,))
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,46 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2024 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/iam/v1/logging/audit_data.proto
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from google.iam.v1 import policy_pb2 as google_dot_iam_dot_v1_dot_policy__pb2
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
||||
b'\n&google/iam/v1/logging/audit_data.proto\x12\x15google.iam.v1.logging\x1a\x1agoogle/iam/v1/policy.proto"=\n\tAuditData\x12\x30\n\x0cpolicy_delta\x18\x02 \x01(\x0b\x32\x1a.google.iam.v1.PolicyDeltaB\x86\x01\n\x19\x63om.google.iam.v1.loggingB\x0e\x41uditDataProtoP\x01Z9cloud.google.com/go/iam/apiv1/logging/loggingpb;loggingpb\xaa\x02\x1bGoogle.Cloud.Iam.V1.Loggingb\x06proto3'
|
||||
)
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(
|
||||
DESCRIPTOR, "google.iam.v1.logging.audit_data_pb2", _globals
|
||||
)
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
DESCRIPTOR._options = None
|
||||
DESCRIPTOR._serialized_options = b"\n\031com.google.iam.v1.loggingB\016AuditDataProtoP\001Z9cloud.google.com/go/iam/apiv1/logging/loggingpb;loggingpb\252\002\033Google.Cloud.Iam.V1.Logging"
|
||||
_globals["_AUDITDATA"]._serialized_start = 93
|
||||
_globals["_AUDITDATA"]._serialized_end = 154
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
@@ -0,0 +1,44 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2024 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/iam/v1/options.proto
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
||||
b'\n\x1bgoogle/iam/v1/options.proto\x12\rgoogle.iam.v1"4\n\x10GetPolicyOptions\x12 \n\x18requested_policy_version\x18\x01 \x01(\x05\x42}\n\x11\x63om.google.iam.v1B\x0cOptionsProtoP\x01Z)cloud.google.com/go/iam/apiv1/iampb;iampb\xf8\x01\x01\xaa\x02\x13Google.Cloud.Iam.V1\xca\x02\x13Google\\Cloud\\Iam\\V1b\x06proto3'
|
||||
)
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(
|
||||
DESCRIPTOR, "google.iam.v1.options_pb2", _globals
|
||||
)
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
DESCRIPTOR._options = None
|
||||
DESCRIPTOR._serialized_options = b"\n\021com.google.iam.v1B\014OptionsProtoP\001Z)cloud.google.com/go/iam/apiv1/iampb;iampb\370\001\001\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\Cloud\\Iam\\V1"
|
||||
_globals["_GETPOLICYOPTIONS"]._serialized_start = 46
|
||||
_globals["_GETPOLICYOPTIONS"]._serialized_end = 98
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
@@ -0,0 +1,15 @@
|
||||
# Copyright 2022 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
@@ -0,0 +1,64 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2024 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/iam/v1/policy.proto
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from google.type import expr_pb2 as google_dot_type_dot_expr__pb2
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
||||
b'\n\x1agoogle/iam/v1/policy.proto\x12\rgoogle.iam.v1\x1a\x16google/type/expr.proto"\x84\x01\n\x06Policy\x12\x0f\n\x07version\x18\x01 \x01(\x05\x12(\n\x08\x62indings\x18\x04 \x03(\x0b\x32\x16.google.iam.v1.Binding\x12\x31\n\raudit_configs\x18\x06 \x03(\x0b\x32\x1a.google.iam.v1.AuditConfig\x12\x0c\n\x04\x65tag\x18\x03 \x01(\x0c"N\n\x07\x42inding\x12\x0c\n\x04role\x18\x01 \x01(\t\x12\x0f\n\x07members\x18\x02 \x03(\t\x12$\n\tcondition\x18\x03 \x01(\x0b\x32\x11.google.type.Expr"X\n\x0b\x41uditConfig\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x38\n\x11\x61udit_log_configs\x18\x03 \x03(\x0b\x32\x1d.google.iam.v1.AuditLogConfig"\xb7\x01\n\x0e\x41uditLogConfig\x12\x37\n\x08log_type\x18\x01 \x01(\x0e\x32%.google.iam.v1.AuditLogConfig.LogType\x12\x18\n\x10\x65xempted_members\x18\x02 \x03(\t"R\n\x07LogType\x12\x18\n\x14LOG_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nADMIN_READ\x10\x01\x12\x0e\n\nDATA_WRITE\x10\x02\x12\r\n\tDATA_READ\x10\x03"\x80\x01\n\x0bPolicyDelta\x12\x33\n\x0e\x62inding_deltas\x18\x01 \x03(\x0b\x32\x1b.google.iam.v1.BindingDelta\x12<\n\x13\x61udit_config_deltas\x18\x02 \x03(\x0b\x32\x1f.google.iam.v1.AuditConfigDelta"\xbd\x01\n\x0c\x42indingDelta\x12\x32\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32".google.iam.v1.BindingDelta.Action\x12\x0c\n\x04role\x18\x02 \x01(\t\x12\x0e\n\x06member\x18\x03 \x01(\t\x12$\n\tcondition\x18\x04 \x01(\x0b\x32\x11.google.type.Expr"5\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\n\n\x06REMOVE\x10\x02"\xbd\x01\n\x10\x41uditConfigDelta\x12\x36\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32&.google.iam.v1.AuditConfigDelta.Action\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x17\n\x0f\x65xempted_member\x18\x03 \x01(\t\x12\x10\n\x08log_type\x18\x04 \x01(\t"5\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\n\n\x06REMOVE\x10\x02\x42|\n\x11\x63om.google.iam.v1B\x0bPolicyProtoP\x01Z)cloud.google.com/go/iam/apiv1/iampb;iampb\xf8\x01\x01\xaa\x02\x13Google.Cloud.Iam.V1\xca\x02\x13Google\\Cloud\\Iam\\V1b\x06proto3'
|
||||
)
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(
|
||||
DESCRIPTOR, "google.iam.v1.policy_pb2", _globals
|
||||
)
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
DESCRIPTOR._options = None
|
||||
DESCRIPTOR._serialized_options = b"\n\021com.google.iam.v1B\013PolicyProtoP\001Z)cloud.google.com/go/iam/apiv1/iampb;iampb\370\001\001\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\Cloud\\Iam\\V1"
|
||||
_globals["_POLICY"]._serialized_start = 70
|
||||
_globals["_POLICY"]._serialized_end = 202
|
||||
_globals["_BINDING"]._serialized_start = 204
|
||||
_globals["_BINDING"]._serialized_end = 282
|
||||
_globals["_AUDITCONFIG"]._serialized_start = 284
|
||||
_globals["_AUDITCONFIG"]._serialized_end = 372
|
||||
_globals["_AUDITLOGCONFIG"]._serialized_start = 375
|
||||
_globals["_AUDITLOGCONFIG"]._serialized_end = 558
|
||||
_globals["_AUDITLOGCONFIG_LOGTYPE"]._serialized_start = 476
|
||||
_globals["_AUDITLOGCONFIG_LOGTYPE"]._serialized_end = 558
|
||||
_globals["_POLICYDELTA"]._serialized_start = 561
|
||||
_globals["_POLICYDELTA"]._serialized_end = 689
|
||||
_globals["_BINDINGDELTA"]._serialized_start = 692
|
||||
_globals["_BINDINGDELTA"]._serialized_end = 881
|
||||
_globals["_BINDINGDELTA_ACTION"]._serialized_start = 828
|
||||
_globals["_BINDINGDELTA_ACTION"]._serialized_end = 881
|
||||
_globals["_AUDITCONFIGDELTA"]._serialized_start = 884
|
||||
_globals["_AUDITCONFIGDELTA"]._serialized_end = 1073
|
||||
_globals["_AUDITCONFIGDELTA_ACTION"]._serialized_start = 828
|
||||
_globals["_AUDITCONFIGDELTA_ACTION"]._serialized_end = 881
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
@@ -0,0 +1,15 @@
|
||||
# Copyright 2022 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
@@ -0,0 +1,54 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2024 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/iam/v1/resource_policy_member.proto
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
||||
b'\n*google/iam/v1/resource_policy_member.proto\x12\rgoogle.iam.v1\x1a\x1fgoogle/api/field_behavior.proto"e\n\x14ResourcePolicyMember\x12&\n\x19iam_policy_name_principal\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12%\n\x18iam_policy_uid_principal\x18\x02 \x01(\tB\x03\xe0\x41\x03\x42\x87\x01\n\x11\x63om.google.iam.v1B\x19ResourcePolicyMemberProtoP\x01Z)cloud.google.com/go/iam/apiv1/iampb;iampb\xaa\x02\x13Google.Cloud.Iam.V1\xca\x02\x13Google\\Cloud\\Iam\\V1b\x06proto3'
|
||||
)
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(
|
||||
DESCRIPTOR, "google.iam.v1.resource_policy_member_pb2", _globals
|
||||
)
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
DESCRIPTOR._options = None
|
||||
DESCRIPTOR._serialized_options = b"\n\021com.google.iam.v1B\031ResourcePolicyMemberProtoP\001Z)cloud.google.com/go/iam/apiv1/iampb;iampb\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\Cloud\\Iam\\V1"
|
||||
_RESOURCEPOLICYMEMBER.fields_by_name["iam_policy_name_principal"]._options = None
|
||||
_RESOURCEPOLICYMEMBER.fields_by_name[
|
||||
"iam_policy_name_principal"
|
||||
]._serialized_options = b"\340A\003"
|
||||
_RESOURCEPOLICYMEMBER.fields_by_name["iam_policy_uid_principal"]._options = None
|
||||
_RESOURCEPOLICYMEMBER.fields_by_name[
|
||||
"iam_policy_uid_principal"
|
||||
]._serialized_options = b"\340A\003"
|
||||
_globals["_RESOURCEPOLICYMEMBER"]._serialized_start = 94
|
||||
_globals["_RESOURCEPOLICYMEMBER"]._serialized_end = 195
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
Reference in New Issue
Block a user