strongdm 6.0.1 → 6.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7302c9e33b52e39f27b8aa498cad73590b158f25772a4c51cfe97b837e3a8c7
4
- data.tar.gz: 3d9c27397c56b0fe7fddcfd237e275ff35b0b2fd90750520b524fd38722eab68
3
+ metadata.gz: ba5483f3a8b0daa142902654ecbfe3ff26cb471f500310ae853e8f4269c87940
4
+ data.tar.gz: 47b1da13c13d79273be01a54737ed74a8f9a6183bff2c93a7808d5c3bc039293
5
5
  SHA512:
6
- metadata.gz: b67ec11d356610c8c24d28ec111b099c23a53488dcc8be453087676e4f1113ca81669e7c2853e8d4efc8aa37c0ce1b13471e071ca70a66e3fddf6f5f40fd88e0
7
- data.tar.gz: 8ecaee268bcfb63701ad8e20c7eb6623ebf38d8efb04c37877d540047c4cf9f8a895321710206ebbdb9aeefa837e16c65ac769b609befdd8dddeca2508ff99e2
6
+ metadata.gz: 17f71118456d9b52ba6edfbfb30bf51f5bc2637d8e73ad8b2c88fa46a088119fd5a3cf8ac7a69d798d25366a3501efa41b7032bf389d72bfa9014fa43362a2ff
7
+ data.tar.gz: 284fcb064dad2e4c5ec34fd8bd96b052fefcec9861d856e311d35a0539e4cbe43c63f33f2c75b039ae8ff4a2ea58d8878dff1e8c0b84860c2f93c7c11d470b76
data/.git/ORIG_HEAD CHANGED
@@ -1 +1 @@
1
- b724d5bc9ad45c3fbfa394653415d4b7a97ae071
1
+ da1cd910d138b56624af0d2fa2d92d8acec5edca
data/.git/index CHANGED
Binary file
data/.git/logs/HEAD CHANGED
@@ -1,3 +1,3 @@
1
- 0000000000000000000000000000000000000000 b724d5bc9ad45c3fbfa394653415d4b7a97ae071 sdmrelease <support@strongdm.com> 1704380515 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
2
- b724d5bc9ad45c3fbfa394653415d4b7a97ae071 b724d5bc9ad45c3fbfa394653415d4b7a97ae071 sdmrelease <support@strongdm.com> 1704380515 +0000 checkout: moving from master to master
3
- b724d5bc9ad45c3fbfa394653415d4b7a97ae071 da1cd910d138b56624af0d2fa2d92d8acec5edca sdmrelease <support@strongdm.com> 1704380515 +0000 merge origin/development: Fast-forward
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
@@ -1,2 +1,2 @@
1
- 0000000000000000000000000000000000000000 b724d5bc9ad45c3fbfa394653415d4b7a97ae071 sdmrelease <support@strongdm.com> 1704380515 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
2
- b724d5bc9ad45c3fbfa394653415d4b7a97ae071 da1cd910d138b56624af0d2fa2d92d8acec5edca sdmrelease <support@strongdm.com> 1704380515 +0000 merge origin/development: Fast-forward
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 b724d5bc9ad45c3fbfa394653415d4b7a97ae071 sdmrelease <support@strongdm.com> 1704380515 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
1
+ 0000000000000000000000000000000000000000 da1cd910d138b56624af0d2fa2d92d8acec5edca sdmrelease <support@strongdm.com> 1704729306 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
data/.git/packed-refs CHANGED
@@ -1,6 +1,6 @@
1
1
  # pack-refs with: peeled fully-peeled sorted
2
- da1cd910d138b56624af0d2fa2d92d8acec5edca refs/remotes/origin/development
3
- b724d5bc9ad45c3fbfa394653415d4b7a97ae071 refs/remotes/origin/master
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
@@ -89,3 +89,4 @@ dc6870bd4816d314f5a02818b7ab8823f622abc7 refs/tags/v5.0.2
89
89
  1db1f4f075a0a51e14462765c7360e2d6795be82 refs/tags/v5.0.3
90
90
  d31341d9d50304c3bb6cd397e023906494a0ff21 refs/tags/v5.0.5
91
91
  b724d5bc9ad45c3fbfa394653415d4b7a97ae071 refs/tags/v6.0.0
92
+ da1cd910d138b56624af0d2fa2d92d8acec5edca refs/tags/v6.0.1
@@ -1 +1 @@
1
- da1cd910d138b56624af0d2fa2d92d8acec5edca
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
@@ -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
@@ -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.0.1"
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
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
  #
15
15
  module SDM
16
- VERSION = "6.0.1"
16
+ VERSION = "6.1.0"
17
17
  end
data/lib/version.rb CHANGED
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
  #
15
15
  module SDM
16
- VERSION = "6.0.1"
16
+ VERSION = "6.1.0"
17
17
  end
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.0.1
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: 2024-01-04 00:00:00.000000000 Z
11
+ date: 2024-01-08 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-55f143db1970ec48f1de4690c8ed9e0fd7bdb791.idx"
85
- - "./.git/objects/pack/pack-55f143db1970ec48f1de4690c8ed9e0fd7bdb791.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"