strongdm 2.5.0 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- 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-c180677ba60e518124a696667c7cc0c268db3b1a.idx → pack-886c8b7b48ee02690285f26795cb132efb2f15f6.idx} +0 -0
- data/.git/objects/pack/{pack-c180677ba60e518124a696667c7cc0c268db3b1a.pack → pack-886c8b7b48ee02690285f26795cb132efb2f15f6.pack} +0 -0
- data/.git/packed-refs +3 -2
- data/.git/refs/heads/master +1 -1
- data/lib/grpc/drivers_pb.rb +14 -0
- data/lib/grpc/plumbing.rb +294 -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/models/porcelain.rb +252 -2
- data/lib/strongdm.rb +12 -1
- data/lib/svc.rb +266 -0
- data/lib/version +1 -1
- data/lib/version.rb +1 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efbed085fbe559c817c974aaa40983e63db0bf0d3bc4ba26347b8bc68f353ed8
|
4
|
+
data.tar.gz: a52f50f5b0032ddc6b7c4c44c27a50672b264e275fff335d4e2f327e59146829
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b77f8f0fecf77893bfcd1b2cdc1e7beaefe4dd73d19880059d025d341b813739209ee905ae6c2784fa38d6ca442017eff154d043254aee792eee791f5fd2d890
|
7
|
+
data.tar.gz: 59f5e016ba350d970ef446caa8992c5c7bf5030785fdf7d680ef2a997587ef19f8c7b30028fa117f8f8c718b67d2040e531c73bcbe22f62a880b7ee6791230d2
|
data/.git/ORIG_HEAD
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
42523443a7148266578542cb9c64167dee1a817f
|
data/.git/index
CHANGED
Binary file
|
data/.git/logs/HEAD
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
0000000000000000000000000000000000000000
|
2
|
-
|
3
|
-
|
1
|
+
0000000000000000000000000000000000000000 42523443a7148266578542cb9c64167dee1a817f sdmrelease <support@strongdm.com> 1655210620 +0000 clone: from git@github.com:strongdm/strongdm-sdk-ruby.git
|
2
|
+
42523443a7148266578542cb9c64167dee1a817f 42523443a7148266578542cb9c64167dee1a817f sdmrelease <support@strongdm.com> 1655210620 +0000 checkout: moving from master to master
|
3
|
+
42523443a7148266578542cb9c64167dee1a817f ee164dbda02c66cd898f0357884c58f822b486dc sdmrelease <support@strongdm.com> 1655210620 +0000 merge origin/development: Fast-forward
|
data/.git/logs/refs/heads/master
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
0000000000000000000000000000000000000000
|
2
|
-
|
1
|
+
0000000000000000000000000000000000000000 42523443a7148266578542cb9c64167dee1a817f sdmrelease <support@strongdm.com> 1655210620 +0000 clone: from git@github.com:strongdm/strongdm-sdk-ruby.git
|
2
|
+
42523443a7148266578542cb9c64167dee1a817f ee164dbda02c66cd898f0357884c58f822b486dc sdmrelease <support@strongdm.com> 1655210620 +0000 merge origin/development: Fast-forward
|
@@ -1 +1 @@
|
|
1
|
-
0000000000000000000000000000000000000000
|
1
|
+
0000000000000000000000000000000000000000 42523443a7148266578542cb9c64167dee1a817f sdmrelease <support@strongdm.com> 1655210620 +0000 clone: from git@github.com:strongdm/strongdm-sdk-ruby.git
|
Binary file
|
Binary file
|
data/.git/packed-refs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# pack-refs with: peeled fully-peeled sorted
|
2
|
-
|
3
|
-
|
2
|
+
ee164dbda02c66cd898f0357884c58f822b486dc refs/remotes/origin/development
|
3
|
+
42523443a7148266578542cb9c64167dee1a817f refs/remotes/origin/master
|
4
4
|
2e4fe8087177ddea9b3991ca499f758384839c89 refs/tags/untagged-84fd83a4484c785cce63
|
5
5
|
04f604866214fab4d5663b5171a3e596331577bd refs/tags/v0.9.4
|
6
6
|
6f9a7b75b345c65fb554884907b7060680c807b7 refs/tags/v0.9.5
|
@@ -36,3 +36,4 @@ d035aa3acb4c3a0935121bc00bfbb0a9e999d410 refs/tags/v1.0.7
|
|
36
36
|
e0b1ec0134c7015ccb8c14464cc713c20034159e refs/tags/v2.0.0
|
37
37
|
62a146d9d56852b2ad14ec5d2796cad158d66e1c refs/tags/v2.1.0
|
38
38
|
9de04e628082f4ad0eb9511311479a089d302008 refs/tags/v2.2.0
|
39
|
+
42523443a7148266578542cb9c64167dee1a817f refs/tags/v2.5.0
|
data/.git/refs/heads/master
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
ee164dbda02c66cd898f0357884c58f822b486dc
|
data/lib/grpc/drivers_pb.rb
CHANGED
@@ -110,6 +110,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
110
110
|
optional :healthcheck_namespace, :string, 9
|
111
111
|
optional :hostname, :string, 1
|
112
112
|
optional :port, :int32, 2
|
113
|
+
optional :remote_identity_group_id, :string, 10
|
114
|
+
optional :remote_identity_healthcheck_username, :string, 11
|
113
115
|
end
|
114
116
|
add_message "v1.AKSBasicAuth" do
|
115
117
|
optional :id, :string, 32768
|
@@ -136,6 +138,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
136
138
|
optional :healthcheck_namespace, :string, 4
|
137
139
|
optional :hostname, :string, 1
|
138
140
|
optional :port, :int32, 2
|
141
|
+
optional :remote_identity_group_id, :string, 5
|
142
|
+
optional :remote_identity_healthcheck_username, :string, 6
|
139
143
|
optional :token, :string, 3
|
140
144
|
end
|
141
145
|
add_message "v1.AKSServiceAccountUserImpersonation" do
|
@@ -194,6 +198,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
194
198
|
optional :endpoint, :string, 1
|
195
199
|
optional :healthcheck_namespace, :string, 9
|
196
200
|
optional :region, :string, 6
|
201
|
+
optional :remote_identity_group_id, :string, 11
|
202
|
+
optional :remote_identity_healthcheck_username, :string, 12
|
197
203
|
optional :role_arn, :string, 8
|
198
204
|
optional :role_external_id, :string, 10
|
199
205
|
optional :secret_access_key, :string, 3
|
@@ -552,6 +558,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
552
558
|
optional :certificate_authority, :string, 2
|
553
559
|
optional :endpoint, :string, 1
|
554
560
|
optional :healthcheck_namespace, :string, 6
|
561
|
+
optional :remote_identity_group_id, :string, 7
|
562
|
+
optional :remote_identity_healthcheck_username, :string, 8
|
555
563
|
optional :service_account_key, :string, 4
|
556
564
|
end
|
557
565
|
add_message "v1.GoogleGKEUserImpersonation" do
|
@@ -642,6 +650,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
642
650
|
optional :healthcheck_namespace, :string, 9
|
643
651
|
optional :hostname, :string, 1
|
644
652
|
optional :port, :int32, 2
|
653
|
+
optional :remote_identity_group_id, :string, 10
|
654
|
+
optional :remote_identity_healthcheck_username, :string, 11
|
645
655
|
end
|
646
656
|
add_message "v1.KubernetesBasicAuth" do
|
647
657
|
optional :id, :string, 32768
|
@@ -668,6 +678,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
668
678
|
optional :healthcheck_namespace, :string, 4
|
669
679
|
optional :hostname, :string, 1
|
670
680
|
optional :port, :int32, 2
|
681
|
+
optional :remote_identity_group_id, :string, 5
|
682
|
+
optional :remote_identity_healthcheck_username, :string, 6
|
671
683
|
optional :token, :string, 3
|
672
684
|
end
|
673
685
|
add_message "v1.KubernetesServiceAccountUserImpersonation" do
|
@@ -1072,6 +1084,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
1072
1084
|
optional :port, :int32, 3
|
1073
1085
|
optional :port_forwarding, :bool, 4
|
1074
1086
|
optional :port_override, :int32, 6
|
1087
|
+
optional :remote_identity_group_id, :string, 7
|
1088
|
+
optional :remote_identity_healthcheck_username, :string, 8
|
1075
1089
|
optional :username, :string, 2
|
1076
1090
|
end
|
1077
1091
|
add_message "v1.SSHCustomerKey" do
|
data/lib/grpc/plumbing.rb
CHANGED
@@ -27,6 +27,8 @@ require_relative "./accounts_pb"
|
|
27
27
|
require_relative "./control_panel_pb"
|
28
28
|
require_relative "./drivers_pb"
|
29
29
|
require_relative "./nodes_pb"
|
30
|
+
require_relative "./remote_identities_pb"
|
31
|
+
require_relative "./remote_identity_groups_pb"
|
30
32
|
require_relative "./resources_pb"
|
31
33
|
require_relative "./role_attachments_pb"
|
32
34
|
require_relative "./role_grants_pb"
|
@@ -126,6 +128,8 @@ module SDM
|
|
126
128
|
porcelain.id = (plumbing.id)
|
127
129
|
porcelain.name = (plumbing.name)
|
128
130
|
porcelain.port = (plumbing.port)
|
131
|
+
porcelain.remote_identity_group_id = (plumbing.remote_identity_group_id)
|
132
|
+
porcelain.remote_identity_healthcheck_username = (plumbing.remote_identity_healthcheck_username)
|
129
133
|
porcelain.secret_store_id = (plumbing.secret_store_id)
|
130
134
|
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
131
135
|
porcelain
|
@@ -147,6 +151,8 @@ module SDM
|
|
147
151
|
plumbing.id = (porcelain.id)
|
148
152
|
plumbing.name = (porcelain.name)
|
149
153
|
plumbing.port = (porcelain.port)
|
154
|
+
plumbing.remote_identity_group_id = (porcelain.remote_identity_group_id)
|
155
|
+
plumbing.remote_identity_healthcheck_username = (porcelain.remote_identity_healthcheck_username)
|
150
156
|
plumbing.secret_store_id = (porcelain.secret_store_id)
|
151
157
|
plumbing.tags = convert_tags_to_plumbing(porcelain.tags)
|
152
158
|
plumbing
|
@@ -237,6 +243,8 @@ module SDM
|
|
237
243
|
porcelain.id = (plumbing.id)
|
238
244
|
porcelain.name = (plumbing.name)
|
239
245
|
porcelain.port = (plumbing.port)
|
246
|
+
porcelain.remote_identity_group_id = (plumbing.remote_identity_group_id)
|
247
|
+
porcelain.remote_identity_healthcheck_username = (plumbing.remote_identity_healthcheck_username)
|
240
248
|
porcelain.secret_store_id = (plumbing.secret_store_id)
|
241
249
|
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
242
250
|
porcelain.token = (plumbing.token)
|
@@ -256,6 +264,8 @@ module SDM
|
|
256
264
|
plumbing.id = (porcelain.id)
|
257
265
|
plumbing.name = (porcelain.name)
|
258
266
|
plumbing.port = (porcelain.port)
|
267
|
+
plumbing.remote_identity_group_id = (porcelain.remote_identity_group_id)
|
268
|
+
plumbing.remote_identity_healthcheck_username = (porcelain.remote_identity_healthcheck_username)
|
259
269
|
plumbing.secret_store_id = (porcelain.secret_store_id)
|
260
270
|
plumbing.tags = convert_tags_to_plumbing(porcelain.tags)
|
261
271
|
plumbing.token = (porcelain.token)
|
@@ -1000,6 +1010,8 @@ module SDM
|
|
1000
1010
|
porcelain.id = (plumbing.id)
|
1001
1011
|
porcelain.name = (plumbing.name)
|
1002
1012
|
porcelain.region = (plumbing.region)
|
1013
|
+
porcelain.remote_identity_group_id = (plumbing.remote_identity_group_id)
|
1014
|
+
porcelain.remote_identity_healthcheck_username = (plumbing.remote_identity_healthcheck_username)
|
1003
1015
|
porcelain.role_arn = (plumbing.role_arn)
|
1004
1016
|
porcelain.role_external_id = (plumbing.role_external_id)
|
1005
1017
|
porcelain.secret_access_key = (plumbing.secret_access_key)
|
@@ -1024,6 +1036,8 @@ module SDM
|
|
1024
1036
|
plumbing.id = (porcelain.id)
|
1025
1037
|
plumbing.name = (porcelain.name)
|
1026
1038
|
plumbing.region = (porcelain.region)
|
1039
|
+
plumbing.remote_identity_group_id = (porcelain.remote_identity_group_id)
|
1040
|
+
plumbing.remote_identity_healthcheck_username = (porcelain.remote_identity_healthcheck_username)
|
1027
1041
|
plumbing.role_arn = (porcelain.role_arn)
|
1028
1042
|
plumbing.role_external_id = (porcelain.role_external_id)
|
1029
1043
|
plumbing.secret_access_key = (porcelain.secret_access_key)
|
@@ -2689,6 +2703,8 @@ module SDM
|
|
2689
2703
|
porcelain.healthy = (plumbing.healthy)
|
2690
2704
|
porcelain.id = (plumbing.id)
|
2691
2705
|
porcelain.name = (plumbing.name)
|
2706
|
+
porcelain.remote_identity_group_id = (plumbing.remote_identity_group_id)
|
2707
|
+
porcelain.remote_identity_healthcheck_username = (plumbing.remote_identity_healthcheck_username)
|
2692
2708
|
porcelain.secret_store_id = (plumbing.secret_store_id)
|
2693
2709
|
porcelain.service_account_key = (plumbing.service_account_key)
|
2694
2710
|
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
@@ -2708,6 +2724,8 @@ module SDM
|
|
2708
2724
|
plumbing.healthy = (porcelain.healthy)
|
2709
2725
|
plumbing.id = (porcelain.id)
|
2710
2726
|
plumbing.name = (porcelain.name)
|
2727
|
+
plumbing.remote_identity_group_id = (porcelain.remote_identity_group_id)
|
2728
|
+
plumbing.remote_identity_healthcheck_username = (porcelain.remote_identity_healthcheck_username)
|
2711
2729
|
plumbing.secret_store_id = (porcelain.secret_store_id)
|
2712
2730
|
plumbing.service_account_key = (porcelain.service_account_key)
|
2713
2731
|
plumbing.tags = convert_tags_to_plumbing(porcelain.tags)
|
@@ -3034,6 +3052,8 @@ module SDM
|
|
3034
3052
|
porcelain.id = (plumbing.id)
|
3035
3053
|
porcelain.name = (plumbing.name)
|
3036
3054
|
porcelain.port = (plumbing.port)
|
3055
|
+
porcelain.remote_identity_group_id = (plumbing.remote_identity_group_id)
|
3056
|
+
porcelain.remote_identity_healthcheck_username = (plumbing.remote_identity_healthcheck_username)
|
3037
3057
|
porcelain.secret_store_id = (plumbing.secret_store_id)
|
3038
3058
|
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
3039
3059
|
porcelain
|
@@ -3055,6 +3075,8 @@ module SDM
|
|
3055
3075
|
plumbing.id = (porcelain.id)
|
3056
3076
|
plumbing.name = (porcelain.name)
|
3057
3077
|
plumbing.port = (porcelain.port)
|
3078
|
+
plumbing.remote_identity_group_id = (porcelain.remote_identity_group_id)
|
3079
|
+
plumbing.remote_identity_healthcheck_username = (porcelain.remote_identity_healthcheck_username)
|
3058
3080
|
plumbing.secret_store_id = (porcelain.secret_store_id)
|
3059
3081
|
plumbing.tags = convert_tags_to_plumbing(porcelain.tags)
|
3060
3082
|
plumbing
|
@@ -3145,6 +3167,8 @@ module SDM
|
|
3145
3167
|
porcelain.id = (plumbing.id)
|
3146
3168
|
porcelain.name = (plumbing.name)
|
3147
3169
|
porcelain.port = (plumbing.port)
|
3170
|
+
porcelain.remote_identity_group_id = (plumbing.remote_identity_group_id)
|
3171
|
+
porcelain.remote_identity_healthcheck_username = (plumbing.remote_identity_healthcheck_username)
|
3148
3172
|
porcelain.secret_store_id = (plumbing.secret_store_id)
|
3149
3173
|
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
3150
3174
|
porcelain.token = (plumbing.token)
|
@@ -3164,6 +3188,8 @@ module SDM
|
|
3164
3188
|
plumbing.id = (porcelain.id)
|
3165
3189
|
plumbing.name = (porcelain.name)
|
3166
3190
|
plumbing.port = (porcelain.port)
|
3191
|
+
plumbing.remote_identity_group_id = (porcelain.remote_identity_group_id)
|
3192
|
+
plumbing.remote_identity_healthcheck_username = (porcelain.remote_identity_healthcheck_username)
|
3167
3193
|
plumbing.secret_store_id = (porcelain.secret_store_id)
|
3168
3194
|
plumbing.tags = convert_tags_to_plumbing(porcelain.tags)
|
3169
3195
|
plumbing.token = (porcelain.token)
|
@@ -4818,6 +4844,270 @@ module SDM
|
|
4818
4844
|
end
|
4819
4845
|
items
|
4820
4846
|
end
|
4847
|
+
def self.convert_remote_identity_to_porcelain(plumbing)
|
4848
|
+
if plumbing == nil
|
4849
|
+
return nil
|
4850
|
+
end
|
4851
|
+
porcelain = RemoteIdentity.new()
|
4852
|
+
porcelain.account_id = (plumbing.account_id)
|
4853
|
+
porcelain.id = (plumbing.id)
|
4854
|
+
porcelain.remote_identity_group_id = (plumbing.remote_identity_group_id)
|
4855
|
+
porcelain.username = (plumbing.username)
|
4856
|
+
porcelain
|
4857
|
+
end
|
4858
|
+
|
4859
|
+
def self.convert_remote_identity_to_plumbing(porcelain)
|
4860
|
+
if porcelain == nil
|
4861
|
+
return nil
|
4862
|
+
end
|
4863
|
+
plumbing = V1::RemoteIdentity.new()
|
4864
|
+
plumbing.account_id = (porcelain.account_id)
|
4865
|
+
plumbing.id = (porcelain.id)
|
4866
|
+
plumbing.remote_identity_group_id = (porcelain.remote_identity_group_id)
|
4867
|
+
plumbing.username = (porcelain.username)
|
4868
|
+
plumbing
|
4869
|
+
end
|
4870
|
+
def self.convert_repeated_remote_identity_to_plumbing(porcelains)
|
4871
|
+
items = Array.new
|
4872
|
+
porcelains.each do |porcelain|
|
4873
|
+
plumbing = convert_remote_identity_to_plumbing(porcelain)
|
4874
|
+
items.append(plumbing)
|
4875
|
+
end
|
4876
|
+
items
|
4877
|
+
end
|
4878
|
+
|
4879
|
+
def self.convert_repeated_remote_identity_to_porcelain(plumbings)
|
4880
|
+
items = Array.new
|
4881
|
+
plumbings.each do |plumbing|
|
4882
|
+
porcelain = convert_remote_identity_to_porcelain(plumbing)
|
4883
|
+
items.append(porcelain)
|
4884
|
+
end
|
4885
|
+
items
|
4886
|
+
end
|
4887
|
+
def self.convert_remote_identity_create_response_to_porcelain(plumbing)
|
4888
|
+
if plumbing == nil
|
4889
|
+
return nil
|
4890
|
+
end
|
4891
|
+
porcelain = RemoteIdentityCreateResponse.new()
|
4892
|
+
porcelain.meta = convert_create_response_metadata_to_porcelain(plumbing.meta)
|
4893
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
4894
|
+
porcelain.remote_identity = convert_remote_identity_to_porcelain(plumbing.remote_identity)
|
4895
|
+
porcelain
|
4896
|
+
end
|
4897
|
+
|
4898
|
+
def self.convert_remote_identity_create_response_to_plumbing(porcelain)
|
4899
|
+
if porcelain == nil
|
4900
|
+
return nil
|
4901
|
+
end
|
4902
|
+
plumbing = V1::RemoteIdentityCreateResponse.new()
|
4903
|
+
plumbing.meta = convert_create_response_metadata_to_plumbing(porcelain.meta)
|
4904
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
4905
|
+
plumbing.remote_identity = convert_remote_identity_to_plumbing(porcelain.remote_identity)
|
4906
|
+
plumbing
|
4907
|
+
end
|
4908
|
+
def self.convert_repeated_remote_identity_create_response_to_plumbing(porcelains)
|
4909
|
+
items = Array.new
|
4910
|
+
porcelains.each do |porcelain|
|
4911
|
+
plumbing = convert_remote_identity_create_response_to_plumbing(porcelain)
|
4912
|
+
items.append(plumbing)
|
4913
|
+
end
|
4914
|
+
items
|
4915
|
+
end
|
4916
|
+
|
4917
|
+
def self.convert_repeated_remote_identity_create_response_to_porcelain(plumbings)
|
4918
|
+
items = Array.new
|
4919
|
+
plumbings.each do |plumbing|
|
4920
|
+
porcelain = convert_remote_identity_create_response_to_porcelain(plumbing)
|
4921
|
+
items.append(porcelain)
|
4922
|
+
end
|
4923
|
+
items
|
4924
|
+
end
|
4925
|
+
def self.convert_remote_identity_delete_response_to_porcelain(plumbing)
|
4926
|
+
if plumbing == nil
|
4927
|
+
return nil
|
4928
|
+
end
|
4929
|
+
porcelain = RemoteIdentityDeleteResponse.new()
|
4930
|
+
porcelain.meta = convert_delete_response_metadata_to_porcelain(plumbing.meta)
|
4931
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
4932
|
+
porcelain
|
4933
|
+
end
|
4934
|
+
|
4935
|
+
def self.convert_remote_identity_delete_response_to_plumbing(porcelain)
|
4936
|
+
if porcelain == nil
|
4937
|
+
return nil
|
4938
|
+
end
|
4939
|
+
plumbing = V1::RemoteIdentityDeleteResponse.new()
|
4940
|
+
plumbing.meta = convert_delete_response_metadata_to_plumbing(porcelain.meta)
|
4941
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
4942
|
+
plumbing
|
4943
|
+
end
|
4944
|
+
def self.convert_repeated_remote_identity_delete_response_to_plumbing(porcelains)
|
4945
|
+
items = Array.new
|
4946
|
+
porcelains.each do |porcelain|
|
4947
|
+
plumbing = convert_remote_identity_delete_response_to_plumbing(porcelain)
|
4948
|
+
items.append(plumbing)
|
4949
|
+
end
|
4950
|
+
items
|
4951
|
+
end
|
4952
|
+
|
4953
|
+
def self.convert_repeated_remote_identity_delete_response_to_porcelain(plumbings)
|
4954
|
+
items = Array.new
|
4955
|
+
plumbings.each do |plumbing|
|
4956
|
+
porcelain = convert_remote_identity_delete_response_to_porcelain(plumbing)
|
4957
|
+
items.append(porcelain)
|
4958
|
+
end
|
4959
|
+
items
|
4960
|
+
end
|
4961
|
+
def self.convert_remote_identity_get_response_to_porcelain(plumbing)
|
4962
|
+
if plumbing == nil
|
4963
|
+
return nil
|
4964
|
+
end
|
4965
|
+
porcelain = RemoteIdentityGetResponse.new()
|
4966
|
+
porcelain.meta = convert_get_response_metadata_to_porcelain(plumbing.meta)
|
4967
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
4968
|
+
porcelain.remote_identity = convert_remote_identity_to_porcelain(plumbing.remote_identity)
|
4969
|
+
porcelain
|
4970
|
+
end
|
4971
|
+
|
4972
|
+
def self.convert_remote_identity_get_response_to_plumbing(porcelain)
|
4973
|
+
if porcelain == nil
|
4974
|
+
return nil
|
4975
|
+
end
|
4976
|
+
plumbing = V1::RemoteIdentityGetResponse.new()
|
4977
|
+
plumbing.meta = convert_get_response_metadata_to_plumbing(porcelain.meta)
|
4978
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
4979
|
+
plumbing.remote_identity = convert_remote_identity_to_plumbing(porcelain.remote_identity)
|
4980
|
+
plumbing
|
4981
|
+
end
|
4982
|
+
def self.convert_repeated_remote_identity_get_response_to_plumbing(porcelains)
|
4983
|
+
items = Array.new
|
4984
|
+
porcelains.each do |porcelain|
|
4985
|
+
plumbing = convert_remote_identity_get_response_to_plumbing(porcelain)
|
4986
|
+
items.append(plumbing)
|
4987
|
+
end
|
4988
|
+
items
|
4989
|
+
end
|
4990
|
+
|
4991
|
+
def self.convert_repeated_remote_identity_get_response_to_porcelain(plumbings)
|
4992
|
+
items = Array.new
|
4993
|
+
plumbings.each do |plumbing|
|
4994
|
+
porcelain = convert_remote_identity_get_response_to_porcelain(plumbing)
|
4995
|
+
items.append(porcelain)
|
4996
|
+
end
|
4997
|
+
items
|
4998
|
+
end
|
4999
|
+
def self.convert_remote_identity_group_to_porcelain(plumbing)
|
5000
|
+
if plumbing == nil
|
5001
|
+
return nil
|
5002
|
+
end
|
5003
|
+
porcelain = RemoteIdentityGroup.new()
|
5004
|
+
porcelain.id = (plumbing.id)
|
5005
|
+
porcelain.name = (plumbing.name)
|
5006
|
+
porcelain
|
5007
|
+
end
|
5008
|
+
|
5009
|
+
def self.convert_remote_identity_group_to_plumbing(porcelain)
|
5010
|
+
if porcelain == nil
|
5011
|
+
return nil
|
5012
|
+
end
|
5013
|
+
plumbing = V1::RemoteIdentityGroup.new()
|
5014
|
+
plumbing.id = (porcelain.id)
|
5015
|
+
plumbing.name = (porcelain.name)
|
5016
|
+
plumbing
|
5017
|
+
end
|
5018
|
+
def self.convert_repeated_remote_identity_group_to_plumbing(porcelains)
|
5019
|
+
items = Array.new
|
5020
|
+
porcelains.each do |porcelain|
|
5021
|
+
plumbing = convert_remote_identity_group_to_plumbing(porcelain)
|
5022
|
+
items.append(plumbing)
|
5023
|
+
end
|
5024
|
+
items
|
5025
|
+
end
|
5026
|
+
|
5027
|
+
def self.convert_repeated_remote_identity_group_to_porcelain(plumbings)
|
5028
|
+
items = Array.new
|
5029
|
+
plumbings.each do |plumbing|
|
5030
|
+
porcelain = convert_remote_identity_group_to_porcelain(plumbing)
|
5031
|
+
items.append(porcelain)
|
5032
|
+
end
|
5033
|
+
items
|
5034
|
+
end
|
5035
|
+
def self.convert_remote_identity_group_get_response_to_porcelain(plumbing)
|
5036
|
+
if plumbing == nil
|
5037
|
+
return nil
|
5038
|
+
end
|
5039
|
+
porcelain = RemoteIdentityGroupGetResponse.new()
|
5040
|
+
porcelain.meta = convert_get_response_metadata_to_porcelain(plumbing.meta)
|
5041
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
5042
|
+
porcelain.remote_identity_group = convert_remote_identity_group_to_porcelain(plumbing.remote_identity_group)
|
5043
|
+
porcelain
|
5044
|
+
end
|
5045
|
+
|
5046
|
+
def self.convert_remote_identity_group_get_response_to_plumbing(porcelain)
|
5047
|
+
if porcelain == nil
|
5048
|
+
return nil
|
5049
|
+
end
|
5050
|
+
plumbing = V1::RemoteIdentityGroupGetResponse.new()
|
5051
|
+
plumbing.meta = convert_get_response_metadata_to_plumbing(porcelain.meta)
|
5052
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
5053
|
+
plumbing.remote_identity_group = convert_remote_identity_group_to_plumbing(porcelain.remote_identity_group)
|
5054
|
+
plumbing
|
5055
|
+
end
|
5056
|
+
def self.convert_repeated_remote_identity_group_get_response_to_plumbing(porcelains)
|
5057
|
+
items = Array.new
|
5058
|
+
porcelains.each do |porcelain|
|
5059
|
+
plumbing = convert_remote_identity_group_get_response_to_plumbing(porcelain)
|
5060
|
+
items.append(plumbing)
|
5061
|
+
end
|
5062
|
+
items
|
5063
|
+
end
|
5064
|
+
|
5065
|
+
def self.convert_repeated_remote_identity_group_get_response_to_porcelain(plumbings)
|
5066
|
+
items = Array.new
|
5067
|
+
plumbings.each do |plumbing|
|
5068
|
+
porcelain = convert_remote_identity_group_get_response_to_porcelain(plumbing)
|
5069
|
+
items.append(porcelain)
|
5070
|
+
end
|
5071
|
+
items
|
5072
|
+
end
|
5073
|
+
def self.convert_remote_identity_update_response_to_porcelain(plumbing)
|
5074
|
+
if plumbing == nil
|
5075
|
+
return nil
|
5076
|
+
end
|
5077
|
+
porcelain = RemoteIdentityUpdateResponse.new()
|
5078
|
+
porcelain.meta = convert_update_response_metadata_to_porcelain(plumbing.meta)
|
5079
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
5080
|
+
porcelain.remote_identity = convert_remote_identity_to_porcelain(plumbing.remote_identity)
|
5081
|
+
porcelain
|
5082
|
+
end
|
5083
|
+
|
5084
|
+
def self.convert_remote_identity_update_response_to_plumbing(porcelain)
|
5085
|
+
if porcelain == nil
|
5086
|
+
return nil
|
5087
|
+
end
|
5088
|
+
plumbing = V1::RemoteIdentityUpdateResponse.new()
|
5089
|
+
plumbing.meta = convert_update_response_metadata_to_plumbing(porcelain.meta)
|
5090
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
5091
|
+
plumbing.remote_identity = convert_remote_identity_to_plumbing(porcelain.remote_identity)
|
5092
|
+
plumbing
|
5093
|
+
end
|
5094
|
+
def self.convert_repeated_remote_identity_update_response_to_plumbing(porcelains)
|
5095
|
+
items = Array.new
|
5096
|
+
porcelains.each do |porcelain|
|
5097
|
+
plumbing = convert_remote_identity_update_response_to_plumbing(porcelain)
|
5098
|
+
items.append(plumbing)
|
5099
|
+
end
|
5100
|
+
items
|
5101
|
+
end
|
5102
|
+
|
5103
|
+
def self.convert_repeated_remote_identity_update_response_to_porcelain(plumbings)
|
5104
|
+
items = Array.new
|
5105
|
+
plumbings.each do |plumbing|
|
5106
|
+
porcelain = convert_remote_identity_update_response_to_porcelain(plumbing)
|
5107
|
+
items.append(porcelain)
|
5108
|
+
end
|
5109
|
+
items
|
5110
|
+
end
|
4821
5111
|
def self.convert_resource_to_plumbing(porcelain)
|
4822
5112
|
if porcelain == nil
|
4823
5113
|
return nil
|
@@ -6053,6 +6343,8 @@ module SDM
|
|
6053
6343
|
porcelain.port = (plumbing.port)
|
6054
6344
|
porcelain.port_forwarding = (plumbing.port_forwarding)
|
6055
6345
|
porcelain.port_override = (plumbing.port_override)
|
6346
|
+
porcelain.remote_identity_group_id = (plumbing.remote_identity_group_id)
|
6347
|
+
porcelain.remote_identity_healthcheck_username = (plumbing.remote_identity_healthcheck_username)
|
6056
6348
|
porcelain.secret_store_id = (plumbing.secret_store_id)
|
6057
6349
|
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
6058
6350
|
porcelain.username = (plumbing.username)
|
@@ -6074,6 +6366,8 @@ module SDM
|
|
6074
6366
|
plumbing.port = (porcelain.port)
|
6075
6367
|
plumbing.port_forwarding = (porcelain.port_forwarding)
|
6076
6368
|
plumbing.port_override = (porcelain.port_override)
|
6369
|
+
plumbing.remote_identity_group_id = (porcelain.remote_identity_group_id)
|
6370
|
+
plumbing.remote_identity_healthcheck_username = (porcelain.remote_identity_healthcheck_username)
|
6077
6371
|
plumbing.secret_store_id = (porcelain.secret_store_id)
|
6078
6372
|
plumbing.tags = convert_tags_to_plumbing(porcelain.tags)
|
6079
6373
|
plumbing.username = (porcelain.username)
|
@@ -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
|