strongdm 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1d658965937c2101e66c96669146644d3239cf6d85911807305fc95189049b2
4
- data.tar.gz: c1343a4844f0f8e0ab5e38d127a3a9fc148977436bb3ab877117622a2d2966a3
3
+ metadata.gz: 513889a71f5229ea623c7e6700bad921d2fa66ea7677040c9c007b9a971be94a
4
+ data.tar.gz: 01b66d9bb0699d690e39b80980c73add3fd5a58ee9d799e3d6b5b2e02d2820c0
5
5
  SHA512:
6
- metadata.gz: 25fffe119e3ff184525a308ad1849b3f7d6f46f774781655313db67bc3d91316c129ae38d15c6c473319346959400413147b8c04a3fc595f88df9f79052968fa
7
- data.tar.gz: 2786682b3db206892d284bae1158f8c0301794ebc29fd5d514f0592033efee0ce54e064f02621b2c7307a2a4af31c106bc144d6b6e3da4d543fe82f953dbeaaf
6
+ metadata.gz: e40159083a623c69f8b9f14294a38d437e97128cb5a5a1cc49a83b832204265d94be0fe60ee18bf143cc03e0c18d6b04bb4981e2eccb152816daf462b8a8233f
7
+ data.tar.gz: 247079fcb881f598acb01015d94bd7bdc36a31dfd98e8776ef455cd649e5eff77f2f1802905c2813a532e6fc2089dd722744c861817a756a488bdcb0b2a18eea
data/.git/ORIG_HEAD CHANGED
@@ -1 +1 @@
1
- f45de548cbbf12c8d1154124bf56f7d13396cc19
1
+ e0b1ec0134c7015ccb8c14464cc713c20034159e
data/.git/index CHANGED
Binary file
data/.git/logs/HEAD CHANGED
@@ -1,3 +1,3 @@
1
- 0000000000000000000000000000000000000000 f45de548cbbf12c8d1154124bf56f7d13396cc19 sdmrelease <support@strongdm.com> 1647456352 +0000 clone: from git@github.com:strongdm/strongdm-sdk-ruby.git
2
- f45de548cbbf12c8d1154124bf56f7d13396cc19 f45de548cbbf12c8d1154124bf56f7d13396cc19 sdmrelease <support@strongdm.com> 1647456352 +0000 checkout: moving from master to master
3
- f45de548cbbf12c8d1154124bf56f7d13396cc19 e0b1ec0134c7015ccb8c14464cc713c20034159e sdmrelease <support@strongdm.com> 1647456352 +0000 merge origin/development: Fast-forward
1
+ 0000000000000000000000000000000000000000 e0b1ec0134c7015ccb8c14464cc713c20034159e sdmrelease <support@strongdm.com> 1650659439 +0000 clone: from git@github.com:strongdm/strongdm-sdk-ruby.git
2
+ e0b1ec0134c7015ccb8c14464cc713c20034159e e0b1ec0134c7015ccb8c14464cc713c20034159e sdmrelease <support@strongdm.com> 1650659439 +0000 checkout: moving from master to master
3
+ e0b1ec0134c7015ccb8c14464cc713c20034159e 62a146d9d56852b2ad14ec5d2796cad158d66e1c sdmrelease <support@strongdm.com> 1650659439 +0000 merge origin/development: Fast-forward
@@ -1,2 +1,2 @@
1
- 0000000000000000000000000000000000000000 f45de548cbbf12c8d1154124bf56f7d13396cc19 sdmrelease <support@strongdm.com> 1647456352 +0000 clone: from git@github.com:strongdm/strongdm-sdk-ruby.git
2
- f45de548cbbf12c8d1154124bf56f7d13396cc19 e0b1ec0134c7015ccb8c14464cc713c20034159e sdmrelease <support@strongdm.com> 1647456352 +0000 merge origin/development: Fast-forward
1
+ 0000000000000000000000000000000000000000 e0b1ec0134c7015ccb8c14464cc713c20034159e sdmrelease <support@strongdm.com> 1650659439 +0000 clone: from git@github.com:strongdm/strongdm-sdk-ruby.git
2
+ e0b1ec0134c7015ccb8c14464cc713c20034159e 62a146d9d56852b2ad14ec5d2796cad158d66e1c sdmrelease <support@strongdm.com> 1650659439 +0000 merge origin/development: Fast-forward
@@ -1 +1 @@
1
- 0000000000000000000000000000000000000000 f45de548cbbf12c8d1154124bf56f7d13396cc19 sdmrelease <support@strongdm.com> 1647456352 +0000 clone: from git@github.com:strongdm/strongdm-sdk-ruby.git
1
+ 0000000000000000000000000000000000000000 e0b1ec0134c7015ccb8c14464cc713c20034159e sdmrelease <support@strongdm.com> 1650659439 +0000 clone: from git@github.com:strongdm/strongdm-sdk-ruby.git
data/.git/packed-refs CHANGED
@@ -1,6 +1,6 @@
1
1
  # pack-refs with: peeled fully-peeled sorted
2
- e0b1ec0134c7015ccb8c14464cc713c20034159e refs/remotes/origin/development
3
- f45de548cbbf12c8d1154124bf56f7d13396cc19 refs/remotes/origin/master
2
+ 62a146d9d56852b2ad14ec5d2796cad158d66e1c refs/remotes/origin/development
3
+ e0b1ec0134c7015ccb8c14464cc713c20034159e refs/remotes/origin/master
4
4
  2e4fe8087177ddea9b3991ca499f758384839c89 refs/tags/untagged-84fd83a4484c785cce63
5
5
  04f604866214fab4d5663b5171a3e596331577bd refs/tags/v0.9.4
6
6
  6f9a7b75b345c65fb554884907b7060680c807b7 refs/tags/v0.9.5
@@ -33,3 +33,4 @@ f05d3be5bc992d5a37ba13bc4ce092056769d9c8 refs/tags/v1.0.4
33
33
  75c17c9bc6e2c5877c35a61682b5d2b93ba79817 refs/tags/v1.0.5
34
34
  d035aa3acb4c3a0935121bc00bfbb0a9e999d410 refs/tags/v1.0.7
35
35
  5b01475679f3312831a0fa1009e7cf90889effa8 refs/tags/v1.0.8
36
+ e0b1ec0134c7015ccb8c14464cc713c20034159e refs/tags/v2.0.0
@@ -1 +1 @@
1
- e0b1ec0134c7015ccb8c14464cc713c20034159e
1
+ 62a146d9d56852b2ad14ec5d2796cad158d66e1c
@@ -64,6 +64,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
64
64
  optional :kubernetes_service_account, :message, 804, "v1.KubernetesServiceAccount"
65
65
  optional :kubernetes_service_account_user_impersonation, :message, 808, "v1.KubernetesServiceAccountUserImpersonation"
66
66
  optional :kubernetes_user_impersonation, :message, 812, "v1.KubernetesUserImpersonation"
67
+ optional :mtls_mysql, :message, 1106, "v1.MTLSMysql"
67
68
  optional :mtls_postgres, :message, 1306, "v1.MTLSPostgres"
68
69
  optional :maria, :message, 1103, "v1.Maria"
69
70
  optional :memcached, :message, 900, "v1.Memcached"
@@ -656,6 +657,24 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
656
657
  optional :hostname, :string, 1
657
658
  optional :port, :int32, 2
658
659
  end
660
+ add_message "v1.MTLSMysql" do
661
+ optional :id, :string, 32768
662
+ optional :name, :string, 32769
663
+ optional :healthy, :bool, 32770
664
+ optional :tags, :message, 32771, "v1.Tags"
665
+ optional :secret_store_id, :string, 32772
666
+ optional :egress_filter, :string, 32773
667
+ optional :certificate_authority, :string, 7
668
+ optional :client_certificate, :string, 9
669
+ optional :client_key, :string, 11
670
+ optional :database, :string, 4
671
+ optional :hostname, :string, 1
672
+ optional :password, :string, 3
673
+ optional :port, :int32, 6
674
+ optional :port_override, :int32, 5
675
+ optional :server_name, :string, 13
676
+ optional :username, :string, 2
677
+ end
659
678
  add_message "v1.MTLSPostgres" do
660
679
  optional :id, :string, 32768
661
680
  optional :name, :string, 32769
@@ -1115,6 +1134,7 @@ module V1
1115
1134
  KubernetesServiceAccount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.KubernetesServiceAccount").msgclass
1116
1135
  KubernetesServiceAccountUserImpersonation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.KubernetesServiceAccountUserImpersonation").msgclass
1117
1136
  KubernetesUserImpersonation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.KubernetesUserImpersonation").msgclass
1137
+ MTLSMysql = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.MTLSMysql").msgclass
1118
1138
  MTLSPostgres = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.MTLSPostgres").msgclass
1119
1139
  Maria = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Maria").msgclass
1120
1140
  Memcached = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Memcached").msgclass
data/lib/grpc/plumbing.rb CHANGED
@@ -3216,6 +3216,70 @@ module SDM
3216
3216
  end
3217
3217
  items
3218
3218
  end
3219
+ def self.convert_mtls_mysql_to_porcelain(plumbing)
3220
+ if plumbing == nil
3221
+ return nil
3222
+ end
3223
+ porcelain = MTLSMysql.new()
3224
+ porcelain.certificate_authority = (plumbing.certificate_authority)
3225
+ porcelain.client_certificate = (plumbing.client_certificate)
3226
+ porcelain.client_key = (plumbing.client_key)
3227
+ porcelain.database = (plumbing.database)
3228
+ porcelain.egress_filter = (plumbing.egress_filter)
3229
+ porcelain.healthy = (plumbing.healthy)
3230
+ porcelain.hostname = (plumbing.hostname)
3231
+ porcelain.id = (plumbing.id)
3232
+ porcelain.name = (plumbing.name)
3233
+ porcelain.password = (plumbing.password)
3234
+ porcelain.port = (plumbing.port)
3235
+ porcelain.port_override = (plumbing.port_override)
3236
+ porcelain.secret_store_id = (plumbing.secret_store_id)
3237
+ porcelain.server_name = (plumbing.server_name)
3238
+ porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
3239
+ porcelain.username = (plumbing.username)
3240
+ porcelain
3241
+ end
3242
+
3243
+ def self.convert_mtls_mysql_to_plumbing(porcelain)
3244
+ if porcelain == nil
3245
+ return nil
3246
+ end
3247
+ plumbing = V1::MTLSMysql.new()
3248
+ plumbing.certificate_authority = (porcelain.certificate_authority)
3249
+ plumbing.client_certificate = (porcelain.client_certificate)
3250
+ plumbing.client_key = (porcelain.client_key)
3251
+ plumbing.database = (porcelain.database)
3252
+ plumbing.egress_filter = (porcelain.egress_filter)
3253
+ plumbing.healthy = (porcelain.healthy)
3254
+ plumbing.hostname = (porcelain.hostname)
3255
+ plumbing.id = (porcelain.id)
3256
+ plumbing.name = (porcelain.name)
3257
+ plumbing.password = (porcelain.password)
3258
+ plumbing.port = (porcelain.port)
3259
+ plumbing.port_override = (porcelain.port_override)
3260
+ plumbing.secret_store_id = (porcelain.secret_store_id)
3261
+ plumbing.server_name = (porcelain.server_name)
3262
+ plumbing.tags = convert_tags_to_plumbing(porcelain.tags)
3263
+ plumbing.username = (porcelain.username)
3264
+ plumbing
3265
+ end
3266
+ def self.convert_repeated_mtls_mysql_to_plumbing(porcelains)
3267
+ items = Array.new
3268
+ porcelains.each do |porcelain|
3269
+ plumbing = convert_mtls_mysql_to_plumbing(porcelain)
3270
+ items.append(plumbing)
3271
+ end
3272
+ items
3273
+ end
3274
+
3275
+ def self.convert_repeated_mtls_mysql_to_porcelain(plumbings)
3276
+ items = Array.new
3277
+ plumbings.each do |plumbing|
3278
+ porcelain = convert_mtls_mysql_to_porcelain(plumbing)
3279
+ items.append(porcelain)
3280
+ end
3281
+ items
3282
+ end
3219
3283
  def self.convert_mtls_postgres_to_porcelain(plumbing)
3220
3284
  if plumbing == nil
3221
3285
  return nil
@@ -4782,6 +4846,9 @@ module SDM
4782
4846
  if porcelain.instance_of? MongoShardedCluster
4783
4847
  plumbing.mongo_sharded_cluster = convert_mongo_sharded_cluster_to_plumbing(porcelain)
4784
4848
  end
4849
+ if porcelain.instance_of? MTLSMysql
4850
+ plumbing.mtls_mysql = convert_mtls_mysql_to_plumbing(porcelain)
4851
+ end
4785
4852
  if porcelain.instance_of? MTLSPostgres
4786
4853
  plumbing.mtls_postgres = convert_mtls_postgres_to_plumbing(porcelain)
4787
4854
  end
@@ -4999,6 +5066,9 @@ module SDM
4999
5066
  if plumbing.mongo_sharded_cluster != nil
5000
5067
  return convert_mongo_sharded_cluster_to_porcelain(plumbing.mongo_sharded_cluster)
5001
5068
  end
5069
+ if plumbing.mtls_mysql != nil
5070
+ return convert_mtls_mysql_to_porcelain(plumbing.mtls_mysql)
5071
+ end
5002
5072
  if plumbing.mtls_postgres != nil
5003
5073
  return convert_mtls_postgres_to_porcelain(plumbing.mtls_postgres)
5004
5074
  end
@@ -3100,6 +3100,84 @@ module SDM
3100
3100
  end
3101
3101
  end
3102
3102
 
3103
+ class MTLSMysql
3104
+ attr_accessor :certificate_authority
3105
+
3106
+ attr_accessor :client_certificate
3107
+
3108
+ attr_accessor :client_key
3109
+
3110
+ attr_accessor :database
3111
+ # A filter applied to the routing logic to pin datasource to nodes.
3112
+ attr_accessor :egress_filter
3113
+ # True if the datasource is reachable and the credentials are valid.
3114
+ attr_accessor :healthy
3115
+
3116
+ attr_accessor :hostname
3117
+ # Unique identifier of the Resource.
3118
+ attr_accessor :id
3119
+ # Unique human-readable name of the Resource.
3120
+ attr_accessor :name
3121
+
3122
+ attr_accessor :password
3123
+
3124
+ attr_accessor :port
3125
+
3126
+ attr_accessor :port_override
3127
+ # ID of the secret store containing credentials for this resource, if any.
3128
+ attr_accessor :secret_store_id
3129
+
3130
+ attr_accessor :server_name
3131
+ # Tags is a map of key, value pairs.
3132
+ attr_accessor :tags
3133
+
3134
+ attr_accessor :username
3135
+
3136
+ def initialize(
3137
+ certificate_authority: nil,
3138
+ client_certificate: nil,
3139
+ client_key: nil,
3140
+ database: nil,
3141
+ egress_filter: nil,
3142
+ healthy: nil,
3143
+ hostname: nil,
3144
+ id: nil,
3145
+ name: nil,
3146
+ password: nil,
3147
+ port: nil,
3148
+ port_override: nil,
3149
+ secret_store_id: nil,
3150
+ server_name: nil,
3151
+ tags: nil,
3152
+ username: nil
3153
+ )
3154
+ @certificate_authority = certificate_authority == nil ? "" : certificate_authority
3155
+ @client_certificate = client_certificate == nil ? "" : client_certificate
3156
+ @client_key = client_key == nil ? "" : client_key
3157
+ @database = database == nil ? "" : database
3158
+ @egress_filter = egress_filter == nil ? "" : egress_filter
3159
+ @healthy = healthy == nil ? false : healthy
3160
+ @hostname = hostname == nil ? "" : hostname
3161
+ @id = id == nil ? "" : id
3162
+ @name = name == nil ? "" : name
3163
+ @password = password == nil ? "" : password
3164
+ @port = port == nil ? 0 : port
3165
+ @port_override = port_override == nil ? 0 : port_override
3166
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
3167
+ @server_name = server_name == nil ? "" : server_name
3168
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
3169
+ @username = username == nil ? "" : username
3170
+ end
3171
+
3172
+ def to_json(options = {})
3173
+ hash = {}
3174
+ self.instance_variables.each do |var|
3175
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
3176
+ end
3177
+ hash.to_json
3178
+ end
3179
+ end
3180
+
3103
3181
  class MTLSPostgres
3104
3182
  attr_accessor :certificate_authority
3105
3183
 
data/lib/strongdm.rb CHANGED
@@ -27,7 +27,7 @@ module SDM #:nodoc:
27
27
  DEFAULT_BASE_RETRY_DELAY = 0.0030 # 30 ms
28
28
  DEFAULT_MAX_RETRY_DELAY = 300 # 300 seconds
29
29
  API_VERSION = "2021-08-23"
30
- USER_AGENT = "strongdm-sdk-ruby/2.0.0"
30
+ USER_AGENT = "strongdm-sdk-ruby/2.1.0"
31
31
  private_constant :DEFAULT_MAX_RETRIES, :DEFAULT_BASE_RETRY_DELAY, :DEFAULT_MAX_RETRY_DELAY, :API_VERSION, :USER_AGENT
32
32
 
33
33
  # Creates a new strongDM API client.
data/lib/svc.rb CHANGED
@@ -812,6 +812,7 @@ module SDM #:nodoc:
812
812
  # {MongoLegacyReplicaset}
813
813
  # {MongoReplicaSet}
814
814
  # {MongoShardedCluster}
815
+ # {MTLSMysql}
815
816
  # {MTLSPostgres}
816
817
  # {Mysql}
817
818
  # {Neptune}
data/lib/version CHANGED
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
  #
15
15
  module SDM
16
- VERSION = "2.0.0"
16
+ VERSION = "2.1.0"
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 = "2.0.0"
16
+ VERSION = "2.1.0"
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: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - strongDM Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-16 00:00:00.000000000 Z
11
+ date: 2022-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -79,8 +79,8 @@ files:
79
79
  - "./.git/logs/HEAD"
80
80
  - "./.git/logs/refs/heads/master"
81
81
  - "./.git/logs/refs/remotes/origin/HEAD"
82
- - "./.git/objects/pack/pack-799dc839a811c2fbe50b5281a9266fcc3a8f5154.idx"
83
- - "./.git/objects/pack/pack-799dc839a811c2fbe50b5281a9266fcc3a8f5154.pack"
82
+ - "./.git/objects/pack/pack-a86846bb97666919e629e876c52e6b012d588625.idx"
83
+ - "./.git/objects/pack/pack-a86846bb97666919e629e876c52e6b012d588625.pack"
84
84
  - "./.git/packed-refs"
85
85
  - "./.git/refs/heads/master"
86
86
  - "./.git/refs/remotes/origin/HEAD"