strongdm 6.0.0 → 6.1.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-51b761096c76fe266fe5bd39da9dd6c052697b9b.idx → pack-1eb117e99f99e1a2d936240c13da2e6b129c9f98.idx} +0 -0
- data/.git/objects/pack/{pack-51b761096c76fe266fe5bd39da9dd6c052697b9b.pack → pack-1eb117e99f99e1a2d936240c13da2e6b129c9f98.pack} +0 -0
- data/.git/packed-refs +4 -2
- data/.git/refs/heads/master +1 -1
- data/lib/grpc/plumbing.rb +72 -0
- data/lib/grpc/resources_pb.rb +10 -0
- data/lib/grpc/resources_services_pb.rb +4 -0
- data/lib/models/porcelain.rb +45 -0
- data/lib/strongdm.rb +1 -1
- data/lib/svc.rb +31 -0
- data/lib/version +1 -1
- data/lib/version.rb +1 -1
- data/strongdm.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba5483f3a8b0daa142902654ecbfe3ff26cb471f500310ae853e8f4269c87940
|
4
|
+
data.tar.gz: 47b1da13c13d79273be01a54737ed74a8f9a6183bff2c93a7808d5c3bc039293
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17f71118456d9b52ba6edfbfb30bf51f5bc2637d8e73ad8b2c88fa46a088119fd5a3cf8ac7a69d798d25366a3501efa41b7032bf389d72bfa9014fa43362a2ff
|
7
|
+
data.tar.gz: 284fcb064dad2e4c5ec34fd8bd96b052fefcec9861d856e311d35a0539e4cbe43c63f33f2c75b039ae8ff4a2ea58d8878dff1e8c0b84860c2f93c7c11d470b76
|
data/.git/ORIG_HEAD
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
da1cd910d138b56624af0d2fa2d92d8acec5edca
|
data/.git/index
CHANGED
Binary file
|
data/.git/logs/HEAD
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
0000000000000000000000000000000000000000
|
2
|
-
|
3
|
-
|
1
|
+
0000000000000000000000000000000000000000 da1cd910d138b56624af0d2fa2d92d8acec5edca sdmrelease <support@strongdm.com> 1704729306 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
|
2
|
+
da1cd910d138b56624af0d2fa2d92d8acec5edca da1cd910d138b56624af0d2fa2d92d8acec5edca sdmrelease <support@strongdm.com> 1704729307 +0000 checkout: moving from master to master
|
3
|
+
da1cd910d138b56624af0d2fa2d92d8acec5edca 296fd9e80fd98a5dd3dcaaccde49e33ea5578967 sdmrelease <support@strongdm.com> 1704729307 +0000 merge origin/development: Fast-forward
|
data/.git/logs/refs/heads/master
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
0000000000000000000000000000000000000000
|
2
|
-
|
1
|
+
0000000000000000000000000000000000000000 da1cd910d138b56624af0d2fa2d92d8acec5edca sdmrelease <support@strongdm.com> 1704729306 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
|
2
|
+
da1cd910d138b56624af0d2fa2d92d8acec5edca 296fd9e80fd98a5dd3dcaaccde49e33ea5578967 sdmrelease <support@strongdm.com> 1704729307 +0000 merge origin/development: Fast-forward
|
@@ -1 +1 @@
|
|
1
|
-
0000000000000000000000000000000000000000
|
1
|
+
0000000000000000000000000000000000000000 da1cd910d138b56624af0d2fa2d92d8acec5edca sdmrelease <support@strongdm.com> 1704729306 +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
|
+
296fd9e80fd98a5dd3dcaaccde49e33ea5578967 refs/remotes/origin/development
|
3
|
+
da1cd910d138b56624af0d2fa2d92d8acec5edca 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
|
@@ -88,3 +88,5 @@ c5f2bc7e213b06c810559360246ff6b525c35fab refs/tags/v5.0.1
|
|
88
88
|
dc6870bd4816d314f5a02818b7ab8823f622abc7 refs/tags/v5.0.2
|
89
89
|
1db1f4f075a0a51e14462765c7360e2d6795be82 refs/tags/v5.0.3
|
90
90
|
d31341d9d50304c3bb6cd397e023906494a0ff21 refs/tags/v5.0.5
|
91
|
+
b724d5bc9ad45c3fbfa394653415d4b7a97ae071 refs/tags/v6.0.0
|
92
|
+
da1cd910d138b56624af0d2fa2d92d8acec5edca refs/tags/v6.0.1
|
data/.git/refs/heads/master
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
296fd9e80fd98a5dd3dcaaccde49e33ea5578967
|
data/lib/grpc/plumbing.rb
CHANGED
@@ -8523,6 +8523,78 @@ module SDM
|
|
8523
8523
|
end
|
8524
8524
|
items
|
8525
8525
|
end
|
8526
|
+
def self.convert_resource_healthcheck_request_to_porcelain(plumbing)
|
8527
|
+
if plumbing == nil
|
8528
|
+
return nil
|
8529
|
+
end
|
8530
|
+
porcelain = ResourceHealthcheckRequest.new()
|
8531
|
+
porcelain.id = (plumbing.id)
|
8532
|
+
porcelain.meta = convert_update_request_metadata_to_porcelain(plumbing.meta)
|
8533
|
+
porcelain
|
8534
|
+
end
|
8535
|
+
|
8536
|
+
def self.convert_resource_healthcheck_request_to_plumbing(porcelain)
|
8537
|
+
if porcelain == nil
|
8538
|
+
return nil
|
8539
|
+
end
|
8540
|
+
plumbing = V1::ResourceHealthcheckRequest.new()
|
8541
|
+
plumbing.id = (porcelain.id)
|
8542
|
+
plumbing.meta = convert_update_request_metadata_to_plumbing(porcelain.meta)
|
8543
|
+
plumbing
|
8544
|
+
end
|
8545
|
+
def self.convert_repeated_resource_healthcheck_request_to_plumbing(porcelains)
|
8546
|
+
items = Array.new
|
8547
|
+
porcelains.each do |porcelain|
|
8548
|
+
plumbing = convert_resource_healthcheck_request_to_plumbing(porcelain)
|
8549
|
+
items.append(plumbing)
|
8550
|
+
end
|
8551
|
+
items
|
8552
|
+
end
|
8553
|
+
|
8554
|
+
def self.convert_repeated_resource_healthcheck_request_to_porcelain(plumbings)
|
8555
|
+
items = Array.new
|
8556
|
+
plumbings.each do |plumbing|
|
8557
|
+
porcelain = convert_resource_healthcheck_request_to_porcelain(plumbing)
|
8558
|
+
items.append(porcelain)
|
8559
|
+
end
|
8560
|
+
items
|
8561
|
+
end
|
8562
|
+
def self.convert_resource_healthcheck_response_to_porcelain(plumbing)
|
8563
|
+
if plumbing == nil
|
8564
|
+
return nil
|
8565
|
+
end
|
8566
|
+
porcelain = ResourceHealthcheckResponse.new()
|
8567
|
+
porcelain.meta = convert_update_response_metadata_to_porcelain(plumbing.meta)
|
8568
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
8569
|
+
porcelain
|
8570
|
+
end
|
8571
|
+
|
8572
|
+
def self.convert_resource_healthcheck_response_to_plumbing(porcelain)
|
8573
|
+
if porcelain == nil
|
8574
|
+
return nil
|
8575
|
+
end
|
8576
|
+
plumbing = V1::ResourceHealthcheckResponse.new()
|
8577
|
+
plumbing.meta = convert_update_response_metadata_to_plumbing(porcelain.meta)
|
8578
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
8579
|
+
plumbing
|
8580
|
+
end
|
8581
|
+
def self.convert_repeated_resource_healthcheck_response_to_plumbing(porcelains)
|
8582
|
+
items = Array.new
|
8583
|
+
porcelains.each do |porcelain|
|
8584
|
+
plumbing = convert_resource_healthcheck_response_to_plumbing(porcelain)
|
8585
|
+
items.append(plumbing)
|
8586
|
+
end
|
8587
|
+
items
|
8588
|
+
end
|
8589
|
+
|
8590
|
+
def self.convert_repeated_resource_healthcheck_response_to_porcelain(plumbings)
|
8591
|
+
items = Array.new
|
8592
|
+
plumbings.each do |plumbing|
|
8593
|
+
porcelain = convert_resource_healthcheck_response_to_porcelain(plumbing)
|
8594
|
+
items.append(porcelain)
|
8595
|
+
end
|
8596
|
+
items
|
8597
|
+
end
|
8526
8598
|
def self.convert_resource_history_to_porcelain(plumbing)
|
8527
8599
|
if plumbing == nil
|
8528
8600
|
return nil
|
data/lib/grpc/resources_pb.rb
CHANGED
@@ -78,6 +78,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
78
78
|
repeated :matches, :message, 2, "v1.Tag"
|
79
79
|
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
80
80
|
end
|
81
|
+
add_message "v1.ResourceHealthcheckRequest" do
|
82
|
+
optional :meta, :message, 1, "v1.UpdateRequestMetadata"
|
83
|
+
optional :id, :string, 2
|
84
|
+
end
|
85
|
+
add_message "v1.ResourceHealthcheckResponse" do
|
86
|
+
optional :meta, :message, 1, "v1.UpdateResponseMetadata"
|
87
|
+
optional :rate_limit, :message, 2, "v1.RateLimitMetadata"
|
88
|
+
end
|
81
89
|
end
|
82
90
|
end
|
83
91
|
|
@@ -94,4 +102,6 @@ module V1
|
|
94
102
|
ResourceListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ResourceListResponse").msgclass
|
95
103
|
EnumerateTagsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.EnumerateTagsRequest").msgclass
|
96
104
|
EnumerateTagsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.EnumerateTagsResponse").msgclass
|
105
|
+
ResourceHealthcheckRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ResourceHealthcheckRequest").msgclass
|
106
|
+
ResourceHealthcheckResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ResourceHealthcheckResponse").msgclass
|
97
107
|
end
|
@@ -41,6 +41,10 @@ module V1
|
|
41
41
|
rpc :Delete, ::V1::ResourceDeleteRequest, ::V1::ResourceDeleteResponse
|
42
42
|
# List gets a list of Resources matching a given set of criteria.
|
43
43
|
rpc :List, ::V1::ResourceListRequest, ::V1::ResourceListResponse
|
44
|
+
# Healthcheck triggers a remote healthcheck. It may take minutes to propagate across a
|
45
|
+
# large network of Nodes. The call will return immediately, and the updated health of the
|
46
|
+
# Resource can be retrieved via Get or List.
|
47
|
+
rpc :Healthcheck, ::V1::ResourceHealthcheckRequest, ::V1::ResourceHealthcheckResponse
|
44
48
|
end
|
45
49
|
|
46
50
|
Stub = Service.rpc_stub_class
|
data/lib/models/porcelain.rb
CHANGED
@@ -8105,6 +8105,51 @@ module SDM
|
|
8105
8105
|
end
|
8106
8106
|
end
|
8107
8107
|
|
8108
|
+
# ResourceHealthcheckRequest specifies requesting a healthcheck for a given resource by ID.
|
8109
|
+
class ResourceHealthcheckRequest
|
8110
|
+
# The unique identifier of the Resource to healthcheck.
|
8111
|
+
attr_accessor :id
|
8112
|
+
|
8113
|
+
def initialize(
|
8114
|
+
id: nil
|
8115
|
+
)
|
8116
|
+
@id = id == nil ? "" : id
|
8117
|
+
end
|
8118
|
+
|
8119
|
+
def to_json(options = {})
|
8120
|
+
hash = {}
|
8121
|
+
self.instance_variables.each do |var|
|
8122
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8123
|
+
end
|
8124
|
+
hash.to_json
|
8125
|
+
end
|
8126
|
+
end
|
8127
|
+
|
8128
|
+
# ResourceHealthcheckResponse reports any metadata concerning a healthcheck response.
|
8129
|
+
# Healthchecks are non blocking, and this contains no non-metadata.
|
8130
|
+
class ResourceHealthcheckResponse
|
8131
|
+
# Reserved for future use.
|
8132
|
+
attr_accessor :meta
|
8133
|
+
# Rate limit information.
|
8134
|
+
attr_accessor :rate_limit
|
8135
|
+
|
8136
|
+
def initialize(
|
8137
|
+
meta: nil,
|
8138
|
+
rate_limit: nil
|
8139
|
+
)
|
8140
|
+
@meta = meta == nil ? nil : meta
|
8141
|
+
@rate_limit = rate_limit == nil ? nil : rate_limit
|
8142
|
+
end
|
8143
|
+
|
8144
|
+
def to_json(options = {})
|
8145
|
+
hash = {}
|
8146
|
+
self.instance_variables.each do |var|
|
8147
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8148
|
+
end
|
8149
|
+
hash.to_json
|
8150
|
+
end
|
8151
|
+
end
|
8152
|
+
|
8108
8153
|
# ResourceHistory records the state of a Resource at a given point in time,
|
8109
8154
|
# where every change (create, update and delete) to a Resource produces an
|
8110
8155
|
# ResourceHistory record.
|
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/6.
|
32
|
+
USER_AGENT = "strongdm-sdk-ruby/6.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
@@ -3250,6 +3250,37 @@ module SDM #:nodoc:
|
|
3250
3250
|
}
|
3251
3251
|
resp
|
3252
3252
|
end
|
3253
|
+
|
3254
|
+
# Healthcheck triggers a remote healthcheck. It may take minutes to propagate across a
|
3255
|
+
# large network of Nodes. The call will return immediately, and the updated health of the
|
3256
|
+
# Resource can be retrieved via Get or List.
|
3257
|
+
def healthcheck(
|
3258
|
+
id,
|
3259
|
+
deadline: nil
|
3260
|
+
)
|
3261
|
+
req = V1::ResourceHealthcheckRequest.new()
|
3262
|
+
|
3263
|
+
req.id = (id)
|
3264
|
+
tries = 0
|
3265
|
+
plumbing_response = nil
|
3266
|
+
loop do
|
3267
|
+
begin
|
3268
|
+
plumbing_response = @stub.healthcheck(req, metadata: @parent.get_metadata("Resources.Healthcheck", req), deadline: deadline)
|
3269
|
+
rescue => exception
|
3270
|
+
if (@parent.shouldRetry(tries, exception))
|
3271
|
+
tries + +@parent.jitterSleep(tries)
|
3272
|
+
next
|
3273
|
+
end
|
3274
|
+
raise Plumbing::convert_error_to_porcelain(exception)
|
3275
|
+
end
|
3276
|
+
break
|
3277
|
+
end
|
3278
|
+
|
3279
|
+
resp = ResourceHealthcheckResponse.new()
|
3280
|
+
resp.meta = Plumbing::convert_update_response_metadata_to_porcelain(plumbing_response.meta)
|
3281
|
+
resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
|
3282
|
+
resp
|
3283
|
+
end
|
3253
3284
|
end
|
3254
3285
|
|
3255
3286
|
# SnapshotResources exposes the read only methods of the Resources
|
data/lib/version
CHANGED
data/lib/version.rb
CHANGED
data/strongdm.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
|
17
17
|
s.add_runtime_dependency "grpc", "~> 1.36"
|
18
18
|
s.add_runtime_dependency "grpc-tools", "~> 1.36"
|
19
|
-
s.add_runtime_dependency "openssl", "~> 3.1
|
19
|
+
s.add_runtime_dependency "openssl", "~> 3.1"
|
20
20
|
|
21
21
|
s.files = `find . | grep -v "strongdm-#{SDM::VERSION}.gem"`.split("\n")
|
22
22
|
s.require_path = "lib"
|
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: 6.
|
4
|
+
version: 6.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:
|
11
|
+
date: 2024-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 3.1
|
47
|
+
version: '3.1'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 3.1
|
54
|
+
version: '3.1'
|
55
55
|
description: strongDM Ruby Library for automating interactions with strongDM.
|
56
56
|
email:
|
57
57
|
- sdk-feedback@strongdm.com
|
@@ -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-1eb117e99f99e1a2d936240c13da2e6b129c9f98.idx"
|
85
|
+
- "./.git/objects/pack/pack-1eb117e99f99e1a2d936240c13da2e6b129c9f98.pack"
|
86
86
|
- "./.git/packed-refs"
|
87
87
|
- "./.git/refs/heads/master"
|
88
88
|
- "./.git/refs/remotes/origin/HEAD"
|