bella_baxter 0.1.1.pre.preview.110 → 0.1.1.pre.preview.112

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: 704a4998032f7870299e70588fbae729afb48f6f53d4d5fa521d412c7eb8fb6e
4
- data.tar.gz: 10fb0255aea97c9684f7ab63efa0482707762ca144392b42eed44026c76d2ba4
3
+ metadata.gz: 8ee0b13496d09261ca8298e4e5680d9c4d75edba8611062a46158c214b5cb0cd
4
+ data.tar.gz: c4b1a5f845864055a9643395cbc7dd4c059156678ec67262c523859af6263a6f
5
5
  SHA512:
6
- metadata.gz: 6c761aea1d2630ea2f7f49fc5f8d56e379e990a5aee5abce5964cd9a9984d08f02842e7a49a23c809c52f7e9dd4ba20cadd4cdd17e15ca8801e8f76e1341b8b2
7
- data.tar.gz: 57d602121ec91061a6df2c74548d738ac5a94338b517db23bdb7dcf2248508c620607b0a236e7cd118ad1979d85539b03c5dffdb70ed5a0e337f28313a1147f6
6
+ metadata.gz: 114b31b15405dc2aea1c0ecaf7f6b706264414a9bb273fcace673977b0e9e9c34a2f906cd07ebdc621840379ab4458f769f5c7422db1a2c5063942666462ff90
7
+ data.tar.gz: ba84c5643e4789e9b5a31817bb710983787e64afa05458028ecb3d9038e11dab938052a741f597e7cd836897ecb922677995e84db95cfcb1b31f903b4e69ea17
@@ -0,0 +1,72 @@
1
+ require 'microsoft_kiota_abstractions'
2
+ require_relative '../../../../../bella_baxter/generated'
3
+ require_relative '../../../../../models/user_deactivation_impact_response'
4
+ require_relative '../../../../api'
5
+ require_relative '../../../v1'
6
+ require_relative '../../users'
7
+ require_relative '../item'
8
+ require_relative './deactivation_impact'
9
+
10
+ module Bella_baxter/generated
11
+ module Api
12
+ module V1
13
+ module Users
14
+ module Item
15
+ module DeactivationImpact
16
+ ##
17
+ # Builds and executes requests for operations under \api\v1\users\{userId}\deactivation-impact
18
+ class DeactivationImpactRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
19
+
20
+ ##
21
+ ## Instantiates a new DeactivationImpactRequestBuilder and sets the default values.
22
+ ## @param path_parameters Path parameters for the request
23
+ ## @param request_adapter The request adapter to use to execute the requests.
24
+ ## @return a void
25
+ ##
26
+ def initialize(path_parameters, request_adapter)
27
+ super(path_parameters, request_adapter, "{+baseurl}/api/v1/users/{userId}/deactivation-impact")
28
+ end
29
+ ##
30
+ ## GET_api_v1_users_userId_deactivation_impact
31
+ ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
32
+ ## @return a Fiber of user_deactivation_impact_response
33
+ ##
34
+ def get(request_configuration=nil)
35
+ request_info = self.to_get_request_information(
36
+ request_configuration
37
+ )
38
+ return @request_adapter.send_async(request_info, lambda {|pn| Bella_baxter/generated::Models::UserDeactivationImpactResponse.create_from_discriminator_value(pn) }, nil)
39
+ end
40
+ ##
41
+ ## GET_api_v1_users_userId_deactivation_impact
42
+ ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
43
+ ## @return a request_information
44
+ ##
45
+ def to_get_request_information(request_configuration=nil)
46
+ request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
47
+ unless request_configuration.nil?
48
+ request_info.add_headers_from_raw_object(request_configuration.headers)
49
+ request_info.add_request_options(request_configuration.options)
50
+ end
51
+ request_info.url_template = @url_template
52
+ request_info.path_parameters = @path_parameters
53
+ request_info.http_method = :GET
54
+ request_info.headers.try_add('Accept', 'application/json')
55
+ return request_info
56
+ end
57
+ ##
58
+ ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
59
+ ## @param raw_url The raw URL to use for the request builder.
60
+ ## @return a deactivation_impact_request_builder
61
+ ##
62
+ def with_url(raw_url)
63
+ raise StandardError, 'raw_url cannot be null' if raw_url.nil?
64
+ return DeactivationImpactRequestBuilder.new(raw_url, @request_adapter)
65
+ end
66
+ end
67
+ end
68
+ end
69
+ end
70
+ end
71
+ end
72
+ end
@@ -5,6 +5,7 @@ require_relative '../../../../models/user_response'
5
5
  require_relative '../../../api'
6
6
  require_relative '../../v1'
7
7
  require_relative '../users'
8
+ require_relative './deactivation_impact/deactivation_impact_request_builder'
8
9
  require_relative './item'
9
10
  require_relative './reactivate/reactivate_request_builder'
10
11
 
@@ -17,6 +18,11 @@ module Bella_baxter/generated
17
18
  # Builds and executes requests for operations under \api\v1\users\{userId}
18
19
  class WithUserItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
19
20
 
21
+ ##
22
+ # The deactivationImpact property
23
+ def deactivation_impact()
24
+ return Bella_baxter/generated::Api::V1::Users::Item::DeactivationImpact::DeactivationImpactRequestBuilder.new(@path_parameters, @request_adapter)
25
+ end
20
26
  ##
21
27
  # The reactivate property
22
28
  def reactivate()
@@ -0,0 +1,142 @@
1
+ require 'microsoft_kiota_abstractions'
2
+ require_relative '../bella_baxter/generated'
3
+ require_relative './models'
4
+
5
+ module Bella_baxter/generated
6
+ module Models
7
+ class DeactivationImpactKey
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 apiKeyId property
14
+ @api_key_id
15
+ ##
16
+ # The clientName property
17
+ @client_name
18
+ ##
19
+ # The role property
20
+ @role
21
+ ##
22
+ # The tenantId property
23
+ @tenant_id
24
+ ##
25
+ ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
26
+ ## @return a i_dictionary
27
+ ##
28
+ def additional_data
29
+ return @additional_data
30
+ end
31
+ ##
32
+ ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
33
+ ## @param value Value to set for the AdditionalData property.
34
+ ## @return a void
35
+ ##
36
+ def additional_data=(value)
37
+ @additional_data = value
38
+ end
39
+ ##
40
+ ## Gets the apiKeyId property value. The apiKeyId property
41
+ ## @return a string
42
+ ##
43
+ def api_key_id
44
+ return @api_key_id
45
+ end
46
+ ##
47
+ ## Sets the apiKeyId property value. The apiKeyId property
48
+ ## @param value Value to set for the apiKeyId property.
49
+ ## @return a void
50
+ ##
51
+ def api_key_id=(value)
52
+ @api_key_id = value
53
+ end
54
+ ##
55
+ ## Gets the clientName property value. The clientName property
56
+ ## @return a string
57
+ ##
58
+ def client_name
59
+ return @client_name
60
+ end
61
+ ##
62
+ ## Sets the clientName property value. The clientName property
63
+ ## @param value Value to set for the clientName property.
64
+ ## @return a void
65
+ ##
66
+ def client_name=(value)
67
+ @client_name = value
68
+ end
69
+ ##
70
+ ## Instantiates a new DeactivationImpactKey and sets the default values.
71
+ ## @return a void
72
+ ##
73
+ def initialize()
74
+ @additional_data = Hash.new
75
+ end
76
+ ##
77
+ ## Creates a new instance of the appropriate class based on discriminator value
78
+ ## @param parse_node The parse node to use to read the discriminator value and create the object
79
+ ## @return a deactivation_impact_key
80
+ ##
81
+ def self.create_from_discriminator_value(parse_node)
82
+ raise StandardError, 'parse_node cannot be null' if parse_node.nil?
83
+ return DeactivationImpactKey.new
84
+ end
85
+ ##
86
+ ## The deserialization information for the current model
87
+ ## @return a i_dictionary
88
+ ##
89
+ def get_field_deserializers()
90
+ return {
91
+ "apiKeyId" => lambda {|n| @api_key_id = n.get_string_value() },
92
+ "clientName" => lambda {|n| @client_name = n.get_string_value() },
93
+ "role" => lambda {|n| @role = n.get_string_value() },
94
+ "tenantId" => lambda {|n| @tenant_id = n.get_string_value() },
95
+ }
96
+ end
97
+ ##
98
+ ## Gets the role property value. The role property
99
+ ## @return a string
100
+ ##
101
+ def role
102
+ return @role
103
+ end
104
+ ##
105
+ ## Sets the role property value. The role property
106
+ ## @param value Value to set for the role property.
107
+ ## @return a void
108
+ ##
109
+ def role=(value)
110
+ @role = value
111
+ end
112
+ ##
113
+ ## Serializes information the current object
114
+ ## @param writer Serialization writer to use to serialize this model
115
+ ## @return a void
116
+ ##
117
+ def serialize(writer)
118
+ raise StandardError, 'writer cannot be null' if writer.nil?
119
+ writer.write_string_value("apiKeyId", @api_key_id)
120
+ writer.write_string_value("clientName", @client_name)
121
+ writer.write_string_value("role", @role)
122
+ writer.write_string_value("tenantId", @tenant_id)
123
+ writer.write_additional_data(@additional_data)
124
+ end
125
+ ##
126
+ ## Gets the tenantId property value. The tenantId property
127
+ ## @return a string
128
+ ##
129
+ def tenant_id
130
+ return @tenant_id
131
+ end
132
+ ##
133
+ ## Sets the tenantId property value. The tenantId property
134
+ ## @param value Value to set for the tenantId property.
135
+ ## @return a void
136
+ ##
137
+ def tenant_id=(value)
138
+ @tenant_id = value
139
+ end
140
+ end
141
+ end
142
+ end
@@ -99,6 +99,7 @@ require_relative 'create_workload_identity_command'
99
99
  require_relative 'current_user_response'
100
100
  require_relative 'dashboard_count_pair'
101
101
  require_relative 'dashboard_response'
102
+ require_relative 'deactivation_impact_key'
102
103
  require_relative 'drift_item'
103
104
  require_relative 'drift_response'
104
105
  require_relative 'drift_summary'
@@ -337,6 +338,7 @@ require_relative 'update_webhook_request'
337
338
  require_relative 'update_workload_identity_command'
338
339
  require_relative 'upload_failure'
339
340
  require_relative 'upload_secrets_file_response'
341
+ require_relative 'user_deactivation_impact_response'
340
342
  require_relative 'user_response'
341
343
  require_relative 'user_role_assignment'
342
344
  require_relative 'user_tenant_item'
@@ -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'
@@ -46,6 +47,9 @@ module Bella_baxter/generated
46
47
  # The newCertSerial property
47
48
  @new_cert_serial
48
49
  ##
50
+ # The occurredAt property
51
+ @occurred_at
52
+ ##
49
53
  # The oldCertSerial property
50
54
  @old_cert_serial
51
55
  ##
@@ -230,6 +234,7 @@ module Bella_baxter/generated
230
234
  "keyAlias" => lambda {|n| @key_alias = n.get_string_value() },
231
235
  "newCertPemHash" => lambda {|n| @new_cert_pem_hash = n.get_string_value() },
232
236
  "newCertSerial" => lambda {|n| @new_cert_serial = n.get_string_value() },
237
+ "occurredAt" => lambda {|n| @occurred_at = n.get_date_time_value() },
233
238
  "oldCertSerial" => lambda {|n| @old_cert_serial = n.get_string_value() },
234
239
  "rotationJobId" => lambda {|n| @rotation_job_id = n.get_guid_value() },
235
240
  "tenantId" => lambda {|n| @tenant_id = n.get_guid_value() },
@@ -298,6 +303,21 @@ module Bella_baxter/generated
298
303
  @new_cert_serial = value
299
304
  end
300
305
  ##
306
+ ## Gets the occurredAt property value. The occurredAt property
307
+ ## @return a date_time
308
+ ##
309
+ def occurred_at
310
+ return @occurred_at
311
+ end
312
+ ##
313
+ ## Sets the occurredAt property value. The occurredAt property
314
+ ## @param value Value to set for the occurredAt property.
315
+ ## @return a void
316
+ ##
317
+ def occurred_at=(value)
318
+ @occurred_at = value
319
+ end
320
+ ##
301
321
  ## Gets the oldCertSerial property value. The oldCertSerial property
302
322
  ## @return a string
303
323
  ##
@@ -346,6 +366,7 @@ module Bella_baxter/generated
346
366
  writer.write_string_value("keyAlias", @key_alias)
347
367
  writer.write_string_value("newCertPemHash", @new_cert_pem_hash)
348
368
  writer.write_string_value("newCertSerial", @new_cert_serial)
369
+ writer.write_date_time_value("occurredAt", @occurred_at)
349
370
  writer.write_string_value("oldCertSerial", @old_cert_serial)
350
371
  writer.write_guid_value("rotationJobId", @rotation_job_id)
351
372
  writer.write_guid_value("tenantId", @tenant_id)
@@ -0,0 +1,102 @@
1
+ require 'microsoft_kiota_abstractions'
2
+ require_relative '../bella_baxter/generated'
3
+ require_relative './models'
4
+
5
+ module Bella_baxter/generated
6
+ module Models
7
+ class UserDeactivationImpactResponse
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 apiKeyCount property
14
+ @api_key_count
15
+ ##
16
+ # The apiKeys property
17
+ @api_keys
18
+ ##
19
+ ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
20
+ ## @return a i_dictionary
21
+ ##
22
+ def additional_data
23
+ return @additional_data
24
+ end
25
+ ##
26
+ ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
27
+ ## @param value Value to set for the AdditionalData property.
28
+ ## @return a void
29
+ ##
30
+ def additional_data=(value)
31
+ @additional_data = value
32
+ end
33
+ ##
34
+ ## Gets the apiKeyCount property value. The apiKeyCount property
35
+ ## @return a integer
36
+ ##
37
+ def api_key_count
38
+ return @api_key_count
39
+ end
40
+ ##
41
+ ## Sets the apiKeyCount property value. The apiKeyCount property
42
+ ## @param value Value to set for the apiKeyCount property.
43
+ ## @return a void
44
+ ##
45
+ def api_key_count=(value)
46
+ @api_key_count = value
47
+ end
48
+ ##
49
+ ## Gets the apiKeys property value. The apiKeys property
50
+ ## @return a deactivation_impact_key
51
+ ##
52
+ def api_keys
53
+ return @api_keys
54
+ end
55
+ ##
56
+ ## Sets the apiKeys property value. The apiKeys property
57
+ ## @param value Value to set for the apiKeys property.
58
+ ## @return a void
59
+ ##
60
+ def api_keys=(value)
61
+ @api_keys = value
62
+ end
63
+ ##
64
+ ## Instantiates a new UserDeactivationImpactResponse and sets the default values.
65
+ ## @return a void
66
+ ##
67
+ def initialize()
68
+ @additional_data = Hash.new
69
+ end
70
+ ##
71
+ ## Creates a new instance of the appropriate class based on discriminator value
72
+ ## @param parse_node The parse node to use to read the discriminator value and create the object
73
+ ## @return a user_deactivation_impact_response
74
+ ##
75
+ def self.create_from_discriminator_value(parse_node)
76
+ raise StandardError, 'parse_node cannot be null' if parse_node.nil?
77
+ return UserDeactivationImpactResponse.new
78
+ end
79
+ ##
80
+ ## The deserialization information for the current model
81
+ ## @return a i_dictionary
82
+ ##
83
+ def get_field_deserializers()
84
+ return {
85
+ "apiKeyCount" => lambda {|n| @api_key_count = n.get_number_value() },
86
+ "apiKeys" => lambda {|n| @api_keys = n.get_collection_of_object_values(lambda {|pn| Bella_baxter/generated::Models::DeactivationImpactKey.create_from_discriminator_value(pn) }) },
87
+ }
88
+ end
89
+ ##
90
+ ## Serializes information the current object
91
+ ## @param writer Serialization writer to use to serialize this model
92
+ ## @return a void
93
+ ##
94
+ def serialize(writer)
95
+ raise StandardError, 'writer cannot be null' if writer.nil?
96
+ writer.write_number_value("apiKeyCount", @api_key_count)
97
+ writer.write_collection_of_object_values("apiKeys", @api_keys)
98
+ writer.write_additional_data(@additional_data)
99
+ end
100
+ end
101
+ end
102
+ end
@@ -19,11 +19,11 @@ module BellaBaxter
19
19
  # gem "bella_baxter"
20
20
  #
21
21
  # # Start your app
22
- # bella exec -- bundle exec rails server
22
+ # bella sdk run -- bundle exec rails server
23
23
  #
24
24
  # That's it. The Railtie auto-registers when the gem is loaded.
25
25
  #
26
- # == Required environment variables (set by `bella exec`)
26
+ # == Required environment variables (set by `bella sdk run`)
27
27
  #
28
28
  # BELLA_API_KEY Your API key (bax-...)
29
29
  # BELLA_BAXTER_URL Base URL of your Bella Baxter instance
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BellaBaxter
4
- VERSION = "0.1.1-preview.110"
4
+ VERSION = "0.1.1-preview.112"
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.110
4
+ version: 0.1.1.pre.preview.112
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cosmic Chimps
@@ -637,6 +637,8 @@ files:
637
637
  - lib/bella_baxter/generated/api/v1/token/token_request_builder.rb
638
638
  - lib/bella_baxter/generated/api/v1/users/change_password/change_password.rb
639
639
  - lib/bella_baxter/generated/api/v1/users/change_password/change_password_request_builder.rb
640
+ - lib/bella_baxter/generated/api/v1/users/item/deactivation_impact/deactivation_impact.rb
641
+ - lib/bella_baxter/generated/api/v1/users/item/deactivation_impact/deactivation_impact_request_builder.rb
640
642
  - lib/bella_baxter/generated/api/v1/users/item/item.rb
641
643
  - lib/bella_baxter/generated/api/v1/users/item/reactivate/reactivate.rb
642
644
  - lib/bella_baxter/generated/api/v1/users/item/reactivate/reactivate_request_builder.rb
@@ -790,6 +792,7 @@ files:
790
792
  - lib/bella_baxter/generated/models/current_user_response.rb
791
793
  - lib/bella_baxter/generated/models/dashboard_count_pair.rb
792
794
  - lib/bella_baxter/generated/models/dashboard_response.rb
795
+ - lib/bella_baxter/generated/models/deactivation_impact_key.rb
793
796
  - lib/bella_baxter/generated/models/drift_item.rb
794
797
  - lib/bella_baxter/generated/models/drift_response.rb
795
798
  - lib/bella_baxter/generated/models/drift_summary.rb
@@ -1035,6 +1038,7 @@ files:
1035
1038
  - lib/bella_baxter/generated/models/update_workload_identity_command.rb
1036
1039
  - lib/bella_baxter/generated/models/upload_failure.rb
1037
1040
  - lib/bella_baxter/generated/models/upload_secrets_file_response.rb
1041
+ - lib/bella_baxter/generated/models/user_deactivation_impact_response.rb
1038
1042
  - lib/bella_baxter/generated/models/user_response.rb
1039
1043
  - lib/bella_baxter/generated/models/user_role_assignment.rb
1040
1044
  - lib/bella_baxter/generated/models/user_tenant_item.rb