File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
raystack/guardian/v1beta1 Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,15 @@ service GuardianService {
153153 };
154154 }
155155
156+ rpc GetProviderRoles (GetProviderRolesRequest ) returns (GetProviderRolesResponse ) {
157+ option (google.api.http ) = {get : "/v1beta1/providers/{name}/roles" };
158+ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation ) = {
159+ tags : "Providers" ;
160+ summary : "Get Provider Default Roles" ;
161+ description : "Get Provider Roles returns a list of roles supported by a provider while creating a new provider" ;
162+ };
163+ }
164+
156165 rpc CreateProvider (CreateProviderRequest ) returns (CreateProviderResponse ) {
157166 option (google.api.http ) = {
158167 post : "/v1beta1/providers"
@@ -551,6 +560,24 @@ message GetProviderTypesResponse {
551560 repeated ProviderType provider_types = 1 ;
552561}
553562
563+ message GetProviderRolesRequest {
564+ string name = 1 [
565+ (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field ) =
566+ {description : "Name of the provider" }
567+ ];
568+ string resource_type = 2 [
569+ (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field ) =
570+ {description : "Resource type for which the roles are to be fetched" }
571+ ];
572+ }
573+
574+ message GetProviderRolesResponse {
575+ repeated string roles = 1 [
576+ (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field ) =
577+ {description : "List of roles supported by the provider" }
578+ ];
579+ }
580+
554581message CreateProviderRequest {
555582 ProviderConfig config = 1 ;
556583 bool dry_run = 2 ;
You can’t perform that action at this time.
0 commit comments