# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: tecton_proto/auth/authorization_service.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
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
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
from google.api import visibility_pb2 as google_dot_api_dot_visibility__pb2
from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2
from tecton_proto.auditlog import metadata_pb2 as tecton__proto_dot_auditlog_dot_metadata__pb2
from tecton_proto.auth import principal_pb2 as tecton__proto_dot_auth_dot_principal__pb2
from tecton_proto.auth import resource_pb2 as tecton__proto_dot_auth_dot_resource__pb2
from tecton_proto.auth import resource_role_assignments_pb2 as tecton__proto_dot_auth_dot_resource__role__assignments__pb2
from tecton_proto.auth import service_pb2 as tecton__proto_dot_auth_dot_service__pb2


DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-tecton_proto/auth/authorization_service.proto\x12\x11tecton_proto.auth\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/api/visibility.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a$tecton_proto/auditlog/metadata.proto\x1a!tecton_proto/auth/principal.proto\x1a tecton_proto/auth/resource.proto\x1a\x31tecton_proto/auth/resource_role_assignments.proto\x1a\x1ftecton_proto/auth/service.proto\"\x11\n\x0fGetRolesRequest\"K\n\x10GetRolesResponse\x12\x37\n\x05roles\x18\x01 \x03(\x0b\x32!.tecton_proto.auth.RoleDefinitionR\x05roles\"\x85\x03\n\x0eRoleDefinition\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12`\n\x1c\x61ssignable_on_resource_types\x18\x04 \x03(\x0e\x32\x1f.tecton_proto.auth.ResourceTypeR\x19\x61ssignableOnResourceTypes\x12\x63\n\x1d\x61ssignable_to_principal_types\x18\x05 \x03(\x0e\x32 .tecton_proto.auth.PrincipalTypeR\x1a\x61ssignableToPrincipalTypes\x12I\n\x0bpermissions\x18\x06 \x03(\x0b\x32\'.tecton_proto.auth.PermissionDefinitionR\x0bpermissions\x12\x1b\n\tlegacy_id\x18\x07 \x01(\tR\x08legacyId\"m\n\x14PermissionDefinition\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12#\n\ris_authorized\x18\x03 \x01(\x08R\x0cisAuthorized\"\x84\x02\n\x17GetAssignedRolesRequest\x12G\n\x0eprincipal_type\x18\x01 \x01(\x0e\x32 .tecton_proto.auth.PrincipalTypeR\rprincipalType\x12!\n\x0cprincipal_id\x18\x02 \x01(\tR\x0bprincipalId\x12\x44\n\rresource_type\x18\x03 \x01(\x0e\x32\x1f.tecton_proto.auth.ResourceTypeR\x0cresourceType\x12!\n\x0cresource_ids\x18\x04 \x03(\tR\x0bresourceIds\x12\x14\n\x05roles\x18\x05 \x03(\tR\x05roles\"k\n\x18GetAssignedRolesResponse\x12O\n\x0b\x61ssignments\x18\x01 \x03(\x0b\x32-.tecton_proto.auth.ResourceAndRoleAssignmentsR\x0b\x61ssignments\"\xec\x04\n\x18ListAssignedRolesRequest\x12G\n\x0eprincipal_type\x18\x01 \x01(\x0e\x32 .tecton_proto.auth.PrincipalTypeR\rprincipalType\x12`\n\x0cprincipal_id\x18\x02 \x01(\tB=\x92\x41:28User ID, Service Account ID, Group ID, or Workspace nameR\x0bprincipalId\x12\x44\n\rresource_type\x18\x03 \x01(\x0e\x32\x1f.tecton_proto.auth.ResourceTypeR\x0cresourceType\x12K\n\x0cresource_ids\x18\x04 \x03(\tB(\x92\x41%2#Optional list of secret scope namesR\x0bresourceIds\x12\x83\x01\n\x05roles\x18\x05 \x03(\tBm\x92\x41j2hOptional list containing a subset of `\"read_scope_role\"`, `\"write_scope_role\"`, or `\"manage_scope_role\"`R\x05roles:\x8b\x01\x92\x41\x87\x01\x32\x84\x01{\"principal_type\":\"PRINCIPAL_TYPE_SERVICE_ACCOUNT\",\"principal_id\":\"service-account-id\",\"resource_type\":\"RESOURCE_TYPE_SECRET_SCOPE\"}\"\xd4\x02\n\x19ListAssignedRolesResponse\x12Q\n\x0b\x61ssignments\x18\x01 \x03(\x0b\x32/.tecton_proto.auth.ResourceAndRoleAssignmentsV2R\x0b\x61ssignments:\xe3\x01\x92\x41\xdf\x01\x32\xdc\x01{\"assignments\":[{\"resource_type\":\"RESOURCE_TYPE_SECRET_SCOPE\",\"resource_id\":\"my-secret-scope\",\"roles_granted\":[{\"role\":\"write_scope_role\",\"role_assignment_sources\":[{\"assignment_type\":\"ROLE_ASSIGNMENT_TYPE_DIRECT\"}]}]}]}\"\xc5\x01\n\x16GetIsAuthorizedRequest\x12G\n\x0eprincipal_type\x18\x01 \x01(\x0e\x32 .tecton_proto.auth.PrincipalTypeR\rprincipalType\x12!\n\x0cprincipal_id\x18\x02 \x01(\tR\x0bprincipalId\x12?\n\x0bpermissions\x18\x03 \x03(\x0b\x32\x1d.tecton_proto.auth.PermissionR\x0bpermissions\"Z\n\x17GetIsAuthorizedResponse\x12?\n\x0bpermissions\x18\x01 \x03(\x0b\x32\x1d.tecton_proto.auth.PermissionR\x0bpermissions\"\xab\x02\n\x12\x41ssignRolesRequest\x12H\n\x0b\x61ssignments\x18\x01 \x03(\x0b\x32\x1d.tecton_proto.auth.AssignmentB\x07\xea\x99\xbd\x46\x02\x08\x02R\x0b\x61ssignments:\xca\x01\x92\x41\xc6\x01\x32\xc3\x01{\"assignments\":[{\"principal_type\":\"PRINCIPAL_TYPE_WORKSPACE\",\"principal_id\":\"my-workspace\",\"resource_type\":\"RESOURCE_TYPE_SECRET_SCOPE\",\"resource_id\":\"my-secret-scope\",\"role\":\"read_scope_role\"}]}\"\x15\n\x13\x41ssignRolesResponse\"\xad\x02\n\x14UnassignRolesRequest\x12H\n\x0b\x61ssignments\x18\x01 \x03(\x0b\x32\x1d.tecton_proto.auth.AssignmentB\x07\xea\x99\xbd\x46\x02\x08\x02R\x0b\x61ssignments:\xca\x01\x92\x41\xc6\x01\x32\xc3\x01{\"assignments\":[{\"principal_type\":\"PRINCIPAL_TYPE_WORKSPACE\",\"principal_id\":\"my-workspace\",\"resource_type\":\"RESOURCE_TYPE_SECRET_SCOPE\",\"resource_id\":\"my-secret-scope\",\"role\":\"read_scope_role\"}]}\"\x17\n\x15UnassignRolesResponse\"\xc9\x03\n\nAssignment\x12M\n\rresource_type\x18\x01 \x01(\x0e\x32\x1f.tecton_proto.auth.ResourceTypeB\x07\xea\x99\xbd\x46\x02\x08\x02R\x0cresourceType\x12>\n\x0bresource_id\x18\x02 \x01(\tB\x1d\x92\x41\x13\x32\x11Secret scope name\xea\x99\xbd\x46\x02\x08\x02R\nresourceId\x12q\n\x04role\x18\x03 \x01(\tB]\x92\x41L2JOne of `\"read_scope_role\"`, `\"write_scope_role\"`, or `\"manage_scope_role\"`\xea\x99\xbd\x46\x02\x08\x02\xea\x99\xbd\x46\x02\x10\x01R\x04role\x12P\n\x0eprincipal_type\x18\x04 \x01(\x0e\x32 .tecton_proto.auth.PrincipalTypeB\x07\xea\x99\xbd\x46\x02\x08\x02R\rprincipalType\x12g\n\x0cprincipal_id\x18\x05 \x01(\tBD\x92\x41:28User ID, Service Account ID, Group ID, or Workspace name\xea\x99\xbd\x46\x02\x08\x02R\x0bprincipalId\"\xb4\x02\n\x15\x41ssignRolesPutRequest\x12M\n\rresource_type\x18\x01 \x01(\x0e\x32\x1f.tecton_proto.auth.ResourceTypeB\x07\xea\x99\xbd\x46\x02\x08\x02R\x0cresourceType\x12(\n\x0bresource_id\x18\x02 \x01(\tB\x07\xea\x99\xbd\x46\x02\x08\x02R\nresourceId\x12P\n\x0eprincipal_type\x18\x03 \x01(\x0e\x32 .tecton_proto.auth.PrincipalTypeB\x07\xea\x99\xbd\x46\x02\x08\x02R\rprincipalType\x12*\n\x0cprincipal_id\x18\x04 \x01(\tB\x07\xea\x99\xbd\x46\x02\x08\x02R\x0bprincipalId\x12$\n\x05roles\x18\x05 \x03(\tB\x0e\xea\x99\xbd\x46\x02\x08\x02\xea\x99\xbd\x46\x02\x10\x01R\x05roles\"\x18\n\x16\x41ssignRolesPutResponse\"\xe9\x01\n\x1dGetAuthorizedResourcesRequest\x12G\n\x0eprincipal_type\x18\x01 \x01(\x0e\x32 .tecton_proto.auth.PrincipalTypeR\rprincipalType\x12!\n\x0cprincipal_id\x18\x02 \x01(\tR\x0bprincipalId\x12\x44\n\rresource_type\x18\x03 \x01(\x0e\x32\x1f.tecton_proto.auth.ResourceTypeR\x0cresourceType\x12\x16\n\x06\x61\x63tion\x18\x04 \x01(\tR\x06\x61\x63tion\"{\n\x1eGetAuthorizedResourcesResponse\x12Y\n\x14\x61uthorized_resources\x18\x01 \x03(\x0b\x32&.tecton_proto.auth.AuthorizedResourcesR\x13\x61uthorizedResources\"P\n\x13\x41uthorizedResources\x12\x1f\n\x0bresource_id\x18\x01 \x01(\tR\nresourceId\x12\x18\n\x07\x61\x63tions\x18\x02 \x03(\tR\x07\x61\x63tions\"\xe6\x01\n\x1cGetAssignedPrincipalsRequest\x12\x44\n\rresource_type\x18\x01 \x01(\x0e\x32\x1f.tecton_proto.auth.ResourceTypeR\x0cresourceType\x12\x1f\n\x0bresource_id\x18\x02 \x01(\tR\nresourceId\x12\x14\n\x05roles\x18\x03 \x03(\tR\x05roles\x12I\n\x0fprincipal_types\x18\x04 \x03(\x0e\x32 .tecton_proto.auth.PrincipalTypeR\x0eprincipalTypes\"e\n\x1dGetAssignedPrincipalsResponse\x12\x44\n\x0b\x61ssignments\x18\x01 \x03(\x0b\x32\".tecton_proto.auth.AssignmentBasicR\x0b\x61ssignments\"\xfc\x03\n\x1dListAssignedPrincipalsRequest\x12\x44\n\rresource_type\x18\x01 \x01(\x0e\x32\x1f.tecton_proto.auth.ResourceTypeR\x0cresourceType\x12\x37\n\x0bresource_id\x18\x02 \x01(\tB\x16\x92\x41\x13\x32\x11Secret scope nameR\nresourceId\x12\x83\x01\n\x05roles\x18\x03 \x03(\tBm\x92\x41j2hOptional list containing a subset of `\"read_scope_role\"`, `\"write_scope_role\"`, or `\"manage_scope_role\"`R\x05roles\x12I\n\x0fprincipal_types\x18\x04 \x03(\x0e\x32 .tecton_proto.auth.PrincipalTypeR\x0eprincipalTypes:\x8a\x01\x92\x41\x86\x01\x32\x83\x01{\"resource_type\":\"RESOURCE_TYPE_SECRET_SCOPE\",\"resource_id\":\"my-secret-scope\",\"principal_types\":[\"PRINCIPAL_TYPE_SERVICE_ACCOUNT\"]}\"\xb2\x04\n\x1eListAssignedPrincipalsResponse\x12\x46\n\x0b\x61ssignments\x18\x01 \x03(\x0b\x32$.tecton_proto.auth.AssignmentBasicV2R\x0b\x61ssignments:\xc7\x03\x92\x41\xc3\x03\x32\xc0\x03{\"assignments\":[{\"principal\":{\"service_account\":{\"id\":\"98be6e950d8c4b14aeb32f48b20a9245\",\"name\":\"my-service-account\",\"description\":\"desc\",\"is_active\":true,\"creator\":{\"principal_type\":\"PRINCIPAL_TYPE_USER\",\"id\":\"user-id\"}}},\"role_assignments\":[{\"resource_type\":\"RESOURCE_TYPE_SECRET_SCOPE\",\"resource_id\":\"my-secret-scope\",\"roles_granted\":[{\"role\":\"read_scope_role\",\"role_assignment_sources\":[{\"assignment_type\":\"ROLE_ASSIGNMENT_TYPE_DIRECT\"}]}]}]}]}\"\xc2\x01\n\x0f\x41ssignmentBasic\x12?\n\tprincipal\x18\x01 \x01(\x0b\x32!.tecton_proto.auth.PrincipalBasicR\tprincipal\x12\x14\n\x05roles\x18\x02 \x03(\tR\x05roles\x12X\n\x10role_assignments\x18\x03 \x03(\x0b\x32-.tecton_proto.auth.ResourceAndRoleAssignmentsR\x0froleAssignments\"\xb0\x01\n\x11\x41ssignmentBasicV2\x12?\n\tprincipal\x18\x01 \x01(\x0b\x32!.tecton_proto.auth.PrincipalBasicR\tprincipal\x12Z\n\x10role_assignments\x18\x02 \x03(\x0b\x32/.tecton_proto.auth.ResourceAndRoleAssignmentsV2R\x0froleAssignments\"\xee\x01\n\x18GetAppPermissionsRequest\x12G\n\x0eprincipal_type\x18\x01 \x01(\x0e\x32 .tecton_proto.auth.PrincipalTypeR\rprincipalType\x12!\n\x0cprincipal_id\x18\x02 \x01(\tR\x0bprincipalId\x12\x66\n\x19resource_type_permissions\x18\x05 \x03(\x0b\x32*.tecton_proto.auth.ResourceTypePermissionsR\x17resourceTypePermissions\"y\n\x17ResourceTypePermissions\x12\x44\n\rresource_type\x18\x01 \x01(\x0e\x32\x1f.tecton_proto.auth.ResourceTypeR\x0cresourceType\x12\x18\n\x07\x61\x63tions\x18\x02 \x03(\tR\x07\x61\x63tions\"\x93\x01\n\x19GetAppPermissionsResponse\x12v\n\x1fresource_type_permission_values\x18\x01 \x03(\x0b\x32/.tecton_proto.auth.ResourceTypePermissionValuesR\x1cresourceTypePermissionValues\"\xb5\x01\n\x1cResourceTypePermissionValues\x12\x44\n\rresource_type\x18\x01 \x01(\x0e\x32\x1f.tecton_proto.auth.ResourceTypeR\x0cresourceType\x12O\n\x11permission_values\x18\x02 \x03(\x0b\x32\".tecton_proto.auth.PermissionValueR\x10permissionValues\"\x8b\x01\n\nPermission\x12\x44\n\rresource_type\x18\x01 \x01(\x0e\x32\x1f.tecton_proto.auth.ResourceTypeR\x0cresourceType\x12\x1f\n\x0bresource_id\x18\x02 \x01(\tR\nresourceId\x12\x16\n\x06\x61\x63tion\x18\x03 \x01(\tR\x06\x61\x63tion\"N\n\x0fPermissionValue\x12\x16\n\x06\x61\x63tion\x18\x01 \x01(\tR\x06\x61\x63tion\x12#\n\ris_authorized\x18\x02 \x01(\x08R\x0cisAuthorized\"\x97\x02\n\x1eGetWorkspacePermissionsRequest\x12G\n\x0eprincipal_type\x18\x01 \x01(\x0e\x32 .tecton_proto.auth.PrincipalTypeR\rprincipalType\x12!\n\x0cprincipal_id\x18\x02 \x01(\tR\x0bprincipalId\x12!\n\x0cworkspace_id\x18\x03 \x01(\tR\x0bworkspaceId\x12\x66\n\x19resource_type_permissions\x18\x04 \x03(\x0b\x32*.tecton_proto.auth.ResourceTypePermissionsR\x17resourceTypePermissions\"\x99\x01\n\x1fGetWorkspacePermissionsResponse\x12v\n\x1fresource_type_permission_values\x18\x01 \x03(\x0b\x32/.tecton_proto.auth.ResourceTypePermissionValuesR\x1cresourceTypePermissionValues2\x93\x13\n\x14\x41uthorizationService\x12\x9b\x01\n\x08GetRoles\x12\".tecton_proto.auth.GetRolesRequest\x1a#.tecton_proto.auth.GetRolesResponse\"F\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02(\"#/v1/authorization-service/get-roles:\x01*\xa2\xbc\xe6\xc0\x05\x02\x10\x01\x12\xbc\x01\n\x10GetAssignedRoles\x12*.tecton_proto.auth.GetAssignedRolesRequest\x1a+.tecton_proto.auth.GetAssignedRolesResponse\"O\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02\x31\",/v1/authorization-service/get-assigned-roles:\x01*\xa2\xbc\xe6\xc0\x05\x02@\x01\x12\xc4\x01\n\x11ListAssignedRoles\x12+.tecton_proto.auth.ListAssignedRolesRequest\x1a,.tecton_proto.auth.ListAssignedRolesResponse\"T\x82\xd3\xe4\x93\x02\x32\"-/v1/authorization-service/list-assigned-roles:\x01*\xa2\xbc\xe6\xc0\x05\x02@\x01\x92\x41\x11\n\x0fSecrets Service\x12\xc3\x01\n\x0b\x41ssignRoles\x12%.tecton_proto.auth.AssignRolesRequest\x1a&.tecton_proto.auth.AssignRolesResponse\"e\x82\xd3\xe4\x93\x02+\"&/v1/authorization-service/assign-roles:\x01*\xa2\xbc\xe6\xc0\x05\x02@\x01\xf2\x99\xbd\x46\x13\x08\x01\x12\x0c\x61ssign_roles\x1a\x01\x31\x92\x41\x11\n\x0fSecrets Service\x12\xcd\x01\n\rUnassignRoles\x12\'.tecton_proto.auth.UnassignRolesRequest\x1a(.tecton_proto.auth.UnassignRolesResponse\"i\x82\xd3\xe4\x93\x02-\"(/v1/authorization-service/unassign-roles:\x01*\xa2\xbc\xe6\xc0\x05\x02@\x01\xf2\x99\xbd\x46\x15\x08\x01\x12\x0eunassign_roles\x1a\x01\x31\x92\x41\x11\n\x0fSecrets Service\x12\xcc\x01\n\x0e\x41ssignRolesPut\x12(.tecton_proto.auth.AssignRolesPutRequest\x1a).tecton_proto.auth.AssignRolesPutResponse\"e\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02+\x1a&/v1/authorization-service/assign-roles:\x01*\xa2\xbc\xe6\xc0\x05\x02@\x01\xf2\x99\xbd\x46\x17\x08\x01\x12\x10\x61ssign_roles_put\x1a\x01\x31\x12\xd4\x01\n\x16GetAuthorizedResources\x12\x30.tecton_proto.auth.GetAuthorizedResourcesRequest\x1a\x31.tecton_proto.auth.GetAuthorizedResourcesResponse\"U\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02\x37\"2/v1/authorization-service/get-authorized-resources:\x01*\xa2\xbc\xe6\xc0\x05\x02@\x01\x12\xd0\x01\n\x15GetAssignedPrincipals\x12/.tecton_proto.auth.GetAssignedPrincipalsRequest\x1a\x30.tecton_proto.auth.GetAssignedPrincipalsResponse\"T\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02\x36\"1/v1/authorization-service/get-assigned-principals:\x01*\xa2\xbc\xe6\xc0\x05\x02@\x01\x12\xd8\x01\n\x16ListAssignedPrincipals\x12\x30.tecton_proto.auth.ListAssignedPrincipalsRequest\x1a\x31.tecton_proto.auth.ListAssignedPrincipalsResponse\"Y\x82\xd3\xe4\x93\x02\x37\"2/v1/authorization-service/list-assigned-principals:\x01*\xa2\xbc\xe6\xc0\x05\x02@\x01\x92\x41\x11\n\x0fSecrets Service\x12\xc0\x01\n\x11GetAppPermissions\x12+.tecton_proto.auth.GetAppPermissionsRequest\x1a,.tecton_proto.auth.GetAppPermissionsResponse\"P\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02\x32\"-/v1/authorization-service/get-app-permissions:\x01*\xa2\xbc\xe6\xc0\x05\x02@\x01\x12\xd8\x01\n\x17GetWorkspacePermissions\x12\x31.tecton_proto.auth.GetWorkspacePermissionsRequest\x1a\x32.tecton_proto.auth.GetWorkspacePermissionsResponse\"V\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02\x38\"3/v1/authorization-service/get-workspace-permissions:\x01*\xa2\xbc\xe6\xc0\x05\x02@\x01\x12\xb8\x01\n\x0fGetIsAuthorized\x12).tecton_proto.auth.GetIsAuthorizedRequest\x1a*.tecton_proto.auth.GetIsAuthorizedResponse\"N\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02\x30\"+/v1/authorization-service/get-is-authorized:\x01*\xa2\xbc\xe6\xc0\x05\x02@\x01\x1a\x14\x92\x41\x11\n\x0fSecrets ServiceBV\n\x0f\x63om.tecton.authB\x19\x41uthorizationServiceProtoP\x01Z&github.com/tecton-ai/tecton_proto/auth')

_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'tecton_proto.auth.authorization_service_pb2', globals())
if _descriptor._USE_C_DESCRIPTORS == False:

  DESCRIPTOR._options = None
  DESCRIPTOR._serialized_options = b'\n\017com.tecton.authB\031AuthorizationServiceProtoP\001Z&github.com/tecton-ai/tecton_proto/auth'
  _LISTASSIGNEDROLESREQUEST.fields_by_name['principal_id']._options = None
  _LISTASSIGNEDROLESREQUEST.fields_by_name['principal_id']._serialized_options = b'\222A:28User ID, Service Account ID, Group ID, or Workspace name'
  _LISTASSIGNEDROLESREQUEST.fields_by_name['resource_ids']._options = None
  _LISTASSIGNEDROLESREQUEST.fields_by_name['resource_ids']._serialized_options = b'\222A%2#Optional list of secret scope names'
  _LISTASSIGNEDROLESREQUEST.fields_by_name['roles']._options = None
  _LISTASSIGNEDROLESREQUEST.fields_by_name['roles']._serialized_options = b'\222Aj2hOptional list containing a subset of `\"read_scope_role\"`, `\"write_scope_role\"`, or `\"manage_scope_role\"`'
  _LISTASSIGNEDROLESREQUEST._options = None
  _LISTASSIGNEDROLESREQUEST._serialized_options = b'\222A\207\0012\204\001{\"principal_type\":\"PRINCIPAL_TYPE_SERVICE_ACCOUNT\",\"principal_id\":\"service-account-id\",\"resource_type\":\"RESOURCE_TYPE_SECRET_SCOPE\"}'
  _LISTASSIGNEDROLESRESPONSE._options = None
  _LISTASSIGNEDROLESRESPONSE._serialized_options = b'\222A\337\0012\334\001{\"assignments\":[{\"resource_type\":\"RESOURCE_TYPE_SECRET_SCOPE\",\"resource_id\":\"my-secret-scope\",\"roles_granted\":[{\"role\":\"write_scope_role\",\"role_assignment_sources\":[{\"assignment_type\":\"ROLE_ASSIGNMENT_TYPE_DIRECT\"}]}]}]}'
  _ASSIGNROLESREQUEST.fields_by_name['assignments']._options = None
  _ASSIGNROLESREQUEST.fields_by_name['assignments']._serialized_options = b'\352\231\275F\002\010\002'
  _ASSIGNROLESREQUEST._options = None
  _ASSIGNROLESREQUEST._serialized_options = b'\222A\306\0012\303\001{\"assignments\":[{\"principal_type\":\"PRINCIPAL_TYPE_WORKSPACE\",\"principal_id\":\"my-workspace\",\"resource_type\":\"RESOURCE_TYPE_SECRET_SCOPE\",\"resource_id\":\"my-secret-scope\",\"role\":\"read_scope_role\"}]}'
  _UNASSIGNROLESREQUEST.fields_by_name['assignments']._options = None
  _UNASSIGNROLESREQUEST.fields_by_name['assignments']._serialized_options = b'\352\231\275F\002\010\002'
  _UNASSIGNROLESREQUEST._options = None
  _UNASSIGNROLESREQUEST._serialized_options = b'\222A\306\0012\303\001{\"assignments\":[{\"principal_type\":\"PRINCIPAL_TYPE_WORKSPACE\",\"principal_id\":\"my-workspace\",\"resource_type\":\"RESOURCE_TYPE_SECRET_SCOPE\",\"resource_id\":\"my-secret-scope\",\"role\":\"read_scope_role\"}]}'
  _ASSIGNMENT.fields_by_name['resource_type']._options = None
  _ASSIGNMENT.fields_by_name['resource_type']._serialized_options = b'\352\231\275F\002\010\002'
  _ASSIGNMENT.fields_by_name['resource_id']._options = None
  _ASSIGNMENT.fields_by_name['resource_id']._serialized_options = b'\222A\0232\021Secret scope name\352\231\275F\002\010\002'
  _ASSIGNMENT.fields_by_name['role']._options = None
  _ASSIGNMENT.fields_by_name['role']._serialized_options = b'\222AL2JOne of `\"read_scope_role\"`, `\"write_scope_role\"`, or `\"manage_scope_role\"`\352\231\275F\002\010\002\352\231\275F\002\020\001'
  _ASSIGNMENT.fields_by_name['principal_type']._options = None
  _ASSIGNMENT.fields_by_name['principal_type']._serialized_options = b'\352\231\275F\002\010\002'
  _ASSIGNMENT.fields_by_name['principal_id']._options = None
  _ASSIGNMENT.fields_by_name['principal_id']._serialized_options = b'\222A:28User ID, Service Account ID, Group ID, or Workspace name\352\231\275F\002\010\002'
  _ASSIGNROLESPUTREQUEST.fields_by_name['resource_type']._options = None
  _ASSIGNROLESPUTREQUEST.fields_by_name['resource_type']._serialized_options = b'\352\231\275F\002\010\002'
  _ASSIGNROLESPUTREQUEST.fields_by_name['resource_id']._options = None
  _ASSIGNROLESPUTREQUEST.fields_by_name['resource_id']._serialized_options = b'\352\231\275F\002\010\002'
  _ASSIGNROLESPUTREQUEST.fields_by_name['principal_type']._options = None
  _ASSIGNROLESPUTREQUEST.fields_by_name['principal_type']._serialized_options = b'\352\231\275F\002\010\002'
  _ASSIGNROLESPUTREQUEST.fields_by_name['principal_id']._options = None
  _ASSIGNROLESPUTREQUEST.fields_by_name['principal_id']._serialized_options = b'\352\231\275F\002\010\002'
  _ASSIGNROLESPUTREQUEST.fields_by_name['roles']._options = None
  _ASSIGNROLESPUTREQUEST.fields_by_name['roles']._serialized_options = b'\352\231\275F\002\010\002\352\231\275F\002\020\001'
  _LISTASSIGNEDPRINCIPALSREQUEST.fields_by_name['resource_id']._options = None
  _LISTASSIGNEDPRINCIPALSREQUEST.fields_by_name['resource_id']._serialized_options = b'\222A\0232\021Secret scope name'
  _LISTASSIGNEDPRINCIPALSREQUEST.fields_by_name['roles']._options = None
  _LISTASSIGNEDPRINCIPALSREQUEST.fields_by_name['roles']._serialized_options = b'\222Aj2hOptional list containing a subset of `\"read_scope_role\"`, `\"write_scope_role\"`, or `\"manage_scope_role\"`'
  _LISTASSIGNEDPRINCIPALSREQUEST._options = None
  _LISTASSIGNEDPRINCIPALSREQUEST._serialized_options = b'\222A\206\0012\203\001{\"resource_type\":\"RESOURCE_TYPE_SECRET_SCOPE\",\"resource_id\":\"my-secret-scope\",\"principal_types\":[\"PRINCIPAL_TYPE_SERVICE_ACCOUNT\"]}'
  _LISTASSIGNEDPRINCIPALSRESPONSE._options = None
  _LISTASSIGNEDPRINCIPALSRESPONSE._serialized_options = b'\222A\303\0032\300\003{\"assignments\":[{\"principal\":{\"service_account\":{\"id\":\"98be6e950d8c4b14aeb32f48b20a9245\",\"name\":\"my-service-account\",\"description\":\"desc\",\"is_active\":true,\"creator\":{\"principal_type\":\"PRINCIPAL_TYPE_USER\",\"id\":\"user-id\"}}},\"role_assignments\":[{\"resource_type\":\"RESOURCE_TYPE_SECRET_SCOPE\",\"resource_id\":\"my-secret-scope\",\"roles_granted\":[{\"role\":\"read_scope_role\",\"role_assignment_sources\":[{\"assignment_type\":\"ROLE_ASSIGNMENT_TYPE_DIRECT\"}]}]}]}]}'
  _AUTHORIZATIONSERVICE._options = None
  _AUTHORIZATIONSERVICE._serialized_options = b'\222A\021\n\017Secrets Service'
  _AUTHORIZATIONSERVICE.methods_by_name['GetRoles']._options = None
  _AUTHORIZATIONSERVICE.methods_by_name['GetRoles']._serialized_options = b'\372\322\344\223\002\n\022\010INTERNAL\202\323\344\223\002(\"#/v1/authorization-service/get-roles:\001*\242\274\346\300\005\002\020\001'
  _AUTHORIZATIONSERVICE.methods_by_name['GetAssignedRoles']._options = None
  _AUTHORIZATIONSERVICE.methods_by_name['GetAssignedRoles']._serialized_options = b'\372\322\344\223\002\n\022\010INTERNAL\202\323\344\223\0021\",/v1/authorization-service/get-assigned-roles:\001*\242\274\346\300\005\002@\001'
  _AUTHORIZATIONSERVICE.methods_by_name['ListAssignedRoles']._options = None
  _AUTHORIZATIONSERVICE.methods_by_name['ListAssignedRoles']._serialized_options = b'\202\323\344\223\0022\"-/v1/authorization-service/list-assigned-roles:\001*\242\274\346\300\005\002@\001\222A\021\n\017Secrets Service'
  _AUTHORIZATIONSERVICE.methods_by_name['AssignRoles']._options = None
  _AUTHORIZATIONSERVICE.methods_by_name['AssignRoles']._serialized_options = b'\202\323\344\223\002+\"&/v1/authorization-service/assign-roles:\001*\242\274\346\300\005\002@\001\362\231\275F\023\010\001\022\014assign_roles\032\0011\222A\021\n\017Secrets Service'
  _AUTHORIZATIONSERVICE.methods_by_name['UnassignRoles']._options = None
  _AUTHORIZATIONSERVICE.methods_by_name['UnassignRoles']._serialized_options = b'\202\323\344\223\002-\"(/v1/authorization-service/unassign-roles:\001*\242\274\346\300\005\002@\001\362\231\275F\025\010\001\022\016unassign_roles\032\0011\222A\021\n\017Secrets Service'
  _AUTHORIZATIONSERVICE.methods_by_name['AssignRolesPut']._options = None
  _AUTHORIZATIONSERVICE.methods_by_name['AssignRolesPut']._serialized_options = b'\372\322\344\223\002\n\022\010INTERNAL\202\323\344\223\002+\032&/v1/authorization-service/assign-roles:\001*\242\274\346\300\005\002@\001\362\231\275F\027\010\001\022\020assign_roles_put\032\0011'
  _AUTHORIZATIONSERVICE.methods_by_name['GetAuthorizedResources']._options = None
  _AUTHORIZATIONSERVICE.methods_by_name['GetAuthorizedResources']._serialized_options = b'\372\322\344\223\002\n\022\010INTERNAL\202\323\344\223\0027\"2/v1/authorization-service/get-authorized-resources:\001*\242\274\346\300\005\002@\001'
  _AUTHORIZATIONSERVICE.methods_by_name['GetAssignedPrincipals']._options = None
  _AUTHORIZATIONSERVICE.methods_by_name['GetAssignedPrincipals']._serialized_options = b'\372\322\344\223\002\n\022\010INTERNAL\202\323\344\223\0026\"1/v1/authorization-service/get-assigned-principals:\001*\242\274\346\300\005\002@\001'
  _AUTHORIZATIONSERVICE.methods_by_name['ListAssignedPrincipals']._options = None
  _AUTHORIZATIONSERVICE.methods_by_name['ListAssignedPrincipals']._serialized_options = b'\202\323\344\223\0027\"2/v1/authorization-service/list-assigned-principals:\001*\242\274\346\300\005\002@\001\222A\021\n\017Secrets Service'
  _AUTHORIZATIONSERVICE.methods_by_name['GetAppPermissions']._options = None
  _AUTHORIZATIONSERVICE.methods_by_name['GetAppPermissions']._serialized_options = b'\372\322\344\223\002\n\022\010INTERNAL\202\323\344\223\0022\"-/v1/authorization-service/get-app-permissions:\001*\242\274\346\300\005\002@\001'
  _AUTHORIZATIONSERVICE.methods_by_name['GetWorkspacePermissions']._options = None
  _AUTHORIZATIONSERVICE.methods_by_name['GetWorkspacePermissions']._serialized_options = b'\372\322\344\223\002\n\022\010INTERNAL\202\323\344\223\0028\"3/v1/authorization-service/get-workspace-permissions:\001*\242\274\346\300\005\002@\001'
  _AUTHORIZATIONSERVICE.methods_by_name['GetIsAuthorized']._options = None
  _AUTHORIZATIONSERVICE.methods_by_name['GetIsAuthorized']._serialized_options = b'\372\322\344\223\002\n\022\010INTERNAL\202\323\344\223\0020\"+/v1/authorization-service/get-is-authorized:\001*\242\274\346\300\005\002@\001'
  _GETROLESREQUEST._serialized_start=366
  _GETROLESREQUEST._serialized_end=383
  _GETROLESRESPONSE._serialized_start=385
  _GETROLESRESPONSE._serialized_end=460
  _ROLEDEFINITION._serialized_start=463
  _ROLEDEFINITION._serialized_end=852
  _PERMISSIONDEFINITION._serialized_start=854
  _PERMISSIONDEFINITION._serialized_end=963
  _GETASSIGNEDROLESREQUEST._serialized_start=966
  _GETASSIGNEDROLESREQUEST._serialized_end=1226
  _GETASSIGNEDROLESRESPONSE._serialized_start=1228
  _GETASSIGNEDROLESRESPONSE._serialized_end=1335
  _LISTASSIGNEDROLESREQUEST._serialized_start=1338
  _LISTASSIGNEDROLESREQUEST._serialized_end=1958
  _LISTASSIGNEDROLESRESPONSE._serialized_start=1961
  _LISTASSIGNEDROLESRESPONSE._serialized_end=2301
  _GETISAUTHORIZEDREQUEST._serialized_start=2304
  _GETISAUTHORIZEDREQUEST._serialized_end=2501
  _GETISAUTHORIZEDRESPONSE._serialized_start=2503
  _GETISAUTHORIZEDRESPONSE._serialized_end=2593
  _ASSIGNROLESREQUEST._serialized_start=2596
  _ASSIGNROLESREQUEST._serialized_end=2895
  _ASSIGNROLESRESPONSE._serialized_start=2897
  _ASSIGNROLESRESPONSE._serialized_end=2918
  _UNASSIGNROLESREQUEST._serialized_start=2921
  _UNASSIGNROLESREQUEST._serialized_end=3222
  _UNASSIGNROLESRESPONSE._serialized_start=3224
  _UNASSIGNROLESRESPONSE._serialized_end=3247
  _ASSIGNMENT._serialized_start=3250
  _ASSIGNMENT._serialized_end=3707
  _ASSIGNROLESPUTREQUEST._serialized_start=3710
  _ASSIGNROLESPUTREQUEST._serialized_end=4018
  _ASSIGNROLESPUTRESPONSE._serialized_start=4020
  _ASSIGNROLESPUTRESPONSE._serialized_end=4044
  _GETAUTHORIZEDRESOURCESREQUEST._serialized_start=4047
  _GETAUTHORIZEDRESOURCESREQUEST._serialized_end=4280
  _GETAUTHORIZEDRESOURCESRESPONSE._serialized_start=4282
  _GETAUTHORIZEDRESOURCESRESPONSE._serialized_end=4405
  _AUTHORIZEDRESOURCES._serialized_start=4407
  _AUTHORIZEDRESOURCES._serialized_end=4487
  _GETASSIGNEDPRINCIPALSREQUEST._serialized_start=4490
  _GETASSIGNEDPRINCIPALSREQUEST._serialized_end=4720
  _GETASSIGNEDPRINCIPALSRESPONSE._serialized_start=4722
  _GETASSIGNEDPRINCIPALSRESPONSE._serialized_end=4823
  _LISTASSIGNEDPRINCIPALSREQUEST._serialized_start=4826
  _LISTASSIGNEDPRINCIPALSREQUEST._serialized_end=5334
  _LISTASSIGNEDPRINCIPALSRESPONSE._serialized_start=5337
  _LISTASSIGNEDPRINCIPALSRESPONSE._serialized_end=5899
  _ASSIGNMENTBASIC._serialized_start=5902
  _ASSIGNMENTBASIC._serialized_end=6096
  _ASSIGNMENTBASICV2._serialized_start=6099
  _ASSIGNMENTBASICV2._serialized_end=6275
  _GETAPPPERMISSIONSREQUEST._serialized_start=6278
  _GETAPPPERMISSIONSREQUEST._serialized_end=6516
  _RESOURCETYPEPERMISSIONS._serialized_start=6518
  _RESOURCETYPEPERMISSIONS._serialized_end=6639
  _GETAPPPERMISSIONSRESPONSE._serialized_start=6642
  _GETAPPPERMISSIONSRESPONSE._serialized_end=6789
  _RESOURCETYPEPERMISSIONVALUES._serialized_start=6792
  _RESOURCETYPEPERMISSIONVALUES._serialized_end=6973
  _PERMISSION._serialized_start=6976
  _PERMISSION._serialized_end=7115
  _PERMISSIONVALUE._serialized_start=7117
  _PERMISSIONVALUE._serialized_end=7195
  _GETWORKSPACEPERMISSIONSREQUEST._serialized_start=7198
  _GETWORKSPACEPERMISSIONSREQUEST._serialized_end=7477
  _GETWORKSPACEPERMISSIONSRESPONSE._serialized_start=7480
  _GETWORKSPACEPERMISSIONSRESPONSE._serialized_end=7633
  _AUTHORIZATIONSERVICE._serialized_start=7636
  _AUTHORIZATIONSERVICE._serialized_end=10087
# @@protoc_insertion_point(module_scope)
