bella_baxter 0.1.1.pre.preview.128 → 0.1.1.pre.preview.129

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d5443fba38665550ea23782a8cd7b15ee75130d20c24e7931903a57a2b7e4ff7
4
- data.tar.gz: 9de9f7112d31d977bfd90c40d1c3863e50ed6a1530cb549ede42fc40dc251b78
3
+ metadata.gz: c35a18c6f4baae86d273f97d9053ff481ad2bc529142c468afcf16b450b16e5e
4
+ data.tar.gz: f94363345188e9b6f51c266eb29c92fedf641a8d1173940d7d629a6d5943c0c2
5
5
  SHA512:
6
- metadata.gz: 1f88505bc6e09aae543500b3bc9cdc4bc05948e733c7a80d19f7df90d45afd5d778ac2dc5222bdfd9d05501620e44bd2192ac897de42212bec70bbb4fda947cf
7
- data.tar.gz: 58d87f1060135b8b41df8d43fab5d6a152d63f75b0849628755f12c237211bae0fcaf2b42157cd25a1557e0841c4e1759dcec2884f0dce853767d527e1f45e9e
6
+ metadata.gz: 3972a4fb1b03f9fc30b2aa7cfd3ba51e5efc6b9806ab234390ada2b4ece98fc036fb428ecc6acc6b42fcf68c40430878ac8c0b307cc78dc6c7b3246316ac7cdf
7
+ data.tar.gz: 459549cd7ca87e850581990a2a242e5f4659109551afd4af5de8cae46c817400a467ce13ef42feca13f97ff021c138cbdf8c47a1b07d929fba4f26d54d6869f5
@@ -0,0 +1,46 @@
1
+ require 'microsoft_kiota_abstractions'
2
+ require_relative '../../../../../../../bella_baxter_generated'
3
+ require_relative '../../../../../../api'
4
+ require_relative '../../../../../v1'
5
+ require_relative '../../../../projects'
6
+ require_relative '../../../item'
7
+ require_relative '../../environments'
8
+ require_relative '../item'
9
+ require_relative './authority'
10
+ require_relative './reestablish/reestablish_request_builder'
11
+
12
+ module BellaBaxterGenerated
13
+ module Api
14
+ module V1
15
+ module Projects
16
+ module Item
17
+ module Environments
18
+ module Item
19
+ module Authority
20
+ ##
21
+ # Builds and executes requests for operations under \api\v1\projects\{-id}\environments\{envSlug}\authority
22
+ class AuthorityRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
23
+
24
+ ##
25
+ # The reestablish property
26
+ def reestablish()
27
+ return BellaBaxterGenerated::Api::V1::Projects::Item::Environments::Item::Authority::Reestablish::ReestablishRequestBuilder.new(@path_parameters, @request_adapter)
28
+ end
29
+ ##
30
+ ## Instantiates a new AuthorityRequestBuilder and sets the default values.
31
+ ## @param path_parameters Path parameters for the request
32
+ ## @param request_adapter The request adapter to use to execute the requests.
33
+ ## @return a void
34
+ ##
35
+ def initialize(path_parameters, request_adapter)
36
+ super(path_parameters, request_adapter, "{+baseurl}/api/v1/projects/{%2Did}/environments/{envSlug}/authority")
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,92 @@
1
+ require 'microsoft_kiota_abstractions'
2
+ require_relative '../../../../../../../../bella_baxter_generated'
3
+ require_relative '../../../../../../../../models/problem_details'
4
+ require_relative '../../../../../../../../models/reestablish_environment_authority_command'
5
+ require_relative '../../../../../../../../models/reestablish_environment_authority_response'
6
+ require_relative '../../../../../../../api'
7
+ require_relative '../../../../../../v1'
8
+ require_relative '../../../../../projects'
9
+ require_relative '../../../../item'
10
+ require_relative '../../../environments'
11
+ require_relative '../../item'
12
+ require_relative '../authority'
13
+ require_relative './reestablish'
14
+
15
+ module BellaBaxterGenerated
16
+ module Api
17
+ module V1
18
+ module Projects
19
+ module Item
20
+ module Environments
21
+ module Item
22
+ module Authority
23
+ module Reestablish
24
+ ##
25
+ # Builds and executes requests for operations under \api\v1\projects\{-id}\environments\{envSlug}\authority\reestablish
26
+ class ReestablishRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
27
+
28
+ ##
29
+ ## Instantiates a new ReestablishRequestBuilder and sets the default values.
30
+ ## @param path_parameters Path parameters for the request
31
+ ## @param request_adapter The request adapter to use to execute the requests.
32
+ ## @return a void
33
+ ##
34
+ def initialize(path_parameters, request_adapter)
35
+ super(path_parameters, request_adapter, "{+baseurl}/api/v1/projects/{%2Did}/environments/{envSlug}/authority/reestablish")
36
+ end
37
+ ##
38
+ ## POST_api_v1_projects_projectRef_environments_envSlug_authority_reestablish
39
+ ## @param body The request body
40
+ ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
41
+ ## @return a Fiber of reestablish_environment_authority_response
42
+ ##
43
+ def post(body, request_configuration=nil)
44
+ raise StandardError, 'body cannot be null' if body.nil?
45
+ request_info = self.to_post_request_information(
46
+ body, request_configuration
47
+ )
48
+ error_mapping = Hash.new
49
+ error_mapping["400"] = lambda {|pn| BellaBaxterGenerated::Models::ProblemDetails.create_from_discriminator_value(pn) }
50
+ error_mapping["404"] = lambda {|pn| BellaBaxterGenerated::Models::ProblemDetails.create_from_discriminator_value(pn) }
51
+ error_mapping["409"] = lambda {|pn| BellaBaxterGenerated::Models::ProblemDetails.create_from_discriminator_value(pn) }
52
+ return @request_adapter.send_async(request_info, lambda {|pn| BellaBaxterGenerated::Models::ReestablishEnvironmentAuthorityResponse.create_from_discriminator_value(pn) }, error_mapping)
53
+ end
54
+ ##
55
+ ## POST_api_v1_projects_projectRef_environments_envSlug_authority_reestablish
56
+ ## @param body The request body
57
+ ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
58
+ ## @return a request_information
59
+ ##
60
+ def to_post_request_information(body, request_configuration=nil)
61
+ raise StandardError, 'body cannot be null' if body.nil?
62
+ request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
63
+ unless request_configuration.nil?
64
+ request_info.add_headers_from_raw_object(request_configuration.headers)
65
+ request_info.add_request_options(request_configuration.options)
66
+ end
67
+ request_info.set_content_from_parsable(@request_adapter, 'application/json', body)
68
+ request_info.url_template = @url_template
69
+ request_info.path_parameters = @path_parameters
70
+ request_info.http_method = :POST
71
+ request_info.headers.try_add('Accept', 'application/json')
72
+ return request_info
73
+ end
74
+ ##
75
+ ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
76
+ ## @param raw_url The raw URL to use for the request builder.
77
+ ## @return a reestablish_request_builder
78
+ ##
79
+ def with_url(raw_url)
80
+ raise StandardError, 'raw_url cannot be null' if raw_url.nil?
81
+ return ReestablishRequestBuilder.new(raw_url, @request_adapter)
82
+ end
83
+ end
84
+ end
85
+ end
86
+ end
87
+ end
88
+ end
89
+ end
90
+ end
91
+ end
92
+ end
@@ -45,6 +45,7 @@ module BellaBaxterGenerated
45
45
  error_mapping = Hash.new
46
46
  error_mapping["400"] = lambda {|pn| BellaBaxterGenerated::Models::ProblemDetails.create_from_discriminator_value(pn) }
47
47
  error_mapping["404"] = lambda {|pn| BellaBaxterGenerated::Models::ProblemDetails.create_from_discriminator_value(pn) }
48
+ error_mapping["409"] = lambda {|pn| BellaBaxterGenerated::Models::ProblemDetails.create_from_discriminator_value(pn) }
48
49
  return @request_adapter.send_async(request_info, lambda {|pn| BellaBaxterGenerated::Models::SshConfigureResponse.create_from_discriminator_value(pn) }, error_mapping)
49
50
  end
50
51
  ##
@@ -60,6 +60,7 @@ module BellaBaxterGenerated
60
60
  body, request_configuration
61
61
  )
62
62
  error_mapping = Hash.new
63
+ error_mapping["400"] = lambda {|pn| BellaBaxterGenerated::Models::ProblemDetails.create_from_discriminator_value(pn) }
63
64
  error_mapping["404"] = lambda {|pn| BellaBaxterGenerated::Models::ProblemDetails.create_from_discriminator_value(pn) }
64
65
  return @request_adapter.send_async(request_info, lambda {|pn| BellaBaxterGenerated::Models::OperationResponse.create_from_discriminator_value(pn) }, error_mapping)
65
66
  end
@@ -70,6 +70,7 @@ module BellaBaxterGenerated
70
70
  body, request_configuration
71
71
  )
72
72
  error_mapping = Hash.new
73
+ error_mapping["400"] = lambda {|pn| BellaBaxterGenerated::Models::ProblemDetails.create_from_discriminator_value(pn) }
73
74
  error_mapping["404"] = lambda {|pn| BellaBaxterGenerated::Models::ProblemDetails.create_from_discriminator_value(pn) }
74
75
  return @request_adapter.send_async(request_info, lambda {|pn| BellaBaxterGenerated::Models::OperationResponse.create_from_discriminator_value(pn) }, error_mapping)
75
76
  end
@@ -11,6 +11,7 @@ require_relative '../../../projects'
11
11
  require_relative '../../item'
12
12
  require_relative '../environments'
13
13
  require_relative './audience_readiness/audience_readiness_request_builder'
14
+ require_relative './authority/authority_request_builder'
14
15
  require_relative './cert_rotation/cert_rotation_request_builder'
15
16
  require_relative './copy/copy_request_builder'
16
17
  require_relative './groups/groups_request_builder'
@@ -45,6 +46,11 @@ module BellaBaxterGenerated
45
46
  return BellaBaxterGenerated::Api::V1::Projects::Item::Environments::Item::AudienceReadiness::AudienceReadinessRequestBuilder.new(@path_parameters, @request_adapter)
46
47
  end
47
48
  ##
49
+ # The authority property
50
+ def authority()
51
+ return BellaBaxterGenerated::Api::V1::Projects::Item::Environments::Item::Authority::AuthorityRequestBuilder.new(@path_parameters, @request_adapter)
52
+ end
53
+ ##
48
54
  # The certRotation property
49
55
  def cert_rotation()
50
56
  return BellaBaxterGenerated::Api::V1::Projects::Item::Environments::Item::CertRotation::CertRotationRequestBuilder.new(@path_parameters, @request_adapter)
@@ -11,6 +11,24 @@ module BellaBaxterGenerated
11
11
  # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
12
12
  @additional_data
13
13
  ##
14
+ # The authorityDestroyAfter property
15
+ @authority_destroy_after
16
+ ##
17
+ # The authorityDestroyedAt property
18
+ @authority_destroyed_at
19
+ ##
20
+ # The authorityRetentionReason property
21
+ @authority_retention_reason
22
+ ##
23
+ # The authorityRetentionState property
24
+ @authority_retention_state
25
+ ##
26
+ # The authorityStoreReason property
27
+ @authority_store_reason
28
+ ##
29
+ # The authorityStoreState property
30
+ @authority_store_state
31
+ ##
14
32
  # The createdAt property
15
33
  @created_at
16
34
  ##
@@ -77,11 +95,103 @@ module BellaBaxterGenerated
77
95
  @additional_data = value
78
96
  end
79
97
  ##
98
+ ## Gets the authorityDestroyAfter property value. The authorityDestroyAfter property
99
+ ## @return a date_time
100
+ ##
101
+ def authority_destroy_after
102
+ return @authority_destroy_after
103
+ end
104
+ ##
105
+ ## Sets the authorityDestroyAfter property value. The authorityDestroyAfter property
106
+ ## @param value Value to set for the authorityDestroyAfter property.
107
+ ## @return a void
108
+ ##
109
+ def authority_destroy_after=(value)
110
+ @authority_destroy_after = value
111
+ end
112
+ ##
113
+ ## Gets the authorityDestroyedAt property value. The authorityDestroyedAt property
114
+ ## @return a date_time
115
+ ##
116
+ def authority_destroyed_at
117
+ return @authority_destroyed_at
118
+ end
119
+ ##
120
+ ## Sets the authorityDestroyedAt property value. The authorityDestroyedAt property
121
+ ## @param value Value to set for the authorityDestroyedAt property.
122
+ ## @return a void
123
+ ##
124
+ def authority_destroyed_at=(value)
125
+ @authority_destroyed_at = value
126
+ end
127
+ ##
128
+ ## Gets the authorityRetentionReason property value. The authorityRetentionReason property
129
+ ## @return a string
130
+ ##
131
+ def authority_retention_reason
132
+ return @authority_retention_reason
133
+ end
134
+ ##
135
+ ## Sets the authorityRetentionReason property value. The authorityRetentionReason property
136
+ ## @param value Value to set for the authorityRetentionReason property.
137
+ ## @return a void
138
+ ##
139
+ def authority_retention_reason=(value)
140
+ @authority_retention_reason = value
141
+ end
142
+ ##
143
+ ## Gets the authorityRetentionState property value. The authorityRetentionState property
144
+ ## @return a string
145
+ ##
146
+ def authority_retention_state
147
+ return @authority_retention_state
148
+ end
149
+ ##
150
+ ## Sets the authorityRetentionState property value. The authorityRetentionState property
151
+ ## @param value Value to set for the authorityRetentionState property.
152
+ ## @return a void
153
+ ##
154
+ def authority_retention_state=(value)
155
+ @authority_retention_state = value
156
+ end
157
+ ##
158
+ ## Gets the authorityStoreReason property value. The authorityStoreReason property
159
+ ## @return a string
160
+ ##
161
+ def authority_store_reason
162
+ return @authority_store_reason
163
+ end
164
+ ##
165
+ ## Sets the authorityStoreReason property value. The authorityStoreReason property
166
+ ## @param value Value to set for the authorityStoreReason property.
167
+ ## @return a void
168
+ ##
169
+ def authority_store_reason=(value)
170
+ @authority_store_reason = value
171
+ end
172
+ ##
173
+ ## Gets the authorityStoreState property value. The authorityStoreState property
174
+ ## @return a string
175
+ ##
176
+ def authority_store_state
177
+ return @authority_store_state
178
+ end
179
+ ##
180
+ ## Sets the authorityStoreState property value. The authorityStoreState property
181
+ ## @param value Value to set for the authorityStoreState property.
182
+ ## @return a void
183
+ ##
184
+ def authority_store_state=(value)
185
+ @authority_store_state = value
186
+ end
187
+ ##
80
188
  ## Instantiates a new EnvironmentResponse and sets the default values.
81
189
  ## @return a void
82
190
  ##
83
191
  def initialize()
84
192
  @additional_data = Hash.new
193
+ @authority_retention_state = "not-deleted"
194
+ @authority_store_state = "in-sync"
85
195
  @status = "Active"
86
196
  end
87
197
  ##
@@ -174,6 +284,12 @@ module BellaBaxterGenerated
174
284
  ##
175
285
  def get_field_deserializers()
176
286
  return {
287
+ "authorityDestroyAfter" => lambda {|n| @authority_destroy_after = n.get_date_time_value() },
288
+ "authorityDestroyedAt" => lambda {|n| @authority_destroyed_at = n.get_date_time_value() },
289
+ "authorityRetentionReason" => lambda {|n| @authority_retention_reason = n.get_string_value() },
290
+ "authorityRetentionState" => lambda {|n| @authority_retention_state = n.get_string_value() },
291
+ "authorityStoreReason" => lambda {|n| @authority_store_reason = n.get_string_value() },
292
+ "authorityStoreState" => lambda {|n| @authority_store_state = n.get_string_value() },
177
293
  "createdAt" => lambda {|n| @created_at = n.get_date_time_value() },
178
294
  "creatorId" => lambda {|n| @creator_id = n.get_string_value() },
179
295
  "creatorUsername" => lambda {|n| @creator_username = n.get_string_value() },
@@ -320,6 +436,12 @@ module BellaBaxterGenerated
320
436
  ##
321
437
  def serialize(writer)
322
438
  raise StandardError, 'writer cannot be null' if writer.nil?
439
+ writer.write_date_time_value("authorityDestroyAfter", @authority_destroy_after)
440
+ writer.write_date_time_value("authorityDestroyedAt", @authority_destroyed_at)
441
+ writer.write_string_value("authorityRetentionReason", @authority_retention_reason)
442
+ writer.write_string_value("authorityRetentionState", @authority_retention_state)
443
+ writer.write_string_value("authorityStoreReason", @authority_store_reason)
444
+ writer.write_string_value("authorityStoreState", @authority_store_state)
323
445
  writer.write_date_time_value("createdAt", @created_at)
324
446
  writer.write_string_value("creatorId", @creator_id)
325
447
  writer.write_string_value("creatorUsername", @creator_username)
@@ -237,6 +237,8 @@ require_relative 'provision_project_dek_response'
237
237
  require_relative 'recover_encryption_key_request'
238
238
  require_relative 'recover_encryption_key_response'
239
239
  require_relative 'recovery_challenge_response'
240
+ require_relative 'reestablish_environment_authority_command'
241
+ require_relative 'reestablish_environment_authority_response'
240
242
  require_relative 'region_info'
241
243
  require_relative 'register_tenant_encryption_key_request'
242
244
  require_relative 'register_tenant_encryption_key_response'
@@ -14,6 +14,24 @@ module BellaBaxterGenerated
14
14
  # The adopted property
15
15
  @adopted
16
16
  ##
17
+ # The authorityDestroyAfter property
18
+ @authority_destroy_after
19
+ ##
20
+ # The authorityDestroyedAt property
21
+ @authority_destroyed_at
22
+ ##
23
+ # The authorityRetentionReason property
24
+ @authority_retention_reason
25
+ ##
26
+ # The authorityRetentionState property
27
+ @authority_retention_state
28
+ ##
29
+ # The authorityStoreReason property
30
+ @authority_store_reason
31
+ ##
32
+ # The authorityStoreState property
33
+ @authority_store_state
34
+ ##
17
35
  # The detail property
18
36
  @detail
19
37
  ##
@@ -62,11 +80,103 @@ module BellaBaxterGenerated
62
80
  @adopted = value
63
81
  end
64
82
  ##
83
+ ## Gets the authorityDestroyAfter property value. The authorityDestroyAfter property
84
+ ## @return a date_time
85
+ ##
86
+ def authority_destroy_after
87
+ return @authority_destroy_after
88
+ end
89
+ ##
90
+ ## Sets the authorityDestroyAfter property value. The authorityDestroyAfter property
91
+ ## @param value Value to set for the authorityDestroyAfter property.
92
+ ## @return a void
93
+ ##
94
+ def authority_destroy_after=(value)
95
+ @authority_destroy_after = value
96
+ end
97
+ ##
98
+ ## Gets the authorityDestroyedAt property value. The authorityDestroyedAt property
99
+ ## @return a date_time
100
+ ##
101
+ def authority_destroyed_at
102
+ return @authority_destroyed_at
103
+ end
104
+ ##
105
+ ## Sets the authorityDestroyedAt property value. The authorityDestroyedAt property
106
+ ## @param value Value to set for the authorityDestroyedAt property.
107
+ ## @return a void
108
+ ##
109
+ def authority_destroyed_at=(value)
110
+ @authority_destroyed_at = value
111
+ end
112
+ ##
113
+ ## Gets the authorityRetentionReason property value. The authorityRetentionReason property
114
+ ## @return a string
115
+ ##
116
+ def authority_retention_reason
117
+ return @authority_retention_reason
118
+ end
119
+ ##
120
+ ## Sets the authorityRetentionReason property value. The authorityRetentionReason property
121
+ ## @param value Value to set for the authorityRetentionReason property.
122
+ ## @return a void
123
+ ##
124
+ def authority_retention_reason=(value)
125
+ @authority_retention_reason = value
126
+ end
127
+ ##
128
+ ## Gets the authorityRetentionState property value. The authorityRetentionState property
129
+ ## @return a string
130
+ ##
131
+ def authority_retention_state
132
+ return @authority_retention_state
133
+ end
134
+ ##
135
+ ## Sets the authorityRetentionState property value. The authorityRetentionState property
136
+ ## @param value Value to set for the authorityRetentionState property.
137
+ ## @return a void
138
+ ##
139
+ def authority_retention_state=(value)
140
+ @authority_retention_state = value
141
+ end
142
+ ##
143
+ ## Gets the authorityStoreReason property value. The authorityStoreReason property
144
+ ## @return a string
145
+ ##
146
+ def authority_store_reason
147
+ return @authority_store_reason
148
+ end
149
+ ##
150
+ ## Sets the authorityStoreReason property value. The authorityStoreReason property
151
+ ## @param value Value to set for the authorityStoreReason property.
152
+ ## @return a void
153
+ ##
154
+ def authority_store_reason=(value)
155
+ @authority_store_reason = value
156
+ end
157
+ ##
158
+ ## Gets the authorityStoreState property value. The authorityStoreState property
159
+ ## @return a string
160
+ ##
161
+ def authority_store_state
162
+ return @authority_store_state
163
+ end
164
+ ##
165
+ ## Sets the authorityStoreState property value. The authorityStoreState property
166
+ ## @param value Value to set for the authorityStoreState property.
167
+ ## @return a void
168
+ ##
169
+ def authority_store_state=(value)
170
+ @authority_store_state = value
171
+ end
172
+ ##
65
173
  ## Instantiates a new PkiAuthorityResponse and sets the default values.
66
174
  ## @return a void
67
175
  ##
68
176
  def initialize()
69
177
  @additional_data = Hash.new
178
+ @authority_retention_state = "not-deleted"
179
+ @authority_store_state = "in-sync"
70
180
  @token_signing_status = "tenant"
71
181
  end
72
182
  ##
@@ -100,6 +210,12 @@ module BellaBaxterGenerated
100
210
  def get_field_deserializers()
101
211
  return {
102
212
  "adopted" => lambda {|n| @adopted = n.get_boolean_value() },
213
+ "authorityDestroyAfter" => lambda {|n| @authority_destroy_after = n.get_date_time_value() },
214
+ "authorityDestroyedAt" => lambda {|n| @authority_destroyed_at = n.get_date_time_value() },
215
+ "authorityRetentionReason" => lambda {|n| @authority_retention_reason = n.get_string_value() },
216
+ "authorityRetentionState" => lambda {|n| @authority_retention_state = n.get_string_value() },
217
+ "authorityStoreReason" => lambda {|n| @authority_store_reason = n.get_string_value() },
218
+ "authorityStoreState" => lambda {|n| @authority_store_state = n.get_string_value() },
103
219
  "detail" => lambda {|n| @detail = n.get_string_value() },
104
220
  "mountPath" => lambda {|n| @mount_path = n.get_string_value() },
105
221
  "status" => lambda {|n| @status = n.get_string_value() },
@@ -131,6 +247,12 @@ module BellaBaxterGenerated
131
247
  def serialize(writer)
132
248
  raise StandardError, 'writer cannot be null' if writer.nil?
133
249
  writer.write_boolean_value("adopted", @adopted)
250
+ writer.write_date_time_value("authorityDestroyAfter", @authority_destroy_after)
251
+ writer.write_date_time_value("authorityDestroyedAt", @authority_destroyed_at)
252
+ writer.write_string_value("authorityRetentionReason", @authority_retention_reason)
253
+ writer.write_string_value("authorityRetentionState", @authority_retention_state)
254
+ writer.write_string_value("authorityStoreReason", @authority_store_reason)
255
+ writer.write_string_value("authorityStoreState", @authority_store_state)
134
256
  writer.write_string_value("detail", @detail)
135
257
  writer.write_string_value("mountPath", @mount_path)
136
258
  writer.write_string_value("status", @status)
@@ -0,0 +1,82 @@
1
+ require 'microsoft_kiota_abstractions'
2
+ require_relative '../bella_baxter_generated'
3
+ require_relative './models'
4
+
5
+ module BellaBaxterGenerated
6
+ module Models
7
+ class ReestablishEnvironmentAuthorityCommand
8
+ include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
9
+ ##
10
+ # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
11
+ @additional_data
12
+ ##
13
+ # The confirmTrustReset property
14
+ @confirm_trust_reset
15
+ ##
16
+ ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
17
+ ## @return a i_dictionary
18
+ ##
19
+ def additional_data
20
+ return @additional_data
21
+ end
22
+ ##
23
+ ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
24
+ ## @param value Value to set for the AdditionalData property.
25
+ ## @return a void
26
+ ##
27
+ def additional_data=(value)
28
+ @additional_data = value
29
+ end
30
+ ##
31
+ ## Gets the confirmTrustReset property value. The confirmTrustReset property
32
+ ## @return a boolean
33
+ ##
34
+ def confirm_trust_reset
35
+ return @confirm_trust_reset
36
+ end
37
+ ##
38
+ ## Sets the confirmTrustReset property value. The confirmTrustReset property
39
+ ## @param value Value to set for the confirmTrustReset property.
40
+ ## @return a void
41
+ ##
42
+ def confirm_trust_reset=(value)
43
+ @confirm_trust_reset = value
44
+ end
45
+ ##
46
+ ## Instantiates a new ReestablishEnvironmentAuthorityCommand and sets the default values.
47
+ ## @return a void
48
+ ##
49
+ def initialize()
50
+ @additional_data = Hash.new
51
+ end
52
+ ##
53
+ ## Creates a new instance of the appropriate class based on discriminator value
54
+ ## @param parse_node The parse node to use to read the discriminator value and create the object
55
+ ## @return a reestablish_environment_authority_command
56
+ ##
57
+ def self.create_from_discriminator_value(parse_node)
58
+ raise StandardError, 'parse_node cannot be null' if parse_node.nil?
59
+ return ReestablishEnvironmentAuthorityCommand.new
60
+ end
61
+ ##
62
+ ## The deserialization information for the current model
63
+ ## @return a i_dictionary
64
+ ##
65
+ def get_field_deserializers()
66
+ return {
67
+ "confirmTrustReset" => lambda {|n| @confirm_trust_reset = n.get_boolean_value() },
68
+ }
69
+ end
70
+ ##
71
+ ## Serializes information the current object
72
+ ## @param writer Serialization writer to use to serialize this model
73
+ ## @return a void
74
+ ##
75
+ def serialize(writer)
76
+ raise StandardError, 'writer cannot be null' if writer.nil?
77
+ writer.write_boolean_value("confirmTrustReset", @confirm_trust_reset)
78
+ writer.write_additional_data(@additional_data)
79
+ end
80
+ end
81
+ end
82
+ end
@@ -0,0 +1,123 @@
1
+ require 'date'
2
+ require 'microsoft_kiota_abstractions'
3
+ require_relative '../bella_baxter_generated'
4
+ require_relative './models'
5
+
6
+ module BellaBaxterGenerated
7
+ module Models
8
+ class ReestablishEnvironmentAuthorityResponse
9
+ include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
10
+ ##
11
+ # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
12
+ @additional_data
13
+ ##
14
+ # The pki property
15
+ @pki
16
+ ##
17
+ # The reestablishedAt property
18
+ @reestablished_at
19
+ ##
20
+ # The ssh property
21
+ @ssh
22
+ ##
23
+ ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
24
+ ## @return a i_dictionary
25
+ ##
26
+ def additional_data
27
+ return @additional_data
28
+ end
29
+ ##
30
+ ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
31
+ ## @param value Value to set for the AdditionalData property.
32
+ ## @return a void
33
+ ##
34
+ def additional_data=(value)
35
+ @additional_data = value
36
+ end
37
+ ##
38
+ ## Instantiates a new ReestablishEnvironmentAuthorityResponse and sets the default values.
39
+ ## @return a void
40
+ ##
41
+ def initialize()
42
+ @additional_data = Hash.new
43
+ end
44
+ ##
45
+ ## Creates a new instance of the appropriate class based on discriminator value
46
+ ## @param parse_node The parse node to use to read the discriminator value and create the object
47
+ ## @return a reestablish_environment_authority_response
48
+ ##
49
+ def self.create_from_discriminator_value(parse_node)
50
+ raise StandardError, 'parse_node cannot be null' if parse_node.nil?
51
+ return ReestablishEnvironmentAuthorityResponse.new
52
+ end
53
+ ##
54
+ ## The deserialization information for the current model
55
+ ## @return a i_dictionary
56
+ ##
57
+ def get_field_deserializers()
58
+ return {
59
+ "pki" => lambda {|n| @pki = n.get_boolean_value() },
60
+ "reestablishedAt" => lambda {|n| @reestablished_at = n.get_date_time_value() },
61
+ "ssh" => lambda {|n| @ssh = n.get_boolean_value() },
62
+ }
63
+ end
64
+ ##
65
+ ## Gets the pki property value. The pki property
66
+ ## @return a boolean
67
+ ##
68
+ def pki
69
+ return @pki
70
+ end
71
+ ##
72
+ ## Sets the pki property value. The pki property
73
+ ## @param value Value to set for the pki property.
74
+ ## @return a void
75
+ ##
76
+ def pki=(value)
77
+ @pki = value
78
+ end
79
+ ##
80
+ ## Gets the reestablishedAt property value. The reestablishedAt property
81
+ ## @return a date_time
82
+ ##
83
+ def reestablished_at
84
+ return @reestablished_at
85
+ end
86
+ ##
87
+ ## Sets the reestablishedAt property value. The reestablishedAt property
88
+ ## @param value Value to set for the reestablishedAt property.
89
+ ## @return a void
90
+ ##
91
+ def reestablished_at=(value)
92
+ @reestablished_at = value
93
+ end
94
+ ##
95
+ ## Serializes information the current object
96
+ ## @param writer Serialization writer to use to serialize this model
97
+ ## @return a void
98
+ ##
99
+ def serialize(writer)
100
+ raise StandardError, 'writer cannot be null' if writer.nil?
101
+ writer.write_boolean_value("pki", @pki)
102
+ writer.write_date_time_value("reestablishedAt", @reestablished_at)
103
+ writer.write_boolean_value("ssh", @ssh)
104
+ writer.write_additional_data(@additional_data)
105
+ end
106
+ ##
107
+ ## Gets the ssh property value. The ssh property
108
+ ## @return a boolean
109
+ ##
110
+ def ssh
111
+ return @ssh
112
+ end
113
+ ##
114
+ ## Sets the ssh property value. The ssh property
115
+ ## @param value Value to set for the ssh property.
116
+ ## @return a void
117
+ ##
118
+ def ssh=(value)
119
+ @ssh = value
120
+ end
121
+ end
122
+ end
123
+ end
@@ -1,3 +1,4 @@
1
+ require 'date'
1
2
  require 'microsoft_kiota_abstractions'
2
3
  require_relative '../bella_baxter_generated'
3
4
  require_relative './models'
@@ -13,6 +14,18 @@ module BellaBaxterGenerated
13
14
  # The adopted property
14
15
  @adopted
15
16
  ##
17
+ # The authorityDestroyAfter property
18
+ @authority_destroy_after
19
+ ##
20
+ # The authorityDestroyedAt property
21
+ @authority_destroyed_at
22
+ ##
23
+ # The authorityRetentionReason property
24
+ @authority_retention_reason
25
+ ##
26
+ # The authorityRetentionState property
27
+ @authority_retention_state
28
+ ##
16
29
  # The detail property
17
30
  @detail
18
31
  ##
@@ -52,11 +65,72 @@ module BellaBaxterGenerated
52
65
  @adopted = value
53
66
  end
54
67
  ##
68
+ ## Gets the authorityDestroyAfter property value. The authorityDestroyAfter property
69
+ ## @return a date_time
70
+ ##
71
+ def authority_destroy_after
72
+ return @authority_destroy_after
73
+ end
74
+ ##
75
+ ## Sets the authorityDestroyAfter property value. The authorityDestroyAfter property
76
+ ## @param value Value to set for the authorityDestroyAfter property.
77
+ ## @return a void
78
+ ##
79
+ def authority_destroy_after=(value)
80
+ @authority_destroy_after = value
81
+ end
82
+ ##
83
+ ## Gets the authorityDestroyedAt property value. The authorityDestroyedAt property
84
+ ## @return a date_time
85
+ ##
86
+ def authority_destroyed_at
87
+ return @authority_destroyed_at
88
+ end
89
+ ##
90
+ ## Sets the authorityDestroyedAt property value. The authorityDestroyedAt property
91
+ ## @param value Value to set for the authorityDestroyedAt property.
92
+ ## @return a void
93
+ ##
94
+ def authority_destroyed_at=(value)
95
+ @authority_destroyed_at = value
96
+ end
97
+ ##
98
+ ## Gets the authorityRetentionReason property value. The authorityRetentionReason property
99
+ ## @return a string
100
+ ##
101
+ def authority_retention_reason
102
+ return @authority_retention_reason
103
+ end
104
+ ##
105
+ ## Sets the authorityRetentionReason property value. The authorityRetentionReason property
106
+ ## @param value Value to set for the authorityRetentionReason property.
107
+ ## @return a void
108
+ ##
109
+ def authority_retention_reason=(value)
110
+ @authority_retention_reason = value
111
+ end
112
+ ##
113
+ ## Gets the authorityRetentionState property value. The authorityRetentionState property
114
+ ## @return a string
115
+ ##
116
+ def authority_retention_state
117
+ return @authority_retention_state
118
+ end
119
+ ##
120
+ ## Sets the authorityRetentionState property value. The authorityRetentionState property
121
+ ## @param value Value to set for the authorityRetentionState property.
122
+ ## @return a void
123
+ ##
124
+ def authority_retention_state=(value)
125
+ @authority_retention_state = value
126
+ end
127
+ ##
55
128
  ## Instantiates a new SshAuthorityResponse and sets the default values.
56
129
  ## @return a void
57
130
  ##
58
131
  def initialize()
59
132
  @additional_data = Hash.new
133
+ @authority_retention_state = "not-deleted"
60
134
  end
61
135
  ##
62
136
  ## Creates a new instance of the appropriate class based on discriminator value
@@ -89,6 +163,10 @@ module BellaBaxterGenerated
89
163
  def get_field_deserializers()
90
164
  return {
91
165
  "adopted" => lambda {|n| @adopted = n.get_boolean_value() },
166
+ "authorityDestroyAfter" => lambda {|n| @authority_destroy_after = n.get_date_time_value() },
167
+ "authorityDestroyedAt" => lambda {|n| @authority_destroyed_at = n.get_date_time_value() },
168
+ "authorityRetentionReason" => lambda {|n| @authority_retention_reason = n.get_string_value() },
169
+ "authorityRetentionState" => lambda {|n| @authority_retention_state = n.get_string_value() },
92
170
  "detail" => lambda {|n| @detail = n.get_string_value() },
93
171
  "mountPath" => lambda {|n| @mount_path = n.get_string_value() },
94
172
  "status" => lambda {|n| @status = n.get_string_value() },
@@ -117,6 +195,10 @@ module BellaBaxterGenerated
117
195
  def serialize(writer)
118
196
  raise StandardError, 'writer cannot be null' if writer.nil?
119
197
  writer.write_boolean_value("adopted", @adopted)
198
+ writer.write_date_time_value("authorityDestroyAfter", @authority_destroy_after)
199
+ writer.write_date_time_value("authorityDestroyedAt", @authority_destroyed_at)
200
+ writer.write_string_value("authorityRetentionReason", @authority_retention_reason)
201
+ writer.write_string_value("authorityRetentionState", @authority_retention_state)
120
202
  writer.write_string_value("detail", @detail)
121
203
  writer.write_string_value("mountPath", @mount_path)
122
204
  writer.write_string_value("status", @status)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BellaBaxter
4
- VERSION = "0.1.1-preview.128"
4
+ VERSION = "0.1.1-preview.129"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bella_baxter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.pre.preview.128
4
+ version: 0.1.1.pre.preview.129
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cosmic Chimps
@@ -332,6 +332,10 @@ files:
332
332
  - lib/bella_baxter/generated/api/v1/projects/item/environments/environments_request_builder.rb
333
333
  - lib/bella_baxter/generated/api/v1/projects/item/environments/item/audience_readiness/audience_readiness.rb
334
334
  - lib/bella_baxter/generated/api/v1/projects/item/environments/item/audience_readiness/audience_readiness_request_builder.rb
335
+ - lib/bella_baxter/generated/api/v1/projects/item/environments/item/authority/authority.rb
336
+ - lib/bella_baxter/generated/api/v1/projects/item/environments/item/authority/authority_request_builder.rb
337
+ - lib/bella_baxter/generated/api/v1/projects/item/environments/item/authority/reestablish/reestablish.rb
338
+ - lib/bella_baxter/generated/api/v1/projects/item/environments/item/authority/reestablish/reestablish_request_builder.rb
335
339
  - lib/bella_baxter/generated/api/v1/projects/item/environments/item/cert_rotation/cert_rotation.rb
336
340
  - lib/bella_baxter/generated/api/v1/projects/item/environments/item/cert_rotation/cert_rotation_request_builder.rb
337
341
  - lib/bella_baxter/generated/api/v1/projects/item/environments/item/cert_rotation/item/cancel/cancel.rb
@@ -907,6 +911,8 @@ files:
907
911
  - lib/bella_baxter/generated/models/recover_encryption_key_request.rb
908
912
  - lib/bella_baxter/generated/models/recover_encryption_key_response.rb
909
913
  - lib/bella_baxter/generated/models/recovery_challenge_response.rb
914
+ - lib/bella_baxter/generated/models/reestablish_environment_authority_command.rb
915
+ - lib/bella_baxter/generated/models/reestablish_environment_authority_response.rb
910
916
  - lib/bella_baxter/generated/models/region_info.rb
911
917
  - lib/bella_baxter/generated/models/register_tenant_encryption_key_request.rb
912
918
  - lib/bella_baxter/generated/models/register_tenant_encryption_key_response.rb