strongdm 3.5.3 → 3.5.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97f61131face83a0f43a542ee069ca5ef65fae534fc992238f58c8bf9e4e085c
4
- data.tar.gz: 15c17c6df7129f8745caa2fb6886599c130f1040effd130796acffd442aace1f
3
+ metadata.gz: 05f597f5d34b2450a28bf04dffc2921eb8fd6a51b4e80ddf7967da4d4dca1522
4
+ data.tar.gz: 0fbb02d96799b6fc07866ed9e62555be5ab7cf00b723ed7d95c9e26ed9fce4c3
5
5
  SHA512:
6
- metadata.gz: 291b8a4f98daed7205dbf7f1c0bb54ef56d407e962e1f3578fad750ad300a874813b8408f670778730fe3685c436e12d828e507882f6a06604707d77ac9328df
7
- data.tar.gz: 140acae1e66628d551a2974fb28af1bef89d8a02566e2b18ff06e4b18856cbc526692b2419bc8e8d2bd8d7744efb7fd297623834606e2d9b2750c14641c3efae
6
+ metadata.gz: cf0903d086fa186201d64fdd22653f65bb677c8d9cb26e05a07fed4b08b5bb294b686b6a9c8414bf598f5b434c284c7aa9e07e0c7ca3d7d60679541ef21f2f78
7
+ data.tar.gz: d68a6d9fe5a7676dcd31920c4ebf799abdc609d322e6fa5aa34efe293db1c78452d7ebbed9834544b22e003b9d98faec1f5fdef89be27eabcf23151e86795ddd
data/.git/ORIG_HEAD CHANGED
@@ -1 +1 @@
1
- 8ddacf3c9cbe388ee11ed4617ba41cf7b0cc2a41
1
+ 67d9309e77842e64a4b43d8c3fa2c52ece706a3d
data/.git/index CHANGED
Binary file
data/.git/logs/HEAD CHANGED
@@ -1,3 +1,3 @@
1
- 0000000000000000000000000000000000000000 8ddacf3c9cbe388ee11ed4617ba41cf7b0cc2a41 sdmrelease <support@strongdm.com> 1670881920 +0000 clone: from git@github.com:strongdm/strongdm-sdk-ruby.git
2
- 8ddacf3c9cbe388ee11ed4617ba41cf7b0cc2a41 8ddacf3c9cbe388ee11ed4617ba41cf7b0cc2a41 sdmrelease <support@strongdm.com> 1670881920 +0000 checkout: moving from master to master
3
- 8ddacf3c9cbe388ee11ed4617ba41cf7b0cc2a41 003b46a249146cb3a4f25d16432c89f0b78ac37c sdmrelease <support@strongdm.com> 1670881920 +0000 merge origin/development: Fast-forward
1
+ 0000000000000000000000000000000000000000 67d9309e77842e64a4b43d8c3fa2c52ece706a3d sdmrelease <support@strongdm.com> 1671651098 +0000 clone: from git@github.com:strongdm/strongdm-sdk-ruby.git
2
+ 67d9309e77842e64a4b43d8c3fa2c52ece706a3d 67d9309e77842e64a4b43d8c3fa2c52ece706a3d sdmrelease <support@strongdm.com> 1671651098 +0000 checkout: moving from master to master
3
+ 67d9309e77842e64a4b43d8c3fa2c52ece706a3d ed61eaceb77e62a0c1a0bb8d36fc0bda7b242af4 sdmrelease <support@strongdm.com> 1671651098 +0000 merge origin/development: Fast-forward
@@ -1,2 +1,2 @@
1
- 0000000000000000000000000000000000000000 8ddacf3c9cbe388ee11ed4617ba41cf7b0cc2a41 sdmrelease <support@strongdm.com> 1670881920 +0000 clone: from git@github.com:strongdm/strongdm-sdk-ruby.git
2
- 8ddacf3c9cbe388ee11ed4617ba41cf7b0cc2a41 003b46a249146cb3a4f25d16432c89f0b78ac37c sdmrelease <support@strongdm.com> 1670881920 +0000 merge origin/development: Fast-forward
1
+ 0000000000000000000000000000000000000000 67d9309e77842e64a4b43d8c3fa2c52ece706a3d sdmrelease <support@strongdm.com> 1671651098 +0000 clone: from git@github.com:strongdm/strongdm-sdk-ruby.git
2
+ 67d9309e77842e64a4b43d8c3fa2c52ece706a3d ed61eaceb77e62a0c1a0bb8d36fc0bda7b242af4 sdmrelease <support@strongdm.com> 1671651098 +0000 merge origin/development: Fast-forward
@@ -1 +1 @@
1
- 0000000000000000000000000000000000000000 8ddacf3c9cbe388ee11ed4617ba41cf7b0cc2a41 sdmrelease <support@strongdm.com> 1670881920 +0000 clone: from git@github.com:strongdm/strongdm-sdk-ruby.git
1
+ 0000000000000000000000000000000000000000 67d9309e77842e64a4b43d8c3fa2c52ece706a3d sdmrelease <support@strongdm.com> 1671651098 +0000 clone: from git@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
- 003b46a249146cb3a4f25d16432c89f0b78ac37c refs/remotes/origin/development
3
- 8ddacf3c9cbe388ee11ed4617ba41cf7b0cc2a41 refs/remotes/origin/master
2
+ ed61eaceb77e62a0c1a0bb8d36fc0bda7b242af4 refs/remotes/origin/development
3
+ 67d9309e77842e64a4b43d8c3fa2c52ece706a3d 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
@@ -51,3 +51,5 @@ f99114303af624f557c49036ef7e65c4cdfdb862 refs/tags/v3.3.1
51
51
  c07c84aa4982d50d60f10720b331c76f56f8c53f refs/tags/v3.3.2
52
52
  bfb8a3cdb41c617913f0295b25ac7ecc7398d2c2 refs/tags/v3.5.0
53
53
  8ddacf3c9cbe388ee11ed4617ba41cf7b0cc2a41 refs/tags/v3.5.1
54
+ 003b46a249146cb3a4f25d16432c89f0b78ac37c refs/tags/v3.5.3
55
+ 67d9309e77842e64a4b43d8c3fa2c52ece706a3d refs/tags/v3.5.4
@@ -1 +1 @@
1
- 003b46a249146cb3a4f25d16432c89f0b78ac37c
1
+ ed61eaceb77e62a0c1a0bb8d36fc0bda7b242af4
data/lib/constants.rb CHANGED
@@ -1,42 +1,56 @@
1
+ # Copyright 2020 StrongDM Inc
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
1
15
  # @internal This file was generated by constgen. DO NOT EDIT.
2
16
 
3
17
  module SDM
4
18
 
5
- # Permission Levels, shared by all entities capable of making authenticated requests against StrongDM.
6
- module PermissionLevel
7
- ROOT_ADMIN = "root-admin"
8
- ADMIN = "admin"
9
- DATABASE_ADMIN = "database-admin"
10
- TEAM_LEADER = "multi-team-leader"
11
- USER = "user"
12
- RELAY = "relay"
13
- ADMIN_TOKEN = "admin-token"
14
- SCIM_TOKEN = "scim-token"
15
- SERVICE = "service"
16
- SUSPENDED = "suspended"
17
- EMPTY = ""
18
- end
19
+ # Permission Levels, shared by all entities capable of making authenticated requests against StrongDM.
20
+ module PermissionLevel
21
+ ROOT_ADMIN = "root-admin"
22
+ ADMIN = "admin"
23
+ DATABASE_ADMIN = "database-admin"
24
+ TEAM_LEADER = "multi-team-leader"
25
+ USER = "user"
26
+ RELAY = "relay"
27
+ ADMIN_TOKEN = "admin-token"
28
+ SCIM_TOKEN = "scim-token"
29
+ SERVICE = "service"
30
+ SUSPENDED = "suspended"
31
+ EMPTY = ""
32
+ end
19
33
 
20
- # Node Lifecycle States, defining whether a node was last reported online, offline, restarting, etc.
21
- module NodeState
22
- NEW = "new"
23
- VERIFYING_RESTART = "verifying_restart"
24
- AWAITING_RESTART = "awaiting_restart"
25
- RESTARTING = "restarting"
26
- STARTED = "started"
27
- STOPPED = "stopped"
28
- DEAD = "dead"
29
- end
34
+ # Node Lifecycle States, defining whether a node was last reported online, offline, restarting, etc.
35
+ module NodeState
36
+ NEW = "new"
37
+ VERIFYING_RESTART = "verifying_restart"
38
+ AWAITING_RESTART = "awaiting_restart"
39
+ RESTARTING = "restarting"
40
+ STARTED = "started"
41
+ STOPPED = "stopped"
42
+ DEAD = "dead"
43
+ end
30
44
 
31
- # Providers responsible for managing roles and users.
32
- # None, or an empty string, implies the user is managed by strongDM.
33
- module Provider
34
- NONE = ""
35
- OKTA = "okta"
36
- SAIL_POINT = "sailpoint"
37
- AZURE = "azure"
38
- GENERIC = "generic"
39
- ONE_LOGIN = "onelogin"
40
- GOOGLE = "google"
41
- end
42
- end
45
+ # Providers responsible for managing roles and users.
46
+ # None, or an empty string, implies the user is managed by strongDM.
47
+ module Provider
48
+ NONE = ""
49
+ OKTA = "okta"
50
+ SAIL_POINT = "sailpoint"
51
+ AZURE = "azure"
52
+ GENERIC = "generic"
53
+ ONE_LOGIN = "onelogin"
54
+ GOOGLE = "google"
55
+ end
56
+ end
data/lib/errors/errors.rb CHANGED
@@ -84,4 +84,11 @@ module SDM
84
84
  super(msg, 8)
85
85
  end
86
86
  end
87
+
88
+ # UnknownError is a generic wrapper that indicates an unknown internal error in the SDK
89
+ class UnknownError < RPCError
90
+ def initialize(msg)
91
+ super(msg, 2)
92
+ end
93
+ end
87
94
  end
data/lib/grpc/plumbing.rb CHANGED
@@ -659,6 +659,7 @@ module SDM
659
659
  if plumbing.user != nil
660
660
  return convert_user_to_porcelain(plumbing.user)
661
661
  end
662
+ raise UnknownError.new("unknown polymorphic type, please upgrade your SDK")
662
663
  end
663
664
  def self.convert_repeated_account_to_plumbing(porcelains)
664
665
  items = Array.new
@@ -4513,6 +4514,7 @@ module SDM
4513
4514
  if plumbing.relay != nil
4514
4515
  return convert_relay_to_porcelain(plumbing.relay)
4515
4516
  end
4517
+ raise UnknownError.new("unknown polymorphic type, please upgrade your SDK")
4516
4518
  end
4517
4519
  def self.convert_repeated_node_to_plumbing(porcelains)
4518
4520
  items = Array.new
@@ -5963,6 +5965,7 @@ module SDM
5963
5965
  if plumbing.teradata != nil
5964
5966
  return convert_teradata_to_porcelain(plumbing.teradata)
5965
5967
  end
5968
+ raise UnknownError.new("unknown polymorphic type, please upgrade your SDK")
5966
5969
  end
5967
5970
  def self.convert_repeated_resource_to_plumbing(porcelains)
5968
5971
  items = Array.new
@@ -6643,6 +6646,7 @@ module SDM
6643
6646
  if plumbing.vault_token != nil
6644
6647
  return convert_vault_token_store_to_porcelain(plumbing.vault_token)
6645
6648
  end
6649
+ raise UnknownError.new("unknown polymorphic type, please upgrade your SDK")
6646
6650
  end
6647
6651
  def self.convert_repeated_secret_store_to_plumbing(porcelains)
6648
6652
  items = Array.new
@@ -7441,7 +7445,7 @@ module SDM
7441
7445
  end
7442
7446
  def self.convert_error_to_porcelain(err)
7443
7447
  if not err.is_a? GRPC::BadStatus
7444
- return RPCError.new(err, 2) # Unknown
7448
+ return UnknownError.new(err.message)
7445
7449
  end
7446
7450
 
7447
7451
  if err.code == 4
data/lib/grpc/spec_pb.rb CHANGED
@@ -43,6 +43,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
43
43
  add_message "v1.CreateResponseMetadata" do
44
44
  end
45
45
  add_message "v1.GetRequestMetadata" do
46
+ optional :snapshot_at, :message, 1, "google.protobuf.Timestamp"
46
47
  end
47
48
  add_message "v1.GetResponseMetadata" do
48
49
  end
@@ -59,6 +60,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
59
60
  optional :page, :int32, 2
60
61
  optional :limit, :int32, 3
61
62
  optional :order_by, :string, 4
63
+ optional :snapshot_at, :message, 5, "google.protobuf.Timestamp"
62
64
  end
63
65
  add_message "v1.ListResponseMetadata" do
64
66
  optional :next_cursor, :string, 1
@@ -2159,7 +2159,6 @@ module SDM
2159
2159
  end
2160
2160
  end
2161
2161
 
2162
- # CyberarkConjurStore is currently unstable, and its API may change, or it may be removed, without a major version bump.
2163
2162
  class CyberarkConjurStore
2164
2163
  attr_accessor :appurl
2165
2164
  # Unique identifier of the SecretStore.
@@ -2221,7 +2220,6 @@ module SDM
2221
2220
  end
2222
2221
  end
2223
2222
 
2224
- # CyberarkPAMStore is currently unstable, and its API may change, or it may be removed, without a major version bump.
2225
2223
  class CyberarkPAMStore
2226
2224
  attr_accessor :appurl
2227
2225
  # Unique identifier of the SecretStore.
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/3.5.3"
32
+ USER_AGENT = "strongdm-sdk-ruby/3.5.5"
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
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
  #
15
15
  module SDM
16
- VERSION = "3.5.3"
16
+ VERSION = "3.5.5"
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 = "3.5.3"
16
+ VERSION = "3.5.5"
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: 3.5.3
4
+ version: 3.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - strongDM Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-12 00:00:00.000000000 Z
11
+ date: 2022-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -79,8 +79,8 @@ files:
79
79
  - "./.git/logs/HEAD"
80
80
  - "./.git/logs/refs/heads/master"
81
81
  - "./.git/logs/refs/remotes/origin/HEAD"
82
- - "./.git/objects/pack/pack-a862694809a9a1eccd547754cf4d168acdcf8f7d.idx"
83
- - "./.git/objects/pack/pack-a862694809a9a1eccd547754cf4d168acdcf8f7d.pack"
82
+ - "./.git/objects/pack/pack-ebefa28012a8f08cd83ed884ef22b6c72831eb2a.idx"
83
+ - "./.git/objects/pack/pack-ebefa28012a8f08cd83ed884ef22b6c72831eb2a.pack"
84
84
  - "./.git/packed-refs"
85
85
  - "./.git/refs/heads/master"
86
86
  - "./.git/refs/remotes/origin/HEAD"