strongdm 2.1.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.git/ORIG_HEAD +1 -1
- data/.git/index +0 -0
- data/.git/logs/HEAD +3 -3
- data/.git/logs/refs/heads/master +2 -2
- data/.git/logs/refs/remotes/origin/HEAD +1 -1
- data/.git/objects/pack/{pack-a86846bb97666919e629e876c52e6b012d588625.idx → pack-886c8b7b48ee02690285f26795cb132efb2f15f6.idx} +0 -0
- data/.git/objects/pack/{pack-a86846bb97666919e629e876c52e6b012d588625.pack → pack-886c8b7b48ee02690285f26795cb132efb2f15f6.pack} +0 -0
- data/.git/packed-refs +5 -2
- data/.git/refs/heads/master +1 -1
- data/lib/grpc/account_attachments_services_pb.rb +5 -5
- data/lib/grpc/account_grants_services_pb.rb +5 -5
- data/lib/grpc/accounts_services_pb.rb +6 -6
- data/lib/grpc/control_panel_services_pb.rb +3 -3
- data/lib/grpc/drivers_pb.rb +88 -0
- data/lib/grpc/nodes_services_pb.rb +6 -6
- data/lib/grpc/plumbing.rb +442 -0
- data/lib/grpc/remote_identities_pb.rb +90 -0
- data/lib/grpc/remote_identities_services_pb.rb +45 -0
- data/lib/grpc/remote_identity_groups_pb.rb +55 -0
- data/lib/grpc/remote_identity_groups_services_pb.rb +58 -0
- data/lib/grpc/resources_services_pb.rb +7 -7
- data/lib/grpc/role_attachments_services_pb.rb +5 -5
- data/lib/grpc/role_grants_services_pb.rb +5 -5
- data/lib/grpc/roles_services_pb.rb +6 -6
- data/lib/grpc/secret_stores_services_pb.rb +6 -6
- data/lib/models/porcelain.rb +577 -2
- data/lib/strongdm.rb +26 -2
- data/lib/svc.rb +266 -0
- data/lib/version +1 -1
- data/lib/version.rb +1 -1
- metadata +8 -4
@@ -0,0 +1,90 @@
|
|
1
|
+
# Copyright 2020 StrongDM Inc
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
#
|
15
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
16
|
+
# source: remote_identities.proto
|
17
|
+
|
18
|
+
require "google/protobuf"
|
19
|
+
|
20
|
+
require "options_pb"
|
21
|
+
require "spec_pb"
|
22
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
23
|
+
add_file("remote_identities.proto", :syntax => :proto3) do
|
24
|
+
add_message "v1.RemoteIdentityCreateRequest" do
|
25
|
+
optional :meta, :message, 1, "v1.CreateRequestMetadata"
|
26
|
+
optional :remote_identity, :message, 2, "v1.RemoteIdentity"
|
27
|
+
end
|
28
|
+
add_message "v1.RemoteIdentityCreateResponse" do
|
29
|
+
optional :meta, :message, 1, "v1.CreateResponseMetadata"
|
30
|
+
optional :remote_identity, :message, 2, "v1.RemoteIdentity"
|
31
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
32
|
+
end
|
33
|
+
add_message "v1.RemoteIdentityGetRequest" do
|
34
|
+
optional :meta, :message, 1, "v1.GetRequestMetadata"
|
35
|
+
optional :id, :string, 2
|
36
|
+
end
|
37
|
+
add_message "v1.RemoteIdentityGetResponse" do
|
38
|
+
optional :meta, :message, 1, "v1.GetResponseMetadata"
|
39
|
+
optional :remote_identity, :message, 2, "v1.RemoteIdentity"
|
40
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
41
|
+
end
|
42
|
+
add_message "v1.RemoteIdentityUpdateRequest" do
|
43
|
+
optional :meta, :message, 1, "v1.UpdateRequestMetadata"
|
44
|
+
optional :id, :string, 2
|
45
|
+
optional :remote_identity, :message, 3, "v1.RemoteIdentity"
|
46
|
+
end
|
47
|
+
add_message "v1.RemoteIdentityUpdateResponse" do
|
48
|
+
optional :meta, :message, 1, "v1.UpdateResponseMetadata"
|
49
|
+
optional :remote_identity, :message, 2, "v1.RemoteIdentity"
|
50
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
51
|
+
end
|
52
|
+
add_message "v1.RemoteIdentityDeleteRequest" do
|
53
|
+
optional :meta, :message, 1, "v1.DeleteRequestMetadata"
|
54
|
+
optional :id, :string, 2
|
55
|
+
end
|
56
|
+
add_message "v1.RemoteIdentityDeleteResponse" do
|
57
|
+
optional :meta, :message, 1, "v1.DeleteResponseMetadata"
|
58
|
+
optional :rate_limit, :message, 2, "v1.RateLimitMetadata"
|
59
|
+
end
|
60
|
+
add_message "v1.RemoteIdentityListRequest" do
|
61
|
+
optional :meta, :message, 1, "v1.ListRequestMetadata"
|
62
|
+
optional :filter, :string, 2
|
63
|
+
end
|
64
|
+
add_message "v1.RemoteIdentityListResponse" do
|
65
|
+
optional :meta, :message, 1, "v1.ListResponseMetadata"
|
66
|
+
repeated :remote_identities, :message, 2, "v1.RemoteIdentity"
|
67
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
68
|
+
end
|
69
|
+
add_message "v1.RemoteIdentity" do
|
70
|
+
optional :id, :string, 1
|
71
|
+
optional :account_id, :string, 2
|
72
|
+
optional :remote_identity_group_id, :string, 3
|
73
|
+
optional :username, :string, 4
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
module V1
|
79
|
+
RemoteIdentityCreateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RemoteIdentityCreateRequest").msgclass
|
80
|
+
RemoteIdentityCreateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RemoteIdentityCreateResponse").msgclass
|
81
|
+
RemoteIdentityGetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RemoteIdentityGetRequest").msgclass
|
82
|
+
RemoteIdentityGetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RemoteIdentityGetResponse").msgclass
|
83
|
+
RemoteIdentityUpdateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RemoteIdentityUpdateRequest").msgclass
|
84
|
+
RemoteIdentityUpdateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RemoteIdentityUpdateResponse").msgclass
|
85
|
+
RemoteIdentityDeleteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RemoteIdentityDeleteRequest").msgclass
|
86
|
+
RemoteIdentityDeleteResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RemoteIdentityDeleteResponse").msgclass
|
87
|
+
RemoteIdentityListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RemoteIdentityListRequest").msgclass
|
88
|
+
RemoteIdentityListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RemoteIdentityListResponse").msgclass
|
89
|
+
RemoteIdentity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RemoteIdentity").msgclass
|
90
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Copyright 2020 StrongDM Inc
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
#
|
15
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
16
|
+
# Source: remote_identities.proto for package 'v1'
|
17
|
+
|
18
|
+
require "grpc"
|
19
|
+
require "remote_identities_pb"
|
20
|
+
|
21
|
+
module V1
|
22
|
+
module RemoteIdentities
|
23
|
+
# RemoteIdentities assign a resource directly to an account, giving the account the permission to connect to that resource.
|
24
|
+
class Service
|
25
|
+
include GRPC::GenericService
|
26
|
+
|
27
|
+
self.marshal_class_method = :encode
|
28
|
+
self.unmarshal_class_method = :decode
|
29
|
+
self.service_name = "v1.RemoteIdentities"
|
30
|
+
|
31
|
+
# Create registers a new RemoteIdentity.
|
32
|
+
rpc :Create, V1::RemoteIdentityCreateRequest, V1::RemoteIdentityCreateResponse
|
33
|
+
# Get reads one RemoteIdentity by ID.
|
34
|
+
rpc :Get, V1::RemoteIdentityGetRequest, V1::RemoteIdentityGetResponse
|
35
|
+
# Update replaces all the fields of a RemoteIdentity by ID.
|
36
|
+
rpc :Update, V1::RemoteIdentityUpdateRequest, V1::RemoteIdentityUpdateResponse
|
37
|
+
# Delete removes a RemoteIdentity by ID.
|
38
|
+
rpc :Delete, V1::RemoteIdentityDeleteRequest, V1::RemoteIdentityDeleteResponse
|
39
|
+
# List gets a list of RemoteIdentities matching a given set of criteria.
|
40
|
+
rpc :List, V1::RemoteIdentityListRequest, V1::RemoteIdentityListResponse
|
41
|
+
end
|
42
|
+
|
43
|
+
Stub = Service.rpc_stub_class
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# Copyright 2020 StrongDM Inc
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
#
|
15
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
16
|
+
# source: remote_identity_groups.proto
|
17
|
+
|
18
|
+
require "google/protobuf"
|
19
|
+
|
20
|
+
require "options_pb"
|
21
|
+
require "spec_pb"
|
22
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
23
|
+
add_file("remote_identity_groups.proto", :syntax => :proto3) do
|
24
|
+
add_message "v1.RemoteIdentityGroupGetRequest" do
|
25
|
+
optional :meta, :message, 1, "v1.GetRequestMetadata"
|
26
|
+
optional :id, :string, 2
|
27
|
+
end
|
28
|
+
add_message "v1.RemoteIdentityGroupGetResponse" do
|
29
|
+
optional :meta, :message, 1, "v1.GetResponseMetadata"
|
30
|
+
optional :remote_identity_group, :message, 2, "v1.RemoteIdentityGroup"
|
31
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
32
|
+
end
|
33
|
+
add_message "v1.RemoteIdentityGroupListRequest" do
|
34
|
+
optional :meta, :message, 1, "v1.ListRequestMetadata"
|
35
|
+
optional :filter, :string, 2
|
36
|
+
end
|
37
|
+
add_message "v1.RemoteIdentityGroupListResponse" do
|
38
|
+
optional :meta, :message, 1, "v1.ListResponseMetadata"
|
39
|
+
repeated :remote_identity_groups, :message, 2, "v1.RemoteIdentityGroup"
|
40
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
41
|
+
end
|
42
|
+
add_message "v1.RemoteIdentityGroup" do
|
43
|
+
optional :id, :string, 1
|
44
|
+
optional :name, :string, 2
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
module V1
|
50
|
+
RemoteIdentityGroupGetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RemoteIdentityGroupGetRequest").msgclass
|
51
|
+
RemoteIdentityGroupGetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RemoteIdentityGroupGetResponse").msgclass
|
52
|
+
RemoteIdentityGroupListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RemoteIdentityGroupListRequest").msgclass
|
53
|
+
RemoteIdentityGroupListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RemoteIdentityGroupListResponse").msgclass
|
54
|
+
RemoteIdentityGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RemoteIdentityGroup").msgclass
|
55
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# Copyright 2020 StrongDM Inc
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
#
|
15
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
16
|
+
# Source: remote_identity_groups.proto for package 'v1'
|
17
|
+
|
18
|
+
require "grpc"
|
19
|
+
require "remote_identity_groups_pb"
|
20
|
+
|
21
|
+
module V1
|
22
|
+
module RemoteIdentityGroups
|
23
|
+
# A RemoteIdentityGroup is a named grouping of Remote Identities for Accounts.
|
24
|
+
# An Account's relationship to a RemoteIdentityGroup is defined via RemoteIdentity objects.
|
25
|
+
class Service
|
26
|
+
include GRPC::GenericService
|
27
|
+
|
28
|
+
self.marshal_class_method = :encode
|
29
|
+
self.unmarshal_class_method = :decode
|
30
|
+
self.service_name = "v1.RemoteIdentityGroups"
|
31
|
+
|
32
|
+
# // Create registers a new RemoteIdentityGroup.
|
33
|
+
# rpc Create(RemoteIdentityGroupCreateRequest) returns (RemoteIdentityGroupCreateResponse) {
|
34
|
+
# option (v1.method_options).method = "post";
|
35
|
+
# option (v1.method_options).url = "/v1/remote-identity-groups";
|
36
|
+
# }
|
37
|
+
#
|
38
|
+
# Get reads one RemoteIdentityGroup by ID.
|
39
|
+
rpc :Get, V1::RemoteIdentityGroupGetRequest, V1::RemoteIdentityGroupGetResponse
|
40
|
+
# // Update replaces all the fields of a RemoteIdentityGroup by ID.
|
41
|
+
# rpc Update(RemoteIdentityGroupUpdateRequest) returns (RemoteIdentityGroupUpdateResponse) {
|
42
|
+
# option (v1.method_options).method = "put";
|
43
|
+
# option (v1.method_options).url = "/v1/remote-identity-groups/{id}";
|
44
|
+
# }
|
45
|
+
#
|
46
|
+
# // Delete removes a RemoteIdentityGroup by ID.
|
47
|
+
# rpc Delete(RemoteIdentityGroupDeleteRequest) returns (RemoteIdentityGroupDeleteResponse) {
|
48
|
+
# option (v1.method_options).method = "delete";
|
49
|
+
# option (v1.method_options).url = "/v1/remote-identity-groups/{id}";
|
50
|
+
# }
|
51
|
+
#
|
52
|
+
# List gets a list of RemoteIdentityGroups matching a given set of criteria.
|
53
|
+
rpc :List, V1::RemoteIdentityGroupListRequest, V1::RemoteIdentityGroupListResponse
|
54
|
+
end
|
55
|
+
|
56
|
+
Stub = Service.rpc_stub_class
|
57
|
+
end
|
58
|
+
end
|
@@ -23,24 +23,24 @@ module V1
|
|
23
23
|
# Resources are databases, servers, clusters, websites, or clouds that strongDM
|
24
24
|
# delegates access to.
|
25
25
|
class Service
|
26
|
-
include
|
26
|
+
include GRPC::GenericService
|
27
27
|
|
28
28
|
self.marshal_class_method = :encode
|
29
29
|
self.unmarshal_class_method = :decode
|
30
30
|
self.service_name = "v1.Resources"
|
31
31
|
|
32
32
|
# EnumerateTags gets a list of the filter matching tags.
|
33
|
-
rpc :EnumerateTags,
|
33
|
+
rpc :EnumerateTags, V1::EnumerateTagsRequest, V1::EnumerateTagsResponse
|
34
34
|
# Create registers a new Resource.
|
35
|
-
rpc :Create,
|
35
|
+
rpc :Create, V1::ResourceCreateRequest, V1::ResourceCreateResponse
|
36
36
|
# Get reads one Resource by ID.
|
37
|
-
rpc :Get,
|
37
|
+
rpc :Get, V1::ResourceGetRequest, V1::ResourceGetResponse
|
38
38
|
# Update replaces all the fields of a Resource by ID.
|
39
|
-
rpc :Update,
|
39
|
+
rpc :Update, V1::ResourceUpdateRequest, V1::ResourceUpdateResponse
|
40
40
|
# Delete removes a Resource by ID.
|
41
|
-
rpc :Delete,
|
41
|
+
rpc :Delete, V1::ResourceDeleteRequest, V1::ResourceDeleteResponse
|
42
42
|
# List gets a list of Resources matching a given set of criteria.
|
43
|
-
rpc :List,
|
43
|
+
rpc :List, V1::ResourceListRequest, V1::ResourceListResponse
|
44
44
|
end
|
45
45
|
|
46
46
|
Stub = Service.rpc_stub_class
|
@@ -27,7 +27,7 @@ module V1
|
|
27
27
|
#
|
28
28
|
# Deprecated: use multi-role via AccountAttachments instead.
|
29
29
|
class Service
|
30
|
-
include
|
30
|
+
include GRPC::GenericService
|
31
31
|
|
32
32
|
self.marshal_class_method = :encode
|
33
33
|
self.unmarshal_class_method = :decode
|
@@ -36,19 +36,19 @@ module V1
|
|
36
36
|
# Create registers a new RoleAttachment.
|
37
37
|
#
|
38
38
|
# Deprecated: use multi-role via AccountAttachments instead.
|
39
|
-
rpc :Create,
|
39
|
+
rpc :Create, V1::RoleAttachmentCreateRequest, V1::RoleAttachmentCreateResponse
|
40
40
|
# Get reads one RoleAttachment by ID.
|
41
41
|
#
|
42
42
|
# Deprecated: use multi-role via AccountAttachments instead.
|
43
|
-
rpc :Get,
|
43
|
+
rpc :Get, V1::RoleAttachmentGetRequest, V1::RoleAttachmentGetResponse
|
44
44
|
# Delete removes a RoleAttachment by ID.
|
45
45
|
#
|
46
46
|
# Deprecated: use multi-role via AccountAttachments instead.
|
47
|
-
rpc :Delete,
|
47
|
+
rpc :Delete, V1::RoleAttachmentDeleteRequest, V1::RoleAttachmentDeleteResponse
|
48
48
|
# List gets a list of RoleAttachments matching a given set of criteria.
|
49
49
|
#
|
50
50
|
# Deprecated: use multi-role via AccountAttachments instead.
|
51
|
-
rpc :List,
|
51
|
+
rpc :List, V1::RoleAttachmentListRequest, V1::RoleAttachmentListResponse
|
52
52
|
end
|
53
53
|
|
54
54
|
Stub = Service.rpc_stub_class
|
@@ -27,7 +27,7 @@ module V1
|
|
27
27
|
#
|
28
28
|
# Deprecated: use Role access rules instead.
|
29
29
|
class Service
|
30
|
-
include
|
30
|
+
include GRPC::GenericService
|
31
31
|
|
32
32
|
self.marshal_class_method = :encode
|
33
33
|
self.unmarshal_class_method = :decode
|
@@ -36,19 +36,19 @@ module V1
|
|
36
36
|
# Create registers a new RoleGrant.
|
37
37
|
#
|
38
38
|
# Deprecated: use Role access rules instead.
|
39
|
-
rpc :Create,
|
39
|
+
rpc :Create, V1::RoleGrantCreateRequest, V1::RoleGrantCreateResponse
|
40
40
|
# Get reads one RoleGrant by ID.
|
41
41
|
#
|
42
42
|
# Deprecated: use Role access rules instead.
|
43
|
-
rpc :Get,
|
43
|
+
rpc :Get, V1::RoleGrantGetRequest, V1::RoleGrantGetResponse
|
44
44
|
# Delete removes a RoleGrant by ID.
|
45
45
|
#
|
46
46
|
# Deprecated: use Role access rules instead.
|
47
|
-
rpc :Delete,
|
47
|
+
rpc :Delete, V1::RoleGrantDeleteRequest, V1::RoleGrantDeleteResponse
|
48
48
|
# List gets a list of RoleGrants matching a given set of criteria.
|
49
49
|
#
|
50
50
|
# Deprecated: use Role access rules instead.
|
51
|
-
rpc :List,
|
51
|
+
rpc :List, V1::RoleGrantListRequest, V1::RoleGrantListResponse
|
52
52
|
end
|
53
53
|
|
54
54
|
Stub = Service.rpc_stub_class
|
@@ -24,22 +24,22 @@ module V1
|
|
24
24
|
# of the Role have access to. An Account can be a member of multiple Roles via
|
25
25
|
# AccountAttachments.
|
26
26
|
class Service
|
27
|
-
include
|
27
|
+
include GRPC::GenericService
|
28
28
|
|
29
29
|
self.marshal_class_method = :encode
|
30
30
|
self.unmarshal_class_method = :decode
|
31
31
|
self.service_name = "v1.Roles"
|
32
32
|
|
33
33
|
# Create registers a new Role.
|
34
|
-
rpc :Create,
|
34
|
+
rpc :Create, V1::RoleCreateRequest, V1::RoleCreateResponse
|
35
35
|
# Get reads one Role by ID.
|
36
|
-
rpc :Get,
|
36
|
+
rpc :Get, V1::RoleGetRequest, V1::RoleGetResponse
|
37
37
|
# Update replaces all the fields of a Role by ID.
|
38
|
-
rpc :Update,
|
38
|
+
rpc :Update, V1::RoleUpdateRequest, V1::RoleUpdateResponse
|
39
39
|
# Delete removes a Role by ID.
|
40
|
-
rpc :Delete,
|
40
|
+
rpc :Delete, V1::RoleDeleteRequest, V1::RoleDeleteResponse
|
41
41
|
# List gets a list of Roles matching a given set of criteria.
|
42
|
-
rpc :List,
|
42
|
+
rpc :List, V1::RoleListRequest, V1::RoleListResponse
|
43
43
|
end
|
44
44
|
|
45
45
|
Stub = Service.rpc_stub_class
|
@@ -22,21 +22,21 @@ module V1
|
|
22
22
|
module SecretStores
|
23
23
|
# SecretStores are servers where resource secrets (passwords, keys) are stored.
|
24
24
|
class Service
|
25
|
-
include
|
25
|
+
include GRPC::GenericService
|
26
26
|
|
27
27
|
self.marshal_class_method = :encode
|
28
28
|
self.unmarshal_class_method = :decode
|
29
29
|
self.service_name = "v1.SecretStores"
|
30
30
|
|
31
|
-
rpc :Create,
|
31
|
+
rpc :Create, V1::SecretStoreCreateRequest, V1::SecretStoreCreateResponse
|
32
32
|
# Get reads one SecretStore by ID.
|
33
|
-
rpc :Get,
|
33
|
+
rpc :Get, V1::SecretStoreGetRequest, V1::SecretStoreGetResponse
|
34
34
|
# Update replaces all the fields of a SecretStore by ID.
|
35
|
-
rpc :Update,
|
35
|
+
rpc :Update, V1::SecretStoreUpdateRequest, V1::SecretStoreUpdateResponse
|
36
36
|
# Delete removes a SecretStore by ID.
|
37
|
-
rpc :Delete,
|
37
|
+
rpc :Delete, V1::SecretStoreDeleteRequest, V1::SecretStoreDeleteResponse
|
38
38
|
# List gets a list of SecretStores matching a given set of criteria.
|
39
|
-
rpc :List,
|
39
|
+
rpc :List, V1::SecretStoreListRequest, V1::SecretStoreListResponse
|
40
40
|
end
|
41
41
|
|
42
42
|
Stub = Service.rpc_stub_class
|