strongdm 1.0.32 → 1.0.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) 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 → pack-bd71f14214724e8c4c6861a40129fd02fdf870bf.idx} +0 -0
  10. data/.git/objects/pack/{pack-760024d2d3e635c44bfe6b54af80a8b21674032d.pack → pack-bd71f14214724e8c4c6861a40129fd02fdf870bf.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/MongoShardedCluster.html +352 -0
  15. data/doc/SDM/Mysql.html +2 -2
  16. data/doc/SDM/Neptune.html +2 -2
  17. data/doc/SDM/NeptuneIAM.html +2 -2
  18. data/doc/SDM/NodeCreateResponse.html +2 -2
  19. data/doc/SDM/NodeDeleteResponse.html +2 -2
  20. data/doc/SDM/NodeGetResponse.html +2 -2
  21. data/doc/SDM/NodeUpdateResponse.html +2 -2
  22. data/doc/SDM/Oracle.html +2 -2
  23. data/doc/SDM/Plumbing.html +361 -225
  24. data/doc/SDM/Postgres.html +2 -2
  25. data/doc/SDM/Presto.html +2 -2
  26. data/doc/SDM/RDP.html +2 -2
  27. data/doc/SDM/RabbitMQAMQP091.html +2 -2
  28. data/doc/SDM/RateLimitMetadata.html +2 -2
  29. data/doc/SDM/RawTCP.html +2 -2
  30. data/doc/SDM/Redis.html +2 -2
  31. data/doc/SDM/Redshift.html +2 -2
  32. data/doc/SDM/Relay.html +2 -2
  33. data/doc/SDM/ResourceCreateResponse.html +2 -2
  34. data/doc/SDM/ResourceDeleteResponse.html +2 -2
  35. data/doc/SDM/ResourceGetResponse.html +2 -2
  36. data/doc/SDM/ResourceUpdateResponse.html +2 -2
  37. data/doc/SDM/Role.html +2 -2
  38. data/doc/SDM/RoleAttachment.html +2 -2
  39. data/doc/SDM/RoleAttachmentCreateResponse.html +2 -2
  40. data/doc/SDM/RoleAttachmentDeleteResponse.html +2 -2
  41. data/doc/SDM/RoleAttachmentGetResponse.html +2 -2
  42. data/doc/SDM/RoleCreateResponse.html +2 -2
  43. data/doc/SDM/RoleDeleteResponse.html +2 -2
  44. data/doc/SDM/RoleGetResponse.html +2 -2
  45. data/doc/SDM/RoleGrant.html +2 -2
  46. data/doc/SDM/RoleGrantCreateResponse.html +2 -2
  47. data/doc/SDM/RoleGrantDeleteResponse.html +2 -2
  48. data/doc/SDM/RoleGrantGetResponse.html +2 -2
  49. data/doc/SDM/RoleUpdateResponse.html +2 -2
  50. data/doc/SDM/SQLServer.html +2 -2
  51. data/doc/SDM/SSH.html +2 -2
  52. data/doc/SDM/SSHCert.html +2 -2
  53. data/doc/SDM/SSHCustomerKey.html +2 -2
  54. data/doc/SDM/SecretStoreCreateResponse.html +2 -2
  55. data/doc/SDM/SecretStoreDeleteResponse.html +2 -2
  56. data/doc/SDM/SecretStoreGetResponse.html +2 -2
  57. data/doc/SDM/SecretStoreUpdateResponse.html +2 -2
  58. data/doc/SDM/Service.html +2 -2
  59. data/doc/SDM/SingleStore.html +2 -2
  60. data/doc/SDM/Snowflake.html +2 -2
  61. data/doc/SDM/Sybase.html +2 -2
  62. data/doc/SDM/SybaseIQ.html +2 -2
  63. data/doc/SDM/Tag.html +2 -2
  64. data/doc/SDM/Teradata.html +2 -2
  65. data/doc/SDM/UpdateResponseMetadata.html +2 -2
  66. data/doc/SDM/User.html +2 -2
  67. data/doc/SDM/VaultTLSStore.html +2 -2
  68. data/doc/SDM/VaultTokenStore.html +2 -2
  69. data/doc/V1.html +2 -0
  70. data/doc/created.rid +37 -37
  71. data/doc/index.html +1 -0
  72. data/doc/js/navigation.js.gz +0 -0
  73. data/doc/js/search_index.js +1 -1
  74. data/doc/js/search_index.js.gz +0 -0
  75. data/doc/js/searcher.js.gz +0 -0
  76. data/doc/lib/version.html +1 -1
  77. data/doc/table_of_contents.html +139 -106
  78. data/lib/grpc/drivers_pb.rb +16 -0
  79. data/lib/grpc/plumbing.rb +62 -0
  80. data/lib/models/porcelain.rb +86 -0
  81. data/lib/strongdm.rb +1 -1
  82. data/lib/version +1 -1
  83. data/lib/version.rb +1 -1
  84. metadata +5 -4
data/lib/grpc/plumbing.rb CHANGED
@@ -3523,6 +3523,62 @@ module SDM
3523
3523
  end
3524
3524
  items
3525
3525
  end
3526
+ def self.convert_mongo_sharded_cluster_to_porcelain(plumbing)
3527
+ if plumbing == nil
3528
+ return nil
3529
+ end
3530
+ porcelain = MongoShardedCluster.new()
3531
+ porcelain.auth_database = (plumbing.auth_database)
3532
+ porcelain.egress_filter = (plumbing.egress_filter)
3533
+ porcelain.healthy = (plumbing.healthy)
3534
+ porcelain.hostname = (plumbing.hostname)
3535
+ porcelain.id = (plumbing.id)
3536
+ porcelain.name = (plumbing.name)
3537
+ porcelain.password = (plumbing.password)
3538
+ porcelain.port_override = (plumbing.port_override)
3539
+ porcelain.secret_store_id = (plumbing.secret_store_id)
3540
+ porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
3541
+ porcelain.tls_required = (plumbing.tls_required)
3542
+ porcelain.username = (plumbing.username)
3543
+ porcelain
3544
+ end
3545
+
3546
+ def self.convert_mongo_sharded_cluster_to_plumbing(porcelain)
3547
+ if porcelain == nil
3548
+ return nil
3549
+ end
3550
+ plumbing = V1::MongoShardedCluster.new()
3551
+ plumbing.auth_database = (porcelain.auth_database) unless porcelain.auth_database == nil
3552
+ plumbing.egress_filter = (porcelain.egress_filter) unless porcelain.egress_filter == nil
3553
+ plumbing.healthy = (porcelain.healthy) unless porcelain.healthy == nil
3554
+ plumbing.hostname = (porcelain.hostname) unless porcelain.hostname == nil
3555
+ plumbing.id = (porcelain.id) unless porcelain.id == nil
3556
+ plumbing.name = (porcelain.name) unless porcelain.name == nil
3557
+ plumbing.password = (porcelain.password) unless porcelain.password == nil
3558
+ plumbing.port_override = (porcelain.port_override) unless porcelain.port_override == nil
3559
+ plumbing.secret_store_id = (porcelain.secret_store_id) unless porcelain.secret_store_id == nil
3560
+ plumbing.tags = convert_tags_to_plumbing(porcelain.tags) unless porcelain.tags == nil
3561
+ plumbing.tls_required = (porcelain.tls_required) unless porcelain.tls_required == nil
3562
+ plumbing.username = (porcelain.username) unless porcelain.username == nil
3563
+ plumbing
3564
+ end
3565
+ def self.convert_repeated_mongo_sharded_cluster_to_plumbing(porcelains)
3566
+ items = Array.new
3567
+ porcelains.each do |porcelain|
3568
+ plumbing = convert_mongo_sharded_cluster_to_plumbing(porcelain)
3569
+ items.append(plumbing)
3570
+ end
3571
+ items
3572
+ end
3573
+
3574
+ def self.convert_repeated_mongo_sharded_cluster_to_porcelain(plumbings)
3575
+ items = Array.new
3576
+ plumbings.each do |plumbing|
3577
+ porcelain = convert_mongo_sharded_cluster_to_porcelain(plumbing)
3578
+ items.append(porcelain)
3579
+ end
3580
+ items
3581
+ end
3526
3582
  def self.convert_mysql_to_porcelain(plumbing)
3527
3583
  if plumbing == nil
3528
3584
  return nil
@@ -4558,6 +4614,9 @@ module SDM
4558
4614
  if porcelain.instance_of? MongoReplicaSet
4559
4615
  plumbing.mongo_replica_set = convert_mongo_replica_set_to_plumbing(porcelain)
4560
4616
  end
4617
+ if porcelain.instance_of? MongoShardedCluster
4618
+ plumbing.mongo_sharded_cluster = convert_mongo_sharded_cluster_to_plumbing(porcelain)
4619
+ end
4561
4620
  if porcelain.instance_of? Mysql
4562
4621
  plumbing.mysql = convert_mysql_to_plumbing(porcelain)
4563
4622
  end
@@ -4769,6 +4828,9 @@ module SDM
4769
4828
  if plumbing.mongo_replica_set != nil
4770
4829
  return convert_mongo_replica_set_to_porcelain(plumbing.mongo_replica_set)
4771
4830
  end
4831
+ if plumbing.mongo_sharded_cluster != nil
4832
+ return convert_mongo_sharded_cluster_to_porcelain(plumbing.mongo_sharded_cluster)
4833
+ end
4772
4834
  if plumbing.mysql != nil
4773
4835
  return convert_mysql_to_porcelain(plumbing.mysql)
4774
4836
  end
@@ -4741,6 +4741,92 @@ module SDM
4741
4741
  end
4742
4742
  end
4743
4743
 
4744
+ class MongoShardedCluster
4745
+ attr_accessor :auth_database
4746
+ # A filter applied to the routing logic to pin datasource to nodes.
4747
+ attr_accessor :egress_filter
4748
+ # True if the datasource is reachable and the credentials are valid.
4749
+ attr_accessor :healthy
4750
+
4751
+ attr_accessor :hostname
4752
+ # Unique identifier of the Resource.
4753
+ attr_accessor :id
4754
+ # Unique human-readable name of the Resource.
4755
+ attr_accessor :name
4756
+
4757
+ attr_accessor :password
4758
+
4759
+ attr_accessor :port_override
4760
+ # ID of the secret store containing credentials for this resource, if any.
4761
+ attr_accessor :secret_store_id
4762
+ # Tags is a map of key, value pairs.
4763
+ attr_accessor :tags
4764
+
4765
+ attr_accessor :tls_required
4766
+
4767
+ attr_accessor :username
4768
+
4769
+ def initialize(
4770
+ auth_database: nil,
4771
+ egress_filter: nil,
4772
+ healthy: nil,
4773
+ hostname: nil,
4774
+ id: nil,
4775
+ name: nil,
4776
+ password: nil,
4777
+ port_override: nil,
4778
+ secret_store_id: nil,
4779
+ tags: nil,
4780
+ tls_required: nil,
4781
+ username: nil
4782
+ )
4783
+ if auth_database != nil
4784
+ @auth_database = auth_database
4785
+ end
4786
+ if egress_filter != nil
4787
+ @egress_filter = egress_filter
4788
+ end
4789
+ if healthy != nil
4790
+ @healthy = healthy
4791
+ end
4792
+ if hostname != nil
4793
+ @hostname = hostname
4794
+ end
4795
+ if id != nil
4796
+ @id = id
4797
+ end
4798
+ if name != nil
4799
+ @name = name
4800
+ end
4801
+ if password != nil
4802
+ @password = password
4803
+ end
4804
+ if port_override != nil
4805
+ @port_override = port_override
4806
+ end
4807
+ if secret_store_id != nil
4808
+ @secret_store_id = secret_store_id
4809
+ end
4810
+ if tags != nil
4811
+ @tags = tags
4812
+ end
4813
+ if tls_required != nil
4814
+ @tls_required = tls_required
4815
+ end
4816
+ if username != nil
4817
+ @username = username
4818
+ end
4819
+ end
4820
+
4821
+ def to_json(options = {})
4822
+ hash = {}
4823
+ self.instance_variables.each do |var|
4824
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
4825
+ end
4826
+ hash.to_json
4827
+ end
4828
+ end
4829
+
4744
4830
  class Mysql
4745
4831
  attr_accessor :database
4746
4832
  # A filter applied to the routing logic to pin datasource to nodes.
data/lib/strongdm.rb CHANGED
@@ -23,7 +23,7 @@ DEFAULT_MAX_RETRIES = 3
23
23
  DEFAULT_BASE_RETRY_DELAY = 0.0030 # 30 ms
24
24
  DEFAULT_MAX_RETRY_DELAY = 300 # 300 seconds
25
25
  API_VERSION = "2021-08-23"
26
- USER_AGENT = "strongdm-sdk-ruby/1.0.32"
26
+ USER_AGENT = "strongdm-sdk-ruby/1.0.33"
27
27
 
28
28
  module SDM
29
29
 
data/lib/version CHANGED
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
  #
15
15
  module SDM
16
- VERSION = "1.0.32"
16
+ VERSION = "1.0.33"
17
17
  end
data/lib/version.rb CHANGED
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
  #
15
15
  module SDM
16
- VERSION = "1.0.32"
16
+ VERSION = "1.0.33"
17
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strongdm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.32
4
+ version: 1.0.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - strongDM Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-08 00:00:00.000000000 Z
11
+ date: 2021-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -81,8 +81,8 @@ files:
81
81
  - "./.git/logs/refs/heads/development"
82
82
  - "./.git/logs/refs/heads/master"
83
83
  - "./.git/logs/refs/remotes/origin/HEAD"
84
- - "./.git/objects/pack/pack-760024d2d3e635c44bfe6b54af80a8b21674032d.idx"
85
- - "./.git/objects/pack/pack-760024d2d3e635c44bfe6b54af80a8b21674032d.pack"
84
+ - "./.git/objects/pack/pack-bd71f14214724e8c4c6861a40129fd02fdf870bf.idx"
85
+ - "./.git/objects/pack/pack-bd71f14214724e8c4c6861a40129fd02fdf870bf.pack"
86
86
  - "./.git/packed-refs"
87
87
  - "./.git/refs/heads/development"
88
88
  - "./.git/refs/heads/master"
@@ -170,6 +170,7 @@ files:
170
170
  - "./doc/SDM/MongoLegacyHost.html"
171
171
  - "./doc/SDM/MongoLegacyReplicaset.html"
172
172
  - "./doc/SDM/MongoReplicaSet.html"
173
+ - "./doc/SDM/MongoShardedCluster.html"
173
174
  - "./doc/SDM/Mysql.html"
174
175
  - "./doc/SDM/Neptune.html"
175
176
  - "./doc/SDM/NeptuneIAM.html"