bella_baxter 0.1.1.pre.preview.149 → 0.1.2

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: 77208dbe004360303da733639d83df07980ed42c785b479a0128ff077bc60b55
4
- data.tar.gz: 5cd292a0ad25f937e8e4f4c97521b713c472b660c4e0dcbdb7da388610b9b9fe
3
+ metadata.gz: bc07104187bc744d5388742693cb2457110d02307f5b74c10819e7522949e8e6
4
+ data.tar.gz: 29f73e63f69ec37c51c055eeaffd354feea77b3d5bb0c50c9d6dda42d77c4a91
5
5
  SHA512:
6
- metadata.gz: 3ac15808a7c74b6a17de73b3d5acfa954ac82046f1432c34930adae160f35ec7ab11662012062647aaac71057d3f2448f1a223d373ee5b9e76a75040ec13af9a
7
- data.tar.gz: 20adf0ec2526b9475076046cba862c1642b7b79dd3c7010538589d4ea83748a84a52c6666a44e848a9a6a772334191716485577a05149428e085227beadd8143
6
+ metadata.gz: 53871052271b22c0e43f591901b8fa0bebc54fece4399436c5130aa8eb2889eb8ff41a0778b9fc2a4b73c7889babc2d91544c2f7da92cef9b97579b0f5d3232d
7
+ data.tar.gz: 1887df22d874bb21092fe4e19a29e8dd4fb7d6bfde6b82b81a2a24d1ca05ce81f470785c3ee7f8426562c8d04414463e80c83837e79bcc963ab07bc36ef830ad
@@ -0,0 +1,81 @@
1
+ require 'microsoft_kiota_abstractions'
2
+ require_relative '../../../../../bella_baxter_generated'
3
+ require_relative '../../../../../models/problem_details'
4
+ require_relative '../../../../../models/tenant_usage_breakdown_response'
5
+ require_relative '../../../../api'
6
+ require_relative '../../../v1'
7
+ require_relative '../../tenant'
8
+ require_relative '../usage'
9
+ require_relative './breakdown'
10
+
11
+ module BellaBaxterGenerated
12
+ module Api
13
+ module V1
14
+ module Tenant
15
+ module Usage
16
+ module Breakdown
17
+ ##
18
+ # Builds and executes requests for operations under #api#v1#tenant#usage#breakdown
19
+ class BreakdownRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
20
+ ##
21
+ ## Instantiates a new BreakdownRequestBuilder 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/tenant/usage/breakdown{?month*}")
28
+ end
29
+ ##
30
+ ## GET_api_v1_tenant_usage_breakdown
31
+ ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
32
+ ## @return a Fiber of tenant_usage_breakdown_response
33
+ ##
34
+ def get(request_configuration=nil)
35
+ request_info = self.to_get_request_information(
36
+ request_configuration
37
+ )
38
+ error_mapping = Hash.new
39
+ error_mapping["400"] = lambda {|pn| BellaBaxterGenerated::Models::ProblemDetails.create_from_discriminator_value(pn) }
40
+ return @request_adapter.send_async(request_info, lambda {|pn| BellaBaxterGenerated::Models::TenantUsageBreakdownResponse.create_from_discriminator_value(pn) }, error_mapping)
41
+ end
42
+ ##
43
+ ## GET_api_v1_tenant_usage_breakdown
44
+ ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
45
+ ## @return a request_information
46
+ ##
47
+ def to_get_request_information(request_configuration=nil)
48
+ request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
49
+ unless request_configuration.nil?
50
+ request_info.add_headers_from_raw_object(request_configuration.headers)
51
+ request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters)
52
+ request_info.add_request_options(request_configuration.options)
53
+ end
54
+ request_info.url_template = @url_template
55
+ request_info.path_parameters = @path_parameters
56
+ request_info.http_method = :GET
57
+ request_info.headers.try_add('Accept', 'application/json')
58
+ return request_info
59
+ end
60
+ ##
61
+ ## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
62
+ ## @param raw_url The raw URL to use for the request builder.
63
+ ## @return a breakdown_request_builder
64
+ ##
65
+ def with_url(raw_url)
66
+ raise StandardError, 'raw_url cannot be null' if raw_url.nil?
67
+ return BreakdownRequestBuilder.new(raw_url, @request_adapter)
68
+ end
69
+
70
+ ##
71
+ # GET_api_v1_tenant_usage_breakdown
72
+ class BreakdownRequestBuilderGetQueryParameters
73
+ attr_accessor :month
74
+ end
75
+ end
76
+ end
77
+ end
78
+ end
79
+ end
80
+ end
81
+ end
@@ -4,6 +4,7 @@ require_relative '../../../../models/tenant_usage_response'
4
4
  require_relative '../../../api'
5
5
  require_relative '../../v1'
6
6
  require_relative '../tenant'
7
+ require_relative './breakdown/breakdown_request_builder'
7
8
  require_relative './usage'
8
9
 
9
10
  module BellaBaxterGenerated
@@ -14,6 +15,11 @@ module BellaBaxterGenerated
14
15
  ##
15
16
  # Builds and executes requests for operations under #api#v1#tenant#usage
16
17
  class UsageRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
18
+ ##
19
+ # The breakdown property
20
+ def breakdown()
21
+ return BellaBaxterGenerated::Api::V1::Tenant::Usage::Breakdown::BreakdownRequestBuilder.new(@path_parameters, @request_adapter)
22
+ end
17
23
  ##
18
24
  ## Instantiates a new UsageRequestBuilder and sets the default values.
19
25
  ## @param path_parameters Path parameters for the request
@@ -385,6 +385,7 @@ require_relative 'tenant_features_response'
385
385
  require_relative 'tenant_member_detail_response'
386
386
  require_relative 'tenant_security_summary_response'
387
387
  require_relative 'tenant_settings_response'
388
+ require_relative 'tenant_usage_breakdown_response'
388
389
  require_relative 'tenant_usage_response'
389
390
  require_relative 'tenant_user_response'
390
391
  require_relative 'test_connection_result'
@@ -433,6 +434,7 @@ require_relative 'update_webhook_request'
433
434
  require_relative 'update_workload_identity_command'
434
435
  require_relative 'upload_failure'
435
436
  require_relative 'upload_secrets_file_response'
437
+ require_relative 'usage_source_response'
436
438
  require_relative 'user_deactivation_impact_response'
437
439
  require_relative 'user_response'
438
440
  require_relative 'user_role_assignment'
@@ -0,0 +1,142 @@
1
+ require 'microsoft_kiota_abstractions'
2
+ require_relative '../bella_baxter_generated'
3
+ require_relative './models'
4
+
5
+ module BellaBaxterGenerated
6
+ module Models
7
+ class TenantUsageBreakdownResponse
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 liveCount property
14
+ @live_count
15
+ ##
16
+ # The month property
17
+ @month
18
+ ##
19
+ # The sources property
20
+ @sources
21
+ ##
22
+ # The total property
23
+ @total
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
+ ## Instantiates a new TenantUsageBreakdownResponse and sets the default values.
41
+ ## @return a void
42
+ ##
43
+ def initialize()
44
+ @additional_data = Hash.new
45
+ end
46
+ ##
47
+ ## Creates a new instance of the appropriate class based on discriminator value
48
+ ## @param parse_node The parse node to use to read the discriminator value and create the object
49
+ ## @return a tenant_usage_breakdown_response
50
+ ##
51
+ def self.create_from_discriminator_value(parse_node)
52
+ raise StandardError, 'parse_node cannot be null' if parse_node.nil?
53
+ return TenantUsageBreakdownResponse.new
54
+ end
55
+ ##
56
+ ## The deserialization information for the current model
57
+ ## @return a i_dictionary
58
+ ##
59
+ def get_field_deserializers()
60
+ return {
61
+ "liveCount" => lambda {|n| @live_count = n.get_number_value() },
62
+ "month" => lambda {|n| @month = n.get_string_value() },
63
+ "sources" => lambda {|n| @sources = n.get_collection_of_object_values(lambda {|pn| BellaBaxterGenerated::Models::UsageSourceResponse.create_from_discriminator_value(pn) }) },
64
+ "total" => lambda {|n| @total = n.get_number_value() },
65
+ }
66
+ end
67
+ ##
68
+ ## Gets the liveCount property value. The liveCount property
69
+ ## @return a integer
70
+ ##
71
+ def live_count
72
+ return @live_count
73
+ end
74
+ ##
75
+ ## Sets the liveCount property value. The liveCount property
76
+ ## @param value Value to set for the liveCount property.
77
+ ## @return a void
78
+ ##
79
+ def live_count=(value)
80
+ @live_count = value
81
+ end
82
+ ##
83
+ ## Gets the month property value. The month property
84
+ ## @return a string
85
+ ##
86
+ def month
87
+ return @month
88
+ end
89
+ ##
90
+ ## Sets the month property value. The month property
91
+ ## @param value Value to set for the month property.
92
+ ## @return a void
93
+ ##
94
+ def month=(value)
95
+ @month = value
96
+ end
97
+ ##
98
+ ## Serializes information the current object
99
+ ## @param writer Serialization writer to use to serialize this model
100
+ ## @return a void
101
+ ##
102
+ def serialize(writer)
103
+ raise StandardError, 'writer cannot be null' if writer.nil?
104
+ writer.write_number_value("liveCount", @live_count)
105
+ writer.write_string_value("month", @month)
106
+ writer.write_collection_of_object_values("sources", @sources)
107
+ writer.write_number_value("total", @total)
108
+ writer.write_additional_data(@additional_data)
109
+ end
110
+ ##
111
+ ## Gets the sources property value. The sources property
112
+ ## @return a usage_source_response
113
+ ##
114
+ def sources
115
+ return @sources
116
+ end
117
+ ##
118
+ ## Sets the sources property value. The sources property
119
+ ## @param value Value to set for the sources property.
120
+ ## @return a void
121
+ ##
122
+ def sources=(value)
123
+ @sources = value
124
+ end
125
+ ##
126
+ ## Gets the total property value. The total property
127
+ ## @return a int64
128
+ ##
129
+ def total
130
+ return @total
131
+ end
132
+ ##
133
+ ## Sets the total property value. The total property
134
+ ## @param value Value to set for the total property.
135
+ ## @return a void
136
+ ##
137
+ def total=(value)
138
+ @total = value
139
+ end
140
+ end
141
+ end
142
+ end
@@ -0,0 +1,182 @@
1
+ require 'microsoft_kiota_abstractions'
2
+ require_relative '../bella_baxter_generated'
3
+ require_relative './models'
4
+
5
+ module BellaBaxterGenerated
6
+ module Models
7
+ class UsageSourceResponse
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 calls property
14
+ @calls
15
+ ##
16
+ # The kind property
17
+ @kind
18
+ ##
19
+ # The link property
20
+ @link
21
+ ##
22
+ # The name property
23
+ @name
24
+ ##
25
+ # The sourceId property
26
+ @source_id
27
+ ##
28
+ # The state property
29
+ @state
30
+ ##
31
+ ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
32
+ ## @return a i_dictionary
33
+ ##
34
+ def additional_data
35
+ return @additional_data
36
+ end
37
+ ##
38
+ ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
39
+ ## @param value Value to set for the AdditionalData property.
40
+ ## @return a void
41
+ ##
42
+ def additional_data=(value)
43
+ @additional_data = value
44
+ end
45
+ ##
46
+ ## Gets the calls property value. The calls property
47
+ ## @return a int64
48
+ ##
49
+ def calls
50
+ return @calls
51
+ end
52
+ ##
53
+ ## Sets the calls property value. The calls property
54
+ ## @param value Value to set for the calls property.
55
+ ## @return a void
56
+ ##
57
+ def calls=(value)
58
+ @calls = value
59
+ end
60
+ ##
61
+ ## Instantiates a new UsageSourceResponse and sets the default values.
62
+ ## @return a void
63
+ ##
64
+ def initialize()
65
+ @additional_data = Hash.new
66
+ end
67
+ ##
68
+ ## Creates a new instance of the appropriate class based on discriminator value
69
+ ## @param parse_node The parse node to use to read the discriminator value and create the object
70
+ ## @return a usage_source_response
71
+ ##
72
+ def self.create_from_discriminator_value(parse_node)
73
+ raise StandardError, 'parse_node cannot be null' if parse_node.nil?
74
+ return UsageSourceResponse.new
75
+ end
76
+ ##
77
+ ## The deserialization information for the current model
78
+ ## @return a i_dictionary
79
+ ##
80
+ def get_field_deserializers()
81
+ return {
82
+ "calls" => lambda {|n| @calls = n.get_number_value() },
83
+ "kind" => lambda {|n| @kind = n.get_string_value() },
84
+ "link" => lambda {|n| @link = n.get_string_value() },
85
+ "name" => lambda {|n| @name = n.get_string_value() },
86
+ "sourceId" => lambda {|n| @source_id = n.get_guid_value() },
87
+ "state" => lambda {|n| @state = n.get_string_value() },
88
+ }
89
+ end
90
+ ##
91
+ ## Gets the kind property value. The kind property
92
+ ## @return a string
93
+ ##
94
+ def kind
95
+ return @kind
96
+ end
97
+ ##
98
+ ## Sets the kind property value. The kind property
99
+ ## @param value Value to set for the kind property.
100
+ ## @return a void
101
+ ##
102
+ def kind=(value)
103
+ @kind = value
104
+ end
105
+ ##
106
+ ## Gets the link property value. The link property
107
+ ## @return a string
108
+ ##
109
+ def link
110
+ return @link
111
+ end
112
+ ##
113
+ ## Sets the link property value. The link property
114
+ ## @param value Value to set for the link property.
115
+ ## @return a void
116
+ ##
117
+ def link=(value)
118
+ @link = value
119
+ end
120
+ ##
121
+ ## Gets the name property value. The name property
122
+ ## @return a string
123
+ ##
124
+ def name
125
+ return @name
126
+ end
127
+ ##
128
+ ## Sets the name property value. The name property
129
+ ## @param value Value to set for the name property.
130
+ ## @return a void
131
+ ##
132
+ def name=(value)
133
+ @name = value
134
+ end
135
+ ##
136
+ ## Serializes information the current object
137
+ ## @param writer Serialization writer to use to serialize this model
138
+ ## @return a void
139
+ ##
140
+ def serialize(writer)
141
+ raise StandardError, 'writer cannot be null' if writer.nil?
142
+ writer.write_number_value("calls", @calls)
143
+ writer.write_string_value("kind", @kind)
144
+ writer.write_string_value("link", @link)
145
+ writer.write_string_value("name", @name)
146
+ writer.write_guid_value("sourceId", @source_id)
147
+ writer.write_string_value("state", @state)
148
+ writer.write_additional_data(@additional_data)
149
+ end
150
+ ##
151
+ ## Gets the sourceId property value. The sourceId property
152
+ ## @return a guid
153
+ ##
154
+ def source_id
155
+ return @source_id
156
+ end
157
+ ##
158
+ ## Sets the sourceId property value. The sourceId property
159
+ ## @param value Value to set for the sourceId property.
160
+ ## @return a void
161
+ ##
162
+ def source_id=(value)
163
+ @source_id = value
164
+ end
165
+ ##
166
+ ## Gets the state property value. The state property
167
+ ## @return a string
168
+ ##
169
+ def state
170
+ return @state
171
+ end
172
+ ##
173
+ ## Sets the state property value. The state property
174
+ ## @param value Value to set for the state property.
175
+ ## @return a void
176
+ ##
177
+ def state=(value)
178
+ @state = value
179
+ end
180
+ end
181
+ end
182
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BellaBaxter
4
- VERSION = "0.1.1-preview.149"
4
+ VERSION = "0.1.2"
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.149
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cosmic Chimps
@@ -678,6 +678,8 @@ files:
678
678
  - lib/bella_baxter/generated/api/v1/tenant/features/item/with_feature_item_request_builder.rb
679
679
  - lib/bella_baxter/generated/api/v1/tenant/tenant.rb
680
680
  - lib/bella_baxter/generated/api/v1/tenant/tenant_request_builder.rb
681
+ - lib/bella_baxter/generated/api/v1/tenant/usage/breakdown/breakdown.rb
682
+ - lib/bella_baxter/generated/api/v1/tenant/usage/breakdown/breakdown_request_builder.rb
681
683
  - lib/bella_baxter/generated/api/v1/tenant/usage/usage.rb
682
684
  - lib/bella_baxter/generated/api/v1/tenant/usage/usage_request_builder.rb
683
685
  - lib/bella_baxter/generated/api/v1/tenants/me/authority_names/authority_names.rb
@@ -1178,6 +1180,7 @@ files:
1178
1180
  - lib/bella_baxter/generated/models/tenant_role.rb
1179
1181
  - lib/bella_baxter/generated/models/tenant_security_summary_response.rb
1180
1182
  - lib/bella_baxter/generated/models/tenant_settings_response.rb
1183
+ - lib/bella_baxter/generated/models/tenant_usage_breakdown_response.rb
1181
1184
  - lib/bella_baxter/generated/models/tenant_usage_response.rb
1182
1185
  - lib/bella_baxter/generated/models/tenant_user_response.rb
1183
1186
  - lib/bella_baxter/generated/models/test_connection_result.rb
@@ -1226,6 +1229,7 @@ files:
1226
1229
  - lib/bella_baxter/generated/models/update_workload_identity_command.rb
1227
1230
  - lib/bella_baxter/generated/models/upload_failure.rb
1228
1231
  - lib/bella_baxter/generated/models/upload_secrets_file_response.rb
1232
+ - lib/bella_baxter/generated/models/usage_source_response.rb
1229
1233
  - lib/bella_baxter/generated/models/user_deactivation_impact_response.rb
1230
1234
  - lib/bella_baxter/generated/models/user_response.rb
1231
1235
  - lib/bella_baxter/generated/models/user_role_assignment.rb