strongdm 5.0.1 → 5.0.3
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-1464029fbb5fce2af2abca245f431e7247432422.idx → pack-8cf62468935cf8f4caff9468aca31031de0c6406.idx} +0 -0
- data/.git/objects/pack/{pack-1464029fbb5fce2af2abca245f431e7247432422.pack → pack-8cf62468935cf8f4caff9468aca31031de0c6406.pack} +0 -0
- data/.git/packed-refs +4 -2
- data/.git/refs/heads/master +1 -1
- data/lib/constants.rb +1 -0
- data/lib/grpc/access_requests_pb.rb +18 -0
- data/lib/grpc/access_requests_services_pb.rb +1 -1
- data/lib/grpc/drivers_pb.rb +2 -0
- data/lib/grpc/plumbing.rb +91 -1
- data/lib/models/porcelain.rb +86 -1
- data/lib/strongdm.rb +1 -1
- data/lib/svc.rb +2 -2
- 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: bd54f62f24035c911123a92872bb0cd33c7354a11d3658e74665352bd46c4801
|
4
|
+
data.tar.gz: b203bd8398dd5c85e22d44372aedf89525809161ac29faf83e6e916d4c43c98c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d688ed6b83eb7c3cf205e96a0c1108c262af514278e15bfac2f7315fc33e3cffeb25d0609a9f700509a6f81b7e8c37aa73c0204641159b7411d590d6f943f93
|
7
|
+
data.tar.gz: ba80bc70b242b39eb72a8f069830372e922ed0e9f17a8d44c066e2a84d754db3b7475118784640ea38a08fa2bc64dcd3d96b875f4aabe0f637dcffea1ce04011
|
data/.git/ORIG_HEAD
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
dc6870bd4816d314f5a02818b7ab8823f622abc7
|
data/.git/index
CHANGED
Binary file
|
data/.git/logs/HEAD
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
0000000000000000000000000000000000000000
|
2
|
-
|
3
|
-
|
1
|
+
0000000000000000000000000000000000000000 dc6870bd4816d314f5a02818b7ab8823f622abc7 root <root@6a6af5356cdb.(none)> 1697214679 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
|
2
|
+
dc6870bd4816d314f5a02818b7ab8823f622abc7 dc6870bd4816d314f5a02818b7ab8823f622abc7 root <root@6a6af5356cdb.(none)> 1697214679 +0000 checkout: moving from master to master
|
3
|
+
dc6870bd4816d314f5a02818b7ab8823f622abc7 1db1f4f075a0a51e14462765c7360e2d6795be82 root <root@6a6af5356cdb.(none)> 1697214679 +0000 merge origin/development: Fast-forward
|
data/.git/logs/refs/heads/master
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
0000000000000000000000000000000000000000
|
2
|
-
|
1
|
+
0000000000000000000000000000000000000000 dc6870bd4816d314f5a02818b7ab8823f622abc7 root <root@6a6af5356cdb.(none)> 1697214679 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
|
2
|
+
dc6870bd4816d314f5a02818b7ab8823f622abc7 1db1f4f075a0a51e14462765c7360e2d6795be82 root <root@6a6af5356cdb.(none)> 1697214679 +0000 merge origin/development: Fast-forward
|
@@ -1 +1 @@
|
|
1
|
-
0000000000000000000000000000000000000000
|
1
|
+
0000000000000000000000000000000000000000 dc6870bd4816d314f5a02818b7ab8823f622abc7 root <root@6a6af5356cdb.(none)> 1697214679 +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
|
+
1db1f4f075a0a51e14462765c7360e2d6795be82 refs/remotes/origin/development
|
3
|
+
dc6870bd4816d314f5a02818b7ab8823f622abc7 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
|
@@ -84,3 +84,5 @@ f8dd4b1ce524b487c509dd8b781f2b9676053543 refs/tags/v4.6.1
|
|
84
84
|
8a202244671d61f97d90b10f45f693266ea84afa refs/tags/v4.7.0
|
85
85
|
fb8fa232eb66f960b4a223ce7fe6eaaf46727bfb refs/tags/v4.8.0
|
86
86
|
7f2a0f1d6cbfda294fa9a3ec4a868d0c782c3fd0 refs/tags/v5.0.0
|
87
|
+
c5f2bc7e213b06c810559360246ff6b525c35fab refs/tags/v5.0.1
|
88
|
+
dc6870bd4816d314f5a02818b7ab8823f622abc7 refs/tags/v5.0.2
|
data/.git/refs/heads/master
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
1db1f4f075a0a51e14462765c7360e2d6795be82
|
data/lib/constants.rb
CHANGED
@@ -20,6 +20,7 @@ require "google/protobuf"
|
|
20
20
|
require "google/protobuf/timestamp_pb"
|
21
21
|
require "options_pb"
|
22
22
|
require "spec_pb"
|
23
|
+
require "tags_pb"
|
23
24
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
24
25
|
add_file("access_requests.proto", :syntax => :proto3) do
|
25
26
|
add_message "v1.AccessRequestListRequest" do
|
@@ -50,6 +51,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
50
51
|
optional :type, :string, 4
|
51
52
|
optional :metadata, :string, 5
|
52
53
|
end
|
54
|
+
add_message "v1.RequestableResource" do
|
55
|
+
optional :id, :string, 1
|
56
|
+
optional :name, :string, 2
|
57
|
+
optional :healthy, :bool, 3
|
58
|
+
optional :type, :string, 4
|
59
|
+
optional :authentication, :string, 5
|
60
|
+
optional :tags, :message, 6, "v1.Tags"
|
61
|
+
optional :access, :string, 7
|
62
|
+
end
|
63
|
+
add_message "v1.AccessRequestConfig" do
|
64
|
+
optional :resource_id, :string, 1
|
65
|
+
optional :reason, :string, 2
|
66
|
+
optional :start_from, :message, 3, "google.protobuf.Timestamp"
|
67
|
+
optional :duration, :string, 4
|
68
|
+
end
|
53
69
|
end
|
54
70
|
end
|
55
71
|
|
@@ -58,4 +74,6 @@ module V1
|
|
58
74
|
AccessRequestListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccessRequestListResponse").msgclass
|
59
75
|
AccessRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccessRequest").msgclass
|
60
76
|
AccessRequestEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccessRequestEvent").msgclass
|
77
|
+
RequestableResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RequestableResource").msgclass
|
78
|
+
AccessRequestConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccessRequestConfig").msgclass
|
61
79
|
end
|
data/lib/grpc/drivers_pb.rb
CHANGED
@@ -427,6 +427,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
427
427
|
optional :port, :int32, 6
|
428
428
|
optional :port_override, :int32, 5
|
429
429
|
optional :region, :string, 3
|
430
|
+
optional :role_assumption_arn, :string, 10
|
430
431
|
optional :username, :string, 2
|
431
432
|
end
|
432
433
|
add_message "v1.Azure" do
|
@@ -1229,6 +1230,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
1229
1230
|
optional :port, :int32, 6
|
1230
1231
|
optional :port_override, :int32, 5
|
1231
1232
|
optional :region, :string, 3
|
1233
|
+
optional :role_assumption_arn, :string, 10
|
1232
1234
|
optional :username, :string, 2
|
1233
1235
|
end
|
1234
1236
|
add_message "v1.RabbitMQAMQP091" do
|
data/lib/grpc/plumbing.rb
CHANGED
@@ -20,6 +20,7 @@ require "google/protobuf/well_known_types"
|
|
20
20
|
require "json"
|
21
21
|
require_relative "./options_pb"
|
22
22
|
require_relative "./spec_pb"
|
23
|
+
require_relative "./tags_pb"
|
23
24
|
require_relative "./access_requests_pb"
|
24
25
|
require_relative "./access_request_events_history_pb"
|
25
26
|
require_relative "./access_requests_history_pb"
|
@@ -30,7 +31,6 @@ require_relative "./account_grants_history_pb"
|
|
30
31
|
require_relative "./account_permissions_pb"
|
31
32
|
require_relative "./account_resources_pb"
|
32
33
|
require_relative "./account_resources_history_pb"
|
33
|
-
require_relative "./tags_pb"
|
34
34
|
require_relative "./accounts_pb"
|
35
35
|
require_relative "./accounts_history_pb"
|
36
36
|
require_relative "./activities_pb"
|
@@ -748,6 +748,46 @@ module SDM
|
|
748
748
|
end
|
749
749
|
items
|
750
750
|
end
|
751
|
+
def self.convert_access_request_config_to_porcelain(plumbing)
|
752
|
+
if plumbing == nil
|
753
|
+
return nil
|
754
|
+
end
|
755
|
+
porcelain = AccessRequestConfig.new()
|
756
|
+
porcelain.duration = (plumbing.duration)
|
757
|
+
porcelain.reason = (plumbing.reason)
|
758
|
+
porcelain.resource_id = (plumbing.resource_id)
|
759
|
+
porcelain.start_from = convert_timestamp_to_porcelain(plumbing.start_from)
|
760
|
+
porcelain
|
761
|
+
end
|
762
|
+
|
763
|
+
def self.convert_access_request_config_to_plumbing(porcelain)
|
764
|
+
if porcelain == nil
|
765
|
+
return nil
|
766
|
+
end
|
767
|
+
plumbing = V1::AccessRequestConfig.new()
|
768
|
+
plumbing.duration = (porcelain.duration)
|
769
|
+
plumbing.reason = (porcelain.reason)
|
770
|
+
plumbing.resource_id = (porcelain.resource_id)
|
771
|
+
plumbing.start_from = convert_timestamp_to_plumbing(porcelain.start_from)
|
772
|
+
plumbing
|
773
|
+
end
|
774
|
+
def self.convert_repeated_access_request_config_to_plumbing(porcelains)
|
775
|
+
items = Array.new
|
776
|
+
porcelains.each do |porcelain|
|
777
|
+
plumbing = convert_access_request_config_to_plumbing(porcelain)
|
778
|
+
items.append(plumbing)
|
779
|
+
end
|
780
|
+
items
|
781
|
+
end
|
782
|
+
|
783
|
+
def self.convert_repeated_access_request_config_to_porcelain(plumbings)
|
784
|
+
items = Array.new
|
785
|
+
plumbings.each do |plumbing|
|
786
|
+
porcelain = convert_access_request_config_to_porcelain(plumbing)
|
787
|
+
items.append(porcelain)
|
788
|
+
end
|
789
|
+
items
|
790
|
+
end
|
751
791
|
def self.convert_access_request_event_to_porcelain(plumbing)
|
752
792
|
if plumbing == nil
|
753
793
|
return nil
|
@@ -2463,6 +2503,7 @@ module SDM
|
|
2463
2503
|
porcelain.port = (plumbing.port)
|
2464
2504
|
porcelain.port_override = (plumbing.port_override)
|
2465
2505
|
porcelain.region = (plumbing.region)
|
2506
|
+
porcelain.role_assumption_arn = (plumbing.role_assumption_arn)
|
2466
2507
|
porcelain.secret_store_id = (plumbing.secret_store_id)
|
2467
2508
|
porcelain.subdomain = (plumbing.subdomain)
|
2468
2509
|
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
@@ -2486,6 +2527,7 @@ module SDM
|
|
2486
2527
|
plumbing.port = (porcelain.port)
|
2487
2528
|
plumbing.port_override = (porcelain.port_override)
|
2488
2529
|
plumbing.region = (porcelain.region)
|
2530
|
+
plumbing.role_assumption_arn = (porcelain.role_assumption_arn)
|
2489
2531
|
plumbing.secret_store_id = (porcelain.secret_store_id)
|
2490
2532
|
plumbing.subdomain = (porcelain.subdomain)
|
2491
2533
|
plumbing.tags = convert_tags_to_plumbing(porcelain.tags)
|
@@ -7004,6 +7046,7 @@ module SDM
|
|
7004
7046
|
porcelain.port = (plumbing.port)
|
7005
7047
|
porcelain.port_override = (plumbing.port_override)
|
7006
7048
|
porcelain.region = (plumbing.region)
|
7049
|
+
porcelain.role_assumption_arn = (plumbing.role_assumption_arn)
|
7007
7050
|
porcelain.secret_store_id = (plumbing.secret_store_id)
|
7008
7051
|
porcelain.subdomain = (plumbing.subdomain)
|
7009
7052
|
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
@@ -7027,6 +7070,7 @@ module SDM
|
|
7027
7070
|
plumbing.port = (porcelain.port)
|
7028
7071
|
plumbing.port_override = (porcelain.port_override)
|
7029
7072
|
plumbing.region = (porcelain.region)
|
7073
|
+
plumbing.role_assumption_arn = (porcelain.role_assumption_arn)
|
7030
7074
|
plumbing.secret_store_id = (porcelain.secret_store_id)
|
7031
7075
|
plumbing.subdomain = (porcelain.subdomain)
|
7032
7076
|
plumbing.tags = convert_tags_to_plumbing(porcelain.tags)
|
@@ -7792,6 +7836,52 @@ module SDM
|
|
7792
7836
|
end
|
7793
7837
|
items
|
7794
7838
|
end
|
7839
|
+
def self.convert_requestable_resource_to_porcelain(plumbing)
|
7840
|
+
if plumbing == nil
|
7841
|
+
return nil
|
7842
|
+
end
|
7843
|
+
porcelain = RequestableResource.new()
|
7844
|
+
porcelain.access = (plumbing.access)
|
7845
|
+
porcelain.authentication = (plumbing.authentication)
|
7846
|
+
porcelain.healthy = (plumbing.healthy)
|
7847
|
+
porcelain.id = (plumbing.id)
|
7848
|
+
porcelain.name = (plumbing.name)
|
7849
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
7850
|
+
porcelain.type = (plumbing.type)
|
7851
|
+
porcelain
|
7852
|
+
end
|
7853
|
+
|
7854
|
+
def self.convert_requestable_resource_to_plumbing(porcelain)
|
7855
|
+
if porcelain == nil
|
7856
|
+
return nil
|
7857
|
+
end
|
7858
|
+
plumbing = V1::RequestableResource.new()
|
7859
|
+
plumbing.access = (porcelain.access)
|
7860
|
+
plumbing.authentication = (porcelain.authentication)
|
7861
|
+
plumbing.healthy = (porcelain.healthy)
|
7862
|
+
plumbing.id = (porcelain.id)
|
7863
|
+
plumbing.name = (porcelain.name)
|
7864
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags)
|
7865
|
+
plumbing.type = (porcelain.type)
|
7866
|
+
plumbing
|
7867
|
+
end
|
7868
|
+
def self.convert_repeated_requestable_resource_to_plumbing(porcelains)
|
7869
|
+
items = Array.new
|
7870
|
+
porcelains.each do |porcelain|
|
7871
|
+
plumbing = convert_requestable_resource_to_plumbing(porcelain)
|
7872
|
+
items.append(plumbing)
|
7873
|
+
end
|
7874
|
+
items
|
7875
|
+
end
|
7876
|
+
|
7877
|
+
def self.convert_repeated_requestable_resource_to_porcelain(plumbings)
|
7878
|
+
items = Array.new
|
7879
|
+
plumbings.each do |plumbing|
|
7880
|
+
porcelain = convert_requestable_resource_to_porcelain(plumbing)
|
7881
|
+
items.append(porcelain)
|
7882
|
+
end
|
7883
|
+
items
|
7884
|
+
end
|
7795
7885
|
def self.convert_resource_to_plumbing(porcelain)
|
7796
7886
|
if porcelain == nil
|
7797
7887
|
return nil
|
data/lib/models/porcelain.rb
CHANGED
@@ -708,6 +708,38 @@ module SDM
|
|
708
708
|
end
|
709
709
|
end
|
710
710
|
|
711
|
+
# AccessRequestConfig holds the information required to request access to a resource
|
712
|
+
class AccessRequestConfig
|
713
|
+
# The time access should end, defaults to the next occurance of 5 pm
|
714
|
+
attr_accessor :duration
|
715
|
+
# The reason for access
|
716
|
+
attr_accessor :reason
|
717
|
+
# The resource for which access is being requested
|
718
|
+
attr_accessor :resource_id
|
719
|
+
# The time access should start, defaults to now
|
720
|
+
attr_accessor :start_from
|
721
|
+
|
722
|
+
def initialize(
|
723
|
+
duration: nil,
|
724
|
+
reason: nil,
|
725
|
+
resource_id: nil,
|
726
|
+
start_from: nil
|
727
|
+
)
|
728
|
+
@duration = duration == nil ? "" : duration
|
729
|
+
@reason = reason == nil ? "" : reason
|
730
|
+
@resource_id = resource_id == nil ? "" : resource_id
|
731
|
+
@start_from = start_from == nil ? nil : start_from
|
732
|
+
end
|
733
|
+
|
734
|
+
def to_json(options = {})
|
735
|
+
hash = {}
|
736
|
+
self.instance_variables.each do |var|
|
737
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
738
|
+
end
|
739
|
+
hash.to_json
|
740
|
+
end
|
741
|
+
end
|
742
|
+
|
711
743
|
# AccessRequestEvents hold information about events related to an access
|
712
744
|
# request such as creation, approval and denial.
|
713
745
|
class AccessRequestEvent
|
@@ -836,7 +868,8 @@ module SDM
|
|
836
868
|
end
|
837
869
|
end
|
838
870
|
|
839
|
-
# AccessRequestListResponse
|
871
|
+
# AccessRequestListResponse returns a list of access requests records that meet
|
872
|
+
# the criteria of a AccessRequestListRequest.
|
840
873
|
class AccessRequestListResponse
|
841
874
|
# Rate limit information.
|
842
875
|
attr_accessor :rate_limit
|
@@ -2332,6 +2365,8 @@ module SDM
|
|
2332
2365
|
attr_accessor :port_override
|
2333
2366
|
# The AWS region to connect to.
|
2334
2367
|
attr_accessor :region
|
2368
|
+
# If provided, the gateway/relay will try to assume this role instead of the underlying compute's role.
|
2369
|
+
attr_accessor :role_assumption_arn
|
2335
2370
|
# ID of the secret store containing credentials for this resource, if any.
|
2336
2371
|
attr_accessor :secret_store_id
|
2337
2372
|
# Subdomain is the local DNS address. (e.g. app-prod1 turns into app-prod1.your-org-name.sdm.network)
|
@@ -2353,6 +2388,7 @@ module SDM
|
|
2353
2388
|
port: nil,
|
2354
2389
|
port_override: nil,
|
2355
2390
|
region: nil,
|
2391
|
+
role_assumption_arn: nil,
|
2356
2392
|
secret_store_id: nil,
|
2357
2393
|
subdomain: nil,
|
2358
2394
|
tags: nil,
|
@@ -2369,6 +2405,7 @@ module SDM
|
|
2369
2405
|
@port = port == nil ? 0 : port
|
2370
2406
|
@port_override = port_override == nil ? 0 : port_override
|
2371
2407
|
@region = region == nil ? "" : region
|
2408
|
+
@role_assumption_arn = role_assumption_arn == nil ? "" : role_assumption_arn
|
2372
2409
|
@secret_store_id = secret_store_id == nil ? "" : secret_store_id
|
2373
2410
|
@subdomain = subdomain == nil ? "" : subdomain
|
2374
2411
|
@tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
|
@@ -7196,6 +7233,8 @@ module SDM
|
|
7196
7233
|
attr_accessor :port_override
|
7197
7234
|
# The AWS region to connect to.
|
7198
7235
|
attr_accessor :region
|
7236
|
+
# If provided, the gateway/relay will try to assume this role instead of the underlying compute's role.
|
7237
|
+
attr_accessor :role_assumption_arn
|
7199
7238
|
# ID of the secret store containing credentials for this resource, if any.
|
7200
7239
|
attr_accessor :secret_store_id
|
7201
7240
|
# Subdomain is the local DNS address. (e.g. app-prod1 turns into app-prod1.your-org-name.sdm.network)
|
@@ -7217,6 +7256,7 @@ module SDM
|
|
7217
7256
|
port: nil,
|
7218
7257
|
port_override: nil,
|
7219
7258
|
region: nil,
|
7259
|
+
role_assumption_arn: nil,
|
7220
7260
|
secret_store_id: nil,
|
7221
7261
|
subdomain: nil,
|
7222
7262
|
tags: nil,
|
@@ -7233,6 +7273,7 @@ module SDM
|
|
7233
7273
|
@port = port == nil ? 0 : port
|
7234
7274
|
@port_override = port_override == nil ? 0 : port_override
|
7235
7275
|
@region = region == nil ? "" : region
|
7276
|
+
@role_assumption_arn = role_assumption_arn == nil ? "" : role_assumption_arn
|
7236
7277
|
@secret_store_id = secret_store_id == nil ? "" : secret_store_id
|
7237
7278
|
@subdomain = subdomain == nil ? "" : subdomain
|
7238
7279
|
@tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
|
@@ -7942,6 +7983,50 @@ module SDM
|
|
7942
7983
|
end
|
7943
7984
|
end
|
7944
7985
|
|
7986
|
+
# RequestableResource is a resource that can be requested via an AccessRequestConfig
|
7987
|
+
class RequestableResource
|
7988
|
+
# The current state of the user's access to the resources
|
7989
|
+
attr_accessor :access
|
7990
|
+
# The type of authentication for the resource
|
7991
|
+
attr_accessor :authentication
|
7992
|
+
# The health check status of the reasource
|
7993
|
+
attr_accessor :healthy
|
7994
|
+
# The resource id.
|
7995
|
+
attr_accessor :id
|
7996
|
+
# The resource name.
|
7997
|
+
attr_accessor :name
|
7998
|
+
# Any tags attached to this resource
|
7999
|
+
attr_accessor :tags
|
8000
|
+
# The resource type
|
8001
|
+
attr_accessor :type
|
8002
|
+
|
8003
|
+
def initialize(
|
8004
|
+
access: nil,
|
8005
|
+
authentication: nil,
|
8006
|
+
healthy: nil,
|
8007
|
+
id: nil,
|
8008
|
+
name: nil,
|
8009
|
+
tags: nil,
|
8010
|
+
type: nil
|
8011
|
+
)
|
8012
|
+
@access = access == nil ? "" : access
|
8013
|
+
@authentication = authentication == nil ? "" : authentication
|
8014
|
+
@healthy = healthy == nil ? false : healthy
|
8015
|
+
@id = id == nil ? "" : id
|
8016
|
+
@name = name == nil ? "" : name
|
8017
|
+
@tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
|
8018
|
+
@type = type == nil ? "" : type
|
8019
|
+
end
|
8020
|
+
|
8021
|
+
def to_json(options = {})
|
8022
|
+
hash = {}
|
8023
|
+
self.instance_variables.each do |var|
|
8024
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8025
|
+
end
|
8026
|
+
hash.to_json
|
8027
|
+
end
|
8028
|
+
end
|
8029
|
+
|
7945
8030
|
# ResourceCreateResponse reports how the Resources were created in the system.
|
7946
8031
|
class ResourceCreateResponse
|
7947
8032
|
# Reserved for future use.
|
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 = "2021-08-23"
|
32
|
-
USER_AGENT = "strongdm-sdk-ruby/5.0.
|
32
|
+
USER_AGENT = "strongdm-sdk-ruby/5.0.3"
|
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
@@ -39,7 +39,7 @@ module SDM #:nodoc:
|
|
39
39
|
@parent = parent
|
40
40
|
end
|
41
41
|
|
42
|
-
# Lists existing
|
42
|
+
# Lists existing access requests.
|
43
43
|
def list(
|
44
44
|
filter,
|
45
45
|
*args,
|
@@ -88,7 +88,7 @@ module SDM #:nodoc:
|
|
88
88
|
@access_requests = access_requests
|
89
89
|
end
|
90
90
|
|
91
|
-
# Lists existing
|
91
|
+
# Lists existing access requests.
|
92
92
|
def list(
|
93
93
|
filter,
|
94
94
|
*args,
|
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: 5.0.
|
4
|
+
version: 5.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- strongDM Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-13 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-8cf62468935cf8f4caff9468aca31031de0c6406.idx"
|
85
|
+
- "./.git/objects/pack/pack-8cf62468935cf8f4caff9468aca31031de0c6406.pack"
|
86
86
|
- "./.git/packed-refs"
|
87
87
|
- "./.git/refs/heads/master"
|
88
88
|
- "./.git/refs/remotes/origin/HEAD"
|