strongdm 13.11.0 → 13.12.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.
@@ -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
@@ -5985,6 +6090,44 @@ module SDM
5985
6090
  end
5986
6091
  end
5987
6092
 
6093
+ class GenerateKeysRequest
6094
+ # required
6095
+ attr_accessor :secret_engine_id
6096
+
6097
+ def initialize(
6098
+ secret_engine_id: nil
6099
+ )
6100
+ @secret_engine_id = secret_engine_id == nil ? "" : secret_engine_id
6101
+ end
6102
+
6103
+ def to_json(options = {})
6104
+ hash = {}
6105
+ self.instance_variables.each do |var|
6106
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
6107
+ end
6108
+ hash.to_json
6109
+ end
6110
+ end
6111
+
6112
+ class GenerateKeysResponse
6113
+ # Rate limit information.
6114
+ attr_accessor :rate_limit
6115
+
6116
+ def initialize(
6117
+ rate_limit: nil
6118
+ )
6119
+ @rate_limit = rate_limit == nil ? nil : rate_limit
6120
+ end
6121
+
6122
+ def to_json(options = {})
6123
+ hash = {}
6124
+ self.instance_variables.each do |var|
6125
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
6126
+ end
6127
+ hash.to_json
6128
+ end
6129
+ end
6130
+
5988
6131
  # GenericResponseMetadata contains common headers for generic request
5989
6132
  # responses.
5990
6133
  class GenericResponseMetadata
@@ -6551,6 +6694,72 @@ module SDM
6551
6694
  end
6552
6695
  end
6553
6696
 
6697
+ class HealthcheckRequest
6698
+ # required
6699
+ attr_accessor :secret_engine_id
6700
+
6701
+ def initialize(
6702
+ secret_engine_id: nil
6703
+ )
6704
+ @secret_engine_id = secret_engine_id == nil ? "" : secret_engine_id
6705
+ end
6706
+
6707
+ def to_json(options = {})
6708
+ hash = {}
6709
+ self.instance_variables.each do |var|
6710
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
6711
+ end
6712
+ hash.to_json
6713
+ end
6714
+ end
6715
+
6716
+ class HealthcheckResponse
6717
+ # Rate limit information.
6718
+ attr_accessor :rate_limit
6719
+ # Array of statuses of all nodes serving a secret engine
6720
+ attr_accessor :status
6721
+
6722
+ def initialize(
6723
+ rate_limit: nil,
6724
+ status: nil
6725
+ )
6726
+ @rate_limit = rate_limit == nil ? nil : rate_limit
6727
+ @status = status == nil ? [] : status
6728
+ end
6729
+
6730
+ def to_json(options = {})
6731
+ hash = {}
6732
+ self.instance_variables.each do |var|
6733
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
6734
+ end
6735
+ hash.to_json
6736
+ end
6737
+ end
6738
+
6739
+ # HealthcheckStatus contains status of a node health
6740
+ class HealthcheckStatus
6741
+ # ID of node
6742
+ attr_accessor :node_id
6743
+ # Status of node's health
6744
+ attr_accessor :status
6745
+
6746
+ def initialize(
6747
+ node_id: nil,
6748
+ status: nil
6749
+ )
6750
+ @node_id = node_id == nil ? "" : node_id
6751
+ @status = status == nil ? "" : status
6752
+ end
6753
+
6754
+ def to_json(options = {})
6755
+ hash = {}
6756
+ self.instance_variables.each do |var|
6757
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
6758
+ end
6759
+ hash.to_json
6760
+ end
6761
+ end
6762
+
6554
6763
  # IdentityAliases define the username to be used for a specific account
6555
6764
  # when connecting to a remote resource using that identity set.
6556
6765
  class IdentityAlias
@@ -6897,6 +7106,50 @@ module SDM
6897
7106
  end
6898
7107
  end
6899
7108
 
7109
+ # KeyValueEngine is currently unstable, and its API may change, or it may be removed, without a major version bump.
7110
+ class KeyValueEngine
7111
+ # Unique identifier of the Secret Engine.
7112
+ attr_accessor :id
7113
+ # An interval of public/private key rotation for secret engine in days
7114
+ attr_accessor :key_rotation_interval_days
7115
+ # Unique human-readable name of the Secret Engine.
7116
+ attr_accessor :name
7117
+ # Public key linked with a secret engine
7118
+ attr_accessor :public_key
7119
+ # Backing secret store identifier
7120
+ attr_accessor :secret_store_id
7121
+ # Backing Secret Store root path where managed secrets are going to be stored
7122
+ attr_accessor :secret_store_root_path
7123
+ # Tags is a map of key, value pairs.
7124
+ attr_accessor :tags
7125
+
7126
+ def initialize(
7127
+ id: nil,
7128
+ key_rotation_interval_days: nil,
7129
+ name: nil,
7130
+ public_key: nil,
7131
+ secret_store_id: nil,
7132
+ secret_store_root_path: nil,
7133
+ tags: nil
7134
+ )
7135
+ @id = id == nil ? "" : id
7136
+ @key_rotation_interval_days = key_rotation_interval_days == nil ? 0 : key_rotation_interval_days
7137
+ @name = name == nil ? "" : name
7138
+ @public_key = public_key == nil ? "" : public_key
7139
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
7140
+ @secret_store_root_path = secret_store_root_path == nil ? "" : secret_store_root_path
7141
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
7142
+ end
7143
+
7144
+ def to_json(options = {})
7145
+ hash = {}
7146
+ self.instance_variables.each do |var|
7147
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
7148
+ end
7149
+ hash.to_json
7150
+ end
7151
+ end
7152
+
6900
7153
  class KeyfactorSSHStore
6901
7154
  # Path to the root CA that signed the certificate passed to the client for HTTPS connection.
6902
7155
  # This is not required if the CA is trusted by the host operating system. This should be a PEM
@@ -7726,78 +7979,51 @@ module SDM
7726
7979
  end
7727
7980
  end
7728
7981
 
7729
- class Maria
7730
- # 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.
7731
- attr_accessor :bind_interface
7732
- # The database for healthchecks. Does not affect client requests.
7733
- attr_accessor :database
7734
- # A filter applied to the routing logic to pin datasource to nodes.
7735
- attr_accessor :egress_filter
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.
7982
+ # ManagedSecret contains details about managed secret
7983
+ class ManagedSecret
7984
+ # public part of the secret value
7985
+ attr_accessor :config
7986
+ # Timestamp of when secret is going to be rotated
7987
+ attr_accessor :expires_at
7988
+ # Unique identifier of the Managed Secret.
7741
7989
  attr_accessor :id
7742
- # Unique human-readable name of the Resource.
7990
+ # Timestamp of when secret was last rotated
7991
+ attr_accessor :last_rotated_at
7992
+ # Unique human-readable name of the Managed Secret.
7743
7993
  attr_accessor :name
7744
- # The password to authenticate with.
7745
- attr_accessor :password
7746
- # The port to dial to initiate a connection from the egress node to this resource.
7747
- attr_accessor :port
7748
- # The local port used by clients to connect to this resource.
7749
- attr_accessor :port_override
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
7994
+ # Password and rotation policy for the secret
7995
+ attr_accessor :policy
7996
+ # An ID of a Secret Engine linked with the Managed Secret.
7997
+ attr_accessor :secret_engine_id
7998
+ # Path in a secret store.
7999
+ attr_accessor :secret_store_path
7758
8000
  # Tags is a map of key, value pairs.
7759
8001
  attr_accessor :tags
7760
- # If true, appends the hostname to the username when hitting a database.azure.com address
7761
- attr_accessor :use_azure_single_server_usernames
7762
- # The username to authenticate with.
7763
- attr_accessor :username
8002
+ # Sensitive value of the secret.
8003
+ attr_accessor :value
7764
8004
 
7765
8005
  def initialize(
7766
- bind_interface: nil,
7767
- database: nil,
7768
- egress_filter: nil,
7769
- healthy: nil,
7770
- hostname: nil,
8006
+ config: nil,
8007
+ expires_at: nil,
7771
8008
  id: nil,
8009
+ last_rotated_at: nil,
7772
8010
  name: nil,
7773
- password: nil,
7774
- port: nil,
7775
- port_override: nil,
7776
- proxy_cluster_id: nil,
7777
- require_native_auth: nil,
7778
- secret_store_id: nil,
7779
- subdomain: nil,
8011
+ policy: nil,
8012
+ secret_engine_id: nil,
8013
+ secret_store_path: nil,
7780
8014
  tags: nil,
7781
- use_azure_single_server_usernames: nil,
7782
- username: nil
8015
+ value: nil
7783
8016
  )
7784
- @bind_interface = bind_interface == nil ? "" : bind_interface
7785
- @database = database == nil ? "" : database
7786
- @egress_filter = egress_filter == nil ? "" : egress_filter
7787
- @healthy = healthy == nil ? false : healthy
7788
- @hostname = hostname == nil ? "" : hostname
8017
+ @config = config == nil ? "" : config
8018
+ @expires_at = expires_at == nil ? nil : expires_at
7789
8019
  @id = id == nil ? "" : id
8020
+ @last_rotated_at = last_rotated_at == nil ? nil : last_rotated_at
7790
8021
  @name = name == nil ? "" : name
7791
- @password = password == nil ? "" : password
7792
- @port = port == nil ? 0 : port
7793
- @port_override = port_override == nil ? 0 : port_override
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
8022
+ @policy = policy == nil ? nil : policy
8023
+ @secret_engine_id = secret_engine_id == nil ? "" : secret_engine_id
8024
+ @secret_store_path = secret_store_path == nil ? "" : secret_store_path
7798
8025
  @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
7799
- @use_azure_single_server_usernames = use_azure_single_server_usernames == nil ? false : use_azure_single_server_usernames
7800
- @username = username == nil ? "" : username
8026
+ @value = value == nil ? "" : value
7801
8027
  end
7802
8028
 
7803
8029
  def to_json(options = {})
@@ -7809,47 +8035,672 @@ module SDM
7809
8035
  end
7810
8036
  end
7811
8037
 
7812
- class Memcached
7813
- # 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.
7814
- attr_accessor :bind_interface
7815
- # A filter applied to the routing logic to pin datasource to nodes.
7816
- attr_accessor :egress_filter
7817
- # True if the datasource is reachable and the credentials are valid.
7818
- attr_accessor :healthy
7819
- # The host to dial to initiate a connection from the egress node to this resource.
7820
- attr_accessor :hostname
7821
- # Unique identifier of the Resource.
7822
- attr_accessor :id
7823
- # Unique human-readable name of the Resource.
7824
- attr_accessor :name
7825
- # The port to dial to initiate a connection from the egress node to this resource.
7826
- attr_accessor :port
7827
- # The local port used by clients to connect to this resource.
7828
- attr_accessor :port_override
7829
- # ID of the proxy cluster for this resource, if any.
7830
- attr_accessor :proxy_cluster_id
7831
- # ID of the secret store containing credentials for this resource, if any.
7832
- attr_accessor :secret_store_id
7833
- # Subdomain is the local DNS address. (e.g. app-prod1 turns into app-prod1.your-org-name.sdm.network)
7834
- attr_accessor :subdomain
7835
- # Tags is a map of key, value pairs.
7836
- attr_accessor :tags
8038
+ # ManagedSecretCreateRequest specifies a Managed Secret to create.
8039
+ class ManagedSecretCreateRequest
8040
+ # Parameters to define the new Managed Secret.
8041
+ attr_accessor :managed_secret
7837
8042
 
7838
8043
  def initialize(
7839
- bind_interface: nil,
7840
- egress_filter: nil,
7841
- healthy: nil,
7842
- hostname: nil,
7843
- id: nil,
7844
- name: nil,
7845
- port: nil,
7846
- port_override: nil,
7847
- proxy_cluster_id: nil,
7848
- secret_store_id: nil,
7849
- subdomain: nil,
7850
- tags: nil
8044
+ managed_secret: nil
7851
8045
  )
7852
- @bind_interface = bind_interface == nil ? "" : bind_interface
8046
+ @managed_secret = managed_secret == nil ? nil : managed_secret
8047
+ end
8048
+
8049
+ def to_json(options = {})
8050
+ hash = {}
8051
+ self.instance_variables.each do |var|
8052
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8053
+ end
8054
+ hash.to_json
8055
+ end
8056
+ end
8057
+
8058
+ # ManagedSecretCreateResponse contains information about a Managed Secret after
8059
+ # successful creation.
8060
+ class ManagedSecretCreateResponse
8061
+ # The requested Managed Secret.
8062
+ attr_accessor :managed_secret
8063
+ # Reserved for future use.
8064
+ attr_accessor :meta
8065
+ # Rate limit information.
8066
+ attr_accessor :rate_limit
8067
+
8068
+ def initialize(
8069
+ managed_secret: nil,
8070
+ meta: nil,
8071
+ rate_limit: nil
8072
+ )
8073
+ @managed_secret = managed_secret == nil ? nil : managed_secret
8074
+ @meta = meta == nil ? nil : meta
8075
+ @rate_limit = rate_limit == nil ? nil : rate_limit
8076
+ end
8077
+
8078
+ def to_json(options = {})
8079
+ hash = {}
8080
+ self.instance_variables.each do |var|
8081
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8082
+ end
8083
+ hash.to_json
8084
+ end
8085
+ end
8086
+
8087
+ # ManagedSecretDeleteRequest specified the ID of a Managed Secret to be
8088
+ # deleted.
8089
+ class ManagedSecretDeleteRequest
8090
+ # The unique identifier of the Managed Secret to delete.
8091
+ attr_accessor :id
8092
+
8093
+ def initialize(
8094
+ id: nil
8095
+ )
8096
+ @id = id == nil ? "" : id
8097
+ end
8098
+
8099
+ def to_json(options = {})
8100
+ hash = {}
8101
+ self.instance_variables.each do |var|
8102
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8103
+ end
8104
+ hash.to_json
8105
+ end
8106
+ end
8107
+
8108
+ # ManagedSecretDeleteResponse contains information about a Managed Secret after
8109
+ # it was deleted.
8110
+ class ManagedSecretDeleteResponse
8111
+ # Rate limit information.
8112
+ attr_accessor :rate_limit
8113
+
8114
+ def initialize(
8115
+ rate_limit: nil
8116
+ )
8117
+ @rate_limit = rate_limit == nil ? nil : rate_limit
8118
+ end
8119
+
8120
+ def to_json(options = {})
8121
+ hash = {}
8122
+ self.instance_variables.each do |var|
8123
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8124
+ end
8125
+ hash.to_json
8126
+ end
8127
+ end
8128
+
8129
+ # ManagedSecretGetRequest specifies which Managed Secret to retrieve
8130
+ class ManagedSecretGetRequest
8131
+ # The unique identifier of the Managed Secret to retrieve.
8132
+ attr_accessor :id
8133
+
8134
+ def initialize(
8135
+ id: nil
8136
+ )
8137
+ @id = id == nil ? "" : id
8138
+ end
8139
+
8140
+ def to_json(options = {})
8141
+ hash = {}
8142
+ self.instance_variables.each do |var|
8143
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8144
+ end
8145
+ hash.to_json
8146
+ end
8147
+ end
8148
+
8149
+ # ManagedSecretGetResponse contains information about requested Managed Secret
8150
+ class ManagedSecretGetResponse
8151
+ # The requested Managed Secret.
8152
+ attr_accessor :managed_secret
8153
+ # Reserved for future use.
8154
+ attr_accessor :meta
8155
+ # Rate limit information.
8156
+ attr_accessor :rate_limit
8157
+
8158
+ def initialize(
8159
+ managed_secret: nil,
8160
+ meta: nil,
8161
+ rate_limit: nil
8162
+ )
8163
+ @managed_secret = managed_secret == nil ? nil : managed_secret
8164
+ @meta = meta == nil ? nil : meta
8165
+ @rate_limit = rate_limit == nil ? nil : rate_limit
8166
+ end
8167
+
8168
+ def to_json(options = {})
8169
+ hash = {}
8170
+ self.instance_variables.each do |var|
8171
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8172
+ end
8173
+ hash.to_json
8174
+ end
8175
+ end
8176
+
8177
+ # ManagedSecretListRequest specifies criteria for retrieving a list of Managed
8178
+ # Secrets.
8179
+ class ManagedSecretListRequest
8180
+ # A human-readable filter query string.
8181
+ attr_accessor :filter
8182
+
8183
+ def initialize(
8184
+ filter: nil
8185
+ )
8186
+ @filter = filter == nil ? "" : filter
8187
+ end
8188
+
8189
+ def to_json(options = {})
8190
+ hash = {}
8191
+ self.instance_variables.each do |var|
8192
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8193
+ end
8194
+ hash.to_json
8195
+ end
8196
+ end
8197
+
8198
+ # ManagedSecretListResponse contains a list of requested Managed Secrets
8199
+ class ManagedSecretListResponse
8200
+ # Rate limit information.
8201
+ attr_accessor :rate_limit
8202
+
8203
+ def initialize(
8204
+ rate_limit: nil
8205
+ )
8206
+ @rate_limit = rate_limit == nil ? nil : rate_limit
8207
+ end
8208
+
8209
+ def to_json(options = {})
8210
+ hash = {}
8211
+ self.instance_variables.each do |var|
8212
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8213
+ end
8214
+ hash.to_json
8215
+ end
8216
+ end
8217
+
8218
+ # ManagedSecretLog contains details about action performed against a managed
8219
+ # secret
8220
+ class ManagedSecretLog
8221
+ # An ID of the account the action was performed by.
8222
+ attr_accessor :account_id
8223
+ # The action performed by the account against the managed secret.
8224
+ attr_accessor :action
8225
+ # Timestamp of when action was performed.
8226
+ attr_accessor :created_at
8227
+ # Any debug logs associated with the action.
8228
+ attr_accessor :debug
8229
+ # Unique identifier of the Managed Secret Log.
8230
+ attr_accessor :id
8231
+ # An ID of the Managed Secret the action was performed against.
8232
+ attr_accessor :managed_secret_id
8233
+ # An ID of the Secret Engine linked with the Managed Secret.
8234
+ attr_accessor :secret_engine_id
8235
+
8236
+ def initialize(
8237
+ account_id: nil,
8238
+ action: nil,
8239
+ created_at: nil,
8240
+ debug: nil,
8241
+ id: nil,
8242
+ managed_secret_id: nil,
8243
+ secret_engine_id: nil
8244
+ )
8245
+ @account_id = account_id == nil ? "" : account_id
8246
+ @action = action == nil ? "" : action
8247
+ @created_at = created_at == nil ? nil : created_at
8248
+ @debug = debug == nil ? "" : debug
8249
+ @id = id == nil ? "" : id
8250
+ @managed_secret_id = managed_secret_id == nil ? "" : managed_secret_id
8251
+ @secret_engine_id = secret_engine_id == nil ? "" : secret_engine_id
8252
+ end
8253
+
8254
+ def to_json(options = {})
8255
+ hash = {}
8256
+ self.instance_variables.each do |var|
8257
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8258
+ end
8259
+ hash.to_json
8260
+ end
8261
+ end
8262
+
8263
+ # ManagedSecretLogsRequest specifies criteria for retrieving a log of Managed
8264
+ # Secrets actions.
8265
+ class ManagedSecretLogsRequest
8266
+ # A human-readable filter query string.
8267
+ attr_accessor :filter
8268
+
8269
+ def initialize(
8270
+ filter: nil
8271
+ )
8272
+ @filter = filter == nil ? "" : filter
8273
+ end
8274
+
8275
+ def to_json(options = {})
8276
+ hash = {}
8277
+ self.instance_variables.each do |var|
8278
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8279
+ end
8280
+ hash.to_json
8281
+ end
8282
+ end
8283
+
8284
+ # ManagedSecretLogsResponse contains a list of requested Managed Secrets
8285
+ class ManagedSecretLogsResponse
8286
+ # Rate limit information.
8287
+ attr_accessor :rate_limit
8288
+
8289
+ def initialize(
8290
+ rate_limit: nil
8291
+ )
8292
+ @rate_limit = rate_limit == nil ? nil : rate_limit
8293
+ end
8294
+
8295
+ def to_json(options = {})
8296
+ hash = {}
8297
+ self.instance_variables.each do |var|
8298
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8299
+ end
8300
+ hash.to_json
8301
+ end
8302
+ end
8303
+
8304
+ class ManagedSecretPasswordPolicy
8305
+ # If set to true allows for consecutive characters to repeat itself
8306
+ attr_accessor :allow_repeat
8307
+ # Characters to exclude when generating password
8308
+ attr_accessor :exclude_characters
8309
+ # If set to true do not include upper case letters when generating password
8310
+ attr_accessor :exclude_upper_case
8311
+ # Password length
8312
+ attr_accessor :length
8313
+ # Numbers of digits to use when generating password
8314
+ attr_accessor :num_digits
8315
+ # Number of symbols to use when generating password
8316
+ attr_accessor :num_symbols
8317
+
8318
+ def initialize(
8319
+ allow_repeat: nil,
8320
+ exclude_characters: nil,
8321
+ exclude_upper_case: nil,
8322
+ length: nil,
8323
+ num_digits: nil,
8324
+ num_symbols: nil
8325
+ )
8326
+ @allow_repeat = allow_repeat == nil ? false : allow_repeat
8327
+ @exclude_characters = exclude_characters == nil ? "" : exclude_characters
8328
+ @exclude_upper_case = exclude_upper_case == nil ? false : exclude_upper_case
8329
+ @length = length == nil ? 0 : length
8330
+ @num_digits = num_digits == nil ? 0 : num_digits
8331
+ @num_symbols = num_symbols == nil ? 0 : num_symbols
8332
+ end
8333
+
8334
+ def to_json(options = {})
8335
+ hash = {}
8336
+ self.instance_variables.each do |var|
8337
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8338
+ end
8339
+ hash.to_json
8340
+ end
8341
+ end
8342
+
8343
+ # ManagedSecretPolicy contains password and rotation policy for managed secret
8344
+ class ManagedSecretPolicy
8345
+ # Password policy for a managed secret
8346
+ attr_accessor :password_policy
8347
+ # Rotation policy for a managed secret
8348
+ attr_accessor :rotation_policy
8349
+
8350
+ def initialize(
8351
+ password_policy: nil,
8352
+ rotation_policy: nil
8353
+ )
8354
+ @password_policy = password_policy == nil ? nil : password_policy
8355
+ @rotation_policy = rotation_policy == nil ? nil : rotation_policy
8356
+ end
8357
+
8358
+ def to_json(options = {})
8359
+ hash = {}
8360
+ self.instance_variables.each do |var|
8361
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8362
+ end
8363
+ hash.to_json
8364
+ end
8365
+ end
8366
+
8367
+ # ManagedSecretRetrieveRequest specifies which Managed Secret to retrieve
8368
+ class ManagedSecretRetrieveRequest
8369
+ # The unique identifier of the Managed Secret to retrieve.
8370
+ attr_accessor :id
8371
+ # Public key to encrypt a sensitive value with
8372
+ attr_accessor :public_key
8373
+
8374
+ def initialize(
8375
+ id: nil,
8376
+ public_key: nil
8377
+ )
8378
+ @id = id == nil ? "" : id
8379
+ @public_key = public_key == nil ? "" : public_key
8380
+ end
8381
+
8382
+ def to_json(options = {})
8383
+ hash = {}
8384
+ self.instance_variables.each do |var|
8385
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8386
+ end
8387
+ hash.to_json
8388
+ end
8389
+ end
8390
+
8391
+ # ManagedSecretRetrieveResponse contains information about requested Managed
8392
+ # Secret
8393
+ class ManagedSecretRetrieveResponse
8394
+ # The requested Managed Secret.
8395
+ attr_accessor :managed_secret
8396
+ # Reserved for future use.
8397
+ attr_accessor :meta
8398
+ # Rate limit information.
8399
+ attr_accessor :rate_limit
8400
+
8401
+ def initialize(
8402
+ managed_secret: nil,
8403
+ meta: nil,
8404
+ rate_limit: nil
8405
+ )
8406
+ @managed_secret = managed_secret == nil ? nil : managed_secret
8407
+ @meta = meta == nil ? nil : meta
8408
+ @rate_limit = rate_limit == nil ? nil : rate_limit
8409
+ end
8410
+
8411
+ def to_json(options = {})
8412
+ hash = {}
8413
+ self.instance_variables.each do |var|
8414
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8415
+ end
8416
+ hash.to_json
8417
+ end
8418
+ end
8419
+
8420
+ # ManagedSecretRotateRequest specifies Managed Secret to rotate
8421
+ class ManagedSecretRotateRequest
8422
+ # The unique identifier of the Managed Secret to rotate.
8423
+ attr_accessor :id
8424
+
8425
+ def initialize(
8426
+ id: nil
8427
+ )
8428
+ @id = id == nil ? "" : id
8429
+ end
8430
+
8431
+ def to_json(options = {})
8432
+ hash = {}
8433
+ self.instance_variables.each do |var|
8434
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8435
+ end
8436
+ hash.to_json
8437
+ end
8438
+ end
8439
+
8440
+ # ManagedSecretRotateResponse contains information about Secret Engine after
8441
+ # successful rotation.
8442
+ class ManagedSecretRotateResponse
8443
+ # Reserved for future use.
8444
+ attr_accessor :meta
8445
+ # Rate limit information.
8446
+ attr_accessor :rate_limit
8447
+
8448
+ def initialize(
8449
+ meta: nil,
8450
+ rate_limit: nil
8451
+ )
8452
+ @meta = meta == nil ? nil : meta
8453
+ @rate_limit = rate_limit == nil ? nil : rate_limit
8454
+ end
8455
+
8456
+ def to_json(options = {})
8457
+ hash = {}
8458
+ self.instance_variables.each do |var|
8459
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8460
+ end
8461
+ hash.to_json
8462
+ end
8463
+ end
8464
+
8465
+ class ManagedSecretRotationPolicy
8466
+ def initialize()
8467
+ end
8468
+
8469
+ def to_json(options = {})
8470
+ hash = {}
8471
+ self.instance_variables.each do |var|
8472
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8473
+ end
8474
+ hash.to_json
8475
+ end
8476
+ end
8477
+
8478
+ # ManagedSecretUpdateRequest specifies Managed Secret to update
8479
+ class ManagedSecretUpdateRequest
8480
+ # Managed Secret to update
8481
+ attr_accessor :managed_secret
8482
+
8483
+ def initialize(
8484
+ managed_secret: nil
8485
+ )
8486
+ @managed_secret = managed_secret == nil ? nil : managed_secret
8487
+ end
8488
+
8489
+ def to_json(options = {})
8490
+ hash = {}
8491
+ self.instance_variables.each do |var|
8492
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8493
+ end
8494
+ hash.to_json
8495
+ end
8496
+ end
8497
+
8498
+ # ManagedSecretUpdateResponse contains information about Secret Engine after
8499
+ # successful update.
8500
+ class ManagedSecretUpdateResponse
8501
+ # The requested Managed Secret.
8502
+ attr_accessor :managed_secret
8503
+ # Reserved for future use.
8504
+ attr_accessor :meta
8505
+ # Rate limit information.
8506
+ attr_accessor :rate_limit
8507
+
8508
+ def initialize(
8509
+ managed_secret: nil,
8510
+ meta: nil,
8511
+ rate_limit: nil
8512
+ )
8513
+ @managed_secret = managed_secret == nil ? nil : managed_secret
8514
+ @meta = meta == nil ? nil : meta
8515
+ @rate_limit = rate_limit == nil ? nil : rate_limit
8516
+ end
8517
+
8518
+ def to_json(options = {})
8519
+ hash = {}
8520
+ self.instance_variables.each do |var|
8521
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8522
+ end
8523
+ hash.to_json
8524
+ end
8525
+ end
8526
+
8527
+ # ManagedSecretValidateRequest specifies which Managed Secret to validate
8528
+ class ManagedSecretValidateRequest
8529
+ # The unique identifier of the Managed Secret to validate.
8530
+ attr_accessor :id
8531
+
8532
+ def initialize(
8533
+ id: nil
8534
+ )
8535
+ @id = id == nil ? "" : id
8536
+ end
8537
+
8538
+ def to_json(options = {})
8539
+ hash = {}
8540
+ self.instance_variables.each do |var|
8541
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8542
+ end
8543
+ hash.to_json
8544
+ end
8545
+ end
8546
+
8547
+ # ManagedSecretValidateResponse contains validity of requested Managed
8548
+ # Secret
8549
+ class ManagedSecretValidateResponse
8550
+ # Information about why secret is invalid
8551
+ attr_accessor :invalid_info
8552
+ # Reserved for future use.
8553
+ attr_accessor :meta
8554
+ # Rate limit information.
8555
+ attr_accessor :rate_limit
8556
+ # Whether the secret is valid
8557
+ attr_accessor :valid
8558
+
8559
+ def initialize(
8560
+ invalid_info: nil,
8561
+ meta: nil,
8562
+ rate_limit: nil,
8563
+ valid: nil
8564
+ )
8565
+ @invalid_info = invalid_info == nil ? "" : invalid_info
8566
+ @meta = meta == nil ? nil : meta
8567
+ @rate_limit = rate_limit == nil ? nil : rate_limit
8568
+ @valid = valid == nil ? false : valid
8569
+ end
8570
+
8571
+ def to_json(options = {})
8572
+ hash = {}
8573
+ self.instance_variables.each do |var|
8574
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8575
+ end
8576
+ hash.to_json
8577
+ end
8578
+ end
8579
+
8580
+ class Maria
8581
+ # 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.
8582
+ attr_accessor :bind_interface
8583
+ # The database for healthchecks. Does not affect client requests.
8584
+ attr_accessor :database
8585
+ # A filter applied to the routing logic to pin datasource to nodes.
8586
+ attr_accessor :egress_filter
8587
+ # True if the datasource is reachable and the credentials are valid.
8588
+ attr_accessor :healthy
8589
+ # The host to dial to initiate a connection from the egress node to this resource.
8590
+ attr_accessor :hostname
8591
+ # Unique identifier of the Resource.
8592
+ attr_accessor :id
8593
+ # Unique human-readable name of the Resource.
8594
+ attr_accessor :name
8595
+ # The password to authenticate with.
8596
+ attr_accessor :password
8597
+ # The port to dial to initiate a connection from the egress node to this resource.
8598
+ attr_accessor :port
8599
+ # The local port used by clients to connect to this resource.
8600
+ attr_accessor :port_override
8601
+ # ID of the proxy cluster for this resource, if any.
8602
+ attr_accessor :proxy_cluster_id
8603
+ # Whether native auth (mysql_native_password) is used for all connections (for backwards compatibility)
8604
+ attr_accessor :require_native_auth
8605
+ # ID of the secret store containing credentials for this resource, if any.
8606
+ attr_accessor :secret_store_id
8607
+ # Subdomain is the local DNS address. (e.g. app-prod1 turns into app-prod1.your-org-name.sdm.network)
8608
+ attr_accessor :subdomain
8609
+ # Tags is a map of key, value pairs.
8610
+ attr_accessor :tags
8611
+ # If true, appends the hostname to the username when hitting a database.azure.com address
8612
+ attr_accessor :use_azure_single_server_usernames
8613
+ # The username to authenticate with.
8614
+ attr_accessor :username
8615
+
8616
+ def initialize(
8617
+ bind_interface: nil,
8618
+ database: nil,
8619
+ egress_filter: nil,
8620
+ healthy: nil,
8621
+ hostname: nil,
8622
+ id: nil,
8623
+ name: nil,
8624
+ password: nil,
8625
+ port: nil,
8626
+ port_override: nil,
8627
+ proxy_cluster_id: nil,
8628
+ require_native_auth: nil,
8629
+ secret_store_id: nil,
8630
+ subdomain: nil,
8631
+ tags: nil,
8632
+ use_azure_single_server_usernames: nil,
8633
+ username: nil
8634
+ )
8635
+ @bind_interface = bind_interface == nil ? "" : bind_interface
8636
+ @database = database == nil ? "" : database
8637
+ @egress_filter = egress_filter == nil ? "" : egress_filter
8638
+ @healthy = healthy == nil ? false : healthy
8639
+ @hostname = hostname == nil ? "" : hostname
8640
+ @id = id == nil ? "" : id
8641
+ @name = name == nil ? "" : name
8642
+ @password = password == nil ? "" : password
8643
+ @port = port == nil ? 0 : port
8644
+ @port_override = port_override == nil ? 0 : port_override
8645
+ @proxy_cluster_id = proxy_cluster_id == nil ? "" : proxy_cluster_id
8646
+ @require_native_auth = require_native_auth == nil ? false : require_native_auth
8647
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
8648
+ @subdomain = subdomain == nil ? "" : subdomain
8649
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
8650
+ @use_azure_single_server_usernames = use_azure_single_server_usernames == nil ? false : use_azure_single_server_usernames
8651
+ @username = username == nil ? "" : username
8652
+ end
8653
+
8654
+ def to_json(options = {})
8655
+ hash = {}
8656
+ self.instance_variables.each do |var|
8657
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8658
+ end
8659
+ hash.to_json
8660
+ end
8661
+ end
8662
+
8663
+ class Memcached
8664
+ # 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.
8665
+ attr_accessor :bind_interface
8666
+ # A filter applied to the routing logic to pin datasource to nodes.
8667
+ attr_accessor :egress_filter
8668
+ # True if the datasource is reachable and the credentials are valid.
8669
+ attr_accessor :healthy
8670
+ # The host to dial to initiate a connection from the egress node to this resource.
8671
+ attr_accessor :hostname
8672
+ # Unique identifier of the Resource.
8673
+ attr_accessor :id
8674
+ # Unique human-readable name of the Resource.
8675
+ attr_accessor :name
8676
+ # The port to dial to initiate a connection from the egress node to this resource.
8677
+ attr_accessor :port
8678
+ # The local port used by clients to connect to this resource.
8679
+ attr_accessor :port_override
8680
+ # ID of the proxy cluster for this resource, if any.
8681
+ attr_accessor :proxy_cluster_id
8682
+ # ID of the secret store containing credentials for this resource, if any.
8683
+ attr_accessor :secret_store_id
8684
+ # Subdomain is the local DNS address. (e.g. app-prod1 turns into app-prod1.your-org-name.sdm.network)
8685
+ attr_accessor :subdomain
8686
+ # Tags is a map of key, value pairs.
8687
+ attr_accessor :tags
8688
+
8689
+ def initialize(
8690
+ bind_interface: nil,
8691
+ egress_filter: nil,
8692
+ healthy: nil,
8693
+ hostname: nil,
8694
+ id: nil,
8695
+ name: nil,
8696
+ port: nil,
8697
+ port_override: nil,
8698
+ proxy_cluster_id: nil,
8699
+ secret_store_id: nil,
8700
+ subdomain: nil,
8701
+ tags: nil
8702
+ )
8703
+ @bind_interface = bind_interface == nil ? "" : bind_interface
7853
8704
  @egress_filter = egress_filter == nil ? "" : egress_filter
7854
8705
  @healthy = healthy == nil ? false : healthy
7855
8706
  @hostname = hostname == nil ? "" : hostname
@@ -12469,6 +13320,331 @@ module SDM
12469
13320
  end
12470
13321
  end
12471
13322
 
13323
+ # SecretEngineCreateRequest specifies a Secret Engine to create.
13324
+ class SecretEngineCreateRequest
13325
+ # Parameters to define the new Secret Engine.
13326
+ attr_accessor :secret_engine
13327
+
13328
+ def initialize(
13329
+ secret_engine: nil
13330
+ )
13331
+ @secret_engine = secret_engine == nil ? nil : secret_engine
13332
+ end
13333
+
13334
+ def to_json(options = {})
13335
+ hash = {}
13336
+ self.instance_variables.each do |var|
13337
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
13338
+ end
13339
+ hash.to_json
13340
+ end
13341
+ end
13342
+
13343
+ # SecretEngineCreateResponse contains information about a Secret Engine after successful creation.
13344
+ class SecretEngineCreateResponse
13345
+ # Reserved for future use.
13346
+ attr_accessor :meta
13347
+ # Rate limit information.
13348
+ attr_accessor :rate_limit
13349
+ # The requested Secret Engine.
13350
+ attr_accessor :secret_engine
13351
+
13352
+ def initialize(
13353
+ meta: nil,
13354
+ rate_limit: nil,
13355
+ secret_engine: nil
13356
+ )
13357
+ @meta = meta == nil ? nil : meta
13358
+ @rate_limit = rate_limit == nil ? nil : rate_limit
13359
+ @secret_engine = secret_engine == nil ? nil : secret_engine
13360
+ end
13361
+
13362
+ def to_json(options = {})
13363
+ hash = {}
13364
+ self.instance_variables.each do |var|
13365
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
13366
+ end
13367
+ hash.to_json
13368
+ end
13369
+ end
13370
+
13371
+ # SecretEngineDeleteRequest specified the ID of a Secret Engine to be deleted.
13372
+ class SecretEngineDeleteRequest
13373
+ # The unique identifier of the Secret Engine to delete.
13374
+ attr_accessor :id
13375
+
13376
+ def initialize(
13377
+ id: nil
13378
+ )
13379
+ @id = id == nil ? "" : id
13380
+ end
13381
+
13382
+ def to_json(options = {})
13383
+ hash = {}
13384
+ self.instance_variables.each do |var|
13385
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
13386
+ end
13387
+ hash.to_json
13388
+ end
13389
+ end
13390
+
13391
+ # SecretEngineDeleteResponse contains information about a Secret Engine after it was deleted.
13392
+ class SecretEngineDeleteResponse
13393
+ # Rate limit information.
13394
+ attr_accessor :rate_limit
13395
+
13396
+ def initialize(
13397
+ rate_limit: nil
13398
+ )
13399
+ @rate_limit = rate_limit == nil ? nil : rate_limit
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
+ # SecretEngineGetRequest specifies which Secret Engine to retrieve
13412
+ class SecretEngineGetRequest
13413
+ # The unique identifier of the Secret Engine to retrieve.
13414
+ attr_accessor :id
13415
+
13416
+ def initialize(
13417
+ id: nil
13418
+ )
13419
+ @id = id == nil ? "" : id
13420
+ end
13421
+
13422
+ def to_json(options = {})
13423
+ hash = {}
13424
+ self.instance_variables.each do |var|
13425
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
13426
+ end
13427
+ hash.to_json
13428
+ end
13429
+ end
13430
+
13431
+ # SecretEngineGetResponse contains information about requested Secret Engine
13432
+ class SecretEngineGetResponse
13433
+ # Reserved for future use.
13434
+ attr_accessor :meta
13435
+ # Rate limit information.
13436
+ attr_accessor :rate_limit
13437
+ # The requested Secret Engine.
13438
+ attr_accessor :secret_engine
13439
+
13440
+ def initialize(
13441
+ meta: nil,
13442
+ rate_limit: nil,
13443
+ secret_engine: nil
13444
+ )
13445
+ @meta = meta == nil ? nil : meta
13446
+ @rate_limit = rate_limit == nil ? nil : rate_limit
13447
+ @secret_engine = secret_engine == nil ? nil : secret_engine
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
+ # SecretEngineListRequest specifies criteria for retrieving a list of Secret Engines
13460
+ class SecretEngineListRequest
13461
+ # A human-readable filter query string.
13462
+ attr_accessor :filter
13463
+
13464
+ def initialize(
13465
+ filter: nil
13466
+ )
13467
+ @filter = filter == nil ? "" : filter
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
+ # SecretEngineListResponse contains a list of requested Secret Engine
13480
+ class SecretEngineListResponse
13481
+ # Rate limit information.
13482
+ attr_accessor :rate_limit
13483
+
13484
+ def initialize(
13485
+ rate_limit: nil
13486
+ )
13487
+ @rate_limit = rate_limit == nil ? nil : rate_limit
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
+ class SecretEnginePasswordPolicy
13500
+ # If set to true allows for consecutive characters to repeat itself
13501
+ attr_accessor :allow_repeat
13502
+ # Characters to exclude when generating password
13503
+ attr_accessor :exclude_characters
13504
+ # If set to true do not include upper case letters when generating password
13505
+ attr_accessor :exclude_upper_case
13506
+ # Password length.
13507
+ attr_accessor :length
13508
+ # Numbers of digits to use when generating password
13509
+ attr_accessor :num_digits
13510
+ # Number of symbols to use when generating password
13511
+ attr_accessor :num_symbols
13512
+
13513
+ def initialize(
13514
+ allow_repeat: nil,
13515
+ exclude_characters: nil,
13516
+ exclude_upper_case: nil,
13517
+ length: nil,
13518
+ num_digits: nil,
13519
+ num_symbols: nil
13520
+ )
13521
+ @allow_repeat = allow_repeat == nil ? false : allow_repeat
13522
+ @exclude_characters = exclude_characters == nil ? "" : exclude_characters
13523
+ @exclude_upper_case = exclude_upper_case == nil ? false : exclude_upper_case
13524
+ @length = length == nil ? 0 : length
13525
+ @num_digits = num_digits == nil ? 0 : num_digits
13526
+ @num_symbols = num_symbols == nil ? 0 : num_symbols
13527
+ end
13528
+
13529
+ def to_json(options = {})
13530
+ hash = {}
13531
+ self.instance_variables.each do |var|
13532
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
13533
+ end
13534
+ hash.to_json
13535
+ end
13536
+ end
13537
+
13538
+ class SecretEnginePolicy
13539
+ # Policy for password
13540
+ attr_accessor :password_policy
13541
+
13542
+ def initialize(
13543
+ password_policy: nil
13544
+ )
13545
+ @password_policy = password_policy == nil ? nil : password_policy
13546
+ end
13547
+
13548
+ def to_json(options = {})
13549
+ hash = {}
13550
+ self.instance_variables.each do |var|
13551
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
13552
+ end
13553
+ hash.to_json
13554
+ end
13555
+ end
13556
+
13557
+ class SecretEngineRotateRequest
13558
+ # The unique identifier of the Secret Engine to rotate credentials for.
13559
+ attr_accessor :id
13560
+ # Optional password policy to use when generating a password
13561
+ # If not provided it will use secret engine's password_policy
13562
+ attr_accessor :password_policy
13563
+
13564
+ def initialize(
13565
+ id: nil,
13566
+ password_policy: nil
13567
+ )
13568
+ @id = id == nil ? "" : id
13569
+ @password_policy = password_policy == nil ? nil : password_policy
13570
+ end
13571
+
13572
+ def to_json(options = {})
13573
+ hash = {}
13574
+ self.instance_variables.each do |var|
13575
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
13576
+ end
13577
+ hash.to_json
13578
+ end
13579
+ end
13580
+
13581
+ class SecretEngineRotateResponse
13582
+ # Rate limit information.
13583
+ attr_accessor :rate_limit
13584
+
13585
+ def initialize(
13586
+ rate_limit: nil
13587
+ )
13588
+ @rate_limit = rate_limit == nil ? nil : rate_limit
13589
+ end
13590
+
13591
+ def to_json(options = {})
13592
+ hash = {}
13593
+ self.instance_variables.each do |var|
13594
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
13595
+ end
13596
+ hash.to_json
13597
+ end
13598
+ end
13599
+
13600
+ # SecretEngineUpdateRequest specifies secret engine to update
13601
+ class SecretEngineUpdateRequest
13602
+ # Secret engine to update
13603
+ attr_accessor :secret_engine
13604
+
13605
+ def initialize(
13606
+ secret_engine: nil
13607
+ )
13608
+ @secret_engine = secret_engine == nil ? nil : secret_engine
13609
+ end
13610
+
13611
+ def to_json(options = {})
13612
+ hash = {}
13613
+ self.instance_variables.each do |var|
13614
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
13615
+ end
13616
+ hash.to_json
13617
+ end
13618
+ end
13619
+
13620
+ # SecretEngineUpdateResponse contains information about Secret Engine after successful update.
13621
+ class SecretEngineUpdateResponse
13622
+ # Reserved for future use.
13623
+ attr_accessor :meta
13624
+ # Rate limit information.
13625
+ attr_accessor :rate_limit
13626
+ # The requested Secret Engine.
13627
+ attr_accessor :secret_engine
13628
+
13629
+ def initialize(
13630
+ meta: nil,
13631
+ rate_limit: nil,
13632
+ secret_engine: nil
13633
+ )
13634
+ @meta = meta == nil ? nil : meta
13635
+ @rate_limit = rate_limit == nil ? nil : rate_limit
13636
+ @secret_engine = secret_engine == nil ? nil : secret_engine
13637
+ end
13638
+
13639
+ def to_json(options = {})
13640
+ hash = {}
13641
+ self.instance_variables.each do |var|
13642
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
13643
+ end
13644
+ hash.to_json
13645
+ end
13646
+ end
13647
+
12472
13648
  # SecretStoreCreateResponse reports how the SecretStores were created in the system.
12473
13649
  class SecretStoreCreateResponse
12474
13650
  # Reserved for future use.