Skip to content

Commit abc8251

Browse files
authored
Merge pull request #103 from microsoftgraph/v1.0/pipelinebuild/111491
Generated models and request builders
2 parents d021dfd + d700439 commit abc8251

File tree

11,186 files changed

+63093
-318337
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

11,186 files changed

+63093
-318337
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
## [0.20.0] - 2023-03-28
15+
16+
### Changed
17+
18+
- Weekly generation.
19+
1420
## [0.19.0] - 2023-03-21
1521

1622
### Changed

lib/admin/admin_request_builder.rb

Lines changed: 9 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -9,39 +9,25 @@ module MicrosoftGraph
99
module Admin
1010
##
1111
# Provides operations to manage the admin singleton.
12-
class AdminRequestBuilder
12+
class AdminRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
1313

14-
##
15-
# Path parameters for the request
16-
@path_parameters
17-
##
18-
# The request adapter to use to execute the requests.
19-
@request_adapter
2014
##
2115
# Provides operations to manage the serviceAnnouncement property of the microsoft.graph.admin entity.
2216
def service_announcement()
2317
return MicrosoftGraph::Admin::ServiceAnnouncement::ServiceAnnouncementRequestBuilder.new(@path_parameters, @request_adapter)
2418
end
2519
##
26-
# Url template to use to build the URL for the current request builder
27-
@url_template
28-
##
2920
## Instantiates a new AdminRequestBuilder and sets the default values.
30-
## @param pathParameters Path parameters for the request
31-
## @param requestAdapter The request adapter to use to execute the requests.
21+
## @param path_parameters Path parameters for the request
22+
## @param request_adapter The request adapter to use to execute the requests.
3223
## @return a void
3324
##
3425
def initialize(path_parameters, request_adapter)
35-
raise StandardError, 'path_parameters cannot be null' if path_parameters.nil?
36-
raise StandardError, 'request_adapter cannot be null' if request_adapter.nil?
37-
@url_template = "{+baseurl}/admin{?%24select,%24expand}"
38-
@request_adapter = request_adapter
39-
path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String
40-
@path_parameters = path_parameters if path_parameters.is_a? Hash
26+
super(path_parameters, request_adapter, "{+baseurl}/admin{?%24select,%24expand}")
4127
end
4228
##
4329
## Get admin
44-
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
30+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
4531
## @return a Fiber of admin
4632
##
4733
def get(request_configuration=nil)
@@ -56,7 +42,7 @@ def get(request_configuration=nil)
5642
##
5743
## Update admin
5844
## @param body The request body
59-
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
45+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
6046
## @return a Fiber of admin
6147
##
6248
def patch(body, request_configuration=nil)
@@ -71,7 +57,7 @@ def patch(body, request_configuration=nil)
7157
end
7258
##
7359
## Get admin
74-
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
60+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
7561
## @return a request_information
7662
##
7763
def to_get_request_information(request_configuration=nil)
@@ -90,7 +76,7 @@ def to_get_request_information(request_configuration=nil)
9076
##
9177
## Update admin
9278
## @param body The request body
93-
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
79+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
9480
## @return a request_information
9581
##
9682
def to_patch_request_information(body, request_configuration=nil)
@@ -120,7 +106,7 @@ class AdminRequestBuilderGetQueryParameters
120106
attr_accessor :select
121107
##
122108
## Maps the query parameters names to their encoded names for the URI template parsing.
123-
## @param originalName The original query parameter name in the class.
109+
## @param original_name The original query parameter name in the class.
124110
## @return a string
125111
##
126112
def get_query_parameter(original_name)
@@ -135,33 +121,6 @@ def get_query_parameter(original_name)
135121
end
136122
end
137123
end
138-
139-
##
140-
# Configuration for the request such as headers, query parameters, and middleware options.
141-
class AdminRequestBuilderGetRequestConfiguration
142-
143-
##
144-
# Request headers
145-
attr_accessor :headers
146-
##
147-
# Request options
148-
attr_accessor :options
149-
##
150-
# Request query parameters
151-
attr_accessor :query_parameters
152-
end
153-
154-
##
155-
# Configuration for the request such as headers, query parameters, and middleware options.
156-
class AdminRequestBuilderPatchRequestConfiguration
157-
158-
##
159-
# Request headers
160-
attr_accessor :headers
161-
##
162-
# Request options
163-
attr_accessor :options
164-
end
165124
end
166125
end
167126
end

lib/admin/service_announcement/health_overviews/count/count_request_builder.rb

Lines changed: 7 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,20 @@ module HealthOverviews
1313
module Count
1414
##
1515
# Provides operations to count the resources in the collection.
16-
class CountRequestBuilder
16+
class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
1717

18-
##
19-
# Path parameters for the request
20-
@path_parameters
21-
##
22-
# The request adapter to use to execute the requests.
23-
@request_adapter
24-
##
25-
# Url template to use to build the URL for the current request builder
26-
@url_template
2718
##
2819
## Instantiates a new CountRequestBuilder and sets the default values.
29-
## @param pathParameters Path parameters for the request
30-
## @param requestAdapter The request adapter to use to execute the requests.
20+
## @param path_parameters Path parameters for the request
21+
## @param request_adapter The request adapter to use to execute the requests.
3122
## @return a void
3223
##
3324
def initialize(path_parameters, request_adapter)
34-
raise StandardError, 'path_parameters cannot be null' if path_parameters.nil?
35-
raise StandardError, 'request_adapter cannot be null' if request_adapter.nil?
36-
@url_template = "{+baseurl}/admin/serviceAnnouncement/healthOverviews/$count{?%24search,%24filter}"
37-
@request_adapter = request_adapter
38-
path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String
39-
@path_parameters = path_parameters if path_parameters.is_a? Hash
25+
super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/healthOverviews/$count{?%24search,%24filter}")
4026
end
4127
##
4228
## Get the number of the resource
43-
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
29+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
4430
## @return a Fiber of integer
4531
##
4632
def get(request_configuration=nil)
@@ -54,7 +40,7 @@ def get(request_configuration=nil)
5440
end
5541
##
5642
## Get the number of the resource
57-
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
43+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
5844
## @return a request_information
5945
##
6046
def to_get_request_information(request_configuration=nil)
@@ -83,7 +69,7 @@ class CountRequestBuilderGetQueryParameters
8369
attr_accessor :search
8470
##
8571
## Maps the query parameters names to their encoded names for the URI template parsing.
86-
## @param originalName The original query parameter name in the class.
72+
## @param original_name The original query parameter name in the class.
8773
## @return a string
8874
##
8975
def get_query_parameter(original_name)
@@ -98,21 +84,6 @@ def get_query_parameter(original_name)
9884
end
9985
end
10086
end
101-
102-
##
103-
# Configuration for the request such as headers, query parameters, and middleware options.
104-
class CountRequestBuilderGetRequestConfiguration
105-
106-
##
107-
# Request headers
108-
attr_accessor :headers
109-
##
110-
# Request options
111-
attr_accessor :options
112-
##
113-
# Request query parameters
114-
attr_accessor :query_parameters
115-
end
11687
end
11788
end
11889
end

lib/admin/service_announcement/health_overviews/health_overviews_request_builder.rb

Lines changed: 9 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -14,39 +14,25 @@ module ServiceAnnouncement
1414
module HealthOverviews
1515
##
1616
# Provides operations to manage the healthOverviews property of the microsoft.graph.serviceAnnouncement entity.
17-
class HealthOverviewsRequestBuilder
17+
class HealthOverviewsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
1818

1919
##
2020
# Provides operations to count the resources in the collection.
2121
def count()
2222
return MicrosoftGraph::Admin::ServiceAnnouncement::HealthOverviews::Count::CountRequestBuilder.new(@path_parameters, @request_adapter)
2323
end
2424
##
25-
# Path parameters for the request
26-
@path_parameters
27-
##
28-
# The request adapter to use to execute the requests.
29-
@request_adapter
30-
##
31-
# Url template to use to build the URL for the current request builder
32-
@url_template
33-
##
3425
## Instantiates a new HealthOverviewsRequestBuilder and sets the default values.
35-
## @param pathParameters Path parameters for the request
36-
## @param requestAdapter The request adapter to use to execute the requests.
26+
## @param path_parameters Path parameters for the request
27+
## @param request_adapter The request adapter to use to execute the requests.
3728
## @return a void
3829
##
3930
def initialize(path_parameters, request_adapter)
40-
raise StandardError, 'path_parameters cannot be null' if path_parameters.nil?
41-
raise StandardError, 'request_adapter cannot be null' if request_adapter.nil?
42-
@url_template = "{+baseurl}/admin/serviceAnnouncement/healthOverviews{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"
43-
@request_adapter = request_adapter
44-
path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String
45-
@path_parameters = path_parameters if path_parameters.is_a? Hash
31+
super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/healthOverviews{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}")
4632
end
4733
##
4834
## Retrieve the serviceHealth resources from the **healthOverviews** navigation property. This operation provides the health report of all subscribed services for a tenant.
49-
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
35+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
5036
## @return a Fiber of service_health_collection_response
5137
##
5238
def get(request_configuration=nil)
@@ -61,7 +47,7 @@ def get(request_configuration=nil)
6147
##
6248
## Create new navigation property to healthOverviews for admin
6349
## @param body The request body
64-
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
50+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
6551
## @return a Fiber of service_health
6652
##
6753
def post(body, request_configuration=nil)
@@ -76,7 +62,7 @@ def post(body, request_configuration=nil)
7662
end
7763
##
7864
## Retrieve the serviceHealth resources from the **healthOverviews** navigation property. This operation provides the health report of all subscribed services for a tenant.
79-
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
65+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
8066
## @return a request_information
8167
##
8268
def to_get_request_information(request_configuration=nil)
@@ -95,7 +81,7 @@ def to_get_request_information(request_configuration=nil)
9581
##
9682
## Create new navigation property to healthOverviews for admin
9783
## @param body The request body
98-
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
84+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
9985
## @return a request_information
10086
##
10187
def to_post_request_information(body, request_configuration=nil)
@@ -143,7 +129,7 @@ class HealthOverviewsRequestBuilderGetQueryParameters
143129
attr_accessor :top
144130
##
145131
## Maps the query parameters names to their encoded names for the URI template parsing.
146-
## @param originalName The original query parameter name in the class.
132+
## @param original_name The original query parameter name in the class.
147133
## @return a string
148134
##
149135
def get_query_parameter(original_name)
@@ -170,33 +156,6 @@ def get_query_parameter(original_name)
170156
end
171157
end
172158
end
173-
174-
##
175-
# Configuration for the request such as headers, query parameters, and middleware options.
176-
class HealthOverviewsRequestBuilderGetRequestConfiguration
177-
178-
##
179-
# Request headers
180-
attr_accessor :headers
181-
##
182-
# Request options
183-
attr_accessor :options
184-
##
185-
# Request query parameters
186-
attr_accessor :query_parameters
187-
end
188-
189-
##
190-
# Configuration for the request such as headers, query parameters, and middleware options.
191-
class HealthOverviewsRequestBuilderPostRequestConfiguration
192-
193-
##
194-
# Request headers
195-
attr_accessor :headers
196-
##
197-
# Request options
198-
attr_accessor :options
199-
end
200159
end
201160
end
202161
end

0 commit comments

Comments
 (0)