strongdm 1.0.7 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +28 -6
- data/doc/LICENSE.html +1 -11
- data/doc/Object.html +1 -679
- data/doc/README_md.html +32 -19
- data/doc/SDM.html +1 -1
- data/doc/SDM/AKS.html +4 -58
- data/doc/SDM/AKSBasicAuth.html +3 -3
- data/doc/SDM/AKSServiceAccount.html +3 -3
- data/doc/SDM/AccountAttachment.html +2 -2
- data/doc/SDM/AccountAttachmentCreateResponse.html +1 -1
- data/doc/SDM/AccountAttachmentDeleteResponse.html +1 -1
- data/doc/SDM/AccountAttachmentGetResponse.html +1 -1
- data/doc/SDM/AccountAttachments.html +2 -2
- data/doc/SDM/AccountCreateResponse.html +1 -1
- data/doc/SDM/AccountDeleteResponse.html +1 -1
- data/doc/SDM/AccountGetResponse.html +1 -1
- data/doc/SDM/AccountGrant.html +1 -1
- data/doc/SDM/AccountGrantCreateResponse.html +1 -1
- data/doc/SDM/AccountGrantDeleteResponse.html +1 -1
- data/doc/SDM/AccountGrantGetResponse.html +1 -1
- data/doc/SDM/AccountGrants.html +1 -1
- data/doc/SDM/AccountUpdateResponse.html +1 -1
- data/doc/SDM/Accounts.html +9 -9
- data/doc/SDM/AlreadyExistsError.html +1 -1
- data/doc/SDM/AmazonEKS.html +4 -22
- 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 +3 -3
- data/doc/SDM/Client.html +26 -12
- data/doc/SDM/Clustrix.html +3 -3
- data/doc/SDM/Cockroach.html +3 -3
- data/doc/SDM/ControlPanel.html +236 -0
- data/doc/SDM/ControlPanelGetSSHCAPublicKeyResponse.html +267 -0
- data/doc/SDM/CreateResponseMetadata.html +1 -1
- data/doc/SDM/{DB2.html → DB2LUW.html} +7 -7
- 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 +4 -4
- data/doc/SDM/GetResponseMetadata.html +1 -1
- data/doc/SDM/GoogleGKE.html +4 -40
- 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 +4 -58
- data/doc/SDM/KubernetesBasicAuth.html +3 -3
- data/doc/SDM/KubernetesServiceAccount.html +3 -3
- 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 +11 -11
- 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 +751 -421
- 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 +4 -4
- 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 +4 -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 +3 -3
- data/doc/SDM/SSHCert.html +3 -3
- data/doc/SDM/Service.html +1 -1
- 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 +1 -1
- data/doc/V1.html +17 -2
- data/doc/V1/AccountAttachments.html +1 -1
- data/doc/V1/AccountAttachments/Service.html +2 -2
- 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 +3 -3
- data/doc/V1/ControlPanel.html +113 -0
- data/doc/V1/ControlPanel/Service.html +119 -0
- data/doc/V1/Nodes.html +1 -1
- data/doc/V1/Nodes/Service.html +5 -5
- 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 -45
- data/doc/css/rdoc.css +13 -5
- data/doc/examples/Gemfile.html +1 -11
- data/doc/index.html +12 -12
- 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 +3 -13
- data/doc/strongdm_gemspec.html +0 -8
- data/doc/table_of_contents.html +232 -172
- data/lib/grpc/account_attachments_services_pb.rb +1 -1
- data/lib/grpc/accounts_services_pb.rb +3 -4
- data/lib/grpc/control_panel_pb.rb +39 -0
- data/lib/grpc/control_panel_services_pb.rb +37 -0
- data/lib/grpc/drivers_pb.rb +17 -12
- data/lib/grpc/nodes_services_pb.rb +3 -4
- data/lib/grpc/plumbing.rb +109 -30
- data/lib/models/porcelain.rb +117 -61
- data/lib/strongdm.rb +10 -9
- data/lib/svc.rb +52 -9
- data/lib/version +5 -5
- data/lib/version.rb +1 -1
- data/strongdm.gemspec +1 -1
- metadata +24 -26
- data/examples/Gemfile.lock +0 -14
- data/examples/README.md +0 -5
- data/examples/ldap-sync/ldapSync.rb +0 -290
- 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
|
@@ -20,10 +20,9 @@ require "accounts_pb"
|
|
|
20
20
|
|
|
21
21
|
module V1
|
|
22
22
|
module Accounts
|
|
23
|
-
# Accounts are users that have access to strongDM.
|
|
24
|
-
#
|
|
25
|
-
#
|
|
26
|
-
# 2. **Service users:** machines that are authneticated using a service token
|
|
23
|
+
# Accounts are users that have access to strongDM. There are two types of accounts:
|
|
24
|
+
# 1. **Users:** humans who are authenticated through username and password or SSO.
|
|
25
|
+
# 2. **Service Accounts:** machines that are authenticated using a service token.
|
|
27
26
|
class Service
|
|
28
27
|
include GRPC::GenericService
|
|
29
28
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Copyright 2020 StrongDM Inc
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
#
|
|
15
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
16
|
+
# source: control_panel.proto
|
|
17
|
+
|
|
18
|
+
require "google/protobuf"
|
|
19
|
+
|
|
20
|
+
require "google/api/annotations_pb"
|
|
21
|
+
require "options_pb"
|
|
22
|
+
require "spec_pb"
|
|
23
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
24
|
+
add_file("control_panel.proto", :syntax => :proto3) do
|
|
25
|
+
add_message "v1.ControlPanelGetSSHCAPublicKeyRequest" do
|
|
26
|
+
optional :meta, :message, 1, "v1.GetRequestMetadata"
|
|
27
|
+
end
|
|
28
|
+
add_message "v1.ControlPanelGetSSHCAPublicKeyResponse" do
|
|
29
|
+
optional :meta, :message, 1, "v1.GetResponseMetadata"
|
|
30
|
+
optional :public_key, :string, 2
|
|
31
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
module V1
|
|
37
|
+
ControlPanelGetSSHCAPublicKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ControlPanelGetSSHCAPublicKeyRequest").msgclass
|
|
38
|
+
ControlPanelGetSSHCAPublicKeyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ControlPanelGetSSHCAPublicKeyResponse").msgclass
|
|
39
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Copyright 2020 StrongDM Inc
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
#
|
|
15
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
16
|
+
# Source: control_panel.proto for package 'v1'
|
|
17
|
+
|
|
18
|
+
require "grpc"
|
|
19
|
+
require "control_panel_pb"
|
|
20
|
+
|
|
21
|
+
module V1
|
|
22
|
+
module ControlPanel
|
|
23
|
+
# ControlPanel contains all administrative controls.
|
|
24
|
+
class Service
|
|
25
|
+
include GRPC::GenericService
|
|
26
|
+
|
|
27
|
+
self.marshal_class_method = :encode
|
|
28
|
+
self.unmarshal_class_method = :decode
|
|
29
|
+
self.service_name = "v1.ControlPanel"
|
|
30
|
+
|
|
31
|
+
# GetSSHCAPublicKey retrieves the SSH CA public key.
|
|
32
|
+
rpc :GetSSHCAPublicKey, ControlPanelGetSSHCAPublicKeyRequest, ControlPanelGetSSHCAPublicKeyResponse
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
Stub = Service.rpc_stub_class
|
|
36
|
+
end
|
|
37
|
+
end
|
data/lib/grpc/drivers_pb.rb
CHANGED
|
@@ -27,7 +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 :
|
|
30
|
+
optional :db_2_i, :message, 2400, "v1.DB2I"
|
|
31
|
+
optional :db_2_luw, :message, 2200, "v1.DB2LUW"
|
|
31
32
|
optional :druid, :message, 400, "v1.Druid"
|
|
32
33
|
optional :dynamo_db, :message, 500, "v1.DynamoDB"
|
|
33
34
|
optional :amazon_es, :message, 600, "v1.AmazonES"
|
|
@@ -107,7 +108,19 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
107
108
|
optional :port, :int32, 5
|
|
108
109
|
optional :tls_required, :bool, 6
|
|
109
110
|
end
|
|
110
|
-
add_message "v1.
|
|
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
|
|
111
124
|
optional :id, :string, 32768
|
|
112
125
|
optional :name, :string, 32769
|
|
113
126
|
optional :healthy, :bool, 32770
|
|
@@ -208,11 +221,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
208
221
|
optional :hostname, :string, 1
|
|
209
222
|
optional :port, :int32, 2
|
|
210
223
|
optional :certificate_authority, :string, 3
|
|
211
|
-
optional :certificate_authority_filename, :string, 4
|
|
212
224
|
optional :client_certificate, :string, 5
|
|
213
|
-
optional :client_certificate_filename, :string, 6
|
|
214
225
|
optional :client_key, :string, 7
|
|
215
|
-
optional :client_key_filename, :string, 8
|
|
216
226
|
optional :healthcheck_namespace, :string, 9
|
|
217
227
|
end
|
|
218
228
|
add_message "v1.KubernetesBasicAuth" do
|
|
@@ -245,7 +255,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
245
255
|
optional :access_key, :string, 2
|
|
246
256
|
optional :secret_access_key, :string, 3
|
|
247
257
|
optional :certificate_authority, :string, 4
|
|
248
|
-
optional :certificate_authority_filename, :string, 5
|
|
249
258
|
optional :region, :string, 6
|
|
250
259
|
optional :cluster_name, :string, 7
|
|
251
260
|
optional :role_arn, :string, 8
|
|
@@ -258,9 +267,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
258
267
|
optional :tags, :message, 32771, "v1.Tags"
|
|
259
268
|
optional :endpoint, :string, 1
|
|
260
269
|
optional :certificate_authority, :string, 2
|
|
261
|
-
optional :certificate_authority_filename, :string, 3
|
|
262
270
|
optional :service_account_key, :string, 4
|
|
263
|
-
optional :service_account_key_filename, :string, 5
|
|
264
271
|
optional :healthcheck_namespace, :string, 6
|
|
265
272
|
end
|
|
266
273
|
add_message "v1.AKS" do
|
|
@@ -271,11 +278,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
271
278
|
optional :hostname, :string, 1
|
|
272
279
|
optional :port, :int32, 2
|
|
273
280
|
optional :certificate_authority, :string, 3
|
|
274
|
-
optional :certificate_authority_filename, :string, 4
|
|
275
281
|
optional :client_certificate, :string, 5
|
|
276
|
-
optional :client_certificate_filename, :string, 6
|
|
277
282
|
optional :client_key, :string, 7
|
|
278
|
-
optional :client_key_filename, :string, 8
|
|
279
283
|
optional :healthcheck_namespace, :string, 9
|
|
280
284
|
end
|
|
281
285
|
add_message "v1.AKSBasicAuth" do
|
|
@@ -651,7 +655,8 @@ module V1
|
|
|
651
655
|
Athena = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Athena").msgclass
|
|
652
656
|
BigQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.BigQuery").msgclass
|
|
653
657
|
Cassandra = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Cassandra").msgclass
|
|
654
|
-
|
|
658
|
+
DB2I = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.DB2I").msgclass
|
|
659
|
+
DB2LUW = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.DB2LUW").msgclass
|
|
655
660
|
Druid = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Druid").msgclass
|
|
656
661
|
DynamoDB = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.DynamoDB").msgclass
|
|
657
662
|
AmazonES = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AmazonES").msgclass
|
|
@@ -20,10 +20,9 @@ require "nodes_pb"
|
|
|
20
20
|
|
|
21
21
|
module V1
|
|
22
22
|
module Nodes
|
|
23
|
-
# Nodes make up the strongDM network, and allow your users to connect securely to your resources.
|
|
24
|
-
#
|
|
25
|
-
#
|
|
26
|
-
# 1. **Gateways:** a relay that also listens for connections from strongDM clients
|
|
23
|
+
# Nodes make up the strongDM network, and allow your users to connect securely to your resources. There are two types of nodes:
|
|
24
|
+
# - **Gateways** are the entry points into network. They listen for connection from the strongDM client, and provide access to databases and servers.
|
|
25
|
+
# - **Relays** are used to extend the strongDM network into segmented subnets. They provide access to databases and servers but do not listen for incoming connections.
|
|
27
26
|
class Service
|
|
28
27
|
include GRPC::GenericService
|
|
29
28
|
|
data/lib/grpc/plumbing.rb
CHANGED
|
@@ -24,6 +24,7 @@ require_relative "./account_attachments_pb"
|
|
|
24
24
|
require_relative "./account_grants_pb"
|
|
25
25
|
require_relative "./tags_pb"
|
|
26
26
|
require_relative "./accounts_pb"
|
|
27
|
+
require_relative "./control_panel_pb"
|
|
27
28
|
require_relative "./drivers_pb"
|
|
28
29
|
require_relative "./nodes_pb"
|
|
29
30
|
require_relative "./resources_pb"
|
|
@@ -840,6 +841,44 @@ module SDM
|
|
|
840
841
|
end
|
|
841
842
|
items
|
|
842
843
|
end
|
|
844
|
+
def self.convert_control_panel_get_sshca_public_key_response_to_porcelain(plumbing)
|
|
845
|
+
if plumbing == nil
|
|
846
|
+
return nil
|
|
847
|
+
end
|
|
848
|
+
porcelain = ControlPanelGetSSHCAPublicKeyResponse.new()
|
|
849
|
+
porcelain.meta = convert_get_response_metadata_to_porcelain(plumbing.meta)
|
|
850
|
+
porcelain.public_key = (plumbing.public_key)
|
|
851
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
|
852
|
+
porcelain
|
|
853
|
+
end
|
|
854
|
+
|
|
855
|
+
def self.convert_control_panel_get_sshca_public_key_response_to_plumbing(porcelain)
|
|
856
|
+
if porcelain == nil
|
|
857
|
+
return nil
|
|
858
|
+
end
|
|
859
|
+
plumbing = V1::ControlPanelGetSSHCAPublicKeyResponse.new()
|
|
860
|
+
plumbing.meta = convert_get_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
|
861
|
+
plumbing.public_key = (porcelain.public_key) unless porcelain.public_key == nil
|
|
862
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
|
863
|
+
plumbing
|
|
864
|
+
end
|
|
865
|
+
def self.convert_repeated_control_panel_get_sshca_public_key_response_to_plumbing(porcelains)
|
|
866
|
+
items = Array.new
|
|
867
|
+
porcelains.each do |porcelain|
|
|
868
|
+
plumbing = convert_control_panel_get_sshca_public_key_response_to_plumbing(porcelain)
|
|
869
|
+
items.append(plumbing)
|
|
870
|
+
end
|
|
871
|
+
items
|
|
872
|
+
end
|
|
873
|
+
|
|
874
|
+
def self.convert_repeated_control_panel_get_sshca_public_key_response_to_porcelain(plumbings)
|
|
875
|
+
items = Array.new
|
|
876
|
+
plumbings.each do |plumbing|
|
|
877
|
+
porcelain = convert_control_panel_get_sshca_public_key_response_to_porcelain(plumbing)
|
|
878
|
+
items.append(porcelain)
|
|
879
|
+
end
|
|
880
|
+
items
|
|
881
|
+
end
|
|
843
882
|
def self.convert_resource_to_plumbing(porcelain)
|
|
844
883
|
if porcelain == nil
|
|
845
884
|
return nil
|
|
@@ -854,8 +893,11 @@ module SDM
|
|
|
854
893
|
if porcelain.instance_of? Cassandra
|
|
855
894
|
plumbing.cassandra = convert_cassandra_to_plumbing(porcelain)
|
|
856
895
|
end
|
|
857
|
-
if porcelain.instance_of?
|
|
858
|
-
plumbing.
|
|
896
|
+
if porcelain.instance_of? DB2I
|
|
897
|
+
plumbing.db_2_i = convert_db_2_i_to_plumbing(porcelain)
|
|
898
|
+
end
|
|
899
|
+
if porcelain.instance_of? DB2LUW
|
|
900
|
+
plumbing.db_2_luw = convert_db_2_luw_to_plumbing(porcelain)
|
|
859
901
|
end
|
|
860
902
|
if porcelain.instance_of? Druid
|
|
861
903
|
plumbing.druid = convert_druid_to_plumbing(porcelain)
|
|
@@ -1002,8 +1044,11 @@ module SDM
|
|
|
1002
1044
|
if plumbing.cassandra != nil
|
|
1003
1045
|
return convert_cassandra_to_porcelain(plumbing.cassandra)
|
|
1004
1046
|
end
|
|
1005
|
-
if plumbing.
|
|
1006
|
-
return
|
|
1047
|
+
if plumbing.db_2_i != nil
|
|
1048
|
+
return convert_db_2_i_to_porcelain(plumbing.db_2_i)
|
|
1049
|
+
end
|
|
1050
|
+
if plumbing.db_2_luw != nil
|
|
1051
|
+
return convert_db_2_luw_to_porcelain(plumbing.db_2_luw)
|
|
1007
1052
|
end
|
|
1008
1053
|
if plumbing.druid != nil
|
|
1009
1054
|
return convert_druid_to_porcelain(plumbing.druid)
|
|
@@ -1304,11 +1349,63 @@ module SDM
|
|
|
1304
1349
|
end
|
|
1305
1350
|
items
|
|
1306
1351
|
end
|
|
1307
|
-
def self.
|
|
1352
|
+
def self.convert_db_2_i_to_porcelain(plumbing)
|
|
1353
|
+
if plumbing == nil
|
|
1354
|
+
return nil
|
|
1355
|
+
end
|
|
1356
|
+
porcelain = DB2I.new()
|
|
1357
|
+
porcelain.id = (plumbing.id)
|
|
1358
|
+
porcelain.name = (plumbing.name)
|
|
1359
|
+
porcelain.healthy = (plumbing.healthy)
|
|
1360
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
|
1361
|
+
porcelain.hostname = (plumbing.hostname)
|
|
1362
|
+
porcelain.username = (plumbing.username)
|
|
1363
|
+
porcelain.password = (plumbing.password)
|
|
1364
|
+
porcelain.port_override = (plumbing.port_override)
|
|
1365
|
+
porcelain.port = (plumbing.port)
|
|
1366
|
+
porcelain.tls_required = (plumbing.tls_required)
|
|
1367
|
+
porcelain
|
|
1368
|
+
end
|
|
1369
|
+
|
|
1370
|
+
def self.convert_db_2_i_to_plumbing(porcelain)
|
|
1371
|
+
if porcelain == nil
|
|
1372
|
+
return nil
|
|
1373
|
+
end
|
|
1374
|
+
plumbing = V1::DB2I.new()
|
|
1375
|
+
plumbing.id = (porcelain.id) unless porcelain.id == nil
|
|
1376
|
+
plumbing.name = (porcelain.name) unless porcelain.name == nil
|
|
1377
|
+
plumbing.healthy = (porcelain.healthy) unless porcelain.healthy == nil
|
|
1378
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
|
1379
|
+
plumbing.hostname = (porcelain.hostname) unless porcelain.hostname == nil
|
|
1380
|
+
plumbing.username = (porcelain.username) unless porcelain.username == nil
|
|
1381
|
+
plumbing.password = (porcelain.password) unless porcelain.password == nil
|
|
1382
|
+
plumbing.port_override = (porcelain.port_override) unless porcelain.port_override == nil
|
|
1383
|
+
plumbing.port = (porcelain.port) unless porcelain.port == nil
|
|
1384
|
+
plumbing.tls_required = (porcelain.tls_required) unless porcelain.tls_required == nil
|
|
1385
|
+
plumbing
|
|
1386
|
+
end
|
|
1387
|
+
def self.convert_repeated_db_2_i_to_plumbing(porcelains)
|
|
1388
|
+
items = Array.new
|
|
1389
|
+
porcelains.each do |porcelain|
|
|
1390
|
+
plumbing = convert_db_2_i_to_plumbing(porcelain)
|
|
1391
|
+
items.append(plumbing)
|
|
1392
|
+
end
|
|
1393
|
+
items
|
|
1394
|
+
end
|
|
1395
|
+
|
|
1396
|
+
def self.convert_repeated_db_2_i_to_porcelain(plumbings)
|
|
1397
|
+
items = Array.new
|
|
1398
|
+
plumbings.each do |plumbing|
|
|
1399
|
+
porcelain = convert_db_2_i_to_porcelain(plumbing)
|
|
1400
|
+
items.append(porcelain)
|
|
1401
|
+
end
|
|
1402
|
+
items
|
|
1403
|
+
end
|
|
1404
|
+
def self.convert_db_2_luw_to_porcelain(plumbing)
|
|
1308
1405
|
if plumbing == nil
|
|
1309
1406
|
return nil
|
|
1310
1407
|
end
|
|
1311
|
-
porcelain =
|
|
1408
|
+
porcelain = DB2LUW.new()
|
|
1312
1409
|
porcelain.id = (plumbing.id)
|
|
1313
1410
|
porcelain.name = (plumbing.name)
|
|
1314
1411
|
porcelain.healthy = (plumbing.healthy)
|
|
@@ -1322,11 +1419,11 @@ module SDM
|
|
|
1322
1419
|
porcelain
|
|
1323
1420
|
end
|
|
1324
1421
|
|
|
1325
|
-
def self.
|
|
1422
|
+
def self.convert_db_2_luw_to_plumbing(porcelain)
|
|
1326
1423
|
if porcelain == nil
|
|
1327
1424
|
return nil
|
|
1328
1425
|
end
|
|
1329
|
-
plumbing = V1::
|
|
1426
|
+
plumbing = V1::DB2LUW.new()
|
|
1330
1427
|
plumbing.id = (porcelain.id) unless porcelain.id == nil
|
|
1331
1428
|
plumbing.name = (porcelain.name) unless porcelain.name == nil
|
|
1332
1429
|
plumbing.healthy = (porcelain.healthy) unless porcelain.healthy == nil
|
|
@@ -1339,19 +1436,19 @@ module SDM
|
|
|
1339
1436
|
plumbing.port = (porcelain.port) unless porcelain.port == nil
|
|
1340
1437
|
plumbing
|
|
1341
1438
|
end
|
|
1342
|
-
def self.
|
|
1439
|
+
def self.convert_repeated_db_2_luw_to_plumbing(porcelains)
|
|
1343
1440
|
items = Array.new
|
|
1344
1441
|
porcelains.each do |porcelain|
|
|
1345
|
-
plumbing =
|
|
1442
|
+
plumbing = convert_db_2_luw_to_plumbing(porcelain)
|
|
1346
1443
|
items.append(plumbing)
|
|
1347
1444
|
end
|
|
1348
1445
|
items
|
|
1349
1446
|
end
|
|
1350
1447
|
|
|
1351
|
-
def self.
|
|
1448
|
+
def self.convert_repeated_db_2_luw_to_porcelain(plumbings)
|
|
1352
1449
|
items = Array.new
|
|
1353
1450
|
plumbings.each do |plumbing|
|
|
1354
|
-
porcelain =
|
|
1451
|
+
porcelain = convert_db_2_luw_to_porcelain(plumbing)
|
|
1355
1452
|
items.append(porcelain)
|
|
1356
1453
|
end
|
|
1357
1454
|
items
|
|
@@ -1726,11 +1823,8 @@ module SDM
|
|
|
1726
1823
|
porcelain.hostname = (plumbing.hostname)
|
|
1727
1824
|
porcelain.port = (plumbing.port)
|
|
1728
1825
|
porcelain.certificate_authority = (plumbing.certificate_authority)
|
|
1729
|
-
porcelain.certificate_authority_filename = (plumbing.certificate_authority_filename)
|
|
1730
1826
|
porcelain.client_certificate = (plumbing.client_certificate)
|
|
1731
|
-
porcelain.client_certificate_filename = (plumbing.client_certificate_filename)
|
|
1732
1827
|
porcelain.client_key = (plumbing.client_key)
|
|
1733
|
-
porcelain.client_key_filename = (plumbing.client_key_filename)
|
|
1734
1828
|
porcelain.healthcheck_namespace = (plumbing.healthcheck_namespace)
|
|
1735
1829
|
porcelain
|
|
1736
1830
|
end
|
|
@@ -1747,11 +1841,8 @@ module SDM
|
|
|
1747
1841
|
plumbing.hostname = (porcelain.hostname) unless porcelain.hostname == nil
|
|
1748
1842
|
plumbing.port = (porcelain.port) unless porcelain.port == nil
|
|
1749
1843
|
plumbing.certificate_authority = (porcelain.certificate_authority) unless porcelain.certificate_authority == nil
|
|
1750
|
-
plumbing.certificate_authority_filename = (porcelain.certificate_authority_filename) unless porcelain.certificate_authority_filename == nil
|
|
1751
1844
|
plumbing.client_certificate = (porcelain.client_certificate) unless porcelain.client_certificate == nil
|
|
1752
|
-
plumbing.client_certificate_filename = (porcelain.client_certificate_filename) unless porcelain.client_certificate_filename == nil
|
|
1753
1845
|
plumbing.client_key = (porcelain.client_key) unless porcelain.client_key == nil
|
|
1754
|
-
plumbing.client_key_filename = (porcelain.client_key_filename) unless porcelain.client_key_filename == nil
|
|
1755
1846
|
plumbing.healthcheck_namespace = (porcelain.healthcheck_namespace) unless porcelain.healthcheck_namespace == nil
|
|
1756
1847
|
plumbing
|
|
1757
1848
|
end
|
|
@@ -1883,7 +1974,6 @@ module SDM
|
|
|
1883
1974
|
porcelain.access_key = (plumbing.access_key)
|
|
1884
1975
|
porcelain.secret_access_key = (plumbing.secret_access_key)
|
|
1885
1976
|
porcelain.certificate_authority = (plumbing.certificate_authority)
|
|
1886
|
-
porcelain.certificate_authority_filename = (plumbing.certificate_authority_filename)
|
|
1887
1977
|
porcelain.region = (plumbing.region)
|
|
1888
1978
|
porcelain.cluster_name = (plumbing.cluster_name)
|
|
1889
1979
|
porcelain.role_arn = (plumbing.role_arn)
|
|
@@ -1904,7 +1994,6 @@ module SDM
|
|
|
1904
1994
|
plumbing.access_key = (porcelain.access_key) unless porcelain.access_key == nil
|
|
1905
1995
|
plumbing.secret_access_key = (porcelain.secret_access_key) unless porcelain.secret_access_key == nil
|
|
1906
1996
|
plumbing.certificate_authority = (porcelain.certificate_authority) unless porcelain.certificate_authority == nil
|
|
1907
|
-
plumbing.certificate_authority_filename = (porcelain.certificate_authority_filename) unless porcelain.certificate_authority_filename == nil
|
|
1908
1997
|
plumbing.region = (porcelain.region) unless porcelain.region == nil
|
|
1909
1998
|
plumbing.cluster_name = (porcelain.cluster_name) unless porcelain.cluster_name == nil
|
|
1910
1999
|
plumbing.role_arn = (porcelain.role_arn) unless porcelain.role_arn == nil
|
|
@@ -1939,9 +2028,7 @@ module SDM
|
|
|
1939
2028
|
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
|
1940
2029
|
porcelain.endpoint = (plumbing.endpoint)
|
|
1941
2030
|
porcelain.certificate_authority = (plumbing.certificate_authority)
|
|
1942
|
-
porcelain.certificate_authority_filename = (plumbing.certificate_authority_filename)
|
|
1943
2031
|
porcelain.service_account_key = (plumbing.service_account_key)
|
|
1944
|
-
porcelain.service_account_key_filename = (plumbing.service_account_key_filename)
|
|
1945
2032
|
porcelain.healthcheck_namespace = (plumbing.healthcheck_namespace)
|
|
1946
2033
|
porcelain
|
|
1947
2034
|
end
|
|
@@ -1957,9 +2044,7 @@ module SDM
|
|
|
1957
2044
|
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
|
1958
2045
|
plumbing.endpoint = (porcelain.endpoint) unless porcelain.endpoint == nil
|
|
1959
2046
|
plumbing.certificate_authority = (porcelain.certificate_authority) unless porcelain.certificate_authority == nil
|
|
1960
|
-
plumbing.certificate_authority_filename = (porcelain.certificate_authority_filename) unless porcelain.certificate_authority_filename == nil
|
|
1961
2047
|
plumbing.service_account_key = (porcelain.service_account_key) unless porcelain.service_account_key == nil
|
|
1962
|
-
plumbing.service_account_key_filename = (porcelain.service_account_key_filename) unless porcelain.service_account_key_filename == nil
|
|
1963
2048
|
plumbing.healthcheck_namespace = (porcelain.healthcheck_namespace) unless porcelain.healthcheck_namespace == nil
|
|
1964
2049
|
plumbing
|
|
1965
2050
|
end
|
|
@@ -1992,11 +2077,8 @@ module SDM
|
|
|
1992
2077
|
porcelain.hostname = (plumbing.hostname)
|
|
1993
2078
|
porcelain.port = (plumbing.port)
|
|
1994
2079
|
porcelain.certificate_authority = (plumbing.certificate_authority)
|
|
1995
|
-
porcelain.certificate_authority_filename = (plumbing.certificate_authority_filename)
|
|
1996
2080
|
porcelain.client_certificate = (plumbing.client_certificate)
|
|
1997
|
-
porcelain.client_certificate_filename = (plumbing.client_certificate_filename)
|
|
1998
2081
|
porcelain.client_key = (plumbing.client_key)
|
|
1999
|
-
porcelain.client_key_filename = (plumbing.client_key_filename)
|
|
2000
2082
|
porcelain.healthcheck_namespace = (plumbing.healthcheck_namespace)
|
|
2001
2083
|
porcelain
|
|
2002
2084
|
end
|
|
@@ -2013,11 +2095,8 @@ module SDM
|
|
|
2013
2095
|
plumbing.hostname = (porcelain.hostname) unless porcelain.hostname == nil
|
|
2014
2096
|
plumbing.port = (porcelain.port) unless porcelain.port == nil
|
|
2015
2097
|
plumbing.certificate_authority = (porcelain.certificate_authority) unless porcelain.certificate_authority == nil
|
|
2016
|
-
plumbing.certificate_authority_filename = (porcelain.certificate_authority_filename) unless porcelain.certificate_authority_filename == nil
|
|
2017
2098
|
plumbing.client_certificate = (porcelain.client_certificate) unless porcelain.client_certificate == nil
|
|
2018
|
-
plumbing.client_certificate_filename = (porcelain.client_certificate_filename) unless porcelain.client_certificate_filename == nil
|
|
2019
2099
|
plumbing.client_key = (porcelain.client_key) unless porcelain.client_key == nil
|
|
2020
|
-
plumbing.client_key_filename = (porcelain.client_key_filename) unless porcelain.client_key_filename == nil
|
|
2021
2100
|
plumbing.healthcheck_namespace = (porcelain.healthcheck_namespace) unless porcelain.healthcheck_namespace == nil
|
|
2022
2101
|
plumbing
|
|
2023
2102
|
end
|