strongdm 1.0.3 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +28 -6
- data/doc/LICENSE.html +3 -9
- data/doc/Object.html +1 -356
- data/doc/README_md.html +34 -17
- data/doc/SDM.html +1 -1
- data/doc/SDM/AKS.html +9 -45
- data/doc/SDM/AKSBasicAuth.html +22 -4
- data/doc/SDM/AKSServiceAccount.html +22 -4
- data/doc/SDM/AccountAttachment.html +3 -3
- data/doc/SDM/AccountAttachmentCreateOptions.html +1 -1
- data/doc/SDM/AccountAttachmentCreateResponse.html +3 -3
- data/doc/SDM/AccountAttachmentDeleteResponse.html +3 -3
- data/doc/SDM/AccountAttachmentGetResponse.html +3 -3
- data/doc/SDM/AccountAttachments.html +5 -7
- data/doc/SDM/AccountCreateResponse.html +3 -3
- data/doc/SDM/AccountDeleteResponse.html +3 -3
- data/doc/SDM/AccountGetResponse.html +3 -3
- data/doc/SDM/AccountGrant.html +3 -3
- data/doc/SDM/AccountGrantCreateResponse.html +3 -3
- data/doc/SDM/AccountGrantDeleteResponse.html +3 -3
- data/doc/SDM/AccountGrantGetResponse.html +3 -3
- data/doc/SDM/AccountGrants.html +6 -6
- data/doc/SDM/AccountUpdateResponse.html +3 -3
- data/doc/SDM/Accounts.html +7 -7
- data/doc/SDM/AlreadyExistsError.html +1 -1
- data/doc/SDM/AmazonEKS.html +15 -15
- data/doc/SDM/AmazonES.html +3 -3
- data/doc/SDM/Athena.html +3 -3
- data/doc/SDM/AuroraMysql.html +3 -3
- data/doc/SDM/AuroraPostgres.html +3 -3
- data/doc/SDM/AuthenticationError.html +1 -1
- data/doc/SDM/BadRequestError.html +1 -1
- data/doc/SDM/BigQuery.html +3 -3
- data/doc/SDM/Cassandra.html +3 -3
- data/doc/SDM/Citus.html +409 -0
- data/doc/SDM/Client.html +1 -1
- data/doc/SDM/Clustrix.html +3 -3
- data/doc/SDM/Cockroach.html +3 -3
- data/doc/SDM/CreateResponseMetadata.html +1 -1
- data/doc/SDM/DB2.html +391 -0
- data/doc/SDM/DB2LUW.html +391 -0
- data/doc/SDM/DB2i.html +391 -0
- data/doc/SDM/DeadlineExceededError.html +1 -1
- data/doc/SDM/DeleteResponseMetadata.html +1 -1
- data/doc/SDM/Druid.html +3 -3
- data/doc/SDM/DynamoDB.html +3 -3
- data/doc/SDM/Elastic.html +3 -3
- data/doc/SDM/ElasticacheRedis.html +3 -3
- data/doc/SDM/Gateway.html +22 -4
- data/doc/SDM/GetResponseMetadata.html +1 -1
- data/doc/SDM/GoogleGKE.html +11 -29
- data/doc/SDM/Greenplum.html +3 -3
- data/doc/SDM/HTTPAuth.html +3 -3
- data/doc/SDM/HTTPBasicAuth.html +3 -3
- data/doc/SDM/HTTPNoAuth.html +3 -3
- data/doc/SDM/InternalError.html +1 -1
- data/doc/SDM/Kubernetes.html +9 -45
- data/doc/SDM/KubernetesBasicAuth.html +22 -4
- data/doc/SDM/KubernetesServiceAccount.html +22 -4
- data/doc/SDM/Maria.html +3 -3
- data/doc/SDM/Memcached.html +3 -3
- data/doc/SDM/Memsql.html +3 -3
- data/doc/SDM/MongoHost.html +3 -3
- data/doc/SDM/MongoLegacyHost.html +3 -3
- data/doc/SDM/MongoLegacyReplicaset.html +3 -3
- data/doc/SDM/MongoReplicaSet.html +3 -3
- data/doc/SDM/Mysql.html +3 -3
- data/doc/SDM/NodeCreateResponse.html +3 -3
- data/doc/SDM/NodeDeleteResponse.html +3 -3
- data/doc/SDM/NodeGetResponse.html +3 -3
- data/doc/SDM/NodeUpdateResponse.html +3 -3
- data/doc/SDM/Nodes.html +7 -7
- data/doc/SDM/NotFoundError.html +1 -1
- data/doc/SDM/Oracle.html +3 -3
- data/doc/SDM/PermissionError.html +1 -1
- data/doc/SDM/Plumbing.html +1254 -668
- data/doc/SDM/Postgres.html +3 -3
- data/doc/SDM/Presto.html +3 -3
- data/doc/SDM/RDP.html +3 -3
- data/doc/SDM/RPCError.html +1 -1
- data/doc/SDM/RateLimitError.html +1 -1
- data/doc/SDM/RateLimitMetadata.html +1 -1
- data/doc/SDM/Redis.html +3 -3
- data/doc/SDM/Redshift.html +3 -3
- data/doc/SDM/Relay.html +23 -5
- data/doc/SDM/ResourceCreateResponse.html +3 -3
- data/doc/SDM/ResourceDeleteResponse.html +3 -3
- data/doc/SDM/ResourceGetResponse.html +3 -3
- data/doc/SDM/ResourceUpdateResponse.html +3 -3
- data/doc/SDM/Resources.html +7 -7
- data/doc/SDM/Role.html +22 -4
- data/doc/SDM/RoleAttachment.html +3 -3
- data/doc/SDM/RoleAttachmentCreateResponse.html +3 -3
- data/doc/SDM/RoleAttachmentDeleteResponse.html +3 -3
- data/doc/SDM/RoleAttachmentGetResponse.html +3 -3
- data/doc/SDM/RoleAttachments.html +6 -6
- data/doc/SDM/RoleCreateResponse.html +3 -3
- data/doc/SDM/RoleDeleteResponse.html +3 -3
- data/doc/SDM/RoleGetResponse.html +3 -3
- data/doc/SDM/RoleGrant.html +3 -3
- data/doc/SDM/RoleGrantCreateResponse.html +3 -3
- data/doc/SDM/RoleGrantDeleteResponse.html +3 -3
- data/doc/SDM/RoleGrantGetResponse.html +3 -3
- data/doc/SDM/RoleGrants.html +6 -6
- data/doc/SDM/RoleUpdateResponse.html +3 -3
- data/doc/SDM/Roles.html +7 -7
- data/doc/SDM/SQLServer.html +3 -3
- data/doc/SDM/SSH.html +22 -4
- data/doc/SDM/SSHCert.html +373 -0
- data/doc/SDM/Service.html +22 -4
- data/doc/SDM/Snowflake.html +3 -3
- data/doc/SDM/Sybase.html +3 -3
- data/doc/SDM/SybaseIQ.html +3 -3
- data/doc/SDM/Teradata.html +3 -3
- data/doc/SDM/UpdateResponseMetadata.html +1 -1
- data/doc/SDM/User.html +22 -4
- data/doc/V1.html +21 -6
- data/doc/V1/AccountAttachments.html +1 -1
- data/doc/V1/AccountAttachments/Service.html +1 -1
- data/doc/V1/AccountGrants.html +1 -1
- data/doc/V1/AccountGrants/Service.html +1 -1
- data/doc/V1/Accounts.html +1 -1
- data/doc/V1/Accounts/Service.html +1 -1
- data/doc/V1/Nodes.html +1 -1
- data/doc/V1/Nodes/Service.html +1 -1
- data/doc/V1/Resources.html +1 -1
- data/doc/V1/Resources/Service.html +1 -1
- data/doc/V1/RoleAttachments.html +1 -1
- data/doc/V1/RoleAttachments/Service.html +1 -1
- data/doc/V1/RoleGrants.html +1 -1
- data/doc/V1/RoleGrants/Service.html +1 -1
- data/doc/V1/Roles.html +1 -1
- data/doc/V1/Roles/Service.html +1 -1
- data/doc/V1/Tags.html +1 -1
- data/doc/created.rid +39 -40
- data/doc/css/rdoc.css +5 -13
- data/doc/examples/Gemfile.html +3 -9
- data/doc/examples/Gemfile_lock.html +3 -1
- data/doc/examples/README_md.html +3 -1
- data/doc/examples/okta-sync/Gemfile.html +3 -1
- data/doc/examples/okta-sync/Gemfile_lock.html +3 -1
- data/doc/index.html +11 -11
- 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 +5 -11
- data/doc/strongdm_gemspec.html +6 -11
- data/doc/table_of_contents.html +452 -362
- data/examples/listUsers.rb +4 -4
- data/lib/grpc/account_attachments_pb.rb +0 -5
- data/lib/grpc/accounts_pb.rb +3 -0
- data/lib/grpc/drivers_pb.rb +65 -9
- data/lib/grpc/nodes_pb.rb +3 -0
- data/lib/grpc/options_pb.rb +2 -0
- data/lib/grpc/plumbing.rb +453 -245
- data/lib/grpc/roles_pb.rb +2 -0
- data/lib/grpc/spec_pb.rb +0 -1
- data/lib/models/porcelain.rb +5428 -41
- data/lib/svc.rb +0 -2
- data/lib/version +16 -2
- data/lib/version.rb +5 -5
- metadata +7 -9
- data/examples/Gemfile.lock +0 -14
- data/examples/README.md +0 -5
- data/examples/okta-sync/Gemfile +0 -4
- data/examples/okta-sync/Gemfile.lock +0 -38
- data/examples/okta-sync/matchers.yml +0 -11
- data/examples/okta-sync/oktaSync.rb +0 -173
- data/examples/panicButton.rb +0 -138
data/examples/listUsers.rb
CHANGED
@@ -14,8 +14,8 @@
|
|
14
14
|
#
|
15
15
|
require "strongdm"
|
16
16
|
|
17
|
-
client = SDM::Client.new(ENV[
|
18
|
-
users = client.accounts.list(
|
17
|
+
client = SDM::Client.new(ENV['SDM_API_ACCESS_KEY'], ENV['SDM_API_SECRET_KEY'])
|
18
|
+
users = client.accounts.list('')
|
19
19
|
users.each { |user|
|
20
|
-
|
21
|
-
}
|
20
|
+
p user
|
21
|
+
}
|
@@ -26,10 +26,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
26
26
|
add_message "v1.AccountAttachmentCreateRequest" do
|
27
27
|
optional :meta, :message, 1, "v1.CreateRequestMetadata"
|
28
28
|
optional :account_attachment, :message, 2, "v1.AccountAttachment"
|
29
|
-
optional :options, :message, 3, "v1.AccountAttachmentCreateOptions"
|
30
|
-
end
|
31
|
-
add_message "v1.AccountAttachmentCreateOptions" do
|
32
|
-
optional :overwrite, :bool, 1
|
33
29
|
end
|
34
30
|
add_message "v1.AccountAttachmentCreateResponse" do
|
35
31
|
optional :meta, :message, 1, "v1.CreateResponseMetadata"
|
@@ -72,7 +68,6 @@ end
|
|
72
68
|
|
73
69
|
module V1
|
74
70
|
AccountAttachmentCreateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccountAttachmentCreateRequest").msgclass
|
75
|
-
AccountAttachmentCreateOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccountAttachmentCreateOptions").msgclass
|
76
71
|
AccountAttachmentCreateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccountAttachmentCreateResponse").msgclass
|
77
72
|
AccountAttachmentGetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccountAttachmentGetRequest").msgclass
|
78
73
|
AccountAttachmentGetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccountAttachmentGetResponse").msgclass
|
data/lib/grpc/accounts_pb.rb
CHANGED
@@ -21,6 +21,7 @@ require 'google/api/annotations_pb'
|
|
21
21
|
require 'protoc-gen-swagger/options/annotations_pb'
|
22
22
|
require 'options_pb'
|
23
23
|
require 'spec_pb'
|
24
|
+
require 'tags_pb'
|
24
25
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
25
26
|
add_file("accounts.proto", :syntax => :proto3) do
|
26
27
|
add_message "v1.AccountCreateRequest" do
|
@@ -81,11 +82,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
81
82
|
optional :first_name, :string, 3
|
82
83
|
optional :last_name, :string, 4
|
83
84
|
optional :suspended, :bool, 5
|
85
|
+
optional :tags, :message, 6, "v1.Tags"
|
84
86
|
end
|
85
87
|
add_message "v1.Service" do
|
86
88
|
optional :id, :string, 1
|
87
89
|
optional :name, :string, 2
|
88
90
|
optional :suspended, :bool, 3
|
91
|
+
optional :tags, :message, 4, "v1.Tags"
|
89
92
|
end
|
90
93
|
end
|
91
94
|
end
|
data/lib/grpc/drivers_pb.rb
CHANGED
@@ -27,6 +27,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
27
27
|
optional :athena, :message, 100, "v1.Athena"
|
28
28
|
optional :big_query, :message, 200, "v1.BigQuery"
|
29
29
|
optional :cassandra, :message, 300, "v1.Cassandra"
|
30
|
+
optional :db_2_i, :message, 2400, "v1.DB2I"
|
31
|
+
optional :db_2_luw, :message, 2200, "v1.DB2LUW"
|
30
32
|
optional :druid, :message, 400, "v1.Druid"
|
31
33
|
optional :dynamo_db, :message, 500, "v1.DynamoDB"
|
32
34
|
optional :amazon_es, :message, 600, "v1.AmazonES"
|
@@ -58,6 +60,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
58
60
|
optional :greenplum, :message, 1302, "v1.Greenplum"
|
59
61
|
optional :cockroach, :message, 1303, "v1.Cockroach"
|
60
62
|
optional :redshift, :message, 1304, "v1.Redshift"
|
63
|
+
optional :citus, :message, 1305, "v1.Citus"
|
61
64
|
optional :presto, :message, 1400, "v1.Presto"
|
62
65
|
optional :rdp, :message, 1500, "v1.RDP"
|
63
66
|
optional :redis, :message, 1600, "v1.Redis"
|
@@ -65,6 +68,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
65
68
|
optional :snowflake, :message, 1700, "v1.Snowflake"
|
66
69
|
optional :sql_server, :message, 1800, "v1.SQLServer"
|
67
70
|
optional :ssh, :message, 1900, "v1.SSH"
|
71
|
+
optional :ssh_cert, :message, 1901, "v1.SSHCert"
|
68
72
|
optional :sybase, :message, 2000, "v1.Sybase"
|
69
73
|
optional :sybase_iq, :message, 2001, "v1.SybaseIQ"
|
70
74
|
optional :teradata, :message, 2100, "v1.Teradata"
|
@@ -104,6 +108,30 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
104
108
|
optional :port, :int32, 5
|
105
109
|
optional :tls_required, :bool, 6
|
106
110
|
end
|
111
|
+
add_message "v1.DB2I" do
|
112
|
+
optional :id, :string, 32768
|
113
|
+
optional :name, :string, 32769
|
114
|
+
optional :healthy, :bool, 32770
|
115
|
+
optional :tags, :message, 32771, "v1.Tags"
|
116
|
+
optional :hostname, :string, 1
|
117
|
+
optional :username, :string, 2
|
118
|
+
optional :password, :string, 3
|
119
|
+
optional :port_override, :int32, 4
|
120
|
+
optional :port, :int32, 5
|
121
|
+
optional :tls_required, :bool, 7
|
122
|
+
end
|
123
|
+
add_message "v1.DB2LUW" do
|
124
|
+
optional :id, :string, 32768
|
125
|
+
optional :name, :string, 32769
|
126
|
+
optional :healthy, :bool, 32770
|
127
|
+
optional :tags, :message, 32771, "v1.Tags"
|
128
|
+
optional :hostname, :string, 1
|
129
|
+
optional :username, :string, 2
|
130
|
+
optional :password, :string, 3
|
131
|
+
optional :database, :string, 4
|
132
|
+
optional :port_override, :int32, 5
|
133
|
+
optional :port, :int32, 6
|
134
|
+
end
|
107
135
|
add_message "v1.Druid" do
|
108
136
|
optional :id, :string, 32768
|
109
137
|
optional :name, :string, 32769
|
@@ -193,11 +221,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
193
221
|
optional :hostname, :string, 1
|
194
222
|
optional :port, :int32, 2
|
195
223
|
optional :certificate_authority, :string, 3
|
196
|
-
optional :certificate_authority_filename, :string, 4
|
197
224
|
optional :client_certificate, :string, 5
|
198
|
-
optional :client_certificate_filename, :string, 6
|
199
225
|
optional :client_key, :string, 7
|
200
|
-
optional :
|
226
|
+
optional :healthcheck_namespace, :string, 9
|
201
227
|
end
|
202
228
|
add_message "v1.KubernetesBasicAuth" do
|
203
229
|
optional :id, :string, 32768
|
@@ -208,6 +234,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
208
234
|
optional :port, :int32, 2
|
209
235
|
optional :username, :string, 3
|
210
236
|
optional :password, :string, 4
|
237
|
+
optional :healthcheck_namespace, :string, 5
|
211
238
|
end
|
212
239
|
add_message "v1.KubernetesServiceAccount" do
|
213
240
|
optional :id, :string, 32768
|
@@ -217,6 +244,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
217
244
|
optional :hostname, :string, 1
|
218
245
|
optional :port, :int32, 2
|
219
246
|
optional :token, :string, 3
|
247
|
+
optional :healthcheck_namespace, :string, 4
|
220
248
|
end
|
221
249
|
add_message "v1.AmazonEKS" do
|
222
250
|
optional :id, :string, 32768
|
@@ -227,10 +255,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
227
255
|
optional :access_key, :string, 2
|
228
256
|
optional :secret_access_key, :string, 3
|
229
257
|
optional :certificate_authority, :string, 4
|
230
|
-
optional :certificate_authority_filename, :string, 5
|
231
258
|
optional :region, :string, 6
|
232
259
|
optional :cluster_name, :string, 7
|
233
260
|
optional :role_arn, :string, 8
|
261
|
+
optional :healthcheck_namespace, :string, 9
|
234
262
|
end
|
235
263
|
add_message "v1.GoogleGKE" do
|
236
264
|
optional :id, :string, 32768
|
@@ -239,9 +267,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
239
267
|
optional :tags, :message, 32771, "v1.Tags"
|
240
268
|
optional :endpoint, :string, 1
|
241
269
|
optional :certificate_authority, :string, 2
|
242
|
-
optional :certificate_authority_filename, :string, 3
|
243
270
|
optional :service_account_key, :string, 4
|
244
|
-
optional :
|
271
|
+
optional :healthcheck_namespace, :string, 6
|
245
272
|
end
|
246
273
|
add_message "v1.AKS" do
|
247
274
|
optional :id, :string, 32768
|
@@ -251,11 +278,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
251
278
|
optional :hostname, :string, 1
|
252
279
|
optional :port, :int32, 2
|
253
280
|
optional :certificate_authority, :string, 3
|
254
|
-
optional :certificate_authority_filename, :string, 4
|
255
281
|
optional :client_certificate, :string, 5
|
256
|
-
optional :client_certificate_filename, :string, 6
|
257
282
|
optional :client_key, :string, 7
|
258
|
-
optional :
|
283
|
+
optional :healthcheck_namespace, :string, 9
|
259
284
|
end
|
260
285
|
add_message "v1.AKSBasicAuth" do
|
261
286
|
optional :id, :string, 32768
|
@@ -266,6 +291,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
266
291
|
optional :port, :int32, 2
|
267
292
|
optional :username, :string, 3
|
268
293
|
optional :password, :string, 4
|
294
|
+
optional :healthcheck_namespace, :string, 5
|
269
295
|
end
|
270
296
|
add_message "v1.AKSServiceAccount" do
|
271
297
|
optional :id, :string, 32768
|
@@ -275,6 +301,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
275
301
|
optional :hostname, :string, 1
|
276
302
|
optional :port, :int32, 2
|
277
303
|
optional :token, :string, 3
|
304
|
+
optional :healthcheck_namespace, :string, 4
|
278
305
|
end
|
279
306
|
add_message "v1.Memcached" do
|
280
307
|
optional :id, :string, 32768
|
@@ -480,6 +507,19 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
480
507
|
optional :port, :int32, 6
|
481
508
|
optional :override_database, :bool, 7
|
482
509
|
end
|
510
|
+
add_message "v1.Citus" do
|
511
|
+
optional :id, :string, 32768
|
512
|
+
optional :name, :string, 32769
|
513
|
+
optional :healthy, :bool, 32770
|
514
|
+
optional :tags, :message, 32771, "v1.Tags"
|
515
|
+
optional :hostname, :string, 1
|
516
|
+
optional :username, :string, 2
|
517
|
+
optional :password, :string, 3
|
518
|
+
optional :database, :string, 4
|
519
|
+
optional :port_override, :int32, 5
|
520
|
+
optional :port, :int32, 6
|
521
|
+
optional :override_database, :bool, 7
|
522
|
+
end
|
483
523
|
add_message "v1.Presto" do
|
484
524
|
optional :id, :string, 32768
|
485
525
|
optional :name, :string, 32769
|
@@ -561,6 +601,18 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
561
601
|
optional :port, :int32, 3
|
562
602
|
optional :public_key, :string, 4
|
563
603
|
optional :port_forwarding, :bool, 5
|
604
|
+
optional :allow_deprecated_key_exchanges, :bool, 6
|
605
|
+
end
|
606
|
+
add_message "v1.SSHCert" do
|
607
|
+
optional :id, :string, 32768
|
608
|
+
optional :name, :string, 32769
|
609
|
+
optional :healthy, :bool, 32770
|
610
|
+
optional :tags, :message, 32771, "v1.Tags"
|
611
|
+
optional :hostname, :string, 1
|
612
|
+
optional :username, :string, 2
|
613
|
+
optional :port, :int32, 3
|
614
|
+
optional :port_forwarding, :bool, 4
|
615
|
+
optional :allow_deprecated_key_exchanges, :bool, 5
|
564
616
|
end
|
565
617
|
add_message "v1.Sybase" do
|
566
618
|
optional :id, :string, 32768
|
@@ -603,6 +655,8 @@ module V1
|
|
603
655
|
Athena = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Athena").msgclass
|
604
656
|
BigQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.BigQuery").msgclass
|
605
657
|
Cassandra = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Cassandra").msgclass
|
658
|
+
DB2I = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.DB2I").msgclass
|
659
|
+
DB2LUW = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.DB2LUW").msgclass
|
606
660
|
Druid = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Druid").msgclass
|
607
661
|
DynamoDB = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.DynamoDB").msgclass
|
608
662
|
AmazonES = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AmazonES").msgclass
|
@@ -634,6 +688,7 @@ module V1
|
|
634
688
|
Greenplum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Greenplum").msgclass
|
635
689
|
Cockroach = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Cockroach").msgclass
|
636
690
|
Redshift = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Redshift").msgclass
|
691
|
+
Citus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Citus").msgclass
|
637
692
|
Presto = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Presto").msgclass
|
638
693
|
RDP = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RDP").msgclass
|
639
694
|
Redis = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Redis").msgclass
|
@@ -641,6 +696,7 @@ module V1
|
|
641
696
|
Snowflake = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Snowflake").msgclass
|
642
697
|
SQLServer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.SQLServer").msgclass
|
643
698
|
SSH = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.SSH").msgclass
|
699
|
+
SSHCert = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.SSHCert").msgclass
|
644
700
|
Sybase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Sybase").msgclass
|
645
701
|
SybaseIQ = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.SybaseIQ").msgclass
|
646
702
|
Teradata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Teradata").msgclass
|
data/lib/grpc/nodes_pb.rb
CHANGED
@@ -21,6 +21,7 @@ require 'google/api/annotations_pb'
|
|
21
21
|
require 'protoc-gen-swagger/options/annotations_pb'
|
22
22
|
require 'options_pb'
|
23
23
|
require 'spec_pb'
|
24
|
+
require 'tags_pb'
|
24
25
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
25
26
|
add_file("nodes.proto", :syntax => :proto3) do
|
26
27
|
add_message "v1.NodeCreateRequest" do
|
@@ -79,6 +80,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
79
80
|
optional :id, :string, 1
|
80
81
|
optional :name, :string, 2
|
81
82
|
optional :state, :string, 3
|
83
|
+
optional :tags, :message, 4, "v1.Tags"
|
82
84
|
end
|
83
85
|
add_message "v1.Gateway" do
|
84
86
|
optional :id, :string, 1
|
@@ -86,6 +88,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
86
88
|
optional :state, :string, 3
|
87
89
|
optional :listen_address, :string, 4
|
88
90
|
optional :bind_address, :string, 5
|
91
|
+
optional :tags, :message, 6, "v1.Tags"
|
89
92
|
end
|
90
93
|
end
|
91
94
|
end
|
data/lib/grpc/options_pb.rb
CHANGED
@@ -30,6 +30,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
30
30
|
optional :computed, :bool, 1941307
|
31
31
|
optional :force_new, :bool, 1941308
|
32
32
|
optional :write_only, :bool, 1941309
|
33
|
+
optional :sensitive, :bool, 1941310
|
33
34
|
end
|
34
35
|
add_message "v1.MessageOptions" do
|
35
36
|
optional :model_name, :string, 1941300
|
@@ -44,6 +45,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
44
45
|
optional :go_porcelain_type, :string, 1941310
|
45
46
|
optional :java_porcelain_type, :string, 1941311
|
46
47
|
optional :terraform_porcelain_type, :string, 1941312
|
48
|
+
optional :openapi_porcelain_type, :string, 1941313
|
47
49
|
end
|
48
50
|
add_message "v1.TerraformDocs" do
|
49
51
|
optional :resource_example_path, :string, 1941300
|
data/lib/grpc/plumbing.rb
CHANGED
@@ -22,8 +22,8 @@ require_relative './options_pb'
|
|
22
22
|
require_relative './spec_pb'
|
23
23
|
require_relative './account_attachments_pb'
|
24
24
|
require_relative './account_grants_pb'
|
25
|
-
require_relative './accounts_pb'
|
26
25
|
require_relative './tags_pb'
|
26
|
+
require_relative './accounts_pb'
|
27
27
|
require_relative './drivers_pb'
|
28
28
|
require_relative './nodes_pb'
|
29
29
|
require_relative './resources_pb'
|
@@ -259,40 +259,6 @@ module SDM
|
|
259
259
|
end
|
260
260
|
items
|
261
261
|
end
|
262
|
-
def self.convert_account_attachment_create_options_to_porcelain(plumbing)
|
263
|
-
if plumbing == nil
|
264
|
-
return nil
|
265
|
-
end
|
266
|
-
porcelain = AccountAttachmentCreateOptions.new()
|
267
|
-
porcelain.overwrite = (plumbing.overwrite)
|
268
|
-
porcelain
|
269
|
-
end
|
270
|
-
|
271
|
-
def self.convert_account_attachment_create_options_to_plumbing(porcelain)
|
272
|
-
if porcelain == nil
|
273
|
-
return nil
|
274
|
-
end
|
275
|
-
plumbing = V1::AccountAttachmentCreateOptions.new()
|
276
|
-
plumbing.overwrite = (porcelain.overwrite) unless porcelain.overwrite == nil
|
277
|
-
plumbing
|
278
|
-
end
|
279
|
-
def self.convert_repeated_account_attachment_create_options_to_plumbing(porcelains)
|
280
|
-
items = Array.new
|
281
|
-
porcelains.each do |porcelain|
|
282
|
-
plumbing = convert_account_attachment_create_options_to_plumbing(porcelain)
|
283
|
-
items.append(plumbing)
|
284
|
-
end
|
285
|
-
items
|
286
|
-
end
|
287
|
-
|
288
|
-
def self.convert_repeated_account_attachment_create_options_to_porcelain(plumbings)
|
289
|
-
items = Array.new
|
290
|
-
plumbings.each do |plumbing|
|
291
|
-
porcelain = convert_account_attachment_create_options_to_porcelain(plumbing)
|
292
|
-
items.append(porcelain)
|
293
|
-
end
|
294
|
-
items
|
295
|
-
end
|
296
262
|
def self.convert_account_attachment_create_response_to_porcelain(plumbing)
|
297
263
|
if plumbing == nil
|
298
264
|
return nil
|
@@ -801,6 +767,7 @@ module SDM
|
|
801
767
|
porcelain.first_name = (plumbing.first_name)
|
802
768
|
porcelain.last_name = (plumbing.last_name)
|
803
769
|
porcelain.suspended = (plumbing.suspended)
|
770
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
804
771
|
porcelain
|
805
772
|
end
|
806
773
|
|
@@ -814,6 +781,7 @@ module SDM
|
|
814
781
|
plumbing.first_name = (porcelain.first_name) unless porcelain.first_name == nil
|
815
782
|
plumbing.last_name = (porcelain.last_name) unless porcelain.last_name == nil
|
816
783
|
plumbing.suspended = (porcelain.suspended) unless porcelain.suspended == nil
|
784
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
817
785
|
plumbing
|
818
786
|
end
|
819
787
|
def self.convert_repeated_user_to_plumbing(porcelains)
|
@@ -841,6 +809,7 @@ module SDM
|
|
841
809
|
porcelain.id = (plumbing.id)
|
842
810
|
porcelain.name = (plumbing.name)
|
843
811
|
porcelain.suspended = (plumbing.suspended)
|
812
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
844
813
|
porcelain
|
845
814
|
end
|
846
815
|
|
@@ -852,6 +821,7 @@ module SDM
|
|
852
821
|
plumbing.id = (porcelain.id) unless porcelain.id == nil
|
853
822
|
plumbing.name = (porcelain.name) unless porcelain.name == nil
|
854
823
|
plumbing.suspended = (porcelain.suspended) unless porcelain.suspended == nil
|
824
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
855
825
|
plumbing
|
856
826
|
end
|
857
827
|
def self.convert_repeated_service_to_plumbing(porcelains)
|
@@ -885,6 +855,12 @@ module SDM
|
|
885
855
|
if porcelain .instance_of? Cassandra
|
886
856
|
plumbing.cassandra = convert_cassandra_to_plumbing(porcelain)
|
887
857
|
end
|
858
|
+
if porcelain .instance_of? DB2I
|
859
|
+
plumbing.db_2_i = convert_db_2_i_to_plumbing(porcelain)
|
860
|
+
end
|
861
|
+
if porcelain .instance_of? DB2LUW
|
862
|
+
plumbing.db_2_luw = convert_db_2_luw_to_plumbing(porcelain)
|
863
|
+
end
|
888
864
|
if porcelain .instance_of? Druid
|
889
865
|
plumbing.druid = convert_druid_to_plumbing(porcelain)
|
890
866
|
end
|
@@ -978,6 +954,9 @@ module SDM
|
|
978
954
|
if porcelain .instance_of? Redshift
|
979
955
|
plumbing.redshift = convert_redshift_to_plumbing(porcelain)
|
980
956
|
end
|
957
|
+
if porcelain .instance_of? Citus
|
958
|
+
plumbing.citus = convert_citus_to_plumbing(porcelain)
|
959
|
+
end
|
981
960
|
if porcelain .instance_of? Presto
|
982
961
|
plumbing.presto = convert_presto_to_plumbing(porcelain)
|
983
962
|
end
|
@@ -999,6 +978,9 @@ module SDM
|
|
999
978
|
if porcelain .instance_of? SSH
|
1000
979
|
plumbing.ssh = convert_ssh_to_plumbing(porcelain)
|
1001
980
|
end
|
981
|
+
if porcelain .instance_of? SSHCert
|
982
|
+
plumbing.ssh_cert = convert_ssh_cert_to_plumbing(porcelain)
|
983
|
+
end
|
1002
984
|
if porcelain .instance_of? Sybase
|
1003
985
|
plumbing.sybase = convert_sybase_to_plumbing(porcelain)
|
1004
986
|
end
|
@@ -1024,6 +1006,12 @@ module SDM
|
|
1024
1006
|
if plumbing.cassandra != nil
|
1025
1007
|
return convert_cassandra_to_porcelain(plumbing.cassandra)
|
1026
1008
|
end
|
1009
|
+
if plumbing.db_2_i != nil
|
1010
|
+
return convert_db_2_i_to_porcelain(plumbing.db_2_i)
|
1011
|
+
end
|
1012
|
+
if plumbing.db_2_luw != nil
|
1013
|
+
return convert_db_2_luw_to_porcelain(plumbing.db_2_luw)
|
1014
|
+
end
|
1027
1015
|
if plumbing.druid != nil
|
1028
1016
|
return convert_druid_to_porcelain(plumbing.druid)
|
1029
1017
|
end
|
@@ -1117,6 +1105,9 @@ module SDM
|
|
1117
1105
|
if plumbing.redshift != nil
|
1118
1106
|
return convert_redshift_to_porcelain(plumbing.redshift)
|
1119
1107
|
end
|
1108
|
+
if plumbing.citus != nil
|
1109
|
+
return convert_citus_to_porcelain(plumbing.citus)
|
1110
|
+
end
|
1120
1111
|
if plumbing.presto != nil
|
1121
1112
|
return convert_presto_to_porcelain(plumbing.presto)
|
1122
1113
|
end
|
@@ -1138,6 +1129,9 @@ module SDM
|
|
1138
1129
|
if plumbing.ssh != nil
|
1139
1130
|
return convert_ssh_to_porcelain(plumbing.ssh)
|
1140
1131
|
end
|
1132
|
+
if plumbing.ssh_cert != nil
|
1133
|
+
return convert_ssh_cert_to_porcelain(plumbing.ssh_cert)
|
1134
|
+
end
|
1141
1135
|
if plumbing.sybase != nil
|
1142
1136
|
return convert_sybase_to_porcelain(plumbing.sybase)
|
1143
1137
|
end
|
@@ -1317,6 +1311,110 @@ module SDM
|
|
1317
1311
|
end
|
1318
1312
|
items
|
1319
1313
|
end
|
1314
|
+
def self.convert_db_2_i_to_porcelain(plumbing)
|
1315
|
+
if plumbing == nil
|
1316
|
+
return nil
|
1317
|
+
end
|
1318
|
+
porcelain = DB2I.new()
|
1319
|
+
porcelain.id = (plumbing.id)
|
1320
|
+
porcelain.name = (plumbing.name)
|
1321
|
+
porcelain.healthy = (plumbing.healthy)
|
1322
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
1323
|
+
porcelain.hostname = (plumbing.hostname)
|
1324
|
+
porcelain.username = (plumbing.username)
|
1325
|
+
porcelain.password = (plumbing.password)
|
1326
|
+
porcelain.port_override = (plumbing.port_override)
|
1327
|
+
porcelain.port = (plumbing.port)
|
1328
|
+
porcelain.tls_required = (plumbing.tls_required)
|
1329
|
+
porcelain
|
1330
|
+
end
|
1331
|
+
|
1332
|
+
def self.convert_db_2_i_to_plumbing(porcelain)
|
1333
|
+
if porcelain == nil
|
1334
|
+
return nil
|
1335
|
+
end
|
1336
|
+
plumbing = V1::DB2I.new()
|
1337
|
+
plumbing.id = (porcelain.id) unless porcelain.id == nil
|
1338
|
+
plumbing.name = (porcelain.name) unless porcelain.name == nil
|
1339
|
+
plumbing.healthy = (porcelain.healthy) unless porcelain.healthy == nil
|
1340
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
1341
|
+
plumbing.hostname = (porcelain.hostname) unless porcelain.hostname == nil
|
1342
|
+
plumbing.username = (porcelain.username) unless porcelain.username == nil
|
1343
|
+
plumbing.password = (porcelain.password) unless porcelain.password == nil
|
1344
|
+
plumbing.port_override = (porcelain.port_override) unless porcelain.port_override == nil
|
1345
|
+
plumbing.port = (porcelain.port) unless porcelain.port == nil
|
1346
|
+
plumbing.tls_required = (porcelain.tls_required) unless porcelain.tls_required == nil
|
1347
|
+
plumbing
|
1348
|
+
end
|
1349
|
+
def self.convert_repeated_db_2_i_to_plumbing(porcelains)
|
1350
|
+
items = Array.new
|
1351
|
+
porcelains.each do |porcelain|
|
1352
|
+
plumbing = convert_db_2_i_to_plumbing(porcelain)
|
1353
|
+
items.append(plumbing)
|
1354
|
+
end
|
1355
|
+
items
|
1356
|
+
end
|
1357
|
+
|
1358
|
+
def self.convert_repeated_db_2_i_to_porcelain(plumbings)
|
1359
|
+
items = Array.new
|
1360
|
+
plumbings.each do |plumbing|
|
1361
|
+
porcelain = convert_db_2_i_to_porcelain(plumbing)
|
1362
|
+
items.append(porcelain)
|
1363
|
+
end
|
1364
|
+
items
|
1365
|
+
end
|
1366
|
+
def self.convert_db_2_luw_to_porcelain(plumbing)
|
1367
|
+
if plumbing == nil
|
1368
|
+
return nil
|
1369
|
+
end
|
1370
|
+
porcelain = DB2LUW.new()
|
1371
|
+
porcelain.id = (plumbing.id)
|
1372
|
+
porcelain.name = (plumbing.name)
|
1373
|
+
porcelain.healthy = (plumbing.healthy)
|
1374
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
1375
|
+
porcelain.hostname = (plumbing.hostname)
|
1376
|
+
porcelain.username = (plumbing.username)
|
1377
|
+
porcelain.password = (plumbing.password)
|
1378
|
+
porcelain.database = (plumbing.database)
|
1379
|
+
porcelain.port_override = (plumbing.port_override)
|
1380
|
+
porcelain.port = (plumbing.port)
|
1381
|
+
porcelain
|
1382
|
+
end
|
1383
|
+
|
1384
|
+
def self.convert_db_2_luw_to_plumbing(porcelain)
|
1385
|
+
if porcelain == nil
|
1386
|
+
return nil
|
1387
|
+
end
|
1388
|
+
plumbing = V1::DB2LUW.new()
|
1389
|
+
plumbing.id = (porcelain.id) unless porcelain.id == nil
|
1390
|
+
plumbing.name = (porcelain.name) unless porcelain.name == nil
|
1391
|
+
plumbing.healthy = (porcelain.healthy) unless porcelain.healthy == nil
|
1392
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
1393
|
+
plumbing.hostname = (porcelain.hostname) unless porcelain.hostname == nil
|
1394
|
+
plumbing.username = (porcelain.username) unless porcelain.username == nil
|
1395
|
+
plumbing.password = (porcelain.password) unless porcelain.password == nil
|
1396
|
+
plumbing.database = (porcelain.database) unless porcelain.database == nil
|
1397
|
+
plumbing.port_override = (porcelain.port_override) unless porcelain.port_override == nil
|
1398
|
+
plumbing.port = (porcelain.port) unless porcelain.port == nil
|
1399
|
+
plumbing
|
1400
|
+
end
|
1401
|
+
def self.convert_repeated_db_2_luw_to_plumbing(porcelains)
|
1402
|
+
items = Array.new
|
1403
|
+
porcelains.each do |porcelain|
|
1404
|
+
plumbing = convert_db_2_luw_to_plumbing(porcelain)
|
1405
|
+
items.append(plumbing)
|
1406
|
+
end
|
1407
|
+
items
|
1408
|
+
end
|
1409
|
+
|
1410
|
+
def self.convert_repeated_db_2_luw_to_porcelain(plumbings)
|
1411
|
+
items = Array.new
|
1412
|
+
plumbings.each do |plumbing|
|
1413
|
+
porcelain = convert_db_2_luw_to_porcelain(plumbing)
|
1414
|
+
items.append(porcelain)
|
1415
|
+
end
|
1416
|
+
items
|
1417
|
+
end
|
1320
1418
|
def self.convert_druid_to_porcelain(plumbing)
|
1321
1419
|
if plumbing == nil
|
1322
1420
|
return nil
|
@@ -1667,61 +1765,57 @@ module SDM
|
|
1667
1765
|
items
|
1668
1766
|
end
|
1669
1767
|
|
1670
|
-
|
1671
|
-
|
1672
|
-
|
1673
|
-
|
1674
|
-
|
1675
|
-
|
1676
|
-
|
1677
|
-
|
1678
|
-
|
1679
|
-
|
1680
|
-
|
1681
|
-
|
1682
|
-
|
1683
|
-
|
1684
|
-
|
1685
|
-
|
1686
|
-
|
1687
|
-
|
1688
|
-
|
1689
|
-
|
1690
|
-
|
1691
|
-
|
1692
|
-
|
1693
|
-
|
1694
|
-
|
1695
|
-
porcelain
|
1696
|
-
end
|
1768
|
+
def self.convert_repeated_http_auth_to_porcelain(plumbings)
|
1769
|
+
items = Array.new
|
1770
|
+
plumbings.each do |plumbing|
|
1771
|
+
porcelain = convert_http_auth_to_porcelain(plumbing)
|
1772
|
+
items.append(porcelain)
|
1773
|
+
end
|
1774
|
+
items
|
1775
|
+
end
|
1776
|
+
def self.convert_kubernetes_to_porcelain(plumbing)
|
1777
|
+
if plumbing == nil
|
1778
|
+
return nil
|
1779
|
+
end
|
1780
|
+
porcelain = Kubernetes.new()
|
1781
|
+
porcelain.id = (plumbing.id)
|
1782
|
+
porcelain.name = (plumbing.name)
|
1783
|
+
porcelain.healthy = (plumbing.healthy)
|
1784
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
1785
|
+
porcelain.hostname = (plumbing.hostname)
|
1786
|
+
porcelain.port = (plumbing.port)
|
1787
|
+
porcelain.certificate_authority = (plumbing.certificate_authority)
|
1788
|
+
porcelain.client_certificate = (plumbing.client_certificate)
|
1789
|
+
porcelain.client_key = (plumbing.client_key)
|
1790
|
+
porcelain.healthcheck_namespace = (plumbing.healthcheck_namespace)
|
1791
|
+
porcelain
|
1792
|
+
end
|
1697
1793
|
|
1698
|
-
|
1699
|
-
|
1700
|
-
|
1701
|
-
|
1702
|
-
|
1703
|
-
|
1704
|
-
|
1705
|
-
|
1706
|
-
|
1707
|
-
|
1708
|
-
|
1709
|
-
|
1710
|
-
|
1711
|
-
|
1712
|
-
|
1713
|
-
|
1714
|
-
|
1715
|
-
|
1716
|
-
|
1717
|
-
|
1718
|
-
|
1719
|
-
|
1720
|
-
|
1721
|
-
|
1722
|
-
|
1723
|
-
items
|
1724
|
-
end
|
1794
|
+
def self.convert_kubernetes_to_plumbing(porcelain)
|
1795
|
+
if porcelain == nil
|
1796
|
+
return nil
|
1797
|
+
end
|
1798
|
+
plumbing = V1::Kubernetes.new()
|
1799
|
+
plumbing.id = (porcelain.id) unless porcelain.id == nil
|
1800
|
+
plumbing.name = (porcelain.name) unless porcelain.name == nil
|
1801
|
+
plumbing.healthy = (porcelain.healthy) unless porcelain.healthy == nil
|
1802
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
1803
|
+
plumbing.hostname = (porcelain.hostname) unless porcelain.hostname == nil
|
1804
|
+
plumbing.port = (porcelain.port) unless porcelain.port == nil
|
1805
|
+
plumbing.certificate_authority = (porcelain.certificate_authority) unless porcelain.certificate_authority == nil
|
1806
|
+
plumbing.client_certificate = (porcelain.client_certificate) unless porcelain.client_certificate == nil
|
1807
|
+
plumbing.client_key = (porcelain.client_key) unless porcelain.client_key == nil
|
1808
|
+
plumbing.healthcheck_namespace = (porcelain.healthcheck_namespace) unless porcelain.healthcheck_namespace == nil
|
1809
|
+
plumbing
|
1810
|
+
end
|
1811
|
+
def self.convert_repeated_kubernetes_to_plumbing(porcelains)
|
1812
|
+
items = Array.new
|
1813
|
+
porcelains.each do |porcelain|
|
1814
|
+
plumbing = convert_kubernetes_to_plumbing(porcelain)
|
1815
|
+
items.append(plumbing)
|
1816
|
+
end
|
1817
|
+
items
|
1818
|
+
end
|
1725
1819
|
|
1726
1820
|
def self.convert_repeated_kubernetes_to_porcelain(plumbings)
|
1727
1821
|
items = Array.new
|
@@ -1744,6 +1838,7 @@ module SDM
|
|
1744
1838
|
porcelain.port = (plumbing.port)
|
1745
1839
|
porcelain.username = (plumbing.username)
|
1746
1840
|
porcelain.password = (plumbing.password)
|
1841
|
+
porcelain.healthcheck_namespace = (plumbing.healthcheck_namespace)
|
1747
1842
|
porcelain
|
1748
1843
|
end
|
1749
1844
|
|
@@ -1760,6 +1855,7 @@ module SDM
|
|
1760
1855
|
plumbing.port = (porcelain.port) unless porcelain.port == nil
|
1761
1856
|
plumbing.username = (porcelain.username) unless porcelain.username == nil
|
1762
1857
|
plumbing.password = (porcelain.password) unless porcelain.password == nil
|
1858
|
+
plumbing.healthcheck_namespace = (porcelain.healthcheck_namespace) unless porcelain.healthcheck_namespace == nil
|
1763
1859
|
plumbing
|
1764
1860
|
end
|
1765
1861
|
def self.convert_repeated_kubernetes_basic_auth_to_plumbing(porcelains)
|
@@ -1791,6 +1887,7 @@ module SDM
|
|
1791
1887
|
porcelain.hostname = (plumbing.hostname)
|
1792
1888
|
porcelain.port = (plumbing.port)
|
1793
1889
|
porcelain.token = (plumbing.token)
|
1890
|
+
porcelain.healthcheck_namespace = (plumbing.healthcheck_namespace)
|
1794
1891
|
porcelain
|
1795
1892
|
end
|
1796
1893
|
|
@@ -1806,6 +1903,7 @@ module SDM
|
|
1806
1903
|
plumbing.hostname = (porcelain.hostname) unless porcelain.hostname == nil
|
1807
1904
|
plumbing.port = (porcelain.port) unless porcelain.port == nil
|
1808
1905
|
plumbing.token = (porcelain.token) unless porcelain.token == nil
|
1906
|
+
plumbing.healthcheck_namespace = (porcelain.healthcheck_namespace) unless porcelain.healthcheck_namespace == nil
|
1809
1907
|
plumbing
|
1810
1908
|
end
|
1811
1909
|
def self.convert_repeated_kubernetes_service_account_to_plumbing(porcelains)
|
@@ -1817,167 +1915,161 @@ module SDM
|
|
1817
1915
|
items
|
1818
1916
|
end
|
1819
1917
|
|
1820
|
-
|
1821
|
-
|
1822
|
-
|
1823
|
-
|
1824
|
-
|
1825
|
-
|
1826
|
-
|
1827
|
-
|
1828
|
-
|
1829
|
-
|
1830
|
-
|
1831
|
-
|
1832
|
-
|
1833
|
-
|
1834
|
-
|
1835
|
-
|
1836
|
-
|
1837
|
-
|
1838
|
-
|
1839
|
-
|
1840
|
-
|
1841
|
-
|
1842
|
-
|
1843
|
-
|
1844
|
-
|
1845
|
-
|
1846
|
-
|
1918
|
+
def self.convert_repeated_kubernetes_service_account_to_porcelain(plumbings)
|
1919
|
+
items = Array.new
|
1920
|
+
plumbings.each do |plumbing|
|
1921
|
+
porcelain = convert_kubernetes_service_account_to_porcelain(plumbing)
|
1922
|
+
items.append(porcelain)
|
1923
|
+
end
|
1924
|
+
items
|
1925
|
+
end
|
1926
|
+
def self.convert_amazon_eks_to_porcelain(plumbing)
|
1927
|
+
if plumbing == nil
|
1928
|
+
return nil
|
1929
|
+
end
|
1930
|
+
porcelain = AmazonEKS.new()
|
1931
|
+
porcelain.id = (plumbing.id)
|
1932
|
+
porcelain.name = (plumbing.name)
|
1933
|
+
porcelain.healthy = (plumbing.healthy)
|
1934
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
1935
|
+
porcelain.endpoint = (plumbing.endpoint)
|
1936
|
+
porcelain.access_key = (plumbing.access_key)
|
1937
|
+
porcelain.secret_access_key = (plumbing.secret_access_key)
|
1938
|
+
porcelain.certificate_authority = (plumbing.certificate_authority)
|
1939
|
+
porcelain.region = (plumbing.region)
|
1940
|
+
porcelain.cluster_name = (plumbing.cluster_name)
|
1941
|
+
porcelain.role_arn = (plumbing.role_arn)
|
1942
|
+
porcelain.healthcheck_namespace = (plumbing.healthcheck_namespace)
|
1943
|
+
porcelain
|
1944
|
+
end
|
1847
1945
|
|
1848
|
-
|
1849
|
-
|
1850
|
-
|
1851
|
-
|
1852
|
-
|
1853
|
-
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
1858
|
-
|
1859
|
-
|
1860
|
-
|
1861
|
-
|
1862
|
-
|
1863
|
-
|
1864
|
-
|
1865
|
-
|
1866
|
-
|
1867
|
-
|
1868
|
-
|
1869
|
-
|
1870
|
-
|
1871
|
-
|
1872
|
-
|
1873
|
-
|
1874
|
-
|
1946
|
+
def self.convert_amazon_eks_to_plumbing(porcelain)
|
1947
|
+
if porcelain == nil
|
1948
|
+
return nil
|
1949
|
+
end
|
1950
|
+
plumbing = V1::AmazonEKS.new()
|
1951
|
+
plumbing.id = (porcelain.id) unless porcelain.id == nil
|
1952
|
+
plumbing.name = (porcelain.name) unless porcelain.name == nil
|
1953
|
+
plumbing.healthy = (porcelain.healthy) unless porcelain.healthy == nil
|
1954
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
1955
|
+
plumbing.endpoint = (porcelain.endpoint) unless porcelain.endpoint == nil
|
1956
|
+
plumbing.access_key = (porcelain.access_key) unless porcelain.access_key == nil
|
1957
|
+
plumbing.secret_access_key = (porcelain.secret_access_key) unless porcelain.secret_access_key == nil
|
1958
|
+
plumbing.certificate_authority = (porcelain.certificate_authority) unless porcelain.certificate_authority == nil
|
1959
|
+
plumbing.region = (porcelain.region) unless porcelain.region == nil
|
1960
|
+
plumbing.cluster_name = (porcelain.cluster_name) unless porcelain.cluster_name == nil
|
1961
|
+
plumbing.role_arn = (porcelain.role_arn) unless porcelain.role_arn == nil
|
1962
|
+
plumbing.healthcheck_namespace = (porcelain.healthcheck_namespace) unless porcelain.healthcheck_namespace == nil
|
1963
|
+
plumbing
|
1964
|
+
end
|
1965
|
+
def self.convert_repeated_amazon_eks_to_plumbing(porcelains)
|
1966
|
+
items = Array.new
|
1967
|
+
porcelains.each do |porcelain|
|
1968
|
+
plumbing = convert_amazon_eks_to_plumbing(porcelain)
|
1969
|
+
items.append(plumbing)
|
1970
|
+
end
|
1971
|
+
items
|
1972
|
+
end
|
1875
1973
|
|
1876
|
-
|
1877
|
-
|
1878
|
-
|
1879
|
-
|
1880
|
-
|
1881
|
-
|
1882
|
-
|
1883
|
-
|
1884
|
-
|
1885
|
-
|
1886
|
-
|
1887
|
-
|
1888
|
-
|
1889
|
-
|
1890
|
-
|
1891
|
-
|
1892
|
-
|
1893
|
-
|
1894
|
-
|
1895
|
-
|
1896
|
-
|
1897
|
-
|
1898
|
-
|
1899
|
-
end
|
1974
|
+
def self.convert_repeated_amazon_eks_to_porcelain(plumbings)
|
1975
|
+
items = Array.new
|
1976
|
+
plumbings.each do |plumbing|
|
1977
|
+
porcelain = convert_amazon_eks_to_porcelain(plumbing)
|
1978
|
+
items.append(porcelain)
|
1979
|
+
end
|
1980
|
+
items
|
1981
|
+
end
|
1982
|
+
def self.convert_google_gke_to_porcelain(plumbing)
|
1983
|
+
if plumbing == nil
|
1984
|
+
return nil
|
1985
|
+
end
|
1986
|
+
porcelain = GoogleGKE.new()
|
1987
|
+
porcelain.id = (plumbing.id)
|
1988
|
+
porcelain.name = (plumbing.name)
|
1989
|
+
porcelain.healthy = (plumbing.healthy)
|
1990
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
1991
|
+
porcelain.endpoint = (plumbing.endpoint)
|
1992
|
+
porcelain.certificate_authority = (plumbing.certificate_authority)
|
1993
|
+
porcelain.service_account_key = (plumbing.service_account_key)
|
1994
|
+
porcelain.healthcheck_namespace = (plumbing.healthcheck_namespace)
|
1995
|
+
porcelain
|
1996
|
+
end
|
1900
1997
|
|
1901
|
-
|
1902
|
-
|
1903
|
-
|
1904
|
-
|
1905
|
-
|
1906
|
-
|
1907
|
-
|
1908
|
-
|
1909
|
-
|
1910
|
-
|
1911
|
-
|
1912
|
-
|
1913
|
-
|
1914
|
-
|
1915
|
-
|
1916
|
-
|
1917
|
-
|
1918
|
-
|
1919
|
-
|
1920
|
-
|
1921
|
-
|
1922
|
-
|
1923
|
-
|
1924
|
-
end
|
1998
|
+
def self.convert_google_gke_to_plumbing(porcelain)
|
1999
|
+
if porcelain == nil
|
2000
|
+
return nil
|
2001
|
+
end
|
2002
|
+
plumbing = V1::GoogleGKE.new()
|
2003
|
+
plumbing.id = (porcelain.id) unless porcelain.id == nil
|
2004
|
+
plumbing.name = (porcelain.name) unless porcelain.name == nil
|
2005
|
+
plumbing.healthy = (porcelain.healthy) unless porcelain.healthy == nil
|
2006
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
2007
|
+
plumbing.endpoint = (porcelain.endpoint) unless porcelain.endpoint == nil
|
2008
|
+
plumbing.certificate_authority = (porcelain.certificate_authority) unless porcelain.certificate_authority == nil
|
2009
|
+
plumbing.service_account_key = (porcelain.service_account_key) unless porcelain.service_account_key == nil
|
2010
|
+
plumbing.healthcheck_namespace = (porcelain.healthcheck_namespace) unless porcelain.healthcheck_namespace == nil
|
2011
|
+
plumbing
|
2012
|
+
end
|
2013
|
+
def self.convert_repeated_google_gke_to_plumbing(porcelains)
|
2014
|
+
items = Array.new
|
2015
|
+
porcelains.each do |porcelain|
|
2016
|
+
plumbing = convert_google_gke_to_plumbing(porcelain)
|
2017
|
+
items.append(plumbing)
|
2018
|
+
end
|
2019
|
+
items
|
2020
|
+
end
|
1925
2021
|
|
1926
|
-
|
1927
|
-
|
1928
|
-
|
1929
|
-
|
1930
|
-
|
1931
|
-
|
1932
|
-
|
1933
|
-
|
1934
|
-
|
1935
|
-
|
1936
|
-
|
1937
|
-
|
1938
|
-
|
1939
|
-
|
1940
|
-
|
1941
|
-
|
1942
|
-
|
1943
|
-
|
1944
|
-
|
1945
|
-
|
1946
|
-
|
1947
|
-
|
1948
|
-
|
1949
|
-
|
1950
|
-
|
1951
|
-
porcelain
|
1952
|
-
end
|
2022
|
+
def self.convert_repeated_google_gke_to_porcelain(plumbings)
|
2023
|
+
items = Array.new
|
2024
|
+
plumbings.each do |plumbing|
|
2025
|
+
porcelain = convert_google_gke_to_porcelain(plumbing)
|
2026
|
+
items.append(porcelain)
|
2027
|
+
end
|
2028
|
+
items
|
2029
|
+
end
|
2030
|
+
def self.convert_aks_to_porcelain(plumbing)
|
2031
|
+
if plumbing == nil
|
2032
|
+
return nil
|
2033
|
+
end
|
2034
|
+
porcelain = AKS.new()
|
2035
|
+
porcelain.id = (plumbing.id)
|
2036
|
+
porcelain.name = (plumbing.name)
|
2037
|
+
porcelain.healthy = (plumbing.healthy)
|
2038
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
2039
|
+
porcelain.hostname = (plumbing.hostname)
|
2040
|
+
porcelain.port = (plumbing.port)
|
2041
|
+
porcelain.certificate_authority = (plumbing.certificate_authority)
|
2042
|
+
porcelain.client_certificate = (plumbing.client_certificate)
|
2043
|
+
porcelain.client_key = (plumbing.client_key)
|
2044
|
+
porcelain.healthcheck_namespace = (plumbing.healthcheck_namespace)
|
2045
|
+
porcelain
|
2046
|
+
end
|
1953
2047
|
|
1954
|
-
|
1955
|
-
|
1956
|
-
|
1957
|
-
|
1958
|
-
|
1959
|
-
|
1960
|
-
|
1961
|
-
|
1962
|
-
|
1963
|
-
|
1964
|
-
|
1965
|
-
|
1966
|
-
|
1967
|
-
|
1968
|
-
|
1969
|
-
|
1970
|
-
|
1971
|
-
|
1972
|
-
|
1973
|
-
|
1974
|
-
|
1975
|
-
|
1976
|
-
|
1977
|
-
|
1978
|
-
|
1979
|
-
items
|
1980
|
-
end
|
2048
|
+
def self.convert_aks_to_plumbing(porcelain)
|
2049
|
+
if porcelain == nil
|
2050
|
+
return nil
|
2051
|
+
end
|
2052
|
+
plumbing = V1::AKS.new()
|
2053
|
+
plumbing.id = (porcelain.id) unless porcelain.id == nil
|
2054
|
+
plumbing.name = (porcelain.name) unless porcelain.name == nil
|
2055
|
+
plumbing.healthy = (porcelain.healthy) unless porcelain.healthy == nil
|
2056
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
2057
|
+
plumbing.hostname = (porcelain.hostname) unless porcelain.hostname == nil
|
2058
|
+
plumbing.port = (porcelain.port) unless porcelain.port == nil
|
2059
|
+
plumbing.certificate_authority = (porcelain.certificate_authority) unless porcelain.certificate_authority == nil
|
2060
|
+
plumbing.client_certificate = (porcelain.client_certificate) unless porcelain.client_certificate == nil
|
2061
|
+
plumbing.client_key = (porcelain.client_key) unless porcelain.client_key == nil
|
2062
|
+
plumbing.healthcheck_namespace = (porcelain.healthcheck_namespace) unless porcelain.healthcheck_namespace == nil
|
2063
|
+
plumbing
|
2064
|
+
end
|
2065
|
+
def self.convert_repeated_aks_to_plumbing(porcelains)
|
2066
|
+
items = Array.new
|
2067
|
+
porcelains.each do |porcelain|
|
2068
|
+
plumbing = convert_aks_to_plumbing(porcelain)
|
2069
|
+
items.append(plumbing)
|
2070
|
+
end
|
2071
|
+
items
|
2072
|
+
end
|
1981
2073
|
|
1982
2074
|
def self.convert_repeated_aks_to_porcelain(plumbings)
|
1983
2075
|
items = Array.new
|
@@ -2000,6 +2092,7 @@ module SDM
|
|
2000
2092
|
porcelain.port = (plumbing.port)
|
2001
2093
|
porcelain.username = (plumbing.username)
|
2002
2094
|
porcelain.password = (plumbing.password)
|
2095
|
+
porcelain.healthcheck_namespace = (plumbing.healthcheck_namespace)
|
2003
2096
|
porcelain
|
2004
2097
|
end
|
2005
2098
|
|
@@ -2016,6 +2109,7 @@ module SDM
|
|
2016
2109
|
plumbing.port = (porcelain.port) unless porcelain.port == nil
|
2017
2110
|
plumbing.username = (porcelain.username) unless porcelain.username == nil
|
2018
2111
|
plumbing.password = (porcelain.password) unless porcelain.password == nil
|
2112
|
+
plumbing.healthcheck_namespace = (porcelain.healthcheck_namespace) unless porcelain.healthcheck_namespace == nil
|
2019
2113
|
plumbing
|
2020
2114
|
end
|
2021
2115
|
def self.convert_repeated_aks_basic_auth_to_plumbing(porcelains)
|
@@ -2047,6 +2141,7 @@ module SDM
|
|
2047
2141
|
porcelain.hostname = (plumbing.hostname)
|
2048
2142
|
porcelain.port = (plumbing.port)
|
2049
2143
|
porcelain.token = (plumbing.token)
|
2144
|
+
porcelain.healthcheck_namespace = (plumbing.healthcheck_namespace)
|
2050
2145
|
porcelain
|
2051
2146
|
end
|
2052
2147
|
|
@@ -2062,6 +2157,7 @@ module SDM
|
|
2062
2157
|
plumbing.hostname = (porcelain.hostname) unless porcelain.hostname == nil
|
2063
2158
|
plumbing.port = (porcelain.port) unless porcelain.port == nil
|
2064
2159
|
plumbing.token = (porcelain.token) unless porcelain.token == nil
|
2160
|
+
plumbing.healthcheck_namespace = (porcelain.healthcheck_namespace) unless porcelain.healthcheck_namespace == nil
|
2065
2161
|
plumbing
|
2066
2162
|
end
|
2067
2163
|
def self.convert_repeated_aks_service_account_to_plumbing(porcelains)
|
@@ -2937,6 +3033,60 @@ module SDM
|
|
2937
3033
|
end
|
2938
3034
|
items
|
2939
3035
|
end
|
3036
|
+
def self.convert_citus_to_porcelain(plumbing)
|
3037
|
+
if plumbing == nil
|
3038
|
+
return nil
|
3039
|
+
end
|
3040
|
+
porcelain = Citus.new()
|
3041
|
+
porcelain.id = (plumbing.id)
|
3042
|
+
porcelain.name = (plumbing.name)
|
3043
|
+
porcelain.healthy = (plumbing.healthy)
|
3044
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
3045
|
+
porcelain.hostname = (plumbing.hostname)
|
3046
|
+
porcelain.username = (plumbing.username)
|
3047
|
+
porcelain.password = (plumbing.password)
|
3048
|
+
porcelain.database = (plumbing.database)
|
3049
|
+
porcelain.port_override = (plumbing.port_override)
|
3050
|
+
porcelain.port = (plumbing.port)
|
3051
|
+
porcelain.override_database = (plumbing.override_database)
|
3052
|
+
porcelain
|
3053
|
+
end
|
3054
|
+
|
3055
|
+
def self.convert_citus_to_plumbing(porcelain)
|
3056
|
+
if porcelain == nil
|
3057
|
+
return nil
|
3058
|
+
end
|
3059
|
+
plumbing = V1::Citus.new()
|
3060
|
+
plumbing.id = (porcelain.id) unless porcelain.id == nil
|
3061
|
+
plumbing.name = (porcelain.name) unless porcelain.name == nil
|
3062
|
+
plumbing.healthy = (porcelain.healthy) unless porcelain.healthy == nil
|
3063
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
3064
|
+
plumbing.hostname = (porcelain.hostname) unless porcelain.hostname == nil
|
3065
|
+
plumbing.username = (porcelain.username) unless porcelain.username == nil
|
3066
|
+
plumbing.password = (porcelain.password) unless porcelain.password == nil
|
3067
|
+
plumbing.database = (porcelain.database) unless porcelain.database == nil
|
3068
|
+
plumbing.port_override = (porcelain.port_override) unless porcelain.port_override == nil
|
3069
|
+
plumbing.port = (porcelain.port) unless porcelain.port == nil
|
3070
|
+
plumbing.override_database = (porcelain.override_database) unless porcelain.override_database == nil
|
3071
|
+
plumbing
|
3072
|
+
end
|
3073
|
+
def self.convert_repeated_citus_to_plumbing(porcelains)
|
3074
|
+
items = Array.new
|
3075
|
+
porcelains.each do |porcelain|
|
3076
|
+
plumbing = convert_citus_to_plumbing(porcelain)
|
3077
|
+
items.append(plumbing)
|
3078
|
+
end
|
3079
|
+
items
|
3080
|
+
end
|
3081
|
+
|
3082
|
+
def self.convert_repeated_citus_to_porcelain(plumbings)
|
3083
|
+
items = Array.new
|
3084
|
+
plumbings.each do |plumbing|
|
3085
|
+
porcelain = convert_citus_to_porcelain(plumbing)
|
3086
|
+
items.append(porcelain)
|
3087
|
+
end
|
3088
|
+
items
|
3089
|
+
end
|
2940
3090
|
def self.convert_presto_to_porcelain(plumbing)
|
2941
3091
|
if plumbing == nil
|
2942
3092
|
return nil
|
@@ -3261,6 +3411,7 @@ module SDM
|
|
3261
3411
|
porcelain.port = (plumbing.port)
|
3262
3412
|
porcelain.public_key = (plumbing.public_key)
|
3263
3413
|
porcelain.port_forwarding = (plumbing.port_forwarding)
|
3414
|
+
porcelain.allow_deprecated_key_exchanges = (plumbing.allow_deprecated_key_exchanges)
|
3264
3415
|
porcelain
|
3265
3416
|
end
|
3266
3417
|
|
@@ -3278,6 +3429,7 @@ module SDM
|
|
3278
3429
|
plumbing.port = (porcelain.port) unless porcelain.port == nil
|
3279
3430
|
plumbing.public_key = (porcelain.public_key) unless porcelain.public_key == nil
|
3280
3431
|
plumbing.port_forwarding = (porcelain.port_forwarding) unless porcelain.port_forwarding == nil
|
3432
|
+
plumbing.allow_deprecated_key_exchanges = (porcelain.allow_deprecated_key_exchanges) unless porcelain.allow_deprecated_key_exchanges == nil
|
3281
3433
|
plumbing
|
3282
3434
|
end
|
3283
3435
|
def self.convert_repeated_ssh_to_plumbing(porcelains)
|
@@ -3297,6 +3449,56 @@ module SDM
|
|
3297
3449
|
end
|
3298
3450
|
items
|
3299
3451
|
end
|
3452
|
+
def self.convert_ssh_cert_to_porcelain(plumbing)
|
3453
|
+
if plumbing == nil
|
3454
|
+
return nil
|
3455
|
+
end
|
3456
|
+
porcelain = SSHCert.new()
|
3457
|
+
porcelain.id = (plumbing.id)
|
3458
|
+
porcelain.name = (plumbing.name)
|
3459
|
+
porcelain.healthy = (plumbing.healthy)
|
3460
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
3461
|
+
porcelain.hostname = (plumbing.hostname)
|
3462
|
+
porcelain.username = (plumbing.username)
|
3463
|
+
porcelain.port = (plumbing.port)
|
3464
|
+
porcelain.port_forwarding = (plumbing.port_forwarding)
|
3465
|
+
porcelain.allow_deprecated_key_exchanges = (plumbing.allow_deprecated_key_exchanges)
|
3466
|
+
porcelain
|
3467
|
+
end
|
3468
|
+
|
3469
|
+
def self.convert_ssh_cert_to_plumbing(porcelain)
|
3470
|
+
if porcelain == nil
|
3471
|
+
return nil
|
3472
|
+
end
|
3473
|
+
plumbing = V1::SSHCert.new()
|
3474
|
+
plumbing.id = (porcelain.id) unless porcelain.id == nil
|
3475
|
+
plumbing.name = (porcelain.name) unless porcelain.name == nil
|
3476
|
+
plumbing.healthy = (porcelain.healthy) unless porcelain.healthy == nil
|
3477
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
3478
|
+
plumbing.hostname = (porcelain.hostname) unless porcelain.hostname == nil
|
3479
|
+
plumbing.username = (porcelain.username) unless porcelain.username == nil
|
3480
|
+
plumbing.port = (porcelain.port) unless porcelain.port == nil
|
3481
|
+
plumbing.port_forwarding = (porcelain.port_forwarding) unless porcelain.port_forwarding == nil
|
3482
|
+
plumbing.allow_deprecated_key_exchanges = (porcelain.allow_deprecated_key_exchanges) unless porcelain.allow_deprecated_key_exchanges == nil
|
3483
|
+
plumbing
|
3484
|
+
end
|
3485
|
+
def self.convert_repeated_ssh_cert_to_plumbing(porcelains)
|
3486
|
+
items = Array.new
|
3487
|
+
porcelains.each do |porcelain|
|
3488
|
+
plumbing = convert_ssh_cert_to_plumbing(porcelain)
|
3489
|
+
items.append(plumbing)
|
3490
|
+
end
|
3491
|
+
items
|
3492
|
+
end
|
3493
|
+
|
3494
|
+
def self.convert_repeated_ssh_cert_to_porcelain(plumbings)
|
3495
|
+
items = Array.new
|
3496
|
+
plumbings.each do |plumbing|
|
3497
|
+
porcelain = convert_ssh_cert_to_porcelain(plumbing)
|
3498
|
+
items.append(porcelain)
|
3499
|
+
end
|
3500
|
+
items
|
3501
|
+
end
|
3300
3502
|
def self.convert_sybase_to_porcelain(plumbing)
|
3301
3503
|
if plumbing == nil
|
3302
3504
|
return nil
|
@@ -3649,6 +3851,7 @@ module SDM
|
|
3649
3851
|
porcelain.id = (plumbing.id)
|
3650
3852
|
porcelain.name = (plumbing.name)
|
3651
3853
|
porcelain.state = (plumbing.state)
|
3854
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
3652
3855
|
porcelain
|
3653
3856
|
end
|
3654
3857
|
|
@@ -3660,6 +3863,7 @@ module SDM
|
|
3660
3863
|
plumbing.id = (porcelain.id) unless porcelain.id == nil
|
3661
3864
|
plumbing.name = (porcelain.name) unless porcelain.name == nil
|
3662
3865
|
plumbing.state = (porcelain.state) unless porcelain.state == nil
|
3866
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
3663
3867
|
plumbing
|
3664
3868
|
end
|
3665
3869
|
def self.convert_repeated_relay_to_plumbing(porcelains)
|
@@ -3689,6 +3893,7 @@ module SDM
|
|
3689
3893
|
porcelain.state = (plumbing.state)
|
3690
3894
|
porcelain.listen_address = (plumbing.listen_address)
|
3691
3895
|
porcelain.bind_address = (plumbing.bind_address)
|
3896
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
3692
3897
|
porcelain
|
3693
3898
|
end
|
3694
3899
|
|
@@ -3702,6 +3907,7 @@ module SDM
|
|
3702
3907
|
plumbing.state = (porcelain.state) unless porcelain.state == nil
|
3703
3908
|
plumbing.listen_address = (porcelain.listen_address) unless porcelain.listen_address == nil
|
3704
3909
|
plumbing.bind_address = (porcelain.bind_address) unless porcelain.bind_address == nil
|
3910
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
3705
3911
|
plumbing
|
3706
3912
|
end
|
3707
3913
|
def self.convert_repeated_gateway_to_plumbing(porcelains)
|
@@ -4329,6 +4535,7 @@ module SDM
|
|
4329
4535
|
porcelain.id = (plumbing.id)
|
4330
4536
|
porcelain.name = (plumbing.name)
|
4331
4537
|
porcelain.composite = (plumbing.composite)
|
4538
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
4332
4539
|
porcelain
|
4333
4540
|
end
|
4334
4541
|
|
@@ -4340,6 +4547,7 @@ module SDM
|
|
4340
4547
|
plumbing.id = (porcelain.id) unless porcelain.id == nil
|
4341
4548
|
plumbing.name = (porcelain.name) unless porcelain.name == nil
|
4342
4549
|
plumbing.composite = (porcelain.composite) unless porcelain.composite == nil
|
4550
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
4343
4551
|
plumbing
|
4344
4552
|
end
|
4345
4553
|
def self.convert_repeated_role_to_plumbing(porcelains)
|