strongdm 3.3.0 → 3.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.git/ORIG_HEAD +1 -1
- data/.git/index +0 -0
- data/.git/logs/HEAD +3 -3
- data/.git/logs/refs/heads/master +2 -2
- data/.git/logs/refs/remotes/origin/HEAD +1 -1
- data/.git/objects/pack/{pack-6a639f0e84633c6b3d1ec5c7cc09f299a3ec5013.idx → pack-583241b1feb5d3f1bb783f96ef7095fc246598d0.idx} +0 -0
- data/.git/objects/pack/{pack-6a639f0e84633c6b3d1ec5c7cc09f299a3ec5013.pack → pack-583241b1feb5d3f1bb783f96ef7095fc246598d0.pack} +0 -0
- data/.git/packed-refs +4 -2
- data/.git/refs/heads/master +1 -1
- data/lib/grpc/drivers_pb.rb +17 -0
- data/lib/grpc/options_pb.rb +1 -0
- data/lib/grpc/plumbing.rb +64 -0
- data/lib/models/porcelain.rb +68 -1
- data/lib/strongdm.rb +35 -11
- data/lib/svc.rb +21 -70
- data/lib/version +1 -1
- data/lib/version.rb +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 102164fe201cdb6b0540adfc893542ec4d619f2e968db081c86061943f2fd33d
|
4
|
+
data.tar.gz: cbb750885f2da74717378a692ccc1496824f76214bc81a8a566b4bdf82232453
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0769d742e9110b0ff33c2ca83ce75b946585e3b54621f494019ff24c897a4954be766f4447393bc64ce848b9c77b81460b47bc3772c30174e8c534c64fcae01
|
7
|
+
data.tar.gz: 4ca586b97feb0bfb8c78523d710c440d3570b909fa9aa5924961f19df00d8846893e60307b8c25ca4fe04692c0ff50429afe275a55ec718b7068e682b0a5d040
|
data/.git/ORIG_HEAD
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
f99114303af624f557c49036ef7e65c4cdfdb862
|
data/.git/index
CHANGED
Binary file
|
data/.git/logs/HEAD
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
0000000000000000000000000000000000000000
|
2
|
-
|
3
|
-
|
1
|
+
0000000000000000000000000000000000000000 f99114303af624f557c49036ef7e65c4cdfdb862 sdmrelease <support@strongdm.com> 1668443123 +0000 clone: from git@github.com:strongdm/strongdm-sdk-ruby.git
|
2
|
+
f99114303af624f557c49036ef7e65c4cdfdb862 f99114303af624f557c49036ef7e65c4cdfdb862 sdmrelease <support@strongdm.com> 1668443123 +0000 checkout: moving from master to master
|
3
|
+
f99114303af624f557c49036ef7e65c4cdfdb862 c07c84aa4982d50d60f10720b331c76f56f8c53f sdmrelease <support@strongdm.com> 1668443123 +0000 merge origin/development: Fast-forward
|
data/.git/logs/refs/heads/master
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
0000000000000000000000000000000000000000
|
2
|
-
|
1
|
+
0000000000000000000000000000000000000000 f99114303af624f557c49036ef7e65c4cdfdb862 sdmrelease <support@strongdm.com> 1668443123 +0000 clone: from git@github.com:strongdm/strongdm-sdk-ruby.git
|
2
|
+
f99114303af624f557c49036ef7e65c4cdfdb862 c07c84aa4982d50d60f10720b331c76f56f8c53f sdmrelease <support@strongdm.com> 1668443123 +0000 merge origin/development: Fast-forward
|
@@ -1 +1 @@
|
|
1
|
-
0000000000000000000000000000000000000000
|
1
|
+
0000000000000000000000000000000000000000 f99114303af624f557c49036ef7e65c4cdfdb862 sdmrelease <support@strongdm.com> 1668443123 +0000 clone: from git@github.com:strongdm/strongdm-sdk-ruby.git
|
Binary file
|
Binary file
|
data/.git/packed-refs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# pack-refs with: peeled fully-peeled sorted
|
2
|
-
|
3
|
-
|
2
|
+
c07c84aa4982d50d60f10720b331c76f56f8c53f refs/remotes/origin/development
|
3
|
+
f99114303af624f557c49036ef7e65c4cdfdb862 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
|
@@ -46,3 +46,5 @@ ebc33c297839fbbcfa70f855e599630c0a6c880c refs/tags/v2.6.4
|
|
46
46
|
dd6a8a74ad5675831f42e3a820208e96f7361f80 refs/tags/v3.2.1
|
47
47
|
09ee1a3be370a7b5e21709a7857d0f189f23da8b refs/tags/v3.2.2
|
48
48
|
d0ae780dd221eab9c3108d74697661483c1e1085 refs/tags/v3.2.3
|
49
|
+
390199f6fe9dc45de4cd68aae9f5a433228506f5 refs/tags/v3.3.0
|
50
|
+
f99114303af624f557c49036ef7e65c4cdfdb862 refs/tags/v3.3.1
|
data/.git/refs/heads/master
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
c07c84aa4982d50d60f10720b331c76f56f8c53f
|
data/lib/grpc/drivers_pb.rb
CHANGED
@@ -40,6 +40,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
40
40
|
optional :aurora_postgres, :message, 1301, "v1.AuroraPostgres"
|
41
41
|
optional :azure, :message, 2800, "v1.Azure"
|
42
42
|
optional :azure_certificate, :message, 2801, "v1.AzureCertificate"
|
43
|
+
optional :azure_mysql, :message, 1107, "v1.AzureMysql"
|
43
44
|
optional :azure_postgres, :message, 1307, "v1.AzurePostgres"
|
44
45
|
optional :big_query, :message, 200, "v1.BigQuery"
|
45
46
|
optional :cassandra, :message, 300, "v1.Cassandra"
|
@@ -369,6 +370,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
369
370
|
optional :client_certificate, :string, 3
|
370
371
|
optional :tenant_id, :string, 2
|
371
372
|
end
|
373
|
+
add_message "v1.AzureMysql" do
|
374
|
+
optional :id, :string, 32768
|
375
|
+
optional :name, :string, 32769
|
376
|
+
optional :healthy, :bool, 32770
|
377
|
+
optional :tags, :message, 32771, "v1.Tags"
|
378
|
+
optional :secret_store_id, :string, 32772
|
379
|
+
optional :egress_filter, :string, 32773
|
380
|
+
optional :bind_interface, :string, 32774
|
381
|
+
optional :database, :string, 4
|
382
|
+
optional :hostname, :string, 1
|
383
|
+
optional :password, :string, 3
|
384
|
+
optional :port, :int32, 6
|
385
|
+
optional :port_override, :int32, 5
|
386
|
+
optional :username, :string, 2
|
387
|
+
end
|
372
388
|
add_message "v1.AzurePostgres" do
|
373
389
|
optional :id, :string, 32768
|
374
390
|
optional :name, :string, 32769
|
@@ -1266,6 +1282,7 @@ module V1
|
|
1266
1282
|
AuroraPostgres = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AuroraPostgres").msgclass
|
1267
1283
|
Azure = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Azure").msgclass
|
1268
1284
|
AzureCertificate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AzureCertificate").msgclass
|
1285
|
+
AzureMysql = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AzureMysql").msgclass
|
1269
1286
|
AzurePostgres = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AzurePostgres").msgclass
|
1270
1287
|
BigQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.BigQuery").msgclass
|
1271
1288
|
Cassandra = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Cassandra").msgclass
|
data/lib/grpc/options_pb.rb
CHANGED
@@ -57,6 +57,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
57
57
|
optional :terraform_computed, :bool, 1941322
|
58
58
|
optional :custom, :message, 1941305, "v1.CustomOptions"
|
59
59
|
map :read_only_override, :string, :bool, 1941312
|
60
|
+
optional :condition, :string, 1941323
|
60
61
|
end
|
61
62
|
add_message "v1.CustomOptions" do
|
62
63
|
optional :converter, :string, 1941309
|
data/lib/grpc/plumbing.rb
CHANGED
@@ -1664,6 +1664,64 @@ module SDM
|
|
1664
1664
|
end
|
1665
1665
|
items
|
1666
1666
|
end
|
1667
|
+
def self.convert_azure_mysql_to_porcelain(plumbing)
|
1668
|
+
if plumbing == nil
|
1669
|
+
return nil
|
1670
|
+
end
|
1671
|
+
porcelain = AzureMysql.new()
|
1672
|
+
porcelain.bind_interface = (plumbing.bind_interface)
|
1673
|
+
porcelain.database = (plumbing.database)
|
1674
|
+
porcelain.egress_filter = (plumbing.egress_filter)
|
1675
|
+
porcelain.healthy = (plumbing.healthy)
|
1676
|
+
porcelain.hostname = (plumbing.hostname)
|
1677
|
+
porcelain.id = (plumbing.id)
|
1678
|
+
porcelain.name = (plumbing.name)
|
1679
|
+
porcelain.password = (plumbing.password)
|
1680
|
+
porcelain.port = (plumbing.port)
|
1681
|
+
porcelain.port_override = (plumbing.port_override)
|
1682
|
+
porcelain.secret_store_id = (plumbing.secret_store_id)
|
1683
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
1684
|
+
porcelain.username = (plumbing.username)
|
1685
|
+
porcelain
|
1686
|
+
end
|
1687
|
+
|
1688
|
+
def self.convert_azure_mysql_to_plumbing(porcelain)
|
1689
|
+
if porcelain == nil
|
1690
|
+
return nil
|
1691
|
+
end
|
1692
|
+
plumbing = V1::AzureMysql.new()
|
1693
|
+
plumbing.bind_interface = (porcelain.bind_interface)
|
1694
|
+
plumbing.database = (porcelain.database)
|
1695
|
+
plumbing.egress_filter = (porcelain.egress_filter)
|
1696
|
+
plumbing.healthy = (porcelain.healthy)
|
1697
|
+
plumbing.hostname = (porcelain.hostname)
|
1698
|
+
plumbing.id = (porcelain.id)
|
1699
|
+
plumbing.name = (porcelain.name)
|
1700
|
+
plumbing.password = (porcelain.password)
|
1701
|
+
plumbing.port = (porcelain.port)
|
1702
|
+
plumbing.port_override = (porcelain.port_override)
|
1703
|
+
plumbing.secret_store_id = (porcelain.secret_store_id)
|
1704
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags)
|
1705
|
+
plumbing.username = (porcelain.username)
|
1706
|
+
plumbing
|
1707
|
+
end
|
1708
|
+
def self.convert_repeated_azure_mysql_to_plumbing(porcelains)
|
1709
|
+
items = Array.new
|
1710
|
+
porcelains.each do |porcelain|
|
1711
|
+
plumbing = convert_azure_mysql_to_plumbing(porcelain)
|
1712
|
+
items.append(plumbing)
|
1713
|
+
end
|
1714
|
+
items
|
1715
|
+
end
|
1716
|
+
|
1717
|
+
def self.convert_repeated_azure_mysql_to_porcelain(plumbings)
|
1718
|
+
items = Array.new
|
1719
|
+
plumbings.each do |plumbing|
|
1720
|
+
porcelain = convert_azure_mysql_to_porcelain(plumbing)
|
1721
|
+
items.append(porcelain)
|
1722
|
+
end
|
1723
|
+
items
|
1724
|
+
end
|
1667
1725
|
def self.convert_azure_postgres_to_porcelain(plumbing)
|
1668
1726
|
if plumbing == nil
|
1669
1727
|
return nil
|
@@ -5440,6 +5498,9 @@ module SDM
|
|
5440
5498
|
if porcelain.instance_of? AzureCertificate
|
5441
5499
|
plumbing.azure_certificate = convert_azure_certificate_to_plumbing(porcelain)
|
5442
5500
|
end
|
5501
|
+
if porcelain.instance_of? AzureMysql
|
5502
|
+
plumbing.azure_mysql = convert_azure_mysql_to_plumbing(porcelain)
|
5503
|
+
end
|
5443
5504
|
if porcelain.instance_of? AzurePostgres
|
5444
5505
|
plumbing.azure_postgres = convert_azure_postgres_to_plumbing(porcelain)
|
5445
5506
|
end
|
@@ -5669,6 +5730,9 @@ module SDM
|
|
5669
5730
|
if plumbing.azure_certificate != nil
|
5670
5731
|
return convert_azure_certificate_to_porcelain(plumbing.azure_certificate)
|
5671
5732
|
end
|
5733
|
+
if plumbing.azure_mysql != nil
|
5734
|
+
return convert_azure_mysql_to_porcelain(plumbing.azure_mysql)
|
5735
|
+
end
|
5672
5736
|
if plumbing.azure_postgres != nil
|
5673
5737
|
return convert_azure_postgres_to_porcelain(plumbing.azure_postgres)
|
5674
5738
|
end
|
data/lib/models/porcelain.rb
CHANGED
@@ -1578,6 +1578,74 @@ module SDM
|
|
1578
1578
|
end
|
1579
1579
|
end
|
1580
1580
|
|
1581
|
+
# AzureMysql is currently unstable, and its API may change, or it may be removed, without a major version bump.
|
1582
|
+
class AzureMysql
|
1583
|
+
# Bind interface
|
1584
|
+
attr_accessor :bind_interface
|
1585
|
+
|
1586
|
+
attr_accessor :database
|
1587
|
+
# A filter applied to the routing logic to pin datasource to nodes.
|
1588
|
+
attr_accessor :egress_filter
|
1589
|
+
# True if the datasource is reachable and the credentials are valid.
|
1590
|
+
attr_accessor :healthy
|
1591
|
+
|
1592
|
+
attr_accessor :hostname
|
1593
|
+
# Unique identifier of the Resource.
|
1594
|
+
attr_accessor :id
|
1595
|
+
# Unique human-readable name of the Resource.
|
1596
|
+
attr_accessor :name
|
1597
|
+
|
1598
|
+
attr_accessor :password
|
1599
|
+
|
1600
|
+
attr_accessor :port
|
1601
|
+
|
1602
|
+
attr_accessor :port_override
|
1603
|
+
# ID of the secret store containing credentials for this resource, if any.
|
1604
|
+
attr_accessor :secret_store_id
|
1605
|
+
# Tags is a map of key, value pairs.
|
1606
|
+
attr_accessor :tags
|
1607
|
+
|
1608
|
+
attr_accessor :username
|
1609
|
+
|
1610
|
+
def initialize(
|
1611
|
+
bind_interface: nil,
|
1612
|
+
database: nil,
|
1613
|
+
egress_filter: nil,
|
1614
|
+
healthy: nil,
|
1615
|
+
hostname: nil,
|
1616
|
+
id: nil,
|
1617
|
+
name: nil,
|
1618
|
+
password: nil,
|
1619
|
+
port: nil,
|
1620
|
+
port_override: nil,
|
1621
|
+
secret_store_id: nil,
|
1622
|
+
tags: nil,
|
1623
|
+
username: nil
|
1624
|
+
)
|
1625
|
+
@bind_interface = bind_interface == nil ? "" : bind_interface
|
1626
|
+
@database = database == nil ? "" : database
|
1627
|
+
@egress_filter = egress_filter == nil ? "" : egress_filter
|
1628
|
+
@healthy = healthy == nil ? false : healthy
|
1629
|
+
@hostname = hostname == nil ? "" : hostname
|
1630
|
+
@id = id == nil ? "" : id
|
1631
|
+
@name = name == nil ? "" : name
|
1632
|
+
@password = password == nil ? "" : password
|
1633
|
+
@port = port == nil ? 0 : port
|
1634
|
+
@port_override = port_override == nil ? 0 : port_override
|
1635
|
+
@secret_store_id = secret_store_id == nil ? "" : secret_store_id
|
1636
|
+
@tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
|
1637
|
+
@username = username == nil ? "" : username
|
1638
|
+
end
|
1639
|
+
|
1640
|
+
def to_json(options = {})
|
1641
|
+
hash = {}
|
1642
|
+
self.instance_variables.each do |var|
|
1643
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
1644
|
+
end
|
1645
|
+
hash.to_json
|
1646
|
+
end
|
1647
|
+
end
|
1648
|
+
|
1581
1649
|
class AzurePostgres
|
1582
1650
|
# Bind interface
|
1583
1651
|
attr_accessor :bind_interface
|
@@ -4678,7 +4746,6 @@ module SDM
|
|
4678
4746
|
end
|
4679
4747
|
end
|
4680
4748
|
|
4681
|
-
# Oracle is currently unstable, and its API may change, or it may be removed, without a major version bump.
|
4682
4749
|
class Oracle
|
4683
4750
|
# Bind interface
|
4684
4751
|
attr_accessor :bind_interface
|
data/lib/strongdm.rb
CHANGED
@@ -17,6 +17,7 @@
|
|
17
17
|
|
18
18
|
require_relative "./svc"
|
19
19
|
require "base64"
|
20
|
+
require "grpc"
|
20
21
|
require "openssl"
|
21
22
|
require "time"
|
22
23
|
|
@@ -28,7 +29,7 @@ module SDM #:nodoc:
|
|
28
29
|
DEFAULT_BASE_RETRY_DELAY = 0.0030 # 30 ms
|
29
30
|
DEFAULT_MAX_RETRY_DELAY = 300 # 300 seconds
|
30
31
|
API_VERSION = "2021-08-23"
|
31
|
-
USER_AGENT = "strongdm-sdk-ruby/3.3.
|
32
|
+
USER_AGENT = "strongdm-sdk-ruby/3.3.2"
|
32
33
|
private_constant :DEFAULT_MAX_RETRIES, :DEFAULT_BASE_RETRY_DELAY, :DEFAULT_MAX_RETRY_DELAY, :API_VERSION, :USER_AGENT
|
33
34
|
|
34
35
|
# Creates a new strongDM API client.
|
@@ -42,19 +43,38 @@ module SDM #:nodoc:
|
|
42
43
|
@base_retry_delay = DEFAULT_BASE_RETRY_DELAY
|
43
44
|
@max_retry_delay = DEFAULT_MAX_RETRY_DELAY
|
44
45
|
@expose_rate_limit_errors = (not retry_rate_limit_errors)
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
46
|
+
begin
|
47
|
+
if insecure
|
48
|
+
@channel = GRPC::Core::Channel.new(host, {}, :this_channel_is_insecure)
|
49
|
+
else
|
50
|
+
cred = GRPC::Core::ChannelCredentials.new()
|
51
|
+
@channel = GRPC::Core::Channel.new(host, {}, cred)
|
52
|
+
end
|
53
|
+
rescue => exception
|
54
|
+
raise Plumbing::convert_error_to_porcelain(exception)
|
55
|
+
end
|
56
|
+
@account_attachments = AccountAttachments.new(@channel, self)
|
57
|
+
@account_grants = AccountGrants.new(@channel, self)
|
58
|
+
@accounts = Accounts.new(@channel, self)
|
59
|
+
@control_panel = ControlPanel.new(@channel, self)
|
60
|
+
@nodes = Nodes.new(@channel, self)
|
61
|
+
@remote_identities = RemoteIdentities.new(@channel, self)
|
62
|
+
@remote_identity_groups = RemoteIdentityGroups.new(@channel, self)
|
63
|
+
@resources = Resources.new(@channel, self)
|
64
|
+
@roles = Roles.new(@channel, self)
|
65
|
+
@secret_stores = SecretStores.new(@channel, self)
|
55
66
|
@_test_options = Hash.new
|
56
67
|
end
|
57
68
|
|
69
|
+
# Closes this client and releases all resources held by it.
|
70
|
+
def close
|
71
|
+
begin
|
72
|
+
@channel.close()
|
73
|
+
rescue => exception
|
74
|
+
raise Plumbing::convert_error_to_porcelain(exception)
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
58
78
|
# @private
|
59
79
|
def get_metadata(method_name, req)
|
60
80
|
return {
|
@@ -96,6 +116,10 @@ module SDM #:nodoc:
|
|
96
116
|
if (iter >= @max_retries - 1)
|
97
117
|
return false
|
98
118
|
end
|
119
|
+
# The grpc library unfortunately does not raise a more specific error class.
|
120
|
+
if err.is_a? RuntimeError and err.message == "closed!"
|
121
|
+
return false
|
122
|
+
end
|
99
123
|
if not err.is_a? GRPC::BadStatus
|
100
124
|
return true
|
101
125
|
end
|
data/lib/svc.rb
CHANGED
@@ -30,14 +30,9 @@ module SDM #:nodoc:
|
|
30
30
|
class AccountAttachments
|
31
31
|
extend Gem::Deprecate
|
32
32
|
|
33
|
-
def initialize(
|
33
|
+
def initialize(channel, parent)
|
34
34
|
begin
|
35
|
-
|
36
|
-
@stub = V1::AccountAttachments::Stub.new(host, :this_channel_is_insecure)
|
37
|
-
else
|
38
|
-
cred = GRPC::Core::ChannelCredentials.new()
|
39
|
-
@stub = V1::AccountAttachments::Stub.new(host, cred)
|
40
|
-
end
|
35
|
+
@stub = V1::AccountAttachments::Stub.new(nil, nil, channel_override: channel)
|
41
36
|
rescue => exception
|
42
37
|
raise Plumbing::convert_error_to_porcelain(exception)
|
43
38
|
end
|
@@ -177,14 +172,9 @@ module SDM #:nodoc:
|
|
177
172
|
class AccountGrants
|
178
173
|
extend Gem::Deprecate
|
179
174
|
|
180
|
-
def initialize(
|
175
|
+
def initialize(channel, parent)
|
181
176
|
begin
|
182
|
-
|
183
|
-
@stub = V1::AccountGrants::Stub.new(host, :this_channel_is_insecure)
|
184
|
-
else
|
185
|
-
cred = GRPC::Core::ChannelCredentials.new()
|
186
|
-
@stub = V1::AccountGrants::Stub.new(host, cred)
|
187
|
-
end
|
177
|
+
@stub = V1::AccountGrants::Stub.new(nil, nil, channel_override: channel)
|
188
178
|
rescue => exception
|
189
179
|
raise Plumbing::convert_error_to_porcelain(exception)
|
190
180
|
end
|
@@ -328,14 +318,9 @@ module SDM #:nodoc:
|
|
328
318
|
class Accounts
|
329
319
|
extend Gem::Deprecate
|
330
320
|
|
331
|
-
def initialize(
|
321
|
+
def initialize(channel, parent)
|
332
322
|
begin
|
333
|
-
|
334
|
-
@stub = V1::Accounts::Stub.new(host, :this_channel_is_insecure)
|
335
|
-
else
|
336
|
-
cred = GRPC::Core::ChannelCredentials.new()
|
337
|
-
@stub = V1::Accounts::Stub.new(host, cred)
|
338
|
-
end
|
323
|
+
@stub = V1::Accounts::Stub.new(nil, nil, channel_override: channel)
|
339
324
|
rescue => exception
|
340
325
|
raise Plumbing::convert_error_to_porcelain(exception)
|
341
326
|
end
|
@@ -504,14 +489,9 @@ module SDM #:nodoc:
|
|
504
489
|
class ControlPanel
|
505
490
|
extend Gem::Deprecate
|
506
491
|
|
507
|
-
def initialize(
|
492
|
+
def initialize(channel, parent)
|
508
493
|
begin
|
509
|
-
|
510
|
-
@stub = V1::ControlPanel::Stub.new(host, :this_channel_is_insecure)
|
511
|
-
else
|
512
|
-
cred = GRPC::Core::ChannelCredentials.new()
|
513
|
-
@stub = V1::ControlPanel::Stub.new(host, cred)
|
514
|
-
end
|
494
|
+
@stub = V1::ControlPanel::Stub.new(nil, nil, channel_override: channel)
|
515
495
|
rescue => exception
|
516
496
|
raise Plumbing::convert_error_to_porcelain(exception)
|
517
497
|
end
|
@@ -587,14 +567,9 @@ module SDM #:nodoc:
|
|
587
567
|
class Nodes
|
588
568
|
extend Gem::Deprecate
|
589
569
|
|
590
|
-
def initialize(
|
570
|
+
def initialize(channel, parent)
|
591
571
|
begin
|
592
|
-
|
593
|
-
@stub = V1::Nodes::Stub.new(host, :this_channel_is_insecure)
|
594
|
-
else
|
595
|
-
cred = GRPC::Core::ChannelCredentials.new()
|
596
|
-
@stub = V1::Nodes::Stub.new(host, cred)
|
597
|
-
end
|
572
|
+
@stub = V1::Nodes::Stub.new(nil, nil, channel_override: channel)
|
598
573
|
rescue => exception
|
599
574
|
raise Plumbing::convert_error_to_porcelain(exception)
|
600
575
|
end
|
@@ -765,14 +740,9 @@ module SDM #:nodoc:
|
|
765
740
|
class RemoteIdentities
|
766
741
|
extend Gem::Deprecate
|
767
742
|
|
768
|
-
def initialize(
|
743
|
+
def initialize(channel, parent)
|
769
744
|
begin
|
770
|
-
|
771
|
-
@stub = V1::RemoteIdentities::Stub.new(host, :this_channel_is_insecure)
|
772
|
-
else
|
773
|
-
cred = GRPC::Core::ChannelCredentials.new()
|
774
|
-
@stub = V1::RemoteIdentities::Stub.new(host, cred)
|
775
|
-
end
|
745
|
+
@stub = V1::RemoteIdentities::Stub.new(nil, nil, channel_override: channel)
|
776
746
|
rescue => exception
|
777
747
|
raise Plumbing::convert_error_to_porcelain(exception)
|
778
748
|
end
|
@@ -943,14 +913,9 @@ module SDM #:nodoc:
|
|
943
913
|
class RemoteIdentityGroups
|
944
914
|
extend Gem::Deprecate
|
945
915
|
|
946
|
-
def initialize(
|
916
|
+
def initialize(channel, parent)
|
947
917
|
begin
|
948
|
-
|
949
|
-
@stub = V1::RemoteIdentityGroups::Stub.new(host, :this_channel_is_insecure)
|
950
|
-
else
|
951
|
-
cred = GRPC::Core::ChannelCredentials.new()
|
952
|
-
@stub = V1::RemoteIdentityGroups::Stub.new(host, cred)
|
953
|
-
end
|
918
|
+
@stub = V1::RemoteIdentityGroups::Stub.new(nil, nil, channel_override: channel)
|
954
919
|
rescue => exception
|
955
920
|
raise Plumbing::convert_error_to_porcelain(exception)
|
956
921
|
end
|
@@ -1046,6 +1011,7 @@ module SDM #:nodoc:
|
|
1046
1011
|
# {AWSConsoleStaticKeyPair}
|
1047
1012
|
# {Azure}
|
1048
1013
|
# {AzureCertificate}
|
1014
|
+
# {AzureMysql}
|
1049
1015
|
# {AzurePostgres}
|
1050
1016
|
# {BigQuery}
|
1051
1017
|
# {Cassandra}
|
@@ -1106,14 +1072,9 @@ module SDM #:nodoc:
|
|
1106
1072
|
class Resources
|
1107
1073
|
extend Gem::Deprecate
|
1108
1074
|
|
1109
|
-
def initialize(
|
1075
|
+
def initialize(channel, parent)
|
1110
1076
|
begin
|
1111
|
-
|
1112
|
-
@stub = V1::Resources::Stub.new(host, :this_channel_is_insecure)
|
1113
|
-
else
|
1114
|
-
cred = GRPC::Core::ChannelCredentials.new()
|
1115
|
-
@stub = V1::Resources::Stub.new(host, cred)
|
1116
|
-
end
|
1077
|
+
@stub = V1::Resources::Stub.new(nil, nil, channel_override: channel)
|
1117
1078
|
rescue => exception
|
1118
1079
|
raise Plumbing::convert_error_to_porcelain(exception)
|
1119
1080
|
end
|
@@ -1322,14 +1283,9 @@ module SDM #:nodoc:
|
|
1322
1283
|
class Roles
|
1323
1284
|
extend Gem::Deprecate
|
1324
1285
|
|
1325
|
-
def initialize(
|
1286
|
+
def initialize(channel, parent)
|
1326
1287
|
begin
|
1327
|
-
|
1328
|
-
@stub = V1::Roles::Stub.new(host, :this_channel_is_insecure)
|
1329
|
-
else
|
1330
|
-
cred = GRPC::Core::ChannelCredentials.new()
|
1331
|
-
@stub = V1::Roles::Stub.new(host, cred)
|
1332
|
-
end
|
1288
|
+
@stub = V1::Roles::Stub.new(nil, nil, channel_override: channel)
|
1333
1289
|
rescue => exception
|
1334
1290
|
raise Plumbing::convert_error_to_porcelain(exception)
|
1335
1291
|
end
|
@@ -1508,14 +1464,9 @@ module SDM #:nodoc:
|
|
1508
1464
|
class SecretStores
|
1509
1465
|
extend Gem::Deprecate
|
1510
1466
|
|
1511
|
-
def initialize(
|
1467
|
+
def initialize(channel, parent)
|
1512
1468
|
begin
|
1513
|
-
|
1514
|
-
@stub = V1::SecretStores::Stub.new(host, :this_channel_is_insecure)
|
1515
|
-
else
|
1516
|
-
cred = GRPC::Core::ChannelCredentials.new()
|
1517
|
-
@stub = V1::SecretStores::Stub.new(host, cred)
|
1518
|
-
end
|
1469
|
+
@stub = V1::SecretStores::Stub.new(nil, nil, channel_override: channel)
|
1519
1470
|
rescue => exception
|
1520
1471
|
raise Plumbing::convert_error_to_porcelain(exception)
|
1521
1472
|
end
|
data/lib/version
CHANGED
data/lib/version.rb
CHANGED
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: 3.3.
|
4
|
+
version: 3.3.2
|
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-
|
11
|
+
date: 2022-11-14 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-
|
83
|
-
- "./.git/objects/pack/pack-
|
82
|
+
- "./.git/objects/pack/pack-583241b1feb5d3f1bb783f96ef7095fc246598d0.idx"
|
83
|
+
- "./.git/objects/pack/pack-583241b1feb5d3f1bb783f96ef7095fc246598d0.pack"
|
84
84
|
- "./.git/packed-refs"
|
85
85
|
- "./.git/refs/heads/master"
|
86
86
|
- "./.git/refs/remotes/origin/HEAD"
|
@@ -139,8 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: 1.3.6
|
141
141
|
requirements: []
|
142
|
-
|
143
|
-
rubygems_version: 2.7.6
|
142
|
+
rubygems_version: 3.0.8
|
144
143
|
signing_key:
|
145
144
|
specification_version: 4
|
146
145
|
summary: strongDM SDK for the Ruby programming language.
|