akeyless 5.0.7 → 5.0.8

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.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -1
  3. data/docs/Auth.md +4 -0
  4. data/docs/AuthOutput.md +2 -0
  5. data/docs/CreateRole.md +2 -0
  6. data/docs/GatewayCreateAllowedAccess.md +1 -1
  7. data/docs/GatewayUpdateAllowedAccess.md +1 -1
  8. data/docs/GeminiTargetDetails.md +2 -2
  9. data/docs/GetCertChallenge.md +22 -0
  10. data/docs/GetCertChallengeOutput.md +18 -0
  11. data/docs/OpenAITargetDetails.md +2 -2
  12. data/docs/PathRule.md +2 -0
  13. data/docs/ReverseRBACClient.md +2 -0
  14. data/docs/RoleAuthMethodAssociation.md +2 -0
  15. data/docs/SharingItemFullInfo.md +2 -0
  16. data/docs/TargetItemAssociation.md +2 -0
  17. data/docs/UpdateRole.md +2 -0
  18. data/docs/V2Api.md +63 -0
  19. data/lib/akeyless/api/v2_api.rb +64 -0
  20. data/lib/akeyless/models/auth.rb +21 -1
  21. data/lib/akeyless/models/auth_output.rb +10 -1
  22. data/lib/akeyless/models/create_role.rb +11 -1
  23. data/lib/akeyless/models/gateway_create_allowed_access.rb +1 -1
  24. data/lib/akeyless/models/gateway_update_allowed_access.rb +1 -1
  25. data/lib/akeyless/models/gemini_target_details.rb +7 -7
  26. data/lib/akeyless/models/get_cert_challenge.rb +238 -0
  27. data/lib/akeyless/models/get_cert_challenge_output.rb +214 -0
  28. data/lib/akeyless/models/open_ai_target_details.rb +10 -10
  29. data/lib/akeyless/models/path_rule.rb +11 -1
  30. data/lib/akeyless/models/reverse_rbac_client.rb +10 -1
  31. data/lib/akeyless/models/role_auth_method_association.rb +10 -1
  32. data/lib/akeyless/models/sharing_item_full_info.rb +11 -1
  33. data/lib/akeyless/models/target_item_association.rb +10 -1
  34. data/lib/akeyless/models/update_role.rb +11 -1
  35. data/lib/akeyless/version.rb +1 -1
  36. data/lib/akeyless.rb +2 -0
  37. data/spec/models/get_cert_challenge_output_spec.rb +36 -0
  38. data/spec/models/get_cert_challenge_spec.rb +48 -0
  39. metadata +9 -1
@@ -20,6 +20,8 @@ module Akeyless
20
20
 
21
21
  attr_accessor :auth_method_access_id
22
22
 
23
+ attr_accessor :auth_method_id
24
+
23
25
  attr_accessor :auth_method_name
24
26
 
25
27
  attr_accessor :auth_method_sub_claims
@@ -33,6 +35,7 @@ module Akeyless
33
35
  {
34
36
  :'assoc_id' => :'assoc_id',
35
37
  :'auth_method_access_id' => :'auth_method_access_id',
38
+ :'auth_method_id' => :'auth_method_id',
36
39
  :'auth_method_name' => :'auth_method_name',
37
40
  :'auth_method_sub_claims' => :'auth_method_sub_claims',
38
41
  :'is_subclaims_with_operator' => :'is_subclaims_with_operator',
@@ -50,6 +53,7 @@ module Akeyless
50
53
  {
51
54
  :'assoc_id' => :'String',
52
55
  :'auth_method_access_id' => :'String',
56
+ :'auth_method_id' => :'Integer',
53
57
  :'auth_method_name' => :'String',
54
58
  :'auth_method_sub_claims' => :'Hash<String, Array<String>>',
55
59
  :'is_subclaims_with_operator' => :'Boolean',
@@ -86,6 +90,10 @@ module Akeyless
86
90
  self.auth_method_access_id = attributes[:'auth_method_access_id']
87
91
  end
88
92
 
93
+ if attributes.key?(:'auth_method_id')
94
+ self.auth_method_id = attributes[:'auth_method_id']
95
+ end
96
+
89
97
  if attributes.key?(:'auth_method_name')
90
98
  self.auth_method_name = attributes[:'auth_method_name']
91
99
  end
@@ -127,6 +135,7 @@ module Akeyless
127
135
  self.class == o.class &&
128
136
  assoc_id == o.assoc_id &&
129
137
  auth_method_access_id == o.auth_method_access_id &&
138
+ auth_method_id == o.auth_method_id &&
130
139
  auth_method_name == o.auth_method_name &&
131
140
  auth_method_sub_claims == o.auth_method_sub_claims &&
132
141
  is_subclaims_with_operator == o.is_subclaims_with_operator &&
@@ -142,7 +151,7 @@ module Akeyless
142
151
  # Calculates hash code according to all attributes.
143
152
  # @return [Integer] Hash code
144
153
  def hash
145
- [assoc_id, auth_method_access_id, auth_method_name, auth_method_sub_claims, is_subclaims_with_operator, sub_claims_case_sensitive].hash
154
+ [assoc_id, auth_method_access_id, auth_method_id, auth_method_name, auth_method_sub_claims, is_subclaims_with_operator, sub_claims_case_sensitive].hash
146
155
  end
147
156
 
148
157
  # Builds the object from hash
@@ -25,6 +25,9 @@ module Akeyless
25
25
  # flag that indicate that this rule is allowed to be access RemainingAccess of times.
26
26
  attr_accessor :is_limit_access
27
27
 
28
+ # The item id this rule directly refers to (when applicable)
29
+ attr_accessor :item_id
30
+
28
31
  attr_accessor :name
29
32
 
30
33
  attr_accessor :number_of_access_used
@@ -47,6 +50,7 @@ module Akeyless
47
50
  :'capabilities' => :'capabilities',
48
51
  :'cb' => :'cb',
49
52
  :'is_limit_access' => :'is_limit_access',
53
+ :'item_id' => :'item_id',
50
54
  :'name' => :'name',
51
55
  :'number_of_access_used' => :'number_of_access_used',
52
56
  :'number_of_allowed_access' => :'number_of_allowed_access',
@@ -69,6 +73,7 @@ module Akeyless
69
73
  :'capabilities' => :'Array<String>',
70
74
  :'cb' => :'Integer',
71
75
  :'is_limit_access' => :'Boolean',
76
+ :'item_id' => :'Integer',
72
77
  :'name' => :'String',
73
78
  :'number_of_access_used' => :'Integer',
74
79
  :'number_of_allowed_access' => :'Integer',
@@ -120,6 +125,10 @@ module Akeyless
120
125
  self.is_limit_access = attributes[:'is_limit_access']
121
126
  end
122
127
 
128
+ if attributes.key?(:'item_id')
129
+ self.item_id = attributes[:'item_id']
130
+ end
131
+
123
132
  if attributes.key?(:'name')
124
133
  self.name = attributes[:'name']
125
134
  end
@@ -173,6 +182,7 @@ module Akeyless
173
182
  capabilities == o.capabilities &&
174
183
  cb == o.cb &&
175
184
  is_limit_access == o.is_limit_access &&
185
+ item_id == o.item_id &&
176
186
  name == o.name &&
177
187
  number_of_access_used == o.number_of_access_used &&
178
188
  number_of_allowed_access == o.number_of_allowed_access &&
@@ -191,7 +201,7 @@ module Akeyless
191
201
  # Calculates hash code according to all attributes.
192
202
  # @return [Integer] Hash code
193
203
  def hash
194
- [assigners, capabilities, cb, is_limit_access, name, number_of_access_used, number_of_allowed_access, path, start_time, ttl, type].hash
204
+ [assigners, capabilities, cb, is_limit_access, item_id, name, number_of_access_used, number_of_allowed_access, path, start_time, ttl, type].hash
195
205
  end
196
206
 
197
207
  # Builds the object from hash
@@ -22,6 +22,8 @@ module Akeyless
22
22
 
23
23
  attr_accessor :cluster_id
24
24
 
25
+ attr_accessor :item_id
26
+
25
27
  attr_accessor :item_name
26
28
 
27
29
  attr_accessor :item_type
@@ -34,6 +36,7 @@ module Akeyless
34
36
  :'assoc_id' => :'assoc_id',
35
37
  :'attributes' => :'attributes',
36
38
  :'cluster_id' => :'cluster_id',
39
+ :'item_id' => :'item_id',
37
40
  :'item_name' => :'item_name',
38
41
  :'item_type' => :'item_type',
39
42
  :'relationship' => :'relationship'
@@ -51,6 +54,7 @@ module Akeyless
51
54
  :'assoc_id' => :'String',
52
55
  :'attributes' => :'Hash<String, String>',
53
56
  :'cluster_id' => :'Integer',
57
+ :'item_id' => :'Integer',
54
58
  :'item_name' => :'String',
55
59
  :'item_type' => :'String',
56
60
  :'relationship' => :'String'
@@ -92,6 +96,10 @@ module Akeyless
92
96
  self.cluster_id = attributes[:'cluster_id']
93
97
  end
94
98
 
99
+ if attributes.key?(:'item_id')
100
+ self.item_id = attributes[:'item_id']
101
+ end
102
+
95
103
  if attributes.key?(:'item_name')
96
104
  self.item_name = attributes[:'item_name']
97
105
  end
@@ -128,6 +136,7 @@ module Akeyless
128
136
  assoc_id == o.assoc_id &&
129
137
  attributes == o.attributes &&
130
138
  cluster_id == o.cluster_id &&
139
+ item_id == o.item_id &&
131
140
  item_name == o.item_name &&
132
141
  item_type == o.item_type &&
133
142
  relationship == o.relationship
@@ -142,7 +151,7 @@ module Akeyless
142
151
  # Calculates hash code according to all attributes.
143
152
  # @return [Integer] Hash code
144
153
  def hash
145
- [assoc_id, attributes, cluster_id, item_name, item_type, relationship].hash
154
+ [assoc_id, attributes, cluster_id, item_id, item_name, item_type, relationship].hash
146
155
  end
147
156
 
148
157
  # Builds the object from hash
@@ -48,6 +48,9 @@ module Akeyless
48
48
  # New Role name
49
49
  attr_accessor :new_name
50
50
 
51
+ # Allow this role to view Reverse RBAC. Supported values: 'own', 'all'.
52
+ attr_accessor :reverse_rbac_access
53
+
51
54
  # Allow this role to view SRA Clusters. Currently only 'none', 'own', 'all' values are supported.
52
55
  attr_accessor :sra_reports_access
53
56
 
@@ -74,6 +77,7 @@ module Akeyless
74
77
  :'name' => :'name',
75
78
  :'new_comment' => :'new-comment',
76
79
  :'new_name' => :'new-name',
80
+ :'reverse_rbac_access' => :'reverse-rbac-access',
77
81
  :'sra_reports_access' => :'sra-reports-access',
78
82
  :'token' => :'token',
79
83
  :'uid_token' => :'uid-token',
@@ -100,6 +104,7 @@ module Akeyless
100
104
  :'name' => :'String',
101
105
  :'new_comment' => :'String',
102
106
  :'new_name' => :'String',
107
+ :'reverse_rbac_access' => :'String',
103
108
  :'sra_reports_access' => :'String',
104
109
  :'token' => :'String',
105
110
  :'uid_token' => :'String',
@@ -180,6 +185,10 @@ module Akeyless
180
185
  self.new_name = attributes[:'new_name']
181
186
  end
182
187
 
188
+ if attributes.key?(:'reverse_rbac_access')
189
+ self.reverse_rbac_access = attributes[:'reverse_rbac_access']
190
+ end
191
+
183
192
  if attributes.key?(:'sra_reports_access')
184
193
  self.sra_reports_access = attributes[:'sra_reports_access']
185
194
  end
@@ -233,6 +242,7 @@ module Akeyless
233
242
  name == o.name &&
234
243
  new_comment == o.new_comment &&
235
244
  new_name == o.new_name &&
245
+ reverse_rbac_access == o.reverse_rbac_access &&
236
246
  sra_reports_access == o.sra_reports_access &&
237
247
  token == o.token &&
238
248
  uid_token == o.uid_token &&
@@ -248,7 +258,7 @@ module Akeyless
248
258
  # Calculates hash code according to all attributes.
249
259
  # @return [Integer] Hash code
250
260
  def hash
251
- [analytics_access, audit_access, delete_protection, description, event_center_access, event_forwarder_access, gw_analytics_access, json, name, new_comment, new_name, sra_reports_access, token, uid_token, usage_reports_access].hash
261
+ [analytics_access, audit_access, delete_protection, description, event_center_access, event_forwarder_access, gw_analytics_access, json, name, new_comment, new_name, reverse_rbac_access, sra_reports_access, token, uid_token, usage_reports_access].hash
252
262
  end
253
263
 
254
264
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module Akeyless
14
- VERSION = '5.0.7'
14
+ VERSION = '5.0.8'
15
15
  end
data/lib/akeyless.rb CHANGED
@@ -608,6 +608,8 @@ require 'akeyless/models/get_account_settings'
608
608
  require 'akeyless/models/get_account_settings_command_output'
609
609
  require 'akeyless/models/get_analytics_data'
610
610
  require 'akeyless/models/get_auth_method'
611
+ require 'akeyless/models/get_cert_challenge'
612
+ require 'akeyless/models/get_cert_challenge_output'
611
613
  require 'akeyless/models/get_certificate_value'
612
614
  require 'akeyless/models/get_certificate_value_output'
613
615
  require 'akeyless/models/get_dynamic_secret_value'
@@ -0,0 +1,36 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Akeyless::GetCertChallengeOutput
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Akeyless::GetCertChallengeOutput do
21
+ let(:instance) { Akeyless::GetCertChallengeOutput.new }
22
+
23
+ describe 'test an instance of GetCertChallengeOutput' do
24
+ it 'should create an instance of GetCertChallengeOutput' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Akeyless::GetCertChallengeOutput)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "challenge"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ end
@@ -0,0 +1,48 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Akeyless::GetCertChallenge
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Akeyless::GetCertChallenge do
21
+ let(:instance) { Akeyless::GetCertChallenge.new }
22
+
23
+ describe 'test an instance of GetCertChallenge' do
24
+ it 'should create an instance of GetCertChallenge' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Akeyless::GetCertChallenge)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "access_id"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "cert_data"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "json"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: akeyless
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.7
4
+ version: 5.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -668,6 +668,8 @@ files:
668
668
  - docs/GetAccountSettingsCommandOutput.md
669
669
  - docs/GetAnalyticsData.md
670
670
  - docs/GetAuthMethod.md
671
+ - docs/GetCertChallenge.md
672
+ - docs/GetCertChallengeOutput.md
671
673
  - docs/GetCertificateValue.md
672
674
  - docs/GetCertificateValueOutput.md
673
675
  - docs/GetCloudIdentity.md
@@ -1803,6 +1805,8 @@ files:
1803
1805
  - lib/akeyless/models/get_account_settings_command_output.rb
1804
1806
  - lib/akeyless/models/get_analytics_data.rb
1805
1807
  - lib/akeyless/models/get_auth_method.rb
1808
+ - lib/akeyless/models/get_cert_challenge.rb
1809
+ - lib/akeyless/models/get_cert_challenge_output.rb
1806
1810
  - lib/akeyless/models/get_certificate_value.rb
1807
1811
  - lib/akeyless/models/get_certificate_value_output.rb
1808
1812
  - lib/akeyless/models/get_cloud_identity.rb
@@ -3425,6 +3429,8 @@ files:
3425
3429
  - spec/models/get_account_settings_spec.rb
3426
3430
  - spec/models/get_analytics_data_spec.rb
3427
3431
  - spec/models/get_auth_method_spec.rb
3432
+ - spec/models/get_cert_challenge_output_spec.rb
3433
+ - spec/models/get_cert_challenge_spec.rb
3428
3434
  - spec/models/get_certificate_value_output_spec.rb
3429
3435
  - spec/models/get_certificate_value_spec.rb
3430
3436
  - spec/models/get_cloud_identity_output_spec.rb
@@ -4580,6 +4586,8 @@ test_files:
4580
4586
  - spec/models/get_account_settings_spec.rb
4581
4587
  - spec/models/get_analytics_data_spec.rb
4582
4588
  - spec/models/get_auth_method_spec.rb
4589
+ - spec/models/get_cert_challenge_output_spec.rb
4590
+ - spec/models/get_cert_challenge_spec.rb
4583
4591
  - spec/models/get_certificate_value_output_spec.rb
4584
4592
  - spec/models/get_certificate_value_spec.rb
4585
4593
  - spec/models/get_cloud_identity_output_spec.rb