strongdm 1.0.14 → 1.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/SDM/AKS.html +2 -2
- data/doc/SDM/AKSBasicAuth.html +2 -2
- data/doc/SDM/AKSServiceAccount.html +2 -2
- data/doc/SDM/AWS.html +391 -0
- data/doc/SDM/AWSStore.html +2 -2
- data/doc/SDM/AccountAttachment.html +2 -2
- data/doc/SDM/AccountAttachmentCreateResponse.html +2 -2
- data/doc/SDM/AccountAttachmentDeleteResponse.html +2 -2
- data/doc/SDM/AccountAttachmentGetResponse.html +2 -2
- data/doc/SDM/AccountCreateResponse.html +2 -2
- data/doc/SDM/AccountDeleteResponse.html +2 -2
- data/doc/SDM/AccountGetResponse.html +2 -2
- data/doc/SDM/AccountGrant.html +2 -2
- data/doc/SDM/AccountGrantCreateResponse.html +2 -2
- data/doc/SDM/AccountGrantDeleteResponse.html +2 -2
- data/doc/SDM/AccountGrantGetResponse.html +2 -2
- data/doc/SDM/AccountUpdateResponse.html +2 -2
- data/doc/SDM/AmazonEKS.html +21 -3
- data/doc/SDM/AmazonES.html +39 -3
- data/doc/SDM/Athena.html +39 -3
- data/doc/SDM/AuroraMysql.html +2 -2
- data/doc/SDM/AuroraPostgres.html +2 -2
- data/doc/SDM/BigQuery.html +2 -2
- data/doc/SDM/Cassandra.html +2 -2
- data/doc/SDM/Citus.html +2 -2
- data/doc/SDM/Client.html +9 -6
- data/doc/SDM/Clustrix.html +2 -2
- data/doc/SDM/Cockroach.html +2 -2
- data/doc/SDM/ControlPanel.html +62 -0
- data/doc/SDM/ControlPanelGetSSHCAPublicKeyResponse.html +2 -2
- data/doc/SDM/ControlPanelVerifyJWTResponse.html +267 -0
- data/doc/SDM/DB2LUW.html +2 -2
- data/doc/SDM/DB2i.html +2 -2
- data/doc/SDM/Druid.html +2 -2
- data/doc/SDM/DynamoDB.html +39 -3
- data/doc/SDM/Elastic.html +2 -2
- data/doc/SDM/ElasticacheRedis.html +2 -2
- data/doc/SDM/Gateway.html +2 -2
- data/doc/SDM/GoogleGKE.html +2 -2
- data/doc/SDM/Greenplum.html +2 -2
- data/doc/SDM/HTTPAuth.html +2 -2
- data/doc/SDM/HTTPBasicAuth.html +2 -2
- data/doc/SDM/HTTPNoAuth.html +2 -2
- data/doc/SDM/Kubernetes.html +2 -2
- data/doc/SDM/KubernetesBasicAuth.html +2 -2
- data/doc/SDM/KubernetesServiceAccount.html +2 -2
- data/doc/SDM/Maria.html +2 -2
- data/doc/SDM/Memcached.html +2 -2
- data/doc/SDM/Memsql.html +2 -2
- data/doc/SDM/MongoHost.html +2 -2
- data/doc/SDM/MongoLegacyHost.html +2 -2
- data/doc/SDM/MongoLegacyReplicaset.html +2 -2
- data/doc/SDM/MongoReplicaSet.html +2 -2
- data/doc/SDM/Mysql.html +2 -2
- data/doc/SDM/NodeCreateResponse.html +2 -2
- data/doc/SDM/NodeDeleteResponse.html +2 -2
- data/doc/SDM/NodeGetResponse.html +2 -2
- data/doc/SDM/NodeUpdateResponse.html +2 -2
- data/doc/SDM/Nodes.html +6 -6
- data/doc/SDM/Oracle.html +2 -2
- data/doc/SDM/Plumbing.html +1167 -457
- data/doc/SDM/Postgres.html +2 -2
- data/doc/SDM/Presto.html +2 -2
- data/doc/SDM/RDP.html +2 -2
- data/doc/SDM/Redis.html +2 -2
- data/doc/SDM/Redshift.html +2 -2
- data/doc/SDM/Relay.html +2 -2
- data/doc/SDM/ResourceCreateResponse.html +2 -2
- data/doc/SDM/ResourceDeleteResponse.html +2 -2
- data/doc/SDM/ResourceGetResponse.html +2 -2
- data/doc/SDM/ResourceUpdateResponse.html +2 -2
- data/doc/SDM/Resources.html +74 -6
- data/doc/SDM/Role.html +2 -2
- data/doc/SDM/RoleAttachment.html +2 -2
- data/doc/SDM/RoleAttachmentCreateResponse.html +2 -2
- data/doc/SDM/RoleAttachmentDeleteResponse.html +2 -2
- data/doc/SDM/RoleAttachmentGetResponse.html +2 -2
- data/doc/SDM/RoleAttachments.html +5 -5
- data/doc/SDM/RoleCreateResponse.html +2 -2
- data/doc/SDM/RoleDeleteResponse.html +2 -2
- data/doc/SDM/RoleGetResponse.html +2 -2
- data/doc/SDM/RoleGrant.html +2 -2
- data/doc/SDM/RoleGrantCreateResponse.html +2 -2
- data/doc/SDM/RoleGrantDeleteResponse.html +2 -2
- data/doc/SDM/RoleGrantGetResponse.html +2 -2
- data/doc/SDM/RoleGrants.html +5 -5
- data/doc/SDM/RoleUpdateResponse.html +2 -2
- data/doc/SDM/Roles.html +6 -6
- data/doc/SDM/SQLServer.html +2 -2
- data/doc/SDM/SSH.html +2 -2
- data/doc/SDM/SSHCert.html +2 -2
- data/doc/SDM/SSHCustomerKey.html +409 -0
- data/doc/SDM/SecretStoreCreateResponse.html +2 -2
- data/doc/SDM/SecretStoreDeleteResponse.html +2 -2
- data/doc/SDM/SecretStoreGetResponse.html +2 -2
- data/doc/SDM/SecretStoreUpdateResponse.html +2 -2
- data/doc/SDM/SecretStores.html +6 -6
- data/doc/SDM/Service.html +2 -2
- data/doc/SDM/Snowflake.html +2 -2
- data/doc/SDM/Sybase.html +2 -2
- data/doc/SDM/SybaseIQ.html +2 -2
- data/doc/SDM/Tag.html +247 -0
- data/doc/SDM/Teradata.html +2 -2
- data/doc/SDM/User.html +2 -2
- data/doc/SDM/VaultTLSStore.html +2 -2
- data/doc/SDM/VaultTokenStore.html +2 -2
- data/doc/V1.html +150 -0
- data/doc/V1/BuildsPrivate.html +113 -0
- data/doc/V1/BuildsPrivate/Service.html +119 -0
- data/doc/V1/DemoProvisioningRequests.html +113 -0
- data/doc/V1/DemoProvisioningRequests/Service.html +119 -0
- data/doc/V1/Permissions/Service.html +119 -0
- data/doc/created.rid +51 -44
- data/doc/index.html +16 -0
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search_index.js +1 -1
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js.gz +0 -0
- data/doc/lib/version.html +1 -1
- data/doc/strongdm_gemspec.html +1 -1
- data/doc/table_of_contents.html +579 -409
- data/lib/grpc/control_panel_pb.rb +11 -0
- data/lib/grpc/control_panel_services_pb.rb +2 -0
- data/lib/grpc/drivers_pb.rb +36 -0
- data/lib/grpc/options_pb.rb +5 -1
- data/lib/grpc/plumbing.rb +347 -143
- data/lib/grpc/resources_pb.rb +12 -0
- data/lib/grpc/resources_services_pb.rb +2 -0
- data/lib/grpc/secret_store_types_pb.rb +60 -0
- data/lib/grpc/secret_stores_pb.rb +1 -33
- data/lib/grpc/spec_pb.rb +7 -0
- data/lib/grpc/tags_pb.rb +5 -0
- data/lib/models/porcelain.rb +396 -138
- data/lib/strongdm.rb +5 -2
- data/lib/svc.rb +67 -0
- data/lib/version +1 -1
- data/lib/version.rb +1 -1
- metadata +12 -8
- data/lib/grpc/access_rules_pb.rb +0 -115
- data/lib/grpc/access_rules_services_pb.rb +0 -50
- data/lib/grpc/audits_pb.rb +0 -40
- data/lib/grpc/audits_services_pb.rb +0 -37
- data/lib/grpc/secret_store_healths_pb.rb +0 -59
- data/lib/grpc/secret_store_healths_services_pb.rb +0 -39
@@ -29,10 +29,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
29
29
|
optional :public_key, :string, 2
|
30
30
|
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
31
31
|
end
|
32
|
+
add_message "v1.ControlPanelVerifyJWTRequest" do
|
33
|
+
optional :meta, :message, 1, "v1.GetRequestMetadata"
|
34
|
+
optional :token, :string, 2
|
35
|
+
end
|
36
|
+
add_message "v1.ControlPanelVerifyJWTResponse" do
|
37
|
+
optional :meta, :message, 1, "v1.GetResponseMetadata"
|
38
|
+
optional :valid, :bool, 2
|
39
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
40
|
+
end
|
32
41
|
end
|
33
42
|
end
|
34
43
|
|
35
44
|
module V1
|
36
45
|
ControlPanelGetSSHCAPublicKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ControlPanelGetSSHCAPublicKeyRequest").msgclass
|
37
46
|
ControlPanelGetSSHCAPublicKeyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ControlPanelGetSSHCAPublicKeyResponse").msgclass
|
47
|
+
ControlPanelVerifyJWTRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ControlPanelVerifyJWTRequest").msgclass
|
48
|
+
ControlPanelVerifyJWTResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ControlPanelVerifyJWTResponse").msgclass
|
38
49
|
end
|
@@ -30,6 +30,8 @@ module V1
|
|
30
30
|
|
31
31
|
# GetSSHCAPublicKey retrieves the SSH CA public key.
|
32
32
|
rpc :GetSSHCAPublicKey, ControlPanelGetSSHCAPublicKeyRequest, ControlPanelGetSSHCAPublicKeyResponse
|
33
|
+
# VerifyJWT reports whether the given JWT token (x-sdm-token) is valid.
|
34
|
+
rpc :VerifyJWT, ControlPanelVerifyJWTRequest, ControlPanelVerifyJWTResponse
|
33
35
|
end
|
34
36
|
|
35
37
|
Stub = Service.rpc_stub_class
|
data/lib/grpc/drivers_pb.rb
CHANGED
@@ -24,6 +24,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
24
24
|
add_message "v1.Resource" do
|
25
25
|
oneof :resource do
|
26
26
|
optional :athena, :message, 100, "v1.Athena"
|
27
|
+
optional :aws, :message, 2300, "v1.AWS"
|
27
28
|
optional :big_query, :message, 200, "v1.BigQuery"
|
28
29
|
optional :cassandra, :message, 300, "v1.Cassandra"
|
29
30
|
optional :db_2_i, :message, 2400, "v1.DB2I"
|
@@ -68,6 +69,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
68
69
|
optional :sql_server, :message, 1800, "v1.SQLServer"
|
69
70
|
optional :ssh, :message, 1900, "v1.SSH"
|
70
71
|
optional :ssh_cert, :message, 1901, "v1.SSHCert"
|
72
|
+
optional :ssh_customer_key, :message, 1902, "v1.SSHCustomerKey"
|
71
73
|
optional :sybase, :message, 2000, "v1.Sybase"
|
72
74
|
optional :sybase_iq, :message, 2001, "v1.SybaseIQ"
|
73
75
|
optional :teradata, :message, 2100, "v1.Teradata"
|
@@ -84,6 +86,20 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
84
86
|
optional :output, :string, 3
|
85
87
|
optional :port_override, :int32, 4
|
86
88
|
optional :region, :string, 5
|
89
|
+
optional :role_arn, :string, 6
|
90
|
+
optional :role_external_id, :string, 7
|
91
|
+
end
|
92
|
+
add_message "v1.AWS" do
|
93
|
+
optional :id, :string, 32768
|
94
|
+
optional :name, :string, 32769
|
95
|
+
optional :healthy, :bool, 32770
|
96
|
+
optional :tags, :message, 32771, "v1.Tags"
|
97
|
+
optional :secret_store_id, :string, 32772
|
98
|
+
optional :access_key, :string, 1
|
99
|
+
optional :secret_access_key, :string, 2
|
100
|
+
optional :healthcheck_region, :string, 4
|
101
|
+
optional :role_arn, :string, 5
|
102
|
+
optional :role_external_id, :string, 6
|
87
103
|
end
|
88
104
|
add_message "v1.BigQuery" do
|
89
105
|
optional :id, :string, 32768
|
@@ -159,6 +175,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
159
175
|
optional :region, :string, 3
|
160
176
|
optional :endpoint, :string, 4
|
161
177
|
optional :port_override, :int32, 5
|
178
|
+
optional :role_arn, :string, 6
|
179
|
+
optional :role_external_id, :string, 7
|
162
180
|
end
|
163
181
|
add_message "v1.AmazonES" do
|
164
182
|
optional :id, :string, 32768
|
@@ -171,6 +189,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
171
189
|
optional :endpoint, :string, 3
|
172
190
|
optional :access_key, :string, 4
|
173
191
|
optional :port_override, :int32, 5
|
192
|
+
optional :role_arn, :string, 6
|
193
|
+
optional :role_external_id, :string, 7
|
174
194
|
end
|
175
195
|
add_message "v1.Elastic" do
|
176
196
|
optional :id, :string, 32768
|
@@ -273,6 +293,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
273
293
|
optional :region, :string, 6
|
274
294
|
optional :cluster_name, :string, 7
|
275
295
|
optional :role_arn, :string, 8
|
296
|
+
optional :role_external_id, :string, 10
|
276
297
|
optional :healthcheck_namespace, :string, 9
|
277
298
|
end
|
278
299
|
add_message "v1.GoogleGKE" do
|
@@ -658,6 +679,19 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
658
679
|
optional :port_forwarding, :bool, 4
|
659
680
|
optional :allow_deprecated_key_exchanges, :bool, 5
|
660
681
|
end
|
682
|
+
add_message "v1.SSHCustomerKey" do
|
683
|
+
optional :id, :string, 32768
|
684
|
+
optional :name, :string, 32769
|
685
|
+
optional :healthy, :bool, 32770
|
686
|
+
optional :tags, :message, 32771, "v1.Tags"
|
687
|
+
optional :secret_store_id, :string, 32772
|
688
|
+
optional :hostname, :string, 1
|
689
|
+
optional :username, :string, 2
|
690
|
+
optional :port, :int32, 3
|
691
|
+
optional :private_key, :string, 4
|
692
|
+
optional :port_forwarding, :bool, 5
|
693
|
+
optional :allow_deprecated_key_exchanges, :bool, 6
|
694
|
+
end
|
661
695
|
add_message "v1.Sybase" do
|
662
696
|
optional :id, :string, 32768
|
663
697
|
optional :name, :string, 32769
|
@@ -700,6 +734,7 @@ end
|
|
700
734
|
module V1
|
701
735
|
Resource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Resource").msgclass
|
702
736
|
Athena = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Athena").msgclass
|
737
|
+
AWS = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AWS").msgclass
|
703
738
|
BigQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.BigQuery").msgclass
|
704
739
|
Cassandra = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Cassandra").msgclass
|
705
740
|
DB2I = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.DB2I").msgclass
|
@@ -744,6 +779,7 @@ module V1
|
|
744
779
|
SQLServer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.SQLServer").msgclass
|
745
780
|
SSH = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.SSH").msgclass
|
746
781
|
SSHCert = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.SSHCert").msgclass
|
782
|
+
SSHCustomerKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.SSHCustomerKey").msgclass
|
747
783
|
Sybase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Sybase").msgclass
|
748
784
|
SybaseIQ = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.SybaseIQ").msgclass
|
749
785
|
Teradata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Teradata").msgclass
|
data/lib/grpc/options_pb.rb
CHANGED
@@ -23,6 +23,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
23
23
|
optional :method, :string, 1941300
|
24
24
|
optional :url, :string, 1941301
|
25
25
|
end
|
26
|
+
add_message "v1.FileOptions" do
|
27
|
+
optional :private_sdk, :bool, 1941700
|
28
|
+
end
|
26
29
|
add_message "v1.FieldOptions" do
|
27
30
|
optional :name, :string, 1941300
|
28
31
|
optional :sql_nullable, :bool, 1941301
|
@@ -31,7 +34,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
31
34
|
optional :required, :bool, 1941304
|
32
35
|
optional :id_type, :string, 1941305
|
33
36
|
optional :sdk_only, :bool, 1941306
|
34
|
-
optional :
|
37
|
+
optional :terraform_computed, :string, 1941307
|
35
38
|
optional :force_new, :bool, 1941308
|
36
39
|
optional :write_only, :bool, 1941309
|
37
40
|
optional :sensitive, :bool, 1941310
|
@@ -80,6 +83,7 @@ end
|
|
80
83
|
|
81
84
|
module V1
|
82
85
|
MethodOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.MethodOptions").msgclass
|
86
|
+
FileOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.FileOptions").msgclass
|
83
87
|
FieldOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.FieldOptions").msgclass
|
84
88
|
MessageOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.MessageOptions").msgclass
|
85
89
|
CustomPorcelainMessageOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.CustomPorcelainMessageOptions").msgclass
|
data/lib/grpc/plumbing.rb
CHANGED
@@ -21,11 +21,9 @@ require "json"
|
|
21
21
|
require_relative "./options_pb"
|
22
22
|
require_relative "./spec_pb"
|
23
23
|
require_relative "./tags_pb"
|
24
|
-
require_relative "./access_rules_pb"
|
25
24
|
require_relative "./account_attachments_pb"
|
26
25
|
require_relative "./account_grants_pb"
|
27
26
|
require_relative "./accounts_pb"
|
28
|
-
require_relative "./audits_pb"
|
29
27
|
require_relative "./control_panel_pb"
|
30
28
|
require_relative "./drivers_pb"
|
31
29
|
require_relative "./nodes_pb"
|
@@ -33,7 +31,7 @@ require_relative "./resources_pb"
|
|
33
31
|
require_relative "./role_attachments_pb"
|
34
32
|
require_relative "./role_grants_pb"
|
35
33
|
require_relative "./roles_pb"
|
36
|
-
require_relative "./
|
34
|
+
require_relative "./secret_store_types_pb"
|
37
35
|
require_relative "./secret_stores_pb"
|
38
36
|
require_relative "../models/porcelain"
|
39
37
|
require_relative "../errors/errors"
|
@@ -263,6 +261,42 @@ module SDM
|
|
263
261
|
end
|
264
262
|
items
|
265
263
|
end
|
264
|
+
def self.convert_tag_to_porcelain(plumbing)
|
265
|
+
if plumbing == nil
|
266
|
+
return nil
|
267
|
+
end
|
268
|
+
porcelain = Tag.new()
|
269
|
+
porcelain.name = (plumbing.name)
|
270
|
+
porcelain.value = (plumbing.value)
|
271
|
+
porcelain
|
272
|
+
end
|
273
|
+
|
274
|
+
def self.convert_tag_to_plumbing(porcelain)
|
275
|
+
if porcelain == nil
|
276
|
+
return nil
|
277
|
+
end
|
278
|
+
plumbing = V1::Tag.new()
|
279
|
+
plumbing.name = (porcelain.name) unless porcelain.name == nil
|
280
|
+
plumbing.value = (porcelain.value) unless porcelain.value == nil
|
281
|
+
plumbing
|
282
|
+
end
|
283
|
+
def self.convert_repeated_tag_to_plumbing(porcelains)
|
284
|
+
items = Array.new
|
285
|
+
porcelains.each do |porcelain|
|
286
|
+
plumbing = convert_tag_to_plumbing(porcelain)
|
287
|
+
items.append(plumbing)
|
288
|
+
end
|
289
|
+
items
|
290
|
+
end
|
291
|
+
|
292
|
+
def self.convert_repeated_tag_to_porcelain(plumbings)
|
293
|
+
items = Array.new
|
294
|
+
plumbings.each do |plumbing|
|
295
|
+
porcelain = convert_tag_to_porcelain(plumbing)
|
296
|
+
items.append(porcelain)
|
297
|
+
end
|
298
|
+
items
|
299
|
+
end
|
266
300
|
def self.convert_account_attachment_create_response_to_porcelain(plumbing)
|
267
301
|
if plumbing == nil
|
268
302
|
return nil
|
@@ -883,6 +917,44 @@ module SDM
|
|
883
917
|
end
|
884
918
|
items
|
885
919
|
end
|
920
|
+
def self.convert_control_panel_verify_jwt_response_to_porcelain(plumbing)
|
921
|
+
if plumbing == nil
|
922
|
+
return nil
|
923
|
+
end
|
924
|
+
porcelain = ControlPanelVerifyJWTResponse.new()
|
925
|
+
porcelain.meta = convert_get_response_metadata_to_porcelain(plumbing.meta)
|
926
|
+
porcelain.valid = (plumbing.valid)
|
927
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
928
|
+
porcelain
|
929
|
+
end
|
930
|
+
|
931
|
+
def self.convert_control_panel_verify_jwt_response_to_plumbing(porcelain)
|
932
|
+
if porcelain == nil
|
933
|
+
return nil
|
934
|
+
end
|
935
|
+
plumbing = V1::ControlPanelVerifyJWTResponse.new()
|
936
|
+
plumbing.meta = convert_get_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
937
|
+
plumbing.valid = (porcelain.valid) unless porcelain.valid == nil
|
938
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
939
|
+
plumbing
|
940
|
+
end
|
941
|
+
def self.convert_repeated_control_panel_verify_jwt_response_to_plumbing(porcelains)
|
942
|
+
items = Array.new
|
943
|
+
porcelains.each do |porcelain|
|
944
|
+
plumbing = convert_control_panel_verify_jwt_response_to_plumbing(porcelain)
|
945
|
+
items.append(plumbing)
|
946
|
+
end
|
947
|
+
items
|
948
|
+
end
|
949
|
+
|
950
|
+
def self.convert_repeated_control_panel_verify_jwt_response_to_porcelain(plumbings)
|
951
|
+
items = Array.new
|
952
|
+
plumbings.each do |plumbing|
|
953
|
+
porcelain = convert_control_panel_verify_jwt_response_to_porcelain(plumbing)
|
954
|
+
items.append(porcelain)
|
955
|
+
end
|
956
|
+
items
|
957
|
+
end
|
886
958
|
def self.convert_resource_to_plumbing(porcelain)
|
887
959
|
if porcelain == nil
|
888
960
|
return nil
|
@@ -891,6 +963,9 @@ module SDM
|
|
891
963
|
if porcelain.instance_of? Athena
|
892
964
|
plumbing.athena = convert_athena_to_plumbing(porcelain)
|
893
965
|
end
|
966
|
+
if porcelain.instance_of? AWS
|
967
|
+
plumbing.aws = convert_aws_to_plumbing(porcelain)
|
968
|
+
end
|
894
969
|
if porcelain.instance_of? BigQuery
|
895
970
|
plumbing.big_query = convert_big_query_to_plumbing(porcelain)
|
896
971
|
end
|
@@ -1023,6 +1098,9 @@ module SDM
|
|
1023
1098
|
if porcelain.instance_of? SSHCert
|
1024
1099
|
plumbing.ssh_cert = convert_ssh_cert_to_plumbing(porcelain)
|
1025
1100
|
end
|
1101
|
+
if porcelain.instance_of? SSHCustomerKey
|
1102
|
+
plumbing.ssh_customer_key = convert_ssh_customer_key_to_plumbing(porcelain)
|
1103
|
+
end
|
1026
1104
|
if porcelain.instance_of? Sybase
|
1027
1105
|
plumbing.sybase = convert_sybase_to_plumbing(porcelain)
|
1028
1106
|
end
|
@@ -1042,6 +1120,9 @@ module SDM
|
|
1042
1120
|
if plumbing.athena != nil
|
1043
1121
|
return convert_athena_to_porcelain(plumbing.athena)
|
1044
1122
|
end
|
1123
|
+
if plumbing.aws != nil
|
1124
|
+
return convert_aws_to_porcelain(plumbing.aws)
|
1125
|
+
end
|
1045
1126
|
if plumbing.big_query != nil
|
1046
1127
|
return convert_big_query_to_porcelain(plumbing.big_query)
|
1047
1128
|
end
|
@@ -1174,6 +1255,9 @@ module SDM
|
|
1174
1255
|
if plumbing.ssh_cert != nil
|
1175
1256
|
return convert_ssh_cert_to_porcelain(plumbing.ssh_cert)
|
1176
1257
|
end
|
1258
|
+
if plumbing.ssh_customer_key != nil
|
1259
|
+
return convert_ssh_customer_key_to_porcelain(plumbing.ssh_customer_key)
|
1260
|
+
end
|
1177
1261
|
if plumbing.sybase != nil
|
1178
1262
|
return convert_sybase_to_porcelain(plumbing.sybase)
|
1179
1263
|
end
|
@@ -1216,6 +1300,8 @@ module SDM
|
|
1216
1300
|
porcelain.output = (plumbing.output)
|
1217
1301
|
porcelain.port_override = (plumbing.port_override)
|
1218
1302
|
porcelain.region = (plumbing.region)
|
1303
|
+
porcelain.role_arn = (plumbing.role_arn)
|
1304
|
+
porcelain.role_external_id = (plumbing.role_external_id)
|
1219
1305
|
porcelain
|
1220
1306
|
end
|
1221
1307
|
|
@@ -1234,6 +1320,8 @@ module SDM
|
|
1234
1320
|
plumbing.output = (porcelain.output) unless porcelain.output == nil
|
1235
1321
|
plumbing.port_override = (porcelain.port_override) unless porcelain.port_override == nil
|
1236
1322
|
plumbing.region = (porcelain.region) unless porcelain.region == nil
|
1323
|
+
plumbing.role_arn = (porcelain.role_arn) unless porcelain.role_arn == nil
|
1324
|
+
plumbing.role_external_id = (porcelain.role_external_id) unless porcelain.role_external_id == nil
|
1237
1325
|
plumbing
|
1238
1326
|
end
|
1239
1327
|
def self.convert_repeated_athena_to_plumbing(porcelains)
|
@@ -1253,6 +1341,58 @@ module SDM
|
|
1253
1341
|
end
|
1254
1342
|
items
|
1255
1343
|
end
|
1344
|
+
def self.convert_aws_to_porcelain(plumbing)
|
1345
|
+
if plumbing == nil
|
1346
|
+
return nil
|
1347
|
+
end
|
1348
|
+
porcelain = AWS.new()
|
1349
|
+
porcelain.id = (plumbing.id)
|
1350
|
+
porcelain.name = (plumbing.name)
|
1351
|
+
porcelain.healthy = (plumbing.healthy)
|
1352
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
1353
|
+
porcelain.secret_store_id = (plumbing.secret_store_id)
|
1354
|
+
porcelain.access_key = (plumbing.access_key)
|
1355
|
+
porcelain.secret_access_key = (plumbing.secret_access_key)
|
1356
|
+
porcelain.healthcheck_region = (plumbing.healthcheck_region)
|
1357
|
+
porcelain.role_arn = (plumbing.role_arn)
|
1358
|
+
porcelain.role_external_id = (plumbing.role_external_id)
|
1359
|
+
porcelain
|
1360
|
+
end
|
1361
|
+
|
1362
|
+
def self.convert_aws_to_plumbing(porcelain)
|
1363
|
+
if porcelain == nil
|
1364
|
+
return nil
|
1365
|
+
end
|
1366
|
+
plumbing = V1::AWS.new()
|
1367
|
+
plumbing.id = (porcelain.id) unless porcelain.id == nil
|
1368
|
+
plumbing.name = (porcelain.name) unless porcelain.name == nil
|
1369
|
+
plumbing.healthy = (porcelain.healthy) unless porcelain.healthy == nil
|
1370
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
1371
|
+
plumbing.secret_store_id = (porcelain.secret_store_id) unless porcelain.secret_store_id == nil
|
1372
|
+
plumbing.access_key = (porcelain.access_key) unless porcelain.access_key == nil
|
1373
|
+
plumbing.secret_access_key = (porcelain.secret_access_key) unless porcelain.secret_access_key == nil
|
1374
|
+
plumbing.healthcheck_region = (porcelain.healthcheck_region) unless porcelain.healthcheck_region == nil
|
1375
|
+
plumbing.role_arn = (porcelain.role_arn) unless porcelain.role_arn == nil
|
1376
|
+
plumbing.role_external_id = (porcelain.role_external_id) unless porcelain.role_external_id == nil
|
1377
|
+
plumbing
|
1378
|
+
end
|
1379
|
+
def self.convert_repeated_aws_to_plumbing(porcelains)
|
1380
|
+
items = Array.new
|
1381
|
+
porcelains.each do |porcelain|
|
1382
|
+
plumbing = convert_aws_to_plumbing(porcelain)
|
1383
|
+
items.append(plumbing)
|
1384
|
+
end
|
1385
|
+
items
|
1386
|
+
end
|
1387
|
+
|
1388
|
+
def self.convert_repeated_aws_to_porcelain(plumbings)
|
1389
|
+
items = Array.new
|
1390
|
+
plumbings.each do |plumbing|
|
1391
|
+
porcelain = convert_aws_to_porcelain(plumbing)
|
1392
|
+
items.append(porcelain)
|
1393
|
+
end
|
1394
|
+
items
|
1395
|
+
end
|
1256
1396
|
def self.convert_big_query_to_porcelain(plumbing)
|
1257
1397
|
if plumbing == nil
|
1258
1398
|
return nil
|
@@ -1534,6 +1674,8 @@ module SDM
|
|
1534
1674
|
porcelain.region = (plumbing.region)
|
1535
1675
|
porcelain.endpoint = (plumbing.endpoint)
|
1536
1676
|
porcelain.port_override = (plumbing.port_override)
|
1677
|
+
porcelain.role_arn = (plumbing.role_arn)
|
1678
|
+
porcelain.role_external_id = (plumbing.role_external_id)
|
1537
1679
|
porcelain
|
1538
1680
|
end
|
1539
1681
|
|
@@ -1552,6 +1694,8 @@ module SDM
|
|
1552
1694
|
plumbing.region = (porcelain.region) unless porcelain.region == nil
|
1553
1695
|
plumbing.endpoint = (porcelain.endpoint) unless porcelain.endpoint == nil
|
1554
1696
|
plumbing.port_override = (porcelain.port_override) unless porcelain.port_override == nil
|
1697
|
+
plumbing.role_arn = (porcelain.role_arn) unless porcelain.role_arn == nil
|
1698
|
+
plumbing.role_external_id = (porcelain.role_external_id) unless porcelain.role_external_id == nil
|
1555
1699
|
plumbing
|
1556
1700
|
end
|
1557
1701
|
def self.convert_repeated_dynamo_db_to_plumbing(porcelains)
|
@@ -1586,6 +1730,8 @@ module SDM
|
|
1586
1730
|
porcelain.endpoint = (plumbing.endpoint)
|
1587
1731
|
porcelain.access_key = (plumbing.access_key)
|
1588
1732
|
porcelain.port_override = (plumbing.port_override)
|
1733
|
+
porcelain.role_arn = (plumbing.role_arn)
|
1734
|
+
porcelain.role_external_id = (plumbing.role_external_id)
|
1589
1735
|
porcelain
|
1590
1736
|
end
|
1591
1737
|
|
@@ -1604,6 +1750,8 @@ module SDM
|
|
1604
1750
|
plumbing.endpoint = (porcelain.endpoint) unless porcelain.endpoint == nil
|
1605
1751
|
plumbing.access_key = (porcelain.access_key) unless porcelain.access_key == nil
|
1606
1752
|
plumbing.port_override = (porcelain.port_override) unless porcelain.port_override == nil
|
1753
|
+
plumbing.role_arn = (porcelain.role_arn) unless porcelain.role_arn == nil
|
1754
|
+
plumbing.role_external_id = (porcelain.role_external_id) unless porcelain.role_external_id == nil
|
1607
1755
|
plumbing
|
1608
1756
|
end
|
1609
1757
|
def self.convert_repeated_amazon_es_to_plumbing(porcelains)
|
@@ -2012,6 +2160,7 @@ module SDM
|
|
2012
2160
|
porcelain.region = (plumbing.region)
|
2013
2161
|
porcelain.cluster_name = (plumbing.cluster_name)
|
2014
2162
|
porcelain.role_arn = (plumbing.role_arn)
|
2163
|
+
porcelain.role_external_id = (plumbing.role_external_id)
|
2015
2164
|
porcelain.healthcheck_namespace = (plumbing.healthcheck_namespace)
|
2016
2165
|
porcelain
|
2017
2166
|
end
|
@@ -2033,6 +2182,7 @@ module SDM
|
|
2033
2182
|
plumbing.region = (porcelain.region) unless porcelain.region == nil
|
2034
2183
|
plumbing.cluster_name = (porcelain.cluster_name) unless porcelain.cluster_name == nil
|
2035
2184
|
plumbing.role_arn = (porcelain.role_arn) unless porcelain.role_arn == nil
|
2185
|
+
plumbing.role_external_id = (porcelain.role_external_id) unless porcelain.role_external_id == nil
|
2036
2186
|
plumbing.healthcheck_namespace = (porcelain.healthcheck_namespace) unless porcelain.healthcheck_namespace == nil
|
2037
2187
|
plumbing
|
2038
2188
|
end
|
@@ -3631,6 +3781,60 @@ module SDM
|
|
3631
3781
|
end
|
3632
3782
|
items
|
3633
3783
|
end
|
3784
|
+
def self.convert_ssh_customer_key_to_porcelain(plumbing)
|
3785
|
+
if plumbing == nil
|
3786
|
+
return nil
|
3787
|
+
end
|
3788
|
+
porcelain = SSHCustomerKey.new()
|
3789
|
+
porcelain.id = (plumbing.id)
|
3790
|
+
porcelain.name = (plumbing.name)
|
3791
|
+
porcelain.healthy = (plumbing.healthy)
|
3792
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
3793
|
+
porcelain.secret_store_id = (plumbing.secret_store_id)
|
3794
|
+
porcelain.hostname = (plumbing.hostname)
|
3795
|
+
porcelain.username = (plumbing.username)
|
3796
|
+
porcelain.port = (plumbing.port)
|
3797
|
+
porcelain.private_key = (plumbing.private_key)
|
3798
|
+
porcelain.port_forwarding = (plumbing.port_forwarding)
|
3799
|
+
porcelain.allow_deprecated_key_exchanges = (plumbing.allow_deprecated_key_exchanges)
|
3800
|
+
porcelain
|
3801
|
+
end
|
3802
|
+
|
3803
|
+
def self.convert_ssh_customer_key_to_plumbing(porcelain)
|
3804
|
+
if porcelain == nil
|
3805
|
+
return nil
|
3806
|
+
end
|
3807
|
+
plumbing = V1::SSHCustomerKey.new()
|
3808
|
+
plumbing.id = (porcelain.id) unless porcelain.id == nil
|
3809
|
+
plumbing.name = (porcelain.name) unless porcelain.name == nil
|
3810
|
+
plumbing.healthy = (porcelain.healthy) unless porcelain.healthy == nil
|
3811
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
3812
|
+
plumbing.secret_store_id = (porcelain.secret_store_id) unless porcelain.secret_store_id == nil
|
3813
|
+
plumbing.hostname = (porcelain.hostname) unless porcelain.hostname == nil
|
3814
|
+
plumbing.username = (porcelain.username) unless porcelain.username == nil
|
3815
|
+
plumbing.port = (porcelain.port) unless porcelain.port == nil
|
3816
|
+
plumbing.private_key = (porcelain.private_key) unless porcelain.private_key == nil
|
3817
|
+
plumbing.port_forwarding = (porcelain.port_forwarding) unless porcelain.port_forwarding == nil
|
3818
|
+
plumbing.allow_deprecated_key_exchanges = (porcelain.allow_deprecated_key_exchanges) unless porcelain.allow_deprecated_key_exchanges == nil
|
3819
|
+
plumbing
|
3820
|
+
end
|
3821
|
+
def self.convert_repeated_ssh_customer_key_to_plumbing(porcelains)
|
3822
|
+
items = Array.new
|
3823
|
+
porcelains.each do |porcelain|
|
3824
|
+
plumbing = convert_ssh_customer_key_to_plumbing(porcelain)
|
3825
|
+
items.append(plumbing)
|
3826
|
+
end
|
3827
|
+
items
|
3828
|
+
end
|
3829
|
+
|
3830
|
+
def self.convert_repeated_ssh_customer_key_to_porcelain(plumbings)
|
3831
|
+
items = Array.new
|
3832
|
+
plumbings.each do |plumbing|
|
3833
|
+
porcelain = convert_ssh_customer_key_to_porcelain(plumbing)
|
3834
|
+
items.append(porcelain)
|
3835
|
+
end
|
3836
|
+
items
|
3837
|
+
end
|
3634
3838
|
def self.convert_sybase_to_porcelain(plumbing)
|
3635
3839
|
if plumbing == nil
|
3636
3840
|
return nil
|
@@ -4705,326 +4909,326 @@ module SDM
|
|
4705
4909
|
end
|
4706
4910
|
items
|
4707
4911
|
end
|
4708
|
-
def self.
|
4709
|
-
if
|
4912
|
+
def self.convert_secret_store_to_plumbing(porcelain)
|
4913
|
+
if porcelain == nil
|
4710
4914
|
return nil
|
4711
4915
|
end
|
4712
|
-
|
4713
|
-
porcelain.
|
4714
|
-
|
4715
|
-
|
4716
|
-
porcelain
|
4916
|
+
plumbing = V1::SecretStore.new()
|
4917
|
+
if porcelain.instance_of? AWSStore
|
4918
|
+
plumbing.aws = convert_aws_store_to_plumbing(porcelain)
|
4919
|
+
end
|
4920
|
+
if porcelain.instance_of? VaultTLSStore
|
4921
|
+
plumbing.vault_tls = convert_vault_tls_store_to_plumbing(porcelain)
|
4922
|
+
end
|
4923
|
+
if porcelain.instance_of? VaultTokenStore
|
4924
|
+
plumbing.vault_token = convert_vault_token_store_to_plumbing(porcelain)
|
4925
|
+
end
|
4926
|
+
plumbing
|
4717
4927
|
end
|
4718
4928
|
|
4719
|
-
def self.
|
4720
|
-
if
|
4929
|
+
def self.convert_secret_store_to_porcelain(plumbing)
|
4930
|
+
if plumbing == nil
|
4721
4931
|
return nil
|
4722
4932
|
end
|
4723
|
-
plumbing
|
4724
|
-
|
4725
|
-
|
4726
|
-
plumbing.
|
4727
|
-
|
4933
|
+
if plumbing.aws != nil
|
4934
|
+
return convert_aws_store_to_porcelain(plumbing.aws)
|
4935
|
+
end
|
4936
|
+
if plumbing.vault_tls != nil
|
4937
|
+
return convert_vault_tls_store_to_porcelain(plumbing.vault_tls)
|
4938
|
+
end
|
4939
|
+
if plumbing.vault_token != nil
|
4940
|
+
return convert_vault_token_store_to_porcelain(plumbing.vault_token)
|
4941
|
+
end
|
4728
4942
|
end
|
4729
|
-
def self.
|
4943
|
+
def self.convert_repeated_secret_store_to_plumbing(porcelains)
|
4730
4944
|
items = Array.new
|
4731
4945
|
porcelains.each do |porcelain|
|
4732
|
-
plumbing =
|
4946
|
+
plumbing = convert_secret_store_to_plumbing(porcelain)
|
4733
4947
|
items.append(plumbing)
|
4734
4948
|
end
|
4735
4949
|
items
|
4736
4950
|
end
|
4737
4951
|
|
4738
|
-
def self.
|
4952
|
+
def self.convert_repeated_secret_store_to_porcelain(plumbings)
|
4739
4953
|
items = Array.new
|
4740
4954
|
plumbings.each do |plumbing|
|
4741
|
-
porcelain =
|
4955
|
+
porcelain = convert_secret_store_to_porcelain(plumbing)
|
4742
4956
|
items.append(porcelain)
|
4743
4957
|
end
|
4744
4958
|
items
|
4745
4959
|
end
|
4746
|
-
def self.
|
4960
|
+
def self.convert_aws_store_to_porcelain(plumbing)
|
4747
4961
|
if plumbing == nil
|
4748
4962
|
return nil
|
4749
4963
|
end
|
4750
|
-
porcelain =
|
4751
|
-
porcelain.
|
4752
|
-
porcelain.
|
4753
|
-
porcelain.
|
4964
|
+
porcelain = AWSStore.new()
|
4965
|
+
porcelain.id = (plumbing.id)
|
4966
|
+
porcelain.name = (plumbing.name)
|
4967
|
+
porcelain.region = (plumbing.region)
|
4968
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
4754
4969
|
porcelain
|
4755
4970
|
end
|
4756
4971
|
|
4757
|
-
def self.
|
4972
|
+
def self.convert_aws_store_to_plumbing(porcelain)
|
4758
4973
|
if porcelain == nil
|
4759
4974
|
return nil
|
4760
4975
|
end
|
4761
|
-
plumbing = V1::
|
4762
|
-
plumbing.
|
4763
|
-
plumbing.
|
4764
|
-
plumbing.
|
4976
|
+
plumbing = V1::AWSStore.new()
|
4977
|
+
plumbing.id = (porcelain.id) unless porcelain.id == nil
|
4978
|
+
plumbing.name = (porcelain.name) unless porcelain.name == nil
|
4979
|
+
plumbing.region = (porcelain.region) unless porcelain.region == nil
|
4980
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
4765
4981
|
plumbing
|
4766
4982
|
end
|
4767
|
-
def self.
|
4983
|
+
def self.convert_repeated_aws_store_to_plumbing(porcelains)
|
4768
4984
|
items = Array.new
|
4769
4985
|
porcelains.each do |porcelain|
|
4770
|
-
plumbing =
|
4986
|
+
plumbing = convert_aws_store_to_plumbing(porcelain)
|
4771
4987
|
items.append(plumbing)
|
4772
4988
|
end
|
4773
4989
|
items
|
4774
4990
|
end
|
4775
4991
|
|
4776
|
-
def self.
|
4992
|
+
def self.convert_repeated_aws_store_to_porcelain(plumbings)
|
4777
4993
|
items = Array.new
|
4778
4994
|
plumbings.each do |plumbing|
|
4779
|
-
porcelain =
|
4995
|
+
porcelain = convert_aws_store_to_porcelain(plumbing)
|
4780
4996
|
items.append(porcelain)
|
4781
4997
|
end
|
4782
4998
|
items
|
4783
4999
|
end
|
4784
|
-
def self.
|
5000
|
+
def self.convert_vault_tls_store_to_porcelain(plumbing)
|
4785
5001
|
if plumbing == nil
|
4786
5002
|
return nil
|
4787
5003
|
end
|
4788
|
-
porcelain =
|
4789
|
-
porcelain.
|
4790
|
-
porcelain.
|
4791
|
-
porcelain.
|
5004
|
+
porcelain = VaultTLSStore.new()
|
5005
|
+
porcelain.id = (plumbing.id)
|
5006
|
+
porcelain.name = (plumbing.name)
|
5007
|
+
porcelain.server_address = (plumbing.server_address)
|
5008
|
+
porcelain.ca_cert_path = (plumbing.CA_cert_path)
|
5009
|
+
porcelain.client_cert_path = (plumbing.client_cert_path)
|
5010
|
+
porcelain.client_key_path = (plumbing.client_key_path)
|
5011
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
4792
5012
|
porcelain
|
4793
5013
|
end
|
4794
5014
|
|
4795
|
-
def self.
|
5015
|
+
def self.convert_vault_tls_store_to_plumbing(porcelain)
|
4796
5016
|
if porcelain == nil
|
4797
5017
|
return nil
|
4798
5018
|
end
|
4799
|
-
plumbing = V1::
|
4800
|
-
plumbing.
|
4801
|
-
plumbing.
|
4802
|
-
plumbing.
|
5019
|
+
plumbing = V1::VaultTLSStore.new()
|
5020
|
+
plumbing.id = (porcelain.id) unless porcelain.id == nil
|
5021
|
+
plumbing.name = (porcelain.name) unless porcelain.name == nil
|
5022
|
+
plumbing.server_address = (porcelain.server_address) unless porcelain.server_address == nil
|
5023
|
+
plumbing.CA_cert_path = (porcelain.ca_cert_path) unless porcelain.ca_cert_path == nil
|
5024
|
+
plumbing.client_cert_path = (porcelain.client_cert_path) unless porcelain.client_cert_path == nil
|
5025
|
+
plumbing.client_key_path = (porcelain.client_key_path) unless porcelain.client_key_path == nil
|
5026
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
4803
5027
|
plumbing
|
4804
5028
|
end
|
4805
|
-
def self.
|
5029
|
+
def self.convert_repeated_vault_tls_store_to_plumbing(porcelains)
|
4806
5030
|
items = Array.new
|
4807
5031
|
porcelains.each do |porcelain|
|
4808
|
-
plumbing =
|
5032
|
+
plumbing = convert_vault_tls_store_to_plumbing(porcelain)
|
4809
5033
|
items.append(plumbing)
|
4810
5034
|
end
|
4811
5035
|
items
|
4812
5036
|
end
|
4813
5037
|
|
4814
|
-
def self.
|
5038
|
+
def self.convert_repeated_vault_tls_store_to_porcelain(plumbings)
|
4815
5039
|
items = Array.new
|
4816
5040
|
plumbings.each do |plumbing|
|
4817
|
-
porcelain =
|
5041
|
+
porcelain = convert_vault_tls_store_to_porcelain(plumbing)
|
4818
5042
|
items.append(porcelain)
|
4819
5043
|
end
|
4820
5044
|
items
|
4821
5045
|
end
|
4822
|
-
def self.
|
5046
|
+
def self.convert_vault_token_store_to_porcelain(plumbing)
|
4823
5047
|
if plumbing == nil
|
4824
5048
|
return nil
|
4825
5049
|
end
|
4826
|
-
porcelain =
|
4827
|
-
porcelain.
|
4828
|
-
porcelain.
|
5050
|
+
porcelain = VaultTokenStore.new()
|
5051
|
+
porcelain.id = (plumbing.id)
|
5052
|
+
porcelain.name = (plumbing.name)
|
5053
|
+
porcelain.server_address = (plumbing.server_address)
|
5054
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
4829
5055
|
porcelain
|
4830
5056
|
end
|
4831
5057
|
|
4832
|
-
def self.
|
5058
|
+
def self.convert_vault_token_store_to_plumbing(porcelain)
|
4833
5059
|
if porcelain == nil
|
4834
5060
|
return nil
|
4835
5061
|
end
|
4836
|
-
plumbing = V1::
|
4837
|
-
plumbing.
|
4838
|
-
plumbing.
|
5062
|
+
plumbing = V1::VaultTokenStore.new()
|
5063
|
+
plumbing.id = (porcelain.id) unless porcelain.id == nil
|
5064
|
+
plumbing.name = (porcelain.name) unless porcelain.name == nil
|
5065
|
+
plumbing.server_address = (porcelain.server_address) unless porcelain.server_address == nil
|
5066
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
4839
5067
|
plumbing
|
4840
5068
|
end
|
4841
|
-
def self.
|
5069
|
+
def self.convert_repeated_vault_token_store_to_plumbing(porcelains)
|
4842
5070
|
items = Array.new
|
4843
5071
|
porcelains.each do |porcelain|
|
4844
|
-
plumbing =
|
5072
|
+
plumbing = convert_vault_token_store_to_plumbing(porcelain)
|
4845
5073
|
items.append(plumbing)
|
4846
5074
|
end
|
4847
5075
|
items
|
4848
5076
|
end
|
4849
5077
|
|
4850
|
-
def self.
|
5078
|
+
def self.convert_repeated_vault_token_store_to_porcelain(plumbings)
|
4851
5079
|
items = Array.new
|
4852
5080
|
plumbings.each do |plumbing|
|
4853
|
-
porcelain =
|
5081
|
+
porcelain = convert_vault_token_store_to_porcelain(plumbing)
|
4854
5082
|
items.append(porcelain)
|
4855
5083
|
end
|
4856
5084
|
items
|
4857
5085
|
end
|
4858
|
-
def self.
|
4859
|
-
if
|
5086
|
+
def self.convert_secret_store_create_response_to_porcelain(plumbing)
|
5087
|
+
if plumbing == nil
|
4860
5088
|
return nil
|
4861
5089
|
end
|
4862
|
-
|
4863
|
-
|
4864
|
-
|
4865
|
-
|
4866
|
-
|
4867
|
-
plumbing.vault_token = convert_vault_token_store_to_plumbing(porcelain)
|
4868
|
-
end
|
4869
|
-
if porcelain.instance_of? AWSStore
|
4870
|
-
plumbing.aws = convert_aws_store_to_plumbing(porcelain)
|
4871
|
-
end
|
4872
|
-
plumbing
|
5090
|
+
porcelain = SecretStoreCreateResponse.new()
|
5091
|
+
porcelain.meta = convert_create_response_metadata_to_porcelain(plumbing.meta)
|
5092
|
+
porcelain.secret_store = convert_secret_store_to_porcelain(plumbing.secret_store)
|
5093
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
5094
|
+
porcelain
|
4873
5095
|
end
|
4874
5096
|
|
4875
|
-
def self.
|
4876
|
-
if
|
5097
|
+
def self.convert_secret_store_create_response_to_plumbing(porcelain)
|
5098
|
+
if porcelain == nil
|
4877
5099
|
return nil
|
4878
5100
|
end
|
4879
|
-
|
4880
|
-
|
4881
|
-
|
4882
|
-
|
4883
|
-
|
4884
|
-
end
|
4885
|
-
if plumbing.aws != nil
|
4886
|
-
return convert_aws_store_to_porcelain(plumbing.aws)
|
4887
|
-
end
|
5101
|
+
plumbing = V1::SecretStoreCreateResponse.new()
|
5102
|
+
plumbing.meta = convert_create_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
5103
|
+
plumbing.secret_store = convert_secret_store_to_plumbing(porcelain.secret_store) unless porcelain.secret_store == nil
|
5104
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
5105
|
+
plumbing
|
4888
5106
|
end
|
4889
|
-
def self.
|
5107
|
+
def self.convert_repeated_secret_store_create_response_to_plumbing(porcelains)
|
4890
5108
|
items = Array.new
|
4891
5109
|
porcelains.each do |porcelain|
|
4892
|
-
plumbing =
|
5110
|
+
plumbing = convert_secret_store_create_response_to_plumbing(porcelain)
|
4893
5111
|
items.append(plumbing)
|
4894
5112
|
end
|
4895
5113
|
items
|
4896
5114
|
end
|
4897
5115
|
|
4898
|
-
def self.
|
5116
|
+
def self.convert_repeated_secret_store_create_response_to_porcelain(plumbings)
|
4899
5117
|
items = Array.new
|
4900
5118
|
plumbings.each do |plumbing|
|
4901
|
-
porcelain =
|
5119
|
+
porcelain = convert_secret_store_create_response_to_porcelain(plumbing)
|
4902
5120
|
items.append(porcelain)
|
4903
5121
|
end
|
4904
5122
|
items
|
4905
5123
|
end
|
4906
|
-
def self.
|
5124
|
+
def self.convert_secret_store_get_response_to_porcelain(plumbing)
|
4907
5125
|
if plumbing == nil
|
4908
5126
|
return nil
|
4909
5127
|
end
|
4910
|
-
porcelain =
|
4911
|
-
porcelain.
|
4912
|
-
porcelain.
|
4913
|
-
porcelain.
|
4914
|
-
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
5128
|
+
porcelain = SecretStoreGetResponse.new()
|
5129
|
+
porcelain.meta = convert_get_response_metadata_to_porcelain(plumbing.meta)
|
5130
|
+
porcelain.secret_store = convert_secret_store_to_porcelain(plumbing.secret_store)
|
5131
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
4915
5132
|
porcelain
|
4916
5133
|
end
|
4917
5134
|
|
4918
|
-
def self.
|
5135
|
+
def self.convert_secret_store_get_response_to_plumbing(porcelain)
|
4919
5136
|
if porcelain == nil
|
4920
5137
|
return nil
|
4921
5138
|
end
|
4922
|
-
plumbing = V1::
|
4923
|
-
plumbing.
|
4924
|
-
plumbing.
|
4925
|
-
plumbing.
|
4926
|
-
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
5139
|
+
plumbing = V1::SecretStoreGetResponse.new()
|
5140
|
+
plumbing.meta = convert_get_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
5141
|
+
plumbing.secret_store = convert_secret_store_to_plumbing(porcelain.secret_store) unless porcelain.secret_store == nil
|
5142
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
4927
5143
|
plumbing
|
4928
5144
|
end
|
4929
|
-
def self.
|
5145
|
+
def self.convert_repeated_secret_store_get_response_to_plumbing(porcelains)
|
4930
5146
|
items = Array.new
|
4931
5147
|
porcelains.each do |porcelain|
|
4932
|
-
plumbing =
|
5148
|
+
plumbing = convert_secret_store_get_response_to_plumbing(porcelain)
|
4933
5149
|
items.append(plumbing)
|
4934
5150
|
end
|
4935
5151
|
items
|
4936
5152
|
end
|
4937
5153
|
|
4938
|
-
def self.
|
5154
|
+
def self.convert_repeated_secret_store_get_response_to_porcelain(plumbings)
|
4939
5155
|
items = Array.new
|
4940
5156
|
plumbings.each do |plumbing|
|
4941
|
-
porcelain =
|
5157
|
+
porcelain = convert_secret_store_get_response_to_porcelain(plumbing)
|
4942
5158
|
items.append(porcelain)
|
4943
5159
|
end
|
4944
5160
|
items
|
4945
5161
|
end
|
4946
|
-
def self.
|
5162
|
+
def self.convert_secret_store_update_response_to_porcelain(plumbing)
|
4947
5163
|
if plumbing == nil
|
4948
5164
|
return nil
|
4949
5165
|
end
|
4950
|
-
porcelain =
|
4951
|
-
porcelain.
|
4952
|
-
porcelain.
|
4953
|
-
porcelain.
|
4954
|
-
porcelain.ca_cert_path = (plumbing.CA_cert_path)
|
4955
|
-
porcelain.client_cert_path = (plumbing.client_cert_path)
|
4956
|
-
porcelain.client_key_path = (plumbing.client_key_path)
|
4957
|
-
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
5166
|
+
porcelain = SecretStoreUpdateResponse.new()
|
5167
|
+
porcelain.meta = convert_update_response_metadata_to_porcelain(plumbing.meta)
|
5168
|
+
porcelain.secret_store = convert_secret_store_to_porcelain(plumbing.secret_store)
|
5169
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
4958
5170
|
porcelain
|
4959
5171
|
end
|
4960
5172
|
|
4961
|
-
def self.
|
5173
|
+
def self.convert_secret_store_update_response_to_plumbing(porcelain)
|
4962
5174
|
if porcelain == nil
|
4963
5175
|
return nil
|
4964
5176
|
end
|
4965
|
-
plumbing = V1::
|
4966
|
-
plumbing.
|
4967
|
-
plumbing.
|
4968
|
-
plumbing.
|
4969
|
-
plumbing.CA_cert_path = (porcelain.ca_cert_path) unless porcelain.ca_cert_path == nil
|
4970
|
-
plumbing.client_cert_path = (porcelain.client_cert_path) unless porcelain.client_cert_path == nil
|
4971
|
-
plumbing.client_key_path = (porcelain.client_key_path) unless porcelain.client_key_path == nil
|
4972
|
-
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
5177
|
+
plumbing = V1::SecretStoreUpdateResponse.new()
|
5178
|
+
plumbing.meta = convert_update_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
5179
|
+
plumbing.secret_store = convert_secret_store_to_plumbing(porcelain.secret_store) unless porcelain.secret_store == nil
|
5180
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
4973
5181
|
plumbing
|
4974
5182
|
end
|
4975
|
-
def self.
|
5183
|
+
def self.convert_repeated_secret_store_update_response_to_plumbing(porcelains)
|
4976
5184
|
items = Array.new
|
4977
5185
|
porcelains.each do |porcelain|
|
4978
|
-
plumbing =
|
5186
|
+
plumbing = convert_secret_store_update_response_to_plumbing(porcelain)
|
4979
5187
|
items.append(plumbing)
|
4980
5188
|
end
|
4981
5189
|
items
|
4982
5190
|
end
|
4983
5191
|
|
4984
|
-
def self.
|
5192
|
+
def self.convert_repeated_secret_store_update_response_to_porcelain(plumbings)
|
4985
5193
|
items = Array.new
|
4986
5194
|
plumbings.each do |plumbing|
|
4987
|
-
porcelain =
|
5195
|
+
porcelain = convert_secret_store_update_response_to_porcelain(plumbing)
|
4988
5196
|
items.append(porcelain)
|
4989
5197
|
end
|
4990
5198
|
items
|
4991
5199
|
end
|
4992
|
-
def self.
|
5200
|
+
def self.convert_secret_store_delete_response_to_porcelain(plumbing)
|
4993
5201
|
if plumbing == nil
|
4994
5202
|
return nil
|
4995
5203
|
end
|
4996
|
-
porcelain =
|
4997
|
-
porcelain.
|
4998
|
-
porcelain.
|
4999
|
-
porcelain.region = (plumbing.region)
|
5000
|
-
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
5204
|
+
porcelain = SecretStoreDeleteResponse.new()
|
5205
|
+
porcelain.meta = convert_delete_response_metadata_to_porcelain(plumbing.meta)
|
5206
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
5001
5207
|
porcelain
|
5002
5208
|
end
|
5003
5209
|
|
5004
|
-
def self.
|
5210
|
+
def self.convert_secret_store_delete_response_to_plumbing(porcelain)
|
5005
5211
|
if porcelain == nil
|
5006
5212
|
return nil
|
5007
5213
|
end
|
5008
|
-
plumbing = V1::
|
5009
|
-
plumbing.
|
5010
|
-
plumbing.
|
5011
|
-
plumbing.region = (porcelain.region) unless porcelain.region == nil
|
5012
|
-
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
5214
|
+
plumbing = V1::SecretStoreDeleteResponse.new()
|
5215
|
+
plumbing.meta = convert_delete_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
5216
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
5013
5217
|
plumbing
|
5014
5218
|
end
|
5015
|
-
def self.
|
5219
|
+
def self.convert_repeated_secret_store_delete_response_to_plumbing(porcelains)
|
5016
5220
|
items = Array.new
|
5017
5221
|
porcelains.each do |porcelain|
|
5018
|
-
plumbing =
|
5222
|
+
plumbing = convert_secret_store_delete_response_to_plumbing(porcelain)
|
5019
5223
|
items.append(plumbing)
|
5020
5224
|
end
|
5021
5225
|
items
|
5022
5226
|
end
|
5023
5227
|
|
5024
|
-
def self.
|
5228
|
+
def self.convert_repeated_secret_store_delete_response_to_porcelain(plumbings)
|
5025
5229
|
items = Array.new
|
5026
5230
|
plumbings.each do |plumbing|
|
5027
|
-
porcelain =
|
5231
|
+
porcelain = convert_secret_store_delete_response_to_porcelain(plumbing)
|
5028
5232
|
items.append(porcelain)
|
5029
5233
|
end
|
5030
5234
|
items
|