strongdm 12.9.1 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-46b520555ff4bd7aff09097786a70668cf7ac565.idx → pack-8356c5bc0cb3b3700f0526409578d05bd2b0438a.idx} +0 -0
- data/.git/objects/pack/{pack-46b520555ff4bd7aff09097786a70668cf7ac565.pack → pack-8356c5bc0cb3b3700f0526409578d05bd2b0438a.pack} +0 -0
- data/.git/packed-refs +4 -2
- data/.git/refs/heads/master +1 -1
- data/lib/grpc/plumbing.rb +19 -0
- data/lib/models/porcelain.rb +8 -0
- data/lib/strongdm.rb +1 -1
- data/lib/version +1 -1
- data/lib/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d486bd86774f74ff16adaa45050effd2e4a42f6b0418d1a81b8a2681913b3e72
|
4
|
+
data.tar.gz: b06f800d569ac31fb60b5b07fb2d7a8ef48f7d94396ffeba2f1e51e63b87f121
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7aaffed15dbd08d92f4c2e7a0097f1e28f300402d7d2597715e68801cfe863d9743ea8e22a7e54235fcc39e509115f94f258f3696a4daf5023b3539bde367a5c
|
7
|
+
data.tar.gz: 82b592696ffe73f1c38acbafb44f2ed5f3c27097f5bbea2174271145d4dfe42b61c67098d70087b135351817680538476926f45617a7ff8d9a4337905c12771a
|
data/.git/ORIG_HEAD
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
e3f4328684ecbb0461100f1954c2b33a81537499
|
data/.git/index
CHANGED
Binary file
|
data/.git/logs/HEAD
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
0000000000000000000000000000000000000000
|
2
|
-
|
3
|
-
|
1
|
+
0000000000000000000000000000000000000000 e3f4328684ecbb0461100f1954c2b33a81537499 root <root@6e81d0220aec.(none)> 1741022662 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
|
2
|
+
e3f4328684ecbb0461100f1954c2b33a81537499 e3f4328684ecbb0461100f1954c2b33a81537499 root <root@6e81d0220aec.(none)> 1741022662 +0000 checkout: moving from master to master
|
3
|
+
e3f4328684ecbb0461100f1954c2b33a81537499 7b3f19015f0280427b602d2b8c5371dddacd8299 root <root@6e81d0220aec.(none)> 1741022662 +0000 merge origin/development: Fast-forward
|
data/.git/logs/refs/heads/master
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
0000000000000000000000000000000000000000
|
2
|
-
|
1
|
+
0000000000000000000000000000000000000000 e3f4328684ecbb0461100f1954c2b33a81537499 root <root@6e81d0220aec.(none)> 1741022662 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
|
2
|
+
e3f4328684ecbb0461100f1954c2b33a81537499 7b3f19015f0280427b602d2b8c5371dddacd8299 root <root@6e81d0220aec.(none)> 1741022662 +0000 merge origin/development: Fast-forward
|
@@ -1 +1 @@
|
|
1
|
-
0000000000000000000000000000000000000000
|
1
|
+
0000000000000000000000000000000000000000 e3f4328684ecbb0461100f1954c2b33a81537499 root <root@6e81d0220aec.(none)> 1741022662 +0000 clone: from 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
|
+
7b3f19015f0280427b602d2b8c5371dddacd8299 refs/remotes/origin/development
|
3
|
+
e3f4328684ecbb0461100f1954c2b33a81537499 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
|
@@ -60,12 +60,14 @@ cc3ff44b177b0c33bfbd0b0b9d76dc9679d871fd refs/tags/v11.7.0
|
|
60
60
|
867fdf37a506e4ee5726e06b65a2517413077d23 refs/tags/v11.9.0
|
61
61
|
dea63eda193578749a7430e674f939e5f452a50b refs/tags/v12.0.0
|
62
62
|
62153b27115243969f8f6048b9496f7801efb619 refs/tags/v12.1.0
|
63
|
+
e3f4328684ecbb0461100f1954c2b33a81537499 refs/tags/v12.10.0
|
63
64
|
d3ba64b9e0147a8f79b33775f1ca635dbcad3b68 refs/tags/v12.2.0
|
64
65
|
d2362ed882a935fc6d6a52abace4e581be82507d refs/tags/v12.4.0
|
65
66
|
2a5ebb62111d5382cb0b30fc81a5972f8e4e20c9 refs/tags/v12.5.0
|
66
67
|
9b1252fecc0db33645ced8adcbc49512187943e6 refs/tags/v12.6.0
|
67
68
|
b68a30b7513dbbdada47704bd34510560b4ee8ca refs/tags/v12.8.0
|
68
69
|
8fd657047e6c4668fb718fa296a6901e0b2d9188 refs/tags/v12.9.0
|
70
|
+
76b1957fe731ca91ce70123ec943bde26ea9e0ec refs/tags/v12.9.1
|
69
71
|
e0b1ec0134c7015ccb8c14464cc713c20034159e refs/tags/v2.0.0
|
70
72
|
62a146d9d56852b2ad14ec5d2796cad158d66e1c refs/tags/v2.1.0
|
71
73
|
9de04e628082f4ad0eb9511311479a089d302008 refs/tags/v2.2.0
|
data/.git/refs/heads/master
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
7b3f19015f0280427b602d2b8c5371dddacd8299
|
data/lib/grpc/plumbing.rb
CHANGED
@@ -173,6 +173,23 @@ module SDM
|
|
173
173
|
end
|
174
174
|
JSON.dump(access_rules)
|
175
175
|
end
|
176
|
+
|
177
|
+
def self.convert_access_rule_to_porcelain(access_rule_json)
|
178
|
+
if access_rule_json == nil
|
179
|
+
return nil
|
180
|
+
end
|
181
|
+
if access_rule_json == ""
|
182
|
+
return nil
|
183
|
+
end
|
184
|
+
JSON.parse(access_rule_json)
|
185
|
+
end
|
186
|
+
|
187
|
+
def self.convert_access_rule_to_plumbing(access_rule)
|
188
|
+
if access_rule == nil
|
189
|
+
return nil
|
190
|
+
end
|
191
|
+
JSON.dump(access_rule)
|
192
|
+
end
|
176
193
|
def self.convert_aks_to_porcelain(plumbing)
|
177
194
|
if plumbing == nil
|
178
195
|
return nil
|
@@ -1497,6 +1514,7 @@ module SDM
|
|
1497
1514
|
return nil
|
1498
1515
|
end
|
1499
1516
|
porcelain = AccountGrant.new()
|
1517
|
+
porcelain.access_rule = convert_access_rule_to_porcelain(plumbing.access_rule)
|
1500
1518
|
porcelain.account_id = (plumbing.account_id)
|
1501
1519
|
porcelain.id = (plumbing.id)
|
1502
1520
|
porcelain.resource_id = (plumbing.resource_id)
|
@@ -1510,6 +1528,7 @@ module SDM
|
|
1510
1528
|
return nil
|
1511
1529
|
end
|
1512
1530
|
plumbing = V1::AccountGrant.new()
|
1531
|
+
plumbing.access_rule = convert_access_rule_to_plumbing(porcelain.access_rule)
|
1513
1532
|
plumbing.account_id = (porcelain.account_id)
|
1514
1533
|
plumbing.id = (porcelain.id)
|
1515
1534
|
plumbing.resource_id = (porcelain.resource_id)
|
data/lib/models/porcelain.rb
CHANGED
@@ -1319,6 +1319,8 @@ module SDM
|
|
1319
1319
|
|
1320
1320
|
# AccountGrants connect a resource directly to an account, giving the account the permission to connect to that resource.
|
1321
1321
|
class AccountGrant
|
1322
|
+
# The access rule associated with this AccountGrant.
|
1323
|
+
attr_accessor :access_rule
|
1322
1324
|
# The account ID of this AccountGrant.
|
1323
1325
|
attr_accessor :account_id
|
1324
1326
|
# Unique identifier of the AccountGrant.
|
@@ -1331,12 +1333,14 @@ module SDM
|
|
1331
1333
|
attr_accessor :valid_until
|
1332
1334
|
|
1333
1335
|
def initialize(
|
1336
|
+
access_rule: nil,
|
1334
1337
|
account_id: nil,
|
1335
1338
|
id: nil,
|
1336
1339
|
resource_id: nil,
|
1337
1340
|
start_from: nil,
|
1338
1341
|
valid_until: nil
|
1339
1342
|
)
|
1343
|
+
@access_rule = access_rule == nil ? SDM::_porcelain_zero_value_access_rule() : access_rule
|
1340
1344
|
@account_id = account_id == nil ? "" : account_id
|
1341
1345
|
@id = id == nil ? "" : id
|
1342
1346
|
@resource_id = resource_id == nil ? "" : resource_id
|
@@ -14321,4 +14325,8 @@ module SDM
|
|
14321
14325
|
def self._porcelain_zero_value_access_rules()
|
14322
14326
|
[]
|
14323
14327
|
end
|
14328
|
+
# @private
|
14329
|
+
def self._porcelain_zero_value_access_rule()
|
14330
|
+
{}
|
14331
|
+
end
|
14324
14332
|
end
|
data/lib/strongdm.rb
CHANGED
@@ -29,7 +29,7 @@ module SDM #:nodoc:
|
|
29
29
|
DEFAULT_BASE_RETRY_DELAY = 0.0030 # 30 ms
|
30
30
|
DEFAULT_MAX_RETRY_DELAY = 300 # 300 seconds
|
31
31
|
API_VERSION = "2024-03-28"
|
32
|
-
USER_AGENT = "strongdm-sdk-ruby/
|
32
|
+
USER_AGENT = "strongdm-sdk-ruby/13.0.0"
|
33
33
|
private_constant :DEFAULT_MAX_RETRIES, :DEFAULT_BASE_RETRY_DELAY, :DEFAULT_MAX_RETRY_DELAY, :API_VERSION, :USER_AGENT
|
34
34
|
|
35
35
|
# Creates a new strongDM API client.
|
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:
|
4
|
+
version: 13.0.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: 2025-
|
11
|
+
date: 2025-03-03 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/HEAD"
|
82
82
|
- "./.git/logs/refs/heads/master"
|
83
83
|
- "./.git/logs/refs/remotes/origin/HEAD"
|
84
|
-
- "./.git/objects/pack/pack-
|
85
|
-
- "./.git/objects/pack/pack-
|
84
|
+
- "./.git/objects/pack/pack-8356c5bc0cb3b3700f0526409578d05bd2b0438a.idx"
|
85
|
+
- "./.git/objects/pack/pack-8356c5bc0cb3b3700f0526409578d05bd2b0438a.pack"
|
86
86
|
- "./.git/packed-refs"
|
87
87
|
- "./.git/refs/heads/master"
|
88
88
|
- "./.git/refs/remotes/origin/HEAD"
|