strongdm 1.0.14 → 1.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/SDM/AKS.html +2 -2
- data/doc/SDM/AKSBasicAuth.html +2 -2
- data/doc/SDM/AKSServiceAccount.html +2 -2
- data/doc/SDM/AWS.html +373 -0
- data/doc/SDM/AWSStore.html +2 -2
- data/doc/SDM/AmazonEKS.html +2 -2
- data/doc/SDM/AmazonES.html +2 -2
- data/doc/SDM/AuroraMysql.html +2 -2
- data/doc/SDM/AuroraPostgres.html +2 -2
- data/doc/SDM/BigQuery.html +2 -2
- data/doc/SDM/Cassandra.html +2 -2
- data/doc/SDM/Citus.html +2 -2
- data/doc/SDM/Clustrix.html +2 -2
- data/doc/SDM/Cockroach.html +2 -2
- data/doc/SDM/DB2LUW.html +2 -2
- data/doc/SDM/DB2i.html +2 -2
- data/doc/SDM/Druid.html +2 -2
- data/doc/SDM/DynamoDB.html +2 -2
- data/doc/SDM/Elastic.html +2 -2
- data/doc/SDM/ElasticacheRedis.html +2 -2
- data/doc/SDM/Gateway.html +2 -2
- data/doc/SDM/GoogleGKE.html +2 -2
- data/doc/SDM/Greenplum.html +2 -2
- data/doc/SDM/HTTPAuth.html +2 -2
- data/doc/SDM/HTTPBasicAuth.html +2 -2
- data/doc/SDM/HTTPNoAuth.html +2 -2
- data/doc/SDM/Kubernetes.html +2 -2
- data/doc/SDM/KubernetesBasicAuth.html +2 -2
- data/doc/SDM/KubernetesServiceAccount.html +2 -2
- data/doc/SDM/Maria.html +2 -2
- data/doc/SDM/Memcached.html +2 -2
- data/doc/SDM/Memsql.html +2 -2
- data/doc/SDM/MongoHost.html +2 -2
- data/doc/SDM/MongoLegacyHost.html +2 -2
- data/doc/SDM/MongoLegacyReplicaset.html +2 -2
- data/doc/SDM/MongoReplicaSet.html +2 -2
- data/doc/SDM/Mysql.html +2 -2
- data/doc/SDM/NodeCreateResponse.html +2 -2
- data/doc/SDM/NodeDeleteResponse.html +2 -2
- data/doc/SDM/NodeGetResponse.html +2 -2
- data/doc/SDM/NodeUpdateResponse.html +2 -2
- data/doc/SDM/Oracle.html +2 -2
- data/doc/SDM/Plumbing.html +602 -420
- data/doc/SDM/Postgres.html +2 -2
- data/doc/SDM/Presto.html +2 -2
- data/doc/SDM/RDP.html +2 -2
- data/doc/SDM/Redis.html +2 -2
- data/doc/SDM/Redshift.html +2 -2
- data/doc/SDM/Relay.html +2 -2
- data/doc/SDM/ResourceCreateResponse.html +2 -2
- data/doc/SDM/ResourceDeleteResponse.html +2 -2
- data/doc/SDM/ResourceGetResponse.html +2 -2
- data/doc/SDM/ResourceUpdateResponse.html +2 -2
- data/doc/SDM/Role.html +2 -2
- data/doc/SDM/RoleAttachment.html +2 -2
- data/doc/SDM/RoleAttachmentCreateResponse.html +2 -2
- data/doc/SDM/RoleAttachmentDeleteResponse.html +2 -2
- data/doc/SDM/RoleAttachmentGetResponse.html +2 -2
- data/doc/SDM/RoleCreateResponse.html +2 -2
- data/doc/SDM/RoleDeleteResponse.html +2 -2
- data/doc/SDM/RoleGetResponse.html +2 -2
- data/doc/SDM/RoleGrant.html +2 -2
- data/doc/SDM/RoleGrantCreateResponse.html +2 -2
- data/doc/SDM/RoleGrantDeleteResponse.html +2 -2
- data/doc/SDM/RoleGrantGetResponse.html +2 -2
- data/doc/SDM/RoleUpdateResponse.html +2 -2
- data/doc/SDM/SQLServer.html +2 -2
- data/doc/SDM/SSH.html +2 -2
- data/doc/SDM/SSHCert.html +2 -2
- data/doc/SDM/SecretStoreCreateResponse.html +2 -2
- data/doc/SDM/SecretStoreDeleteResponse.html +2 -2
- data/doc/SDM/SecretStoreGetResponse.html +2 -2
- data/doc/SDM/SecretStoreUpdateResponse.html +2 -2
- data/doc/SDM/Snowflake.html +2 -2
- data/doc/SDM/Sybase.html +2 -2
- data/doc/SDM/SybaseIQ.html +2 -2
- data/doc/SDM/Teradata.html +2 -2
- data/doc/SDM/VaultTLSStore.html +2 -2
- data/doc/SDM/VaultTokenStore.html +2 -2
- data/doc/V1.html +60 -0
- data/doc/V1/DemoProvisioningRequests.html +113 -0
- data/doc/V1/DemoProvisioningRequests/Service.html +119 -0
- data/doc/created.rid +46 -43
- data/doc/index.html +6 -0
- data/doc/js/search_index.js +1 -1
- data/doc/js/search_index.js.gz +0 -0
- data/doc/lib/version.html +1 -1
- data/doc/table_of_contents.html +366 -321
- data/lib/grpc/demo_provisioning_requests_pb.rb +93 -0
- data/lib/grpc/demo_provisioning_requests_services_pb.rb +49 -0
- data/lib/grpc/drivers_pb.rb +13 -0
- data/lib/grpc/plumbing.rb +198 -140
- data/lib/grpc/secret_store_healths_pb.rb +3 -1
- data/lib/grpc/secret_store_types_pb.rb +60 -0
- data/lib/grpc/secret_stores_pb.rb +1 -33
- data/lib/models/porcelain.rb +204 -135
- data/lib/version +1 -1
- data/lib/version.rb +1 -1
- metadata +8 -2
@@ -0,0 +1,93 @@
|
|
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: demo_provisioning_requests.proto
|
17
|
+
|
18
|
+
require "google/protobuf"
|
19
|
+
|
20
|
+
require "options_pb"
|
21
|
+
require "spec_pb"
|
22
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
23
|
+
add_file("demo_provisioning_requests.proto", :syntax => :proto3) do
|
24
|
+
add_message "v1.DemoProvisioningRequestCreateRequest" do
|
25
|
+
optional :meta, :message, 1, "v1.CreateRequestMetadata"
|
26
|
+
optional :demo_provisioning_request, :message, 2, "v1.DemoProvisioningRequest"
|
27
|
+
end
|
28
|
+
add_message "v1.DemoProvisioningRequestCreateResponse" do
|
29
|
+
optional :meta, :message, 1, "v1.CreateResponseMetadata"
|
30
|
+
optional :demo_provisioning_request, :message, 2, "v1.DemoProvisioningRequest"
|
31
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
32
|
+
end
|
33
|
+
add_message "v1.DemoProvisioningRequestDeleteRequest" do
|
34
|
+
optional :meta, :message, 1, "v1.DeleteRequestMetadata"
|
35
|
+
optional :id, :string, 2
|
36
|
+
end
|
37
|
+
add_message "v1.DemoProvisioningRequestDeleteResponse" do
|
38
|
+
optional :meta, :message, 1, "v1.DeleteResponseMetadata"
|
39
|
+
optional :rate_limit, :message, 2, "v1.RateLimitMetadata"
|
40
|
+
end
|
41
|
+
add_message "v1.DemoProvisioningRequestUpdateRequest" do
|
42
|
+
optional :meta, :message, 1, "v1.UpdateRequestMetadata"
|
43
|
+
optional :id, :string, 2
|
44
|
+
optional :demo_provisioning_request, :message, 3, "v1.DemoProvisioningRequest"
|
45
|
+
end
|
46
|
+
add_message "v1.DemoProvisioningRequestUpdateResponse" do
|
47
|
+
optional :meta, :message, 1, "v1.UpdateResponseMetadata"
|
48
|
+
optional :demo_provisioning_request, :message, 2, "v1.DemoProvisioningRequest"
|
49
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
50
|
+
end
|
51
|
+
add_message "v1.DemoProvisioningRequestListForOrganizationRequest" do
|
52
|
+
optional :meta, :message, 1, "v1.ListRequestMetadata"
|
53
|
+
optional :filter, :string, 2
|
54
|
+
end
|
55
|
+
add_message "v1.DemoProvisioningRequestListForOrganizationResponse" do
|
56
|
+
optional :meta, :message, 1, "v1.ListResponseMetadata"
|
57
|
+
repeated :demo_provisioning_requests, :message, 2, "v1.DemoProvisioningRequest"
|
58
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
59
|
+
end
|
60
|
+
add_message "v1.DemoProvisioningRequestListAllRequest" do
|
61
|
+
optional :meta, :message, 1, "v1.ListRequestMetadata"
|
62
|
+
optional :filter, :string, 2
|
63
|
+
end
|
64
|
+
add_message "v1.DemoProvisioningRequestListAllResponse" do
|
65
|
+
optional :meta, :message, 1, "v1.ListResponseMetadata"
|
66
|
+
repeated :demo_provisioning_requests, :message, 2, "v1.DemoProvisioningRequest"
|
67
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
68
|
+
end
|
69
|
+
add_message "v1.DemoProvisioningRequest" do
|
70
|
+
optional :id, :string, 1
|
71
|
+
optional :request_type, :string, 2
|
72
|
+
optional :creator_id, :string, 3
|
73
|
+
optional :created_resource_id, :string, 4
|
74
|
+
optional :created_node_id, :string, 5
|
75
|
+
optional :access_key, :string, 6
|
76
|
+
optional :secret_key, :string, 7
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
module V1
|
82
|
+
DemoProvisioningRequestCreateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.DemoProvisioningRequestCreateRequest").msgclass
|
83
|
+
DemoProvisioningRequestCreateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.DemoProvisioningRequestCreateResponse").msgclass
|
84
|
+
DemoProvisioningRequestDeleteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.DemoProvisioningRequestDeleteRequest").msgclass
|
85
|
+
DemoProvisioningRequestDeleteResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.DemoProvisioningRequestDeleteResponse").msgclass
|
86
|
+
DemoProvisioningRequestUpdateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.DemoProvisioningRequestUpdateRequest").msgclass
|
87
|
+
DemoProvisioningRequestUpdateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.DemoProvisioningRequestUpdateResponse").msgclass
|
88
|
+
DemoProvisioningRequestListForOrganizationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.DemoProvisioningRequestListForOrganizationRequest").msgclass
|
89
|
+
DemoProvisioningRequestListForOrganizationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.DemoProvisioningRequestListForOrganizationResponse").msgclass
|
90
|
+
DemoProvisioningRequestListAllRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.DemoProvisioningRequestListAllRequest").msgclass
|
91
|
+
DemoProvisioningRequestListAllResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.DemoProvisioningRequestListAllResponse").msgclass
|
92
|
+
DemoProvisioningRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.DemoProvisioningRequest").msgclass
|
93
|
+
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: demo_provisioning_requests.proto for package 'v1'
|
17
|
+
|
18
|
+
require "grpc"
|
19
|
+
require "demo_provisioning_requests_pb"
|
20
|
+
|
21
|
+
module V1
|
22
|
+
module DemoProvisioningRequests
|
23
|
+
# DemoProvisioningRequests coordinate provisioning of demo resources.
|
24
|
+
class Service
|
25
|
+
include GRPC::GenericService
|
26
|
+
|
27
|
+
self.marshal_class_method = :encode
|
28
|
+
self.unmarshal_class_method = :decode
|
29
|
+
self.service_name = "v1.DemoProvisioningRequests"
|
30
|
+
|
31
|
+
# Create
|
32
|
+
rpc :Create, DemoProvisioningRequestCreateRequest, DemoProvisioningRequestCreateResponse
|
33
|
+
# ListForOrganization gets a list of DemoProvisioningRequests in your organization
|
34
|
+
# matching a given set of criteria. This operation can be done by account
|
35
|
+
# administrators.
|
36
|
+
rpc :ListForOrganization, DemoProvisioningRequestListForOrganizationRequest, DemoProvisioningRequestListForOrganizationResponse
|
37
|
+
# Delete deletes a DemoProvisioningRequest.
|
38
|
+
rpc :Delete, DemoProvisioningRequestDeleteRequest, DemoProvisioningRequestDeleteResponse
|
39
|
+
# ListAll gets a list of DemoProvisioningRequests across all orgs matching a given
|
40
|
+
# set of criteria. This operation can only be done by operators and the
|
41
|
+
# trial provisioner.
|
42
|
+
rpc :ListAll, DemoProvisioningRequestListAllRequest, DemoProvisioningRequestListAllResponse
|
43
|
+
# Update updates a DemoProvisioningRequest.
|
44
|
+
rpc :Update, DemoProvisioningRequestUpdateRequest, DemoProvisioningRequestUpdateResponse
|
45
|
+
end
|
46
|
+
|
47
|
+
Stub = Service.rpc_stub_class
|
48
|
+
end
|
49
|
+
end
|
data/lib/grpc/drivers_pb.rb
CHANGED
@@ -24,6 +24,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
24
24
|
add_message "v1.Resource" do
|
25
25
|
oneof :resource do
|
26
26
|
optional :athena, :message, 100, "v1.Athena"
|
27
|
+
optional :aws, :message, 2300, "v1.AWS"
|
27
28
|
optional :big_query, :message, 200, "v1.BigQuery"
|
28
29
|
optional :cassandra, :message, 300, "v1.Cassandra"
|
29
30
|
optional :db_2_i, :message, 2400, "v1.DB2I"
|
@@ -85,6 +86,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
85
86
|
optional :port_override, :int32, 4
|
86
87
|
optional :region, :string, 5
|
87
88
|
end
|
89
|
+
add_message "v1.AWS" do
|
90
|
+
optional :id, :string, 32768
|
91
|
+
optional :name, :string, 32769
|
92
|
+
optional :healthy, :bool, 32770
|
93
|
+
optional :tags, :message, 32771, "v1.Tags"
|
94
|
+
optional :secret_store_id, :string, 32772
|
95
|
+
optional :access_key, :string, 1
|
96
|
+
optional :secret_access_key, :string, 2
|
97
|
+
optional :healthcheck_region, :string, 4
|
98
|
+
optional :role_arn, :string, 5
|
99
|
+
end
|
88
100
|
add_message "v1.BigQuery" do
|
89
101
|
optional :id, :string, 32768
|
90
102
|
optional :name, :string, 32769
|
@@ -700,6 +712,7 @@ end
|
|
700
712
|
module V1
|
701
713
|
Resource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Resource").msgclass
|
702
714
|
Athena = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Athena").msgclass
|
715
|
+
AWS = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AWS").msgclass
|
703
716
|
BigQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.BigQuery").msgclass
|
704
717
|
Cassandra = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Cassandra").msgclass
|
705
718
|
DB2I = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.DB2I").msgclass
|
data/lib/grpc/plumbing.rb
CHANGED
@@ -27,6 +27,7 @@ require_relative "./account_grants_pb"
|
|
27
27
|
require_relative "./accounts_pb"
|
28
28
|
require_relative "./audits_pb"
|
29
29
|
require_relative "./control_panel_pb"
|
30
|
+
require_relative "./demo_provisioning_requests_pb"
|
30
31
|
require_relative "./drivers_pb"
|
31
32
|
require_relative "./nodes_pb"
|
32
33
|
require_relative "./resources_pb"
|
@@ -34,6 +35,7 @@ require_relative "./role_attachments_pb"
|
|
34
35
|
require_relative "./role_grants_pb"
|
35
36
|
require_relative "./roles_pb"
|
36
37
|
require_relative "./secret_store_healths_pb"
|
38
|
+
require_relative "./secret_store_types_pb"
|
37
39
|
require_relative "./secret_stores_pb"
|
38
40
|
require_relative "../models/porcelain"
|
39
41
|
require_relative "../errors/errors"
|
@@ -891,6 +893,9 @@ module SDM
|
|
891
893
|
if porcelain.instance_of? Athena
|
892
894
|
plumbing.athena = convert_athena_to_plumbing(porcelain)
|
893
895
|
end
|
896
|
+
if porcelain.instance_of? AWS
|
897
|
+
plumbing.aws = convert_aws_to_plumbing(porcelain)
|
898
|
+
end
|
894
899
|
if porcelain.instance_of? BigQuery
|
895
900
|
plumbing.big_query = convert_big_query_to_plumbing(porcelain)
|
896
901
|
end
|
@@ -1042,6 +1047,9 @@ module SDM
|
|
1042
1047
|
if plumbing.athena != nil
|
1043
1048
|
return convert_athena_to_porcelain(plumbing.athena)
|
1044
1049
|
end
|
1050
|
+
if plumbing.aws != nil
|
1051
|
+
return convert_aws_to_porcelain(plumbing.aws)
|
1052
|
+
end
|
1045
1053
|
if plumbing.big_query != nil
|
1046
1054
|
return convert_big_query_to_porcelain(plumbing.big_query)
|
1047
1055
|
end
|
@@ -1253,6 +1261,56 @@ module SDM
|
|
1253
1261
|
end
|
1254
1262
|
items
|
1255
1263
|
end
|
1264
|
+
def self.convert_aws_to_porcelain(plumbing)
|
1265
|
+
if plumbing == nil
|
1266
|
+
return nil
|
1267
|
+
end
|
1268
|
+
porcelain = AWS.new()
|
1269
|
+
porcelain.id = (plumbing.id)
|
1270
|
+
porcelain.name = (plumbing.name)
|
1271
|
+
porcelain.healthy = (plumbing.healthy)
|
1272
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
1273
|
+
porcelain.secret_store_id = (plumbing.secret_store_id)
|
1274
|
+
porcelain.access_key = (plumbing.access_key)
|
1275
|
+
porcelain.secret_access_key = (plumbing.secret_access_key)
|
1276
|
+
porcelain.healthcheck_region = (plumbing.healthcheck_region)
|
1277
|
+
porcelain.role_arn = (plumbing.role_arn)
|
1278
|
+
porcelain
|
1279
|
+
end
|
1280
|
+
|
1281
|
+
def self.convert_aws_to_plumbing(porcelain)
|
1282
|
+
if porcelain == nil
|
1283
|
+
return nil
|
1284
|
+
end
|
1285
|
+
plumbing = V1::AWS.new()
|
1286
|
+
plumbing.id = (porcelain.id) unless porcelain.id == nil
|
1287
|
+
plumbing.name = (porcelain.name) unless porcelain.name == nil
|
1288
|
+
plumbing.healthy = (porcelain.healthy) unless porcelain.healthy == nil
|
1289
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
1290
|
+
plumbing.secret_store_id = (porcelain.secret_store_id) unless porcelain.secret_store_id == nil
|
1291
|
+
plumbing.access_key = (porcelain.access_key) unless porcelain.access_key == nil
|
1292
|
+
plumbing.secret_access_key = (porcelain.secret_access_key) unless porcelain.secret_access_key == nil
|
1293
|
+
plumbing.healthcheck_region = (porcelain.healthcheck_region) unless porcelain.healthcheck_region == nil
|
1294
|
+
plumbing.role_arn = (porcelain.role_arn) unless porcelain.role_arn == nil
|
1295
|
+
plumbing
|
1296
|
+
end
|
1297
|
+
def self.convert_repeated_aws_to_plumbing(porcelains)
|
1298
|
+
items = Array.new
|
1299
|
+
porcelains.each do |porcelain|
|
1300
|
+
plumbing = convert_aws_to_plumbing(porcelain)
|
1301
|
+
items.append(plumbing)
|
1302
|
+
end
|
1303
|
+
items
|
1304
|
+
end
|
1305
|
+
|
1306
|
+
def self.convert_repeated_aws_to_porcelain(plumbings)
|
1307
|
+
items = Array.new
|
1308
|
+
plumbings.each do |plumbing|
|
1309
|
+
porcelain = convert_aws_to_porcelain(plumbing)
|
1310
|
+
items.append(porcelain)
|
1311
|
+
end
|
1312
|
+
items
|
1313
|
+
end
|
1256
1314
|
def self.convert_big_query_to_porcelain(plumbing)
|
1257
1315
|
if plumbing == nil
|
1258
1316
|
return nil
|
@@ -4705,326 +4763,326 @@ module SDM
|
|
4705
4763
|
end
|
4706
4764
|
items
|
4707
4765
|
end
|
4708
|
-
def self.
|
4709
|
-
if
|
4766
|
+
def self.convert_secret_store_to_plumbing(porcelain)
|
4767
|
+
if porcelain == nil
|
4710
4768
|
return nil
|
4711
4769
|
end
|
4712
|
-
|
4713
|
-
porcelain.
|
4714
|
-
|
4715
|
-
|
4716
|
-
porcelain
|
4770
|
+
plumbing = V1::SecretStore.new()
|
4771
|
+
if porcelain.instance_of? AWSStore
|
4772
|
+
plumbing.aws = convert_aws_store_to_plumbing(porcelain)
|
4773
|
+
end
|
4774
|
+
if porcelain.instance_of? VaultTLSStore
|
4775
|
+
plumbing.vault_tls = convert_vault_tls_store_to_plumbing(porcelain)
|
4776
|
+
end
|
4777
|
+
if porcelain.instance_of? VaultTokenStore
|
4778
|
+
plumbing.vault_token = convert_vault_token_store_to_plumbing(porcelain)
|
4779
|
+
end
|
4780
|
+
plumbing
|
4717
4781
|
end
|
4718
4782
|
|
4719
|
-
def self.
|
4720
|
-
if
|
4783
|
+
def self.convert_secret_store_to_porcelain(plumbing)
|
4784
|
+
if plumbing == nil
|
4721
4785
|
return nil
|
4722
4786
|
end
|
4723
|
-
plumbing
|
4724
|
-
|
4725
|
-
|
4726
|
-
plumbing.
|
4727
|
-
|
4787
|
+
if plumbing.aws != nil
|
4788
|
+
return convert_aws_store_to_porcelain(plumbing.aws)
|
4789
|
+
end
|
4790
|
+
if plumbing.vault_tls != nil
|
4791
|
+
return convert_vault_tls_store_to_porcelain(plumbing.vault_tls)
|
4792
|
+
end
|
4793
|
+
if plumbing.vault_token != nil
|
4794
|
+
return convert_vault_token_store_to_porcelain(plumbing.vault_token)
|
4795
|
+
end
|
4728
4796
|
end
|
4729
|
-
def self.
|
4797
|
+
def self.convert_repeated_secret_store_to_plumbing(porcelains)
|
4730
4798
|
items = Array.new
|
4731
4799
|
porcelains.each do |porcelain|
|
4732
|
-
plumbing =
|
4800
|
+
plumbing = convert_secret_store_to_plumbing(porcelain)
|
4733
4801
|
items.append(plumbing)
|
4734
4802
|
end
|
4735
4803
|
items
|
4736
4804
|
end
|
4737
4805
|
|
4738
|
-
def self.
|
4806
|
+
def self.convert_repeated_secret_store_to_porcelain(plumbings)
|
4739
4807
|
items = Array.new
|
4740
4808
|
plumbings.each do |plumbing|
|
4741
|
-
porcelain =
|
4809
|
+
porcelain = convert_secret_store_to_porcelain(plumbing)
|
4742
4810
|
items.append(porcelain)
|
4743
4811
|
end
|
4744
4812
|
items
|
4745
4813
|
end
|
4746
|
-
def self.
|
4814
|
+
def self.convert_aws_store_to_porcelain(plumbing)
|
4747
4815
|
if plumbing == nil
|
4748
4816
|
return nil
|
4749
4817
|
end
|
4750
|
-
porcelain =
|
4751
|
-
porcelain.
|
4752
|
-
porcelain.
|
4753
|
-
porcelain.
|
4818
|
+
porcelain = AWSStore.new()
|
4819
|
+
porcelain.id = (plumbing.id)
|
4820
|
+
porcelain.name = (plumbing.name)
|
4821
|
+
porcelain.region = (plumbing.region)
|
4822
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
4754
4823
|
porcelain
|
4755
4824
|
end
|
4756
4825
|
|
4757
|
-
def self.
|
4826
|
+
def self.convert_aws_store_to_plumbing(porcelain)
|
4758
4827
|
if porcelain == nil
|
4759
4828
|
return nil
|
4760
4829
|
end
|
4761
|
-
plumbing = V1::
|
4762
|
-
plumbing.
|
4763
|
-
plumbing.
|
4764
|
-
plumbing.
|
4830
|
+
plumbing = V1::AWSStore.new()
|
4831
|
+
plumbing.id = (porcelain.id) unless porcelain.id == nil
|
4832
|
+
plumbing.name = (porcelain.name) unless porcelain.name == nil
|
4833
|
+
plumbing.region = (porcelain.region) unless porcelain.region == nil
|
4834
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
4765
4835
|
plumbing
|
4766
4836
|
end
|
4767
|
-
def self.
|
4837
|
+
def self.convert_repeated_aws_store_to_plumbing(porcelains)
|
4768
4838
|
items = Array.new
|
4769
4839
|
porcelains.each do |porcelain|
|
4770
|
-
plumbing =
|
4840
|
+
plumbing = convert_aws_store_to_plumbing(porcelain)
|
4771
4841
|
items.append(plumbing)
|
4772
4842
|
end
|
4773
4843
|
items
|
4774
4844
|
end
|
4775
4845
|
|
4776
|
-
def self.
|
4846
|
+
def self.convert_repeated_aws_store_to_porcelain(plumbings)
|
4777
4847
|
items = Array.new
|
4778
4848
|
plumbings.each do |plumbing|
|
4779
|
-
porcelain =
|
4849
|
+
porcelain = convert_aws_store_to_porcelain(plumbing)
|
4780
4850
|
items.append(porcelain)
|
4781
4851
|
end
|
4782
4852
|
items
|
4783
4853
|
end
|
4784
|
-
def self.
|
4854
|
+
def self.convert_vault_tls_store_to_porcelain(plumbing)
|
4785
4855
|
if plumbing == nil
|
4786
4856
|
return nil
|
4787
4857
|
end
|
4788
|
-
porcelain =
|
4789
|
-
porcelain.
|
4790
|
-
porcelain.
|
4791
|
-
porcelain.
|
4858
|
+
porcelain = VaultTLSStore.new()
|
4859
|
+
porcelain.id = (plumbing.id)
|
4860
|
+
porcelain.name = (plumbing.name)
|
4861
|
+
porcelain.server_address = (plumbing.server_address)
|
4862
|
+
porcelain.ca_cert_path = (plumbing.CA_cert_path)
|
4863
|
+
porcelain.client_cert_path = (plumbing.client_cert_path)
|
4864
|
+
porcelain.client_key_path = (plumbing.client_key_path)
|
4865
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
4792
4866
|
porcelain
|
4793
4867
|
end
|
4794
4868
|
|
4795
|
-
def self.
|
4869
|
+
def self.convert_vault_tls_store_to_plumbing(porcelain)
|
4796
4870
|
if porcelain == nil
|
4797
4871
|
return nil
|
4798
4872
|
end
|
4799
|
-
plumbing = V1::
|
4800
|
-
plumbing.
|
4801
|
-
plumbing.
|
4802
|
-
plumbing.
|
4873
|
+
plumbing = V1::VaultTLSStore.new()
|
4874
|
+
plumbing.id = (porcelain.id) unless porcelain.id == nil
|
4875
|
+
plumbing.name = (porcelain.name) unless porcelain.name == nil
|
4876
|
+
plumbing.server_address = (porcelain.server_address) unless porcelain.server_address == nil
|
4877
|
+
plumbing.CA_cert_path = (porcelain.ca_cert_path) unless porcelain.ca_cert_path == nil
|
4878
|
+
plumbing.client_cert_path = (porcelain.client_cert_path) unless porcelain.client_cert_path == nil
|
4879
|
+
plumbing.client_key_path = (porcelain.client_key_path) unless porcelain.client_key_path == nil
|
4880
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
4803
4881
|
plumbing
|
4804
4882
|
end
|
4805
|
-
def self.
|
4883
|
+
def self.convert_repeated_vault_tls_store_to_plumbing(porcelains)
|
4806
4884
|
items = Array.new
|
4807
4885
|
porcelains.each do |porcelain|
|
4808
|
-
plumbing =
|
4886
|
+
plumbing = convert_vault_tls_store_to_plumbing(porcelain)
|
4809
4887
|
items.append(plumbing)
|
4810
4888
|
end
|
4811
4889
|
items
|
4812
4890
|
end
|
4813
4891
|
|
4814
|
-
def self.
|
4892
|
+
def self.convert_repeated_vault_tls_store_to_porcelain(plumbings)
|
4815
4893
|
items = Array.new
|
4816
4894
|
plumbings.each do |plumbing|
|
4817
|
-
porcelain =
|
4895
|
+
porcelain = convert_vault_tls_store_to_porcelain(plumbing)
|
4818
4896
|
items.append(porcelain)
|
4819
4897
|
end
|
4820
4898
|
items
|
4821
4899
|
end
|
4822
|
-
def self.
|
4900
|
+
def self.convert_vault_token_store_to_porcelain(plumbing)
|
4823
4901
|
if plumbing == nil
|
4824
4902
|
return nil
|
4825
4903
|
end
|
4826
|
-
porcelain =
|
4827
|
-
porcelain.
|
4828
|
-
porcelain.
|
4904
|
+
porcelain = VaultTokenStore.new()
|
4905
|
+
porcelain.id = (plumbing.id)
|
4906
|
+
porcelain.name = (plumbing.name)
|
4907
|
+
porcelain.server_address = (plumbing.server_address)
|
4908
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
4829
4909
|
porcelain
|
4830
4910
|
end
|
4831
4911
|
|
4832
|
-
def self.
|
4912
|
+
def self.convert_vault_token_store_to_plumbing(porcelain)
|
4833
4913
|
if porcelain == nil
|
4834
4914
|
return nil
|
4835
4915
|
end
|
4836
|
-
plumbing = V1::
|
4837
|
-
plumbing.
|
4838
|
-
plumbing.
|
4916
|
+
plumbing = V1::VaultTokenStore.new()
|
4917
|
+
plumbing.id = (porcelain.id) unless porcelain.id == nil
|
4918
|
+
plumbing.name = (porcelain.name) unless porcelain.name == nil
|
4919
|
+
plumbing.server_address = (porcelain.server_address) unless porcelain.server_address == nil
|
4920
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
4839
4921
|
plumbing
|
4840
4922
|
end
|
4841
|
-
def self.
|
4923
|
+
def self.convert_repeated_vault_token_store_to_plumbing(porcelains)
|
4842
4924
|
items = Array.new
|
4843
4925
|
porcelains.each do |porcelain|
|
4844
|
-
plumbing =
|
4926
|
+
plumbing = convert_vault_token_store_to_plumbing(porcelain)
|
4845
4927
|
items.append(plumbing)
|
4846
4928
|
end
|
4847
4929
|
items
|
4848
4930
|
end
|
4849
4931
|
|
4850
|
-
def self.
|
4932
|
+
def self.convert_repeated_vault_token_store_to_porcelain(plumbings)
|
4851
4933
|
items = Array.new
|
4852
4934
|
plumbings.each do |plumbing|
|
4853
|
-
porcelain =
|
4935
|
+
porcelain = convert_vault_token_store_to_porcelain(plumbing)
|
4854
4936
|
items.append(porcelain)
|
4855
4937
|
end
|
4856
4938
|
items
|
4857
4939
|
end
|
4858
|
-
def self.
|
4859
|
-
if
|
4940
|
+
def self.convert_secret_store_create_response_to_porcelain(plumbing)
|
4941
|
+
if plumbing == nil
|
4860
4942
|
return nil
|
4861
4943
|
end
|
4862
|
-
|
4863
|
-
|
4864
|
-
|
4865
|
-
|
4866
|
-
|
4867
|
-
plumbing.vault_token = convert_vault_token_store_to_plumbing(porcelain)
|
4868
|
-
end
|
4869
|
-
if porcelain.instance_of? AWSStore
|
4870
|
-
plumbing.aws = convert_aws_store_to_plumbing(porcelain)
|
4871
|
-
end
|
4872
|
-
plumbing
|
4944
|
+
porcelain = SecretStoreCreateResponse.new()
|
4945
|
+
porcelain.meta = convert_create_response_metadata_to_porcelain(plumbing.meta)
|
4946
|
+
porcelain.secret_store = convert_secret_store_to_porcelain(plumbing.secret_store)
|
4947
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
4948
|
+
porcelain
|
4873
4949
|
end
|
4874
4950
|
|
4875
|
-
def self.
|
4876
|
-
if
|
4951
|
+
def self.convert_secret_store_create_response_to_plumbing(porcelain)
|
4952
|
+
if porcelain == nil
|
4877
4953
|
return nil
|
4878
4954
|
end
|
4879
|
-
|
4880
|
-
|
4881
|
-
|
4882
|
-
|
4883
|
-
|
4884
|
-
end
|
4885
|
-
if plumbing.aws != nil
|
4886
|
-
return convert_aws_store_to_porcelain(plumbing.aws)
|
4887
|
-
end
|
4955
|
+
plumbing = V1::SecretStoreCreateResponse.new()
|
4956
|
+
plumbing.meta = convert_create_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
4957
|
+
plumbing.secret_store = convert_secret_store_to_plumbing(porcelain.secret_store) unless porcelain.secret_store == nil
|
4958
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
4959
|
+
plumbing
|
4888
4960
|
end
|
4889
|
-
def self.
|
4961
|
+
def self.convert_repeated_secret_store_create_response_to_plumbing(porcelains)
|
4890
4962
|
items = Array.new
|
4891
4963
|
porcelains.each do |porcelain|
|
4892
|
-
plumbing =
|
4964
|
+
plumbing = convert_secret_store_create_response_to_plumbing(porcelain)
|
4893
4965
|
items.append(plumbing)
|
4894
4966
|
end
|
4895
4967
|
items
|
4896
4968
|
end
|
4897
4969
|
|
4898
|
-
def self.
|
4970
|
+
def self.convert_repeated_secret_store_create_response_to_porcelain(plumbings)
|
4899
4971
|
items = Array.new
|
4900
4972
|
plumbings.each do |plumbing|
|
4901
|
-
porcelain =
|
4973
|
+
porcelain = convert_secret_store_create_response_to_porcelain(plumbing)
|
4902
4974
|
items.append(porcelain)
|
4903
4975
|
end
|
4904
4976
|
items
|
4905
4977
|
end
|
4906
|
-
def self.
|
4978
|
+
def self.convert_secret_store_get_response_to_porcelain(plumbing)
|
4907
4979
|
if plumbing == nil
|
4908
4980
|
return nil
|
4909
4981
|
end
|
4910
|
-
porcelain =
|
4911
|
-
porcelain.
|
4912
|
-
porcelain.
|
4913
|
-
porcelain.
|
4914
|
-
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
4982
|
+
porcelain = SecretStoreGetResponse.new()
|
4983
|
+
porcelain.meta = convert_get_response_metadata_to_porcelain(plumbing.meta)
|
4984
|
+
porcelain.secret_store = convert_secret_store_to_porcelain(plumbing.secret_store)
|
4985
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
4915
4986
|
porcelain
|
4916
4987
|
end
|
4917
4988
|
|
4918
|
-
def self.
|
4989
|
+
def self.convert_secret_store_get_response_to_plumbing(porcelain)
|
4919
4990
|
if porcelain == nil
|
4920
4991
|
return nil
|
4921
4992
|
end
|
4922
|
-
plumbing = V1::
|
4923
|
-
plumbing.
|
4924
|
-
plumbing.
|
4925
|
-
plumbing.
|
4926
|
-
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
4993
|
+
plumbing = V1::SecretStoreGetResponse.new()
|
4994
|
+
plumbing.meta = convert_get_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
4995
|
+
plumbing.secret_store = convert_secret_store_to_plumbing(porcelain.secret_store) unless porcelain.secret_store == nil
|
4996
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
4927
4997
|
plumbing
|
4928
4998
|
end
|
4929
|
-
def self.
|
4999
|
+
def self.convert_repeated_secret_store_get_response_to_plumbing(porcelains)
|
4930
5000
|
items = Array.new
|
4931
5001
|
porcelains.each do |porcelain|
|
4932
|
-
plumbing =
|
5002
|
+
plumbing = convert_secret_store_get_response_to_plumbing(porcelain)
|
4933
5003
|
items.append(plumbing)
|
4934
5004
|
end
|
4935
5005
|
items
|
4936
5006
|
end
|
4937
5007
|
|
4938
|
-
def self.
|
5008
|
+
def self.convert_repeated_secret_store_get_response_to_porcelain(plumbings)
|
4939
5009
|
items = Array.new
|
4940
5010
|
plumbings.each do |plumbing|
|
4941
|
-
porcelain =
|
5011
|
+
porcelain = convert_secret_store_get_response_to_porcelain(plumbing)
|
4942
5012
|
items.append(porcelain)
|
4943
5013
|
end
|
4944
5014
|
items
|
4945
5015
|
end
|
4946
|
-
def self.
|
5016
|
+
def self.convert_secret_store_update_response_to_porcelain(plumbing)
|
4947
5017
|
if plumbing == nil
|
4948
5018
|
return nil
|
4949
5019
|
end
|
4950
|
-
porcelain =
|
4951
|
-
porcelain.
|
4952
|
-
porcelain.
|
4953
|
-
porcelain.
|
4954
|
-
porcelain.ca_cert_path = (plumbing.CA_cert_path)
|
4955
|
-
porcelain.client_cert_path = (plumbing.client_cert_path)
|
4956
|
-
porcelain.client_key_path = (plumbing.client_key_path)
|
4957
|
-
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
5020
|
+
porcelain = SecretStoreUpdateResponse.new()
|
5021
|
+
porcelain.meta = convert_update_response_metadata_to_porcelain(plumbing.meta)
|
5022
|
+
porcelain.secret_store = convert_secret_store_to_porcelain(plumbing.secret_store)
|
5023
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
4958
5024
|
porcelain
|
4959
5025
|
end
|
4960
5026
|
|
4961
|
-
def self.
|
5027
|
+
def self.convert_secret_store_update_response_to_plumbing(porcelain)
|
4962
5028
|
if porcelain == nil
|
4963
5029
|
return nil
|
4964
5030
|
end
|
4965
|
-
plumbing = V1::
|
4966
|
-
plumbing.
|
4967
|
-
plumbing.
|
4968
|
-
plumbing.
|
4969
|
-
plumbing.CA_cert_path = (porcelain.ca_cert_path) unless porcelain.ca_cert_path == nil
|
4970
|
-
plumbing.client_cert_path = (porcelain.client_cert_path) unless porcelain.client_cert_path == nil
|
4971
|
-
plumbing.client_key_path = (porcelain.client_key_path) unless porcelain.client_key_path == nil
|
4972
|
-
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
5031
|
+
plumbing = V1::SecretStoreUpdateResponse.new()
|
5032
|
+
plumbing.meta = convert_update_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
5033
|
+
plumbing.secret_store = convert_secret_store_to_plumbing(porcelain.secret_store) unless porcelain.secret_store == nil
|
5034
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
4973
5035
|
plumbing
|
4974
5036
|
end
|
4975
|
-
def self.
|
5037
|
+
def self.convert_repeated_secret_store_update_response_to_plumbing(porcelains)
|
4976
5038
|
items = Array.new
|
4977
5039
|
porcelains.each do |porcelain|
|
4978
|
-
plumbing =
|
5040
|
+
plumbing = convert_secret_store_update_response_to_plumbing(porcelain)
|
4979
5041
|
items.append(plumbing)
|
4980
5042
|
end
|
4981
5043
|
items
|
4982
5044
|
end
|
4983
5045
|
|
4984
|
-
def self.
|
5046
|
+
def self.convert_repeated_secret_store_update_response_to_porcelain(plumbings)
|
4985
5047
|
items = Array.new
|
4986
5048
|
plumbings.each do |plumbing|
|
4987
|
-
porcelain =
|
5049
|
+
porcelain = convert_secret_store_update_response_to_porcelain(plumbing)
|
4988
5050
|
items.append(porcelain)
|
4989
5051
|
end
|
4990
5052
|
items
|
4991
5053
|
end
|
4992
|
-
def self.
|
5054
|
+
def self.convert_secret_store_delete_response_to_porcelain(plumbing)
|
4993
5055
|
if plumbing == nil
|
4994
5056
|
return nil
|
4995
5057
|
end
|
4996
|
-
porcelain =
|
4997
|
-
porcelain.
|
4998
|
-
porcelain.
|
4999
|
-
porcelain.region = (plumbing.region)
|
5000
|
-
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
5058
|
+
porcelain = SecretStoreDeleteResponse.new()
|
5059
|
+
porcelain.meta = convert_delete_response_metadata_to_porcelain(plumbing.meta)
|
5060
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
5001
5061
|
porcelain
|
5002
5062
|
end
|
5003
5063
|
|
5004
|
-
def self.
|
5064
|
+
def self.convert_secret_store_delete_response_to_plumbing(porcelain)
|
5005
5065
|
if porcelain == nil
|
5006
5066
|
return nil
|
5007
5067
|
end
|
5008
|
-
plumbing = V1::
|
5009
|
-
plumbing.
|
5010
|
-
plumbing.
|
5011
|
-
plumbing.region = (porcelain.region) unless porcelain.region == nil
|
5012
|
-
plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
|
5068
|
+
plumbing = V1::SecretStoreDeleteResponse.new()
|
5069
|
+
plumbing.meta = convert_delete_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
5070
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
5013
5071
|
plumbing
|
5014
5072
|
end
|
5015
|
-
def self.
|
5073
|
+
def self.convert_repeated_secret_store_delete_response_to_plumbing(porcelains)
|
5016
5074
|
items = Array.new
|
5017
5075
|
porcelains.each do |porcelain|
|
5018
|
-
plumbing =
|
5076
|
+
plumbing = convert_secret_store_delete_response_to_plumbing(porcelain)
|
5019
5077
|
items.append(plumbing)
|
5020
5078
|
end
|
5021
5079
|
items
|
5022
5080
|
end
|
5023
5081
|
|
5024
|
-
def self.
|
5082
|
+
def self.convert_repeated_secret_store_delete_response_to_porcelain(plumbings)
|
5025
5083
|
items = Array.new
|
5026
5084
|
plumbings.each do |plumbing|
|
5027
|
-
porcelain =
|
5085
|
+
porcelain = convert_secret_store_delete_response_to_porcelain(plumbing)
|
5028
5086
|
items.append(porcelain)
|
5029
5087
|
end
|
5030
5088
|
items
|