strongdm 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +201 -0
- data/README.md +30 -0
- data/doc/Google.html +95 -0
- data/doc/Google/Protobuf.html +95 -0
- data/doc/LICENSE.html +294 -0
- data/doc/Object.html +290 -0
- data/doc/README_md.html +128 -0
- data/doc/SDM.html +143 -0
- data/doc/SDM/AKS.html +347 -0
- data/doc/SDM/AKSBasicAuth.html +279 -0
- data/doc/SDM/AKSServiceAccount.html +262 -0
- data/doc/SDM/AccountAttachment.html +217 -0
- data/doc/SDM/AccountAttachmentCreateOptions.html +182 -0
- data/doc/SDM/AccountAttachmentCreateResponse.html +216 -0
- data/doc/SDM/AccountAttachmentDeleteResponse.html +199 -0
- data/doc/SDM/AccountAttachmentGetResponse.html +215 -0
- data/doc/SDM/AccountAttachments.html +429 -0
- data/doc/SDM/AccountCreateResponse.html +232 -0
- data/doc/SDM/AccountDeleteResponse.html +197 -0
- data/doc/SDM/AccountGetResponse.html +214 -0
- data/doc/SDM/AccountGrant.html +253 -0
- data/doc/SDM/AccountGrantCreateResponse.html +215 -0
- data/doc/SDM/AccountGrantDeleteResponse.html +198 -0
- data/doc/SDM/AccountGrantGetResponse.html +214 -0
- data/doc/SDM/AccountGrants.html +425 -0
- data/doc/SDM/AccountUpdateResponse.html +214 -0
- data/doc/SDM/Accounts.html +492 -0
- data/doc/SDM/AlreadyExistsError.html +161 -0
- data/doc/SDM/AmazonEKS.html +330 -0
- data/doc/SDM/AmazonES.html +296 -0
- data/doc/SDM/Athena.html +296 -0
- data/doc/SDM/AuroraMysql.html +313 -0
- data/doc/SDM/AuroraPostgres.html +330 -0
- data/doc/SDM/AuthenticationError.html +161 -0
- data/doc/SDM/BadRequestError.html +161 -0
- data/doc/SDM/BigQuery.html +296 -0
- data/doc/SDM/Cassandra.html +313 -0
- data/doc/SDM/Client.html +549 -0
- data/doc/SDM/Clustrix.html +313 -0
- data/doc/SDM/Cockroach.html +330 -0
- data/doc/SDM/CreateResponseMetadata.html +156 -0
- data/doc/SDM/DeadlineExceededError.html +161 -0
- data/doc/SDM/DeleteResponseMetadata.html +156 -0
- data/doc/SDM/Druid.html +296 -0
- data/doc/SDM/DynamoDB.html +296 -0
- data/doc/SDM/Elastic.html +313 -0
- data/doc/SDM/ElasticacheRedis.html +296 -0
- data/doc/SDM/Gateway.html +252 -0
- data/doc/SDM/GetResponseMetadata.html +156 -0
- data/doc/SDM/GoogleGKE.html +296 -0
- data/doc/SDM/Greenplum.html +330 -0
- data/doc/SDM/HTTPAuth.html +313 -0
- data/doc/SDM/HTTPBasicAuth.html +330 -0
- data/doc/SDM/HTTPNoAuth.html +296 -0
- data/doc/SDM/InternalError.html +161 -0
- data/doc/SDM/Kubernetes.html +347 -0
- data/doc/SDM/KubernetesBasicAuth.html +279 -0
- data/doc/SDM/KubernetesServiceAccount.html +262 -0
- data/doc/SDM/Maria.html +313 -0
- data/doc/SDM/Memcached.html +262 -0
- data/doc/SDM/Memsql.html +313 -0
- data/doc/SDM/MongoHost.html +330 -0
- data/doc/SDM/MongoLegacyHost.html +347 -0
- data/doc/SDM/MongoLegacyReplicaset.html +364 -0
- data/doc/SDM/MongoReplicaSet.html +364 -0
- data/doc/SDM/Mysql.html +313 -0
- data/doc/SDM/NodeCreateResponse.html +232 -0
- data/doc/SDM/NodeDeleteResponse.html +197 -0
- data/doc/SDM/NodeGetResponse.html +214 -0
- data/doc/SDM/NodeUpdateResponse.html +214 -0
- data/doc/SDM/Nodes.html +493 -0
- data/doc/SDM/NotFoundError.html +161 -0
- data/doc/SDM/Oracle.html +330 -0
- data/doc/SDM/PermissionError.html +161 -0
- data/doc/SDM/Plumbing.html +15821 -0
- data/doc/SDM/Postgres.html +330 -0
- data/doc/SDM/Presto.html +330 -0
- data/doc/SDM/RDP.html +296 -0
- data/doc/SDM/RPCError.html +182 -0
- data/doc/SDM/RateLimitError.html +183 -0
- data/doc/SDM/RateLimitMetadata.html +233 -0
- data/doc/SDM/Redis.html +279 -0
- data/doc/SDM/Redshift.html +330 -0
- data/doc/SDM/Relay.html +216 -0
- data/doc/SDM/ResourceCreateResponse.html +214 -0
- data/doc/SDM/ResourceDeleteResponse.html +197 -0
- data/doc/SDM/ResourceGetResponse.html +214 -0
- data/doc/SDM/ResourceUpdateResponse.html +215 -0
- data/doc/SDM/Resources.html +482 -0
- data/doc/SDM/Role.html +216 -0
- data/doc/SDM/RoleAttachment.html +216 -0
- data/doc/SDM/RoleAttachmentCreateResponse.html +216 -0
- data/doc/SDM/RoleAttachmentDeleteResponse.html +199 -0
- data/doc/SDM/RoleAttachmentGetResponse.html +214 -0
- data/doc/SDM/RoleAttachments.html +427 -0
- data/doc/SDM/RoleCreateResponse.html +215 -0
- data/doc/SDM/RoleDeleteResponse.html +197 -0
- data/doc/SDM/RoleGetResponse.html +214 -0
- data/doc/SDM/RoleGrant.html +214 -0
- data/doc/SDM/RoleGrantCreateResponse.html +215 -0
- data/doc/SDM/RoleGrantDeleteResponse.html +198 -0
- data/doc/SDM/RoleGrantGetResponse.html +214 -0
- data/doc/SDM/RoleGrants.html +427 -0
- data/doc/SDM/RoleUpdateResponse.html +215 -0
- data/doc/SDM/Roles.html +490 -0
- data/doc/SDM/SQLServer.html +347 -0
- data/doc/SDM/SSH.html +296 -0
- data/doc/SDM/Service.html +215 -0
- data/doc/SDM/Snowflake.html +313 -0
- data/doc/SDM/Sybase.html +296 -0
- data/doc/SDM/SybaseIQ.html +296 -0
- data/doc/SDM/Teradata.html +296 -0
- data/doc/SDM/UpdateResponseMetadata.html +156 -0
- data/doc/SDM/User.html +248 -0
- data/doc/V1.html +864 -0
- data/doc/V1/AccountAttachments.html +109 -0
- data/doc/V1/AccountAttachments/Service.html +116 -0
- data/doc/V1/AccountGrants.html +109 -0
- data/doc/V1/AccountGrants/Service.html +117 -0
- data/doc/V1/Accounts.html +109 -0
- data/doc/V1/Accounts/Service.html +122 -0
- data/doc/V1/Nodes.html +109 -0
- data/doc/V1/Nodes/Service.html +124 -0
- data/doc/V1/Resources.html +109 -0
- data/doc/V1/Resources/Service.html +113 -0
- data/doc/V1/RoleAttachments.html +109 -0
- data/doc/V1/RoleAttachments/Service.html +119 -0
- data/doc/V1/RoleGrants.html +109 -0
- data/doc/V1/RoleGrants/Service.html +119 -0
- data/doc/V1/Roles.html +109 -0
- data/doc/V1/Roles/Service.html +120 -0
- data/doc/created.rid +37 -0
- data/doc/css/fonts.css +167 -0
- data/doc/css/rdoc.css +590 -0
- data/doc/examples/Gemfile.html +95 -0
- data/doc/examples/Gemfile_lock.html +112 -0
- data/doc/examples/README_md.html +95 -0
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +353 -0
- data/doc/js/darkfish.js +161 -0
- data/doc/js/jquery.js +4 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search.js +109 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +228 -0
- data/doc/js/searcher.js.gz +0 -0
- data/doc/lib/version.html +98 -0
- data/doc/strongdm_gemspec.html +117 -0
- data/doc/table_of_contents.html +3002 -0
- data/examples/Gemfile +3 -0
- data/examples/Gemfile.lock +14 -0
- data/examples/README.md +5 -0
- data/examples/listUsers.rb +21 -0
- data/examples/panicButton.rb +154 -0
- data/lib/errors/errors.rb +85 -0
- data/lib/grpc/account_attachments_pb.rb +84 -0
- data/lib/grpc/account_attachments_services_pb.rb +44 -0
- data/lib/grpc/account_grants_pb.rb +82 -0
- data/lib/grpc/account_grants_services_pb.rb +44 -0
- data/lib/grpc/accounts_pb.rb +107 -0
- data/lib/grpc/accounts_services_pb.rb +49 -0
- data/lib/grpc/drivers_pb.rb +601 -0
- data/lib/grpc/nodes_pb.rb +107 -0
- data/lib/grpc/nodes_services_pb.rb +49 -0
- data/lib/grpc/options_pb.rb +60 -0
- data/lib/grpc/plumbing.rb +4283 -0
- data/lib/grpc/protoc-gen-swagger/options/annotations_pb.rb +15 -0
- data/lib/grpc/resources_pb.rb +85 -0
- data/lib/grpc/resources_services_pb.rb +45 -0
- data/lib/grpc/role_attachments_pb.rb +79 -0
- data/lib/grpc/role_attachments_services_pb.rb +47 -0
- data/lib/grpc/role_grants_pb.rb +79 -0
- data/lib/grpc/role_grants_services_pb.rb +47 -0
- data/lib/grpc/roles_pb.rb +91 -0
- data/lib/grpc/roles_services_pb.rb +50 -0
- data/lib/grpc/spec_pb.rb +95 -0
- data/lib/models/porcelain.rb +4033 -0
- data/lib/strongdm.rb +128 -0
- data/lib/svc.rb +1331 -0
- data/lib/version +3 -0
- data/lib/version.rb +17 -0
- data/strongdm.gemspec +23 -0
- metadata +318 -0
@@ -0,0 +1,107 @@
|
|
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: nodes.proto
|
17
|
+
|
18
|
+
require 'google/protobuf'
|
19
|
+
|
20
|
+
require 'google/api/annotations_pb'
|
21
|
+
require 'protoc-gen-swagger/options/annotations_pb'
|
22
|
+
require 'options_pb'
|
23
|
+
require 'spec_pb'
|
24
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
25
|
+
add_file("nodes.proto", :syntax => :proto3) do
|
26
|
+
add_message "v1.NodeCreateRequest" do
|
27
|
+
optional :meta, :message, 1, "v1.CreateRequestMetadata"
|
28
|
+
optional :node, :message, 2, "v1.Node"
|
29
|
+
end
|
30
|
+
add_message "v1.NodeCreateResponse" do
|
31
|
+
optional :meta, :message, 1, "v1.CreateResponseMetadata"
|
32
|
+
optional :node, :message, 2, "v1.Node"
|
33
|
+
optional :token, :string, 3
|
34
|
+
optional :rate_limit, :message, 4, "v1.RateLimitMetadata"
|
35
|
+
end
|
36
|
+
add_message "v1.NodeGetRequest" do
|
37
|
+
optional :meta, :message, 1, "v1.GetRequestMetadata"
|
38
|
+
optional :id, :string, 2
|
39
|
+
end
|
40
|
+
add_message "v1.NodeGetResponse" do
|
41
|
+
optional :meta, :message, 1, "v1.GetResponseMetadata"
|
42
|
+
optional :node, :message, 2, "v1.Node"
|
43
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
44
|
+
end
|
45
|
+
add_message "v1.NodeUpdateRequest" do
|
46
|
+
optional :meta, :message, 1, "v1.UpdateRequestMetadata"
|
47
|
+
optional :id, :string, 2
|
48
|
+
optional :node, :message, 3, "v1.Node"
|
49
|
+
end
|
50
|
+
add_message "v1.NodeUpdateResponse" do
|
51
|
+
optional :meta, :message, 1, "v1.UpdateResponseMetadata"
|
52
|
+
optional :node, :message, 2, "v1.Node"
|
53
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
54
|
+
end
|
55
|
+
add_message "v1.NodeDeleteRequest" do
|
56
|
+
optional :meta, :message, 1, "v1.DeleteRequestMetadata"
|
57
|
+
optional :id, :string, 2
|
58
|
+
end
|
59
|
+
add_message "v1.NodeDeleteResponse" do
|
60
|
+
optional :meta, :message, 1, "v1.DeleteResponseMetadata"
|
61
|
+
optional :rate_limit, :message, 2, "v1.RateLimitMetadata"
|
62
|
+
end
|
63
|
+
add_message "v1.NodeListRequest" do
|
64
|
+
optional :meta, :message, 1, "v1.ListRequestMetadata"
|
65
|
+
optional :filter, :string, 2
|
66
|
+
end
|
67
|
+
add_message "v1.NodeListResponse" do
|
68
|
+
optional :meta, :message, 1, "v1.ListResponseMetadata"
|
69
|
+
repeated :nodes, :message, 2, "v1.Node"
|
70
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
71
|
+
end
|
72
|
+
add_message "v1.Node" do
|
73
|
+
oneof :node do
|
74
|
+
optional :relay, :message, 1, "v1.Relay"
|
75
|
+
optional :gateway, :message, 2, "v1.Gateway"
|
76
|
+
end
|
77
|
+
end
|
78
|
+
add_message "v1.Relay" do
|
79
|
+
optional :id, :string, 1
|
80
|
+
optional :name, :string, 2
|
81
|
+
optional :state, :string, 3
|
82
|
+
end
|
83
|
+
add_message "v1.Gateway" do
|
84
|
+
optional :id, :string, 1
|
85
|
+
optional :name, :string, 2
|
86
|
+
optional :state, :string, 3
|
87
|
+
optional :listen_address, :string, 4
|
88
|
+
optional :bind_address, :string, 5
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
module V1
|
94
|
+
NodeCreateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.NodeCreateRequest").msgclass
|
95
|
+
NodeCreateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.NodeCreateResponse").msgclass
|
96
|
+
NodeGetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.NodeGetRequest").msgclass
|
97
|
+
NodeGetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.NodeGetResponse").msgclass
|
98
|
+
NodeUpdateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.NodeUpdateRequest").msgclass
|
99
|
+
NodeUpdateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.NodeUpdateResponse").msgclass
|
100
|
+
NodeDeleteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.NodeDeleteRequest").msgclass
|
101
|
+
NodeDeleteResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.NodeDeleteResponse").msgclass
|
102
|
+
NodeListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.NodeListRequest").msgclass
|
103
|
+
NodeListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.NodeListResponse").msgclass
|
104
|
+
Node = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Node").msgclass
|
105
|
+
Relay = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Relay").msgclass
|
106
|
+
Gateway = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Gateway").msgclass
|
107
|
+
end
|
@@ -0,0 +1,49 @@
|
|
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: nodes.proto for package 'v1'
|
17
|
+
|
18
|
+
require 'grpc'
|
19
|
+
require 'nodes_pb'
|
20
|
+
|
21
|
+
module V1
|
22
|
+
module Nodes
|
23
|
+
# Nodes make up the strongDM network, and allow your users to connect securely to your resources.
|
24
|
+
# There are two types of nodes:
|
25
|
+
# 1. **Relay:** creates connectivity to your datasources, while maintaining the egress-only nature of your firewall
|
26
|
+
# 1. **Gateways:** a relay that also listens for connections from strongDM clients
|
27
|
+
class Service
|
28
|
+
|
29
|
+
include GRPC::GenericService
|
30
|
+
|
31
|
+
self.marshal_class_method = :encode
|
32
|
+
self.unmarshal_class_method = :decode
|
33
|
+
self.service_name = 'v1.Nodes'
|
34
|
+
|
35
|
+
# Create registers a new Node.
|
36
|
+
rpc :Create, NodeCreateRequest, NodeCreateResponse
|
37
|
+
# Get reads one Node by ID.
|
38
|
+
rpc :Get, NodeGetRequest, NodeGetResponse
|
39
|
+
# Update patches a Node by ID.
|
40
|
+
rpc :Update, NodeUpdateRequest, NodeUpdateResponse
|
41
|
+
# Delete removes a Node by ID.
|
42
|
+
rpc :Delete, NodeDeleteRequest, NodeDeleteResponse
|
43
|
+
# List gets a list of Nodes matching a given set of criteria.
|
44
|
+
rpc :List, NodeListRequest, NodeListResponse
|
45
|
+
end
|
46
|
+
|
47
|
+
Stub = Service.rpc_stub_class
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,60 @@
|
|
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: options.proto
|
17
|
+
|
18
|
+
require 'google/protobuf'
|
19
|
+
|
20
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
21
|
+
add_file("options.proto", :syntax => :proto3) do
|
22
|
+
add_message "v1.FieldOptions" do
|
23
|
+
optional :name, :string, 1941300
|
24
|
+
optional :sql_nullable, :bool, 1941301
|
25
|
+
optional :expose_as_porcelain, :bool, 1941302
|
26
|
+
optional :iterable, :bool, 1941303
|
27
|
+
optional :required, :bool, 1941304
|
28
|
+
optional :id_type, :string, 1941305
|
29
|
+
optional :sdk_only, :bool, 1941306
|
30
|
+
optional :computed, :bool, 1941307
|
31
|
+
optional :force_new, :bool, 1941308
|
32
|
+
end
|
33
|
+
add_message "v1.MessageOptions" do
|
34
|
+
optional :model_name, :string, 1941300
|
35
|
+
optional :porcelain, :bool, 1941301
|
36
|
+
optional :error, :int32, 1941302
|
37
|
+
optional :options_field, :string, 1941303
|
38
|
+
optional :terraform_docs, :message, 1941304, "v1.TerraformDocs"
|
39
|
+
end
|
40
|
+
add_message "v1.TerraformDocs" do
|
41
|
+
optional :resource_example_path, :string, 1941300
|
42
|
+
optional :data_source_example_path, :string, 1941301
|
43
|
+
end
|
44
|
+
add_message "v1.OneofOptions" do
|
45
|
+
optional :model_name, :string, 1941380
|
46
|
+
repeated :common_fields, :string, 1941381
|
47
|
+
end
|
48
|
+
add_message "v1.ServiceOptions" do
|
49
|
+
optional :main_noun, :string, 1941400
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
module V1
|
55
|
+
FieldOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.FieldOptions").msgclass
|
56
|
+
MessageOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.MessageOptions").msgclass
|
57
|
+
TerraformDocs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.TerraformDocs").msgclass
|
58
|
+
OneofOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.OneofOptions").msgclass
|
59
|
+
ServiceOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ServiceOptions").msgclass
|
60
|
+
end
|
@@ -0,0 +1,4283 @@
|
|
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
|
+
|
16
|
+
# This file was generated by protogen. DO NOT EDIT.
|
17
|
+
|
18
|
+
require 'grpc'
|
19
|
+
require 'google/protobuf/well_known_types'
|
20
|
+
require 'json'
|
21
|
+
require_relative './options_pb'
|
22
|
+
require_relative './spec_pb'
|
23
|
+
require_relative './account_attachments_pb'
|
24
|
+
require_relative './account_grants_pb'
|
25
|
+
require_relative './accounts_pb'
|
26
|
+
require_relative './drivers_pb'
|
27
|
+
require_relative './nodes_pb'
|
28
|
+
require_relative './resources_pb'
|
29
|
+
require_relative './role_attachments_pb'
|
30
|
+
require_relative './role_grants_pb'
|
31
|
+
require_relative './roles_pb'
|
32
|
+
require_relative '../models/porcelain'
|
33
|
+
require_relative '../errors/errors'
|
34
|
+
|
35
|
+
module SDM
|
36
|
+
module Plumbing
|
37
|
+
|
38
|
+
def self.quote_filter_args(filter, *args)
|
39
|
+
parts = (filter + " ").split("?")
|
40
|
+
if parts.length() != args.length() + 1
|
41
|
+
raise BadRequestError.new("incorrect number of replacements")
|
42
|
+
end
|
43
|
+
b = ""
|
44
|
+
parts.each_with_index do |v,i|
|
45
|
+
b += v
|
46
|
+
if i < args.length()
|
47
|
+
s = args[i].to_s()
|
48
|
+
s = JSON.dump(s)
|
49
|
+
b += s
|
50
|
+
end
|
51
|
+
end
|
52
|
+
return b
|
53
|
+
end
|
54
|
+
|
55
|
+
def self.timestamp_to_porcelain(t)
|
56
|
+
if t == nil
|
57
|
+
return nil
|
58
|
+
end
|
59
|
+
return Time.at(t.seconds + t.nanos * (10**-9))
|
60
|
+
end
|
61
|
+
|
62
|
+
def self.timestamp_to_plumbing(t)
|
63
|
+
if t == nil
|
64
|
+
return nil
|
65
|
+
end
|
66
|
+
return Google::Protobuf::Timestamp.new(seconds: t.to_i, nanos: t.nsec)
|
67
|
+
end
|
68
|
+
def self.create_response_metadata_to_porcelain(plumbing)
|
69
|
+
if plumbing == nil
|
70
|
+
return nil
|
71
|
+
end
|
72
|
+
porcelain = CreateResponseMetadata.new()
|
73
|
+
porcelain
|
74
|
+
end
|
75
|
+
|
76
|
+
def self.create_response_metadata_to_plumbing(porcelain)
|
77
|
+
if porcelain == nil
|
78
|
+
return nil
|
79
|
+
end
|
80
|
+
plumbing = V1::CreateResponseMetadata.new()
|
81
|
+
plumbing
|
82
|
+
end
|
83
|
+
def self.repeated_create_response_metadata_to_plumbing(porcelains)
|
84
|
+
items = Array.new
|
85
|
+
porcelains.each do |porcelain|
|
86
|
+
plumbing = create_response_metadata_to_plumbing(porcelain)
|
87
|
+
items.append(plumbing)
|
88
|
+
end
|
89
|
+
items
|
90
|
+
end
|
91
|
+
|
92
|
+
def self.repeated_create_response_metadata_to_porcelain(plumbings)
|
93
|
+
items = Array.new
|
94
|
+
plumbings.each do |plumbing|
|
95
|
+
porcelain = create_response_metadata_to_porcelain(plumbing)
|
96
|
+
items.append(porcelain)
|
97
|
+
end
|
98
|
+
items
|
99
|
+
end
|
100
|
+
def self.get_response_metadata_to_porcelain(plumbing)
|
101
|
+
if plumbing == nil
|
102
|
+
return nil
|
103
|
+
end
|
104
|
+
porcelain = GetResponseMetadata.new()
|
105
|
+
porcelain
|
106
|
+
end
|
107
|
+
|
108
|
+
def self.get_response_metadata_to_plumbing(porcelain)
|
109
|
+
if porcelain == nil
|
110
|
+
return nil
|
111
|
+
end
|
112
|
+
plumbing = V1::GetResponseMetadata.new()
|
113
|
+
plumbing
|
114
|
+
end
|
115
|
+
def self.repeated_get_response_metadata_to_plumbing(porcelains)
|
116
|
+
items = Array.new
|
117
|
+
porcelains.each do |porcelain|
|
118
|
+
plumbing = get_response_metadata_to_plumbing(porcelain)
|
119
|
+
items.append(plumbing)
|
120
|
+
end
|
121
|
+
items
|
122
|
+
end
|
123
|
+
|
124
|
+
def self.repeated_get_response_metadata_to_porcelain(plumbings)
|
125
|
+
items = Array.new
|
126
|
+
plumbings.each do |plumbing|
|
127
|
+
porcelain = get_response_metadata_to_porcelain(plumbing)
|
128
|
+
items.append(porcelain)
|
129
|
+
end
|
130
|
+
items
|
131
|
+
end
|
132
|
+
def self.update_response_metadata_to_porcelain(plumbing)
|
133
|
+
if plumbing == nil
|
134
|
+
return nil
|
135
|
+
end
|
136
|
+
porcelain = UpdateResponseMetadata.new()
|
137
|
+
porcelain
|
138
|
+
end
|
139
|
+
|
140
|
+
def self.update_response_metadata_to_plumbing(porcelain)
|
141
|
+
if porcelain == nil
|
142
|
+
return nil
|
143
|
+
end
|
144
|
+
plumbing = V1::UpdateResponseMetadata.new()
|
145
|
+
plumbing
|
146
|
+
end
|
147
|
+
def self.repeated_update_response_metadata_to_plumbing(porcelains)
|
148
|
+
items = Array.new
|
149
|
+
porcelains.each do |porcelain|
|
150
|
+
plumbing = update_response_metadata_to_plumbing(porcelain)
|
151
|
+
items.append(plumbing)
|
152
|
+
end
|
153
|
+
items
|
154
|
+
end
|
155
|
+
|
156
|
+
def self.repeated_update_response_metadata_to_porcelain(plumbings)
|
157
|
+
items = Array.new
|
158
|
+
plumbings.each do |plumbing|
|
159
|
+
porcelain = update_response_metadata_to_porcelain(plumbing)
|
160
|
+
items.append(porcelain)
|
161
|
+
end
|
162
|
+
items
|
163
|
+
end
|
164
|
+
def self.delete_response_metadata_to_porcelain(plumbing)
|
165
|
+
if plumbing == nil
|
166
|
+
return nil
|
167
|
+
end
|
168
|
+
porcelain = DeleteResponseMetadata.new()
|
169
|
+
porcelain
|
170
|
+
end
|
171
|
+
|
172
|
+
def self.delete_response_metadata_to_plumbing(porcelain)
|
173
|
+
if porcelain == nil
|
174
|
+
return nil
|
175
|
+
end
|
176
|
+
plumbing = V1::DeleteResponseMetadata.new()
|
177
|
+
plumbing
|
178
|
+
end
|
179
|
+
def self.repeated_delete_response_metadata_to_plumbing(porcelains)
|
180
|
+
items = Array.new
|
181
|
+
porcelains.each do |porcelain|
|
182
|
+
plumbing = delete_response_metadata_to_plumbing(porcelain)
|
183
|
+
items.append(plumbing)
|
184
|
+
end
|
185
|
+
items
|
186
|
+
end
|
187
|
+
|
188
|
+
def self.repeated_delete_response_metadata_to_porcelain(plumbings)
|
189
|
+
items = Array.new
|
190
|
+
plumbings.each do |plumbing|
|
191
|
+
porcelain = delete_response_metadata_to_porcelain(plumbing)
|
192
|
+
items.append(porcelain)
|
193
|
+
end
|
194
|
+
items
|
195
|
+
end
|
196
|
+
def self.rate_limit_metadata_to_porcelain(plumbing)
|
197
|
+
if plumbing == nil
|
198
|
+
return nil
|
199
|
+
end
|
200
|
+
porcelain = RateLimitMetadata.new()
|
201
|
+
porcelain.limit = plumbing.limit
|
202
|
+
porcelain.remaining = plumbing.remaining
|
203
|
+
porcelain.reset_at = timestamp_to_porcelain(plumbing.reset_at)
|
204
|
+
porcelain.bucket = plumbing.bucket
|
205
|
+
porcelain
|
206
|
+
end
|
207
|
+
|
208
|
+
def self.rate_limit_metadata_to_plumbing(porcelain)
|
209
|
+
if porcelain == nil
|
210
|
+
return nil
|
211
|
+
end
|
212
|
+
plumbing = V1::RateLimitMetadata.new()
|
213
|
+
plumbing.limit = porcelain.limit unless porcelain.limit == nil
|
214
|
+
plumbing.remaining = porcelain.remaining unless porcelain.remaining == nil
|
215
|
+
plumbing.reset_at = timestamp_to_plumbing(porcelain.reset_at) unless porcelain.reset_at == nil
|
216
|
+
plumbing.bucket = porcelain.bucket unless porcelain.bucket == nil
|
217
|
+
plumbing
|
218
|
+
end
|
219
|
+
def self.repeated_rate_limit_metadata_to_plumbing(porcelains)
|
220
|
+
items = Array.new
|
221
|
+
porcelains.each do |porcelain|
|
222
|
+
plumbing = rate_limit_metadata_to_plumbing(porcelain)
|
223
|
+
items.append(plumbing)
|
224
|
+
end
|
225
|
+
items
|
226
|
+
end
|
227
|
+
|
228
|
+
def self.repeated_rate_limit_metadata_to_porcelain(plumbings)
|
229
|
+
items = Array.new
|
230
|
+
plumbings.each do |plumbing|
|
231
|
+
porcelain = rate_limit_metadata_to_porcelain(plumbing)
|
232
|
+
items.append(porcelain)
|
233
|
+
end
|
234
|
+
items
|
235
|
+
end
|
236
|
+
def self.account_attachment_create_options_to_porcelain(plumbing)
|
237
|
+
if plumbing == nil
|
238
|
+
return nil
|
239
|
+
end
|
240
|
+
porcelain = AccountAttachmentCreateOptions.new()
|
241
|
+
porcelain.overwrite = plumbing.overwrite
|
242
|
+
porcelain
|
243
|
+
end
|
244
|
+
|
245
|
+
def self.account_attachment_create_options_to_plumbing(porcelain)
|
246
|
+
if porcelain == nil
|
247
|
+
return nil
|
248
|
+
end
|
249
|
+
plumbing = V1::AccountAttachmentCreateOptions.new()
|
250
|
+
plumbing.overwrite = porcelain.overwrite unless porcelain.overwrite == nil
|
251
|
+
plumbing
|
252
|
+
end
|
253
|
+
def self.repeated_account_attachment_create_options_to_plumbing(porcelains)
|
254
|
+
items = Array.new
|
255
|
+
porcelains.each do |porcelain|
|
256
|
+
plumbing = account_attachment_create_options_to_plumbing(porcelain)
|
257
|
+
items.append(plumbing)
|
258
|
+
end
|
259
|
+
items
|
260
|
+
end
|
261
|
+
|
262
|
+
def self.repeated_account_attachment_create_options_to_porcelain(plumbings)
|
263
|
+
items = Array.new
|
264
|
+
plumbings.each do |plumbing|
|
265
|
+
porcelain = account_attachment_create_options_to_porcelain(plumbing)
|
266
|
+
items.append(porcelain)
|
267
|
+
end
|
268
|
+
items
|
269
|
+
end
|
270
|
+
def self.account_attachment_create_response_to_porcelain(plumbing)
|
271
|
+
if plumbing == nil
|
272
|
+
return nil
|
273
|
+
end
|
274
|
+
porcelain = AccountAttachmentCreateResponse.new()
|
275
|
+
porcelain.meta = create_response_metadata_to_porcelain(plumbing.meta)
|
276
|
+
porcelain.account_attachment = account_attachment_to_porcelain(plumbing.account_attachment)
|
277
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
278
|
+
porcelain
|
279
|
+
end
|
280
|
+
|
281
|
+
def self.account_attachment_create_response_to_plumbing(porcelain)
|
282
|
+
if porcelain == nil
|
283
|
+
return nil
|
284
|
+
end
|
285
|
+
plumbing = V1::AccountAttachmentCreateResponse.new()
|
286
|
+
plumbing.meta = create_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
287
|
+
plumbing.account_attachment = account_attachment_to_plumbing(porcelain.account_attachment) unless porcelain.account_attachment == nil
|
288
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
289
|
+
plumbing
|
290
|
+
end
|
291
|
+
def self.repeated_account_attachment_create_response_to_plumbing(porcelains)
|
292
|
+
items = Array.new
|
293
|
+
porcelains.each do |porcelain|
|
294
|
+
plumbing = account_attachment_create_response_to_plumbing(porcelain)
|
295
|
+
items.append(plumbing)
|
296
|
+
end
|
297
|
+
items
|
298
|
+
end
|
299
|
+
|
300
|
+
def self.repeated_account_attachment_create_response_to_porcelain(plumbings)
|
301
|
+
items = Array.new
|
302
|
+
plumbings.each do |plumbing|
|
303
|
+
porcelain = account_attachment_create_response_to_porcelain(plumbing)
|
304
|
+
items.append(porcelain)
|
305
|
+
end
|
306
|
+
items
|
307
|
+
end
|
308
|
+
def self.account_attachment_get_response_to_porcelain(plumbing)
|
309
|
+
if plumbing == nil
|
310
|
+
return nil
|
311
|
+
end
|
312
|
+
porcelain = AccountAttachmentGetResponse.new()
|
313
|
+
porcelain.meta = get_response_metadata_to_porcelain(plumbing.meta)
|
314
|
+
porcelain.account_attachment = account_attachment_to_porcelain(plumbing.account_attachment)
|
315
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
316
|
+
porcelain
|
317
|
+
end
|
318
|
+
|
319
|
+
def self.account_attachment_get_response_to_plumbing(porcelain)
|
320
|
+
if porcelain == nil
|
321
|
+
return nil
|
322
|
+
end
|
323
|
+
plumbing = V1::AccountAttachmentGetResponse.new()
|
324
|
+
plumbing.meta = get_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
325
|
+
plumbing.account_attachment = account_attachment_to_plumbing(porcelain.account_attachment) unless porcelain.account_attachment == nil
|
326
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
327
|
+
plumbing
|
328
|
+
end
|
329
|
+
def self.repeated_account_attachment_get_response_to_plumbing(porcelains)
|
330
|
+
items = Array.new
|
331
|
+
porcelains.each do |porcelain|
|
332
|
+
plumbing = account_attachment_get_response_to_plumbing(porcelain)
|
333
|
+
items.append(plumbing)
|
334
|
+
end
|
335
|
+
items
|
336
|
+
end
|
337
|
+
|
338
|
+
def self.repeated_account_attachment_get_response_to_porcelain(plumbings)
|
339
|
+
items = Array.new
|
340
|
+
plumbings.each do |plumbing|
|
341
|
+
porcelain = account_attachment_get_response_to_porcelain(plumbing)
|
342
|
+
items.append(porcelain)
|
343
|
+
end
|
344
|
+
items
|
345
|
+
end
|
346
|
+
def self.account_attachment_delete_response_to_porcelain(plumbing)
|
347
|
+
if plumbing == nil
|
348
|
+
return nil
|
349
|
+
end
|
350
|
+
porcelain = AccountAttachmentDeleteResponse.new()
|
351
|
+
porcelain.meta = delete_response_metadata_to_porcelain(plumbing.meta)
|
352
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
353
|
+
porcelain
|
354
|
+
end
|
355
|
+
|
356
|
+
def self.account_attachment_delete_response_to_plumbing(porcelain)
|
357
|
+
if porcelain == nil
|
358
|
+
return nil
|
359
|
+
end
|
360
|
+
plumbing = V1::AccountAttachmentDeleteResponse.new()
|
361
|
+
plumbing.meta = delete_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
362
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
363
|
+
plumbing
|
364
|
+
end
|
365
|
+
def self.repeated_account_attachment_delete_response_to_plumbing(porcelains)
|
366
|
+
items = Array.new
|
367
|
+
porcelains.each do |porcelain|
|
368
|
+
plumbing = account_attachment_delete_response_to_plumbing(porcelain)
|
369
|
+
items.append(plumbing)
|
370
|
+
end
|
371
|
+
items
|
372
|
+
end
|
373
|
+
|
374
|
+
def self.repeated_account_attachment_delete_response_to_porcelain(plumbings)
|
375
|
+
items = Array.new
|
376
|
+
plumbings.each do |plumbing|
|
377
|
+
porcelain = account_attachment_delete_response_to_porcelain(plumbing)
|
378
|
+
items.append(porcelain)
|
379
|
+
end
|
380
|
+
items
|
381
|
+
end
|
382
|
+
def self.account_attachment_to_porcelain(plumbing)
|
383
|
+
if plumbing == nil
|
384
|
+
return nil
|
385
|
+
end
|
386
|
+
porcelain = AccountAttachment.new()
|
387
|
+
porcelain.id = plumbing.id
|
388
|
+
porcelain.account_id = plumbing.account_id
|
389
|
+
porcelain.role_id = plumbing.role_id
|
390
|
+
porcelain
|
391
|
+
end
|
392
|
+
|
393
|
+
def self.account_attachment_to_plumbing(porcelain)
|
394
|
+
if porcelain == nil
|
395
|
+
return nil
|
396
|
+
end
|
397
|
+
plumbing = V1::AccountAttachment.new()
|
398
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
399
|
+
plumbing.account_id = porcelain.account_id unless porcelain.account_id == nil
|
400
|
+
plumbing.role_id = porcelain.role_id unless porcelain.role_id == nil
|
401
|
+
plumbing
|
402
|
+
end
|
403
|
+
def self.repeated_account_attachment_to_plumbing(porcelains)
|
404
|
+
items = Array.new
|
405
|
+
porcelains.each do |porcelain|
|
406
|
+
plumbing = account_attachment_to_plumbing(porcelain)
|
407
|
+
items.append(plumbing)
|
408
|
+
end
|
409
|
+
items
|
410
|
+
end
|
411
|
+
|
412
|
+
def self.repeated_account_attachment_to_porcelain(plumbings)
|
413
|
+
items = Array.new
|
414
|
+
plumbings.each do |plumbing|
|
415
|
+
porcelain = account_attachment_to_porcelain(plumbing)
|
416
|
+
items.append(porcelain)
|
417
|
+
end
|
418
|
+
items
|
419
|
+
end
|
420
|
+
def self.account_grant_create_response_to_porcelain(plumbing)
|
421
|
+
if plumbing == nil
|
422
|
+
return nil
|
423
|
+
end
|
424
|
+
porcelain = AccountGrantCreateResponse.new()
|
425
|
+
porcelain.meta = create_response_metadata_to_porcelain(plumbing.meta)
|
426
|
+
porcelain.account_grant = account_grant_to_porcelain(plumbing.account_grant)
|
427
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
428
|
+
porcelain
|
429
|
+
end
|
430
|
+
|
431
|
+
def self.account_grant_create_response_to_plumbing(porcelain)
|
432
|
+
if porcelain == nil
|
433
|
+
return nil
|
434
|
+
end
|
435
|
+
plumbing = V1::AccountGrantCreateResponse.new()
|
436
|
+
plumbing.meta = create_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
437
|
+
plumbing.account_grant = account_grant_to_plumbing(porcelain.account_grant) unless porcelain.account_grant == nil
|
438
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
439
|
+
plumbing
|
440
|
+
end
|
441
|
+
def self.repeated_account_grant_create_response_to_plumbing(porcelains)
|
442
|
+
items = Array.new
|
443
|
+
porcelains.each do |porcelain|
|
444
|
+
plumbing = account_grant_create_response_to_plumbing(porcelain)
|
445
|
+
items.append(plumbing)
|
446
|
+
end
|
447
|
+
items
|
448
|
+
end
|
449
|
+
|
450
|
+
def self.repeated_account_grant_create_response_to_porcelain(plumbings)
|
451
|
+
items = Array.new
|
452
|
+
plumbings.each do |plumbing|
|
453
|
+
porcelain = account_grant_create_response_to_porcelain(plumbing)
|
454
|
+
items.append(porcelain)
|
455
|
+
end
|
456
|
+
items
|
457
|
+
end
|
458
|
+
def self.account_grant_get_response_to_porcelain(plumbing)
|
459
|
+
if plumbing == nil
|
460
|
+
return nil
|
461
|
+
end
|
462
|
+
porcelain = AccountGrantGetResponse.new()
|
463
|
+
porcelain.meta = get_response_metadata_to_porcelain(plumbing.meta)
|
464
|
+
porcelain.account_grant = account_grant_to_porcelain(plumbing.account_grant)
|
465
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
466
|
+
porcelain
|
467
|
+
end
|
468
|
+
|
469
|
+
def self.account_grant_get_response_to_plumbing(porcelain)
|
470
|
+
if porcelain == nil
|
471
|
+
return nil
|
472
|
+
end
|
473
|
+
plumbing = V1::AccountGrantGetResponse.new()
|
474
|
+
plumbing.meta = get_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
475
|
+
plumbing.account_grant = account_grant_to_plumbing(porcelain.account_grant) unless porcelain.account_grant == nil
|
476
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
477
|
+
plumbing
|
478
|
+
end
|
479
|
+
def self.repeated_account_grant_get_response_to_plumbing(porcelains)
|
480
|
+
items = Array.new
|
481
|
+
porcelains.each do |porcelain|
|
482
|
+
plumbing = account_grant_get_response_to_plumbing(porcelain)
|
483
|
+
items.append(plumbing)
|
484
|
+
end
|
485
|
+
items
|
486
|
+
end
|
487
|
+
|
488
|
+
def self.repeated_account_grant_get_response_to_porcelain(plumbings)
|
489
|
+
items = Array.new
|
490
|
+
plumbings.each do |plumbing|
|
491
|
+
porcelain = account_grant_get_response_to_porcelain(plumbing)
|
492
|
+
items.append(porcelain)
|
493
|
+
end
|
494
|
+
items
|
495
|
+
end
|
496
|
+
def self.account_grant_delete_response_to_porcelain(plumbing)
|
497
|
+
if plumbing == nil
|
498
|
+
return nil
|
499
|
+
end
|
500
|
+
porcelain = AccountGrantDeleteResponse.new()
|
501
|
+
porcelain.meta = delete_response_metadata_to_porcelain(plumbing.meta)
|
502
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
503
|
+
porcelain
|
504
|
+
end
|
505
|
+
|
506
|
+
def self.account_grant_delete_response_to_plumbing(porcelain)
|
507
|
+
if porcelain == nil
|
508
|
+
return nil
|
509
|
+
end
|
510
|
+
plumbing = V1::AccountGrantDeleteResponse.new()
|
511
|
+
plumbing.meta = delete_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
512
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
513
|
+
plumbing
|
514
|
+
end
|
515
|
+
def self.repeated_account_grant_delete_response_to_plumbing(porcelains)
|
516
|
+
items = Array.new
|
517
|
+
porcelains.each do |porcelain|
|
518
|
+
plumbing = account_grant_delete_response_to_plumbing(porcelain)
|
519
|
+
items.append(plumbing)
|
520
|
+
end
|
521
|
+
items
|
522
|
+
end
|
523
|
+
|
524
|
+
def self.repeated_account_grant_delete_response_to_porcelain(plumbings)
|
525
|
+
items = Array.new
|
526
|
+
plumbings.each do |plumbing|
|
527
|
+
porcelain = account_grant_delete_response_to_porcelain(plumbing)
|
528
|
+
items.append(porcelain)
|
529
|
+
end
|
530
|
+
items
|
531
|
+
end
|
532
|
+
def self.account_grant_to_porcelain(plumbing)
|
533
|
+
if plumbing == nil
|
534
|
+
return nil
|
535
|
+
end
|
536
|
+
porcelain = AccountGrant.new()
|
537
|
+
porcelain.id = plumbing.id
|
538
|
+
porcelain.resource_id = plumbing.resource_id
|
539
|
+
porcelain.account_id = plumbing.account_id
|
540
|
+
porcelain.start_from = timestamp_to_porcelain(plumbing.start_from)
|
541
|
+
porcelain.valid_until = timestamp_to_porcelain(plumbing.valid_until)
|
542
|
+
porcelain
|
543
|
+
end
|
544
|
+
|
545
|
+
def self.account_grant_to_plumbing(porcelain)
|
546
|
+
if porcelain == nil
|
547
|
+
return nil
|
548
|
+
end
|
549
|
+
plumbing = V1::AccountGrant.new()
|
550
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
551
|
+
plumbing.resource_id = porcelain.resource_id unless porcelain.resource_id == nil
|
552
|
+
plumbing.account_id = porcelain.account_id unless porcelain.account_id == nil
|
553
|
+
plumbing.start_from = timestamp_to_plumbing(porcelain.start_from) unless porcelain.start_from == nil
|
554
|
+
plumbing.valid_until = timestamp_to_plumbing(porcelain.valid_until) unless porcelain.valid_until == nil
|
555
|
+
plumbing
|
556
|
+
end
|
557
|
+
def self.repeated_account_grant_to_plumbing(porcelains)
|
558
|
+
items = Array.new
|
559
|
+
porcelains.each do |porcelain|
|
560
|
+
plumbing = account_grant_to_plumbing(porcelain)
|
561
|
+
items.append(plumbing)
|
562
|
+
end
|
563
|
+
items
|
564
|
+
end
|
565
|
+
|
566
|
+
def self.repeated_account_grant_to_porcelain(plumbings)
|
567
|
+
items = Array.new
|
568
|
+
plumbings.each do |plumbing|
|
569
|
+
porcelain = account_grant_to_porcelain(plumbing)
|
570
|
+
items.append(porcelain)
|
571
|
+
end
|
572
|
+
items
|
573
|
+
end
|
574
|
+
def self.account_create_response_to_porcelain(plumbing)
|
575
|
+
if plumbing == nil
|
576
|
+
return nil
|
577
|
+
end
|
578
|
+
porcelain = AccountCreateResponse.new()
|
579
|
+
porcelain.meta = create_response_metadata_to_porcelain(plumbing.meta)
|
580
|
+
porcelain.account = account_to_porcelain(plumbing.account)
|
581
|
+
porcelain.token = plumbing.token
|
582
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
583
|
+
porcelain
|
584
|
+
end
|
585
|
+
|
586
|
+
def self.account_create_response_to_plumbing(porcelain)
|
587
|
+
if porcelain == nil
|
588
|
+
return nil
|
589
|
+
end
|
590
|
+
plumbing = V1::AccountCreateResponse.new()
|
591
|
+
plumbing.meta = create_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
592
|
+
plumbing.account = account_to_plumbing(porcelain.account) unless porcelain.account == nil
|
593
|
+
plumbing.token = porcelain.token unless porcelain.token == nil
|
594
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
595
|
+
plumbing
|
596
|
+
end
|
597
|
+
def self.repeated_account_create_response_to_plumbing(porcelains)
|
598
|
+
items = Array.new
|
599
|
+
porcelains.each do |porcelain|
|
600
|
+
plumbing = account_create_response_to_plumbing(porcelain)
|
601
|
+
items.append(plumbing)
|
602
|
+
end
|
603
|
+
items
|
604
|
+
end
|
605
|
+
|
606
|
+
def self.repeated_account_create_response_to_porcelain(plumbings)
|
607
|
+
items = Array.new
|
608
|
+
plumbings.each do |plumbing|
|
609
|
+
porcelain = account_create_response_to_porcelain(plumbing)
|
610
|
+
items.append(porcelain)
|
611
|
+
end
|
612
|
+
items
|
613
|
+
end
|
614
|
+
def self.account_get_response_to_porcelain(plumbing)
|
615
|
+
if plumbing == nil
|
616
|
+
return nil
|
617
|
+
end
|
618
|
+
porcelain = AccountGetResponse.new()
|
619
|
+
porcelain.meta = get_response_metadata_to_porcelain(plumbing.meta)
|
620
|
+
porcelain.account = account_to_porcelain(plumbing.account)
|
621
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
622
|
+
porcelain
|
623
|
+
end
|
624
|
+
|
625
|
+
def self.account_get_response_to_plumbing(porcelain)
|
626
|
+
if porcelain == nil
|
627
|
+
return nil
|
628
|
+
end
|
629
|
+
plumbing = V1::AccountGetResponse.new()
|
630
|
+
plumbing.meta = get_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
631
|
+
plumbing.account = account_to_plumbing(porcelain.account) unless porcelain.account == nil
|
632
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
633
|
+
plumbing
|
634
|
+
end
|
635
|
+
def self.repeated_account_get_response_to_plumbing(porcelains)
|
636
|
+
items = Array.new
|
637
|
+
porcelains.each do |porcelain|
|
638
|
+
plumbing = account_get_response_to_plumbing(porcelain)
|
639
|
+
items.append(plumbing)
|
640
|
+
end
|
641
|
+
items
|
642
|
+
end
|
643
|
+
|
644
|
+
def self.repeated_account_get_response_to_porcelain(plumbings)
|
645
|
+
items = Array.new
|
646
|
+
plumbings.each do |plumbing|
|
647
|
+
porcelain = account_get_response_to_porcelain(plumbing)
|
648
|
+
items.append(porcelain)
|
649
|
+
end
|
650
|
+
items
|
651
|
+
end
|
652
|
+
def self.account_update_response_to_porcelain(plumbing)
|
653
|
+
if plumbing == nil
|
654
|
+
return nil
|
655
|
+
end
|
656
|
+
porcelain = AccountUpdateResponse.new()
|
657
|
+
porcelain.meta = update_response_metadata_to_porcelain(plumbing.meta)
|
658
|
+
porcelain.account = account_to_porcelain(plumbing.account)
|
659
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
660
|
+
porcelain
|
661
|
+
end
|
662
|
+
|
663
|
+
def self.account_update_response_to_plumbing(porcelain)
|
664
|
+
if porcelain == nil
|
665
|
+
return nil
|
666
|
+
end
|
667
|
+
plumbing = V1::AccountUpdateResponse.new()
|
668
|
+
plumbing.meta = update_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
669
|
+
plumbing.account = account_to_plumbing(porcelain.account) unless porcelain.account == nil
|
670
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
671
|
+
plumbing
|
672
|
+
end
|
673
|
+
def self.repeated_account_update_response_to_plumbing(porcelains)
|
674
|
+
items = Array.new
|
675
|
+
porcelains.each do |porcelain|
|
676
|
+
plumbing = account_update_response_to_plumbing(porcelain)
|
677
|
+
items.append(plumbing)
|
678
|
+
end
|
679
|
+
items
|
680
|
+
end
|
681
|
+
|
682
|
+
def self.repeated_account_update_response_to_porcelain(plumbings)
|
683
|
+
items = Array.new
|
684
|
+
plumbings.each do |plumbing|
|
685
|
+
porcelain = account_update_response_to_porcelain(plumbing)
|
686
|
+
items.append(porcelain)
|
687
|
+
end
|
688
|
+
items
|
689
|
+
end
|
690
|
+
def self.account_delete_response_to_porcelain(plumbing)
|
691
|
+
if plumbing == nil
|
692
|
+
return nil
|
693
|
+
end
|
694
|
+
porcelain = AccountDeleteResponse.new()
|
695
|
+
porcelain.meta = delete_response_metadata_to_porcelain(plumbing.meta)
|
696
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
697
|
+
porcelain
|
698
|
+
end
|
699
|
+
|
700
|
+
def self.account_delete_response_to_plumbing(porcelain)
|
701
|
+
if porcelain == nil
|
702
|
+
return nil
|
703
|
+
end
|
704
|
+
plumbing = V1::AccountDeleteResponse.new()
|
705
|
+
plumbing.meta = delete_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
706
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
707
|
+
plumbing
|
708
|
+
end
|
709
|
+
def self.repeated_account_delete_response_to_plumbing(porcelains)
|
710
|
+
items = Array.new
|
711
|
+
porcelains.each do |porcelain|
|
712
|
+
plumbing = account_delete_response_to_plumbing(porcelain)
|
713
|
+
items.append(plumbing)
|
714
|
+
end
|
715
|
+
items
|
716
|
+
end
|
717
|
+
|
718
|
+
def self.repeated_account_delete_response_to_porcelain(plumbings)
|
719
|
+
items = Array.new
|
720
|
+
plumbings.each do |plumbing|
|
721
|
+
porcelain = account_delete_response_to_porcelain(plumbing)
|
722
|
+
items.append(porcelain)
|
723
|
+
end
|
724
|
+
items
|
725
|
+
end
|
726
|
+
def self.account_to_plumbing(porcelain)
|
727
|
+
if porcelain == nil
|
728
|
+
return nil
|
729
|
+
end
|
730
|
+
plumbing = V1::Account.new()
|
731
|
+
if porcelain .instance_of? User
|
732
|
+
plumbing.user = user_to_plumbing(porcelain)
|
733
|
+
end
|
734
|
+
if porcelain .instance_of? Service
|
735
|
+
plumbing.service = service_to_plumbing(porcelain)
|
736
|
+
end
|
737
|
+
plumbing
|
738
|
+
end
|
739
|
+
|
740
|
+
def self.account_to_porcelain(plumbing)
|
741
|
+
if plumbing == nil
|
742
|
+
return nil
|
743
|
+
end
|
744
|
+
if plumbing.user != nil
|
745
|
+
return user_to_porcelain(plumbing.user)
|
746
|
+
end
|
747
|
+
if plumbing.service != nil
|
748
|
+
return service_to_porcelain(plumbing.service)
|
749
|
+
end
|
750
|
+
end
|
751
|
+
def self.repeated_account_to_plumbing(porcelains)
|
752
|
+
items = Array.new
|
753
|
+
porcelains.each do |porcelain|
|
754
|
+
plumbing = account_to_plumbing(porcelain)
|
755
|
+
items.append(plumbing)
|
756
|
+
end
|
757
|
+
items
|
758
|
+
end
|
759
|
+
|
760
|
+
def self.repeated_account_to_porcelain(plumbings)
|
761
|
+
items = Array.new
|
762
|
+
plumbings.each do |plumbing|
|
763
|
+
porcelain = account_to_porcelain(plumbing)
|
764
|
+
items.append(porcelain)
|
765
|
+
end
|
766
|
+
items
|
767
|
+
end
|
768
|
+
def self.user_to_porcelain(plumbing)
|
769
|
+
if plumbing == nil
|
770
|
+
return nil
|
771
|
+
end
|
772
|
+
porcelain = User.new()
|
773
|
+
porcelain.id = plumbing.id
|
774
|
+
porcelain.email = plumbing.email
|
775
|
+
porcelain.first_name = plumbing.first_name
|
776
|
+
porcelain.last_name = plumbing.last_name
|
777
|
+
porcelain.suspended = plumbing.suspended
|
778
|
+
porcelain
|
779
|
+
end
|
780
|
+
|
781
|
+
def self.user_to_plumbing(porcelain)
|
782
|
+
if porcelain == nil
|
783
|
+
return nil
|
784
|
+
end
|
785
|
+
plumbing = V1::User.new()
|
786
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
787
|
+
plumbing.email = porcelain.email unless porcelain.email == nil
|
788
|
+
plumbing.first_name = porcelain.first_name unless porcelain.first_name == nil
|
789
|
+
plumbing.last_name = porcelain.last_name unless porcelain.last_name == nil
|
790
|
+
plumbing.suspended = porcelain.suspended unless porcelain.suspended == nil
|
791
|
+
plumbing
|
792
|
+
end
|
793
|
+
def self.repeated_user_to_plumbing(porcelains)
|
794
|
+
items = Array.new
|
795
|
+
porcelains.each do |porcelain|
|
796
|
+
plumbing = user_to_plumbing(porcelain)
|
797
|
+
items.append(plumbing)
|
798
|
+
end
|
799
|
+
items
|
800
|
+
end
|
801
|
+
|
802
|
+
def self.repeated_user_to_porcelain(plumbings)
|
803
|
+
items = Array.new
|
804
|
+
plumbings.each do |plumbing|
|
805
|
+
porcelain = user_to_porcelain(plumbing)
|
806
|
+
items.append(porcelain)
|
807
|
+
end
|
808
|
+
items
|
809
|
+
end
|
810
|
+
def self.service_to_porcelain(plumbing)
|
811
|
+
if plumbing == nil
|
812
|
+
return nil
|
813
|
+
end
|
814
|
+
porcelain = Service.new()
|
815
|
+
porcelain.id = plumbing.id
|
816
|
+
porcelain.name = plumbing.name
|
817
|
+
porcelain.suspended = plumbing.suspended
|
818
|
+
porcelain
|
819
|
+
end
|
820
|
+
|
821
|
+
def self.service_to_plumbing(porcelain)
|
822
|
+
if porcelain == nil
|
823
|
+
return nil
|
824
|
+
end
|
825
|
+
plumbing = V1::Service.new()
|
826
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
827
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
828
|
+
plumbing.suspended = porcelain.suspended unless porcelain.suspended == nil
|
829
|
+
plumbing
|
830
|
+
end
|
831
|
+
def self.repeated_service_to_plumbing(porcelains)
|
832
|
+
items = Array.new
|
833
|
+
porcelains.each do |porcelain|
|
834
|
+
plumbing = service_to_plumbing(porcelain)
|
835
|
+
items.append(plumbing)
|
836
|
+
end
|
837
|
+
items
|
838
|
+
end
|
839
|
+
|
840
|
+
def self.repeated_service_to_porcelain(plumbings)
|
841
|
+
items = Array.new
|
842
|
+
plumbings.each do |plumbing|
|
843
|
+
porcelain = service_to_porcelain(plumbing)
|
844
|
+
items.append(porcelain)
|
845
|
+
end
|
846
|
+
items
|
847
|
+
end
|
848
|
+
def self.resource_to_plumbing(porcelain)
|
849
|
+
if porcelain == nil
|
850
|
+
return nil
|
851
|
+
end
|
852
|
+
plumbing = V1::Resource.new()
|
853
|
+
if porcelain .instance_of? Athena
|
854
|
+
plumbing.athena = athena_to_plumbing(porcelain)
|
855
|
+
end
|
856
|
+
if porcelain .instance_of? BigQuery
|
857
|
+
plumbing.big_query = big_query_to_plumbing(porcelain)
|
858
|
+
end
|
859
|
+
if porcelain .instance_of? Cassandra
|
860
|
+
plumbing.cassandra = cassandra_to_plumbing(porcelain)
|
861
|
+
end
|
862
|
+
if porcelain .instance_of? Druid
|
863
|
+
plumbing.druid = druid_to_plumbing(porcelain)
|
864
|
+
end
|
865
|
+
if porcelain .instance_of? DynamoDB
|
866
|
+
plumbing.dynamo_db = dynamo_db_to_plumbing(porcelain)
|
867
|
+
end
|
868
|
+
if porcelain .instance_of? AmazonES
|
869
|
+
plumbing.amazon_es = amazon_es_to_plumbing(porcelain)
|
870
|
+
end
|
871
|
+
if porcelain .instance_of? Elastic
|
872
|
+
plumbing.elastic = elastic_to_plumbing(porcelain)
|
873
|
+
end
|
874
|
+
if porcelain .instance_of? HTTPBasicAuth
|
875
|
+
plumbing.http_basic_auth = http_basic_auth_to_plumbing(porcelain)
|
876
|
+
end
|
877
|
+
if porcelain .instance_of? HTTPNoAuth
|
878
|
+
plumbing.http_no_auth = http_no_auth_to_plumbing(porcelain)
|
879
|
+
end
|
880
|
+
if porcelain .instance_of? HTTPAuth
|
881
|
+
plumbing.http_auth = http_auth_to_plumbing(porcelain)
|
882
|
+
end
|
883
|
+
if porcelain .instance_of? Kubernetes
|
884
|
+
plumbing.kubernetes = kubernetes_to_plumbing(porcelain)
|
885
|
+
end
|
886
|
+
if porcelain .instance_of? KubernetesBasicAuth
|
887
|
+
plumbing.kubernetes_basic_auth = kubernetes_basic_auth_to_plumbing(porcelain)
|
888
|
+
end
|
889
|
+
if porcelain .instance_of? KubernetesServiceAccount
|
890
|
+
plumbing.kubernetes_service_account = kubernetes_service_account_to_plumbing(porcelain)
|
891
|
+
end
|
892
|
+
if porcelain .instance_of? AmazonEKS
|
893
|
+
plumbing.amazon_eks = amazon_eks_to_plumbing(porcelain)
|
894
|
+
end
|
895
|
+
if porcelain .instance_of? GoogleGKE
|
896
|
+
plumbing.google_gke = google_gke_to_plumbing(porcelain)
|
897
|
+
end
|
898
|
+
if porcelain .instance_of? AKS
|
899
|
+
plumbing.aks = aks_to_plumbing(porcelain)
|
900
|
+
end
|
901
|
+
if porcelain .instance_of? AKSBasicAuth
|
902
|
+
plumbing.aks_basic_auth = aks_basic_auth_to_plumbing(porcelain)
|
903
|
+
end
|
904
|
+
if porcelain .instance_of? AKSServiceAccount
|
905
|
+
plumbing.aks_service_account = aks_service_account_to_plumbing(porcelain)
|
906
|
+
end
|
907
|
+
if porcelain .instance_of? Memcached
|
908
|
+
plumbing.memcached = memcached_to_plumbing(porcelain)
|
909
|
+
end
|
910
|
+
if porcelain .instance_of? MongoLegacyHost
|
911
|
+
plumbing.mongo_legacy_host = mongo_legacy_host_to_plumbing(porcelain)
|
912
|
+
end
|
913
|
+
if porcelain .instance_of? MongoLegacyReplicaset
|
914
|
+
plumbing.mongo_legacy_replicaset = mongo_legacy_replicaset_to_plumbing(porcelain)
|
915
|
+
end
|
916
|
+
if porcelain .instance_of? MongoHost
|
917
|
+
plumbing.mongo_host = mongo_host_to_plumbing(porcelain)
|
918
|
+
end
|
919
|
+
if porcelain .instance_of? MongoReplicaSet
|
920
|
+
plumbing.mongo_replica_set = mongo_replica_set_to_plumbing(porcelain)
|
921
|
+
end
|
922
|
+
if porcelain .instance_of? Mysql
|
923
|
+
plumbing.mysql = mysql_to_plumbing(porcelain)
|
924
|
+
end
|
925
|
+
if porcelain .instance_of? AuroraMysql
|
926
|
+
plumbing.aurora_mysql = aurora_mysql_to_plumbing(porcelain)
|
927
|
+
end
|
928
|
+
if porcelain .instance_of? Clustrix
|
929
|
+
plumbing.clustrix = clustrix_to_plumbing(porcelain)
|
930
|
+
end
|
931
|
+
if porcelain .instance_of? Maria
|
932
|
+
plumbing.maria = maria_to_plumbing(porcelain)
|
933
|
+
end
|
934
|
+
if porcelain .instance_of? Memsql
|
935
|
+
plumbing.memsql = memsql_to_plumbing(porcelain)
|
936
|
+
end
|
937
|
+
if porcelain .instance_of? Oracle
|
938
|
+
plumbing.oracle = oracle_to_plumbing(porcelain)
|
939
|
+
end
|
940
|
+
if porcelain .instance_of? Postgres
|
941
|
+
plumbing.postgres = postgres_to_plumbing(porcelain)
|
942
|
+
end
|
943
|
+
if porcelain .instance_of? AuroraPostgres
|
944
|
+
plumbing.aurora_postgres = aurora_postgres_to_plumbing(porcelain)
|
945
|
+
end
|
946
|
+
if porcelain .instance_of? Greenplum
|
947
|
+
plumbing.greenplum = greenplum_to_plumbing(porcelain)
|
948
|
+
end
|
949
|
+
if porcelain .instance_of? Cockroach
|
950
|
+
plumbing.cockroach = cockroach_to_plumbing(porcelain)
|
951
|
+
end
|
952
|
+
if porcelain .instance_of? Redshift
|
953
|
+
plumbing.redshift = redshift_to_plumbing(porcelain)
|
954
|
+
end
|
955
|
+
if porcelain .instance_of? Presto
|
956
|
+
plumbing.presto = presto_to_plumbing(porcelain)
|
957
|
+
end
|
958
|
+
if porcelain .instance_of? RDP
|
959
|
+
plumbing.rdp = rdp_to_plumbing(porcelain)
|
960
|
+
end
|
961
|
+
if porcelain .instance_of? Redis
|
962
|
+
plumbing.redis = redis_to_plumbing(porcelain)
|
963
|
+
end
|
964
|
+
if porcelain .instance_of? ElasticacheRedis
|
965
|
+
plumbing.elasticache_redis = elasticache_redis_to_plumbing(porcelain)
|
966
|
+
end
|
967
|
+
if porcelain .instance_of? Snowflake
|
968
|
+
plumbing.snowflake = snowflake_to_plumbing(porcelain)
|
969
|
+
end
|
970
|
+
if porcelain .instance_of? SQLServer
|
971
|
+
plumbing.sql_server = sql_server_to_plumbing(porcelain)
|
972
|
+
end
|
973
|
+
if porcelain .instance_of? SSH
|
974
|
+
plumbing.ssh = ssh_to_plumbing(porcelain)
|
975
|
+
end
|
976
|
+
if porcelain .instance_of? Sybase
|
977
|
+
plumbing.sybase = sybase_to_plumbing(porcelain)
|
978
|
+
end
|
979
|
+
if porcelain .instance_of? SybaseIQ
|
980
|
+
plumbing.sybase_iq = sybase_iq_to_plumbing(porcelain)
|
981
|
+
end
|
982
|
+
if porcelain .instance_of? Teradata
|
983
|
+
plumbing.teradata = teradata_to_plumbing(porcelain)
|
984
|
+
end
|
985
|
+
plumbing
|
986
|
+
end
|
987
|
+
|
988
|
+
def self.resource_to_porcelain(plumbing)
|
989
|
+
if plumbing == nil
|
990
|
+
return nil
|
991
|
+
end
|
992
|
+
if plumbing.athena != nil
|
993
|
+
return athena_to_porcelain(plumbing.athena)
|
994
|
+
end
|
995
|
+
if plumbing.big_query != nil
|
996
|
+
return big_query_to_porcelain(plumbing.big_query)
|
997
|
+
end
|
998
|
+
if plumbing.cassandra != nil
|
999
|
+
return cassandra_to_porcelain(plumbing.cassandra)
|
1000
|
+
end
|
1001
|
+
if plumbing.druid != nil
|
1002
|
+
return druid_to_porcelain(plumbing.druid)
|
1003
|
+
end
|
1004
|
+
if plumbing.dynamo_db != nil
|
1005
|
+
return dynamo_db_to_porcelain(plumbing.dynamo_db)
|
1006
|
+
end
|
1007
|
+
if plumbing.amazon_es != nil
|
1008
|
+
return amazon_es_to_porcelain(plumbing.amazon_es)
|
1009
|
+
end
|
1010
|
+
if plumbing.elastic != nil
|
1011
|
+
return elastic_to_porcelain(plumbing.elastic)
|
1012
|
+
end
|
1013
|
+
if plumbing.http_basic_auth != nil
|
1014
|
+
return http_basic_auth_to_porcelain(plumbing.http_basic_auth)
|
1015
|
+
end
|
1016
|
+
if plumbing.http_no_auth != nil
|
1017
|
+
return http_no_auth_to_porcelain(plumbing.http_no_auth)
|
1018
|
+
end
|
1019
|
+
if plumbing.http_auth != nil
|
1020
|
+
return http_auth_to_porcelain(plumbing.http_auth)
|
1021
|
+
end
|
1022
|
+
if plumbing.kubernetes != nil
|
1023
|
+
return kubernetes_to_porcelain(plumbing.kubernetes)
|
1024
|
+
end
|
1025
|
+
if plumbing.kubernetes_basic_auth != nil
|
1026
|
+
return kubernetes_basic_auth_to_porcelain(plumbing.kubernetes_basic_auth)
|
1027
|
+
end
|
1028
|
+
if plumbing.kubernetes_service_account != nil
|
1029
|
+
return kubernetes_service_account_to_porcelain(plumbing.kubernetes_service_account)
|
1030
|
+
end
|
1031
|
+
if plumbing.amazon_eks != nil
|
1032
|
+
return amazon_eks_to_porcelain(plumbing.amazon_eks)
|
1033
|
+
end
|
1034
|
+
if plumbing.google_gke != nil
|
1035
|
+
return google_gke_to_porcelain(plumbing.google_gke)
|
1036
|
+
end
|
1037
|
+
if plumbing.aks != nil
|
1038
|
+
return aks_to_porcelain(plumbing.aks)
|
1039
|
+
end
|
1040
|
+
if plumbing.aks_basic_auth != nil
|
1041
|
+
return aks_basic_auth_to_porcelain(plumbing.aks_basic_auth)
|
1042
|
+
end
|
1043
|
+
if plumbing.aks_service_account != nil
|
1044
|
+
return aks_service_account_to_porcelain(plumbing.aks_service_account)
|
1045
|
+
end
|
1046
|
+
if plumbing.memcached != nil
|
1047
|
+
return memcached_to_porcelain(plumbing.memcached)
|
1048
|
+
end
|
1049
|
+
if plumbing.mongo_legacy_host != nil
|
1050
|
+
return mongo_legacy_host_to_porcelain(plumbing.mongo_legacy_host)
|
1051
|
+
end
|
1052
|
+
if plumbing.mongo_legacy_replicaset != nil
|
1053
|
+
return mongo_legacy_replicaset_to_porcelain(plumbing.mongo_legacy_replicaset)
|
1054
|
+
end
|
1055
|
+
if plumbing.mongo_host != nil
|
1056
|
+
return mongo_host_to_porcelain(plumbing.mongo_host)
|
1057
|
+
end
|
1058
|
+
if plumbing.mongo_replica_set != nil
|
1059
|
+
return mongo_replica_set_to_porcelain(plumbing.mongo_replica_set)
|
1060
|
+
end
|
1061
|
+
if plumbing.mysql != nil
|
1062
|
+
return mysql_to_porcelain(plumbing.mysql)
|
1063
|
+
end
|
1064
|
+
if plumbing.aurora_mysql != nil
|
1065
|
+
return aurora_mysql_to_porcelain(plumbing.aurora_mysql)
|
1066
|
+
end
|
1067
|
+
if plumbing.clustrix != nil
|
1068
|
+
return clustrix_to_porcelain(plumbing.clustrix)
|
1069
|
+
end
|
1070
|
+
if plumbing.maria != nil
|
1071
|
+
return maria_to_porcelain(plumbing.maria)
|
1072
|
+
end
|
1073
|
+
if plumbing.memsql != nil
|
1074
|
+
return memsql_to_porcelain(plumbing.memsql)
|
1075
|
+
end
|
1076
|
+
if plumbing.oracle != nil
|
1077
|
+
return oracle_to_porcelain(plumbing.oracle)
|
1078
|
+
end
|
1079
|
+
if plumbing.postgres != nil
|
1080
|
+
return postgres_to_porcelain(plumbing.postgres)
|
1081
|
+
end
|
1082
|
+
if plumbing.aurora_postgres != nil
|
1083
|
+
return aurora_postgres_to_porcelain(plumbing.aurora_postgres)
|
1084
|
+
end
|
1085
|
+
if plumbing.greenplum != nil
|
1086
|
+
return greenplum_to_porcelain(plumbing.greenplum)
|
1087
|
+
end
|
1088
|
+
if plumbing.cockroach != nil
|
1089
|
+
return cockroach_to_porcelain(plumbing.cockroach)
|
1090
|
+
end
|
1091
|
+
if plumbing.redshift != nil
|
1092
|
+
return redshift_to_porcelain(plumbing.redshift)
|
1093
|
+
end
|
1094
|
+
if plumbing.presto != nil
|
1095
|
+
return presto_to_porcelain(plumbing.presto)
|
1096
|
+
end
|
1097
|
+
if plumbing.rdp != nil
|
1098
|
+
return rdp_to_porcelain(plumbing.rdp)
|
1099
|
+
end
|
1100
|
+
if plumbing.redis != nil
|
1101
|
+
return redis_to_porcelain(plumbing.redis)
|
1102
|
+
end
|
1103
|
+
if plumbing.elasticache_redis != nil
|
1104
|
+
return elasticache_redis_to_porcelain(plumbing.elasticache_redis)
|
1105
|
+
end
|
1106
|
+
if plumbing.snowflake != nil
|
1107
|
+
return snowflake_to_porcelain(plumbing.snowflake)
|
1108
|
+
end
|
1109
|
+
if plumbing.sql_server != nil
|
1110
|
+
return sql_server_to_porcelain(plumbing.sql_server)
|
1111
|
+
end
|
1112
|
+
if plumbing.ssh != nil
|
1113
|
+
return ssh_to_porcelain(plumbing.ssh)
|
1114
|
+
end
|
1115
|
+
if plumbing.sybase != nil
|
1116
|
+
return sybase_to_porcelain(plumbing.sybase)
|
1117
|
+
end
|
1118
|
+
if plumbing.sybase_iq != nil
|
1119
|
+
return sybase_iq_to_porcelain(plumbing.sybase_iq)
|
1120
|
+
end
|
1121
|
+
if plumbing.teradata != nil
|
1122
|
+
return teradata_to_porcelain(plumbing.teradata)
|
1123
|
+
end
|
1124
|
+
end
|
1125
|
+
def self.repeated_resource_to_plumbing(porcelains)
|
1126
|
+
items = Array.new
|
1127
|
+
porcelains.each do |porcelain|
|
1128
|
+
plumbing = resource_to_plumbing(porcelain)
|
1129
|
+
items.append(plumbing)
|
1130
|
+
end
|
1131
|
+
items
|
1132
|
+
end
|
1133
|
+
|
1134
|
+
def self.repeated_resource_to_porcelain(plumbings)
|
1135
|
+
items = Array.new
|
1136
|
+
plumbings.each do |plumbing|
|
1137
|
+
porcelain = resource_to_porcelain(plumbing)
|
1138
|
+
items.append(porcelain)
|
1139
|
+
end
|
1140
|
+
items
|
1141
|
+
end
|
1142
|
+
def self.athena_to_porcelain(plumbing)
|
1143
|
+
if plumbing == nil
|
1144
|
+
return nil
|
1145
|
+
end
|
1146
|
+
porcelain = Athena.new()
|
1147
|
+
porcelain.id = plumbing.id
|
1148
|
+
porcelain.name = plumbing.name
|
1149
|
+
porcelain.healthy = plumbing.healthy
|
1150
|
+
porcelain.access_key = plumbing.access_key
|
1151
|
+
porcelain.secret_access_key = plumbing.secret_access_key
|
1152
|
+
porcelain.output = plumbing.output
|
1153
|
+
porcelain.port_override = plumbing.port_override
|
1154
|
+
porcelain.region = plumbing.region
|
1155
|
+
porcelain
|
1156
|
+
end
|
1157
|
+
|
1158
|
+
def self.athena_to_plumbing(porcelain)
|
1159
|
+
if porcelain == nil
|
1160
|
+
return nil
|
1161
|
+
end
|
1162
|
+
plumbing = V1::Athena.new()
|
1163
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
1164
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
1165
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
1166
|
+
plumbing.access_key = porcelain.access_key unless porcelain.access_key == nil
|
1167
|
+
plumbing.secret_access_key = porcelain.secret_access_key unless porcelain.secret_access_key == nil
|
1168
|
+
plumbing.output = porcelain.output unless porcelain.output == nil
|
1169
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
1170
|
+
plumbing.region = porcelain.region unless porcelain.region == nil
|
1171
|
+
plumbing
|
1172
|
+
end
|
1173
|
+
def self.repeated_athena_to_plumbing(porcelains)
|
1174
|
+
items = Array.new
|
1175
|
+
porcelains.each do |porcelain|
|
1176
|
+
plumbing = athena_to_plumbing(porcelain)
|
1177
|
+
items.append(plumbing)
|
1178
|
+
end
|
1179
|
+
items
|
1180
|
+
end
|
1181
|
+
|
1182
|
+
def self.repeated_athena_to_porcelain(plumbings)
|
1183
|
+
items = Array.new
|
1184
|
+
plumbings.each do |plumbing|
|
1185
|
+
porcelain = athena_to_porcelain(plumbing)
|
1186
|
+
items.append(porcelain)
|
1187
|
+
end
|
1188
|
+
items
|
1189
|
+
end
|
1190
|
+
def self.big_query_to_porcelain(plumbing)
|
1191
|
+
if plumbing == nil
|
1192
|
+
return nil
|
1193
|
+
end
|
1194
|
+
porcelain = BigQuery.new()
|
1195
|
+
porcelain.id = plumbing.id
|
1196
|
+
porcelain.name = plumbing.name
|
1197
|
+
porcelain.healthy = plumbing.healthy
|
1198
|
+
porcelain.private_key = plumbing.private_key
|
1199
|
+
porcelain.project = plumbing.project
|
1200
|
+
porcelain.port_override = plumbing.port_override
|
1201
|
+
porcelain.endpoint = plumbing.endpoint
|
1202
|
+
porcelain.username = plumbing.username
|
1203
|
+
porcelain
|
1204
|
+
end
|
1205
|
+
|
1206
|
+
def self.big_query_to_plumbing(porcelain)
|
1207
|
+
if porcelain == nil
|
1208
|
+
return nil
|
1209
|
+
end
|
1210
|
+
plumbing = V1::BigQuery.new()
|
1211
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
1212
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
1213
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
1214
|
+
plumbing.private_key = porcelain.private_key unless porcelain.private_key == nil
|
1215
|
+
plumbing.project = porcelain.project unless porcelain.project == nil
|
1216
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
1217
|
+
plumbing.endpoint = porcelain.endpoint unless porcelain.endpoint == nil
|
1218
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
1219
|
+
plumbing
|
1220
|
+
end
|
1221
|
+
def self.repeated_big_query_to_plumbing(porcelains)
|
1222
|
+
items = Array.new
|
1223
|
+
porcelains.each do |porcelain|
|
1224
|
+
plumbing = big_query_to_plumbing(porcelain)
|
1225
|
+
items.append(plumbing)
|
1226
|
+
end
|
1227
|
+
items
|
1228
|
+
end
|
1229
|
+
|
1230
|
+
def self.repeated_big_query_to_porcelain(plumbings)
|
1231
|
+
items = Array.new
|
1232
|
+
plumbings.each do |plumbing|
|
1233
|
+
porcelain = big_query_to_porcelain(plumbing)
|
1234
|
+
items.append(porcelain)
|
1235
|
+
end
|
1236
|
+
items
|
1237
|
+
end
|
1238
|
+
def self.cassandra_to_porcelain(plumbing)
|
1239
|
+
if plumbing == nil
|
1240
|
+
return nil
|
1241
|
+
end
|
1242
|
+
porcelain = Cassandra.new()
|
1243
|
+
porcelain.id = plumbing.id
|
1244
|
+
porcelain.name = plumbing.name
|
1245
|
+
porcelain.healthy = plumbing.healthy
|
1246
|
+
porcelain.hostname = plumbing.hostname
|
1247
|
+
porcelain.username = plumbing.username
|
1248
|
+
porcelain.password = plumbing.password
|
1249
|
+
porcelain.port_override = plumbing.port_override
|
1250
|
+
porcelain.port = plumbing.port
|
1251
|
+
porcelain.tls_required = plumbing.tls_required
|
1252
|
+
porcelain
|
1253
|
+
end
|
1254
|
+
|
1255
|
+
def self.cassandra_to_plumbing(porcelain)
|
1256
|
+
if porcelain == nil
|
1257
|
+
return nil
|
1258
|
+
end
|
1259
|
+
plumbing = V1::Cassandra.new()
|
1260
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
1261
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
1262
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
1263
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
1264
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
1265
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
1266
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
1267
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
1268
|
+
plumbing.tls_required = porcelain.tls_required unless porcelain.tls_required == nil
|
1269
|
+
plumbing
|
1270
|
+
end
|
1271
|
+
def self.repeated_cassandra_to_plumbing(porcelains)
|
1272
|
+
items = Array.new
|
1273
|
+
porcelains.each do |porcelain|
|
1274
|
+
plumbing = cassandra_to_plumbing(porcelain)
|
1275
|
+
items.append(plumbing)
|
1276
|
+
end
|
1277
|
+
items
|
1278
|
+
end
|
1279
|
+
|
1280
|
+
def self.repeated_cassandra_to_porcelain(plumbings)
|
1281
|
+
items = Array.new
|
1282
|
+
plumbings.each do |plumbing|
|
1283
|
+
porcelain = cassandra_to_porcelain(plumbing)
|
1284
|
+
items.append(porcelain)
|
1285
|
+
end
|
1286
|
+
items
|
1287
|
+
end
|
1288
|
+
def self.druid_to_porcelain(plumbing)
|
1289
|
+
if plumbing == nil
|
1290
|
+
return nil
|
1291
|
+
end
|
1292
|
+
porcelain = Druid.new()
|
1293
|
+
porcelain.id = plumbing.id
|
1294
|
+
porcelain.name = plumbing.name
|
1295
|
+
porcelain.healthy = plumbing.healthy
|
1296
|
+
porcelain.hostname = plumbing.hostname
|
1297
|
+
porcelain.port_override = plumbing.port_override
|
1298
|
+
porcelain.username = plumbing.username
|
1299
|
+
porcelain.password = plumbing.password
|
1300
|
+
porcelain.port = plumbing.port
|
1301
|
+
porcelain
|
1302
|
+
end
|
1303
|
+
|
1304
|
+
def self.druid_to_plumbing(porcelain)
|
1305
|
+
if porcelain == nil
|
1306
|
+
return nil
|
1307
|
+
end
|
1308
|
+
plumbing = V1::Druid.new()
|
1309
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
1310
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
1311
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
1312
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
1313
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
1314
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
1315
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
1316
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
1317
|
+
plumbing
|
1318
|
+
end
|
1319
|
+
def self.repeated_druid_to_plumbing(porcelains)
|
1320
|
+
items = Array.new
|
1321
|
+
porcelains.each do |porcelain|
|
1322
|
+
plumbing = druid_to_plumbing(porcelain)
|
1323
|
+
items.append(plumbing)
|
1324
|
+
end
|
1325
|
+
items
|
1326
|
+
end
|
1327
|
+
|
1328
|
+
def self.repeated_druid_to_porcelain(plumbings)
|
1329
|
+
items = Array.new
|
1330
|
+
plumbings.each do |plumbing|
|
1331
|
+
porcelain = druid_to_porcelain(plumbing)
|
1332
|
+
items.append(porcelain)
|
1333
|
+
end
|
1334
|
+
items
|
1335
|
+
end
|
1336
|
+
def self.dynamo_db_to_porcelain(plumbing)
|
1337
|
+
if plumbing == nil
|
1338
|
+
return nil
|
1339
|
+
end
|
1340
|
+
porcelain = DynamoDB.new()
|
1341
|
+
porcelain.id = plumbing.id
|
1342
|
+
porcelain.name = plumbing.name
|
1343
|
+
porcelain.healthy = plumbing.healthy
|
1344
|
+
porcelain.access_key = plumbing.access_key
|
1345
|
+
porcelain.secret_access_key = plumbing.secret_access_key
|
1346
|
+
porcelain.region = plumbing.region
|
1347
|
+
porcelain.endpoint = plumbing.endpoint
|
1348
|
+
porcelain.port_override = plumbing.port_override
|
1349
|
+
porcelain
|
1350
|
+
end
|
1351
|
+
|
1352
|
+
def self.dynamo_db_to_plumbing(porcelain)
|
1353
|
+
if porcelain == nil
|
1354
|
+
return nil
|
1355
|
+
end
|
1356
|
+
plumbing = V1::DynamoDB.new()
|
1357
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
1358
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
1359
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
1360
|
+
plumbing.access_key = porcelain.access_key unless porcelain.access_key == nil
|
1361
|
+
plumbing.secret_access_key = porcelain.secret_access_key unless porcelain.secret_access_key == nil
|
1362
|
+
plumbing.region = porcelain.region unless porcelain.region == nil
|
1363
|
+
plumbing.endpoint = porcelain.endpoint unless porcelain.endpoint == nil
|
1364
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
1365
|
+
plumbing
|
1366
|
+
end
|
1367
|
+
def self.repeated_dynamo_db_to_plumbing(porcelains)
|
1368
|
+
items = Array.new
|
1369
|
+
porcelains.each do |porcelain|
|
1370
|
+
plumbing = dynamo_db_to_plumbing(porcelain)
|
1371
|
+
items.append(plumbing)
|
1372
|
+
end
|
1373
|
+
items
|
1374
|
+
end
|
1375
|
+
|
1376
|
+
def self.repeated_dynamo_db_to_porcelain(plumbings)
|
1377
|
+
items = Array.new
|
1378
|
+
plumbings.each do |plumbing|
|
1379
|
+
porcelain = dynamo_db_to_porcelain(plumbing)
|
1380
|
+
items.append(porcelain)
|
1381
|
+
end
|
1382
|
+
items
|
1383
|
+
end
|
1384
|
+
def self.amazon_es_to_porcelain(plumbing)
|
1385
|
+
if plumbing == nil
|
1386
|
+
return nil
|
1387
|
+
end
|
1388
|
+
porcelain = AmazonES.new()
|
1389
|
+
porcelain.id = plumbing.id
|
1390
|
+
porcelain.name = plumbing.name
|
1391
|
+
porcelain.healthy = plumbing.healthy
|
1392
|
+
porcelain.region = plumbing.region
|
1393
|
+
porcelain.secret_access_key = plumbing.secret_access_key
|
1394
|
+
porcelain.endpoint = plumbing.endpoint
|
1395
|
+
porcelain.access_key = plumbing.access_key
|
1396
|
+
porcelain.port_override = plumbing.port_override
|
1397
|
+
porcelain
|
1398
|
+
end
|
1399
|
+
|
1400
|
+
def self.amazon_es_to_plumbing(porcelain)
|
1401
|
+
if porcelain == nil
|
1402
|
+
return nil
|
1403
|
+
end
|
1404
|
+
plumbing = V1::AmazonES.new()
|
1405
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
1406
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
1407
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
1408
|
+
plumbing.region = porcelain.region unless porcelain.region == nil
|
1409
|
+
plumbing.secret_access_key = porcelain.secret_access_key unless porcelain.secret_access_key == nil
|
1410
|
+
plumbing.endpoint = porcelain.endpoint unless porcelain.endpoint == nil
|
1411
|
+
plumbing.access_key = porcelain.access_key unless porcelain.access_key == nil
|
1412
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
1413
|
+
plumbing
|
1414
|
+
end
|
1415
|
+
def self.repeated_amazon_es_to_plumbing(porcelains)
|
1416
|
+
items = Array.new
|
1417
|
+
porcelains.each do |porcelain|
|
1418
|
+
plumbing = amazon_es_to_plumbing(porcelain)
|
1419
|
+
items.append(plumbing)
|
1420
|
+
end
|
1421
|
+
items
|
1422
|
+
end
|
1423
|
+
|
1424
|
+
def self.repeated_amazon_es_to_porcelain(plumbings)
|
1425
|
+
items = Array.new
|
1426
|
+
plumbings.each do |plumbing|
|
1427
|
+
porcelain = amazon_es_to_porcelain(plumbing)
|
1428
|
+
items.append(porcelain)
|
1429
|
+
end
|
1430
|
+
items
|
1431
|
+
end
|
1432
|
+
def self.elastic_to_porcelain(plumbing)
|
1433
|
+
if plumbing == nil
|
1434
|
+
return nil
|
1435
|
+
end
|
1436
|
+
porcelain = Elastic.new()
|
1437
|
+
porcelain.id = plumbing.id
|
1438
|
+
porcelain.name = plumbing.name
|
1439
|
+
porcelain.healthy = plumbing.healthy
|
1440
|
+
porcelain.hostname = plumbing.hostname
|
1441
|
+
porcelain.username = plumbing.username
|
1442
|
+
porcelain.password = plumbing.password
|
1443
|
+
porcelain.port_override = plumbing.port_override
|
1444
|
+
porcelain.port = plumbing.port
|
1445
|
+
porcelain.tls_required = plumbing.tls_required
|
1446
|
+
porcelain
|
1447
|
+
end
|
1448
|
+
|
1449
|
+
def self.elastic_to_plumbing(porcelain)
|
1450
|
+
if porcelain == nil
|
1451
|
+
return nil
|
1452
|
+
end
|
1453
|
+
plumbing = V1::Elastic.new()
|
1454
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
1455
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
1456
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
1457
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
1458
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
1459
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
1460
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
1461
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
1462
|
+
plumbing.tls_required = porcelain.tls_required unless porcelain.tls_required == nil
|
1463
|
+
plumbing
|
1464
|
+
end
|
1465
|
+
def self.repeated_elastic_to_plumbing(porcelains)
|
1466
|
+
items = Array.new
|
1467
|
+
porcelains.each do |porcelain|
|
1468
|
+
plumbing = elastic_to_plumbing(porcelain)
|
1469
|
+
items.append(plumbing)
|
1470
|
+
end
|
1471
|
+
items
|
1472
|
+
end
|
1473
|
+
|
1474
|
+
def self.repeated_elastic_to_porcelain(plumbings)
|
1475
|
+
items = Array.new
|
1476
|
+
plumbings.each do |plumbing|
|
1477
|
+
porcelain = elastic_to_porcelain(plumbing)
|
1478
|
+
items.append(porcelain)
|
1479
|
+
end
|
1480
|
+
items
|
1481
|
+
end
|
1482
|
+
def self.http_basic_auth_to_porcelain(plumbing)
|
1483
|
+
if plumbing == nil
|
1484
|
+
return nil
|
1485
|
+
end
|
1486
|
+
porcelain = HTTPBasicAuth.new()
|
1487
|
+
porcelain.id = plumbing.id
|
1488
|
+
porcelain.name = plumbing.name
|
1489
|
+
porcelain.healthy = plumbing.healthy
|
1490
|
+
porcelain.url = plumbing.url
|
1491
|
+
porcelain.healthcheck_path = plumbing.healthcheck_path
|
1492
|
+
porcelain.username = plumbing.username
|
1493
|
+
porcelain.password = plumbing.password
|
1494
|
+
porcelain.headers_blacklist = plumbing.headers_blacklist
|
1495
|
+
porcelain.default_path = plumbing.default_path
|
1496
|
+
porcelain.subdomain = plumbing.subdomain
|
1497
|
+
porcelain
|
1498
|
+
end
|
1499
|
+
|
1500
|
+
def self.http_basic_auth_to_plumbing(porcelain)
|
1501
|
+
if porcelain == nil
|
1502
|
+
return nil
|
1503
|
+
end
|
1504
|
+
plumbing = V1::HTTPBasicAuth.new()
|
1505
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
1506
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
1507
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
1508
|
+
plumbing.url = porcelain.url unless porcelain.url == nil
|
1509
|
+
plumbing.healthcheck_path = porcelain.healthcheck_path unless porcelain.healthcheck_path == nil
|
1510
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
1511
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
1512
|
+
plumbing.headers_blacklist = porcelain.headers_blacklist unless porcelain.headers_blacklist == nil
|
1513
|
+
plumbing.default_path = porcelain.default_path unless porcelain.default_path == nil
|
1514
|
+
plumbing.subdomain = porcelain.subdomain unless porcelain.subdomain == nil
|
1515
|
+
plumbing
|
1516
|
+
end
|
1517
|
+
def self.repeated_http_basic_auth_to_plumbing(porcelains)
|
1518
|
+
items = Array.new
|
1519
|
+
porcelains.each do |porcelain|
|
1520
|
+
plumbing = http_basic_auth_to_plumbing(porcelain)
|
1521
|
+
items.append(plumbing)
|
1522
|
+
end
|
1523
|
+
items
|
1524
|
+
end
|
1525
|
+
|
1526
|
+
def self.repeated_http_basic_auth_to_porcelain(plumbings)
|
1527
|
+
items = Array.new
|
1528
|
+
plumbings.each do |plumbing|
|
1529
|
+
porcelain = http_basic_auth_to_porcelain(plumbing)
|
1530
|
+
items.append(porcelain)
|
1531
|
+
end
|
1532
|
+
items
|
1533
|
+
end
|
1534
|
+
def self.http_no_auth_to_porcelain(plumbing)
|
1535
|
+
if plumbing == nil
|
1536
|
+
return nil
|
1537
|
+
end
|
1538
|
+
porcelain = HTTPNoAuth.new()
|
1539
|
+
porcelain.id = plumbing.id
|
1540
|
+
porcelain.name = plumbing.name
|
1541
|
+
porcelain.healthy = plumbing.healthy
|
1542
|
+
porcelain.url = plumbing.url
|
1543
|
+
porcelain.healthcheck_path = plumbing.healthcheck_path
|
1544
|
+
porcelain.headers_blacklist = plumbing.headers_blacklist
|
1545
|
+
porcelain.default_path = plumbing.default_path
|
1546
|
+
porcelain.subdomain = plumbing.subdomain
|
1547
|
+
porcelain
|
1548
|
+
end
|
1549
|
+
|
1550
|
+
def self.http_no_auth_to_plumbing(porcelain)
|
1551
|
+
if porcelain == nil
|
1552
|
+
return nil
|
1553
|
+
end
|
1554
|
+
plumbing = V1::HTTPNoAuth.new()
|
1555
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
1556
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
1557
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
1558
|
+
plumbing.url = porcelain.url unless porcelain.url == nil
|
1559
|
+
plumbing.healthcheck_path = porcelain.healthcheck_path unless porcelain.healthcheck_path == nil
|
1560
|
+
plumbing.headers_blacklist = porcelain.headers_blacklist unless porcelain.headers_blacklist == nil
|
1561
|
+
plumbing.default_path = porcelain.default_path unless porcelain.default_path == nil
|
1562
|
+
plumbing.subdomain = porcelain.subdomain unless porcelain.subdomain == nil
|
1563
|
+
plumbing
|
1564
|
+
end
|
1565
|
+
def self.repeated_http_no_auth_to_plumbing(porcelains)
|
1566
|
+
items = Array.new
|
1567
|
+
porcelains.each do |porcelain|
|
1568
|
+
plumbing = http_no_auth_to_plumbing(porcelain)
|
1569
|
+
items.append(plumbing)
|
1570
|
+
end
|
1571
|
+
items
|
1572
|
+
end
|
1573
|
+
|
1574
|
+
def self.repeated_http_no_auth_to_porcelain(plumbings)
|
1575
|
+
items = Array.new
|
1576
|
+
plumbings.each do |plumbing|
|
1577
|
+
porcelain = http_no_auth_to_porcelain(plumbing)
|
1578
|
+
items.append(porcelain)
|
1579
|
+
end
|
1580
|
+
items
|
1581
|
+
end
|
1582
|
+
def self.http_auth_to_porcelain(plumbing)
|
1583
|
+
if plumbing == nil
|
1584
|
+
return nil
|
1585
|
+
end
|
1586
|
+
porcelain = HTTPAuth.new()
|
1587
|
+
porcelain.id = plumbing.id
|
1588
|
+
porcelain.name = plumbing.name
|
1589
|
+
porcelain.healthy = plumbing.healthy
|
1590
|
+
porcelain.url = plumbing.url
|
1591
|
+
porcelain.healthcheck_path = plumbing.healthcheck_path
|
1592
|
+
porcelain.auth_header = plumbing.auth_header
|
1593
|
+
porcelain.headers_blacklist = plumbing.headers_blacklist
|
1594
|
+
porcelain.default_path = plumbing.default_path
|
1595
|
+
porcelain.subdomain = plumbing.subdomain
|
1596
|
+
porcelain
|
1597
|
+
end
|
1598
|
+
|
1599
|
+
def self.http_auth_to_plumbing(porcelain)
|
1600
|
+
if porcelain == nil
|
1601
|
+
return nil
|
1602
|
+
end
|
1603
|
+
plumbing = V1::HTTPAuth.new()
|
1604
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
1605
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
1606
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
1607
|
+
plumbing.url = porcelain.url unless porcelain.url == nil
|
1608
|
+
plumbing.healthcheck_path = porcelain.healthcheck_path unless porcelain.healthcheck_path == nil
|
1609
|
+
plumbing.auth_header = porcelain.auth_header unless porcelain.auth_header == nil
|
1610
|
+
plumbing.headers_blacklist = porcelain.headers_blacklist unless porcelain.headers_blacklist == nil
|
1611
|
+
plumbing.default_path = porcelain.default_path unless porcelain.default_path == nil
|
1612
|
+
plumbing.subdomain = porcelain.subdomain unless porcelain.subdomain == nil
|
1613
|
+
plumbing
|
1614
|
+
end
|
1615
|
+
def self.repeated_http_auth_to_plumbing(porcelains)
|
1616
|
+
items = Array.new
|
1617
|
+
porcelains.each do |porcelain|
|
1618
|
+
plumbing = http_auth_to_plumbing(porcelain)
|
1619
|
+
items.append(plumbing)
|
1620
|
+
end
|
1621
|
+
items
|
1622
|
+
end
|
1623
|
+
|
1624
|
+
def self.repeated_http_auth_to_porcelain(plumbings)
|
1625
|
+
items = Array.new
|
1626
|
+
plumbings.each do |plumbing|
|
1627
|
+
porcelain = http_auth_to_porcelain(plumbing)
|
1628
|
+
items.append(porcelain)
|
1629
|
+
end
|
1630
|
+
items
|
1631
|
+
end
|
1632
|
+
def self.kubernetes_to_porcelain(plumbing)
|
1633
|
+
if plumbing == nil
|
1634
|
+
return nil
|
1635
|
+
end
|
1636
|
+
porcelain = Kubernetes.new()
|
1637
|
+
porcelain.id = plumbing.id
|
1638
|
+
porcelain.name = plumbing.name
|
1639
|
+
porcelain.healthy = plumbing.healthy
|
1640
|
+
porcelain.hostname = plumbing.hostname
|
1641
|
+
porcelain.port = plumbing.port
|
1642
|
+
porcelain.certificate_authority = plumbing.certificate_authority
|
1643
|
+
porcelain.certificate_authority_filename = plumbing.certificate_authority_filename
|
1644
|
+
porcelain.client_certificate = plumbing.client_certificate
|
1645
|
+
porcelain.client_certificate_filename = plumbing.client_certificate_filename
|
1646
|
+
porcelain.client_key = plumbing.client_key
|
1647
|
+
porcelain.client_key_filename = plumbing.client_key_filename
|
1648
|
+
porcelain
|
1649
|
+
end
|
1650
|
+
|
1651
|
+
def self.kubernetes_to_plumbing(porcelain)
|
1652
|
+
if porcelain == nil
|
1653
|
+
return nil
|
1654
|
+
end
|
1655
|
+
plumbing = V1::Kubernetes.new()
|
1656
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
1657
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
1658
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
1659
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
1660
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
1661
|
+
plumbing.certificate_authority = porcelain.certificate_authority unless porcelain.certificate_authority == nil
|
1662
|
+
plumbing.certificate_authority_filename = porcelain.certificate_authority_filename unless porcelain.certificate_authority_filename == nil
|
1663
|
+
plumbing.client_certificate = porcelain.client_certificate unless porcelain.client_certificate == nil
|
1664
|
+
plumbing.client_certificate_filename = porcelain.client_certificate_filename unless porcelain.client_certificate_filename == nil
|
1665
|
+
plumbing.client_key = porcelain.client_key unless porcelain.client_key == nil
|
1666
|
+
plumbing.client_key_filename = porcelain.client_key_filename unless porcelain.client_key_filename == nil
|
1667
|
+
plumbing
|
1668
|
+
end
|
1669
|
+
def self.repeated_kubernetes_to_plumbing(porcelains)
|
1670
|
+
items = Array.new
|
1671
|
+
porcelains.each do |porcelain|
|
1672
|
+
plumbing = kubernetes_to_plumbing(porcelain)
|
1673
|
+
items.append(plumbing)
|
1674
|
+
end
|
1675
|
+
items
|
1676
|
+
end
|
1677
|
+
|
1678
|
+
def self.repeated_kubernetes_to_porcelain(plumbings)
|
1679
|
+
items = Array.new
|
1680
|
+
plumbings.each do |plumbing|
|
1681
|
+
porcelain = kubernetes_to_porcelain(plumbing)
|
1682
|
+
items.append(porcelain)
|
1683
|
+
end
|
1684
|
+
items
|
1685
|
+
end
|
1686
|
+
def self.kubernetes_basic_auth_to_porcelain(plumbing)
|
1687
|
+
if plumbing == nil
|
1688
|
+
return nil
|
1689
|
+
end
|
1690
|
+
porcelain = KubernetesBasicAuth.new()
|
1691
|
+
porcelain.id = plumbing.id
|
1692
|
+
porcelain.name = plumbing.name
|
1693
|
+
porcelain.healthy = plumbing.healthy
|
1694
|
+
porcelain.hostname = plumbing.hostname
|
1695
|
+
porcelain.port = plumbing.port
|
1696
|
+
porcelain.username = plumbing.username
|
1697
|
+
porcelain.password = plumbing.password
|
1698
|
+
porcelain
|
1699
|
+
end
|
1700
|
+
|
1701
|
+
def self.kubernetes_basic_auth_to_plumbing(porcelain)
|
1702
|
+
if porcelain == nil
|
1703
|
+
return nil
|
1704
|
+
end
|
1705
|
+
plumbing = V1::KubernetesBasicAuth.new()
|
1706
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
1707
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
1708
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
1709
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
1710
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
1711
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
1712
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
1713
|
+
plumbing
|
1714
|
+
end
|
1715
|
+
def self.repeated_kubernetes_basic_auth_to_plumbing(porcelains)
|
1716
|
+
items = Array.new
|
1717
|
+
porcelains.each do |porcelain|
|
1718
|
+
plumbing = kubernetes_basic_auth_to_plumbing(porcelain)
|
1719
|
+
items.append(plumbing)
|
1720
|
+
end
|
1721
|
+
items
|
1722
|
+
end
|
1723
|
+
|
1724
|
+
def self.repeated_kubernetes_basic_auth_to_porcelain(plumbings)
|
1725
|
+
items = Array.new
|
1726
|
+
plumbings.each do |plumbing|
|
1727
|
+
porcelain = kubernetes_basic_auth_to_porcelain(plumbing)
|
1728
|
+
items.append(porcelain)
|
1729
|
+
end
|
1730
|
+
items
|
1731
|
+
end
|
1732
|
+
def self.kubernetes_service_account_to_porcelain(plumbing)
|
1733
|
+
if plumbing == nil
|
1734
|
+
return nil
|
1735
|
+
end
|
1736
|
+
porcelain = KubernetesServiceAccount.new()
|
1737
|
+
porcelain.id = plumbing.id
|
1738
|
+
porcelain.name = plumbing.name
|
1739
|
+
porcelain.healthy = plumbing.healthy
|
1740
|
+
porcelain.hostname = plumbing.hostname
|
1741
|
+
porcelain.port = plumbing.port
|
1742
|
+
porcelain.token = plumbing.token
|
1743
|
+
porcelain
|
1744
|
+
end
|
1745
|
+
|
1746
|
+
def self.kubernetes_service_account_to_plumbing(porcelain)
|
1747
|
+
if porcelain == nil
|
1748
|
+
return nil
|
1749
|
+
end
|
1750
|
+
plumbing = V1::KubernetesServiceAccount.new()
|
1751
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
1752
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
1753
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
1754
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
1755
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
1756
|
+
plumbing.token = porcelain.token unless porcelain.token == nil
|
1757
|
+
plumbing
|
1758
|
+
end
|
1759
|
+
def self.repeated_kubernetes_service_account_to_plumbing(porcelains)
|
1760
|
+
items = Array.new
|
1761
|
+
porcelains.each do |porcelain|
|
1762
|
+
plumbing = kubernetes_service_account_to_plumbing(porcelain)
|
1763
|
+
items.append(plumbing)
|
1764
|
+
end
|
1765
|
+
items
|
1766
|
+
end
|
1767
|
+
|
1768
|
+
def self.repeated_kubernetes_service_account_to_porcelain(plumbings)
|
1769
|
+
items = Array.new
|
1770
|
+
plumbings.each do |plumbing|
|
1771
|
+
porcelain = kubernetes_service_account_to_porcelain(plumbing)
|
1772
|
+
items.append(porcelain)
|
1773
|
+
end
|
1774
|
+
items
|
1775
|
+
end
|
1776
|
+
def self.amazon_eks_to_porcelain(plumbing)
|
1777
|
+
if plumbing == nil
|
1778
|
+
return nil
|
1779
|
+
end
|
1780
|
+
porcelain = AmazonEKS.new()
|
1781
|
+
porcelain.id = plumbing.id
|
1782
|
+
porcelain.name = plumbing.name
|
1783
|
+
porcelain.healthy = plumbing.healthy
|
1784
|
+
porcelain.endpoint = plumbing.endpoint
|
1785
|
+
porcelain.access_key = plumbing.access_key
|
1786
|
+
porcelain.secret_access_key = plumbing.secret_access_key
|
1787
|
+
porcelain.certificate_authority = plumbing.certificate_authority
|
1788
|
+
porcelain.certificate_authority_filename = plumbing.certificate_authority_filename
|
1789
|
+
porcelain.region = plumbing.region
|
1790
|
+
porcelain.cluster_name = plumbing.cluster_name
|
1791
|
+
porcelain
|
1792
|
+
end
|
1793
|
+
|
1794
|
+
def self.amazon_eks_to_plumbing(porcelain)
|
1795
|
+
if porcelain == nil
|
1796
|
+
return nil
|
1797
|
+
end
|
1798
|
+
plumbing = V1::AmazonEKS.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.endpoint = porcelain.endpoint unless porcelain.endpoint == nil
|
1803
|
+
plumbing.access_key = porcelain.access_key unless porcelain.access_key == nil
|
1804
|
+
plumbing.secret_access_key = porcelain.secret_access_key unless porcelain.secret_access_key == nil
|
1805
|
+
plumbing.certificate_authority = porcelain.certificate_authority unless porcelain.certificate_authority == nil
|
1806
|
+
plumbing.certificate_authority_filename = porcelain.certificate_authority_filename unless porcelain.certificate_authority_filename == nil
|
1807
|
+
plumbing.region = porcelain.region unless porcelain.region == nil
|
1808
|
+
plumbing.cluster_name = porcelain.cluster_name unless porcelain.cluster_name == nil
|
1809
|
+
plumbing
|
1810
|
+
end
|
1811
|
+
def self.repeated_amazon_eks_to_plumbing(porcelains)
|
1812
|
+
items = Array.new
|
1813
|
+
porcelains.each do |porcelain|
|
1814
|
+
plumbing = amazon_eks_to_plumbing(porcelain)
|
1815
|
+
items.append(plumbing)
|
1816
|
+
end
|
1817
|
+
items
|
1818
|
+
end
|
1819
|
+
|
1820
|
+
def self.repeated_amazon_eks_to_porcelain(plumbings)
|
1821
|
+
items = Array.new
|
1822
|
+
plumbings.each do |plumbing|
|
1823
|
+
porcelain = amazon_eks_to_porcelain(plumbing)
|
1824
|
+
items.append(porcelain)
|
1825
|
+
end
|
1826
|
+
items
|
1827
|
+
end
|
1828
|
+
def self.google_gke_to_porcelain(plumbing)
|
1829
|
+
if plumbing == nil
|
1830
|
+
return nil
|
1831
|
+
end
|
1832
|
+
porcelain = GoogleGKE.new()
|
1833
|
+
porcelain.id = plumbing.id
|
1834
|
+
porcelain.name = plumbing.name
|
1835
|
+
porcelain.healthy = plumbing.healthy
|
1836
|
+
porcelain.endpoint = plumbing.endpoint
|
1837
|
+
porcelain.certificate_authority = plumbing.certificate_authority
|
1838
|
+
porcelain.certificate_authority_filename = plumbing.certificate_authority_filename
|
1839
|
+
porcelain.service_account_key = plumbing.service_account_key
|
1840
|
+
porcelain.service_account_key_filename = plumbing.service_account_key_filename
|
1841
|
+
porcelain
|
1842
|
+
end
|
1843
|
+
|
1844
|
+
def self.google_gke_to_plumbing(porcelain)
|
1845
|
+
if porcelain == nil
|
1846
|
+
return nil
|
1847
|
+
end
|
1848
|
+
plumbing = V1::GoogleGKE.new()
|
1849
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
1850
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
1851
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
1852
|
+
plumbing.endpoint = porcelain.endpoint unless porcelain.endpoint == nil
|
1853
|
+
plumbing.certificate_authority = porcelain.certificate_authority unless porcelain.certificate_authority == nil
|
1854
|
+
plumbing.certificate_authority_filename = porcelain.certificate_authority_filename unless porcelain.certificate_authority_filename == nil
|
1855
|
+
plumbing.service_account_key = porcelain.service_account_key unless porcelain.service_account_key == nil
|
1856
|
+
plumbing.service_account_key_filename = porcelain.service_account_key_filename unless porcelain.service_account_key_filename == nil
|
1857
|
+
plumbing
|
1858
|
+
end
|
1859
|
+
def self.repeated_google_gke_to_plumbing(porcelains)
|
1860
|
+
items = Array.new
|
1861
|
+
porcelains.each do |porcelain|
|
1862
|
+
plumbing = google_gke_to_plumbing(porcelain)
|
1863
|
+
items.append(plumbing)
|
1864
|
+
end
|
1865
|
+
items
|
1866
|
+
end
|
1867
|
+
|
1868
|
+
def self.repeated_google_gke_to_porcelain(plumbings)
|
1869
|
+
items = Array.new
|
1870
|
+
plumbings.each do |plumbing|
|
1871
|
+
porcelain = google_gke_to_porcelain(plumbing)
|
1872
|
+
items.append(porcelain)
|
1873
|
+
end
|
1874
|
+
items
|
1875
|
+
end
|
1876
|
+
def self.aks_to_porcelain(plumbing)
|
1877
|
+
if plumbing == nil
|
1878
|
+
return nil
|
1879
|
+
end
|
1880
|
+
porcelain = AKS.new()
|
1881
|
+
porcelain.id = plumbing.id
|
1882
|
+
porcelain.name = plumbing.name
|
1883
|
+
porcelain.healthy = plumbing.healthy
|
1884
|
+
porcelain.hostname = plumbing.hostname
|
1885
|
+
porcelain.port = plumbing.port
|
1886
|
+
porcelain.certificate_authority = plumbing.certificate_authority
|
1887
|
+
porcelain.certificate_authority_filename = plumbing.certificate_authority_filename
|
1888
|
+
porcelain.client_certificate = plumbing.client_certificate
|
1889
|
+
porcelain.client_certificate_filename = plumbing.client_certificate_filename
|
1890
|
+
porcelain.client_key = plumbing.client_key
|
1891
|
+
porcelain.client_key_filename = plumbing.client_key_filename
|
1892
|
+
porcelain
|
1893
|
+
end
|
1894
|
+
|
1895
|
+
def self.aks_to_plumbing(porcelain)
|
1896
|
+
if porcelain == nil
|
1897
|
+
return nil
|
1898
|
+
end
|
1899
|
+
plumbing = V1::AKS.new()
|
1900
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
1901
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
1902
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
1903
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
1904
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
1905
|
+
plumbing.certificate_authority = porcelain.certificate_authority unless porcelain.certificate_authority == nil
|
1906
|
+
plumbing.certificate_authority_filename = porcelain.certificate_authority_filename unless porcelain.certificate_authority_filename == nil
|
1907
|
+
plumbing.client_certificate = porcelain.client_certificate unless porcelain.client_certificate == nil
|
1908
|
+
plumbing.client_certificate_filename = porcelain.client_certificate_filename unless porcelain.client_certificate_filename == nil
|
1909
|
+
plumbing.client_key = porcelain.client_key unless porcelain.client_key == nil
|
1910
|
+
plumbing.client_key_filename = porcelain.client_key_filename unless porcelain.client_key_filename == nil
|
1911
|
+
plumbing
|
1912
|
+
end
|
1913
|
+
def self.repeated_aks_to_plumbing(porcelains)
|
1914
|
+
items = Array.new
|
1915
|
+
porcelains.each do |porcelain|
|
1916
|
+
plumbing = aks_to_plumbing(porcelain)
|
1917
|
+
items.append(plumbing)
|
1918
|
+
end
|
1919
|
+
items
|
1920
|
+
end
|
1921
|
+
|
1922
|
+
def self.repeated_aks_to_porcelain(plumbings)
|
1923
|
+
items = Array.new
|
1924
|
+
plumbings.each do |plumbing|
|
1925
|
+
porcelain = aks_to_porcelain(plumbing)
|
1926
|
+
items.append(porcelain)
|
1927
|
+
end
|
1928
|
+
items
|
1929
|
+
end
|
1930
|
+
def self.aks_basic_auth_to_porcelain(plumbing)
|
1931
|
+
if plumbing == nil
|
1932
|
+
return nil
|
1933
|
+
end
|
1934
|
+
porcelain = AKSBasicAuth.new()
|
1935
|
+
porcelain.id = plumbing.id
|
1936
|
+
porcelain.name = plumbing.name
|
1937
|
+
porcelain.healthy = plumbing.healthy
|
1938
|
+
porcelain.hostname = plumbing.hostname
|
1939
|
+
porcelain.port = plumbing.port
|
1940
|
+
porcelain.username = plumbing.username
|
1941
|
+
porcelain.password = plumbing.password
|
1942
|
+
porcelain
|
1943
|
+
end
|
1944
|
+
|
1945
|
+
def self.aks_basic_auth_to_plumbing(porcelain)
|
1946
|
+
if porcelain == nil
|
1947
|
+
return nil
|
1948
|
+
end
|
1949
|
+
plumbing = V1::AKSBasicAuth.new()
|
1950
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
1951
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
1952
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
1953
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
1954
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
1955
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
1956
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
1957
|
+
plumbing
|
1958
|
+
end
|
1959
|
+
def self.repeated_aks_basic_auth_to_plumbing(porcelains)
|
1960
|
+
items = Array.new
|
1961
|
+
porcelains.each do |porcelain|
|
1962
|
+
plumbing = aks_basic_auth_to_plumbing(porcelain)
|
1963
|
+
items.append(plumbing)
|
1964
|
+
end
|
1965
|
+
items
|
1966
|
+
end
|
1967
|
+
|
1968
|
+
def self.repeated_aks_basic_auth_to_porcelain(plumbings)
|
1969
|
+
items = Array.new
|
1970
|
+
plumbings.each do |plumbing|
|
1971
|
+
porcelain = aks_basic_auth_to_porcelain(plumbing)
|
1972
|
+
items.append(porcelain)
|
1973
|
+
end
|
1974
|
+
items
|
1975
|
+
end
|
1976
|
+
def self.aks_service_account_to_porcelain(plumbing)
|
1977
|
+
if plumbing == nil
|
1978
|
+
return nil
|
1979
|
+
end
|
1980
|
+
porcelain = AKSServiceAccount.new()
|
1981
|
+
porcelain.id = plumbing.id
|
1982
|
+
porcelain.name = plumbing.name
|
1983
|
+
porcelain.healthy = plumbing.healthy
|
1984
|
+
porcelain.hostname = plumbing.hostname
|
1985
|
+
porcelain.port = plumbing.port
|
1986
|
+
porcelain.token = plumbing.token
|
1987
|
+
porcelain
|
1988
|
+
end
|
1989
|
+
|
1990
|
+
def self.aks_service_account_to_plumbing(porcelain)
|
1991
|
+
if porcelain == nil
|
1992
|
+
return nil
|
1993
|
+
end
|
1994
|
+
plumbing = V1::AKSServiceAccount.new()
|
1995
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
1996
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
1997
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
1998
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
1999
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
2000
|
+
plumbing.token = porcelain.token unless porcelain.token == nil
|
2001
|
+
plumbing
|
2002
|
+
end
|
2003
|
+
def self.repeated_aks_service_account_to_plumbing(porcelains)
|
2004
|
+
items = Array.new
|
2005
|
+
porcelains.each do |porcelain|
|
2006
|
+
plumbing = aks_service_account_to_plumbing(porcelain)
|
2007
|
+
items.append(plumbing)
|
2008
|
+
end
|
2009
|
+
items
|
2010
|
+
end
|
2011
|
+
|
2012
|
+
def self.repeated_aks_service_account_to_porcelain(plumbings)
|
2013
|
+
items = Array.new
|
2014
|
+
plumbings.each do |plumbing|
|
2015
|
+
porcelain = aks_service_account_to_porcelain(plumbing)
|
2016
|
+
items.append(porcelain)
|
2017
|
+
end
|
2018
|
+
items
|
2019
|
+
end
|
2020
|
+
def self.memcached_to_porcelain(plumbing)
|
2021
|
+
if plumbing == nil
|
2022
|
+
return nil
|
2023
|
+
end
|
2024
|
+
porcelain = Memcached.new()
|
2025
|
+
porcelain.id = plumbing.id
|
2026
|
+
porcelain.name = plumbing.name
|
2027
|
+
porcelain.healthy = plumbing.healthy
|
2028
|
+
porcelain.hostname = plumbing.hostname
|
2029
|
+
porcelain.port_override = plumbing.port_override
|
2030
|
+
porcelain.port = plumbing.port
|
2031
|
+
porcelain
|
2032
|
+
end
|
2033
|
+
|
2034
|
+
def self.memcached_to_plumbing(porcelain)
|
2035
|
+
if porcelain == nil
|
2036
|
+
return nil
|
2037
|
+
end
|
2038
|
+
plumbing = V1::Memcached.new()
|
2039
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
2040
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
2041
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
2042
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
2043
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
2044
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
2045
|
+
plumbing
|
2046
|
+
end
|
2047
|
+
def self.repeated_memcached_to_plumbing(porcelains)
|
2048
|
+
items = Array.new
|
2049
|
+
porcelains.each do |porcelain|
|
2050
|
+
plumbing = memcached_to_plumbing(porcelain)
|
2051
|
+
items.append(plumbing)
|
2052
|
+
end
|
2053
|
+
items
|
2054
|
+
end
|
2055
|
+
|
2056
|
+
def self.repeated_memcached_to_porcelain(plumbings)
|
2057
|
+
items = Array.new
|
2058
|
+
plumbings.each do |plumbing|
|
2059
|
+
porcelain = memcached_to_porcelain(plumbing)
|
2060
|
+
items.append(porcelain)
|
2061
|
+
end
|
2062
|
+
items
|
2063
|
+
end
|
2064
|
+
def self.mongo_legacy_host_to_porcelain(plumbing)
|
2065
|
+
if plumbing == nil
|
2066
|
+
return nil
|
2067
|
+
end
|
2068
|
+
porcelain = MongoLegacyHost.new()
|
2069
|
+
porcelain.id = plumbing.id
|
2070
|
+
porcelain.name = plumbing.name
|
2071
|
+
porcelain.healthy = plumbing.healthy
|
2072
|
+
porcelain.hostname = plumbing.hostname
|
2073
|
+
porcelain.auth_database = plumbing.auth_database
|
2074
|
+
porcelain.port_override = plumbing.port_override
|
2075
|
+
porcelain.username = plumbing.username
|
2076
|
+
porcelain.password = plumbing.password
|
2077
|
+
porcelain.port = plumbing.port
|
2078
|
+
porcelain.replica_set = plumbing.replica_set
|
2079
|
+
porcelain.tls_required = plumbing.tls_required
|
2080
|
+
porcelain
|
2081
|
+
end
|
2082
|
+
|
2083
|
+
def self.mongo_legacy_host_to_plumbing(porcelain)
|
2084
|
+
if porcelain == nil
|
2085
|
+
return nil
|
2086
|
+
end
|
2087
|
+
plumbing = V1::MongoLegacyHost.new()
|
2088
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
2089
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
2090
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
2091
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
2092
|
+
plumbing.auth_database = porcelain.auth_database unless porcelain.auth_database == nil
|
2093
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
2094
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
2095
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
2096
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
2097
|
+
plumbing.replica_set = porcelain.replica_set unless porcelain.replica_set == nil
|
2098
|
+
plumbing.tls_required = porcelain.tls_required unless porcelain.tls_required == nil
|
2099
|
+
plumbing
|
2100
|
+
end
|
2101
|
+
def self.repeated_mongo_legacy_host_to_plumbing(porcelains)
|
2102
|
+
items = Array.new
|
2103
|
+
porcelains.each do |porcelain|
|
2104
|
+
plumbing = mongo_legacy_host_to_plumbing(porcelain)
|
2105
|
+
items.append(plumbing)
|
2106
|
+
end
|
2107
|
+
items
|
2108
|
+
end
|
2109
|
+
|
2110
|
+
def self.repeated_mongo_legacy_host_to_porcelain(plumbings)
|
2111
|
+
items = Array.new
|
2112
|
+
plumbings.each do |plumbing|
|
2113
|
+
porcelain = mongo_legacy_host_to_porcelain(plumbing)
|
2114
|
+
items.append(porcelain)
|
2115
|
+
end
|
2116
|
+
items
|
2117
|
+
end
|
2118
|
+
def self.mongo_legacy_replicaset_to_porcelain(plumbing)
|
2119
|
+
if plumbing == nil
|
2120
|
+
return nil
|
2121
|
+
end
|
2122
|
+
porcelain = MongoLegacyReplicaset.new()
|
2123
|
+
porcelain.id = plumbing.id
|
2124
|
+
porcelain.name = plumbing.name
|
2125
|
+
porcelain.healthy = plumbing.healthy
|
2126
|
+
porcelain.hostname = plumbing.hostname
|
2127
|
+
porcelain.auth_database = plumbing.auth_database
|
2128
|
+
porcelain.port_override = plumbing.port_override
|
2129
|
+
porcelain.username = plumbing.username
|
2130
|
+
porcelain.password = plumbing.password
|
2131
|
+
porcelain.port = plumbing.port
|
2132
|
+
porcelain.replica_set = plumbing.replica_set
|
2133
|
+
porcelain.connect_to_replica = plumbing.connect_to_replica
|
2134
|
+
porcelain.tls_required = plumbing.tls_required
|
2135
|
+
porcelain
|
2136
|
+
end
|
2137
|
+
|
2138
|
+
def self.mongo_legacy_replicaset_to_plumbing(porcelain)
|
2139
|
+
if porcelain == nil
|
2140
|
+
return nil
|
2141
|
+
end
|
2142
|
+
plumbing = V1::MongoLegacyReplicaset.new()
|
2143
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
2144
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
2145
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
2146
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
2147
|
+
plumbing.auth_database = porcelain.auth_database unless porcelain.auth_database == nil
|
2148
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
2149
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
2150
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
2151
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
2152
|
+
plumbing.replica_set = porcelain.replica_set unless porcelain.replica_set == nil
|
2153
|
+
plumbing.connect_to_replica = porcelain.connect_to_replica unless porcelain.connect_to_replica == nil
|
2154
|
+
plumbing.tls_required = porcelain.tls_required unless porcelain.tls_required == nil
|
2155
|
+
plumbing
|
2156
|
+
end
|
2157
|
+
def self.repeated_mongo_legacy_replicaset_to_plumbing(porcelains)
|
2158
|
+
items = Array.new
|
2159
|
+
porcelains.each do |porcelain|
|
2160
|
+
plumbing = mongo_legacy_replicaset_to_plumbing(porcelain)
|
2161
|
+
items.append(plumbing)
|
2162
|
+
end
|
2163
|
+
items
|
2164
|
+
end
|
2165
|
+
|
2166
|
+
def self.repeated_mongo_legacy_replicaset_to_porcelain(plumbings)
|
2167
|
+
items = Array.new
|
2168
|
+
plumbings.each do |plumbing|
|
2169
|
+
porcelain = mongo_legacy_replicaset_to_porcelain(plumbing)
|
2170
|
+
items.append(porcelain)
|
2171
|
+
end
|
2172
|
+
items
|
2173
|
+
end
|
2174
|
+
def self.mongo_host_to_porcelain(plumbing)
|
2175
|
+
if plumbing == nil
|
2176
|
+
return nil
|
2177
|
+
end
|
2178
|
+
porcelain = MongoHost.new()
|
2179
|
+
porcelain.id = plumbing.id
|
2180
|
+
porcelain.name = plumbing.name
|
2181
|
+
porcelain.healthy = plumbing.healthy
|
2182
|
+
porcelain.hostname = plumbing.hostname
|
2183
|
+
porcelain.auth_database = plumbing.auth_database
|
2184
|
+
porcelain.port_override = plumbing.port_override
|
2185
|
+
porcelain.username = plumbing.username
|
2186
|
+
porcelain.password = plumbing.password
|
2187
|
+
porcelain.port = plumbing.port
|
2188
|
+
porcelain.tls_required = plumbing.tls_required
|
2189
|
+
porcelain
|
2190
|
+
end
|
2191
|
+
|
2192
|
+
def self.mongo_host_to_plumbing(porcelain)
|
2193
|
+
if porcelain == nil
|
2194
|
+
return nil
|
2195
|
+
end
|
2196
|
+
plumbing = V1::MongoHost.new()
|
2197
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
2198
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
2199
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
2200
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
2201
|
+
plumbing.auth_database = porcelain.auth_database unless porcelain.auth_database == nil
|
2202
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
2203
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
2204
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
2205
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
2206
|
+
plumbing.tls_required = porcelain.tls_required unless porcelain.tls_required == nil
|
2207
|
+
plumbing
|
2208
|
+
end
|
2209
|
+
def self.repeated_mongo_host_to_plumbing(porcelains)
|
2210
|
+
items = Array.new
|
2211
|
+
porcelains.each do |porcelain|
|
2212
|
+
plumbing = mongo_host_to_plumbing(porcelain)
|
2213
|
+
items.append(plumbing)
|
2214
|
+
end
|
2215
|
+
items
|
2216
|
+
end
|
2217
|
+
|
2218
|
+
def self.repeated_mongo_host_to_porcelain(plumbings)
|
2219
|
+
items = Array.new
|
2220
|
+
plumbings.each do |plumbing|
|
2221
|
+
porcelain = mongo_host_to_porcelain(plumbing)
|
2222
|
+
items.append(porcelain)
|
2223
|
+
end
|
2224
|
+
items
|
2225
|
+
end
|
2226
|
+
def self.mongo_replica_set_to_porcelain(plumbing)
|
2227
|
+
if plumbing == nil
|
2228
|
+
return nil
|
2229
|
+
end
|
2230
|
+
porcelain = MongoReplicaSet.new()
|
2231
|
+
porcelain.id = plumbing.id
|
2232
|
+
porcelain.name = plumbing.name
|
2233
|
+
porcelain.healthy = plumbing.healthy
|
2234
|
+
porcelain.hostname = plumbing.hostname
|
2235
|
+
porcelain.auth_database = plumbing.auth_database
|
2236
|
+
porcelain.port_override = plumbing.port_override
|
2237
|
+
porcelain.username = plumbing.username
|
2238
|
+
porcelain.password = plumbing.password
|
2239
|
+
porcelain.port = plumbing.port
|
2240
|
+
porcelain.replica_set = plumbing.replica_set
|
2241
|
+
porcelain.connect_to_replica = plumbing.connect_to_replica
|
2242
|
+
porcelain.tls_required = plumbing.tls_required
|
2243
|
+
porcelain
|
2244
|
+
end
|
2245
|
+
|
2246
|
+
def self.mongo_replica_set_to_plumbing(porcelain)
|
2247
|
+
if porcelain == nil
|
2248
|
+
return nil
|
2249
|
+
end
|
2250
|
+
plumbing = V1::MongoReplicaSet.new()
|
2251
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
2252
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
2253
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
2254
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
2255
|
+
plumbing.auth_database = porcelain.auth_database unless porcelain.auth_database == nil
|
2256
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
2257
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
2258
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
2259
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
2260
|
+
plumbing.replica_set = porcelain.replica_set unless porcelain.replica_set == nil
|
2261
|
+
plumbing.connect_to_replica = porcelain.connect_to_replica unless porcelain.connect_to_replica == nil
|
2262
|
+
plumbing.tls_required = porcelain.tls_required unless porcelain.tls_required == nil
|
2263
|
+
plumbing
|
2264
|
+
end
|
2265
|
+
def self.repeated_mongo_replica_set_to_plumbing(porcelains)
|
2266
|
+
items = Array.new
|
2267
|
+
porcelains.each do |porcelain|
|
2268
|
+
plumbing = mongo_replica_set_to_plumbing(porcelain)
|
2269
|
+
items.append(plumbing)
|
2270
|
+
end
|
2271
|
+
items
|
2272
|
+
end
|
2273
|
+
|
2274
|
+
def self.repeated_mongo_replica_set_to_porcelain(plumbings)
|
2275
|
+
items = Array.new
|
2276
|
+
plumbings.each do |plumbing|
|
2277
|
+
porcelain = mongo_replica_set_to_porcelain(plumbing)
|
2278
|
+
items.append(porcelain)
|
2279
|
+
end
|
2280
|
+
items
|
2281
|
+
end
|
2282
|
+
def self.mysql_to_porcelain(plumbing)
|
2283
|
+
if plumbing == nil
|
2284
|
+
return nil
|
2285
|
+
end
|
2286
|
+
porcelain = Mysql.new()
|
2287
|
+
porcelain.id = plumbing.id
|
2288
|
+
porcelain.name = plumbing.name
|
2289
|
+
porcelain.healthy = plumbing.healthy
|
2290
|
+
porcelain.hostname = plumbing.hostname
|
2291
|
+
porcelain.username = plumbing.username
|
2292
|
+
porcelain.password = plumbing.password
|
2293
|
+
porcelain.database = plumbing.database
|
2294
|
+
porcelain.port_override = plumbing.port_override
|
2295
|
+
porcelain.port = plumbing.port
|
2296
|
+
porcelain
|
2297
|
+
end
|
2298
|
+
|
2299
|
+
def self.mysql_to_plumbing(porcelain)
|
2300
|
+
if porcelain == nil
|
2301
|
+
return nil
|
2302
|
+
end
|
2303
|
+
plumbing = V1::Mysql.new()
|
2304
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
2305
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
2306
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
2307
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
2308
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
2309
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
2310
|
+
plumbing.database = porcelain.database unless porcelain.database == nil
|
2311
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
2312
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
2313
|
+
plumbing
|
2314
|
+
end
|
2315
|
+
def self.repeated_mysql_to_plumbing(porcelains)
|
2316
|
+
items = Array.new
|
2317
|
+
porcelains.each do |porcelain|
|
2318
|
+
plumbing = mysql_to_plumbing(porcelain)
|
2319
|
+
items.append(plumbing)
|
2320
|
+
end
|
2321
|
+
items
|
2322
|
+
end
|
2323
|
+
|
2324
|
+
def self.repeated_mysql_to_porcelain(plumbings)
|
2325
|
+
items = Array.new
|
2326
|
+
plumbings.each do |plumbing|
|
2327
|
+
porcelain = mysql_to_porcelain(plumbing)
|
2328
|
+
items.append(porcelain)
|
2329
|
+
end
|
2330
|
+
items
|
2331
|
+
end
|
2332
|
+
def self.aurora_mysql_to_porcelain(plumbing)
|
2333
|
+
if plumbing == nil
|
2334
|
+
return nil
|
2335
|
+
end
|
2336
|
+
porcelain = AuroraMysql.new()
|
2337
|
+
porcelain.id = plumbing.id
|
2338
|
+
porcelain.name = plumbing.name
|
2339
|
+
porcelain.healthy = plumbing.healthy
|
2340
|
+
porcelain.hostname = plumbing.hostname
|
2341
|
+
porcelain.username = plumbing.username
|
2342
|
+
porcelain.password = plumbing.password
|
2343
|
+
porcelain.database = plumbing.database
|
2344
|
+
porcelain.port_override = plumbing.port_override
|
2345
|
+
porcelain.port = plumbing.port
|
2346
|
+
porcelain
|
2347
|
+
end
|
2348
|
+
|
2349
|
+
def self.aurora_mysql_to_plumbing(porcelain)
|
2350
|
+
if porcelain == nil
|
2351
|
+
return nil
|
2352
|
+
end
|
2353
|
+
plumbing = V1::AuroraMysql.new()
|
2354
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
2355
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
2356
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
2357
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
2358
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
2359
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
2360
|
+
plumbing.database = porcelain.database unless porcelain.database == nil
|
2361
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
2362
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
2363
|
+
plumbing
|
2364
|
+
end
|
2365
|
+
def self.repeated_aurora_mysql_to_plumbing(porcelains)
|
2366
|
+
items = Array.new
|
2367
|
+
porcelains.each do |porcelain|
|
2368
|
+
plumbing = aurora_mysql_to_plumbing(porcelain)
|
2369
|
+
items.append(plumbing)
|
2370
|
+
end
|
2371
|
+
items
|
2372
|
+
end
|
2373
|
+
|
2374
|
+
def self.repeated_aurora_mysql_to_porcelain(plumbings)
|
2375
|
+
items = Array.new
|
2376
|
+
plumbings.each do |plumbing|
|
2377
|
+
porcelain = aurora_mysql_to_porcelain(plumbing)
|
2378
|
+
items.append(porcelain)
|
2379
|
+
end
|
2380
|
+
items
|
2381
|
+
end
|
2382
|
+
def self.clustrix_to_porcelain(plumbing)
|
2383
|
+
if plumbing == nil
|
2384
|
+
return nil
|
2385
|
+
end
|
2386
|
+
porcelain = Clustrix.new()
|
2387
|
+
porcelain.id = plumbing.id
|
2388
|
+
porcelain.name = plumbing.name
|
2389
|
+
porcelain.healthy = plumbing.healthy
|
2390
|
+
porcelain.hostname = plumbing.hostname
|
2391
|
+
porcelain.username = plumbing.username
|
2392
|
+
porcelain.password = plumbing.password
|
2393
|
+
porcelain.database = plumbing.database
|
2394
|
+
porcelain.port_override = plumbing.port_override
|
2395
|
+
porcelain.port = plumbing.port
|
2396
|
+
porcelain
|
2397
|
+
end
|
2398
|
+
|
2399
|
+
def self.clustrix_to_plumbing(porcelain)
|
2400
|
+
if porcelain == nil
|
2401
|
+
return nil
|
2402
|
+
end
|
2403
|
+
plumbing = V1::Clustrix.new()
|
2404
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
2405
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
2406
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
2407
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
2408
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
2409
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
2410
|
+
plumbing.database = porcelain.database unless porcelain.database == nil
|
2411
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
2412
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
2413
|
+
plumbing
|
2414
|
+
end
|
2415
|
+
def self.repeated_clustrix_to_plumbing(porcelains)
|
2416
|
+
items = Array.new
|
2417
|
+
porcelains.each do |porcelain|
|
2418
|
+
plumbing = clustrix_to_plumbing(porcelain)
|
2419
|
+
items.append(plumbing)
|
2420
|
+
end
|
2421
|
+
items
|
2422
|
+
end
|
2423
|
+
|
2424
|
+
def self.repeated_clustrix_to_porcelain(plumbings)
|
2425
|
+
items = Array.new
|
2426
|
+
plumbings.each do |plumbing|
|
2427
|
+
porcelain = clustrix_to_porcelain(plumbing)
|
2428
|
+
items.append(porcelain)
|
2429
|
+
end
|
2430
|
+
items
|
2431
|
+
end
|
2432
|
+
def self.maria_to_porcelain(plumbing)
|
2433
|
+
if plumbing == nil
|
2434
|
+
return nil
|
2435
|
+
end
|
2436
|
+
porcelain = Maria.new()
|
2437
|
+
porcelain.id = plumbing.id
|
2438
|
+
porcelain.name = plumbing.name
|
2439
|
+
porcelain.healthy = plumbing.healthy
|
2440
|
+
porcelain.hostname = plumbing.hostname
|
2441
|
+
porcelain.username = plumbing.username
|
2442
|
+
porcelain.password = plumbing.password
|
2443
|
+
porcelain.database = plumbing.database
|
2444
|
+
porcelain.port_override = plumbing.port_override
|
2445
|
+
porcelain.port = plumbing.port
|
2446
|
+
porcelain
|
2447
|
+
end
|
2448
|
+
|
2449
|
+
def self.maria_to_plumbing(porcelain)
|
2450
|
+
if porcelain == nil
|
2451
|
+
return nil
|
2452
|
+
end
|
2453
|
+
plumbing = V1::Maria.new()
|
2454
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
2455
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
2456
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
2457
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
2458
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
2459
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
2460
|
+
plumbing.database = porcelain.database unless porcelain.database == nil
|
2461
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
2462
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
2463
|
+
plumbing
|
2464
|
+
end
|
2465
|
+
def self.repeated_maria_to_plumbing(porcelains)
|
2466
|
+
items = Array.new
|
2467
|
+
porcelains.each do |porcelain|
|
2468
|
+
plumbing = maria_to_plumbing(porcelain)
|
2469
|
+
items.append(plumbing)
|
2470
|
+
end
|
2471
|
+
items
|
2472
|
+
end
|
2473
|
+
|
2474
|
+
def self.repeated_maria_to_porcelain(plumbings)
|
2475
|
+
items = Array.new
|
2476
|
+
plumbings.each do |plumbing|
|
2477
|
+
porcelain = maria_to_porcelain(plumbing)
|
2478
|
+
items.append(porcelain)
|
2479
|
+
end
|
2480
|
+
items
|
2481
|
+
end
|
2482
|
+
def self.memsql_to_porcelain(plumbing)
|
2483
|
+
if plumbing == nil
|
2484
|
+
return nil
|
2485
|
+
end
|
2486
|
+
porcelain = Memsql.new()
|
2487
|
+
porcelain.id = plumbing.id
|
2488
|
+
porcelain.name = plumbing.name
|
2489
|
+
porcelain.healthy = plumbing.healthy
|
2490
|
+
porcelain.hostname = plumbing.hostname
|
2491
|
+
porcelain.username = plumbing.username
|
2492
|
+
porcelain.password = plumbing.password
|
2493
|
+
porcelain.database = plumbing.database
|
2494
|
+
porcelain.port_override = plumbing.port_override
|
2495
|
+
porcelain.port = plumbing.port
|
2496
|
+
porcelain
|
2497
|
+
end
|
2498
|
+
|
2499
|
+
def self.memsql_to_plumbing(porcelain)
|
2500
|
+
if porcelain == nil
|
2501
|
+
return nil
|
2502
|
+
end
|
2503
|
+
plumbing = V1::Memsql.new()
|
2504
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
2505
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
2506
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
2507
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
2508
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
2509
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
2510
|
+
plumbing.database = porcelain.database unless porcelain.database == nil
|
2511
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
2512
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
2513
|
+
plumbing
|
2514
|
+
end
|
2515
|
+
def self.repeated_memsql_to_plumbing(porcelains)
|
2516
|
+
items = Array.new
|
2517
|
+
porcelains.each do |porcelain|
|
2518
|
+
plumbing = memsql_to_plumbing(porcelain)
|
2519
|
+
items.append(plumbing)
|
2520
|
+
end
|
2521
|
+
items
|
2522
|
+
end
|
2523
|
+
|
2524
|
+
def self.repeated_memsql_to_porcelain(plumbings)
|
2525
|
+
items = Array.new
|
2526
|
+
plumbings.each do |plumbing|
|
2527
|
+
porcelain = memsql_to_porcelain(plumbing)
|
2528
|
+
items.append(porcelain)
|
2529
|
+
end
|
2530
|
+
items
|
2531
|
+
end
|
2532
|
+
def self.oracle_to_porcelain(plumbing)
|
2533
|
+
if plumbing == nil
|
2534
|
+
return nil
|
2535
|
+
end
|
2536
|
+
porcelain = Oracle.new()
|
2537
|
+
porcelain.id = plumbing.id
|
2538
|
+
porcelain.name = plumbing.name
|
2539
|
+
porcelain.healthy = plumbing.healthy
|
2540
|
+
porcelain.hostname = plumbing.hostname
|
2541
|
+
porcelain.username = plumbing.username
|
2542
|
+
porcelain.password = plumbing.password
|
2543
|
+
porcelain.database = plumbing.database
|
2544
|
+
porcelain.port = plumbing.port
|
2545
|
+
porcelain.port_override = plumbing.port_override
|
2546
|
+
porcelain.tls_required = plumbing.tls_required
|
2547
|
+
porcelain
|
2548
|
+
end
|
2549
|
+
|
2550
|
+
def self.oracle_to_plumbing(porcelain)
|
2551
|
+
if porcelain == nil
|
2552
|
+
return nil
|
2553
|
+
end
|
2554
|
+
plumbing = V1::Oracle.new()
|
2555
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
2556
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
2557
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
2558
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
2559
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
2560
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
2561
|
+
plumbing.database = porcelain.database unless porcelain.database == nil
|
2562
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
2563
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
2564
|
+
plumbing.tls_required = porcelain.tls_required unless porcelain.tls_required == nil
|
2565
|
+
plumbing
|
2566
|
+
end
|
2567
|
+
def self.repeated_oracle_to_plumbing(porcelains)
|
2568
|
+
items = Array.new
|
2569
|
+
porcelains.each do |porcelain|
|
2570
|
+
plumbing = oracle_to_plumbing(porcelain)
|
2571
|
+
items.append(plumbing)
|
2572
|
+
end
|
2573
|
+
items
|
2574
|
+
end
|
2575
|
+
|
2576
|
+
def self.repeated_oracle_to_porcelain(plumbings)
|
2577
|
+
items = Array.new
|
2578
|
+
plumbings.each do |plumbing|
|
2579
|
+
porcelain = oracle_to_porcelain(plumbing)
|
2580
|
+
items.append(porcelain)
|
2581
|
+
end
|
2582
|
+
items
|
2583
|
+
end
|
2584
|
+
def self.postgres_to_porcelain(plumbing)
|
2585
|
+
if plumbing == nil
|
2586
|
+
return nil
|
2587
|
+
end
|
2588
|
+
porcelain = Postgres.new()
|
2589
|
+
porcelain.id = plumbing.id
|
2590
|
+
porcelain.name = plumbing.name
|
2591
|
+
porcelain.healthy = plumbing.healthy
|
2592
|
+
porcelain.hostname = plumbing.hostname
|
2593
|
+
porcelain.username = plumbing.username
|
2594
|
+
porcelain.password = plumbing.password
|
2595
|
+
porcelain.database = plumbing.database
|
2596
|
+
porcelain.port_override = plumbing.port_override
|
2597
|
+
porcelain.port = plumbing.port
|
2598
|
+
porcelain.override_database = plumbing.override_database
|
2599
|
+
porcelain
|
2600
|
+
end
|
2601
|
+
|
2602
|
+
def self.postgres_to_plumbing(porcelain)
|
2603
|
+
if porcelain == nil
|
2604
|
+
return nil
|
2605
|
+
end
|
2606
|
+
plumbing = V1::Postgres.new()
|
2607
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
2608
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
2609
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
2610
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
2611
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
2612
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
2613
|
+
plumbing.database = porcelain.database unless porcelain.database == nil
|
2614
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
2615
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
2616
|
+
plumbing.override_database = porcelain.override_database unless porcelain.override_database == nil
|
2617
|
+
plumbing
|
2618
|
+
end
|
2619
|
+
def self.repeated_postgres_to_plumbing(porcelains)
|
2620
|
+
items = Array.new
|
2621
|
+
porcelains.each do |porcelain|
|
2622
|
+
plumbing = postgres_to_plumbing(porcelain)
|
2623
|
+
items.append(plumbing)
|
2624
|
+
end
|
2625
|
+
items
|
2626
|
+
end
|
2627
|
+
|
2628
|
+
def self.repeated_postgres_to_porcelain(plumbings)
|
2629
|
+
items = Array.new
|
2630
|
+
plumbings.each do |plumbing|
|
2631
|
+
porcelain = postgres_to_porcelain(plumbing)
|
2632
|
+
items.append(porcelain)
|
2633
|
+
end
|
2634
|
+
items
|
2635
|
+
end
|
2636
|
+
def self.aurora_postgres_to_porcelain(plumbing)
|
2637
|
+
if plumbing == nil
|
2638
|
+
return nil
|
2639
|
+
end
|
2640
|
+
porcelain = AuroraPostgres.new()
|
2641
|
+
porcelain.id = plumbing.id
|
2642
|
+
porcelain.name = plumbing.name
|
2643
|
+
porcelain.healthy = plumbing.healthy
|
2644
|
+
porcelain.hostname = plumbing.hostname
|
2645
|
+
porcelain.username = plumbing.username
|
2646
|
+
porcelain.password = plumbing.password
|
2647
|
+
porcelain.database = plumbing.database
|
2648
|
+
porcelain.port_override = plumbing.port_override
|
2649
|
+
porcelain.port = plumbing.port
|
2650
|
+
porcelain.override_database = plumbing.override_database
|
2651
|
+
porcelain
|
2652
|
+
end
|
2653
|
+
|
2654
|
+
def self.aurora_postgres_to_plumbing(porcelain)
|
2655
|
+
if porcelain == nil
|
2656
|
+
return nil
|
2657
|
+
end
|
2658
|
+
plumbing = V1::AuroraPostgres.new()
|
2659
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
2660
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
2661
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
2662
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
2663
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
2664
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
2665
|
+
plumbing.database = porcelain.database unless porcelain.database == nil
|
2666
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
2667
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
2668
|
+
plumbing.override_database = porcelain.override_database unless porcelain.override_database == nil
|
2669
|
+
plumbing
|
2670
|
+
end
|
2671
|
+
def self.repeated_aurora_postgres_to_plumbing(porcelains)
|
2672
|
+
items = Array.new
|
2673
|
+
porcelains.each do |porcelain|
|
2674
|
+
plumbing = aurora_postgres_to_plumbing(porcelain)
|
2675
|
+
items.append(plumbing)
|
2676
|
+
end
|
2677
|
+
items
|
2678
|
+
end
|
2679
|
+
|
2680
|
+
def self.repeated_aurora_postgres_to_porcelain(plumbings)
|
2681
|
+
items = Array.new
|
2682
|
+
plumbings.each do |plumbing|
|
2683
|
+
porcelain = aurora_postgres_to_porcelain(plumbing)
|
2684
|
+
items.append(porcelain)
|
2685
|
+
end
|
2686
|
+
items
|
2687
|
+
end
|
2688
|
+
def self.greenplum_to_porcelain(plumbing)
|
2689
|
+
if plumbing == nil
|
2690
|
+
return nil
|
2691
|
+
end
|
2692
|
+
porcelain = Greenplum.new()
|
2693
|
+
porcelain.id = plumbing.id
|
2694
|
+
porcelain.name = plumbing.name
|
2695
|
+
porcelain.healthy = plumbing.healthy
|
2696
|
+
porcelain.hostname = plumbing.hostname
|
2697
|
+
porcelain.username = plumbing.username
|
2698
|
+
porcelain.password = plumbing.password
|
2699
|
+
porcelain.database = plumbing.database
|
2700
|
+
porcelain.port_override = plumbing.port_override
|
2701
|
+
porcelain.port = plumbing.port
|
2702
|
+
porcelain.override_database = plumbing.override_database
|
2703
|
+
porcelain
|
2704
|
+
end
|
2705
|
+
|
2706
|
+
def self.greenplum_to_plumbing(porcelain)
|
2707
|
+
if porcelain == nil
|
2708
|
+
return nil
|
2709
|
+
end
|
2710
|
+
plumbing = V1::Greenplum.new()
|
2711
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
2712
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
2713
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
2714
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
2715
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
2716
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
2717
|
+
plumbing.database = porcelain.database unless porcelain.database == nil
|
2718
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
2719
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
2720
|
+
plumbing.override_database = porcelain.override_database unless porcelain.override_database == nil
|
2721
|
+
plumbing
|
2722
|
+
end
|
2723
|
+
def self.repeated_greenplum_to_plumbing(porcelains)
|
2724
|
+
items = Array.new
|
2725
|
+
porcelains.each do |porcelain|
|
2726
|
+
plumbing = greenplum_to_plumbing(porcelain)
|
2727
|
+
items.append(plumbing)
|
2728
|
+
end
|
2729
|
+
items
|
2730
|
+
end
|
2731
|
+
|
2732
|
+
def self.repeated_greenplum_to_porcelain(plumbings)
|
2733
|
+
items = Array.new
|
2734
|
+
plumbings.each do |plumbing|
|
2735
|
+
porcelain = greenplum_to_porcelain(plumbing)
|
2736
|
+
items.append(porcelain)
|
2737
|
+
end
|
2738
|
+
items
|
2739
|
+
end
|
2740
|
+
def self.cockroach_to_porcelain(plumbing)
|
2741
|
+
if plumbing == nil
|
2742
|
+
return nil
|
2743
|
+
end
|
2744
|
+
porcelain = Cockroach.new()
|
2745
|
+
porcelain.id = plumbing.id
|
2746
|
+
porcelain.name = plumbing.name
|
2747
|
+
porcelain.healthy = plumbing.healthy
|
2748
|
+
porcelain.hostname = plumbing.hostname
|
2749
|
+
porcelain.username = plumbing.username
|
2750
|
+
porcelain.password = plumbing.password
|
2751
|
+
porcelain.database = plumbing.database
|
2752
|
+
porcelain.port_override = plumbing.port_override
|
2753
|
+
porcelain.port = plumbing.port
|
2754
|
+
porcelain.override_database = plumbing.override_database
|
2755
|
+
porcelain
|
2756
|
+
end
|
2757
|
+
|
2758
|
+
def self.cockroach_to_plumbing(porcelain)
|
2759
|
+
if porcelain == nil
|
2760
|
+
return nil
|
2761
|
+
end
|
2762
|
+
plumbing = V1::Cockroach.new()
|
2763
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
2764
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
2765
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
2766
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
2767
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
2768
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
2769
|
+
plumbing.database = porcelain.database unless porcelain.database == nil
|
2770
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
2771
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
2772
|
+
plumbing.override_database = porcelain.override_database unless porcelain.override_database == nil
|
2773
|
+
plumbing
|
2774
|
+
end
|
2775
|
+
def self.repeated_cockroach_to_plumbing(porcelains)
|
2776
|
+
items = Array.new
|
2777
|
+
porcelains.each do |porcelain|
|
2778
|
+
plumbing = cockroach_to_plumbing(porcelain)
|
2779
|
+
items.append(plumbing)
|
2780
|
+
end
|
2781
|
+
items
|
2782
|
+
end
|
2783
|
+
|
2784
|
+
def self.repeated_cockroach_to_porcelain(plumbings)
|
2785
|
+
items = Array.new
|
2786
|
+
plumbings.each do |plumbing|
|
2787
|
+
porcelain = cockroach_to_porcelain(plumbing)
|
2788
|
+
items.append(porcelain)
|
2789
|
+
end
|
2790
|
+
items
|
2791
|
+
end
|
2792
|
+
def self.redshift_to_porcelain(plumbing)
|
2793
|
+
if plumbing == nil
|
2794
|
+
return nil
|
2795
|
+
end
|
2796
|
+
porcelain = Redshift.new()
|
2797
|
+
porcelain.id = plumbing.id
|
2798
|
+
porcelain.name = plumbing.name
|
2799
|
+
porcelain.healthy = plumbing.healthy
|
2800
|
+
porcelain.hostname = plumbing.hostname
|
2801
|
+
porcelain.username = plumbing.username
|
2802
|
+
porcelain.password = plumbing.password
|
2803
|
+
porcelain.database = plumbing.database
|
2804
|
+
porcelain.port_override = plumbing.port_override
|
2805
|
+
porcelain.port = plumbing.port
|
2806
|
+
porcelain.override_database = plumbing.override_database
|
2807
|
+
porcelain
|
2808
|
+
end
|
2809
|
+
|
2810
|
+
def self.redshift_to_plumbing(porcelain)
|
2811
|
+
if porcelain == nil
|
2812
|
+
return nil
|
2813
|
+
end
|
2814
|
+
plumbing = V1::Redshift.new()
|
2815
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
2816
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
2817
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
2818
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
2819
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
2820
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
2821
|
+
plumbing.database = porcelain.database unless porcelain.database == nil
|
2822
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
2823
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
2824
|
+
plumbing.override_database = porcelain.override_database unless porcelain.override_database == nil
|
2825
|
+
plumbing
|
2826
|
+
end
|
2827
|
+
def self.repeated_redshift_to_plumbing(porcelains)
|
2828
|
+
items = Array.new
|
2829
|
+
porcelains.each do |porcelain|
|
2830
|
+
plumbing = redshift_to_plumbing(porcelain)
|
2831
|
+
items.append(plumbing)
|
2832
|
+
end
|
2833
|
+
items
|
2834
|
+
end
|
2835
|
+
|
2836
|
+
def self.repeated_redshift_to_porcelain(plumbings)
|
2837
|
+
items = Array.new
|
2838
|
+
plumbings.each do |plumbing|
|
2839
|
+
porcelain = redshift_to_porcelain(plumbing)
|
2840
|
+
items.append(porcelain)
|
2841
|
+
end
|
2842
|
+
items
|
2843
|
+
end
|
2844
|
+
def self.presto_to_porcelain(plumbing)
|
2845
|
+
if plumbing == nil
|
2846
|
+
return nil
|
2847
|
+
end
|
2848
|
+
porcelain = Presto.new()
|
2849
|
+
porcelain.id = plumbing.id
|
2850
|
+
porcelain.name = plumbing.name
|
2851
|
+
porcelain.healthy = plumbing.healthy
|
2852
|
+
porcelain.hostname = plumbing.hostname
|
2853
|
+
porcelain.password = plumbing.password
|
2854
|
+
porcelain.database = plumbing.database
|
2855
|
+
porcelain.port_override = plumbing.port_override
|
2856
|
+
porcelain.port = plumbing.port
|
2857
|
+
porcelain.username = plumbing.username
|
2858
|
+
porcelain.tls_required = plumbing.tls_required
|
2859
|
+
porcelain
|
2860
|
+
end
|
2861
|
+
|
2862
|
+
def self.presto_to_plumbing(porcelain)
|
2863
|
+
if porcelain == nil
|
2864
|
+
return nil
|
2865
|
+
end
|
2866
|
+
plumbing = V1::Presto.new()
|
2867
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
2868
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
2869
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
2870
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
2871
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
2872
|
+
plumbing.database = porcelain.database unless porcelain.database == nil
|
2873
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
2874
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
2875
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
2876
|
+
plumbing.tls_required = porcelain.tls_required unless porcelain.tls_required == nil
|
2877
|
+
plumbing
|
2878
|
+
end
|
2879
|
+
def self.repeated_presto_to_plumbing(porcelains)
|
2880
|
+
items = Array.new
|
2881
|
+
porcelains.each do |porcelain|
|
2882
|
+
plumbing = presto_to_plumbing(porcelain)
|
2883
|
+
items.append(plumbing)
|
2884
|
+
end
|
2885
|
+
items
|
2886
|
+
end
|
2887
|
+
|
2888
|
+
def self.repeated_presto_to_porcelain(plumbings)
|
2889
|
+
items = Array.new
|
2890
|
+
plumbings.each do |plumbing|
|
2891
|
+
porcelain = presto_to_porcelain(plumbing)
|
2892
|
+
items.append(porcelain)
|
2893
|
+
end
|
2894
|
+
items
|
2895
|
+
end
|
2896
|
+
def self.rdp_to_porcelain(plumbing)
|
2897
|
+
if plumbing == nil
|
2898
|
+
return nil
|
2899
|
+
end
|
2900
|
+
porcelain = RDP.new()
|
2901
|
+
porcelain.id = plumbing.id
|
2902
|
+
porcelain.name = plumbing.name
|
2903
|
+
porcelain.healthy = plumbing.healthy
|
2904
|
+
porcelain.hostname = plumbing.hostname
|
2905
|
+
porcelain.username = plumbing.username
|
2906
|
+
porcelain.password = plumbing.password
|
2907
|
+
porcelain.port_override = plumbing.port_override
|
2908
|
+
porcelain.port = plumbing.port
|
2909
|
+
porcelain
|
2910
|
+
end
|
2911
|
+
|
2912
|
+
def self.rdp_to_plumbing(porcelain)
|
2913
|
+
if porcelain == nil
|
2914
|
+
return nil
|
2915
|
+
end
|
2916
|
+
plumbing = V1::RDP.new()
|
2917
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
2918
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
2919
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
2920
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
2921
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
2922
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
2923
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
2924
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
2925
|
+
plumbing
|
2926
|
+
end
|
2927
|
+
def self.repeated_rdp_to_plumbing(porcelains)
|
2928
|
+
items = Array.new
|
2929
|
+
porcelains.each do |porcelain|
|
2930
|
+
plumbing = rdp_to_plumbing(porcelain)
|
2931
|
+
items.append(plumbing)
|
2932
|
+
end
|
2933
|
+
items
|
2934
|
+
end
|
2935
|
+
|
2936
|
+
def self.repeated_rdp_to_porcelain(plumbings)
|
2937
|
+
items = Array.new
|
2938
|
+
plumbings.each do |plumbing|
|
2939
|
+
porcelain = rdp_to_porcelain(plumbing)
|
2940
|
+
items.append(porcelain)
|
2941
|
+
end
|
2942
|
+
items
|
2943
|
+
end
|
2944
|
+
def self.redis_to_porcelain(plumbing)
|
2945
|
+
if plumbing == nil
|
2946
|
+
return nil
|
2947
|
+
end
|
2948
|
+
porcelain = Redis.new()
|
2949
|
+
porcelain.id = plumbing.id
|
2950
|
+
porcelain.name = plumbing.name
|
2951
|
+
porcelain.healthy = plumbing.healthy
|
2952
|
+
porcelain.hostname = plumbing.hostname
|
2953
|
+
porcelain.port_override = plumbing.port_override
|
2954
|
+
porcelain.password = plumbing.password
|
2955
|
+
porcelain.port = plumbing.port
|
2956
|
+
porcelain
|
2957
|
+
end
|
2958
|
+
|
2959
|
+
def self.redis_to_plumbing(porcelain)
|
2960
|
+
if porcelain == nil
|
2961
|
+
return nil
|
2962
|
+
end
|
2963
|
+
plumbing = V1::Redis.new()
|
2964
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
2965
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
2966
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
2967
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
2968
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
2969
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
2970
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
2971
|
+
plumbing
|
2972
|
+
end
|
2973
|
+
def self.repeated_redis_to_plumbing(porcelains)
|
2974
|
+
items = Array.new
|
2975
|
+
porcelains.each do |porcelain|
|
2976
|
+
plumbing = redis_to_plumbing(porcelain)
|
2977
|
+
items.append(plumbing)
|
2978
|
+
end
|
2979
|
+
items
|
2980
|
+
end
|
2981
|
+
|
2982
|
+
def self.repeated_redis_to_porcelain(plumbings)
|
2983
|
+
items = Array.new
|
2984
|
+
plumbings.each do |plumbing|
|
2985
|
+
porcelain = redis_to_porcelain(plumbing)
|
2986
|
+
items.append(porcelain)
|
2987
|
+
end
|
2988
|
+
items
|
2989
|
+
end
|
2990
|
+
def self.elasticache_redis_to_porcelain(plumbing)
|
2991
|
+
if plumbing == nil
|
2992
|
+
return nil
|
2993
|
+
end
|
2994
|
+
porcelain = ElasticacheRedis.new()
|
2995
|
+
porcelain.id = plumbing.id
|
2996
|
+
porcelain.name = plumbing.name
|
2997
|
+
porcelain.healthy = plumbing.healthy
|
2998
|
+
porcelain.hostname = plumbing.hostname
|
2999
|
+
porcelain.port_override = plumbing.port_override
|
3000
|
+
porcelain.password = plumbing.password
|
3001
|
+
porcelain.port = plumbing.port
|
3002
|
+
porcelain.tls_required = plumbing.tls_required
|
3003
|
+
porcelain
|
3004
|
+
end
|
3005
|
+
|
3006
|
+
def self.elasticache_redis_to_plumbing(porcelain)
|
3007
|
+
if porcelain == nil
|
3008
|
+
return nil
|
3009
|
+
end
|
3010
|
+
plumbing = V1::ElasticacheRedis.new()
|
3011
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
3012
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
3013
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
3014
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
3015
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
3016
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
3017
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
3018
|
+
plumbing.tls_required = porcelain.tls_required unless porcelain.tls_required == nil
|
3019
|
+
plumbing
|
3020
|
+
end
|
3021
|
+
def self.repeated_elasticache_redis_to_plumbing(porcelains)
|
3022
|
+
items = Array.new
|
3023
|
+
porcelains.each do |porcelain|
|
3024
|
+
plumbing = elasticache_redis_to_plumbing(porcelain)
|
3025
|
+
items.append(plumbing)
|
3026
|
+
end
|
3027
|
+
items
|
3028
|
+
end
|
3029
|
+
|
3030
|
+
def self.repeated_elasticache_redis_to_porcelain(plumbings)
|
3031
|
+
items = Array.new
|
3032
|
+
plumbings.each do |plumbing|
|
3033
|
+
porcelain = elasticache_redis_to_porcelain(plumbing)
|
3034
|
+
items.append(porcelain)
|
3035
|
+
end
|
3036
|
+
items
|
3037
|
+
end
|
3038
|
+
def self.snowflake_to_porcelain(plumbing)
|
3039
|
+
if plumbing == nil
|
3040
|
+
return nil
|
3041
|
+
end
|
3042
|
+
porcelain = Snowflake.new()
|
3043
|
+
porcelain.id = plumbing.id
|
3044
|
+
porcelain.name = plumbing.name
|
3045
|
+
porcelain.healthy = plumbing.healthy
|
3046
|
+
porcelain.hostname = plumbing.hostname
|
3047
|
+
porcelain.username = plumbing.username
|
3048
|
+
porcelain.password = plumbing.password
|
3049
|
+
porcelain.database = plumbing.database
|
3050
|
+
porcelain.schema = plumbing.schema
|
3051
|
+
porcelain.port_override = plumbing.port_override
|
3052
|
+
porcelain
|
3053
|
+
end
|
3054
|
+
|
3055
|
+
def self.snowflake_to_plumbing(porcelain)
|
3056
|
+
if porcelain == nil
|
3057
|
+
return nil
|
3058
|
+
end
|
3059
|
+
plumbing = V1::Snowflake.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.hostname = porcelain.hostname unless porcelain.hostname == nil
|
3064
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
3065
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
3066
|
+
plumbing.database = porcelain.database unless porcelain.database == nil
|
3067
|
+
plumbing.schema = porcelain.schema unless porcelain.schema == nil
|
3068
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
3069
|
+
plumbing
|
3070
|
+
end
|
3071
|
+
def self.repeated_snowflake_to_plumbing(porcelains)
|
3072
|
+
items = Array.new
|
3073
|
+
porcelains.each do |porcelain|
|
3074
|
+
plumbing = snowflake_to_plumbing(porcelain)
|
3075
|
+
items.append(plumbing)
|
3076
|
+
end
|
3077
|
+
items
|
3078
|
+
end
|
3079
|
+
|
3080
|
+
def self.repeated_snowflake_to_porcelain(plumbings)
|
3081
|
+
items = Array.new
|
3082
|
+
plumbings.each do |plumbing|
|
3083
|
+
porcelain = snowflake_to_porcelain(plumbing)
|
3084
|
+
items.append(porcelain)
|
3085
|
+
end
|
3086
|
+
items
|
3087
|
+
end
|
3088
|
+
def self.sql_server_to_porcelain(plumbing)
|
3089
|
+
if plumbing == nil
|
3090
|
+
return nil
|
3091
|
+
end
|
3092
|
+
porcelain = SQLServer.new()
|
3093
|
+
porcelain.id = plumbing.id
|
3094
|
+
porcelain.name = plumbing.name
|
3095
|
+
porcelain.healthy = plumbing.healthy
|
3096
|
+
porcelain.hostname = plumbing.hostname
|
3097
|
+
porcelain.username = plumbing.username
|
3098
|
+
porcelain.password = plumbing.password
|
3099
|
+
porcelain.database = plumbing.database
|
3100
|
+
porcelain.port_override = plumbing.port_override
|
3101
|
+
porcelain.schema = plumbing.schema
|
3102
|
+
porcelain.port = plumbing.port
|
3103
|
+
porcelain.override_database = plumbing.override_database
|
3104
|
+
porcelain
|
3105
|
+
end
|
3106
|
+
|
3107
|
+
def self.sql_server_to_plumbing(porcelain)
|
3108
|
+
if porcelain == nil
|
3109
|
+
return nil
|
3110
|
+
end
|
3111
|
+
plumbing = V1::SQLServer.new()
|
3112
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
3113
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
3114
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
3115
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
3116
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
3117
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
3118
|
+
plumbing.database = porcelain.database unless porcelain.database == nil
|
3119
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
3120
|
+
plumbing.schema = porcelain.schema unless porcelain.schema == nil
|
3121
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
3122
|
+
plumbing.override_database = porcelain.override_database unless porcelain.override_database == nil
|
3123
|
+
plumbing
|
3124
|
+
end
|
3125
|
+
def self.repeated_sql_server_to_plumbing(porcelains)
|
3126
|
+
items = Array.new
|
3127
|
+
porcelains.each do |porcelain|
|
3128
|
+
plumbing = sql_server_to_plumbing(porcelain)
|
3129
|
+
items.append(plumbing)
|
3130
|
+
end
|
3131
|
+
items
|
3132
|
+
end
|
3133
|
+
|
3134
|
+
def self.repeated_sql_server_to_porcelain(plumbings)
|
3135
|
+
items = Array.new
|
3136
|
+
plumbings.each do |plumbing|
|
3137
|
+
porcelain = sql_server_to_porcelain(plumbing)
|
3138
|
+
items.append(porcelain)
|
3139
|
+
end
|
3140
|
+
items
|
3141
|
+
end
|
3142
|
+
def self.ssh_to_porcelain(plumbing)
|
3143
|
+
if plumbing == nil
|
3144
|
+
return nil
|
3145
|
+
end
|
3146
|
+
porcelain = SSH.new()
|
3147
|
+
porcelain.id = plumbing.id
|
3148
|
+
porcelain.name = plumbing.name
|
3149
|
+
porcelain.healthy = plumbing.healthy
|
3150
|
+
porcelain.hostname = plumbing.hostname
|
3151
|
+
porcelain.username = plumbing.username
|
3152
|
+
porcelain.port = plumbing.port
|
3153
|
+
porcelain.public_key = plumbing.public_key
|
3154
|
+
porcelain.port_forwarding = plumbing.port_forwarding
|
3155
|
+
porcelain
|
3156
|
+
end
|
3157
|
+
|
3158
|
+
def self.ssh_to_plumbing(porcelain)
|
3159
|
+
if porcelain == nil
|
3160
|
+
return nil
|
3161
|
+
end
|
3162
|
+
plumbing = V1::SSH.new()
|
3163
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
3164
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
3165
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
3166
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
3167
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
3168
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
3169
|
+
plumbing.public_key = porcelain.public_key unless porcelain.public_key == nil
|
3170
|
+
plumbing.port_forwarding = porcelain.port_forwarding unless porcelain.port_forwarding == nil
|
3171
|
+
plumbing
|
3172
|
+
end
|
3173
|
+
def self.repeated_ssh_to_plumbing(porcelains)
|
3174
|
+
items = Array.new
|
3175
|
+
porcelains.each do |porcelain|
|
3176
|
+
plumbing = ssh_to_plumbing(porcelain)
|
3177
|
+
items.append(plumbing)
|
3178
|
+
end
|
3179
|
+
items
|
3180
|
+
end
|
3181
|
+
|
3182
|
+
def self.repeated_ssh_to_porcelain(plumbings)
|
3183
|
+
items = Array.new
|
3184
|
+
plumbings.each do |plumbing|
|
3185
|
+
porcelain = ssh_to_porcelain(plumbing)
|
3186
|
+
items.append(porcelain)
|
3187
|
+
end
|
3188
|
+
items
|
3189
|
+
end
|
3190
|
+
def self.sybase_to_porcelain(plumbing)
|
3191
|
+
if plumbing == nil
|
3192
|
+
return nil
|
3193
|
+
end
|
3194
|
+
porcelain = Sybase.new()
|
3195
|
+
porcelain.id = plumbing.id
|
3196
|
+
porcelain.name = plumbing.name
|
3197
|
+
porcelain.healthy = plumbing.healthy
|
3198
|
+
porcelain.hostname = plumbing.hostname
|
3199
|
+
porcelain.username = plumbing.username
|
3200
|
+
porcelain.port_override = plumbing.port_override
|
3201
|
+
porcelain.port = plumbing.port
|
3202
|
+
porcelain.password = plumbing.password
|
3203
|
+
porcelain
|
3204
|
+
end
|
3205
|
+
|
3206
|
+
def self.sybase_to_plumbing(porcelain)
|
3207
|
+
if porcelain == nil
|
3208
|
+
return nil
|
3209
|
+
end
|
3210
|
+
plumbing = V1::Sybase.new()
|
3211
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
3212
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
3213
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
3214
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
3215
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
3216
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
3217
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
3218
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
3219
|
+
plumbing
|
3220
|
+
end
|
3221
|
+
def self.repeated_sybase_to_plumbing(porcelains)
|
3222
|
+
items = Array.new
|
3223
|
+
porcelains.each do |porcelain|
|
3224
|
+
plumbing = sybase_to_plumbing(porcelain)
|
3225
|
+
items.append(plumbing)
|
3226
|
+
end
|
3227
|
+
items
|
3228
|
+
end
|
3229
|
+
|
3230
|
+
def self.repeated_sybase_to_porcelain(plumbings)
|
3231
|
+
items = Array.new
|
3232
|
+
plumbings.each do |plumbing|
|
3233
|
+
porcelain = sybase_to_porcelain(plumbing)
|
3234
|
+
items.append(porcelain)
|
3235
|
+
end
|
3236
|
+
items
|
3237
|
+
end
|
3238
|
+
def self.sybase_iq_to_porcelain(plumbing)
|
3239
|
+
if plumbing == nil
|
3240
|
+
return nil
|
3241
|
+
end
|
3242
|
+
porcelain = SybaseIQ.new()
|
3243
|
+
porcelain.id = plumbing.id
|
3244
|
+
porcelain.name = plumbing.name
|
3245
|
+
porcelain.healthy = plumbing.healthy
|
3246
|
+
porcelain.hostname = plumbing.hostname
|
3247
|
+
porcelain.username = plumbing.username
|
3248
|
+
porcelain.port_override = plumbing.port_override
|
3249
|
+
porcelain.port = plumbing.port
|
3250
|
+
porcelain.password = plumbing.password
|
3251
|
+
porcelain
|
3252
|
+
end
|
3253
|
+
|
3254
|
+
def self.sybase_iq_to_plumbing(porcelain)
|
3255
|
+
if porcelain == nil
|
3256
|
+
return nil
|
3257
|
+
end
|
3258
|
+
plumbing = V1::SybaseIQ.new()
|
3259
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
3260
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
3261
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
3262
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
3263
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
3264
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
3265
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
3266
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
3267
|
+
plumbing
|
3268
|
+
end
|
3269
|
+
def self.repeated_sybase_iq_to_plumbing(porcelains)
|
3270
|
+
items = Array.new
|
3271
|
+
porcelains.each do |porcelain|
|
3272
|
+
plumbing = sybase_iq_to_plumbing(porcelain)
|
3273
|
+
items.append(plumbing)
|
3274
|
+
end
|
3275
|
+
items
|
3276
|
+
end
|
3277
|
+
|
3278
|
+
def self.repeated_sybase_iq_to_porcelain(plumbings)
|
3279
|
+
items = Array.new
|
3280
|
+
plumbings.each do |plumbing|
|
3281
|
+
porcelain = sybase_iq_to_porcelain(plumbing)
|
3282
|
+
items.append(porcelain)
|
3283
|
+
end
|
3284
|
+
items
|
3285
|
+
end
|
3286
|
+
def self.teradata_to_porcelain(plumbing)
|
3287
|
+
if plumbing == nil
|
3288
|
+
return nil
|
3289
|
+
end
|
3290
|
+
porcelain = Teradata.new()
|
3291
|
+
porcelain.id = plumbing.id
|
3292
|
+
porcelain.name = plumbing.name
|
3293
|
+
porcelain.healthy = plumbing.healthy
|
3294
|
+
porcelain.hostname = plumbing.hostname
|
3295
|
+
porcelain.username = plumbing.username
|
3296
|
+
porcelain.password = plumbing.password
|
3297
|
+
porcelain.port_override = plumbing.port_override
|
3298
|
+
porcelain.port = plumbing.port
|
3299
|
+
porcelain
|
3300
|
+
end
|
3301
|
+
|
3302
|
+
def self.teradata_to_plumbing(porcelain)
|
3303
|
+
if porcelain == nil
|
3304
|
+
return nil
|
3305
|
+
end
|
3306
|
+
plumbing = V1::Teradata.new()
|
3307
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
3308
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
3309
|
+
plumbing.healthy = porcelain.healthy unless porcelain.healthy == nil
|
3310
|
+
plumbing.hostname = porcelain.hostname unless porcelain.hostname == nil
|
3311
|
+
plumbing.username = porcelain.username unless porcelain.username == nil
|
3312
|
+
plumbing.password = porcelain.password unless porcelain.password == nil
|
3313
|
+
plumbing.port_override = porcelain.port_override unless porcelain.port_override == nil
|
3314
|
+
plumbing.port = porcelain.port unless porcelain.port == nil
|
3315
|
+
plumbing
|
3316
|
+
end
|
3317
|
+
def self.repeated_teradata_to_plumbing(porcelains)
|
3318
|
+
items = Array.new
|
3319
|
+
porcelains.each do |porcelain|
|
3320
|
+
plumbing = teradata_to_plumbing(porcelain)
|
3321
|
+
items.append(plumbing)
|
3322
|
+
end
|
3323
|
+
items
|
3324
|
+
end
|
3325
|
+
|
3326
|
+
def self.repeated_teradata_to_porcelain(plumbings)
|
3327
|
+
items = Array.new
|
3328
|
+
plumbings.each do |plumbing|
|
3329
|
+
porcelain = teradata_to_porcelain(plumbing)
|
3330
|
+
items.append(porcelain)
|
3331
|
+
end
|
3332
|
+
items
|
3333
|
+
end
|
3334
|
+
def self.node_create_response_to_porcelain(plumbing)
|
3335
|
+
if plumbing == nil
|
3336
|
+
return nil
|
3337
|
+
end
|
3338
|
+
porcelain = NodeCreateResponse.new()
|
3339
|
+
porcelain.meta = create_response_metadata_to_porcelain(plumbing.meta)
|
3340
|
+
porcelain.node = node_to_porcelain(plumbing.node)
|
3341
|
+
porcelain.token = plumbing.token
|
3342
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
3343
|
+
porcelain
|
3344
|
+
end
|
3345
|
+
|
3346
|
+
def self.node_create_response_to_plumbing(porcelain)
|
3347
|
+
if porcelain == nil
|
3348
|
+
return nil
|
3349
|
+
end
|
3350
|
+
plumbing = V1::NodeCreateResponse.new()
|
3351
|
+
plumbing.meta = create_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
3352
|
+
plumbing.node = node_to_plumbing(porcelain.node) unless porcelain.node == nil
|
3353
|
+
plumbing.token = porcelain.token unless porcelain.token == nil
|
3354
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
3355
|
+
plumbing
|
3356
|
+
end
|
3357
|
+
def self.repeated_node_create_response_to_plumbing(porcelains)
|
3358
|
+
items = Array.new
|
3359
|
+
porcelains.each do |porcelain|
|
3360
|
+
plumbing = node_create_response_to_plumbing(porcelain)
|
3361
|
+
items.append(plumbing)
|
3362
|
+
end
|
3363
|
+
items
|
3364
|
+
end
|
3365
|
+
|
3366
|
+
def self.repeated_node_create_response_to_porcelain(plumbings)
|
3367
|
+
items = Array.new
|
3368
|
+
plumbings.each do |plumbing|
|
3369
|
+
porcelain = node_create_response_to_porcelain(plumbing)
|
3370
|
+
items.append(porcelain)
|
3371
|
+
end
|
3372
|
+
items
|
3373
|
+
end
|
3374
|
+
def self.node_get_response_to_porcelain(plumbing)
|
3375
|
+
if plumbing == nil
|
3376
|
+
return nil
|
3377
|
+
end
|
3378
|
+
porcelain = NodeGetResponse.new()
|
3379
|
+
porcelain.meta = get_response_metadata_to_porcelain(plumbing.meta)
|
3380
|
+
porcelain.node = node_to_porcelain(plumbing.node)
|
3381
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
3382
|
+
porcelain
|
3383
|
+
end
|
3384
|
+
|
3385
|
+
def self.node_get_response_to_plumbing(porcelain)
|
3386
|
+
if porcelain == nil
|
3387
|
+
return nil
|
3388
|
+
end
|
3389
|
+
plumbing = V1::NodeGetResponse.new()
|
3390
|
+
plumbing.meta = get_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
3391
|
+
plumbing.node = node_to_plumbing(porcelain.node) unless porcelain.node == nil
|
3392
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
3393
|
+
plumbing
|
3394
|
+
end
|
3395
|
+
def self.repeated_node_get_response_to_plumbing(porcelains)
|
3396
|
+
items = Array.new
|
3397
|
+
porcelains.each do |porcelain|
|
3398
|
+
plumbing = node_get_response_to_plumbing(porcelain)
|
3399
|
+
items.append(plumbing)
|
3400
|
+
end
|
3401
|
+
items
|
3402
|
+
end
|
3403
|
+
|
3404
|
+
def self.repeated_node_get_response_to_porcelain(plumbings)
|
3405
|
+
items = Array.new
|
3406
|
+
plumbings.each do |plumbing|
|
3407
|
+
porcelain = node_get_response_to_porcelain(plumbing)
|
3408
|
+
items.append(porcelain)
|
3409
|
+
end
|
3410
|
+
items
|
3411
|
+
end
|
3412
|
+
def self.node_update_response_to_porcelain(plumbing)
|
3413
|
+
if plumbing == nil
|
3414
|
+
return nil
|
3415
|
+
end
|
3416
|
+
porcelain = NodeUpdateResponse.new()
|
3417
|
+
porcelain.meta = update_response_metadata_to_porcelain(plumbing.meta)
|
3418
|
+
porcelain.node = node_to_porcelain(plumbing.node)
|
3419
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
3420
|
+
porcelain
|
3421
|
+
end
|
3422
|
+
|
3423
|
+
def self.node_update_response_to_plumbing(porcelain)
|
3424
|
+
if porcelain == nil
|
3425
|
+
return nil
|
3426
|
+
end
|
3427
|
+
plumbing = V1::NodeUpdateResponse.new()
|
3428
|
+
plumbing.meta = update_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
3429
|
+
plumbing.node = node_to_plumbing(porcelain.node) unless porcelain.node == nil
|
3430
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
3431
|
+
plumbing
|
3432
|
+
end
|
3433
|
+
def self.repeated_node_update_response_to_plumbing(porcelains)
|
3434
|
+
items = Array.new
|
3435
|
+
porcelains.each do |porcelain|
|
3436
|
+
plumbing = node_update_response_to_plumbing(porcelain)
|
3437
|
+
items.append(plumbing)
|
3438
|
+
end
|
3439
|
+
items
|
3440
|
+
end
|
3441
|
+
|
3442
|
+
def self.repeated_node_update_response_to_porcelain(plumbings)
|
3443
|
+
items = Array.new
|
3444
|
+
plumbings.each do |plumbing|
|
3445
|
+
porcelain = node_update_response_to_porcelain(plumbing)
|
3446
|
+
items.append(porcelain)
|
3447
|
+
end
|
3448
|
+
items
|
3449
|
+
end
|
3450
|
+
def self.node_delete_response_to_porcelain(plumbing)
|
3451
|
+
if plumbing == nil
|
3452
|
+
return nil
|
3453
|
+
end
|
3454
|
+
porcelain = NodeDeleteResponse.new()
|
3455
|
+
porcelain.meta = delete_response_metadata_to_porcelain(plumbing.meta)
|
3456
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
3457
|
+
porcelain
|
3458
|
+
end
|
3459
|
+
|
3460
|
+
def self.node_delete_response_to_plumbing(porcelain)
|
3461
|
+
if porcelain == nil
|
3462
|
+
return nil
|
3463
|
+
end
|
3464
|
+
plumbing = V1::NodeDeleteResponse.new()
|
3465
|
+
plumbing.meta = delete_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
3466
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
3467
|
+
plumbing
|
3468
|
+
end
|
3469
|
+
def self.repeated_node_delete_response_to_plumbing(porcelains)
|
3470
|
+
items = Array.new
|
3471
|
+
porcelains.each do |porcelain|
|
3472
|
+
plumbing = node_delete_response_to_plumbing(porcelain)
|
3473
|
+
items.append(plumbing)
|
3474
|
+
end
|
3475
|
+
items
|
3476
|
+
end
|
3477
|
+
|
3478
|
+
def self.repeated_node_delete_response_to_porcelain(plumbings)
|
3479
|
+
items = Array.new
|
3480
|
+
plumbings.each do |plumbing|
|
3481
|
+
porcelain = node_delete_response_to_porcelain(plumbing)
|
3482
|
+
items.append(porcelain)
|
3483
|
+
end
|
3484
|
+
items
|
3485
|
+
end
|
3486
|
+
def self.node_to_plumbing(porcelain)
|
3487
|
+
if porcelain == nil
|
3488
|
+
return nil
|
3489
|
+
end
|
3490
|
+
plumbing = V1::Node.new()
|
3491
|
+
if porcelain .instance_of? Relay
|
3492
|
+
plumbing.relay = relay_to_plumbing(porcelain)
|
3493
|
+
end
|
3494
|
+
if porcelain .instance_of? Gateway
|
3495
|
+
plumbing.gateway = gateway_to_plumbing(porcelain)
|
3496
|
+
end
|
3497
|
+
plumbing
|
3498
|
+
end
|
3499
|
+
|
3500
|
+
def self.node_to_porcelain(plumbing)
|
3501
|
+
if plumbing == nil
|
3502
|
+
return nil
|
3503
|
+
end
|
3504
|
+
if plumbing.relay != nil
|
3505
|
+
return relay_to_porcelain(plumbing.relay)
|
3506
|
+
end
|
3507
|
+
if plumbing.gateway != nil
|
3508
|
+
return gateway_to_porcelain(plumbing.gateway)
|
3509
|
+
end
|
3510
|
+
end
|
3511
|
+
def self.repeated_node_to_plumbing(porcelains)
|
3512
|
+
items = Array.new
|
3513
|
+
porcelains.each do |porcelain|
|
3514
|
+
plumbing = node_to_plumbing(porcelain)
|
3515
|
+
items.append(plumbing)
|
3516
|
+
end
|
3517
|
+
items
|
3518
|
+
end
|
3519
|
+
|
3520
|
+
def self.repeated_node_to_porcelain(plumbings)
|
3521
|
+
items = Array.new
|
3522
|
+
plumbings.each do |plumbing|
|
3523
|
+
porcelain = node_to_porcelain(plumbing)
|
3524
|
+
items.append(porcelain)
|
3525
|
+
end
|
3526
|
+
items
|
3527
|
+
end
|
3528
|
+
def self.relay_to_porcelain(plumbing)
|
3529
|
+
if plumbing == nil
|
3530
|
+
return nil
|
3531
|
+
end
|
3532
|
+
porcelain = Relay.new()
|
3533
|
+
porcelain.id = plumbing.id
|
3534
|
+
porcelain.name = plumbing.name
|
3535
|
+
porcelain.state = plumbing.state
|
3536
|
+
porcelain
|
3537
|
+
end
|
3538
|
+
|
3539
|
+
def self.relay_to_plumbing(porcelain)
|
3540
|
+
if porcelain == nil
|
3541
|
+
return nil
|
3542
|
+
end
|
3543
|
+
plumbing = V1::Relay.new()
|
3544
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
3545
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
3546
|
+
plumbing.state = porcelain.state unless porcelain.state == nil
|
3547
|
+
plumbing
|
3548
|
+
end
|
3549
|
+
def self.repeated_relay_to_plumbing(porcelains)
|
3550
|
+
items = Array.new
|
3551
|
+
porcelains.each do |porcelain|
|
3552
|
+
plumbing = relay_to_plumbing(porcelain)
|
3553
|
+
items.append(plumbing)
|
3554
|
+
end
|
3555
|
+
items
|
3556
|
+
end
|
3557
|
+
|
3558
|
+
def self.repeated_relay_to_porcelain(plumbings)
|
3559
|
+
items = Array.new
|
3560
|
+
plumbings.each do |plumbing|
|
3561
|
+
porcelain = relay_to_porcelain(plumbing)
|
3562
|
+
items.append(porcelain)
|
3563
|
+
end
|
3564
|
+
items
|
3565
|
+
end
|
3566
|
+
def self.gateway_to_porcelain(plumbing)
|
3567
|
+
if plumbing == nil
|
3568
|
+
return nil
|
3569
|
+
end
|
3570
|
+
porcelain = Gateway.new()
|
3571
|
+
porcelain.id = plumbing.id
|
3572
|
+
porcelain.name = plumbing.name
|
3573
|
+
porcelain.state = plumbing.state
|
3574
|
+
porcelain.listen_address = plumbing.listen_address
|
3575
|
+
porcelain.bind_address = plumbing.bind_address
|
3576
|
+
porcelain
|
3577
|
+
end
|
3578
|
+
|
3579
|
+
def self.gateway_to_plumbing(porcelain)
|
3580
|
+
if porcelain == nil
|
3581
|
+
return nil
|
3582
|
+
end
|
3583
|
+
plumbing = V1::Gateway.new()
|
3584
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
3585
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
3586
|
+
plumbing.state = porcelain.state unless porcelain.state == nil
|
3587
|
+
plumbing.listen_address = porcelain.listen_address unless porcelain.listen_address == nil
|
3588
|
+
plumbing.bind_address = porcelain.bind_address unless porcelain.bind_address == nil
|
3589
|
+
plumbing
|
3590
|
+
end
|
3591
|
+
def self.repeated_gateway_to_plumbing(porcelains)
|
3592
|
+
items = Array.new
|
3593
|
+
porcelains.each do |porcelain|
|
3594
|
+
plumbing = gateway_to_plumbing(porcelain)
|
3595
|
+
items.append(plumbing)
|
3596
|
+
end
|
3597
|
+
items
|
3598
|
+
end
|
3599
|
+
|
3600
|
+
def self.repeated_gateway_to_porcelain(plumbings)
|
3601
|
+
items = Array.new
|
3602
|
+
plumbings.each do |plumbing|
|
3603
|
+
porcelain = gateway_to_porcelain(plumbing)
|
3604
|
+
items.append(porcelain)
|
3605
|
+
end
|
3606
|
+
items
|
3607
|
+
end
|
3608
|
+
def self.resource_create_response_to_porcelain(plumbing)
|
3609
|
+
if plumbing == nil
|
3610
|
+
return nil
|
3611
|
+
end
|
3612
|
+
porcelain = ResourceCreateResponse.new()
|
3613
|
+
porcelain.meta = create_response_metadata_to_porcelain(plumbing.meta)
|
3614
|
+
porcelain.resource = resource_to_porcelain(plumbing.resource)
|
3615
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
3616
|
+
porcelain
|
3617
|
+
end
|
3618
|
+
|
3619
|
+
def self.resource_create_response_to_plumbing(porcelain)
|
3620
|
+
if porcelain == nil
|
3621
|
+
return nil
|
3622
|
+
end
|
3623
|
+
plumbing = V1::ResourceCreateResponse.new()
|
3624
|
+
plumbing.meta = create_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
3625
|
+
plumbing.resource = resource_to_plumbing(porcelain.resource) unless porcelain.resource == nil
|
3626
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
3627
|
+
plumbing
|
3628
|
+
end
|
3629
|
+
def self.repeated_resource_create_response_to_plumbing(porcelains)
|
3630
|
+
items = Array.new
|
3631
|
+
porcelains.each do |porcelain|
|
3632
|
+
plumbing = resource_create_response_to_plumbing(porcelain)
|
3633
|
+
items.append(plumbing)
|
3634
|
+
end
|
3635
|
+
items
|
3636
|
+
end
|
3637
|
+
|
3638
|
+
def self.repeated_resource_create_response_to_porcelain(plumbings)
|
3639
|
+
items = Array.new
|
3640
|
+
plumbings.each do |plumbing|
|
3641
|
+
porcelain = resource_create_response_to_porcelain(plumbing)
|
3642
|
+
items.append(porcelain)
|
3643
|
+
end
|
3644
|
+
items
|
3645
|
+
end
|
3646
|
+
def self.resource_get_response_to_porcelain(plumbing)
|
3647
|
+
if plumbing == nil
|
3648
|
+
return nil
|
3649
|
+
end
|
3650
|
+
porcelain = ResourceGetResponse.new()
|
3651
|
+
porcelain.meta = get_response_metadata_to_porcelain(plumbing.meta)
|
3652
|
+
porcelain.resource = resource_to_porcelain(plumbing.resource)
|
3653
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
3654
|
+
porcelain
|
3655
|
+
end
|
3656
|
+
|
3657
|
+
def self.resource_get_response_to_plumbing(porcelain)
|
3658
|
+
if porcelain == nil
|
3659
|
+
return nil
|
3660
|
+
end
|
3661
|
+
plumbing = V1::ResourceGetResponse.new()
|
3662
|
+
plumbing.meta = get_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
3663
|
+
plumbing.resource = resource_to_plumbing(porcelain.resource) unless porcelain.resource == nil
|
3664
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
3665
|
+
plumbing
|
3666
|
+
end
|
3667
|
+
def self.repeated_resource_get_response_to_plumbing(porcelains)
|
3668
|
+
items = Array.new
|
3669
|
+
porcelains.each do |porcelain|
|
3670
|
+
plumbing = resource_get_response_to_plumbing(porcelain)
|
3671
|
+
items.append(plumbing)
|
3672
|
+
end
|
3673
|
+
items
|
3674
|
+
end
|
3675
|
+
|
3676
|
+
def self.repeated_resource_get_response_to_porcelain(plumbings)
|
3677
|
+
items = Array.new
|
3678
|
+
plumbings.each do |plumbing|
|
3679
|
+
porcelain = resource_get_response_to_porcelain(plumbing)
|
3680
|
+
items.append(porcelain)
|
3681
|
+
end
|
3682
|
+
items
|
3683
|
+
end
|
3684
|
+
def self.resource_update_response_to_porcelain(plumbing)
|
3685
|
+
if plumbing == nil
|
3686
|
+
return nil
|
3687
|
+
end
|
3688
|
+
porcelain = ResourceUpdateResponse.new()
|
3689
|
+
porcelain.meta = update_response_metadata_to_porcelain(plumbing.meta)
|
3690
|
+
porcelain.resource = resource_to_porcelain(plumbing.resource)
|
3691
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
3692
|
+
porcelain
|
3693
|
+
end
|
3694
|
+
|
3695
|
+
def self.resource_update_response_to_plumbing(porcelain)
|
3696
|
+
if porcelain == nil
|
3697
|
+
return nil
|
3698
|
+
end
|
3699
|
+
plumbing = V1::ResourceUpdateResponse.new()
|
3700
|
+
plumbing.meta = update_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
3701
|
+
plumbing.resource = resource_to_plumbing(porcelain.resource) unless porcelain.resource == nil
|
3702
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
3703
|
+
plumbing
|
3704
|
+
end
|
3705
|
+
def self.repeated_resource_update_response_to_plumbing(porcelains)
|
3706
|
+
items = Array.new
|
3707
|
+
porcelains.each do |porcelain|
|
3708
|
+
plumbing = resource_update_response_to_plumbing(porcelain)
|
3709
|
+
items.append(plumbing)
|
3710
|
+
end
|
3711
|
+
items
|
3712
|
+
end
|
3713
|
+
|
3714
|
+
def self.repeated_resource_update_response_to_porcelain(plumbings)
|
3715
|
+
items = Array.new
|
3716
|
+
plumbings.each do |plumbing|
|
3717
|
+
porcelain = resource_update_response_to_porcelain(plumbing)
|
3718
|
+
items.append(porcelain)
|
3719
|
+
end
|
3720
|
+
items
|
3721
|
+
end
|
3722
|
+
def self.resource_delete_response_to_porcelain(plumbing)
|
3723
|
+
if plumbing == nil
|
3724
|
+
return nil
|
3725
|
+
end
|
3726
|
+
porcelain = ResourceDeleteResponse.new()
|
3727
|
+
porcelain.meta = delete_response_metadata_to_porcelain(plumbing.meta)
|
3728
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
3729
|
+
porcelain
|
3730
|
+
end
|
3731
|
+
|
3732
|
+
def self.resource_delete_response_to_plumbing(porcelain)
|
3733
|
+
if porcelain == nil
|
3734
|
+
return nil
|
3735
|
+
end
|
3736
|
+
plumbing = V1::ResourceDeleteResponse.new()
|
3737
|
+
plumbing.meta = delete_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
3738
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
3739
|
+
plumbing
|
3740
|
+
end
|
3741
|
+
def self.repeated_resource_delete_response_to_plumbing(porcelains)
|
3742
|
+
items = Array.new
|
3743
|
+
porcelains.each do |porcelain|
|
3744
|
+
plumbing = resource_delete_response_to_plumbing(porcelain)
|
3745
|
+
items.append(plumbing)
|
3746
|
+
end
|
3747
|
+
items
|
3748
|
+
end
|
3749
|
+
|
3750
|
+
def self.repeated_resource_delete_response_to_porcelain(plumbings)
|
3751
|
+
items = Array.new
|
3752
|
+
plumbings.each do |plumbing|
|
3753
|
+
porcelain = resource_delete_response_to_porcelain(plumbing)
|
3754
|
+
items.append(porcelain)
|
3755
|
+
end
|
3756
|
+
items
|
3757
|
+
end
|
3758
|
+
def self.role_attachment_create_response_to_porcelain(plumbing)
|
3759
|
+
if plumbing == nil
|
3760
|
+
return nil
|
3761
|
+
end
|
3762
|
+
porcelain = RoleAttachmentCreateResponse.new()
|
3763
|
+
porcelain.meta = create_response_metadata_to_porcelain(plumbing.meta)
|
3764
|
+
porcelain.role_attachment = role_attachment_to_porcelain(plumbing.role_attachment)
|
3765
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
3766
|
+
porcelain
|
3767
|
+
end
|
3768
|
+
|
3769
|
+
def self.role_attachment_create_response_to_plumbing(porcelain)
|
3770
|
+
if porcelain == nil
|
3771
|
+
return nil
|
3772
|
+
end
|
3773
|
+
plumbing = V1::RoleAttachmentCreateResponse.new()
|
3774
|
+
plumbing.meta = create_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
3775
|
+
plumbing.role_attachment = role_attachment_to_plumbing(porcelain.role_attachment) unless porcelain.role_attachment == nil
|
3776
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
3777
|
+
plumbing
|
3778
|
+
end
|
3779
|
+
def self.repeated_role_attachment_create_response_to_plumbing(porcelains)
|
3780
|
+
items = Array.new
|
3781
|
+
porcelains.each do |porcelain|
|
3782
|
+
plumbing = role_attachment_create_response_to_plumbing(porcelain)
|
3783
|
+
items.append(plumbing)
|
3784
|
+
end
|
3785
|
+
items
|
3786
|
+
end
|
3787
|
+
|
3788
|
+
def self.repeated_role_attachment_create_response_to_porcelain(plumbings)
|
3789
|
+
items = Array.new
|
3790
|
+
plumbings.each do |plumbing|
|
3791
|
+
porcelain = role_attachment_create_response_to_porcelain(plumbing)
|
3792
|
+
items.append(porcelain)
|
3793
|
+
end
|
3794
|
+
items
|
3795
|
+
end
|
3796
|
+
def self.role_attachment_get_response_to_porcelain(plumbing)
|
3797
|
+
if plumbing == nil
|
3798
|
+
return nil
|
3799
|
+
end
|
3800
|
+
porcelain = RoleAttachmentGetResponse.new()
|
3801
|
+
porcelain.meta = get_response_metadata_to_porcelain(plumbing.meta)
|
3802
|
+
porcelain.role_attachment = role_attachment_to_porcelain(plumbing.role_attachment)
|
3803
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
3804
|
+
porcelain
|
3805
|
+
end
|
3806
|
+
|
3807
|
+
def self.role_attachment_get_response_to_plumbing(porcelain)
|
3808
|
+
if porcelain == nil
|
3809
|
+
return nil
|
3810
|
+
end
|
3811
|
+
plumbing = V1::RoleAttachmentGetResponse.new()
|
3812
|
+
plumbing.meta = get_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
3813
|
+
plumbing.role_attachment = role_attachment_to_plumbing(porcelain.role_attachment) unless porcelain.role_attachment == nil
|
3814
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
3815
|
+
plumbing
|
3816
|
+
end
|
3817
|
+
def self.repeated_role_attachment_get_response_to_plumbing(porcelains)
|
3818
|
+
items = Array.new
|
3819
|
+
porcelains.each do |porcelain|
|
3820
|
+
plumbing = role_attachment_get_response_to_plumbing(porcelain)
|
3821
|
+
items.append(plumbing)
|
3822
|
+
end
|
3823
|
+
items
|
3824
|
+
end
|
3825
|
+
|
3826
|
+
def self.repeated_role_attachment_get_response_to_porcelain(plumbings)
|
3827
|
+
items = Array.new
|
3828
|
+
plumbings.each do |plumbing|
|
3829
|
+
porcelain = role_attachment_get_response_to_porcelain(plumbing)
|
3830
|
+
items.append(porcelain)
|
3831
|
+
end
|
3832
|
+
items
|
3833
|
+
end
|
3834
|
+
def self.role_attachment_delete_response_to_porcelain(plumbing)
|
3835
|
+
if plumbing == nil
|
3836
|
+
return nil
|
3837
|
+
end
|
3838
|
+
porcelain = RoleAttachmentDeleteResponse.new()
|
3839
|
+
porcelain.meta = delete_response_metadata_to_porcelain(plumbing.meta)
|
3840
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
3841
|
+
porcelain
|
3842
|
+
end
|
3843
|
+
|
3844
|
+
def self.role_attachment_delete_response_to_plumbing(porcelain)
|
3845
|
+
if porcelain == nil
|
3846
|
+
return nil
|
3847
|
+
end
|
3848
|
+
plumbing = V1::RoleAttachmentDeleteResponse.new()
|
3849
|
+
plumbing.meta = delete_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
3850
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
3851
|
+
plumbing
|
3852
|
+
end
|
3853
|
+
def self.repeated_role_attachment_delete_response_to_plumbing(porcelains)
|
3854
|
+
items = Array.new
|
3855
|
+
porcelains.each do |porcelain|
|
3856
|
+
plumbing = role_attachment_delete_response_to_plumbing(porcelain)
|
3857
|
+
items.append(plumbing)
|
3858
|
+
end
|
3859
|
+
items
|
3860
|
+
end
|
3861
|
+
|
3862
|
+
def self.repeated_role_attachment_delete_response_to_porcelain(plumbings)
|
3863
|
+
items = Array.new
|
3864
|
+
plumbings.each do |plumbing|
|
3865
|
+
porcelain = role_attachment_delete_response_to_porcelain(plumbing)
|
3866
|
+
items.append(porcelain)
|
3867
|
+
end
|
3868
|
+
items
|
3869
|
+
end
|
3870
|
+
def self.role_attachment_to_porcelain(plumbing)
|
3871
|
+
if plumbing == nil
|
3872
|
+
return nil
|
3873
|
+
end
|
3874
|
+
porcelain = RoleAttachment.new()
|
3875
|
+
porcelain.id = plumbing.id
|
3876
|
+
porcelain.composite_role_id = plumbing.composite_role_id
|
3877
|
+
porcelain.attached_role_id = plumbing.attached_role_id
|
3878
|
+
porcelain
|
3879
|
+
end
|
3880
|
+
|
3881
|
+
def self.role_attachment_to_plumbing(porcelain)
|
3882
|
+
if porcelain == nil
|
3883
|
+
return nil
|
3884
|
+
end
|
3885
|
+
plumbing = V1::RoleAttachment.new()
|
3886
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
3887
|
+
plumbing.composite_role_id = porcelain.composite_role_id unless porcelain.composite_role_id == nil
|
3888
|
+
plumbing.attached_role_id = porcelain.attached_role_id unless porcelain.attached_role_id == nil
|
3889
|
+
plumbing
|
3890
|
+
end
|
3891
|
+
def self.repeated_role_attachment_to_plumbing(porcelains)
|
3892
|
+
items = Array.new
|
3893
|
+
porcelains.each do |porcelain|
|
3894
|
+
plumbing = role_attachment_to_plumbing(porcelain)
|
3895
|
+
items.append(plumbing)
|
3896
|
+
end
|
3897
|
+
items
|
3898
|
+
end
|
3899
|
+
|
3900
|
+
def self.repeated_role_attachment_to_porcelain(plumbings)
|
3901
|
+
items = Array.new
|
3902
|
+
plumbings.each do |plumbing|
|
3903
|
+
porcelain = role_attachment_to_porcelain(plumbing)
|
3904
|
+
items.append(porcelain)
|
3905
|
+
end
|
3906
|
+
items
|
3907
|
+
end
|
3908
|
+
def self.role_grant_create_response_to_porcelain(plumbing)
|
3909
|
+
if plumbing == nil
|
3910
|
+
return nil
|
3911
|
+
end
|
3912
|
+
porcelain = RoleGrantCreateResponse.new()
|
3913
|
+
porcelain.meta = create_response_metadata_to_porcelain(plumbing.meta)
|
3914
|
+
porcelain.role_grant = role_grant_to_porcelain(plumbing.role_grant)
|
3915
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
3916
|
+
porcelain
|
3917
|
+
end
|
3918
|
+
|
3919
|
+
def self.role_grant_create_response_to_plumbing(porcelain)
|
3920
|
+
if porcelain == nil
|
3921
|
+
return nil
|
3922
|
+
end
|
3923
|
+
plumbing = V1::RoleGrantCreateResponse.new()
|
3924
|
+
plumbing.meta = create_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
3925
|
+
plumbing.role_grant = role_grant_to_plumbing(porcelain.role_grant) unless porcelain.role_grant == nil
|
3926
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
3927
|
+
plumbing
|
3928
|
+
end
|
3929
|
+
def self.repeated_role_grant_create_response_to_plumbing(porcelains)
|
3930
|
+
items = Array.new
|
3931
|
+
porcelains.each do |porcelain|
|
3932
|
+
plumbing = role_grant_create_response_to_plumbing(porcelain)
|
3933
|
+
items.append(plumbing)
|
3934
|
+
end
|
3935
|
+
items
|
3936
|
+
end
|
3937
|
+
|
3938
|
+
def self.repeated_role_grant_create_response_to_porcelain(plumbings)
|
3939
|
+
items = Array.new
|
3940
|
+
plumbings.each do |plumbing|
|
3941
|
+
porcelain = role_grant_create_response_to_porcelain(plumbing)
|
3942
|
+
items.append(porcelain)
|
3943
|
+
end
|
3944
|
+
items
|
3945
|
+
end
|
3946
|
+
def self.role_grant_get_response_to_porcelain(plumbing)
|
3947
|
+
if plumbing == nil
|
3948
|
+
return nil
|
3949
|
+
end
|
3950
|
+
porcelain = RoleGrantGetResponse.new()
|
3951
|
+
porcelain.meta = get_response_metadata_to_porcelain(plumbing.meta)
|
3952
|
+
porcelain.role_grant = role_grant_to_porcelain(plumbing.role_grant)
|
3953
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
3954
|
+
porcelain
|
3955
|
+
end
|
3956
|
+
|
3957
|
+
def self.role_grant_get_response_to_plumbing(porcelain)
|
3958
|
+
if porcelain == nil
|
3959
|
+
return nil
|
3960
|
+
end
|
3961
|
+
plumbing = V1::RoleGrantGetResponse.new()
|
3962
|
+
plumbing.meta = get_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
3963
|
+
plumbing.role_grant = role_grant_to_plumbing(porcelain.role_grant) unless porcelain.role_grant == nil
|
3964
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
3965
|
+
plumbing
|
3966
|
+
end
|
3967
|
+
def self.repeated_role_grant_get_response_to_plumbing(porcelains)
|
3968
|
+
items = Array.new
|
3969
|
+
porcelains.each do |porcelain|
|
3970
|
+
plumbing = role_grant_get_response_to_plumbing(porcelain)
|
3971
|
+
items.append(plumbing)
|
3972
|
+
end
|
3973
|
+
items
|
3974
|
+
end
|
3975
|
+
|
3976
|
+
def self.repeated_role_grant_get_response_to_porcelain(plumbings)
|
3977
|
+
items = Array.new
|
3978
|
+
plumbings.each do |plumbing|
|
3979
|
+
porcelain = role_grant_get_response_to_porcelain(plumbing)
|
3980
|
+
items.append(porcelain)
|
3981
|
+
end
|
3982
|
+
items
|
3983
|
+
end
|
3984
|
+
def self.role_grant_delete_response_to_porcelain(plumbing)
|
3985
|
+
if plumbing == nil
|
3986
|
+
return nil
|
3987
|
+
end
|
3988
|
+
porcelain = RoleGrantDeleteResponse.new()
|
3989
|
+
porcelain.meta = delete_response_metadata_to_porcelain(plumbing.meta)
|
3990
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
3991
|
+
porcelain
|
3992
|
+
end
|
3993
|
+
|
3994
|
+
def self.role_grant_delete_response_to_plumbing(porcelain)
|
3995
|
+
if porcelain == nil
|
3996
|
+
return nil
|
3997
|
+
end
|
3998
|
+
plumbing = V1::RoleGrantDeleteResponse.new()
|
3999
|
+
plumbing.meta = delete_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
4000
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
4001
|
+
plumbing
|
4002
|
+
end
|
4003
|
+
def self.repeated_role_grant_delete_response_to_plumbing(porcelains)
|
4004
|
+
items = Array.new
|
4005
|
+
porcelains.each do |porcelain|
|
4006
|
+
plumbing = role_grant_delete_response_to_plumbing(porcelain)
|
4007
|
+
items.append(plumbing)
|
4008
|
+
end
|
4009
|
+
items
|
4010
|
+
end
|
4011
|
+
|
4012
|
+
def self.repeated_role_grant_delete_response_to_porcelain(plumbings)
|
4013
|
+
items = Array.new
|
4014
|
+
plumbings.each do |plumbing|
|
4015
|
+
porcelain = role_grant_delete_response_to_porcelain(plumbing)
|
4016
|
+
items.append(porcelain)
|
4017
|
+
end
|
4018
|
+
items
|
4019
|
+
end
|
4020
|
+
def self.role_grant_to_porcelain(plumbing)
|
4021
|
+
if plumbing == nil
|
4022
|
+
return nil
|
4023
|
+
end
|
4024
|
+
porcelain = RoleGrant.new()
|
4025
|
+
porcelain.id = plumbing.id
|
4026
|
+
porcelain.resource_id = plumbing.resource_id
|
4027
|
+
porcelain.role_id = plumbing.role_id
|
4028
|
+
porcelain
|
4029
|
+
end
|
4030
|
+
|
4031
|
+
def self.role_grant_to_plumbing(porcelain)
|
4032
|
+
if porcelain == nil
|
4033
|
+
return nil
|
4034
|
+
end
|
4035
|
+
plumbing = V1::RoleGrant.new()
|
4036
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
4037
|
+
plumbing.resource_id = porcelain.resource_id unless porcelain.resource_id == nil
|
4038
|
+
plumbing.role_id = porcelain.role_id unless porcelain.role_id == nil
|
4039
|
+
plumbing
|
4040
|
+
end
|
4041
|
+
def self.repeated_role_grant_to_plumbing(porcelains)
|
4042
|
+
items = Array.new
|
4043
|
+
porcelains.each do |porcelain|
|
4044
|
+
plumbing = role_grant_to_plumbing(porcelain)
|
4045
|
+
items.append(plumbing)
|
4046
|
+
end
|
4047
|
+
items
|
4048
|
+
end
|
4049
|
+
|
4050
|
+
def self.repeated_role_grant_to_porcelain(plumbings)
|
4051
|
+
items = Array.new
|
4052
|
+
plumbings.each do |plumbing|
|
4053
|
+
porcelain = role_grant_to_porcelain(plumbing)
|
4054
|
+
items.append(porcelain)
|
4055
|
+
end
|
4056
|
+
items
|
4057
|
+
end
|
4058
|
+
def self.role_create_response_to_porcelain(plumbing)
|
4059
|
+
if plumbing == nil
|
4060
|
+
return nil
|
4061
|
+
end
|
4062
|
+
porcelain = RoleCreateResponse.new()
|
4063
|
+
porcelain.meta = create_response_metadata_to_porcelain(plumbing.meta)
|
4064
|
+
porcelain.role = role_to_porcelain(plumbing.role)
|
4065
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
4066
|
+
porcelain
|
4067
|
+
end
|
4068
|
+
|
4069
|
+
def self.role_create_response_to_plumbing(porcelain)
|
4070
|
+
if porcelain == nil
|
4071
|
+
return nil
|
4072
|
+
end
|
4073
|
+
plumbing = V1::RoleCreateResponse.new()
|
4074
|
+
plumbing.meta = create_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
4075
|
+
plumbing.role = role_to_plumbing(porcelain.role) unless porcelain.role == nil
|
4076
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
4077
|
+
plumbing
|
4078
|
+
end
|
4079
|
+
def self.repeated_role_create_response_to_plumbing(porcelains)
|
4080
|
+
items = Array.new
|
4081
|
+
porcelains.each do |porcelain|
|
4082
|
+
plumbing = role_create_response_to_plumbing(porcelain)
|
4083
|
+
items.append(plumbing)
|
4084
|
+
end
|
4085
|
+
items
|
4086
|
+
end
|
4087
|
+
|
4088
|
+
def self.repeated_role_create_response_to_porcelain(plumbings)
|
4089
|
+
items = Array.new
|
4090
|
+
plumbings.each do |plumbing|
|
4091
|
+
porcelain = role_create_response_to_porcelain(plumbing)
|
4092
|
+
items.append(porcelain)
|
4093
|
+
end
|
4094
|
+
items
|
4095
|
+
end
|
4096
|
+
def self.role_get_response_to_porcelain(plumbing)
|
4097
|
+
if plumbing == nil
|
4098
|
+
return nil
|
4099
|
+
end
|
4100
|
+
porcelain = RoleGetResponse.new()
|
4101
|
+
porcelain.meta = get_response_metadata_to_porcelain(plumbing.meta)
|
4102
|
+
porcelain.role = role_to_porcelain(plumbing.role)
|
4103
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
4104
|
+
porcelain
|
4105
|
+
end
|
4106
|
+
|
4107
|
+
def self.role_get_response_to_plumbing(porcelain)
|
4108
|
+
if porcelain == nil
|
4109
|
+
return nil
|
4110
|
+
end
|
4111
|
+
plumbing = V1::RoleGetResponse.new()
|
4112
|
+
plumbing.meta = get_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
4113
|
+
plumbing.role = role_to_plumbing(porcelain.role) unless porcelain.role == nil
|
4114
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
4115
|
+
plumbing
|
4116
|
+
end
|
4117
|
+
def self.repeated_role_get_response_to_plumbing(porcelains)
|
4118
|
+
items = Array.new
|
4119
|
+
porcelains.each do |porcelain|
|
4120
|
+
plumbing = role_get_response_to_plumbing(porcelain)
|
4121
|
+
items.append(plumbing)
|
4122
|
+
end
|
4123
|
+
items
|
4124
|
+
end
|
4125
|
+
|
4126
|
+
def self.repeated_role_get_response_to_porcelain(plumbings)
|
4127
|
+
items = Array.new
|
4128
|
+
plumbings.each do |plumbing|
|
4129
|
+
porcelain = role_get_response_to_porcelain(plumbing)
|
4130
|
+
items.append(porcelain)
|
4131
|
+
end
|
4132
|
+
items
|
4133
|
+
end
|
4134
|
+
def self.role_update_response_to_porcelain(plumbing)
|
4135
|
+
if plumbing == nil
|
4136
|
+
return nil
|
4137
|
+
end
|
4138
|
+
porcelain = RoleUpdateResponse.new()
|
4139
|
+
porcelain.meta = update_response_metadata_to_porcelain(plumbing.meta)
|
4140
|
+
porcelain.role = role_to_porcelain(plumbing.role)
|
4141
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
4142
|
+
porcelain
|
4143
|
+
end
|
4144
|
+
|
4145
|
+
def self.role_update_response_to_plumbing(porcelain)
|
4146
|
+
if porcelain == nil
|
4147
|
+
return nil
|
4148
|
+
end
|
4149
|
+
plumbing = V1::RoleUpdateResponse.new()
|
4150
|
+
plumbing.meta = update_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
4151
|
+
plumbing.role = role_to_plumbing(porcelain.role) unless porcelain.role == nil
|
4152
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
4153
|
+
plumbing
|
4154
|
+
end
|
4155
|
+
def self.repeated_role_update_response_to_plumbing(porcelains)
|
4156
|
+
items = Array.new
|
4157
|
+
porcelains.each do |porcelain|
|
4158
|
+
plumbing = role_update_response_to_plumbing(porcelain)
|
4159
|
+
items.append(plumbing)
|
4160
|
+
end
|
4161
|
+
items
|
4162
|
+
end
|
4163
|
+
|
4164
|
+
def self.repeated_role_update_response_to_porcelain(plumbings)
|
4165
|
+
items = Array.new
|
4166
|
+
plumbings.each do |plumbing|
|
4167
|
+
porcelain = role_update_response_to_porcelain(plumbing)
|
4168
|
+
items.append(porcelain)
|
4169
|
+
end
|
4170
|
+
items
|
4171
|
+
end
|
4172
|
+
def self.role_delete_response_to_porcelain(plumbing)
|
4173
|
+
if plumbing == nil
|
4174
|
+
return nil
|
4175
|
+
end
|
4176
|
+
porcelain = RoleDeleteResponse.new()
|
4177
|
+
porcelain.meta = delete_response_metadata_to_porcelain(plumbing.meta)
|
4178
|
+
porcelain.rate_limit = rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
4179
|
+
porcelain
|
4180
|
+
end
|
4181
|
+
|
4182
|
+
def self.role_delete_response_to_plumbing(porcelain)
|
4183
|
+
if porcelain == nil
|
4184
|
+
return nil
|
4185
|
+
end
|
4186
|
+
plumbing = V1::RoleDeleteResponse.new()
|
4187
|
+
plumbing.meta = delete_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
4188
|
+
plumbing.rate_limit = rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
4189
|
+
plumbing
|
4190
|
+
end
|
4191
|
+
def self.repeated_role_delete_response_to_plumbing(porcelains)
|
4192
|
+
items = Array.new
|
4193
|
+
porcelains.each do |porcelain|
|
4194
|
+
plumbing = role_delete_response_to_plumbing(porcelain)
|
4195
|
+
items.append(plumbing)
|
4196
|
+
end
|
4197
|
+
items
|
4198
|
+
end
|
4199
|
+
|
4200
|
+
def self.repeated_role_delete_response_to_porcelain(plumbings)
|
4201
|
+
items = Array.new
|
4202
|
+
plumbings.each do |plumbing|
|
4203
|
+
porcelain = role_delete_response_to_porcelain(plumbing)
|
4204
|
+
items.append(porcelain)
|
4205
|
+
end
|
4206
|
+
items
|
4207
|
+
end
|
4208
|
+
def self.role_to_porcelain(plumbing)
|
4209
|
+
if plumbing == nil
|
4210
|
+
return nil
|
4211
|
+
end
|
4212
|
+
porcelain = Role.new()
|
4213
|
+
porcelain.id = plumbing.id
|
4214
|
+
porcelain.name = plumbing.name
|
4215
|
+
porcelain.composite = plumbing.composite
|
4216
|
+
porcelain
|
4217
|
+
end
|
4218
|
+
|
4219
|
+
def self.role_to_plumbing(porcelain)
|
4220
|
+
if porcelain == nil
|
4221
|
+
return nil
|
4222
|
+
end
|
4223
|
+
plumbing = V1::Role.new()
|
4224
|
+
plumbing.id = porcelain.id unless porcelain.id == nil
|
4225
|
+
plumbing.name = porcelain.name unless porcelain.name == nil
|
4226
|
+
plumbing.composite = porcelain.composite unless porcelain.composite == nil
|
4227
|
+
plumbing
|
4228
|
+
end
|
4229
|
+
def self.repeated_role_to_plumbing(porcelains)
|
4230
|
+
items = Array.new
|
4231
|
+
porcelains.each do |porcelain|
|
4232
|
+
plumbing = role_to_plumbing(porcelain)
|
4233
|
+
items.append(plumbing)
|
4234
|
+
end
|
4235
|
+
items
|
4236
|
+
end
|
4237
|
+
|
4238
|
+
def self.repeated_role_to_porcelain(plumbings)
|
4239
|
+
items = Array.new
|
4240
|
+
plumbings.each do |plumbing|
|
4241
|
+
porcelain = role_to_porcelain(plumbing)
|
4242
|
+
items.append(porcelain)
|
4243
|
+
end
|
4244
|
+
items
|
4245
|
+
end
|
4246
|
+
def self.error_to_porcelain(err)
|
4247
|
+
if not err .is_a? GRPC::BadStatus
|
4248
|
+
return RPCError.new(err, 2) # Unknown
|
4249
|
+
end
|
4250
|
+
|
4251
|
+
if err.code == 4
|
4252
|
+
return DeadlineExceededError.new(err.message)
|
4253
|
+
end
|
4254
|
+
|
4255
|
+
status = err.to_rpc_status
|
4256
|
+
if status == nil
|
4257
|
+
return RPCError.new(err.message, err.code)
|
4258
|
+
end
|
4259
|
+
case err.code
|
4260
|
+
when 3
|
4261
|
+
return BadRequestError.new(err.message)
|
4262
|
+
when 5
|
4263
|
+
return NotFoundError.new(err.message)
|
4264
|
+
when 6
|
4265
|
+
return AlreadyExistsError.new(err.message)
|
4266
|
+
when 7
|
4267
|
+
return PermissionError.new(err.message)
|
4268
|
+
when 8
|
4269
|
+
status.details.each do |detail|
|
4270
|
+
if detail.type_url == "type.googleapis.com/v1.RateLimitMetadata"
|
4271
|
+
rate_limit = detail.unpack V1::RateLimitMetadata
|
4272
|
+
return RateLimitError.new(err.message, rate_limit_metadata_to_porcelain(rate_limit))
|
4273
|
+
end
|
4274
|
+
end
|
4275
|
+
when 13
|
4276
|
+
return InternalError.new(err.message)
|
4277
|
+
when 16
|
4278
|
+
return AuthenticationError.new(err.message)
|
4279
|
+
end
|
4280
|
+
return RPCError.new(err.message, err.code)
|
4281
|
+
end
|
4282
|
+
end
|
4283
|
+
end
|