strongdm 1.0.23 → 1.0.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.git/FETCH_HEAD +2 -0
- data/.git/HEAD +1 -0
- data/.git/ORIG_HEAD +1 -0
- data/.git/config +14 -0
- data/.git/description +1 -0
- data/.git/hooks/applypatch-msg.sample +15 -0
- data/.git/hooks/commit-msg.sample +24 -0
- data/.git/hooks/fsmonitor-watchman.sample +114 -0
- data/.git/hooks/post-update.sample +8 -0
- data/.git/hooks/pre-applypatch.sample +14 -0
- data/.git/hooks/pre-commit.sample +49 -0
- data/.git/hooks/pre-push.sample +53 -0
- data/.git/hooks/pre-rebase.sample +169 -0
- data/.git/hooks/pre-receive.sample +24 -0
- data/.git/hooks/prepare-commit-msg.sample +42 -0
- data/.git/hooks/update.sample +128 -0
- data/.git/index +0 -0
- data/.git/info/exclude +6 -0
- data/.git/logs/HEAD +4 -0
- data/.git/logs/refs/heads/development +1 -0
- data/.git/logs/refs/heads/master +2 -0
- data/.git/logs/refs/remotes/origin/HEAD +1 -0
- data/.git/objects/pack/pack-c145f7f05d162f9c48a04d57dee32a2d1473598c.idx +0 -0
- data/.git/objects/pack/pack-c145f7f05d162f9c48a04d57dee32a2d1473598c.pack +0 -0
- data/.git/packed-refs +28 -0
- data/.git/refs/heads/development +1 -0
- data/.git/refs/heads/master +1 -0
- data/.git/refs/remotes/origin/HEAD +1 -0
- data/doc/LICENSE.html +3 -9
- data/doc/Object.html +8 -24
- data/doc/README_md.html +7 -10
- data/doc/SDM/AKS.html +9 -84
- data/doc/SDM/AKSBasicAuth.html +9 -81
- data/doc/SDM/AKSServiceAccount.html +9 -78
- data/doc/SDM/AKSServiceAccountUserImpersonation.html +9 -78
- data/doc/SDM/AKSUserImpersonation.html +9 -84
- data/doc/SDM/AWS.html +8 -80
- data/doc/SDM/AWSStore.html +10 -61
- data/doc/SDM/AccountAttachment.html +8 -56
- data/doc/SDM/AccountAttachmentCreateResponse.html +8 -56
- data/doc/SDM/AccountAttachmentDeleteResponse.html +8 -53
- data/doc/SDM/AccountAttachmentGetResponse.html +8 -56
- data/doc/SDM/AccountAttachments.html +8 -84
- data/doc/SDM/AccountCreateResponse.html +8 -59
- data/doc/SDM/AccountDeleteResponse.html +8 -53
- data/doc/SDM/AccountGetResponse.html +8 -56
- data/doc/SDM/AccountGrant.html +8 -62
- data/doc/SDM/AccountGrantCreateResponse.html +8 -56
- data/doc/SDM/AccountGrantDeleteResponse.html +8 -53
- data/doc/SDM/AccountGrantGetResponse.html +8 -56
- data/doc/SDM/AccountGrants.html +8 -84
- data/doc/SDM/AccountUpdateResponse.html +8 -56
- data/doc/SDM/Accounts.html +9 -98
- data/doc/SDM/AlreadyExistsError.html +7 -31
- data/doc/SDM/AmazonEKS.html +9 -93
- data/doc/SDM/AmazonEKSUserImpersonation.html +9 -93
- data/doc/SDM/AmazonES.html +8 -86
- data/doc/SDM/AmazonMQAMQP091.html +8 -83
- data/doc/SDM/Athena.html +8 -86
- data/doc/SDM/AuroraMysql.html +8 -83
- data/doc/SDM/AuroraPostgres.html +10 -88
- data/doc/SDM/AuthenticationError.html +7 -31
- data/doc/SDM/BadRequestError.html +7 -31
- data/doc/SDM/BigQuery.html +8 -80
- data/doc/SDM/Cassandra.html +8 -83
- data/doc/SDM/Citus.html +10 -88
- data/doc/SDM/Client.html +22 -140
- data/doc/SDM/Clustrix.html +8 -83
- data/doc/SDM/Cockroach.html +10 -88
- data/doc/SDM/ControlPanel.html +8 -58
- data/doc/SDM/ControlPanelGetSSHCAPublicKeyResponse.html +8 -56
- data/doc/SDM/ControlPanelVerifyJWTResponse.html +8 -56
- data/doc/SDM/CreateResponseMetadata.html +8 -45
- data/doc/SDM/DB2LUW.html +8 -83
- data/doc/SDM/DB2i.html +8 -83
- data/doc/SDM/DeadlineExceededError.html +7 -31
- data/doc/SDM/DeleteResponseMetadata.html +8 -45
- data/doc/SDM/Druid.html +8 -80
- data/doc/SDM/DynamoDB.html +8 -86
- data/doc/SDM/Elastic.html +8 -83
- data/doc/SDM/ElasticacheRedis.html +10 -82
- data/doc/SDM/Gateway.html +10 -70
- data/doc/SDM/GetResponseMetadata.html +8 -45
- data/doc/SDM/GoogleGKE.html +9 -78
- data/doc/SDM/GoogleGKEUserImpersonation.html +9 -78
- data/doc/SDM/Greenplum.html +10 -88
- data/doc/SDM/HTTPAuth.html +8 -83
- data/doc/SDM/HTTPBasicAuth.html +8 -86
- data/doc/SDM/HTTPNoAuth.html +8 -80
- data/doc/SDM/InternalError.html +7 -31
- data/doc/SDM/Kubernetes.html +9 -84
- data/doc/SDM/KubernetesBasicAuth.html +9 -81
- data/doc/SDM/KubernetesServiceAccount.html +9 -78
- data/doc/SDM/KubernetesServiceAccountUserImpersonation.html +9 -78
- data/doc/SDM/KubernetesUserImpersonation.html +9 -84
- data/doc/SDM/Maria.html +8 -83
- data/doc/SDM/Memcached.html +8 -74
- data/doc/SDM/Memsql.html +8 -83
- data/doc/SDM/MongoHost.html +8 -86
- data/doc/SDM/MongoLegacyHost.html +8 -89
- data/doc/SDM/MongoLegacyReplicaset.html +8 -92
- data/doc/SDM/MongoReplicaSet.html +8 -92
- data/doc/SDM/Mysql.html +8 -83
- data/doc/SDM/NodeCreateResponse.html +10 -61
- data/doc/SDM/NodeDeleteResponse.html +10 -55
- data/doc/SDM/NodeGetResponse.html +10 -58
- data/doc/SDM/NodeUpdateResponse.html +10 -58
- data/doc/SDM/Nodes.html +10 -99
- data/doc/SDM/NotFoundError.html +7 -31
- data/doc/SDM/Oracle.html +10 -88
- data/doc/SDM/PermissionError.html +7 -31
- data/doc/SDM/Plumbing.html +641 -6393
- data/doc/SDM/Postgres.html +10 -88
- data/doc/SDM/Presto.html +10 -88
- data/doc/SDM/RDP.html +10 -82
- data/doc/SDM/RPCError.html +7 -36
- data/doc/SDM/RabbitMQAMQP091.html +8 -83
- data/doc/SDM/RateLimitError.html +7 -36
- data/doc/SDM/RateLimitMetadata.html +8 -59
- data/doc/SDM/{SecretStore.html → RawTCP.html} +90 -86
- data/doc/SDM/Redis.html +10 -79
- data/doc/SDM/Redshift.html +10 -88
- data/doc/SDM/Relay.html +10 -64
- data/doc/SDM/ResourceCreateResponse.html +10 -58
- data/doc/SDM/ResourceDeleteResponse.html +10 -55
- data/doc/SDM/ResourceGetResponse.html +10 -58
- data/doc/SDM/ResourceUpdateResponse.html +10 -58
- data/doc/SDM/Resources.html +8 -110
- data/doc/SDM/Role.html +26 -62
- data/doc/SDM/RoleAttachment.html +10 -58
- data/doc/SDM/RoleAttachmentCreateResponse.html +10 -58
- data/doc/SDM/RoleAttachmentDeleteResponse.html +10 -55
- data/doc/SDM/RoleAttachmentGetResponse.html +10 -58
- data/doc/SDM/RoleAttachments.html +8 -84
- data/doc/SDM/RoleCreateResponse.html +10 -58
- data/doc/SDM/RoleDeleteResponse.html +10 -55
- data/doc/SDM/RoleGetResponse.html +10 -58
- data/doc/SDM/RoleGrant.html +10 -58
- data/doc/SDM/RoleGrantCreateResponse.html +10 -58
- data/doc/SDM/RoleGrantDeleteResponse.html +10 -55
- data/doc/SDM/RoleGrantGetResponse.html +10 -58
- data/doc/SDM/RoleGrants.html +8 -84
- data/doc/SDM/RoleUpdateResponse.html +10 -58
- data/doc/SDM/Roles.html +8 -97
- data/doc/SDM/SQLServer.html +10 -91
- data/doc/SDM/SSH.html +10 -85
- data/doc/SDM/SSHCert.html +10 -82
- data/doc/SDM/SSHCustomerKey.html +10 -85
- data/doc/SDM/SecretStoreCreateResponse.html +10 -58
- data/doc/SDM/SecretStoreDeleteResponse.html +10 -55
- data/doc/SDM/SecretStoreGetResponse.html +10 -58
- data/doc/SDM/SecretStoreUpdateResponse.html +10 -58
- data/doc/SDM/SecretStores.html +8 -97
- data/doc/SDM/Service.html +8 -59
- data/doc/SDM/{AmazonMQRabbitMQAMQP091.html → SingleStore.html} +38 -113
- data/doc/SDM/Snowflake.html +10 -85
- data/doc/SDM/Sybase.html +10 -82
- data/doc/SDM/SybaseIQ.html +10 -82
- data/doc/SDM/Tag.html +8 -53
- data/doc/SDM/Teradata.html +10 -82
- data/doc/SDM/UpdateResponseMetadata.html +8 -45
- data/doc/SDM/User.html +8 -65
- data/doc/SDM/VaultTLSStore.html +10 -70
- data/doc/SDM/VaultTokenStore.html +10 -61
- data/doc/SDM.html +2 -15
- data/doc/V1/AccountAttachments/Service.html +7 -19
- data/doc/V1/AccountAttachments.html +2 -15
- data/doc/V1/AccountGrants/Service.html +7 -19
- data/doc/V1/AccountGrants.html +2 -15
- data/doc/V1/Accounts/Service.html +8 -20
- data/doc/V1/Accounts.html +2 -15
- data/doc/V1/ControlPanel/Service.html +7 -19
- data/doc/V1/ControlPanel.html +2 -15
- data/doc/V1/Nodes/Service.html +9 -21
- data/doc/V1/Nodes.html +2 -15
- data/doc/V1/Resources/Service.html +7 -19
- data/doc/V1/Resources.html +2 -15
- data/doc/V1/RoleAttachments/Service.html +7 -19
- data/doc/V1/RoleAttachments.html +2 -15
- data/doc/V1/RoleGrants/Service.html +7 -19
- data/doc/V1/RoleGrants.html +2 -15
- data/doc/V1/Roles/Service.html +7 -19
- data/doc/V1/Roles.html +2 -15
- data/doc/V1/SecretStores/Service.html +7 -19
- data/doc/V1/SecretStores.html +2 -15
- data/doc/V1/Tags.html +2 -15
- data/doc/V1.html +10 -802
- data/doc/created.rid +37 -56
- data/doc/css/rdoc.css +21 -1
- data/doc/examples/Gemfile.html +3 -9
- data/doc/index.html +5 -188
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search_index.js +1 -1
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js.gz +0 -0
- data/doc/lib/version.html +4 -10
- data/doc/table_of_contents.html +398 -716
- data/lib/grpc/account_attachments_services_pb.rb +1 -1
- data/lib/grpc/account_grants_services_pb.rb +1 -1
- data/lib/grpc/accounts_services_pb.rb +1 -1
- data/lib/grpc/control_panel_services_pb.rb +1 -1
- data/lib/grpc/drivers_pb.rb +29 -0
- data/lib/grpc/nodes_services_pb.rb +1 -1
- data/lib/grpc/options_pb.rb +10 -14
- data/lib/grpc/plumbing.rb +120 -0
- data/lib/grpc/resources_services_pb.rb +1 -1
- data/lib/grpc/role_attachments_services_pb.rb +1 -1
- data/lib/grpc/role_grants_services_pb.rb +1 -1
- data/lib/grpc/roles_pb.rb +1 -0
- data/lib/grpc/roles_services_pb.rb +1 -1
- data/lib/grpc/secret_stores_services_pb.rb +1 -1
- data/lib/models/porcelain.rb +176 -14
- data/lib/strongdm.rb +8 -1
- data/lib/version +1 -1
- data/lib/version.rb +1 -1
- data/strongdm.gemspec +5 -5
- metadata +279 -291
- data/doc/Google/Protobuf.html +0 -95
- data/doc/Google.html +0 -95
- data/doc/SDM/AccessRuleCreateResponse.html +0 -267
- data/doc/SDM/AccessRuleDeleteResponse.html +0 -249
- data/doc/SDM/AccessRuleUpdateResponse.html +0 -267
- data/doc/SDM/AccountAttachmentCreateOptions.html +0 -231
- data/doc/V1/AccessRules/Service.html +0 -119
- data/doc/V1/AccessRules.html +0 -113
- data/doc/V1/Audits/Service.html +0 -119
- data/doc/V1/Audits.html +0 -113
- data/doc/V1/BuildsPrivate/Service.html +0 -119
- data/doc/V1/BuildsPrivate.html +0 -113
- data/doc/V1/DemoProvisioningRequests/Service.html +0 -119
- data/doc/V1/DemoProvisioningRequests.html +0 -113
- data/doc/V1/Permissions/Service.html +0 -119
- data/doc/V1/SecretStoreHealths/Service.html +0 -119
- data/doc/V1/SecretStoreHealths.html +0 -113
- data/doc/examples/Gemfile_lock.html +0 -122
- data/doc/examples/README_md.html +0 -105
- data/doc/examples/okta-sync/Gemfile.html +0 -105
- data/doc/examples/okta-sync/Gemfile_lock.html +0 -146
- data/doc/js/jquery.js +0 -4
- data/doc/strongdm_gemspec.html +0 -119
data/lib/models/porcelain.rb
CHANGED
@@ -2045,7 +2045,7 @@ module SDM
|
|
2045
2045
|
attr_accessor :client_certificate
|
2046
2046
|
|
2047
2047
|
attr_accessor :client_key
|
2048
|
-
|
2048
|
+
# The path used to check the health of your connection. Defaults to `default`.
|
2049
2049
|
attr_accessor :healthcheck_namespace
|
2050
2050
|
|
2051
2051
|
def initialize(
|
@@ -2132,7 +2132,7 @@ module SDM
|
|
2132
2132
|
attr_accessor :client_certificate
|
2133
2133
|
|
2134
2134
|
attr_accessor :client_key
|
2135
|
-
|
2135
|
+
# The path used to check the health of your connection. Defaults to `default`.
|
2136
2136
|
attr_accessor :healthcheck_namespace
|
2137
2137
|
|
2138
2138
|
def initialize(
|
@@ -2217,7 +2217,7 @@ module SDM
|
|
2217
2217
|
attr_accessor :username
|
2218
2218
|
|
2219
2219
|
attr_accessor :password
|
2220
|
-
|
2220
|
+
# The path used to check the health of your connection. Defaults to `default`.
|
2221
2221
|
attr_accessor :healthcheck_namespace
|
2222
2222
|
|
2223
2223
|
def initialize(
|
@@ -2296,7 +2296,7 @@ module SDM
|
|
2296
2296
|
attr_accessor :port
|
2297
2297
|
|
2298
2298
|
attr_accessor :token
|
2299
|
-
|
2299
|
+
# The path used to check the health of your connection. Defaults to `default`.
|
2300
2300
|
attr_accessor :healthcheck_namespace
|
2301
2301
|
|
2302
2302
|
def initialize(
|
@@ -2371,7 +2371,7 @@ module SDM
|
|
2371
2371
|
attr_accessor :port
|
2372
2372
|
|
2373
2373
|
attr_accessor :token
|
2374
|
-
|
2374
|
+
# The path used to check the health of your connection. Defaults to `default`.
|
2375
2375
|
attr_accessor :healthcheck_namespace
|
2376
2376
|
|
2377
2377
|
def initialize(
|
@@ -2456,7 +2456,7 @@ module SDM
|
|
2456
2456
|
attr_accessor :role_arn
|
2457
2457
|
|
2458
2458
|
attr_accessor :role_external_id
|
2459
|
-
|
2459
|
+
# The path used to check the health of your connection. Defaults to `default`.
|
2460
2460
|
attr_accessor :healthcheck_namespace
|
2461
2461
|
|
2462
2462
|
def initialize(
|
@@ -2561,7 +2561,7 @@ module SDM
|
|
2561
2561
|
attr_accessor :role_arn
|
2562
2562
|
|
2563
2563
|
attr_accessor :role_external_id
|
2564
|
-
|
2564
|
+
# The path used to check the health of your connection. Defaults to `default`.
|
2565
2565
|
attr_accessor :healthcheck_namespace
|
2566
2566
|
|
2567
2567
|
def initialize(
|
@@ -2656,7 +2656,7 @@ module SDM
|
|
2656
2656
|
attr_accessor :certificate_authority
|
2657
2657
|
|
2658
2658
|
attr_accessor :service_account_key
|
2659
|
-
|
2659
|
+
# The path used to check the health of your connection. Defaults to `default`.
|
2660
2660
|
attr_accessor :healthcheck_namespace
|
2661
2661
|
|
2662
2662
|
def initialize(
|
@@ -2731,7 +2731,7 @@ module SDM
|
|
2731
2731
|
attr_accessor :certificate_authority
|
2732
2732
|
|
2733
2733
|
attr_accessor :service_account_key
|
2734
|
-
|
2734
|
+
# The path used to check the health of your connection. Defaults to `default`.
|
2735
2735
|
attr_accessor :healthcheck_namespace
|
2736
2736
|
|
2737
2737
|
def initialize(
|
@@ -2810,7 +2810,7 @@ module SDM
|
|
2810
2810
|
attr_accessor :client_certificate
|
2811
2811
|
|
2812
2812
|
attr_accessor :client_key
|
2813
|
-
|
2813
|
+
# The path used to check the health of your connection. Defaults to `default`.
|
2814
2814
|
attr_accessor :healthcheck_namespace
|
2815
2815
|
|
2816
2816
|
def initialize(
|
@@ -2897,7 +2897,7 @@ module SDM
|
|
2897
2897
|
attr_accessor :client_certificate
|
2898
2898
|
|
2899
2899
|
attr_accessor :client_key
|
2900
|
-
|
2900
|
+
# The path used to check the health of your connection. Defaults to `default`.
|
2901
2901
|
attr_accessor :healthcheck_namespace
|
2902
2902
|
|
2903
2903
|
def initialize(
|
@@ -2982,7 +2982,7 @@ module SDM
|
|
2982
2982
|
attr_accessor :username
|
2983
2983
|
|
2984
2984
|
attr_accessor :password
|
2985
|
-
|
2985
|
+
# The path used to check the health of your connection. Defaults to `default`.
|
2986
2986
|
attr_accessor :healthcheck_namespace
|
2987
2987
|
|
2988
2988
|
def initialize(
|
@@ -3061,7 +3061,7 @@ module SDM
|
|
3061
3061
|
attr_accessor :port
|
3062
3062
|
|
3063
3063
|
attr_accessor :token
|
3064
|
-
|
3064
|
+
# The path used to check the health of your connection. Defaults to `default`.
|
3065
3065
|
attr_accessor :healthcheck_namespace
|
3066
3066
|
|
3067
3067
|
def initialize(
|
@@ -3136,7 +3136,7 @@ module SDM
|
|
3136
3136
|
attr_accessor :port
|
3137
3137
|
|
3138
3138
|
attr_accessor :token
|
3139
|
-
|
3139
|
+
# The path used to check the health of your connection. Defaults to `default`.
|
3140
3140
|
attr_accessor :healthcheck_namespace
|
3141
3141
|
|
3142
3142
|
def initialize(
|
@@ -4098,6 +4098,93 @@ module SDM
|
|
4098
4098
|
end
|
4099
4099
|
end
|
4100
4100
|
|
4101
|
+
class SingleStore
|
4102
|
+
# Unique identifier of the Resource.
|
4103
|
+
attr_accessor :id
|
4104
|
+
# Unique human-readable name of the Resource.
|
4105
|
+
attr_accessor :name
|
4106
|
+
# True if the datasource is reachable and the credentials are valid.
|
4107
|
+
attr_accessor :healthy
|
4108
|
+
# Tags is a map of key, value pairs.
|
4109
|
+
attr_accessor :tags
|
4110
|
+
# ID of the secret store containing credentials for this resource, if any.
|
4111
|
+
attr_accessor :secret_store_id
|
4112
|
+
# A filter applied to the routing logic to pin datasource to nodes.
|
4113
|
+
attr_accessor :egress_filter
|
4114
|
+
|
4115
|
+
attr_accessor :hostname
|
4116
|
+
|
4117
|
+
attr_accessor :username
|
4118
|
+
|
4119
|
+
attr_accessor :password
|
4120
|
+
|
4121
|
+
attr_accessor :database
|
4122
|
+
|
4123
|
+
attr_accessor :port_override
|
4124
|
+
|
4125
|
+
attr_accessor :port
|
4126
|
+
|
4127
|
+
def initialize(
|
4128
|
+
id: nil,
|
4129
|
+
name: nil,
|
4130
|
+
healthy: nil,
|
4131
|
+
tags: nil,
|
4132
|
+
secret_store_id: nil,
|
4133
|
+
egress_filter: nil,
|
4134
|
+
hostname: nil,
|
4135
|
+
username: nil,
|
4136
|
+
password: nil,
|
4137
|
+
database: nil,
|
4138
|
+
port_override: nil,
|
4139
|
+
port: nil
|
4140
|
+
)
|
4141
|
+
if id != nil
|
4142
|
+
@id = id
|
4143
|
+
end
|
4144
|
+
if name != nil
|
4145
|
+
@name = name
|
4146
|
+
end
|
4147
|
+
if healthy != nil
|
4148
|
+
@healthy = healthy
|
4149
|
+
end
|
4150
|
+
if tags != nil
|
4151
|
+
@tags = tags
|
4152
|
+
end
|
4153
|
+
if secret_store_id != nil
|
4154
|
+
@secret_store_id = secret_store_id
|
4155
|
+
end
|
4156
|
+
if egress_filter != nil
|
4157
|
+
@egress_filter = egress_filter
|
4158
|
+
end
|
4159
|
+
if hostname != nil
|
4160
|
+
@hostname = hostname
|
4161
|
+
end
|
4162
|
+
if username != nil
|
4163
|
+
@username = username
|
4164
|
+
end
|
4165
|
+
if password != nil
|
4166
|
+
@password = password
|
4167
|
+
end
|
4168
|
+
if database != nil
|
4169
|
+
@database = database
|
4170
|
+
end
|
4171
|
+
if port_override != nil
|
4172
|
+
@port_override = port_override
|
4173
|
+
end
|
4174
|
+
if port != nil
|
4175
|
+
@port = port
|
4176
|
+
end
|
4177
|
+
end
|
4178
|
+
|
4179
|
+
def to_json(options = {})
|
4180
|
+
hash = {}
|
4181
|
+
self.instance_variables.each do |var|
|
4182
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
4183
|
+
end
|
4184
|
+
hash.to_json
|
4185
|
+
end
|
4186
|
+
end
|
4187
|
+
|
4101
4188
|
class Oracle
|
4102
4189
|
# Unique identifier of the Resource.
|
4103
4190
|
attr_accessor :id
|
@@ -4842,6 +4929,75 @@ module SDM
|
|
4842
4929
|
end
|
4843
4930
|
end
|
4844
4931
|
|
4932
|
+
class RawTCP
|
4933
|
+
# Unique identifier of the Resource.
|
4934
|
+
attr_accessor :id
|
4935
|
+
# Unique human-readable name of the Resource.
|
4936
|
+
attr_accessor :name
|
4937
|
+
# True if the datasource is reachable and the credentials are valid.
|
4938
|
+
attr_accessor :healthy
|
4939
|
+
# Tags is a map of key, value pairs.
|
4940
|
+
attr_accessor :tags
|
4941
|
+
# ID of the secret store containing credentials for this resource, if any.
|
4942
|
+
attr_accessor :secret_store_id
|
4943
|
+
# A filter applied to the routing logic to pin datasource to nodes.
|
4944
|
+
attr_accessor :egress_filter
|
4945
|
+
|
4946
|
+
attr_accessor :hostname
|
4947
|
+
|
4948
|
+
attr_accessor :port_override
|
4949
|
+
|
4950
|
+
attr_accessor :port
|
4951
|
+
|
4952
|
+
def initialize(
|
4953
|
+
id: nil,
|
4954
|
+
name: nil,
|
4955
|
+
healthy: nil,
|
4956
|
+
tags: nil,
|
4957
|
+
secret_store_id: nil,
|
4958
|
+
egress_filter: nil,
|
4959
|
+
hostname: nil,
|
4960
|
+
port_override: nil,
|
4961
|
+
port: nil
|
4962
|
+
)
|
4963
|
+
if id != nil
|
4964
|
+
@id = id
|
4965
|
+
end
|
4966
|
+
if name != nil
|
4967
|
+
@name = name
|
4968
|
+
end
|
4969
|
+
if healthy != nil
|
4970
|
+
@healthy = healthy
|
4971
|
+
end
|
4972
|
+
if tags != nil
|
4973
|
+
@tags = tags
|
4974
|
+
end
|
4975
|
+
if secret_store_id != nil
|
4976
|
+
@secret_store_id = secret_store_id
|
4977
|
+
end
|
4978
|
+
if egress_filter != nil
|
4979
|
+
@egress_filter = egress_filter
|
4980
|
+
end
|
4981
|
+
if hostname != nil
|
4982
|
+
@hostname = hostname
|
4983
|
+
end
|
4984
|
+
if port_override != nil
|
4985
|
+
@port_override = port_override
|
4986
|
+
end
|
4987
|
+
if port != nil
|
4988
|
+
@port = port
|
4989
|
+
end
|
4990
|
+
end
|
4991
|
+
|
4992
|
+
def to_json(options = {})
|
4993
|
+
hash = {}
|
4994
|
+
self.instance_variables.each do |var|
|
4995
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
4996
|
+
end
|
4997
|
+
hash.to_json
|
4998
|
+
end
|
4999
|
+
end
|
5000
|
+
|
4845
5001
|
class RDP
|
4846
5002
|
# Unique identifier of the Resource.
|
4847
5003
|
attr_accessor :id
|
@@ -6540,6 +6696,8 @@ module SDM
|
|
6540
6696
|
attr_accessor :id
|
6541
6697
|
# Unique human-readable name of the Role.
|
6542
6698
|
attr_accessor :name
|
6699
|
+
# AccessRules JSON encoded access rules data.
|
6700
|
+
attr_accessor :access_rules
|
6543
6701
|
# True if the Role is a composite role.
|
6544
6702
|
attr_accessor :composite
|
6545
6703
|
# Tags is a map of key, value pairs.
|
@@ -6548,6 +6706,7 @@ module SDM
|
|
6548
6706
|
def initialize(
|
6549
6707
|
id: nil,
|
6550
6708
|
name: nil,
|
6709
|
+
access_rules: nil,
|
6551
6710
|
composite: nil,
|
6552
6711
|
tags: nil
|
6553
6712
|
)
|
@@ -6557,6 +6716,9 @@ module SDM
|
|
6557
6716
|
if name != nil
|
6558
6717
|
@name = name
|
6559
6718
|
end
|
6719
|
+
if access_rules != nil
|
6720
|
+
@access_rules = access_rules
|
6721
|
+
end
|
6560
6722
|
if composite != nil
|
6561
6723
|
@composite = composite
|
6562
6724
|
end
|
data/lib/strongdm.rb
CHANGED
@@ -22,6 +22,8 @@ require "openssl"
|
|
22
22
|
DEFAULT_MAX_RETRIES = 3
|
23
23
|
DEFAULT_BASE_RETRY_DELAY = 0.0030 # 30 ms
|
24
24
|
DEFAULT_MAX_RETRY_DELAY = 300 # 300 seconds
|
25
|
+
API_VERSION = "2021-08-23"
|
26
|
+
USER_AGENT = "strongdm-sdk-ruby/1.0.28"
|
25
27
|
|
26
28
|
module SDM
|
27
29
|
|
@@ -51,7 +53,12 @@ module SDM
|
|
51
53
|
end
|
52
54
|
|
53
55
|
def get_metadata(method_name, req)
|
54
|
-
return {
|
56
|
+
return {
|
57
|
+
'x-sdm-authentication': @api_access_key,
|
58
|
+
'x-sdm-signature': self.sign(method_name, req.to_proto),
|
59
|
+
'x-sdm-api-version': API_VERSION,
|
60
|
+
'x-sdm-user-agent': USER_AGENT,
|
61
|
+
}
|
55
62
|
end
|
56
63
|
|
57
64
|
def sign(method_name, msg_bytes)
|
data/lib/version
CHANGED
data/lib/version.rb
CHANGED
data/strongdm.gemspec
CHANGED
@@ -11,13 +11,13 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.summary = "strongDM SDK for the Ruby programming language."
|
12
12
|
s.description = "strongDM Ruby Library for automating interactions with strongDM."
|
13
13
|
s.licenses = ["Apache-2.0"]
|
14
|
-
s.required_ruby_version = ">= 2.
|
14
|
+
s.required_ruby_version = ">= 2.4.0"
|
15
15
|
s.required_rubygems_version = ">= 1.3.6"
|
16
16
|
|
17
|
-
s.add_runtime_dependency "grpc", "~> 1.
|
18
|
-
s.add_runtime_dependency "grpc-tools", "~> 1.
|
19
|
-
s.add_runtime_dependency "openssl", "~> 2.1.2"
|
17
|
+
s.add_runtime_dependency "grpc", "~> 1.36"
|
18
|
+
s.add_runtime_dependency "grpc-tools", "~> 1.36"
|
19
|
+
s.add_runtime_dependency "openssl", "~> 2.1.2"
|
20
20
|
|
21
|
-
s.files = `
|
21
|
+
s.files = `find . | grep -v "strongdm-#{SDM::VERSION}.gem"`.split("\n")
|
22
22
|
s.require_path = "lib"
|
23
23
|
end
|