strongdm 13.11.0 → 14.0.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-1d9fc140c6d5e5a873af3b9499b2cf070fc0bd1e.idx → pack-506fd68e43b73695be77ec3d6e0aef9ecb46e913.idx} +0 -0
- data/.git/objects/pack/{pack-1d9fc140c6d5e5a873af3b9499b2cf070fc0bd1e.pack → pack-506fd68e43b73695be77ec3d6e0aef9ecb46e913.pack} +0 -0
- data/.git/packed-refs +4 -2
- data/.git/refs/heads/master +1 -1
- data/lib/grpc/accounts_pb.rb +2 -0
- data/lib/grpc/approval_workflow_approvers_services_pb.rb +4 -4
- data/lib/grpc/approval_workflow_steps_pb.rb +4 -0
- data/lib/grpc/approval_workflow_steps_services_pb.rb +4 -4
- data/lib/grpc/managed_secrets_pb.rb +171 -0
- data/lib/grpc/managed_secrets_services_pb.rb +59 -0
- data/lib/grpc/plumbing.rb +4265 -2492
- data/lib/grpc/secret_engine_policy_pb.rb +41 -0
- data/lib/grpc/secret_engine_types_pb.rb +75 -0
- data/lib/grpc/secret_engines_pb.rb +124 -0
- data/lib/grpc/secret_engines_services_pb.rb +53 -0
- data/lib/models/porcelain.rb +1304 -60
- data/lib/strongdm.rb +15 -1
- data/lib/svc.rb +668 -12
- data/lib/version +1 -1
- data/lib/version.rb +1 -1
- metadata +10 -4
data/lib/models/porcelain.rb
CHANGED
@@ -1661,6 +1661,111 @@ module SDM
|
|
1661
1661
|
end
|
1662
1662
|
end
|
1663
1663
|
|
1664
|
+
# ActiveDirectoryEngine is currently unstable, and its API may change, or it may be removed, without a major version bump.
|
1665
|
+
class ActiveDirectoryEngine
|
1666
|
+
# The default time-to-live duration of the password after it's read. Once the ttl has passed, a password will be rotated.
|
1667
|
+
attr_accessor :after_read_ttl
|
1668
|
+
# Distinguished name of object to bind when performing user and group search. Example: cn=vault,ou=Users,dc=example,dc=com
|
1669
|
+
attr_accessor :binddn
|
1670
|
+
# Password to use along with binddn when performing user search.
|
1671
|
+
attr_accessor :bindpass
|
1672
|
+
# CA certificate to use when verifying LDAP server certificate, must be x509 PEM encoded.
|
1673
|
+
attr_accessor :certificate
|
1674
|
+
# Timeout, in seconds, when attempting to connect to the LDAP server before trying the next URL in the configuration.
|
1675
|
+
attr_accessor :connection_timeout
|
1676
|
+
# If set to true this will prevent password change timestamp validation in Active Directory when validating credentials
|
1677
|
+
attr_accessor :do_not_validate_timestamps
|
1678
|
+
# Unique identifier of the Secret Engine.
|
1679
|
+
attr_accessor :id
|
1680
|
+
# If true, skips LDAP server SSL certificate verification - insecure, use with caution!
|
1681
|
+
attr_accessor :insecure_tls
|
1682
|
+
# An interval of public/private key rotation for secret engine in days
|
1683
|
+
attr_accessor :key_rotation_interval_days
|
1684
|
+
# The maximum retry duration in case of automatic failure.
|
1685
|
+
# On failed ttl rotation attempt it will be retried in an increasing intervals until it reaches max_backoff_duration
|
1686
|
+
attr_accessor :max_backoff_duration
|
1687
|
+
# Unique human-readable name of the Secret Engine.
|
1688
|
+
attr_accessor :name
|
1689
|
+
# Policy for password creation
|
1690
|
+
attr_accessor :policy
|
1691
|
+
# Public key linked with a secret engine
|
1692
|
+
attr_accessor :public_key
|
1693
|
+
# Timeout, in seconds, for the connection when making requests against the server before returning back an error.
|
1694
|
+
attr_accessor :request_timeout
|
1695
|
+
# Backing secret store identifier
|
1696
|
+
attr_accessor :secret_store_id
|
1697
|
+
# Backing Secret Store root path where managed secrets are going to be stored
|
1698
|
+
attr_accessor :secret_store_root_path
|
1699
|
+
# If true, issues a StartTLS command after establishing an unencrypted connection.
|
1700
|
+
attr_accessor :start_tls
|
1701
|
+
# Tags is a map of key, value pairs.
|
1702
|
+
attr_accessor :tags
|
1703
|
+
# The default password time-to-live duration. Once the ttl has passed, a password will be rotated the next time it's requested.
|
1704
|
+
attr_accessor :ttl
|
1705
|
+
# The domain (userPrincipalDomain) used to construct a UPN string for authentication.
|
1706
|
+
attr_accessor :upndomain
|
1707
|
+
# The LDAP server to connect to.
|
1708
|
+
attr_accessor :url
|
1709
|
+
# Base DN under which to perform user search. Example: ou=Users,dc=example,dc=com
|
1710
|
+
attr_accessor :userdn
|
1711
|
+
|
1712
|
+
def initialize(
|
1713
|
+
after_read_ttl: nil,
|
1714
|
+
binddn: nil,
|
1715
|
+
bindpass: nil,
|
1716
|
+
certificate: nil,
|
1717
|
+
connection_timeout: nil,
|
1718
|
+
do_not_validate_timestamps: nil,
|
1719
|
+
id: nil,
|
1720
|
+
insecure_tls: nil,
|
1721
|
+
key_rotation_interval_days: nil,
|
1722
|
+
max_backoff_duration: nil,
|
1723
|
+
name: nil,
|
1724
|
+
policy: nil,
|
1725
|
+
public_key: nil,
|
1726
|
+
request_timeout: nil,
|
1727
|
+
secret_store_id: nil,
|
1728
|
+
secret_store_root_path: nil,
|
1729
|
+
start_tls: nil,
|
1730
|
+
tags: nil,
|
1731
|
+
ttl: nil,
|
1732
|
+
upndomain: nil,
|
1733
|
+
url: nil,
|
1734
|
+
userdn: nil
|
1735
|
+
)
|
1736
|
+
@after_read_ttl = after_read_ttl == nil ? nil : after_read_ttl
|
1737
|
+
@binddn = binddn == nil ? "" : binddn
|
1738
|
+
@bindpass = bindpass == nil ? "" : bindpass
|
1739
|
+
@certificate = certificate == nil ? "" : certificate
|
1740
|
+
@connection_timeout = connection_timeout == nil ? 0 : connection_timeout
|
1741
|
+
@do_not_validate_timestamps = do_not_validate_timestamps == nil ? false : do_not_validate_timestamps
|
1742
|
+
@id = id == nil ? "" : id
|
1743
|
+
@insecure_tls = insecure_tls == nil ? false : insecure_tls
|
1744
|
+
@key_rotation_interval_days = key_rotation_interval_days == nil ? 0 : key_rotation_interval_days
|
1745
|
+
@max_backoff_duration = max_backoff_duration == nil ? nil : max_backoff_duration
|
1746
|
+
@name = name == nil ? "" : name
|
1747
|
+
@policy = policy == nil ? nil : policy
|
1748
|
+
@public_key = public_key == nil ? "" : public_key
|
1749
|
+
@request_timeout = request_timeout == nil ? 0 : request_timeout
|
1750
|
+
@secret_store_id = secret_store_id == nil ? "" : secret_store_id
|
1751
|
+
@secret_store_root_path = secret_store_root_path == nil ? "" : secret_store_root_path
|
1752
|
+
@start_tls = start_tls == nil ? false : start_tls
|
1753
|
+
@tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
|
1754
|
+
@ttl = ttl == nil ? nil : ttl
|
1755
|
+
@upndomain = upndomain == nil ? "" : upndomain
|
1756
|
+
@url = url == nil ? "" : url
|
1757
|
+
@userdn = userdn == nil ? "" : userdn
|
1758
|
+
end
|
1759
|
+
|
1760
|
+
def to_json(options = {})
|
1761
|
+
hash = {}
|
1762
|
+
self.instance_variables.each do |var|
|
1763
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
1764
|
+
end
|
1765
|
+
hash.to_json
|
1766
|
+
end
|
1767
|
+
end
|
1768
|
+
|
1664
1769
|
class ActiveDirectoryStore
|
1665
1770
|
# Unique identifier of the SecretStore.
|
1666
1771
|
attr_accessor :id
|
@@ -2466,11 +2571,65 @@ module SDM
|
|
2466
2571
|
end
|
2467
2572
|
end
|
2468
2573
|
|
2574
|
+
# An approver for an approval workflow step. Specifies either an account_id or an role_id (not both)
|
2575
|
+
class ApprovalFlowApprover
|
2576
|
+
# The approver account id.
|
2577
|
+
attr_accessor :account_id
|
2578
|
+
# The approver role id
|
2579
|
+
attr_accessor :role_id
|
2580
|
+
|
2581
|
+
def initialize(
|
2582
|
+
account_id: nil,
|
2583
|
+
role_id: nil
|
2584
|
+
)
|
2585
|
+
@account_id = account_id == nil ? "" : account_id
|
2586
|
+
@role_id = role_id == nil ? "" : role_id
|
2587
|
+
end
|
2588
|
+
|
2589
|
+
def to_json(options = {})
|
2590
|
+
hash = {}
|
2591
|
+
self.instance_variables.each do |var|
|
2592
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
2593
|
+
end
|
2594
|
+
hash.to_json
|
2595
|
+
end
|
2596
|
+
end
|
2597
|
+
|
2598
|
+
# An approval step for an approval workflow. Specifies approvers and conditions for approval to be granted.
|
2599
|
+
class ApprovalFlowStep
|
2600
|
+
# The approvers for this approval step
|
2601
|
+
attr_accessor :approvers
|
2602
|
+
# Whether "any" or "all" approvers must approve for this approval step to pass. Optional, defaults to "any".
|
2603
|
+
attr_accessor :quantifier
|
2604
|
+
# Duration after which this approval step will be skipped if no approval is given. Optional, if not provided an approver must approve before the step passes.
|
2605
|
+
attr_accessor :skip_after
|
2606
|
+
|
2607
|
+
def initialize(
|
2608
|
+
approvers: nil,
|
2609
|
+
quantifier: nil,
|
2610
|
+
skip_after: nil
|
2611
|
+
)
|
2612
|
+
@approvers = approvers == nil ? [] : approvers
|
2613
|
+
@quantifier = quantifier == nil ? "" : quantifier
|
2614
|
+
@skip_after = skip_after == nil ? nil : skip_after
|
2615
|
+
end
|
2616
|
+
|
2617
|
+
def to_json(options = {})
|
2618
|
+
hash = {}
|
2619
|
+
self.instance_variables.each do |var|
|
2620
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
2621
|
+
end
|
2622
|
+
hash.to_json
|
2623
|
+
end
|
2624
|
+
end
|
2625
|
+
|
2469
2626
|
# ApprovalWorkflows are the mechanism by which requests for access can be viewed by authorized
|
2470
2627
|
# approvers and be approved or denied.
|
2471
2628
|
class ApprovalWorkflow
|
2472
2629
|
# Approval mode of the ApprovalWorkflow
|
2473
2630
|
attr_accessor :approval_mode
|
2631
|
+
# The approval steps of this approval workflow
|
2632
|
+
attr_accessor :approval_workflow_steps
|
2474
2633
|
# Optional description of the ApprovalWorkflow.
|
2475
2634
|
attr_accessor :description
|
2476
2635
|
# Unique identifier of the ApprovalWorkflow.
|
@@ -2480,11 +2639,13 @@ module SDM
|
|
2480
2639
|
|
2481
2640
|
def initialize(
|
2482
2641
|
approval_mode: nil,
|
2642
|
+
approval_workflow_steps: nil,
|
2483
2643
|
description: nil,
|
2484
2644
|
id: nil,
|
2485
2645
|
name: nil
|
2486
2646
|
)
|
2487
2647
|
@approval_mode = approval_mode == nil ? "" : approval_mode
|
2648
|
+
@approval_workflow_steps = approval_workflow_steps == nil ? [] : approval_workflow_steps
|
2488
2649
|
@description = description == nil ? "" : description
|
2489
2650
|
@id = id == nil ? "" : id
|
2490
2651
|
@name = name == nil ? "" : name
|
@@ -2805,13 +2966,25 @@ module SDM
|
|
2805
2966
|
attr_accessor :approval_flow_id
|
2806
2967
|
# Unique identifier of the ApprovalWorkflowStep.
|
2807
2968
|
attr_accessor :id
|
2969
|
+
# Whether "any" or "all" approvers must approve for this approval step to pass. Read only field for history commands.
|
2970
|
+
attr_accessor :quantifier
|
2971
|
+
# Duration after which this approval step will be skipped if no approval is given. Read only field for history commands.
|
2972
|
+
attr_accessor :skip_after
|
2973
|
+
# The position of the approval step in a sequence of approval steps for an approval workflow. Read only field for history commands.
|
2974
|
+
attr_accessor :step_order
|
2808
2975
|
|
2809
2976
|
def initialize(
|
2810
2977
|
approval_flow_id: nil,
|
2811
|
-
id: nil
|
2978
|
+
id: nil,
|
2979
|
+
quantifier: nil,
|
2980
|
+
skip_after: nil,
|
2981
|
+
step_order: nil
|
2812
2982
|
)
|
2813
2983
|
@approval_flow_id = approval_flow_id == nil ? "" : approval_flow_id
|
2814
2984
|
@id = id == nil ? "" : id
|
2985
|
+
@quantifier = quantifier == nil ? "" : quantifier
|
2986
|
+
@skip_after = skip_after == nil ? nil : skip_after
|
2987
|
+
@step_order = step_order == nil ? 0 : step_order
|
2815
2988
|
end
|
2816
2989
|
|
2817
2990
|
def to_json(options = {})
|
@@ -5985,6 +6158,44 @@ module SDM
|
|
5985
6158
|
end
|
5986
6159
|
end
|
5987
6160
|
|
6161
|
+
class GenerateKeysRequest
|
6162
|
+
# required
|
6163
|
+
attr_accessor :secret_engine_id
|
6164
|
+
|
6165
|
+
def initialize(
|
6166
|
+
secret_engine_id: nil
|
6167
|
+
)
|
6168
|
+
@secret_engine_id = secret_engine_id == nil ? "" : secret_engine_id
|
6169
|
+
end
|
6170
|
+
|
6171
|
+
def to_json(options = {})
|
6172
|
+
hash = {}
|
6173
|
+
self.instance_variables.each do |var|
|
6174
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
6175
|
+
end
|
6176
|
+
hash.to_json
|
6177
|
+
end
|
6178
|
+
end
|
6179
|
+
|
6180
|
+
class GenerateKeysResponse
|
6181
|
+
# Rate limit information.
|
6182
|
+
attr_accessor :rate_limit
|
6183
|
+
|
6184
|
+
def initialize(
|
6185
|
+
rate_limit: nil
|
6186
|
+
)
|
6187
|
+
@rate_limit = rate_limit == nil ? nil : rate_limit
|
6188
|
+
end
|
6189
|
+
|
6190
|
+
def to_json(options = {})
|
6191
|
+
hash = {}
|
6192
|
+
self.instance_variables.each do |var|
|
6193
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
6194
|
+
end
|
6195
|
+
hash.to_json
|
6196
|
+
end
|
6197
|
+
end
|
6198
|
+
|
5988
6199
|
# GenericResponseMetadata contains common headers for generic request
|
5989
6200
|
# responses.
|
5990
6201
|
class GenericResponseMetadata
|
@@ -6551,6 +6762,72 @@ module SDM
|
|
6551
6762
|
end
|
6552
6763
|
end
|
6553
6764
|
|
6765
|
+
class HealthcheckRequest
|
6766
|
+
# required
|
6767
|
+
attr_accessor :secret_engine_id
|
6768
|
+
|
6769
|
+
def initialize(
|
6770
|
+
secret_engine_id: nil
|
6771
|
+
)
|
6772
|
+
@secret_engine_id = secret_engine_id == nil ? "" : secret_engine_id
|
6773
|
+
end
|
6774
|
+
|
6775
|
+
def to_json(options = {})
|
6776
|
+
hash = {}
|
6777
|
+
self.instance_variables.each do |var|
|
6778
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
6779
|
+
end
|
6780
|
+
hash.to_json
|
6781
|
+
end
|
6782
|
+
end
|
6783
|
+
|
6784
|
+
class HealthcheckResponse
|
6785
|
+
# Rate limit information.
|
6786
|
+
attr_accessor :rate_limit
|
6787
|
+
# Array of statuses of all nodes serving a secret engine
|
6788
|
+
attr_accessor :status
|
6789
|
+
|
6790
|
+
def initialize(
|
6791
|
+
rate_limit: nil,
|
6792
|
+
status: nil
|
6793
|
+
)
|
6794
|
+
@rate_limit = rate_limit == nil ? nil : rate_limit
|
6795
|
+
@status = status == nil ? [] : status
|
6796
|
+
end
|
6797
|
+
|
6798
|
+
def to_json(options = {})
|
6799
|
+
hash = {}
|
6800
|
+
self.instance_variables.each do |var|
|
6801
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
6802
|
+
end
|
6803
|
+
hash.to_json
|
6804
|
+
end
|
6805
|
+
end
|
6806
|
+
|
6807
|
+
# HealthcheckStatus contains status of a node health
|
6808
|
+
class HealthcheckStatus
|
6809
|
+
# ID of node
|
6810
|
+
attr_accessor :node_id
|
6811
|
+
# Status of node's health
|
6812
|
+
attr_accessor :status
|
6813
|
+
|
6814
|
+
def initialize(
|
6815
|
+
node_id: nil,
|
6816
|
+
status: nil
|
6817
|
+
)
|
6818
|
+
@node_id = node_id == nil ? "" : node_id
|
6819
|
+
@status = status == nil ? "" : status
|
6820
|
+
end
|
6821
|
+
|
6822
|
+
def to_json(options = {})
|
6823
|
+
hash = {}
|
6824
|
+
self.instance_variables.each do |var|
|
6825
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
6826
|
+
end
|
6827
|
+
hash.to_json
|
6828
|
+
end
|
6829
|
+
end
|
6830
|
+
|
6554
6831
|
# IdentityAliases define the username to be used for a specific account
|
6555
6832
|
# when connecting to a remote resource using that identity set.
|
6556
6833
|
class IdentityAlias
|
@@ -6897,6 +7174,50 @@ module SDM
|
|
6897
7174
|
end
|
6898
7175
|
end
|
6899
7176
|
|
7177
|
+
# KeyValueEngine is currently unstable, and its API may change, or it may be removed, without a major version bump.
|
7178
|
+
class KeyValueEngine
|
7179
|
+
# Unique identifier of the Secret Engine.
|
7180
|
+
attr_accessor :id
|
7181
|
+
# An interval of public/private key rotation for secret engine in days
|
7182
|
+
attr_accessor :key_rotation_interval_days
|
7183
|
+
# Unique human-readable name of the Secret Engine.
|
7184
|
+
attr_accessor :name
|
7185
|
+
# Public key linked with a secret engine
|
7186
|
+
attr_accessor :public_key
|
7187
|
+
# Backing secret store identifier
|
7188
|
+
attr_accessor :secret_store_id
|
7189
|
+
# Backing Secret Store root path where managed secrets are going to be stored
|
7190
|
+
attr_accessor :secret_store_root_path
|
7191
|
+
# Tags is a map of key, value pairs.
|
7192
|
+
attr_accessor :tags
|
7193
|
+
|
7194
|
+
def initialize(
|
7195
|
+
id: nil,
|
7196
|
+
key_rotation_interval_days: nil,
|
7197
|
+
name: nil,
|
7198
|
+
public_key: nil,
|
7199
|
+
secret_store_id: nil,
|
7200
|
+
secret_store_root_path: nil,
|
7201
|
+
tags: nil
|
7202
|
+
)
|
7203
|
+
@id = id == nil ? "" : id
|
7204
|
+
@key_rotation_interval_days = key_rotation_interval_days == nil ? 0 : key_rotation_interval_days
|
7205
|
+
@name = name == nil ? "" : name
|
7206
|
+
@public_key = public_key == nil ? "" : public_key
|
7207
|
+
@secret_store_id = secret_store_id == nil ? "" : secret_store_id
|
7208
|
+
@secret_store_root_path = secret_store_root_path == nil ? "" : secret_store_root_path
|
7209
|
+
@tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
|
7210
|
+
end
|
7211
|
+
|
7212
|
+
def to_json(options = {})
|
7213
|
+
hash = {}
|
7214
|
+
self.instance_variables.each do |var|
|
7215
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
7216
|
+
end
|
7217
|
+
hash.to_json
|
7218
|
+
end
|
7219
|
+
end
|
7220
|
+
|
6900
7221
|
class KeyfactorSSHStore
|
6901
7222
|
# Path to the root CA that signed the certificate passed to the client for HTTPS connection.
|
6902
7223
|
# This is not required if the CA is trusted by the host operating system. This should be a PEM
|
@@ -7726,78 +8047,676 @@ module SDM
|
|
7726
8047
|
end
|
7727
8048
|
end
|
7728
8049
|
|
7729
|
-
|
7730
|
-
|
7731
|
-
|
7732
|
-
|
7733
|
-
|
7734
|
-
|
7735
|
-
|
7736
|
-
# True if the datasource is reachable and the credentials are valid.
|
7737
|
-
attr_accessor :healthy
|
7738
|
-
# The host to dial to initiate a connection from the egress node to this resource.
|
7739
|
-
attr_accessor :hostname
|
7740
|
-
# Unique identifier of the Resource.
|
8050
|
+
# ManagedSecret contains details about managed secret
|
8051
|
+
class ManagedSecret
|
8052
|
+
# public part of the secret value
|
8053
|
+
attr_accessor :config
|
8054
|
+
# Timestamp of when secret is going to be rotated
|
8055
|
+
attr_accessor :expires_at
|
8056
|
+
# Unique identifier of the Managed Secret.
|
7741
8057
|
attr_accessor :id
|
7742
|
-
#
|
8058
|
+
# Timestamp of when secret was last rotated
|
8059
|
+
attr_accessor :last_rotated_at
|
8060
|
+
# Unique human-readable name of the Managed Secret.
|
7743
8061
|
attr_accessor :name
|
7744
|
-
#
|
7745
|
-
attr_accessor :
|
7746
|
-
#
|
7747
|
-
attr_accessor :
|
7748
|
-
#
|
7749
|
-
attr_accessor :
|
7750
|
-
# ID of the proxy cluster for this resource, if any.
|
7751
|
-
attr_accessor :proxy_cluster_id
|
7752
|
-
# Whether native auth (mysql_native_password) is used for all connections (for backwards compatibility)
|
7753
|
-
attr_accessor :require_native_auth
|
7754
|
-
# ID of the secret store containing credentials for this resource, if any.
|
7755
|
-
attr_accessor :secret_store_id
|
7756
|
-
# Subdomain is the local DNS address. (e.g. app-prod1 turns into app-prod1.your-org-name.sdm.network)
|
7757
|
-
attr_accessor :subdomain
|
8062
|
+
# Password and rotation policy for the secret
|
8063
|
+
attr_accessor :policy
|
8064
|
+
# An ID of a Secret Engine linked with the Managed Secret.
|
8065
|
+
attr_accessor :secret_engine_id
|
8066
|
+
# Path in a secret store.
|
8067
|
+
attr_accessor :secret_store_path
|
7758
8068
|
# Tags is a map of key, value pairs.
|
7759
8069
|
attr_accessor :tags
|
7760
|
-
#
|
7761
|
-
attr_accessor :
|
7762
|
-
# The username to authenticate with.
|
7763
|
-
attr_accessor :username
|
8070
|
+
# Sensitive value of the secret.
|
8071
|
+
attr_accessor :value
|
7764
8072
|
|
7765
8073
|
def initialize(
|
7766
|
-
|
7767
|
-
|
7768
|
-
egress_filter: nil,
|
7769
|
-
healthy: nil,
|
7770
|
-
hostname: nil,
|
8074
|
+
config: nil,
|
8075
|
+
expires_at: nil,
|
7771
8076
|
id: nil,
|
8077
|
+
last_rotated_at: nil,
|
7772
8078
|
name: nil,
|
7773
|
-
|
7774
|
-
|
7775
|
-
|
7776
|
-
proxy_cluster_id: nil,
|
7777
|
-
require_native_auth: nil,
|
7778
|
-
secret_store_id: nil,
|
7779
|
-
subdomain: nil,
|
8079
|
+
policy: nil,
|
8080
|
+
secret_engine_id: nil,
|
8081
|
+
secret_store_path: nil,
|
7780
8082
|
tags: nil,
|
7781
|
-
|
7782
|
-
username: nil
|
8083
|
+
value: nil
|
7783
8084
|
)
|
7784
|
-
@
|
7785
|
-
@
|
7786
|
-
@egress_filter = egress_filter == nil ? "" : egress_filter
|
7787
|
-
@healthy = healthy == nil ? false : healthy
|
7788
|
-
@hostname = hostname == nil ? "" : hostname
|
8085
|
+
@config = config == nil ? "" : config
|
8086
|
+
@expires_at = expires_at == nil ? nil : expires_at
|
7789
8087
|
@id = id == nil ? "" : id
|
8088
|
+
@last_rotated_at = last_rotated_at == nil ? nil : last_rotated_at
|
7790
8089
|
@name = name == nil ? "" : name
|
7791
|
-
@
|
7792
|
-
@
|
7793
|
-
@
|
7794
|
-
@proxy_cluster_id = proxy_cluster_id == nil ? "" : proxy_cluster_id
|
7795
|
-
@require_native_auth = require_native_auth == nil ? false : require_native_auth
|
7796
|
-
@secret_store_id = secret_store_id == nil ? "" : secret_store_id
|
7797
|
-
@subdomain = subdomain == nil ? "" : subdomain
|
8090
|
+
@policy = policy == nil ? nil : policy
|
8091
|
+
@secret_engine_id = secret_engine_id == nil ? "" : secret_engine_id
|
8092
|
+
@secret_store_path = secret_store_path == nil ? "" : secret_store_path
|
7798
8093
|
@tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
|
7799
|
-
@
|
7800
|
-
|
8094
|
+
@value = value == nil ? "" : value
|
8095
|
+
end
|
8096
|
+
|
8097
|
+
def to_json(options = {})
|
8098
|
+
hash = {}
|
8099
|
+
self.instance_variables.each do |var|
|
8100
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8101
|
+
end
|
8102
|
+
hash.to_json
|
8103
|
+
end
|
8104
|
+
end
|
8105
|
+
|
8106
|
+
# ManagedSecretCreateRequest specifies a Managed Secret to create.
|
8107
|
+
class ManagedSecretCreateRequest
|
8108
|
+
# Parameters to define the new Managed Secret.
|
8109
|
+
attr_accessor :managed_secret
|
8110
|
+
|
8111
|
+
def initialize(
|
8112
|
+
managed_secret: nil
|
8113
|
+
)
|
8114
|
+
@managed_secret = managed_secret == nil ? nil : managed_secret
|
8115
|
+
end
|
8116
|
+
|
8117
|
+
def to_json(options = {})
|
8118
|
+
hash = {}
|
8119
|
+
self.instance_variables.each do |var|
|
8120
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8121
|
+
end
|
8122
|
+
hash.to_json
|
8123
|
+
end
|
8124
|
+
end
|
8125
|
+
|
8126
|
+
# ManagedSecretCreateResponse contains information about a Managed Secret after
|
8127
|
+
# successful creation.
|
8128
|
+
class ManagedSecretCreateResponse
|
8129
|
+
# The requested Managed Secret.
|
8130
|
+
attr_accessor :managed_secret
|
8131
|
+
# Reserved for future use.
|
8132
|
+
attr_accessor :meta
|
8133
|
+
# Rate limit information.
|
8134
|
+
attr_accessor :rate_limit
|
8135
|
+
|
8136
|
+
def initialize(
|
8137
|
+
managed_secret: nil,
|
8138
|
+
meta: nil,
|
8139
|
+
rate_limit: nil
|
8140
|
+
)
|
8141
|
+
@managed_secret = managed_secret == nil ? nil : managed_secret
|
8142
|
+
@meta = meta == nil ? nil : meta
|
8143
|
+
@rate_limit = rate_limit == nil ? nil : rate_limit
|
8144
|
+
end
|
8145
|
+
|
8146
|
+
def to_json(options = {})
|
8147
|
+
hash = {}
|
8148
|
+
self.instance_variables.each do |var|
|
8149
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8150
|
+
end
|
8151
|
+
hash.to_json
|
8152
|
+
end
|
8153
|
+
end
|
8154
|
+
|
8155
|
+
# ManagedSecretDeleteRequest specified the ID of a Managed Secret to be
|
8156
|
+
# deleted.
|
8157
|
+
class ManagedSecretDeleteRequest
|
8158
|
+
# The unique identifier of the Managed Secret to delete.
|
8159
|
+
attr_accessor :id
|
8160
|
+
|
8161
|
+
def initialize(
|
8162
|
+
id: nil
|
8163
|
+
)
|
8164
|
+
@id = id == nil ? "" : id
|
8165
|
+
end
|
8166
|
+
|
8167
|
+
def to_json(options = {})
|
8168
|
+
hash = {}
|
8169
|
+
self.instance_variables.each do |var|
|
8170
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8171
|
+
end
|
8172
|
+
hash.to_json
|
8173
|
+
end
|
8174
|
+
end
|
8175
|
+
|
8176
|
+
# ManagedSecretDeleteResponse contains information about a Managed Secret after
|
8177
|
+
# it was deleted.
|
8178
|
+
class ManagedSecretDeleteResponse
|
8179
|
+
# Rate limit information.
|
8180
|
+
attr_accessor :rate_limit
|
8181
|
+
|
8182
|
+
def initialize(
|
8183
|
+
rate_limit: nil
|
8184
|
+
)
|
8185
|
+
@rate_limit = rate_limit == nil ? nil : rate_limit
|
8186
|
+
end
|
8187
|
+
|
8188
|
+
def to_json(options = {})
|
8189
|
+
hash = {}
|
8190
|
+
self.instance_variables.each do |var|
|
8191
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8192
|
+
end
|
8193
|
+
hash.to_json
|
8194
|
+
end
|
8195
|
+
end
|
8196
|
+
|
8197
|
+
# ManagedSecretGetRequest specifies which Managed Secret to retrieve
|
8198
|
+
class ManagedSecretGetRequest
|
8199
|
+
# The unique identifier of the Managed Secret to retrieve.
|
8200
|
+
attr_accessor :id
|
8201
|
+
|
8202
|
+
def initialize(
|
8203
|
+
id: nil
|
8204
|
+
)
|
8205
|
+
@id = id == nil ? "" : id
|
8206
|
+
end
|
8207
|
+
|
8208
|
+
def to_json(options = {})
|
8209
|
+
hash = {}
|
8210
|
+
self.instance_variables.each do |var|
|
8211
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8212
|
+
end
|
8213
|
+
hash.to_json
|
8214
|
+
end
|
8215
|
+
end
|
8216
|
+
|
8217
|
+
# ManagedSecretGetResponse contains information about requested Managed Secret
|
8218
|
+
class ManagedSecretGetResponse
|
8219
|
+
# The requested Managed Secret.
|
8220
|
+
attr_accessor :managed_secret
|
8221
|
+
# Reserved for future use.
|
8222
|
+
attr_accessor :meta
|
8223
|
+
# Rate limit information.
|
8224
|
+
attr_accessor :rate_limit
|
8225
|
+
|
8226
|
+
def initialize(
|
8227
|
+
managed_secret: nil,
|
8228
|
+
meta: nil,
|
8229
|
+
rate_limit: nil
|
8230
|
+
)
|
8231
|
+
@managed_secret = managed_secret == nil ? nil : managed_secret
|
8232
|
+
@meta = meta == nil ? nil : meta
|
8233
|
+
@rate_limit = rate_limit == nil ? nil : rate_limit
|
8234
|
+
end
|
8235
|
+
|
8236
|
+
def to_json(options = {})
|
8237
|
+
hash = {}
|
8238
|
+
self.instance_variables.each do |var|
|
8239
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8240
|
+
end
|
8241
|
+
hash.to_json
|
8242
|
+
end
|
8243
|
+
end
|
8244
|
+
|
8245
|
+
# ManagedSecretListRequest specifies criteria for retrieving a list of Managed
|
8246
|
+
# Secrets.
|
8247
|
+
class ManagedSecretListRequest
|
8248
|
+
# A human-readable filter query string.
|
8249
|
+
attr_accessor :filter
|
8250
|
+
|
8251
|
+
def initialize(
|
8252
|
+
filter: nil
|
8253
|
+
)
|
8254
|
+
@filter = filter == nil ? "" : filter
|
8255
|
+
end
|
8256
|
+
|
8257
|
+
def to_json(options = {})
|
8258
|
+
hash = {}
|
8259
|
+
self.instance_variables.each do |var|
|
8260
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8261
|
+
end
|
8262
|
+
hash.to_json
|
8263
|
+
end
|
8264
|
+
end
|
8265
|
+
|
8266
|
+
# ManagedSecretListResponse contains a list of requested Managed Secrets
|
8267
|
+
class ManagedSecretListResponse
|
8268
|
+
# Rate limit information.
|
8269
|
+
attr_accessor :rate_limit
|
8270
|
+
|
8271
|
+
def initialize(
|
8272
|
+
rate_limit: nil
|
8273
|
+
)
|
8274
|
+
@rate_limit = rate_limit == nil ? nil : rate_limit
|
8275
|
+
end
|
8276
|
+
|
8277
|
+
def to_json(options = {})
|
8278
|
+
hash = {}
|
8279
|
+
self.instance_variables.each do |var|
|
8280
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8281
|
+
end
|
8282
|
+
hash.to_json
|
8283
|
+
end
|
8284
|
+
end
|
8285
|
+
|
8286
|
+
# ManagedSecretLog contains details about action performed against a managed
|
8287
|
+
# secret
|
8288
|
+
class ManagedSecretLog
|
8289
|
+
# An ID of the account the action was performed by.
|
8290
|
+
attr_accessor :account_id
|
8291
|
+
# The action performed by the account against the managed secret.
|
8292
|
+
attr_accessor :action
|
8293
|
+
# Timestamp of when action was performed.
|
8294
|
+
attr_accessor :created_at
|
8295
|
+
# Any debug logs associated with the action.
|
8296
|
+
attr_accessor :debug
|
8297
|
+
# Unique identifier of the Managed Secret Log.
|
8298
|
+
attr_accessor :id
|
8299
|
+
# An ID of the Managed Secret the action was performed against.
|
8300
|
+
attr_accessor :managed_secret_id
|
8301
|
+
# An ID of the Secret Engine linked with the Managed Secret.
|
8302
|
+
attr_accessor :secret_engine_id
|
8303
|
+
|
8304
|
+
def initialize(
|
8305
|
+
account_id: nil,
|
8306
|
+
action: nil,
|
8307
|
+
created_at: nil,
|
8308
|
+
debug: nil,
|
8309
|
+
id: nil,
|
8310
|
+
managed_secret_id: nil,
|
8311
|
+
secret_engine_id: nil
|
8312
|
+
)
|
8313
|
+
@account_id = account_id == nil ? "" : account_id
|
8314
|
+
@action = action == nil ? "" : action
|
8315
|
+
@created_at = created_at == nil ? nil : created_at
|
8316
|
+
@debug = debug == nil ? "" : debug
|
8317
|
+
@id = id == nil ? "" : id
|
8318
|
+
@managed_secret_id = managed_secret_id == nil ? "" : managed_secret_id
|
8319
|
+
@secret_engine_id = secret_engine_id == nil ? "" : secret_engine_id
|
8320
|
+
end
|
8321
|
+
|
8322
|
+
def to_json(options = {})
|
8323
|
+
hash = {}
|
8324
|
+
self.instance_variables.each do |var|
|
8325
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8326
|
+
end
|
8327
|
+
hash.to_json
|
8328
|
+
end
|
8329
|
+
end
|
8330
|
+
|
8331
|
+
# ManagedSecretLogsRequest specifies criteria for retrieving a log of Managed
|
8332
|
+
# Secrets actions.
|
8333
|
+
class ManagedSecretLogsRequest
|
8334
|
+
# A human-readable filter query string.
|
8335
|
+
attr_accessor :filter
|
8336
|
+
|
8337
|
+
def initialize(
|
8338
|
+
filter: nil
|
8339
|
+
)
|
8340
|
+
@filter = filter == nil ? "" : filter
|
8341
|
+
end
|
8342
|
+
|
8343
|
+
def to_json(options = {})
|
8344
|
+
hash = {}
|
8345
|
+
self.instance_variables.each do |var|
|
8346
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8347
|
+
end
|
8348
|
+
hash.to_json
|
8349
|
+
end
|
8350
|
+
end
|
8351
|
+
|
8352
|
+
# ManagedSecretLogsResponse contains a list of requested Managed Secrets
|
8353
|
+
class ManagedSecretLogsResponse
|
8354
|
+
# Rate limit information.
|
8355
|
+
attr_accessor :rate_limit
|
8356
|
+
|
8357
|
+
def initialize(
|
8358
|
+
rate_limit: nil
|
8359
|
+
)
|
8360
|
+
@rate_limit = rate_limit == nil ? nil : rate_limit
|
8361
|
+
end
|
8362
|
+
|
8363
|
+
def to_json(options = {})
|
8364
|
+
hash = {}
|
8365
|
+
self.instance_variables.each do |var|
|
8366
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8367
|
+
end
|
8368
|
+
hash.to_json
|
8369
|
+
end
|
8370
|
+
end
|
8371
|
+
|
8372
|
+
class ManagedSecretPasswordPolicy
|
8373
|
+
# If set to true allows for consecutive characters to repeat itself
|
8374
|
+
attr_accessor :allow_repeat
|
8375
|
+
# Characters to exclude when generating password
|
8376
|
+
attr_accessor :exclude_characters
|
8377
|
+
# If set to true do not include upper case letters when generating password
|
8378
|
+
attr_accessor :exclude_upper_case
|
8379
|
+
# Password length
|
8380
|
+
attr_accessor :length
|
8381
|
+
# Numbers of digits to use when generating password
|
8382
|
+
attr_accessor :num_digits
|
8383
|
+
# Number of symbols to use when generating password
|
8384
|
+
attr_accessor :num_symbols
|
8385
|
+
|
8386
|
+
def initialize(
|
8387
|
+
allow_repeat: nil,
|
8388
|
+
exclude_characters: nil,
|
8389
|
+
exclude_upper_case: nil,
|
8390
|
+
length: nil,
|
8391
|
+
num_digits: nil,
|
8392
|
+
num_symbols: nil
|
8393
|
+
)
|
8394
|
+
@allow_repeat = allow_repeat == nil ? false : allow_repeat
|
8395
|
+
@exclude_characters = exclude_characters == nil ? "" : exclude_characters
|
8396
|
+
@exclude_upper_case = exclude_upper_case == nil ? false : exclude_upper_case
|
8397
|
+
@length = length == nil ? 0 : length
|
8398
|
+
@num_digits = num_digits == nil ? 0 : num_digits
|
8399
|
+
@num_symbols = num_symbols == nil ? 0 : num_symbols
|
8400
|
+
end
|
8401
|
+
|
8402
|
+
def to_json(options = {})
|
8403
|
+
hash = {}
|
8404
|
+
self.instance_variables.each do |var|
|
8405
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8406
|
+
end
|
8407
|
+
hash.to_json
|
8408
|
+
end
|
8409
|
+
end
|
8410
|
+
|
8411
|
+
# ManagedSecretPolicy contains password and rotation policy for managed secret
|
8412
|
+
class ManagedSecretPolicy
|
8413
|
+
# Password policy for a managed secret
|
8414
|
+
attr_accessor :password_policy
|
8415
|
+
# Rotation policy for a managed secret
|
8416
|
+
attr_accessor :rotation_policy
|
8417
|
+
|
8418
|
+
def initialize(
|
8419
|
+
password_policy: nil,
|
8420
|
+
rotation_policy: nil
|
8421
|
+
)
|
8422
|
+
@password_policy = password_policy == nil ? nil : password_policy
|
8423
|
+
@rotation_policy = rotation_policy == nil ? nil : rotation_policy
|
8424
|
+
end
|
8425
|
+
|
8426
|
+
def to_json(options = {})
|
8427
|
+
hash = {}
|
8428
|
+
self.instance_variables.each do |var|
|
8429
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8430
|
+
end
|
8431
|
+
hash.to_json
|
8432
|
+
end
|
8433
|
+
end
|
8434
|
+
|
8435
|
+
# ManagedSecretRetrieveRequest specifies which Managed Secret to retrieve
|
8436
|
+
class ManagedSecretRetrieveRequest
|
8437
|
+
# The unique identifier of the Managed Secret to retrieve.
|
8438
|
+
attr_accessor :id
|
8439
|
+
# Public key to encrypt a sensitive value with
|
8440
|
+
attr_accessor :public_key
|
8441
|
+
|
8442
|
+
def initialize(
|
8443
|
+
id: nil,
|
8444
|
+
public_key: nil
|
8445
|
+
)
|
8446
|
+
@id = id == nil ? "" : id
|
8447
|
+
@public_key = public_key == nil ? "" : public_key
|
8448
|
+
end
|
8449
|
+
|
8450
|
+
def to_json(options = {})
|
8451
|
+
hash = {}
|
8452
|
+
self.instance_variables.each do |var|
|
8453
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8454
|
+
end
|
8455
|
+
hash.to_json
|
8456
|
+
end
|
8457
|
+
end
|
8458
|
+
|
8459
|
+
# ManagedSecretRetrieveResponse contains information about requested Managed
|
8460
|
+
# Secret
|
8461
|
+
class ManagedSecretRetrieveResponse
|
8462
|
+
# The requested Managed Secret.
|
8463
|
+
attr_accessor :managed_secret
|
8464
|
+
# Reserved for future use.
|
8465
|
+
attr_accessor :meta
|
8466
|
+
# Rate limit information.
|
8467
|
+
attr_accessor :rate_limit
|
8468
|
+
|
8469
|
+
def initialize(
|
8470
|
+
managed_secret: nil,
|
8471
|
+
meta: nil,
|
8472
|
+
rate_limit: nil
|
8473
|
+
)
|
8474
|
+
@managed_secret = managed_secret == nil ? nil : managed_secret
|
8475
|
+
@meta = meta == nil ? nil : meta
|
8476
|
+
@rate_limit = rate_limit == nil ? nil : rate_limit
|
8477
|
+
end
|
8478
|
+
|
8479
|
+
def to_json(options = {})
|
8480
|
+
hash = {}
|
8481
|
+
self.instance_variables.each do |var|
|
8482
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8483
|
+
end
|
8484
|
+
hash.to_json
|
8485
|
+
end
|
8486
|
+
end
|
8487
|
+
|
8488
|
+
# ManagedSecretRotateRequest specifies Managed Secret to rotate
|
8489
|
+
class ManagedSecretRotateRequest
|
8490
|
+
# The unique identifier of the Managed Secret to rotate.
|
8491
|
+
attr_accessor :id
|
8492
|
+
|
8493
|
+
def initialize(
|
8494
|
+
id: nil
|
8495
|
+
)
|
8496
|
+
@id = id == nil ? "" : id
|
8497
|
+
end
|
8498
|
+
|
8499
|
+
def to_json(options = {})
|
8500
|
+
hash = {}
|
8501
|
+
self.instance_variables.each do |var|
|
8502
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8503
|
+
end
|
8504
|
+
hash.to_json
|
8505
|
+
end
|
8506
|
+
end
|
8507
|
+
|
8508
|
+
# ManagedSecretRotateResponse contains information about Secret Engine after
|
8509
|
+
# successful rotation.
|
8510
|
+
class ManagedSecretRotateResponse
|
8511
|
+
# Reserved for future use.
|
8512
|
+
attr_accessor :meta
|
8513
|
+
# Rate limit information.
|
8514
|
+
attr_accessor :rate_limit
|
8515
|
+
|
8516
|
+
def initialize(
|
8517
|
+
meta: nil,
|
8518
|
+
rate_limit: nil
|
8519
|
+
)
|
8520
|
+
@meta = meta == nil ? nil : meta
|
8521
|
+
@rate_limit = rate_limit == nil ? nil : rate_limit
|
8522
|
+
end
|
8523
|
+
|
8524
|
+
def to_json(options = {})
|
8525
|
+
hash = {}
|
8526
|
+
self.instance_variables.each do |var|
|
8527
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8528
|
+
end
|
8529
|
+
hash.to_json
|
8530
|
+
end
|
8531
|
+
end
|
8532
|
+
|
8533
|
+
class ManagedSecretRotationPolicy
|
8534
|
+
def initialize()
|
8535
|
+
end
|
8536
|
+
|
8537
|
+
def to_json(options = {})
|
8538
|
+
hash = {}
|
8539
|
+
self.instance_variables.each do |var|
|
8540
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8541
|
+
end
|
8542
|
+
hash.to_json
|
8543
|
+
end
|
8544
|
+
end
|
8545
|
+
|
8546
|
+
# ManagedSecretUpdateRequest specifies Managed Secret to update
|
8547
|
+
class ManagedSecretUpdateRequest
|
8548
|
+
# Managed Secret to update
|
8549
|
+
attr_accessor :managed_secret
|
8550
|
+
|
8551
|
+
def initialize(
|
8552
|
+
managed_secret: nil
|
8553
|
+
)
|
8554
|
+
@managed_secret = managed_secret == nil ? nil : managed_secret
|
8555
|
+
end
|
8556
|
+
|
8557
|
+
def to_json(options = {})
|
8558
|
+
hash = {}
|
8559
|
+
self.instance_variables.each do |var|
|
8560
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8561
|
+
end
|
8562
|
+
hash.to_json
|
8563
|
+
end
|
8564
|
+
end
|
8565
|
+
|
8566
|
+
# ManagedSecretUpdateResponse contains information about Secret Engine after
|
8567
|
+
# successful update.
|
8568
|
+
class ManagedSecretUpdateResponse
|
8569
|
+
# The requested Managed Secret.
|
8570
|
+
attr_accessor :managed_secret
|
8571
|
+
# Reserved for future use.
|
8572
|
+
attr_accessor :meta
|
8573
|
+
# Rate limit information.
|
8574
|
+
attr_accessor :rate_limit
|
8575
|
+
|
8576
|
+
def initialize(
|
8577
|
+
managed_secret: nil,
|
8578
|
+
meta: nil,
|
8579
|
+
rate_limit: nil
|
8580
|
+
)
|
8581
|
+
@managed_secret = managed_secret == nil ? nil : managed_secret
|
8582
|
+
@meta = meta == nil ? nil : meta
|
8583
|
+
@rate_limit = rate_limit == nil ? nil : rate_limit
|
8584
|
+
end
|
8585
|
+
|
8586
|
+
def to_json(options = {})
|
8587
|
+
hash = {}
|
8588
|
+
self.instance_variables.each do |var|
|
8589
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8590
|
+
end
|
8591
|
+
hash.to_json
|
8592
|
+
end
|
8593
|
+
end
|
8594
|
+
|
8595
|
+
# ManagedSecretValidateRequest specifies which Managed Secret to validate
|
8596
|
+
class ManagedSecretValidateRequest
|
8597
|
+
# The unique identifier of the Managed Secret to validate.
|
8598
|
+
attr_accessor :id
|
8599
|
+
|
8600
|
+
def initialize(
|
8601
|
+
id: nil
|
8602
|
+
)
|
8603
|
+
@id = id == nil ? "" : id
|
8604
|
+
end
|
8605
|
+
|
8606
|
+
def to_json(options = {})
|
8607
|
+
hash = {}
|
8608
|
+
self.instance_variables.each do |var|
|
8609
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8610
|
+
end
|
8611
|
+
hash.to_json
|
8612
|
+
end
|
8613
|
+
end
|
8614
|
+
|
8615
|
+
# ManagedSecretValidateResponse contains validity of requested Managed
|
8616
|
+
# Secret
|
8617
|
+
class ManagedSecretValidateResponse
|
8618
|
+
# Information about why secret is invalid
|
8619
|
+
attr_accessor :invalid_info
|
8620
|
+
# Reserved for future use.
|
8621
|
+
attr_accessor :meta
|
8622
|
+
# Rate limit information.
|
8623
|
+
attr_accessor :rate_limit
|
8624
|
+
# Whether the secret is valid
|
8625
|
+
attr_accessor :valid
|
8626
|
+
|
8627
|
+
def initialize(
|
8628
|
+
invalid_info: nil,
|
8629
|
+
meta: nil,
|
8630
|
+
rate_limit: nil,
|
8631
|
+
valid: nil
|
8632
|
+
)
|
8633
|
+
@invalid_info = invalid_info == nil ? "" : invalid_info
|
8634
|
+
@meta = meta == nil ? nil : meta
|
8635
|
+
@rate_limit = rate_limit == nil ? nil : rate_limit
|
8636
|
+
@valid = valid == nil ? false : valid
|
8637
|
+
end
|
8638
|
+
|
8639
|
+
def to_json(options = {})
|
8640
|
+
hash = {}
|
8641
|
+
self.instance_variables.each do |var|
|
8642
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
8643
|
+
end
|
8644
|
+
hash.to_json
|
8645
|
+
end
|
8646
|
+
end
|
8647
|
+
|
8648
|
+
class Maria
|
8649
|
+
# The bind interface is the IP address to which the port override of a resource is bound (for example, 127.0.0.1). It is automatically generated if not provided.
|
8650
|
+
attr_accessor :bind_interface
|
8651
|
+
# The database for healthchecks. Does not affect client requests.
|
8652
|
+
attr_accessor :database
|
8653
|
+
# A filter applied to the routing logic to pin datasource to nodes.
|
8654
|
+
attr_accessor :egress_filter
|
8655
|
+
# True if the datasource is reachable and the credentials are valid.
|
8656
|
+
attr_accessor :healthy
|
8657
|
+
# The host to dial to initiate a connection from the egress node to this resource.
|
8658
|
+
attr_accessor :hostname
|
8659
|
+
# Unique identifier of the Resource.
|
8660
|
+
attr_accessor :id
|
8661
|
+
# Unique human-readable name of the Resource.
|
8662
|
+
attr_accessor :name
|
8663
|
+
# The password to authenticate with.
|
8664
|
+
attr_accessor :password
|
8665
|
+
# The port to dial to initiate a connection from the egress node to this resource.
|
8666
|
+
attr_accessor :port
|
8667
|
+
# The local port used by clients to connect to this resource.
|
8668
|
+
attr_accessor :port_override
|
8669
|
+
# ID of the proxy cluster for this resource, if any.
|
8670
|
+
attr_accessor :proxy_cluster_id
|
8671
|
+
# Whether native auth (mysql_native_password) is used for all connections (for backwards compatibility)
|
8672
|
+
attr_accessor :require_native_auth
|
8673
|
+
# ID of the secret store containing credentials for this resource, if any.
|
8674
|
+
attr_accessor :secret_store_id
|
8675
|
+
# Subdomain is the local DNS address. (e.g. app-prod1 turns into app-prod1.your-org-name.sdm.network)
|
8676
|
+
attr_accessor :subdomain
|
8677
|
+
# Tags is a map of key, value pairs.
|
8678
|
+
attr_accessor :tags
|
8679
|
+
# If true, appends the hostname to the username when hitting a database.azure.com address
|
8680
|
+
attr_accessor :use_azure_single_server_usernames
|
8681
|
+
# The username to authenticate with.
|
8682
|
+
attr_accessor :username
|
8683
|
+
|
8684
|
+
def initialize(
|
8685
|
+
bind_interface: nil,
|
8686
|
+
database: nil,
|
8687
|
+
egress_filter: nil,
|
8688
|
+
healthy: nil,
|
8689
|
+
hostname: nil,
|
8690
|
+
id: nil,
|
8691
|
+
name: nil,
|
8692
|
+
password: nil,
|
8693
|
+
port: nil,
|
8694
|
+
port_override: nil,
|
8695
|
+
proxy_cluster_id: nil,
|
8696
|
+
require_native_auth: nil,
|
8697
|
+
secret_store_id: nil,
|
8698
|
+
subdomain: nil,
|
8699
|
+
tags: nil,
|
8700
|
+
use_azure_single_server_usernames: nil,
|
8701
|
+
username: nil
|
8702
|
+
)
|
8703
|
+
@bind_interface = bind_interface == nil ? "" : bind_interface
|
8704
|
+
@database = database == nil ? "" : database
|
8705
|
+
@egress_filter = egress_filter == nil ? "" : egress_filter
|
8706
|
+
@healthy = healthy == nil ? false : healthy
|
8707
|
+
@hostname = hostname == nil ? "" : hostname
|
8708
|
+
@id = id == nil ? "" : id
|
8709
|
+
@name = name == nil ? "" : name
|
8710
|
+
@password = password == nil ? "" : password
|
8711
|
+
@port = port == nil ? 0 : port
|
8712
|
+
@port_override = port_override == nil ? 0 : port_override
|
8713
|
+
@proxy_cluster_id = proxy_cluster_id == nil ? "" : proxy_cluster_id
|
8714
|
+
@require_native_auth = require_native_auth == nil ? false : require_native_auth
|
8715
|
+
@secret_store_id = secret_store_id == nil ? "" : secret_store_id
|
8716
|
+
@subdomain = subdomain == nil ? "" : subdomain
|
8717
|
+
@tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
|
8718
|
+
@use_azure_single_server_usernames = use_azure_single_server_usernames == nil ? false : use_azure_single_server_usernames
|
8719
|
+
@username = username == nil ? "" : username
|
7801
8720
|
end
|
7802
8721
|
|
7803
8722
|
def to_json(options = {})
|
@@ -12469,6 +13388,331 @@ module SDM
|
|
12469
13388
|
end
|
12470
13389
|
end
|
12471
13390
|
|
13391
|
+
# SecretEngineCreateRequest specifies a Secret Engine to create.
|
13392
|
+
class SecretEngineCreateRequest
|
13393
|
+
# Parameters to define the new Secret Engine.
|
13394
|
+
attr_accessor :secret_engine
|
13395
|
+
|
13396
|
+
def initialize(
|
13397
|
+
secret_engine: nil
|
13398
|
+
)
|
13399
|
+
@secret_engine = secret_engine == nil ? nil : secret_engine
|
13400
|
+
end
|
13401
|
+
|
13402
|
+
def to_json(options = {})
|
13403
|
+
hash = {}
|
13404
|
+
self.instance_variables.each do |var|
|
13405
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
13406
|
+
end
|
13407
|
+
hash.to_json
|
13408
|
+
end
|
13409
|
+
end
|
13410
|
+
|
13411
|
+
# SecretEngineCreateResponse contains information about a Secret Engine after successful creation.
|
13412
|
+
class SecretEngineCreateResponse
|
13413
|
+
# Reserved for future use.
|
13414
|
+
attr_accessor :meta
|
13415
|
+
# Rate limit information.
|
13416
|
+
attr_accessor :rate_limit
|
13417
|
+
# The requested Secret Engine.
|
13418
|
+
attr_accessor :secret_engine
|
13419
|
+
|
13420
|
+
def initialize(
|
13421
|
+
meta: nil,
|
13422
|
+
rate_limit: nil,
|
13423
|
+
secret_engine: nil
|
13424
|
+
)
|
13425
|
+
@meta = meta == nil ? nil : meta
|
13426
|
+
@rate_limit = rate_limit == nil ? nil : rate_limit
|
13427
|
+
@secret_engine = secret_engine == nil ? nil : secret_engine
|
13428
|
+
end
|
13429
|
+
|
13430
|
+
def to_json(options = {})
|
13431
|
+
hash = {}
|
13432
|
+
self.instance_variables.each do |var|
|
13433
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
13434
|
+
end
|
13435
|
+
hash.to_json
|
13436
|
+
end
|
13437
|
+
end
|
13438
|
+
|
13439
|
+
# SecretEngineDeleteRequest specified the ID of a Secret Engine to be deleted.
|
13440
|
+
class SecretEngineDeleteRequest
|
13441
|
+
# The unique identifier of the Secret Engine to delete.
|
13442
|
+
attr_accessor :id
|
13443
|
+
|
13444
|
+
def initialize(
|
13445
|
+
id: nil
|
13446
|
+
)
|
13447
|
+
@id = id == nil ? "" : id
|
13448
|
+
end
|
13449
|
+
|
13450
|
+
def to_json(options = {})
|
13451
|
+
hash = {}
|
13452
|
+
self.instance_variables.each do |var|
|
13453
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
13454
|
+
end
|
13455
|
+
hash.to_json
|
13456
|
+
end
|
13457
|
+
end
|
13458
|
+
|
13459
|
+
# SecretEngineDeleteResponse contains information about a Secret Engine after it was deleted.
|
13460
|
+
class SecretEngineDeleteResponse
|
13461
|
+
# Rate limit information.
|
13462
|
+
attr_accessor :rate_limit
|
13463
|
+
|
13464
|
+
def initialize(
|
13465
|
+
rate_limit: nil
|
13466
|
+
)
|
13467
|
+
@rate_limit = rate_limit == nil ? nil : rate_limit
|
13468
|
+
end
|
13469
|
+
|
13470
|
+
def to_json(options = {})
|
13471
|
+
hash = {}
|
13472
|
+
self.instance_variables.each do |var|
|
13473
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
13474
|
+
end
|
13475
|
+
hash.to_json
|
13476
|
+
end
|
13477
|
+
end
|
13478
|
+
|
13479
|
+
# SecretEngineGetRequest specifies which Secret Engine to retrieve
|
13480
|
+
class SecretEngineGetRequest
|
13481
|
+
# The unique identifier of the Secret Engine to retrieve.
|
13482
|
+
attr_accessor :id
|
13483
|
+
|
13484
|
+
def initialize(
|
13485
|
+
id: nil
|
13486
|
+
)
|
13487
|
+
@id = id == nil ? "" : id
|
13488
|
+
end
|
13489
|
+
|
13490
|
+
def to_json(options = {})
|
13491
|
+
hash = {}
|
13492
|
+
self.instance_variables.each do |var|
|
13493
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
13494
|
+
end
|
13495
|
+
hash.to_json
|
13496
|
+
end
|
13497
|
+
end
|
13498
|
+
|
13499
|
+
# SecretEngineGetResponse contains information about requested Secret Engine
|
13500
|
+
class SecretEngineGetResponse
|
13501
|
+
# Reserved for future use.
|
13502
|
+
attr_accessor :meta
|
13503
|
+
# Rate limit information.
|
13504
|
+
attr_accessor :rate_limit
|
13505
|
+
# The requested Secret Engine.
|
13506
|
+
attr_accessor :secret_engine
|
13507
|
+
|
13508
|
+
def initialize(
|
13509
|
+
meta: nil,
|
13510
|
+
rate_limit: nil,
|
13511
|
+
secret_engine: nil
|
13512
|
+
)
|
13513
|
+
@meta = meta == nil ? nil : meta
|
13514
|
+
@rate_limit = rate_limit == nil ? nil : rate_limit
|
13515
|
+
@secret_engine = secret_engine == nil ? nil : secret_engine
|
13516
|
+
end
|
13517
|
+
|
13518
|
+
def to_json(options = {})
|
13519
|
+
hash = {}
|
13520
|
+
self.instance_variables.each do |var|
|
13521
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
13522
|
+
end
|
13523
|
+
hash.to_json
|
13524
|
+
end
|
13525
|
+
end
|
13526
|
+
|
13527
|
+
# SecretEngineListRequest specifies criteria for retrieving a list of Secret Engines
|
13528
|
+
class SecretEngineListRequest
|
13529
|
+
# A human-readable filter query string.
|
13530
|
+
attr_accessor :filter
|
13531
|
+
|
13532
|
+
def initialize(
|
13533
|
+
filter: nil
|
13534
|
+
)
|
13535
|
+
@filter = filter == nil ? "" : filter
|
13536
|
+
end
|
13537
|
+
|
13538
|
+
def to_json(options = {})
|
13539
|
+
hash = {}
|
13540
|
+
self.instance_variables.each do |var|
|
13541
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
13542
|
+
end
|
13543
|
+
hash.to_json
|
13544
|
+
end
|
13545
|
+
end
|
13546
|
+
|
13547
|
+
# SecretEngineListResponse contains a list of requested Secret Engine
|
13548
|
+
class SecretEngineListResponse
|
13549
|
+
# Rate limit information.
|
13550
|
+
attr_accessor :rate_limit
|
13551
|
+
|
13552
|
+
def initialize(
|
13553
|
+
rate_limit: nil
|
13554
|
+
)
|
13555
|
+
@rate_limit = rate_limit == nil ? nil : rate_limit
|
13556
|
+
end
|
13557
|
+
|
13558
|
+
def to_json(options = {})
|
13559
|
+
hash = {}
|
13560
|
+
self.instance_variables.each do |var|
|
13561
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
13562
|
+
end
|
13563
|
+
hash.to_json
|
13564
|
+
end
|
13565
|
+
end
|
13566
|
+
|
13567
|
+
class SecretEnginePasswordPolicy
|
13568
|
+
# If set to true allows for consecutive characters to repeat itself
|
13569
|
+
attr_accessor :allow_repeat
|
13570
|
+
# Characters to exclude when generating password
|
13571
|
+
attr_accessor :exclude_characters
|
13572
|
+
# If set to true do not include upper case letters when generating password
|
13573
|
+
attr_accessor :exclude_upper_case
|
13574
|
+
# Password length.
|
13575
|
+
attr_accessor :length
|
13576
|
+
# Numbers of digits to use when generating password
|
13577
|
+
attr_accessor :num_digits
|
13578
|
+
# Number of symbols to use when generating password
|
13579
|
+
attr_accessor :num_symbols
|
13580
|
+
|
13581
|
+
def initialize(
|
13582
|
+
allow_repeat: nil,
|
13583
|
+
exclude_characters: nil,
|
13584
|
+
exclude_upper_case: nil,
|
13585
|
+
length: nil,
|
13586
|
+
num_digits: nil,
|
13587
|
+
num_symbols: nil
|
13588
|
+
)
|
13589
|
+
@allow_repeat = allow_repeat == nil ? false : allow_repeat
|
13590
|
+
@exclude_characters = exclude_characters == nil ? "" : exclude_characters
|
13591
|
+
@exclude_upper_case = exclude_upper_case == nil ? false : exclude_upper_case
|
13592
|
+
@length = length == nil ? 0 : length
|
13593
|
+
@num_digits = num_digits == nil ? 0 : num_digits
|
13594
|
+
@num_symbols = num_symbols == nil ? 0 : num_symbols
|
13595
|
+
end
|
13596
|
+
|
13597
|
+
def to_json(options = {})
|
13598
|
+
hash = {}
|
13599
|
+
self.instance_variables.each do |var|
|
13600
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
13601
|
+
end
|
13602
|
+
hash.to_json
|
13603
|
+
end
|
13604
|
+
end
|
13605
|
+
|
13606
|
+
class SecretEnginePolicy
|
13607
|
+
# Policy for password
|
13608
|
+
attr_accessor :password_policy
|
13609
|
+
|
13610
|
+
def initialize(
|
13611
|
+
password_policy: nil
|
13612
|
+
)
|
13613
|
+
@password_policy = password_policy == nil ? nil : password_policy
|
13614
|
+
end
|
13615
|
+
|
13616
|
+
def to_json(options = {})
|
13617
|
+
hash = {}
|
13618
|
+
self.instance_variables.each do |var|
|
13619
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
13620
|
+
end
|
13621
|
+
hash.to_json
|
13622
|
+
end
|
13623
|
+
end
|
13624
|
+
|
13625
|
+
class SecretEngineRotateRequest
|
13626
|
+
# The unique identifier of the Secret Engine to rotate credentials for.
|
13627
|
+
attr_accessor :id
|
13628
|
+
# Optional password policy to use when generating a password
|
13629
|
+
# If not provided it will use secret engine's password_policy
|
13630
|
+
attr_accessor :password_policy
|
13631
|
+
|
13632
|
+
def initialize(
|
13633
|
+
id: nil,
|
13634
|
+
password_policy: nil
|
13635
|
+
)
|
13636
|
+
@id = id == nil ? "" : id
|
13637
|
+
@password_policy = password_policy == nil ? nil : password_policy
|
13638
|
+
end
|
13639
|
+
|
13640
|
+
def to_json(options = {})
|
13641
|
+
hash = {}
|
13642
|
+
self.instance_variables.each do |var|
|
13643
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
13644
|
+
end
|
13645
|
+
hash.to_json
|
13646
|
+
end
|
13647
|
+
end
|
13648
|
+
|
13649
|
+
class SecretEngineRotateResponse
|
13650
|
+
# Rate limit information.
|
13651
|
+
attr_accessor :rate_limit
|
13652
|
+
|
13653
|
+
def initialize(
|
13654
|
+
rate_limit: nil
|
13655
|
+
)
|
13656
|
+
@rate_limit = rate_limit == nil ? nil : rate_limit
|
13657
|
+
end
|
13658
|
+
|
13659
|
+
def to_json(options = {})
|
13660
|
+
hash = {}
|
13661
|
+
self.instance_variables.each do |var|
|
13662
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
13663
|
+
end
|
13664
|
+
hash.to_json
|
13665
|
+
end
|
13666
|
+
end
|
13667
|
+
|
13668
|
+
# SecretEngineUpdateRequest specifies secret engine to update
|
13669
|
+
class SecretEngineUpdateRequest
|
13670
|
+
# Secret engine to update
|
13671
|
+
attr_accessor :secret_engine
|
13672
|
+
|
13673
|
+
def initialize(
|
13674
|
+
secret_engine: nil
|
13675
|
+
)
|
13676
|
+
@secret_engine = secret_engine == nil ? nil : secret_engine
|
13677
|
+
end
|
13678
|
+
|
13679
|
+
def to_json(options = {})
|
13680
|
+
hash = {}
|
13681
|
+
self.instance_variables.each do |var|
|
13682
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
13683
|
+
end
|
13684
|
+
hash.to_json
|
13685
|
+
end
|
13686
|
+
end
|
13687
|
+
|
13688
|
+
# SecretEngineUpdateResponse contains information about Secret Engine after successful update.
|
13689
|
+
class SecretEngineUpdateResponse
|
13690
|
+
# Reserved for future use.
|
13691
|
+
attr_accessor :meta
|
13692
|
+
# Rate limit information.
|
13693
|
+
attr_accessor :rate_limit
|
13694
|
+
# The requested Secret Engine.
|
13695
|
+
attr_accessor :secret_engine
|
13696
|
+
|
13697
|
+
def initialize(
|
13698
|
+
meta: nil,
|
13699
|
+
rate_limit: nil,
|
13700
|
+
secret_engine: nil
|
13701
|
+
)
|
13702
|
+
@meta = meta == nil ? nil : meta
|
13703
|
+
@rate_limit = rate_limit == nil ? nil : rate_limit
|
13704
|
+
@secret_engine = secret_engine == nil ? nil : secret_engine
|
13705
|
+
end
|
13706
|
+
|
13707
|
+
def to_json(options = {})
|
13708
|
+
hash = {}
|
13709
|
+
self.instance_variables.each do |var|
|
13710
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
13711
|
+
end
|
13712
|
+
hash.to_json
|
13713
|
+
end
|
13714
|
+
end
|
13715
|
+
|
12472
13716
|
# SecretStoreCreateResponse reports how the SecretStores were created in the system.
|
12473
13717
|
class SecretStoreCreateResponse
|
12474
13718
|
# Reserved for future use.
|