strongdm 9.0.0 → 9.1.0
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-585dae52e145926574c317ae9b4a8c7204dd11f8.idx → pack-b863bfb2a5ebd4829cb3113f9948506fcf657f16.idx} +0 -0
- data/.git/objects/pack/{pack-585dae52e145926574c317ae9b4a8c7204dd11f8.pack → pack-b863bfb2a5ebd4829cb3113f9948506fcf657f16.pack} +0 -0
- data/.git/packed-refs +3 -2
- data/.git/refs/heads/master +1 -1
- data/lib/grpc/identity_sets_pb.rb +33 -0
- data/lib/grpc/identity_sets_services_pb.rb +6 -18
- data/lib/grpc/plumbing.rb +112 -0
- data/lib/models/porcelain.rb +82 -0
- data/lib/strongdm.rb +1 -1
- data/lib/svc.rb +89 -0
- 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: 908c421dd1fa4091c5fef55c9a93fe4e324a1fe1230f9818bf8cb3f4282c23e8
|
4
|
+
data.tar.gz: 457252b86a58416cb4858ae0524fc9a4e8e6bd54c39beb27a3418555aff38acd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8781a61fce225495c644bfa5138f2b148b7e95e35a0251899fb95532ccf6be4bf979c2ca693fb61f3612d674b0b981c1796b8861058cfa04f2dcd2a4f393ca5
|
7
|
+
data.tar.gz: c965a0a9981dff96c91ffa507e5d824c7d99d214a2c9921531c28a029ba2c521126abc04f138fecbf134ae4335f012334c9f02426dd801ed03eca2996559d9d8
|
data/.git/ORIG_HEAD
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
510e35b667dd3c214950f99d2bd6cd24c41655ae
|
data/.git/index
CHANGED
Binary file
|
data/.git/logs/HEAD
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
0000000000000000000000000000000000000000
|
2
|
-
|
3
|
-
|
1
|
+
0000000000000000000000000000000000000000 510e35b667dd3c214950f99d2bd6cd24c41655ae root <root@e00d61fbce27.(none)> 1717015394 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
|
2
|
+
510e35b667dd3c214950f99d2bd6cd24c41655ae 510e35b667dd3c214950f99d2bd6cd24c41655ae root <root@e00d61fbce27.(none)> 1717015394 +0000 checkout: moving from master to master
|
3
|
+
510e35b667dd3c214950f99d2bd6cd24c41655ae 0271f35ba50e29ded8bbc919bcd180b8f5428fe6 root <root@e00d61fbce27.(none)> 1717015394 +0000 merge origin/development: Fast-forward
|
data/.git/logs/refs/heads/master
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
0000000000000000000000000000000000000000
|
2
|
-
|
1
|
+
0000000000000000000000000000000000000000 510e35b667dd3c214950f99d2bd6cd24c41655ae root <root@e00d61fbce27.(none)> 1717015394 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
|
2
|
+
510e35b667dd3c214950f99d2bd6cd24c41655ae 0271f35ba50e29ded8bbc919bcd180b8f5428fe6 root <root@e00d61fbce27.(none)> 1717015394 +0000 merge origin/development: Fast-forward
|
@@ -1 +1 @@
|
|
1
|
-
0000000000000000000000000000000000000000
|
1
|
+
0000000000000000000000000000000000000000 510e35b667dd3c214950f99d2bd6cd24c41655ae root <root@e00d61fbce27.(none)> 1717015394 +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
|
+
0271f35ba50e29ded8bbc919bcd180b8f5428fe6 refs/remotes/origin/development
|
3
|
+
510e35b667dd3c214950f99d2bd6cd24c41655ae 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
|
@@ -108,3 +108,4 @@ f34575bc142eabf113dbbc5b40b3a16e0c026355 refs/tags/v7.1.0
|
|
108
108
|
14ef2b24960a5e854b60586884494ed913221b5b refs/tags/v8.1.0
|
109
109
|
98b9ee54f8ca2dc8eecd977e22bf3d05ca667667 refs/tags/v8.3.0
|
110
110
|
6ca94f88b799db10fe2a0867b5b53718a0289d0a refs/tags/v8.4.0
|
111
|
+
510e35b667dd3c214950f99d2bd6cd24c41655ae refs/tags/v9.0.0
|
data/.git/refs/heads/master
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
0271f35ba50e29ded8bbc919bcd180b8f5428fe6
|
@@ -22,6 +22,15 @@ require "spec_pb"
|
|
22
22
|
|
23
23
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
24
24
|
add_file("identity_sets.proto", :syntax => :proto3) do
|
25
|
+
add_message "v1.IdentitySetCreateRequest" do
|
26
|
+
optional :meta, :message, 1, "v1.CreateRequestMetadata"
|
27
|
+
optional :identity_set, :message, 2, "v1.IdentitySet"
|
28
|
+
end
|
29
|
+
add_message "v1.IdentitySetCreateResponse" do
|
30
|
+
optional :meta, :message, 1, "v1.CreateResponseMetadata"
|
31
|
+
optional :identity_set, :message, 2, "v1.IdentitySet"
|
32
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
33
|
+
end
|
25
34
|
add_message "v1.IdentitySetGetRequest" do
|
26
35
|
optional :meta, :message, 1, "v1.GetRequestMetadata"
|
27
36
|
optional :id, :string, 2
|
@@ -31,6 +40,24 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
31
40
|
optional :identity_set, :message, 2, "v1.IdentitySet"
|
32
41
|
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
33
42
|
end
|
43
|
+
add_message "v1.IdentitySetUpdateRequest" do
|
44
|
+
optional :meta, :message, 1, "v1.UpdateRequestMetadata"
|
45
|
+
optional :id, :string, 2
|
46
|
+
optional :identity_set, :message, 3, "v1.IdentitySet"
|
47
|
+
end
|
48
|
+
add_message "v1.IdentitySetUpdateResponse" do
|
49
|
+
optional :meta, :message, 1, "v1.UpdateResponseMetadata"
|
50
|
+
optional :identity_set, :message, 2, "v1.IdentitySet"
|
51
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
52
|
+
end
|
53
|
+
add_message "v1.IdentitySetDeleteRequest" do
|
54
|
+
optional :meta, :message, 1, "v1.DeleteRequestMetadata"
|
55
|
+
optional :id, :string, 2
|
56
|
+
end
|
57
|
+
add_message "v1.IdentitySetDeleteResponse" do
|
58
|
+
optional :meta, :message, 1, "v1.DeleteResponseMetadata"
|
59
|
+
optional :rate_limit, :message, 2, "v1.RateLimitMetadata"
|
60
|
+
end
|
34
61
|
add_message "v1.IdentitySetListRequest" do
|
35
62
|
optional :meta, :message, 1, "v1.ListRequestMetadata"
|
36
63
|
optional :filter, :string, 2
|
@@ -48,8 +75,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
48
75
|
end
|
49
76
|
|
50
77
|
module V1
|
78
|
+
IdentitySetCreateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.IdentitySetCreateRequest").msgclass
|
79
|
+
IdentitySetCreateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.IdentitySetCreateResponse").msgclass
|
51
80
|
IdentitySetGetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.IdentitySetGetRequest").msgclass
|
52
81
|
IdentitySetGetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.IdentitySetGetResponse").msgclass
|
82
|
+
IdentitySetUpdateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.IdentitySetUpdateRequest").msgclass
|
83
|
+
IdentitySetUpdateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.IdentitySetUpdateResponse").msgclass
|
84
|
+
IdentitySetDeleteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.IdentitySetDeleteRequest").msgclass
|
85
|
+
IdentitySetDeleteResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.IdentitySetDeleteResponse").msgclass
|
53
86
|
IdentitySetListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.IdentitySetListRequest").msgclass
|
54
87
|
IdentitySetListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.IdentitySetListResponse").msgclass
|
55
88
|
IdentitySet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.IdentitySet").msgclass
|
@@ -29,26 +29,14 @@ module V1
|
|
29
29
|
self.unmarshal_class_method = :decode
|
30
30
|
self.service_name = "v1.IdentitySets"
|
31
31
|
|
32
|
-
#
|
33
|
-
|
34
|
-
# option (v1.method_options).method = "post";
|
35
|
-
# option (v1.method_options).url = "/v1/identity-sets";
|
36
|
-
# }
|
37
|
-
#
|
32
|
+
# Create registers a new IdentitySet.
|
33
|
+
rpc :Create, ::V1::IdentitySetCreateRequest, ::V1::IdentitySetCreateResponse
|
38
34
|
# Get reads one IdentitySet by ID.
|
39
35
|
rpc :Get, ::V1::IdentitySetGetRequest, ::V1::IdentitySetGetResponse
|
40
|
-
#
|
41
|
-
|
42
|
-
#
|
43
|
-
|
44
|
-
# }
|
45
|
-
#
|
46
|
-
# // Delete removes a IdentitySet by ID.
|
47
|
-
# rpc Delete(IdentitySetDeleteRequest) returns (IdentitySetDeleteResponse) {
|
48
|
-
# option (v1.method_options).method = "delete";
|
49
|
-
# option (v1.method_options).url = "/v1/identity-sets/{id}";
|
50
|
-
# }
|
51
|
-
#
|
36
|
+
# Update replaces all the fields of a IdentitySet by ID.
|
37
|
+
rpc :Update, ::V1::IdentitySetUpdateRequest, ::V1::IdentitySetUpdateResponse
|
38
|
+
# Delete removes a IdentitySet by ID.
|
39
|
+
rpc :Delete, ::V1::IdentitySetDeleteRequest, ::V1::IdentitySetDeleteResponse
|
52
40
|
# List gets a list of IdentitySets matching a given set of criteria.
|
53
41
|
rpc :List, ::V1::IdentitySetListRequest, ::V1::IdentitySetListResponse
|
54
42
|
end
|
data/lib/grpc/plumbing.rb
CHANGED
@@ -5682,6 +5682,80 @@ module SDM
|
|
5682
5682
|
end
|
5683
5683
|
items
|
5684
5684
|
end
|
5685
|
+
def self.convert_identity_set_create_response_to_porcelain(plumbing)
|
5686
|
+
if plumbing == nil
|
5687
|
+
return nil
|
5688
|
+
end
|
5689
|
+
porcelain = IdentitySetCreateResponse.new()
|
5690
|
+
porcelain.identity_set = convert_identity_set_to_porcelain(plumbing.identity_set)
|
5691
|
+
porcelain.meta = convert_create_response_metadata_to_porcelain(plumbing.meta)
|
5692
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
5693
|
+
porcelain
|
5694
|
+
end
|
5695
|
+
|
5696
|
+
def self.convert_identity_set_create_response_to_plumbing(porcelain)
|
5697
|
+
if porcelain == nil
|
5698
|
+
return nil
|
5699
|
+
end
|
5700
|
+
plumbing = V1::IdentitySetCreateResponse.new()
|
5701
|
+
plumbing.identity_set = convert_identity_set_to_plumbing(porcelain.identity_set)
|
5702
|
+
plumbing.meta = convert_create_response_metadata_to_plumbing(porcelain.meta)
|
5703
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
5704
|
+
plumbing
|
5705
|
+
end
|
5706
|
+
def self.convert_repeated_identity_set_create_response_to_plumbing(porcelains)
|
5707
|
+
items = Array.new
|
5708
|
+
porcelains.each do |porcelain|
|
5709
|
+
plumbing = convert_identity_set_create_response_to_plumbing(porcelain)
|
5710
|
+
items.append(plumbing)
|
5711
|
+
end
|
5712
|
+
items
|
5713
|
+
end
|
5714
|
+
|
5715
|
+
def self.convert_repeated_identity_set_create_response_to_porcelain(plumbings)
|
5716
|
+
items = Array.new
|
5717
|
+
plumbings.each do |plumbing|
|
5718
|
+
porcelain = convert_identity_set_create_response_to_porcelain(plumbing)
|
5719
|
+
items.append(porcelain)
|
5720
|
+
end
|
5721
|
+
items
|
5722
|
+
end
|
5723
|
+
def self.convert_identity_set_delete_response_to_porcelain(plumbing)
|
5724
|
+
if plumbing == nil
|
5725
|
+
return nil
|
5726
|
+
end
|
5727
|
+
porcelain = IdentitySetDeleteResponse.new()
|
5728
|
+
porcelain.meta = convert_delete_response_metadata_to_porcelain(plumbing.meta)
|
5729
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
5730
|
+
porcelain
|
5731
|
+
end
|
5732
|
+
|
5733
|
+
def self.convert_identity_set_delete_response_to_plumbing(porcelain)
|
5734
|
+
if porcelain == nil
|
5735
|
+
return nil
|
5736
|
+
end
|
5737
|
+
plumbing = V1::IdentitySetDeleteResponse.new()
|
5738
|
+
plumbing.meta = convert_delete_response_metadata_to_plumbing(porcelain.meta)
|
5739
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
5740
|
+
plumbing
|
5741
|
+
end
|
5742
|
+
def self.convert_repeated_identity_set_delete_response_to_plumbing(porcelains)
|
5743
|
+
items = Array.new
|
5744
|
+
porcelains.each do |porcelain|
|
5745
|
+
plumbing = convert_identity_set_delete_response_to_plumbing(porcelain)
|
5746
|
+
items.append(plumbing)
|
5747
|
+
end
|
5748
|
+
items
|
5749
|
+
end
|
5750
|
+
|
5751
|
+
def self.convert_repeated_identity_set_delete_response_to_porcelain(plumbings)
|
5752
|
+
items = Array.new
|
5753
|
+
plumbings.each do |plumbing|
|
5754
|
+
porcelain = convert_identity_set_delete_response_to_porcelain(plumbing)
|
5755
|
+
items.append(porcelain)
|
5756
|
+
end
|
5757
|
+
items
|
5758
|
+
end
|
5685
5759
|
def self.convert_identity_set_get_response_to_porcelain(plumbing)
|
5686
5760
|
if plumbing == nil
|
5687
5761
|
return nil
|
@@ -5760,6 +5834,44 @@ module SDM
|
|
5760
5834
|
end
|
5761
5835
|
items
|
5762
5836
|
end
|
5837
|
+
def self.convert_identity_set_update_response_to_porcelain(plumbing)
|
5838
|
+
if plumbing == nil
|
5839
|
+
return nil
|
5840
|
+
end
|
5841
|
+
porcelain = IdentitySetUpdateResponse.new()
|
5842
|
+
porcelain.identity_set = convert_identity_set_to_porcelain(plumbing.identity_set)
|
5843
|
+
porcelain.meta = convert_update_response_metadata_to_porcelain(plumbing.meta)
|
5844
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
5845
|
+
porcelain
|
5846
|
+
end
|
5847
|
+
|
5848
|
+
def self.convert_identity_set_update_response_to_plumbing(porcelain)
|
5849
|
+
if porcelain == nil
|
5850
|
+
return nil
|
5851
|
+
end
|
5852
|
+
plumbing = V1::IdentitySetUpdateResponse.new()
|
5853
|
+
plumbing.identity_set = convert_identity_set_to_plumbing(porcelain.identity_set)
|
5854
|
+
plumbing.meta = convert_update_response_metadata_to_plumbing(porcelain.meta)
|
5855
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
5856
|
+
plumbing
|
5857
|
+
end
|
5858
|
+
def self.convert_repeated_identity_set_update_response_to_plumbing(porcelains)
|
5859
|
+
items = Array.new
|
5860
|
+
porcelains.each do |porcelain|
|
5861
|
+
plumbing = convert_identity_set_update_response_to_plumbing(porcelain)
|
5862
|
+
items.append(plumbing)
|
5863
|
+
end
|
5864
|
+
items
|
5865
|
+
end
|
5866
|
+
|
5867
|
+
def self.convert_repeated_identity_set_update_response_to_porcelain(plumbings)
|
5868
|
+
items = Array.new
|
5869
|
+
plumbings.each do |plumbing|
|
5870
|
+
porcelain = convert_identity_set_update_response_to_porcelain(plumbing)
|
5871
|
+
items.append(porcelain)
|
5872
|
+
end
|
5873
|
+
items
|
5874
|
+
end
|
5763
5875
|
def self.convert_keyfactor_ssh_store_to_porcelain(plumbing)
|
5764
5876
|
if plumbing == nil
|
5765
5877
|
return nil
|
data/lib/models/porcelain.rb
CHANGED
@@ -5446,6 +5446,59 @@ module SDM
|
|
5446
5446
|
end
|
5447
5447
|
end
|
5448
5448
|
|
5449
|
+
# IdentitySetCreateResponse reports how the IdentitySets were created in the system. It can
|
5450
|
+
# communicate partial successes or failures.
|
5451
|
+
class IdentitySetCreateResponse
|
5452
|
+
# The created IdentitySet.
|
5453
|
+
attr_accessor :identity_set
|
5454
|
+
# Reserved for future use.
|
5455
|
+
attr_accessor :meta
|
5456
|
+
# Rate limit information.
|
5457
|
+
attr_accessor :rate_limit
|
5458
|
+
|
5459
|
+
def initialize(
|
5460
|
+
identity_set: nil,
|
5461
|
+
meta: nil,
|
5462
|
+
rate_limit: nil
|
5463
|
+
)
|
5464
|
+
@identity_set = identity_set == nil ? nil : identity_set
|
5465
|
+
@meta = meta == nil ? nil : meta
|
5466
|
+
@rate_limit = rate_limit == nil ? nil : rate_limit
|
5467
|
+
end
|
5468
|
+
|
5469
|
+
def to_json(options = {})
|
5470
|
+
hash = {}
|
5471
|
+
self.instance_variables.each do |var|
|
5472
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
5473
|
+
end
|
5474
|
+
hash.to_json
|
5475
|
+
end
|
5476
|
+
end
|
5477
|
+
|
5478
|
+
# IdentitySetDeleteResponse returns information about a IdentitySet that was deleted.
|
5479
|
+
class IdentitySetDeleteResponse
|
5480
|
+
# Reserved for future use.
|
5481
|
+
attr_accessor :meta
|
5482
|
+
# Rate limit information.
|
5483
|
+
attr_accessor :rate_limit
|
5484
|
+
|
5485
|
+
def initialize(
|
5486
|
+
meta: nil,
|
5487
|
+
rate_limit: nil
|
5488
|
+
)
|
5489
|
+
@meta = meta == nil ? nil : meta
|
5490
|
+
@rate_limit = rate_limit == nil ? nil : rate_limit
|
5491
|
+
end
|
5492
|
+
|
5493
|
+
def to_json(options = {})
|
5494
|
+
hash = {}
|
5495
|
+
self.instance_variables.each do |var|
|
5496
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
5497
|
+
end
|
5498
|
+
hash.to_json
|
5499
|
+
end
|
5500
|
+
end
|
5501
|
+
|
5449
5502
|
# IdentitySetGetResponse returns a requested IdentitySet.
|
5450
5503
|
class IdentitySetGetResponse
|
5451
5504
|
# The requested IdentitySet.
|
@@ -5509,6 +5562,35 @@ module SDM
|
|
5509
5562
|
end
|
5510
5563
|
end
|
5511
5564
|
|
5565
|
+
# IdentitySetUpdateResponse returns the fields of a IdentitySet after it has been updated by
|
5566
|
+
# a IdentitySetUpdateRequest.
|
5567
|
+
class IdentitySetUpdateResponse
|
5568
|
+
# The updated IdentitySet.
|
5569
|
+
attr_accessor :identity_set
|
5570
|
+
# Reserved for future use.
|
5571
|
+
attr_accessor :meta
|
5572
|
+
# Rate limit information.
|
5573
|
+
attr_accessor :rate_limit
|
5574
|
+
|
5575
|
+
def initialize(
|
5576
|
+
identity_set: nil,
|
5577
|
+
meta: nil,
|
5578
|
+
rate_limit: nil
|
5579
|
+
)
|
5580
|
+
@identity_set = identity_set == nil ? nil : identity_set
|
5581
|
+
@meta = meta == nil ? nil : meta
|
5582
|
+
@rate_limit = rate_limit == nil ? nil : rate_limit
|
5583
|
+
end
|
5584
|
+
|
5585
|
+
def to_json(options = {})
|
5586
|
+
hash = {}
|
5587
|
+
self.instance_variables.each do |var|
|
5588
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
5589
|
+
end
|
5590
|
+
hash.to_json
|
5591
|
+
end
|
5592
|
+
end
|
5593
|
+
|
5512
5594
|
class KeyfactorSSHStore
|
5513
5595
|
# Path to the root CA that signed the certificate passed to the client for HTTPS connection.
|
5514
5596
|
# This is not required if the CA is trusted by the host operating system. This should be a PEM
|
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/9.
|
32
|
+
USER_AGENT = "strongdm-sdk-ruby/9.1.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/svc.rb
CHANGED
@@ -2391,6 +2391,36 @@ module SDM #:nodoc:
|
|
2391
2391
|
@parent = parent
|
2392
2392
|
end
|
2393
2393
|
|
2394
|
+
# Create registers a new IdentitySet.
|
2395
|
+
def create(
|
2396
|
+
identity_set,
|
2397
|
+
deadline: nil
|
2398
|
+
)
|
2399
|
+
req = V1::IdentitySetCreateRequest.new()
|
2400
|
+
|
2401
|
+
req.identity_set = Plumbing::convert_identity_set_to_plumbing(identity_set)
|
2402
|
+
tries = 0
|
2403
|
+
plumbing_response = nil
|
2404
|
+
loop do
|
2405
|
+
begin
|
2406
|
+
plumbing_response = @stub.create(req, metadata: @parent.get_metadata("IdentitySets.Create", req), deadline: deadline)
|
2407
|
+
rescue => exception
|
2408
|
+
if (@parent.shouldRetry(tries, exception))
|
2409
|
+
tries + +@parent.jitterSleep(tries)
|
2410
|
+
next
|
2411
|
+
end
|
2412
|
+
raise Plumbing::convert_error_to_porcelain(exception)
|
2413
|
+
end
|
2414
|
+
break
|
2415
|
+
end
|
2416
|
+
|
2417
|
+
resp = IdentitySetCreateResponse.new()
|
2418
|
+
resp.identity_set = Plumbing::convert_identity_set_to_porcelain(plumbing_response.identity_set)
|
2419
|
+
resp.meta = Plumbing::convert_create_response_metadata_to_porcelain(plumbing_response.meta)
|
2420
|
+
resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
|
2421
|
+
resp
|
2422
|
+
end
|
2423
|
+
|
2394
2424
|
# Get reads one IdentitySet by ID.
|
2395
2425
|
def get(
|
2396
2426
|
id,
|
@@ -2425,6 +2455,65 @@ module SDM #:nodoc:
|
|
2425
2455
|
resp
|
2426
2456
|
end
|
2427
2457
|
|
2458
|
+
# Update replaces all the fields of a IdentitySet by ID.
|
2459
|
+
def update(
|
2460
|
+
identity_set,
|
2461
|
+
deadline: nil
|
2462
|
+
)
|
2463
|
+
req = V1::IdentitySetUpdateRequest.new()
|
2464
|
+
|
2465
|
+
req.identity_set = Plumbing::convert_identity_set_to_plumbing(identity_set)
|
2466
|
+
tries = 0
|
2467
|
+
plumbing_response = nil
|
2468
|
+
loop do
|
2469
|
+
begin
|
2470
|
+
plumbing_response = @stub.update(req, metadata: @parent.get_metadata("IdentitySets.Update", req), deadline: deadline)
|
2471
|
+
rescue => exception
|
2472
|
+
if (@parent.shouldRetry(tries, exception))
|
2473
|
+
tries + +@parent.jitterSleep(tries)
|
2474
|
+
next
|
2475
|
+
end
|
2476
|
+
raise Plumbing::convert_error_to_porcelain(exception)
|
2477
|
+
end
|
2478
|
+
break
|
2479
|
+
end
|
2480
|
+
|
2481
|
+
resp = IdentitySetUpdateResponse.new()
|
2482
|
+
resp.identity_set = Plumbing::convert_identity_set_to_porcelain(plumbing_response.identity_set)
|
2483
|
+
resp.meta = Plumbing::convert_update_response_metadata_to_porcelain(plumbing_response.meta)
|
2484
|
+
resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
|
2485
|
+
resp
|
2486
|
+
end
|
2487
|
+
|
2488
|
+
# Delete removes a IdentitySet by ID.
|
2489
|
+
def delete(
|
2490
|
+
id,
|
2491
|
+
deadline: nil
|
2492
|
+
)
|
2493
|
+
req = V1::IdentitySetDeleteRequest.new()
|
2494
|
+
|
2495
|
+
req.id = (id)
|
2496
|
+
tries = 0
|
2497
|
+
plumbing_response = nil
|
2498
|
+
loop do
|
2499
|
+
begin
|
2500
|
+
plumbing_response = @stub.delete(req, metadata: @parent.get_metadata("IdentitySets.Delete", req), deadline: deadline)
|
2501
|
+
rescue => exception
|
2502
|
+
if (@parent.shouldRetry(tries, exception))
|
2503
|
+
tries + +@parent.jitterSleep(tries)
|
2504
|
+
next
|
2505
|
+
end
|
2506
|
+
raise Plumbing::convert_error_to_porcelain(exception)
|
2507
|
+
end
|
2508
|
+
break
|
2509
|
+
end
|
2510
|
+
|
2511
|
+
resp = IdentitySetDeleteResponse.new()
|
2512
|
+
resp.meta = Plumbing::convert_delete_response_metadata_to_porcelain(plumbing_response.meta)
|
2513
|
+
resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
|
2514
|
+
resp
|
2515
|
+
end
|
2516
|
+
|
2428
2517
|
# List gets a list of IdentitySets matching a given set of criteria.
|
2429
2518
|
def list(
|
2430
2519
|
filter,
|
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: 9.
|
4
|
+
version: 9.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: 2024-05-
|
11
|
+
date: 2024-05-29 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-b863bfb2a5ebd4829cb3113f9948506fcf657f16.idx"
|
85
|
+
- "./.git/objects/pack/pack-b863bfb2a5ebd4829cb3113f9948506fcf657f16.pack"
|
86
86
|
- "./.git/packed-refs"
|
87
87
|
- "./.git/refs/heads/master"
|
88
88
|
- "./.git/refs/remotes/origin/HEAD"
|