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"
@@ -554,6 +563,24 @@ message GetProviderTypesResponse {
554563 repeated ProviderType provider_types = 1 ;
555564}
556565
566+ message GetProviderRolesRequest {
567+ string name = 1 [
568+ (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field ) =
569+ {description : "Name of the provider" }
570+ ];
571+ string resource_type = 2 [
572+ (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field ) =
573+ {description : "Resource type for which the roles are to be fetched" }
574+ ];
575+ }
576+
577+ message GetProviderRolesResponse {
578+ repeated string roles = 1 [
579+ (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field ) =
580+ {description : "List of roles supported by the provider" }
581+ ];
582+ }
583+
557584message CreateProviderRequest {
558585 ProviderConfig config = 1 ;
559586 bool dry_run = 2 ;
You can’t perform that action at this time.
0 commit comments