akeyless 5.0.21 → 5.0.22
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/README.md +13 -1
- data/docs/AccountGeneralSettings.md +2 -0
- data/docs/ActiveDirectoryPayload.md +6 -0
- data/docs/Auth.md +2 -0
- data/docs/AuthMethodCreateCert.md +2 -0
- data/docs/AuthMethodUpdateCert.md +2 -0
- data/docs/AzureADAccessRules.md +2 -0
- data/docs/AzureTargetDetails.md +2 -0
- data/docs/CertAccessRules.md +2 -0
- data/docs/CertificateChainInfo.md +2 -0
- data/docs/Configure.md +2 -0
- data/docs/ConjurMigration.md +20 -0
- data/docs/ConjurPayload.md +24 -0
- data/docs/CreateAuthMethodCert.md +2 -0
- data/docs/CreateAzureTarget.md +2 -0
- data/docs/CreateUSC.md +10 -0
- data/docs/DSProducerDetails.md +2 -0
- data/docs/DefaultAuthMethodSettings.md +20 -0
- data/docs/GatewayCreateMigration.md +15 -1
- data/docs/GatewayUpdateMigration.md +14 -0
- data/docs/GetPKICertificateOutput.md +2 -0
- data/docs/GithubMetadata.md +28 -0
- data/docs/HTTPChallengeInfo.md +26 -0
- data/docs/IssuerOverviewInfo.md +22 -0
- data/docs/ItemGeneralInfo.md +2 -0
- data/docs/MigrationStatusReplyObj.md +2 -0
- data/docs/MigrationsConfigPart.md +2 -0
- data/docs/SecretInfo.md +2 -0
- data/docs/TargetCreateAzure.md +2 -0
- data/docs/TargetUpdateAzure.md +2 -0
- data/docs/UpdateAuthMethodCert.md +2 -0
- data/docs/UpdateAzureTarget.md +2 -0
- data/docs/V2Api.md +126 -0
- data/docs/ValidateCertificateChallenge.md +30 -0
- data/docs/ValidateCertificateChallengeOutput.md +24 -0
- data/docs/VaultAddress.md +20 -0
- data/docs/VaultAddressOutput.md +20 -0
- data/lib/akeyless/api/v2_api.rb +128 -0
- data/lib/akeyless/models/account_general_settings.rb +10 -1
- data/lib/akeyless/models/active_directory_payload.rb +30 -1
- data/lib/akeyless/models/auth.rb +13 -1
- data/lib/akeyless/models/auth_method_create_cert.rb +11 -1
- data/lib/akeyless/models/auth_method_update_cert.rb +11 -1
- data/lib/akeyless/models/azure_ad_access_rules.rb +11 -1
- data/lib/akeyless/models/azure_target_details.rb +10 -1
- data/lib/akeyless/models/cert_access_rules.rb +11 -1
- data/lib/akeyless/models/certificate_chain_info.rb +11 -1
- data/lib/akeyless/models/configure.rb +13 -1
- data/lib/akeyless/models/conjur_migration.rb +223 -0
- data/lib/akeyless/models/conjur_payload.rb +241 -0
- data/lib/akeyless/models/create_auth_method_cert.rb +11 -1
- data/lib/akeyless/models/create_azure_target.rb +13 -1
- data/lib/akeyless/models/create_usc.rb +54 -1
- data/lib/akeyless/models/default_auth_method_settings.rb +223 -0
- data/lib/akeyless/models/ds_producer_details.rb +10 -1
- data/lib/akeyless/models/gateway_create_migration.rb +74 -2
- data/lib/akeyless/models/gateway_update_migration.rb +73 -1
- data/lib/akeyless/models/get_pki_certificate_output.rb +10 -1
- data/lib/akeyless/models/github_metadata.rb +259 -0
- data/lib/akeyless/models/http_challenge_info.rb +251 -0
- data/lib/akeyless/models/issuer_overview_info.rb +232 -0
- data/lib/akeyless/models/item_general_info.rb +10 -1
- data/lib/akeyless/models/migration_status_reply_obj.rb +10 -1
- data/lib/akeyless/models/migrations_config_part.rb +12 -1
- data/lib/akeyless/models/secret_info.rb +10 -1
- data/lib/akeyless/models/target_create_azure.rb +13 -1
- data/lib/akeyless/models/target_update_azure.rb +13 -1
- data/lib/akeyless/models/update_auth_method_cert.rb +11 -1
- data/lib/akeyless/models/update_azure_target.rb +13 -1
- data/lib/akeyless/models/validate_certificate_challenge.rb +279 -0
- data/lib/akeyless/models/validate_certificate_challenge_output.rb +242 -0
- data/lib/akeyless/models/vault_address.rb +227 -0
- data/lib/akeyless/models/vault_address_output.rb +223 -0
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +10 -0
- data/spec/models/conjur_migration_spec.rb +42 -0
- data/spec/models/conjur_payload_spec.rb +54 -0
- data/spec/models/default_auth_method_settings_spec.rb +42 -0
- data/spec/models/github_metadata_spec.rb +66 -0
- data/spec/models/http_challenge_info_spec.rb +60 -0
- data/spec/models/issuer_overview_info_spec.rb +48 -0
- data/spec/models/validate_certificate_challenge_output_spec.rb +54 -0
- data/spec/models/validate_certificate_challenge_spec.rb +72 -0
- data/spec/models/vault_address_output_spec.rb +42 -0
- data/spec/models/vault_address_spec.rb +42 -0
- metadata +41 -1
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Akeyless API
|
|
3
|
+
|
|
4
|
+
#The purpose of this application is to provide access to Akeyless API.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 3.0
|
|
7
|
+
Contact: support@akeyless.io
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Akeyless
|
|
17
|
+
class ConjurPayload
|
|
18
|
+
attr_accessor :conjur_account
|
|
19
|
+
|
|
20
|
+
attr_accessor :conjur_api_key
|
|
21
|
+
|
|
22
|
+
attr_accessor :conjur_url
|
|
23
|
+
|
|
24
|
+
attr_accessor :conjur_username
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
|
+
def self.attribute_map
|
|
28
|
+
{
|
|
29
|
+
:'conjur_account' => :'conjur_account',
|
|
30
|
+
:'conjur_api_key' => :'conjur_api_key',
|
|
31
|
+
:'conjur_url' => :'conjur_url',
|
|
32
|
+
:'conjur_username' => :'conjur_username'
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Returns all the JSON keys this model knows about
|
|
37
|
+
def self.acceptable_attributes
|
|
38
|
+
attribute_map.values
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Attribute type mapping.
|
|
42
|
+
def self.openapi_types
|
|
43
|
+
{
|
|
44
|
+
:'conjur_account' => :'String',
|
|
45
|
+
:'conjur_api_key' => :'String',
|
|
46
|
+
:'conjur_url' => :'String',
|
|
47
|
+
:'conjur_username' => :'String'
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# List of attributes with nullable: true
|
|
52
|
+
def self.openapi_nullable
|
|
53
|
+
Set.new([
|
|
54
|
+
])
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Initializes the object
|
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
59
|
+
def initialize(attributes = {})
|
|
60
|
+
if (!attributes.is_a?(Hash))
|
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::ConjurPayload` initialize method"
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::ConjurPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
68
|
+
end
|
|
69
|
+
h[k.to_sym] = v
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'conjur_account')
|
|
73
|
+
self.conjur_account = attributes[:'conjur_account']
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
if attributes.key?(:'conjur_api_key')
|
|
77
|
+
self.conjur_api_key = attributes[:'conjur_api_key']
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
if attributes.key?(:'conjur_url')
|
|
81
|
+
self.conjur_url = attributes[:'conjur_url']
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'conjur_username')
|
|
85
|
+
self.conjur_username = attributes[:'conjur_username']
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
90
|
+
# @return Array for valid properties with the reasons
|
|
91
|
+
def list_invalid_properties
|
|
92
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
93
|
+
invalid_properties = Array.new
|
|
94
|
+
invalid_properties
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Check to see if the all the properties in the model are valid
|
|
98
|
+
# @return true if the model is valid
|
|
99
|
+
def valid?
|
|
100
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
101
|
+
true
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Checks equality by comparing each attribute.
|
|
105
|
+
# @param [Object] Object to be compared
|
|
106
|
+
def ==(o)
|
|
107
|
+
return true if self.equal?(o)
|
|
108
|
+
self.class == o.class &&
|
|
109
|
+
conjur_account == o.conjur_account &&
|
|
110
|
+
conjur_api_key == o.conjur_api_key &&
|
|
111
|
+
conjur_url == o.conjur_url &&
|
|
112
|
+
conjur_username == o.conjur_username
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# @see the `==` method
|
|
116
|
+
# @param [Object] Object to be compared
|
|
117
|
+
def eql?(o)
|
|
118
|
+
self == o
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Calculates hash code according to all attributes.
|
|
122
|
+
# @return [Integer] Hash code
|
|
123
|
+
def hash
|
|
124
|
+
[conjur_account, conjur_api_key, conjur_url, conjur_username].hash
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Builds the object from hash
|
|
128
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
129
|
+
# @return [Object] Returns the model itself
|
|
130
|
+
def self.build_from_hash(attributes)
|
|
131
|
+
return nil unless attributes.is_a?(Hash)
|
|
132
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
133
|
+
transformed_hash = {}
|
|
134
|
+
openapi_types.each_pair do |key, type|
|
|
135
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
136
|
+
transformed_hash["#{key}"] = nil
|
|
137
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
138
|
+
# check to ensure the input is an array given that the attribute
|
|
139
|
+
# is documented as an array but the input is not
|
|
140
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
141
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
142
|
+
end
|
|
143
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
144
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
new(transformed_hash)
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Deserializes the data based on type
|
|
151
|
+
# @param string type Data type
|
|
152
|
+
# @param string value Value to be deserialized
|
|
153
|
+
# @return [Object] Deserialized data
|
|
154
|
+
def self._deserialize(type, value)
|
|
155
|
+
case type.to_sym
|
|
156
|
+
when :Time
|
|
157
|
+
Time.parse(value)
|
|
158
|
+
when :Date
|
|
159
|
+
Date.parse(value)
|
|
160
|
+
when :String
|
|
161
|
+
value.to_s
|
|
162
|
+
when :Integer
|
|
163
|
+
value.to_i
|
|
164
|
+
when :Float
|
|
165
|
+
value.to_f
|
|
166
|
+
when :Boolean
|
|
167
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
168
|
+
true
|
|
169
|
+
else
|
|
170
|
+
false
|
|
171
|
+
end
|
|
172
|
+
when :Object
|
|
173
|
+
# generic object (usually a Hash), return directly
|
|
174
|
+
value
|
|
175
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
176
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
177
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
178
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
179
|
+
k_type = Regexp.last_match[:k_type]
|
|
180
|
+
v_type = Regexp.last_match[:v_type]
|
|
181
|
+
{}.tap do |hash|
|
|
182
|
+
value.each do |k, v|
|
|
183
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
else # model
|
|
187
|
+
# models (e.g. Pet) or oneOf
|
|
188
|
+
klass = Akeyless.const_get(type)
|
|
189
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Returns the string representation of the object
|
|
194
|
+
# @return [String] String presentation of the object
|
|
195
|
+
def to_s
|
|
196
|
+
to_hash.to_s
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
200
|
+
# @return [Hash] Returns the object in the form of hash
|
|
201
|
+
def to_body
|
|
202
|
+
to_hash
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# Returns the object in the form of hash
|
|
206
|
+
# @return [Hash] Returns the object in the form of hash
|
|
207
|
+
def to_hash
|
|
208
|
+
hash = {}
|
|
209
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
210
|
+
value = self.send(attr)
|
|
211
|
+
if value.nil?
|
|
212
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
213
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
hash[param] = _to_hash(value)
|
|
217
|
+
end
|
|
218
|
+
hash
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# Outputs non-array value in the form of hash
|
|
222
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
223
|
+
# @param [Object] value Any valid value
|
|
224
|
+
# @return [Hash] Returns the value in the form of hash
|
|
225
|
+
def _to_hash(value)
|
|
226
|
+
if value.is_a?(Array)
|
|
227
|
+
value.compact.map { |v| _to_hash(v) }
|
|
228
|
+
elsif value.is_a?(Hash)
|
|
229
|
+
{}.tap do |hash|
|
|
230
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
231
|
+
end
|
|
232
|
+
elsif value.respond_to? :to_hash
|
|
233
|
+
value.to_hash
|
|
234
|
+
else
|
|
235
|
+
value
|
|
236
|
+
end
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
end
|
|
@@ -79,6 +79,9 @@ module Akeyless
|
|
|
79
79
|
# Choose the relevant product type for the auth method [sm, sra, pm, dp, ca]
|
|
80
80
|
attr_accessor :product_type
|
|
81
81
|
|
|
82
|
+
# Require certificate CRL distribution points (CDP) and enforce CRL validation during authentication.
|
|
83
|
+
attr_accessor :require_crl_dp
|
|
84
|
+
|
|
82
85
|
# A list of revoked cert ids
|
|
83
86
|
attr_accessor :revoked_cert_ids
|
|
84
87
|
|
|
@@ -115,6 +118,7 @@ module Akeyless
|
|
|
115
118
|
:'jwt_ttl' => :'jwt-ttl',
|
|
116
119
|
:'name' => :'name',
|
|
117
120
|
:'product_type' => :'product-type',
|
|
121
|
+
:'require_crl_dp' => :'require-crl-dp',
|
|
118
122
|
:'revoked_cert_ids' => :'revoked-cert-ids',
|
|
119
123
|
:'token' => :'token',
|
|
120
124
|
:'uid_token' => :'uid-token',
|
|
@@ -151,6 +155,7 @@ module Akeyless
|
|
|
151
155
|
:'jwt_ttl' => :'Integer',
|
|
152
156
|
:'name' => :'String',
|
|
153
157
|
:'product_type' => :'Array<String>',
|
|
158
|
+
:'require_crl_dp' => :'Boolean',
|
|
154
159
|
:'revoked_cert_ids' => :'Array<String>',
|
|
155
160
|
:'token' => :'String',
|
|
156
161
|
:'uid_token' => :'String',
|
|
@@ -295,6 +300,10 @@ module Akeyless
|
|
|
295
300
|
end
|
|
296
301
|
end
|
|
297
302
|
|
|
303
|
+
if attributes.key?(:'require_crl_dp')
|
|
304
|
+
self.require_crl_dp = attributes[:'require_crl_dp']
|
|
305
|
+
end
|
|
306
|
+
|
|
298
307
|
if attributes.key?(:'revoked_cert_ids')
|
|
299
308
|
if (value = attributes[:'revoked_cert_ids']).is_a?(Array)
|
|
300
309
|
self.revoked_cert_ids = value
|
|
@@ -367,6 +376,7 @@ module Akeyless
|
|
|
367
376
|
jwt_ttl == o.jwt_ttl &&
|
|
368
377
|
name == o.name &&
|
|
369
378
|
product_type == o.product_type &&
|
|
379
|
+
require_crl_dp == o.require_crl_dp &&
|
|
370
380
|
revoked_cert_ids == o.revoked_cert_ids &&
|
|
371
381
|
token == o.token &&
|
|
372
382
|
uid_token == o.uid_token &&
|
|
@@ -382,7 +392,7 @@ module Akeyless
|
|
|
382
392
|
# Calculates hash code according to all attributes.
|
|
383
393
|
# @return [Integer] Hash code
|
|
384
394
|
def hash
|
|
385
|
-
[access_expires, allowed_client_type, allowed_cors, audit_logs_claims, bound_common_names, bound_dns_sans, bound_email_sans, bound_extensions, bound_ips, bound_organizational_units, bound_uri_sans, certificate_data, delete_protection, description, expiration_event_in, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, product_type, revoked_cert_ids, token, uid_token, unique_identifier].hash
|
|
395
|
+
[access_expires, allowed_client_type, allowed_cors, audit_logs_claims, bound_common_names, bound_dns_sans, bound_email_sans, bound_extensions, bound_ips, bound_organizational_units, bound_uri_sans, certificate_data, delete_protection, description, expiration_event_in, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, product_type, require_crl_dp, revoked_cert_ids, token, uid_token, unique_identifier].hash
|
|
386
396
|
end
|
|
387
397
|
|
|
388
398
|
# Builds the object from hash
|
|
@@ -16,6 +16,9 @@ require 'time'
|
|
|
16
16
|
module Akeyless
|
|
17
17
|
# createAzureTarget is a command that creates a new target. [Deprecated: Use target-create-azure command]
|
|
18
18
|
class CreateAzureTarget
|
|
19
|
+
# Azure cloud environment to use. Values: AzureCloud (default), AzureUSGovernment, AzureChinaCloud.
|
|
20
|
+
attr_accessor :azure_cloud
|
|
21
|
+
|
|
19
22
|
# Azure client/application id
|
|
20
23
|
attr_accessor :client_id
|
|
21
24
|
|
|
@@ -67,6 +70,7 @@ module Akeyless
|
|
|
67
70
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
68
71
|
def self.attribute_map
|
|
69
72
|
{
|
|
73
|
+
:'azure_cloud' => :'azure-cloud',
|
|
70
74
|
:'client_id' => :'client-id',
|
|
71
75
|
:'client_secret' => :'client-secret',
|
|
72
76
|
:'comment' => :'comment',
|
|
@@ -94,6 +98,7 @@ module Akeyless
|
|
|
94
98
|
# Attribute type mapping.
|
|
95
99
|
def self.openapi_types
|
|
96
100
|
{
|
|
101
|
+
:'azure_cloud' => :'String',
|
|
97
102
|
:'client_id' => :'String',
|
|
98
103
|
:'client_secret' => :'String',
|
|
99
104
|
:'comment' => :'String',
|
|
@@ -134,6 +139,12 @@ module Akeyless
|
|
|
134
139
|
h[k.to_sym] = v
|
|
135
140
|
}
|
|
136
141
|
|
|
142
|
+
if attributes.key?(:'azure_cloud')
|
|
143
|
+
self.azure_cloud = attributes[:'azure_cloud']
|
|
144
|
+
else
|
|
145
|
+
self.azure_cloud = 'AzureCloud'
|
|
146
|
+
end
|
|
147
|
+
|
|
137
148
|
if attributes.key?(:'client_id')
|
|
138
149
|
self.client_id = attributes[:'client_id']
|
|
139
150
|
end
|
|
@@ -230,6 +241,7 @@ module Akeyless
|
|
|
230
241
|
def ==(o)
|
|
231
242
|
return true if self.equal?(o)
|
|
232
243
|
self.class == o.class &&
|
|
244
|
+
azure_cloud == o.azure_cloud &&
|
|
233
245
|
client_id == o.client_id &&
|
|
234
246
|
client_secret == o.client_secret &&
|
|
235
247
|
comment == o.comment &&
|
|
@@ -257,7 +269,7 @@ module Akeyless
|
|
|
257
269
|
# Calculates hash code according to all attributes.
|
|
258
270
|
# @return [Integer] Hash code
|
|
259
271
|
def hash
|
|
260
|
-
[client_id, client_secret, comment, connection_type, description, json, key, max_versions, name, resource_group_name, resource_name, subscription_id, tenant_id, token, uid_token, use_gw_cloud_identity].hash
|
|
272
|
+
[azure_cloud, client_id, client_secret, comment, connection_type, description, json, key, max_versions, name, resource_group_name, resource_name, subscription_id, tenant_id, token, uid_token, use_gw_cloud_identity].hash
|
|
261
273
|
end
|
|
262
274
|
|
|
263
275
|
# Builds the object from hash
|
|
@@ -25,12 +25,18 @@ module Akeyless
|
|
|
25
25
|
# Description of the Universal Secrets Connector
|
|
26
26
|
attr_accessor :description
|
|
27
27
|
|
|
28
|
+
# The environments in repo-name/environment-name format, comma-separated (only relevant for: github-scope=repository-environment)
|
|
29
|
+
attr_accessor :environment_names
|
|
30
|
+
|
|
28
31
|
# GCP Project ID (Relevant only for GCP targets)
|
|
29
32
|
attr_accessor :gcp_project_id
|
|
30
33
|
|
|
31
34
|
# GCP Secret Manager regions to query for regional secrets (comma-separated, e.g., us-east1,us-west1). Max 12 regions. Required when listing with object-type=regional-secrets.
|
|
32
35
|
attr_accessor :gcp_sm_regions
|
|
33
36
|
|
|
37
|
+
# The scope where secrets will be created, available options: [repository, organization, repository-environment]
|
|
38
|
+
attr_accessor :github_scope
|
|
39
|
+
|
|
34
40
|
# Additional custom fields to associate with the item
|
|
35
41
|
attr_accessor :item_custom_fields
|
|
36
42
|
|
|
@@ -43,6 +49,14 @@ module Akeyless
|
|
|
43
49
|
# Universal Secrets Connector name
|
|
44
50
|
attr_accessor :name
|
|
45
51
|
|
|
52
|
+
# The organization name to create the secret in (only relevant for: github-scope=organization)
|
|
53
|
+
attr_accessor :organization_name
|
|
54
|
+
|
|
55
|
+
attr_accessor :repository_access
|
|
56
|
+
|
|
57
|
+
# The repository names, comma-separated (only relevant for: github-scope=repository)
|
|
58
|
+
attr_accessor :repository_names
|
|
59
|
+
|
|
46
60
|
# List of the tags attached to this Universal Secrets Connector
|
|
47
61
|
attr_accessor :tags
|
|
48
62
|
|
|
@@ -67,12 +81,17 @@ module Akeyless
|
|
|
67
81
|
:'azure_kv_name' => :'azure-kv-name',
|
|
68
82
|
:'delete_protection' => :'delete_protection',
|
|
69
83
|
:'description' => :'description',
|
|
84
|
+
:'environment_names' => :'environment-names',
|
|
70
85
|
:'gcp_project_id' => :'gcp-project-id',
|
|
71
86
|
:'gcp_sm_regions' => :'gcp-sm-regions',
|
|
87
|
+
:'github_scope' => :'github-scope',
|
|
72
88
|
:'item_custom_fields' => :'item-custom-fields',
|
|
73
89
|
:'json' => :'json',
|
|
74
90
|
:'k8s_namespace' => :'k8s-namespace',
|
|
75
91
|
:'name' => :'name',
|
|
92
|
+
:'organization_name' => :'organization-name',
|
|
93
|
+
:'repository_access' => :'repository-access',
|
|
94
|
+
:'repository_names' => :'repository-names',
|
|
76
95
|
:'tags' => :'tags',
|
|
77
96
|
:'target_to_associate' => :'target-to-associate',
|
|
78
97
|
:'token' => :'token',
|
|
@@ -93,12 +112,17 @@ module Akeyless
|
|
|
93
112
|
:'azure_kv_name' => :'String',
|
|
94
113
|
:'delete_protection' => :'String',
|
|
95
114
|
:'description' => :'String',
|
|
115
|
+
:'environment_names' => :'String',
|
|
96
116
|
:'gcp_project_id' => :'String',
|
|
97
117
|
:'gcp_sm_regions' => :'String',
|
|
118
|
+
:'github_scope' => :'String',
|
|
98
119
|
:'item_custom_fields' => :'Hash<String, String>',
|
|
99
120
|
:'json' => :'Boolean',
|
|
100
121
|
:'k8s_namespace' => :'String',
|
|
101
122
|
:'name' => :'String',
|
|
123
|
+
:'organization_name' => :'String',
|
|
124
|
+
:'repository_access' => :'String',
|
|
125
|
+
:'repository_names' => :'String',
|
|
102
126
|
:'tags' => :'Array<String>',
|
|
103
127
|
:'target_to_associate' => :'String',
|
|
104
128
|
:'token' => :'String',
|
|
@@ -141,6 +165,10 @@ module Akeyless
|
|
|
141
165
|
self.description = attributes[:'description']
|
|
142
166
|
end
|
|
143
167
|
|
|
168
|
+
if attributes.key?(:'environment_names')
|
|
169
|
+
self.environment_names = attributes[:'environment_names']
|
|
170
|
+
end
|
|
171
|
+
|
|
144
172
|
if attributes.key?(:'gcp_project_id')
|
|
145
173
|
self.gcp_project_id = attributes[:'gcp_project_id']
|
|
146
174
|
end
|
|
@@ -149,6 +177,12 @@ module Akeyless
|
|
|
149
177
|
self.gcp_sm_regions = attributes[:'gcp_sm_regions']
|
|
150
178
|
end
|
|
151
179
|
|
|
180
|
+
if attributes.key?(:'github_scope')
|
|
181
|
+
self.github_scope = attributes[:'github_scope']
|
|
182
|
+
else
|
|
183
|
+
self.github_scope = 'repository'
|
|
184
|
+
end
|
|
185
|
+
|
|
152
186
|
if attributes.key?(:'item_custom_fields')
|
|
153
187
|
if (value = attributes[:'item_custom_fields']).is_a?(Hash)
|
|
154
188
|
self.item_custom_fields = value
|
|
@@ -171,6 +205,20 @@ module Akeyless
|
|
|
171
205
|
self.name = nil
|
|
172
206
|
end
|
|
173
207
|
|
|
208
|
+
if attributes.key?(:'organization_name')
|
|
209
|
+
self.organization_name = attributes[:'organization_name']
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
if attributes.key?(:'repository_access')
|
|
213
|
+
self.repository_access = attributes[:'repository_access']
|
|
214
|
+
else
|
|
215
|
+
self.repository_access = 'public'
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
if attributes.key?(:'repository_names')
|
|
219
|
+
self.repository_names = attributes[:'repository_names']
|
|
220
|
+
end
|
|
221
|
+
|
|
174
222
|
if attributes.key?(:'tags')
|
|
175
223
|
if (value = attributes[:'tags']).is_a?(Array)
|
|
176
224
|
self.tags = value
|
|
@@ -235,12 +283,17 @@ module Akeyless
|
|
|
235
283
|
azure_kv_name == o.azure_kv_name &&
|
|
236
284
|
delete_protection == o.delete_protection &&
|
|
237
285
|
description == o.description &&
|
|
286
|
+
environment_names == o.environment_names &&
|
|
238
287
|
gcp_project_id == o.gcp_project_id &&
|
|
239
288
|
gcp_sm_regions == o.gcp_sm_regions &&
|
|
289
|
+
github_scope == o.github_scope &&
|
|
240
290
|
item_custom_fields == o.item_custom_fields &&
|
|
241
291
|
json == o.json &&
|
|
242
292
|
k8s_namespace == o.k8s_namespace &&
|
|
243
293
|
name == o.name &&
|
|
294
|
+
organization_name == o.organization_name &&
|
|
295
|
+
repository_access == o.repository_access &&
|
|
296
|
+
repository_names == o.repository_names &&
|
|
244
297
|
tags == o.tags &&
|
|
245
298
|
target_to_associate == o.target_to_associate &&
|
|
246
299
|
token == o.token &&
|
|
@@ -258,7 +311,7 @@ module Akeyless
|
|
|
258
311
|
# Calculates hash code according to all attributes.
|
|
259
312
|
# @return [Integer] Hash code
|
|
260
313
|
def hash
|
|
261
|
-
[azure_kv_name, delete_protection, description, gcp_project_id, gcp_sm_regions, item_custom_fields, json, k8s_namespace, name, tags, target_to_associate, token, uid_token, usc_prefix, use_prefix_as_filter].hash
|
|
314
|
+
[azure_kv_name, delete_protection, description, environment_names, gcp_project_id, gcp_sm_regions, github_scope, item_custom_fields, json, k8s_namespace, name, organization_name, repository_access, repository_names, tags, target_to_associate, token, uid_token, usc_prefix, use_prefix_as_filter].hash
|
|
262
315
|
end
|
|
263
316
|
|
|
264
317
|
# Builds the object from hash
|