strongdm 1.0.31 → 1.0.32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. checksums.yaml +4 -4
  2. data/.git/FETCH_HEAD +2 -2
  3. data/.git/ORIG_HEAD +1 -1
  4. data/.git/index +0 -0
  5. data/.git/logs/HEAD +4 -4
  6. data/.git/logs/refs/heads/development +1 -1
  7. data/.git/logs/refs/heads/master +2 -2
  8. data/.git/logs/refs/remotes/origin/HEAD +1 -1
  9. data/.git/objects/pack/pack-760024d2d3e635c44bfe6b54af80a8b21674032d.idx +0 -0
  10. data/.git/objects/pack/{pack-156dc2dc5f58228a26c86e1e423b177043b93423.pack → pack-760024d2d3e635c44bfe6b54af80a8b21674032d.pack} +0 -0
  11. data/.git/packed-refs +3 -2
  12. data/.git/refs/heads/development +1 -1
  13. data/.git/refs/heads/master +1 -1
  14. data/doc/SDM/Azure.html +307 -0
  15. data/doc/SDM/AzureCertificate.html +307 -0
  16. data/doc/SDM/AzurePostgres.html +2 -2
  17. data/doc/SDM/BigQuery.html +2 -2
  18. data/doc/SDM/Cassandra.html +2 -2
  19. data/doc/SDM/Citus.html +2 -2
  20. data/doc/SDM/Clustrix.html +2 -2
  21. data/doc/SDM/Cockroach.html +2 -2
  22. data/doc/SDM/ControlPanelGetSSHCAPublicKeyResponse.html +2 -2
  23. data/doc/SDM/ControlPanelVerifyJWTResponse.html +2 -2
  24. data/doc/SDM/CreateResponseMetadata.html +2 -2
  25. data/doc/SDM/DB2LUW.html +2 -2
  26. data/doc/SDM/DB2i.html +2 -2
  27. data/doc/SDM/DeleteResponseMetadata.html +2 -2
  28. data/doc/SDM/DocumentDBHost.html +2 -2
  29. data/doc/SDM/DocumentDBReplicaSet.html +2 -2
  30. data/doc/SDM/Druid.html +2 -2
  31. data/doc/SDM/DynamoDB.html +2 -2
  32. data/doc/SDM/Elastic.html +2 -2
  33. data/doc/SDM/ElasticacheRedis.html +2 -2
  34. data/doc/SDM/GCP.html +292 -0
  35. data/doc/SDM/Gateway.html +2 -2
  36. data/doc/SDM/GetResponseMetadata.html +2 -2
  37. data/doc/SDM/GoogleGKE.html +2 -2
  38. data/doc/SDM/GoogleGKEUserImpersonation.html +2 -2
  39. data/doc/SDM/Greenplum.html +2 -2
  40. data/doc/SDM/HTTPAuth.html +2 -2
  41. data/doc/SDM/HTTPBasicAuth.html +2 -2
  42. data/doc/SDM/HTTPNoAuth.html +2 -2
  43. data/doc/SDM/Kubernetes.html +2 -2
  44. data/doc/SDM/KubernetesBasicAuth.html +2 -2
  45. data/doc/SDM/KubernetesServiceAccount.html +2 -2
  46. data/doc/SDM/KubernetesServiceAccountUserImpersonation.html +2 -2
  47. data/doc/SDM/KubernetesUserImpersonation.html +2 -2
  48. data/doc/SDM/Maria.html +2 -2
  49. data/doc/SDM/Memcached.html +2 -2
  50. data/doc/SDM/Memsql.html +2 -2
  51. data/doc/SDM/MongoHost.html +2 -2
  52. data/doc/SDM/MongoLegacyHost.html +2 -2
  53. data/doc/SDM/MongoLegacyReplicaset.html +2 -2
  54. data/doc/SDM/MongoReplicaSet.html +2 -2
  55. data/doc/SDM/Mysql.html +2 -2
  56. data/doc/SDM/Neptune.html +2 -2
  57. data/doc/SDM/NeptuneIAM.html +2 -2
  58. data/doc/SDM/NodeCreateResponse.html +2 -2
  59. data/doc/SDM/NodeDeleteResponse.html +2 -2
  60. data/doc/SDM/NodeGetResponse.html +2 -2
  61. data/doc/SDM/NodeUpdateResponse.html +2 -2
  62. data/doc/SDM/Oracle.html +2 -2
  63. data/doc/SDM/Plumbing.html +765 -377
  64. data/doc/SDM/Postgres.html +2 -2
  65. data/doc/SDM/Presto.html +2 -2
  66. data/doc/SDM/RDP.html +2 -2
  67. data/doc/SDM/RabbitMQAMQP091.html +2 -2
  68. data/doc/SDM/RateLimitMetadata.html +2 -2
  69. data/doc/SDM/RawTCP.html +2 -2
  70. data/doc/SDM/Redis.html +2 -2
  71. data/doc/SDM/Redshift.html +2 -2
  72. data/doc/SDM/Relay.html +2 -2
  73. data/doc/SDM/ResourceCreateResponse.html +2 -2
  74. data/doc/SDM/ResourceDeleteResponse.html +2 -2
  75. data/doc/SDM/ResourceGetResponse.html +2 -2
  76. data/doc/SDM/ResourceUpdateResponse.html +2 -2
  77. data/doc/SDM/Role.html +2 -2
  78. data/doc/SDM/RoleAttachment.html +2 -2
  79. data/doc/SDM/RoleAttachmentCreateResponse.html +2 -2
  80. data/doc/SDM/RoleAttachmentDeleteResponse.html +2 -2
  81. data/doc/SDM/RoleAttachmentGetResponse.html +2 -2
  82. data/doc/SDM/RoleCreateResponse.html +2 -2
  83. data/doc/SDM/RoleDeleteResponse.html +2 -2
  84. data/doc/SDM/RoleGetResponse.html +2 -2
  85. data/doc/SDM/RoleGrant.html +2 -2
  86. data/doc/SDM/RoleGrantCreateResponse.html +2 -2
  87. data/doc/SDM/RoleGrantDeleteResponse.html +2 -2
  88. data/doc/SDM/RoleGrantGetResponse.html +2 -2
  89. data/doc/SDM/RoleUpdateResponse.html +2 -2
  90. data/doc/SDM/SQLServer.html +2 -2
  91. data/doc/SDM/SSH.html +2 -2
  92. data/doc/SDM/SSHCert.html +2 -2
  93. data/doc/SDM/SSHCustomerKey.html +2 -2
  94. data/doc/SDM/SecretStoreCreateResponse.html +2 -2
  95. data/doc/SDM/SecretStoreDeleteResponse.html +2 -2
  96. data/doc/SDM/SecretStoreGetResponse.html +2 -2
  97. data/doc/SDM/SecretStoreUpdateResponse.html +2 -2
  98. data/doc/SDM/Service.html +2 -2
  99. data/doc/SDM/SingleStore.html +2 -2
  100. data/doc/SDM/Snowflake.html +2 -2
  101. data/doc/SDM/Sybase.html +2 -2
  102. data/doc/SDM/SybaseIQ.html +2 -2
  103. data/doc/SDM/Tag.html +2 -2
  104. data/doc/SDM/Teradata.html +2 -2
  105. data/doc/SDM/UpdateResponseMetadata.html +2 -2
  106. data/doc/SDM/User.html +2 -2
  107. data/doc/SDM/VaultTLSStore.html +2 -2
  108. data/doc/SDM/VaultTokenStore.html +2 -2
  109. data/doc/V1/AccountAttachments/Service.html +1 -1
  110. data/doc/V1/AccountGrants/Service.html +1 -1
  111. data/doc/V1/Accounts/Service.html +1 -1
  112. data/doc/V1/ControlPanel/Service.html +1 -1
  113. data/doc/V1/Nodes/Service.html +1 -1
  114. data/doc/V1/Resources/Service.html +1 -1
  115. data/doc/V1/RoleAttachments/Service.html +1 -1
  116. data/doc/V1/RoleGrants/Service.html +1 -1
  117. data/doc/V1/Roles/Service.html +1 -1
  118. data/doc/V1/SecretStores/Service.html +1 -1
  119. data/doc/V1.html +6 -0
  120. data/doc/created.rid +37 -37
  121. data/doc/index.html +3 -0
  122. data/doc/js/navigation.js.gz +0 -0
  123. data/doc/js/search_index.js +1 -1
  124. data/doc/js/search_index.js.gz +0 -0
  125. data/doc/js/searcher.js.gz +0 -0
  126. data/doc/lib/version.html +1 -1
  127. data/doc/table_of_contents.html +643 -544
  128. data/lib/grpc/account_attachments_services_pb.rb +5 -5
  129. data/lib/grpc/account_grants_services_pb.rb +5 -5
  130. data/lib/grpc/accounts_services_pb.rb +6 -6
  131. data/lib/grpc/control_panel_services_pb.rb +3 -3
  132. data/lib/grpc/drivers_pb.rb +38 -0
  133. data/lib/grpc/nodes_services_pb.rb +6 -6
  134. data/lib/grpc/plumbing.rb +166 -0
  135. data/lib/grpc/resources_services_pb.rb +7 -7
  136. data/lib/grpc/role_attachments_services_pb.rb +5 -5
  137. data/lib/grpc/role_grants_services_pb.rb +5 -5
  138. data/lib/grpc/roles_services_pb.rb +6 -6
  139. data/lib/grpc/secret_stores_services_pb.rb +6 -6
  140. data/lib/models/porcelain.rb +199 -0
  141. data/lib/strongdm.rb +1 -1
  142. data/lib/version +1 -1
  143. data/lib/version.rb +1 -1
  144. metadata +7 -4
  145. data/.git/objects/pack/pack-156dc2dc5f58228a26c86e1e423b177043b93423.idx +0 -0
@@ -22,20 +22,20 @@ module V1
22
22
  module AccountAttachments
23
23
  # AccountAttachments assign an account to a role or composite role.
24
24
  class Service
25
- include GRPC::GenericService
25
+ include ::GRPC::GenericService
26
26
 
27
27
  self.marshal_class_method = :encode
28
28
  self.unmarshal_class_method = :decode
29
29
  self.service_name = "v1.AccountAttachments"
30
30
 
31
31
  # Create registers a new AccountAttachment.
32
- rpc :Create, AccountAttachmentCreateRequest, AccountAttachmentCreateResponse
32
+ rpc :Create, ::V1::AccountAttachmentCreateRequest, ::V1::AccountAttachmentCreateResponse
33
33
  # Get reads one AccountAttachment by ID.
34
- rpc :Get, AccountAttachmentGetRequest, AccountAttachmentGetResponse
34
+ rpc :Get, ::V1::AccountAttachmentGetRequest, ::V1::AccountAttachmentGetResponse
35
35
  # Delete removes a AccountAttachment by ID.
36
- rpc :Delete, AccountAttachmentDeleteRequest, AccountAttachmentDeleteResponse
36
+ rpc :Delete, ::V1::AccountAttachmentDeleteRequest, ::V1::AccountAttachmentDeleteResponse
37
37
  # List gets a list of AccountAttachments matching a given set of criteria.
38
- rpc :List, AccountAttachmentListRequest, AccountAttachmentListResponse
38
+ rpc :List, ::V1::AccountAttachmentListRequest, ::V1::AccountAttachmentListResponse
39
39
  end
40
40
 
41
41
  Stub = Service.rpc_stub_class
@@ -22,20 +22,20 @@ module V1
22
22
  module AccountGrants
23
23
  # AccountGrants assign a resource directly to an account, giving the account the permission to connect to that resource.
24
24
  class Service
25
- include GRPC::GenericService
25
+ include ::GRPC::GenericService
26
26
 
27
27
  self.marshal_class_method = :encode
28
28
  self.unmarshal_class_method = :decode
29
29
  self.service_name = "v1.AccountGrants"
30
30
 
31
31
  # Create registers a new AccountGrant.
32
- rpc :Create, AccountGrantCreateRequest, AccountGrantCreateResponse
32
+ rpc :Create, ::V1::AccountGrantCreateRequest, ::V1::AccountGrantCreateResponse
33
33
  # Get reads one AccountGrant by ID.
34
- rpc :Get, AccountGrantGetRequest, AccountGrantGetResponse
34
+ rpc :Get, ::V1::AccountGrantGetRequest, ::V1::AccountGrantGetResponse
35
35
  # Delete removes a AccountGrant by ID.
36
- rpc :Delete, AccountGrantDeleteRequest, AccountGrantDeleteResponse
36
+ rpc :Delete, ::V1::AccountGrantDeleteRequest, ::V1::AccountGrantDeleteResponse
37
37
  # List gets a list of AccountGrants matching a given set of criteria.
38
- rpc :List, AccountGrantListRequest, AccountGrantListResponse
38
+ rpc :List, ::V1::AccountGrantListRequest, ::V1::AccountGrantListResponse
39
39
  end
40
40
 
41
41
  Stub = Service.rpc_stub_class
@@ -24,22 +24,22 @@ module V1
24
24
  # 1. **Users:** humans who are authenticated through username and password or SSO.
25
25
  # 2. **Service Accounts:** machines that are authenticated using a service token.
26
26
  class Service
27
- include GRPC::GenericService
27
+ include ::GRPC::GenericService
28
28
 
29
29
  self.marshal_class_method = :encode
30
30
  self.unmarshal_class_method = :decode
31
31
  self.service_name = "v1.Accounts"
32
32
 
33
33
  # Create registers a new Account.
34
- rpc :Create, AccountCreateRequest, AccountCreateResponse
34
+ rpc :Create, ::V1::AccountCreateRequest, ::V1::AccountCreateResponse
35
35
  # Get reads one Account by ID.
36
- rpc :Get, AccountGetRequest, AccountGetResponse
36
+ rpc :Get, ::V1::AccountGetRequest, ::V1::AccountGetResponse
37
37
  # Update patches a Account by ID.
38
- rpc :Update, AccountUpdateRequest, AccountUpdateResponse
38
+ rpc :Update, ::V1::AccountUpdateRequest, ::V1::AccountUpdateResponse
39
39
  # Delete removes a Account by ID.
40
- rpc :Delete, AccountDeleteRequest, AccountDeleteResponse
40
+ rpc :Delete, ::V1::AccountDeleteRequest, ::V1::AccountDeleteResponse
41
41
  # List gets a list of Accounts matching a given set of criteria.
42
- rpc :List, AccountListRequest, AccountListResponse
42
+ rpc :List, ::V1::AccountListRequest, ::V1::AccountListResponse
43
43
  end
44
44
 
45
45
  Stub = Service.rpc_stub_class
@@ -22,16 +22,16 @@ module V1
22
22
  module ControlPanel
23
23
  # ControlPanel contains all administrative controls.
24
24
  class Service
25
- include GRPC::GenericService
25
+ include ::GRPC::GenericService
26
26
 
27
27
  self.marshal_class_method = :encode
28
28
  self.unmarshal_class_method = :decode
29
29
  self.service_name = "v1.ControlPanel"
30
30
 
31
31
  # GetSSHCAPublicKey retrieves the SSH CA public key.
32
- rpc :GetSSHCAPublicKey, ControlPanelGetSSHCAPublicKeyRequest, ControlPanelGetSSHCAPublicKeyResponse
32
+ rpc :GetSSHCAPublicKey, ::V1::ControlPanelGetSSHCAPublicKeyRequest, ::V1::ControlPanelGetSSHCAPublicKeyResponse
33
33
  # VerifyJWT reports whether the given JWT token (x-sdm-token) is valid.
34
- rpc :VerifyJWT, ControlPanelVerifyJWTRequest, ControlPanelVerifyJWTResponse
34
+ rpc :VerifyJWT, ::V1::ControlPanelVerifyJWTRequest, ::V1::ControlPanelVerifyJWTResponse
35
35
  end
36
36
 
37
37
  Stub = Service.rpc_stub_class
@@ -36,6 +36,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
36
36
  optional :athena, :message, 100, "v1.Athena"
37
37
  optional :aurora_mysql, :message, 1101, "v1.AuroraMysql"
38
38
  optional :aurora_postgres, :message, 1301, "v1.AuroraPostgres"
39
+ optional :azure, :message, 2800, "v1.Azure"
40
+ optional :azure_certificate, :message, 2801, "v1.AzureCertificate"
39
41
  optional :azure_postgres, :message, 1307, "v1.AzurePostgres"
40
42
  optional :big_query, :message, 200, "v1.BigQuery"
41
43
  optional :cassandra, :message, 300, "v1.Cassandra"
@@ -50,6 +52,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
50
52
  optional :dynamo_db, :message, 500, "v1.DynamoDB"
51
53
  optional :elastic, :message, 601, "v1.Elastic"
52
54
  optional :elasticache_redis, :message, 1601, "v1.ElasticacheRedis"
55
+ optional :gcp, :message, 2700, "v1.GCP"
53
56
  optional :google_gke, :message, 803, "v1.GoogleGKE"
54
57
  optional :google_gke_user_impersonation, :message, 816, "v1.GoogleGKEUserImpersonation"
55
58
  optional :greenplum, :message, 1302, "v1.Greenplum"
@@ -275,6 +278,28 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
275
278
  optional :port_override, :int32, 5
276
279
  optional :username, :string, 2
277
280
  end
281
+ add_message "v1.Azure" do
282
+ optional :id, :string, 32768
283
+ optional :name, :string, 32769
284
+ optional :healthy, :bool, 32770
285
+ optional :tags, :message, 32771, "v1.Tags"
286
+ optional :secret_store_id, :string, 32772
287
+ optional :egress_filter, :string, 32773
288
+ optional :app_id, :string, 1
289
+ optional :password, :string, 3
290
+ optional :tenant_id, :string, 2
291
+ end
292
+ add_message "v1.AzureCertificate" do
293
+ optional :id, :string, 32768
294
+ optional :name, :string, 32769
295
+ optional :healthy, :bool, 32770
296
+ optional :tags, :message, 32771, "v1.Tags"
297
+ optional :secret_store_id, :string, 32772
298
+ optional :egress_filter, :string, 32773
299
+ optional :app_id, :string, 1
300
+ optional :client_certificate, :string, 3
301
+ optional :tenant_id, :string, 2
302
+ end
278
303
  add_message "v1.AzurePostgres" do
279
304
  optional :id, :string, 32768
280
305
  optional :name, :string, 32769
@@ -473,6 +498,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
473
498
  optional :port_override, :int32, 2
474
499
  optional :tls_required, :bool, 5
475
500
  end
501
+ add_message "v1.GCP" do
502
+ optional :id, :string, 32768
503
+ optional :name, :string, 32769
504
+ optional :healthy, :bool, 32770
505
+ optional :tags, :message, 32771, "v1.Tags"
506
+ optional :secret_store_id, :string, 32772
507
+ optional :egress_filter, :string, 32773
508
+ optional :keyfile, :string, 1
509
+ optional :scopes, :string, 2
510
+ end
476
511
  add_message "v1.GoogleGKE" do
477
512
  optional :id, :string, 32768
478
513
  optional :name, :string, 32769
@@ -1016,6 +1051,8 @@ module V1
1016
1051
  Athena = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Athena").msgclass
1017
1052
  AuroraMysql = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AuroraMysql").msgclass
1018
1053
  AuroraPostgres = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AuroraPostgres").msgclass
1054
+ Azure = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Azure").msgclass
1055
+ AzureCertificate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AzureCertificate").msgclass
1019
1056
  AzurePostgres = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AzurePostgres").msgclass
1020
1057
  BigQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.BigQuery").msgclass
1021
1058
  Cassandra = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Cassandra").msgclass
@@ -1030,6 +1067,7 @@ module V1
1030
1067
  DynamoDB = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.DynamoDB").msgclass
1031
1068
  Elastic = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Elastic").msgclass
1032
1069
  ElasticacheRedis = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ElasticacheRedis").msgclass
1070
+ GCP = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.GCP").msgclass
1033
1071
  GoogleGKE = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.GoogleGKE").msgclass
1034
1072
  GoogleGKEUserImpersonation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.GoogleGKEUserImpersonation").msgclass
1035
1073
  Greenplum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Greenplum").msgclass
@@ -24,22 +24,22 @@ module V1
24
24
  # - **Gateways** are the entry points into network. They listen for connection from the strongDM client, and provide access to databases and servers.
25
25
  # - **Relays** are used to extend the strongDM network into segmented subnets. They provide access to databases and servers but do not listen for incoming connections.
26
26
  class Service
27
- include GRPC::GenericService
27
+ include ::GRPC::GenericService
28
28
 
29
29
  self.marshal_class_method = :encode
30
30
  self.unmarshal_class_method = :decode
31
31
  self.service_name = "v1.Nodes"
32
32
 
33
33
  # Create registers a new Node.
34
- rpc :Create, NodeCreateRequest, NodeCreateResponse
34
+ rpc :Create, ::V1::NodeCreateRequest, ::V1::NodeCreateResponse
35
35
  # Get reads one Node by ID.
36
- rpc :Get, NodeGetRequest, NodeGetResponse
36
+ rpc :Get, ::V1::NodeGetRequest, ::V1::NodeGetResponse
37
37
  # Update patches a Node by ID.
38
- rpc :Update, NodeUpdateRequest, NodeUpdateResponse
38
+ rpc :Update, ::V1::NodeUpdateRequest, ::V1::NodeUpdateResponse
39
39
  # Delete removes a Node by ID.
40
- rpc :Delete, NodeDeleteRequest, NodeDeleteResponse
40
+ rpc :Delete, ::V1::NodeDeleteRequest, ::V1::NodeDeleteResponse
41
41
  # List gets a list of Nodes matching a given set of criteria.
42
- rpc :List, NodeListRequest, NodeListResponse
42
+ rpc :List, ::V1::NodeListRequest, ::V1::NodeListResponse
43
43
  end
44
44
 
45
45
  Stub = Service.rpc_stub_class
data/lib/grpc/plumbing.rb CHANGED
@@ -1365,6 +1365,106 @@ module SDM
1365
1365
  end
1366
1366
  items
1367
1367
  end
1368
+ def self.convert_azure_to_porcelain(plumbing)
1369
+ if plumbing == nil
1370
+ return nil
1371
+ end
1372
+ porcelain = Azure.new()
1373
+ porcelain.app_id = (plumbing.app_id)
1374
+ porcelain.egress_filter = (plumbing.egress_filter)
1375
+ porcelain.healthy = (plumbing.healthy)
1376
+ porcelain.id = (plumbing.id)
1377
+ porcelain.name = (plumbing.name)
1378
+ porcelain.password = (plumbing.password)
1379
+ porcelain.secret_store_id = (plumbing.secret_store_id)
1380
+ porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
1381
+ porcelain.tenant_id = (plumbing.tenant_id)
1382
+ porcelain
1383
+ end
1384
+
1385
+ def self.convert_azure_to_plumbing(porcelain)
1386
+ if porcelain == nil
1387
+ return nil
1388
+ end
1389
+ plumbing = V1::Azure.new()
1390
+ plumbing.app_id = (porcelain.app_id) unless porcelain.app_id == nil
1391
+ plumbing.egress_filter = (porcelain.egress_filter) unless porcelain.egress_filter == nil
1392
+ plumbing.healthy = (porcelain.healthy) unless porcelain.healthy == nil
1393
+ plumbing.id = (porcelain.id) unless porcelain.id == nil
1394
+ plumbing.name = (porcelain.name) unless porcelain.name == nil
1395
+ plumbing.password = (porcelain.password) unless porcelain.password == nil
1396
+ plumbing.secret_store_id = (porcelain.secret_store_id) unless porcelain.secret_store_id == nil
1397
+ plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
1398
+ plumbing.tenant_id = (porcelain.tenant_id) unless porcelain.tenant_id == nil
1399
+ plumbing
1400
+ end
1401
+ def self.convert_repeated_azure_to_plumbing(porcelains)
1402
+ items = Array.new
1403
+ porcelains.each do |porcelain|
1404
+ plumbing = convert_azure_to_plumbing(porcelain)
1405
+ items.append(plumbing)
1406
+ end
1407
+ items
1408
+ end
1409
+
1410
+ def self.convert_repeated_azure_to_porcelain(plumbings)
1411
+ items = Array.new
1412
+ plumbings.each do |plumbing|
1413
+ porcelain = convert_azure_to_porcelain(plumbing)
1414
+ items.append(porcelain)
1415
+ end
1416
+ items
1417
+ end
1418
+ def self.convert_azure_certificate_to_porcelain(plumbing)
1419
+ if plumbing == nil
1420
+ return nil
1421
+ end
1422
+ porcelain = AzureCertificate.new()
1423
+ porcelain.app_id = (plumbing.app_id)
1424
+ porcelain.client_certificate = (plumbing.client_certificate)
1425
+ porcelain.egress_filter = (plumbing.egress_filter)
1426
+ porcelain.healthy = (plumbing.healthy)
1427
+ porcelain.id = (plumbing.id)
1428
+ porcelain.name = (plumbing.name)
1429
+ porcelain.secret_store_id = (plumbing.secret_store_id)
1430
+ porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
1431
+ porcelain.tenant_id = (plumbing.tenant_id)
1432
+ porcelain
1433
+ end
1434
+
1435
+ def self.convert_azure_certificate_to_plumbing(porcelain)
1436
+ if porcelain == nil
1437
+ return nil
1438
+ end
1439
+ plumbing = V1::AzureCertificate.new()
1440
+ plumbing.app_id = (porcelain.app_id) unless porcelain.app_id == nil
1441
+ plumbing.client_certificate = (porcelain.client_certificate) unless porcelain.client_certificate == nil
1442
+ plumbing.egress_filter = (porcelain.egress_filter) unless porcelain.egress_filter == nil
1443
+ plumbing.healthy = (porcelain.healthy) unless porcelain.healthy == nil
1444
+ plumbing.id = (porcelain.id) unless porcelain.id == nil
1445
+ plumbing.name = (porcelain.name) unless porcelain.name == nil
1446
+ plumbing.secret_store_id = (porcelain.secret_store_id) unless porcelain.secret_store_id == nil
1447
+ plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
1448
+ plumbing.tenant_id = (porcelain.tenant_id) unless porcelain.tenant_id == nil
1449
+ plumbing
1450
+ end
1451
+ def self.convert_repeated_azure_certificate_to_plumbing(porcelains)
1452
+ items = Array.new
1453
+ porcelains.each do |porcelain|
1454
+ plumbing = convert_azure_certificate_to_plumbing(porcelain)
1455
+ items.append(plumbing)
1456
+ end
1457
+ items
1458
+ end
1459
+
1460
+ def self.convert_repeated_azure_certificate_to_porcelain(plumbings)
1461
+ items = Array.new
1462
+ plumbings.each do |plumbing|
1463
+ porcelain = convert_azure_certificate_to_porcelain(plumbing)
1464
+ items.append(porcelain)
1465
+ end
1466
+ items
1467
+ end
1368
1468
  def self.convert_azure_postgres_to_porcelain(plumbing)
1369
1469
  if plumbing == nil
1370
1470
  return nil
@@ -2293,6 +2393,54 @@ module SDM
2293
2393
  end
2294
2394
  items
2295
2395
  end
2396
+ def self.convert_gcp_to_porcelain(plumbing)
2397
+ if plumbing == nil
2398
+ return nil
2399
+ end
2400
+ porcelain = GCP.new()
2401
+ porcelain.egress_filter = (plumbing.egress_filter)
2402
+ porcelain.healthy = (plumbing.healthy)
2403
+ porcelain.id = (plumbing.id)
2404
+ porcelain.keyfile = (plumbing.keyfile)
2405
+ porcelain.name = (plumbing.name)
2406
+ porcelain.scopes = (plumbing.scopes)
2407
+ porcelain.secret_store_id = (plumbing.secret_store_id)
2408
+ porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
2409
+ porcelain
2410
+ end
2411
+
2412
+ def self.convert_gcp_to_plumbing(porcelain)
2413
+ if porcelain == nil
2414
+ return nil
2415
+ end
2416
+ plumbing = V1::GCP.new()
2417
+ plumbing.egress_filter = (porcelain.egress_filter) unless porcelain.egress_filter == nil
2418
+ plumbing.healthy = (porcelain.healthy) unless porcelain.healthy == nil
2419
+ plumbing.id = (porcelain.id) unless porcelain.id == nil
2420
+ plumbing.keyfile = (porcelain.keyfile) unless porcelain.keyfile == nil
2421
+ plumbing.name = (porcelain.name) unless porcelain.name == nil
2422
+ plumbing.scopes = (porcelain.scopes) unless porcelain.scopes == nil
2423
+ plumbing.secret_store_id = (porcelain.secret_store_id) unless porcelain.secret_store_id == nil
2424
+ plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
2425
+ plumbing
2426
+ end
2427
+ def self.convert_repeated_gcp_to_plumbing(porcelains)
2428
+ items = Array.new
2429
+ porcelains.each do |porcelain|
2430
+ plumbing = convert_gcp_to_plumbing(porcelain)
2431
+ items.append(plumbing)
2432
+ end
2433
+ items
2434
+ end
2435
+
2436
+ def self.convert_repeated_gcp_to_porcelain(plumbings)
2437
+ items = Array.new
2438
+ plumbings.each do |plumbing|
2439
+ porcelain = convert_gcp_to_porcelain(plumbing)
2440
+ items.append(porcelain)
2441
+ end
2442
+ items
2443
+ end
2296
2444
  def self.convert_gateway_to_porcelain(plumbing)
2297
2445
  if plumbing == nil
2298
2446
  return nil
@@ -4305,6 +4453,12 @@ module SDM
4305
4453
  if porcelain.instance_of? AWS
4306
4454
  plumbing.aws = convert_aws_to_plumbing(porcelain)
4307
4455
  end
4456
+ if porcelain.instance_of? Azure
4457
+ plumbing.azure = convert_azure_to_plumbing(porcelain)
4458
+ end
4459
+ if porcelain.instance_of? AzureCertificate
4460
+ plumbing.azure_certificate = convert_azure_certificate_to_plumbing(porcelain)
4461
+ end
4308
4462
  if porcelain.instance_of? AzurePostgres
4309
4463
  plumbing.azure_postgres = convert_azure_postgres_to_plumbing(porcelain)
4310
4464
  end
@@ -4347,6 +4501,9 @@ module SDM
4347
4501
  if porcelain.instance_of? ElasticacheRedis
4348
4502
  plumbing.elasticache_redis = convert_elasticache_redis_to_plumbing(porcelain)
4349
4503
  end
4504
+ if porcelain.instance_of? GCP
4505
+ plumbing.gcp = convert_gcp_to_plumbing(porcelain)
4506
+ end
4350
4507
  if porcelain.instance_of? GoogleGKE
4351
4508
  plumbing.google_gke = convert_google_gke_to_plumbing(porcelain)
4352
4509
  end
@@ -4507,6 +4664,12 @@ module SDM
4507
4664
  if plumbing.aws != nil
4508
4665
  return convert_aws_to_porcelain(plumbing.aws)
4509
4666
  end
4667
+ if plumbing.azure != nil
4668
+ return convert_azure_to_porcelain(plumbing.azure)
4669
+ end
4670
+ if plumbing.azure_certificate != nil
4671
+ return convert_azure_certificate_to_porcelain(plumbing.azure_certificate)
4672
+ end
4510
4673
  if plumbing.azure_postgres != nil
4511
4674
  return convert_azure_postgres_to_porcelain(plumbing.azure_postgres)
4512
4675
  end
@@ -4549,6 +4712,9 @@ module SDM
4549
4712
  if plumbing.elasticache_redis != nil
4550
4713
  return convert_elasticache_redis_to_porcelain(plumbing.elasticache_redis)
4551
4714
  end
4715
+ if plumbing.gcp != nil
4716
+ return convert_gcp_to_porcelain(plumbing.gcp)
4717
+ end
4552
4718
  if plumbing.google_gke != nil
4553
4719
  return convert_google_gke_to_porcelain(plumbing.google_gke)
4554
4720
  end
@@ -21,24 +21,24 @@ require "resources_pb"
21
21
  module V1
22
22
  module Resources
23
23
  class Service
24
- include GRPC::GenericService
24
+ include ::GRPC::GenericService
25
25
 
26
26
  self.marshal_class_method = :encode
27
27
  self.unmarshal_class_method = :decode
28
28
  self.service_name = "v1.Resources"
29
29
 
30
30
  # EnumerateTags gets a list of the filter matching tags.
31
- rpc :EnumerateTags, EnumerateTagsRequest, EnumerateTagsResponse
31
+ rpc :EnumerateTags, ::V1::EnumerateTagsRequest, ::V1::EnumerateTagsResponse
32
32
  # Create registers a new Resource.
33
- rpc :Create, ResourceCreateRequest, ResourceCreateResponse
33
+ rpc :Create, ::V1::ResourceCreateRequest, ::V1::ResourceCreateResponse
34
34
  # Get reads one Resource by ID.
35
- rpc :Get, ResourceGetRequest, ResourceGetResponse
35
+ rpc :Get, ::V1::ResourceGetRequest, ::V1::ResourceGetResponse
36
36
  # Update patches a Resource by ID.
37
- rpc :Update, ResourceUpdateRequest, ResourceUpdateResponse
37
+ rpc :Update, ::V1::ResourceUpdateRequest, ::V1::ResourceUpdateResponse
38
38
  # Delete removes a Resource by ID.
39
- rpc :Delete, ResourceDeleteRequest, ResourceDeleteResponse
39
+ rpc :Delete, ::V1::ResourceDeleteRequest, ::V1::ResourceDeleteResponse
40
40
  # List gets a list of Resources matching a given set of criteria.
41
- rpc :List, ResourceListRequest, ResourceListResponse
41
+ rpc :List, ::V1::ResourceListRequest, ::V1::ResourceListResponse
42
42
  end
43
43
 
44
44
  Stub = Service.rpc_stub_class
@@ -25,20 +25,20 @@ module V1
25
25
  # role, the permissions granted to members of the composite role are augmented to
26
26
  # include the permissions granted to members of the attached role.
27
27
  class Service
28
- include GRPC::GenericService
28
+ include ::GRPC::GenericService
29
29
 
30
30
  self.marshal_class_method = :encode
31
31
  self.unmarshal_class_method = :decode
32
32
  self.service_name = "v1.RoleAttachments"
33
33
 
34
34
  # Create registers a new RoleAttachment.
35
- rpc :Create, RoleAttachmentCreateRequest, RoleAttachmentCreateResponse
35
+ rpc :Create, ::V1::RoleAttachmentCreateRequest, ::V1::RoleAttachmentCreateResponse
36
36
  # Get reads one RoleAttachment by ID.
37
- rpc :Get, RoleAttachmentGetRequest, RoleAttachmentGetResponse
37
+ rpc :Get, ::V1::RoleAttachmentGetRequest, ::V1::RoleAttachmentGetResponse
38
38
  # Delete removes a RoleAttachment by ID.
39
- rpc :Delete, RoleAttachmentDeleteRequest, RoleAttachmentDeleteResponse
39
+ rpc :Delete, ::V1::RoleAttachmentDeleteRequest, ::V1::RoleAttachmentDeleteResponse
40
40
  # List gets a list of RoleAttachments matching a given set of criteria.
41
- rpc :List, RoleAttachmentListRequest, RoleAttachmentListResponse
41
+ rpc :List, ::V1::RoleAttachmentListRequest, ::V1::RoleAttachmentListResponse
42
42
  end
43
43
 
44
44
  Stub = Service.rpc_stub_class
@@ -25,20 +25,20 @@ module V1
25
25
  # role, the permissions granted to members of the composite role are augmented to
26
26
  # include the permissions granted to members of the attached role.
27
27
  class Service
28
- include GRPC::GenericService
28
+ include ::GRPC::GenericService
29
29
 
30
30
  self.marshal_class_method = :encode
31
31
  self.unmarshal_class_method = :decode
32
32
  self.service_name = "v1.RoleGrants"
33
33
 
34
34
  # Create registers a new RoleGrant.
35
- rpc :Create, RoleGrantCreateRequest, RoleGrantCreateResponse
35
+ rpc :Create, ::V1::RoleGrantCreateRequest, ::V1::RoleGrantCreateResponse
36
36
  # Get reads one RoleGrant by ID.
37
- rpc :Get, RoleGrantGetRequest, RoleGrantGetResponse
37
+ rpc :Get, ::V1::RoleGrantGetRequest, ::V1::RoleGrantGetResponse
38
38
  # Delete removes a RoleGrant by ID.
39
- rpc :Delete, RoleGrantDeleteRequest, RoleGrantDeleteResponse
39
+ rpc :Delete, ::V1::RoleGrantDeleteRequest, ::V1::RoleGrantDeleteResponse
40
40
  # List gets a list of RoleGrants matching a given set of criteria.
41
- rpc :List, RoleGrantListRequest, RoleGrantListResponse
41
+ rpc :List, ::V1::RoleGrantListRequest, ::V1::RoleGrantListResponse
42
42
  end
43
43
 
44
44
  Stub = Service.rpc_stub_class
@@ -26,22 +26,22 @@ module V1
26
26
  # grant access to the combined resources associated with a set of child roles.
27
27
  # Each user can be a member of one Role or composite role.
28
28
  class Service
29
- include GRPC::GenericService
29
+ include ::GRPC::GenericService
30
30
 
31
31
  self.marshal_class_method = :encode
32
32
  self.unmarshal_class_method = :decode
33
33
  self.service_name = "v1.Roles"
34
34
 
35
35
  # Create registers a new Role.
36
- rpc :Create, RoleCreateRequest, RoleCreateResponse
36
+ rpc :Create, ::V1::RoleCreateRequest, ::V1::RoleCreateResponse
37
37
  # Get reads one Role by ID.
38
- rpc :Get, RoleGetRequest, RoleGetResponse
38
+ rpc :Get, ::V1::RoleGetRequest, ::V1::RoleGetResponse
39
39
  # Update patches a Role by ID.
40
- rpc :Update, RoleUpdateRequest, RoleUpdateResponse
40
+ rpc :Update, ::V1::RoleUpdateRequest, ::V1::RoleUpdateResponse
41
41
  # Delete removes a Role by ID.
42
- rpc :Delete, RoleDeleteRequest, RoleDeleteResponse
42
+ rpc :Delete, ::V1::RoleDeleteRequest, ::V1::RoleDeleteResponse
43
43
  # List gets a list of Roles matching a given set of criteria.
44
- rpc :List, RoleListRequest, RoleListResponse
44
+ rpc :List, ::V1::RoleListRequest, ::V1::RoleListResponse
45
45
  end
46
46
 
47
47
  Stub = Service.rpc_stub_class
@@ -22,21 +22,21 @@ module V1
22
22
  module SecretStores
23
23
  # SecretStores are servers where resource secrets (passwords, keys) are stored.
24
24
  class Service
25
- include GRPC::GenericService
25
+ include ::GRPC::GenericService
26
26
 
27
27
  self.marshal_class_method = :encode
28
28
  self.unmarshal_class_method = :decode
29
29
  self.service_name = "v1.SecretStores"
30
30
 
31
- rpc :Create, SecretStoreCreateRequest, SecretStoreCreateResponse
31
+ rpc :Create, ::V1::SecretStoreCreateRequest, ::V1::SecretStoreCreateResponse
32
32
  # Get reads one SecretStore by ID.
33
- rpc :Get, SecretStoreGetRequest, SecretStoreGetResponse
33
+ rpc :Get, ::V1::SecretStoreGetRequest, ::V1::SecretStoreGetResponse
34
34
  # Update patches a SecretStore by ID.
35
- rpc :Update, SecretStoreUpdateRequest, SecretStoreUpdateResponse
35
+ rpc :Update, ::V1::SecretStoreUpdateRequest, ::V1::SecretStoreUpdateResponse
36
36
  # Delete removes a SecretStore by ID.
37
- rpc :Delete, SecretStoreDeleteRequest, SecretStoreDeleteResponse
37
+ rpc :Delete, ::V1::SecretStoreDeleteRequest, ::V1::SecretStoreDeleteResponse
38
38
  # List gets a list of SecretStores matching a given set of criteria.
39
- rpc :List, SecretStoreListRequest, SecretStoreListResponse
39
+ rpc :List, ::V1::SecretStoreListRequest, ::V1::SecretStoreListResponse
40
40
  end
41
41
 
42
42
  Stub = Service.rpc_stub_class