Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 0efc623

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
Update generated files with build 187629
1 parent 19a2a6f commit 0efc623

File tree

20,505 files changed

+867992
-321959
lines changed

Some content is hidden

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

20,505 files changed

+867992
-321959
lines changed

lib/admin/admin_request_builder.rb

Lines changed: 39 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
require_relative '../models/o_data_errors_o_data_error'
55
require_relative './admin'
66
require_relative './edge/edge_request_builder'
7+
require_relative './microsoft365_apps/microsoft365_apps_request_builder'
8+
require_relative './people/people_request_builder'
9+
require_relative './report_settings/report_settings_request_builder'
710
require_relative './service_announcement/service_announcement_request_builder'
811
require_relative './sharepoint/sharepoint_request_builder'
912

@@ -19,6 +22,21 @@ def edge()
1922
return MicrosoftGraph::Admin::Edge::EdgeRequestBuilder.new(@path_parameters, @request_adapter)
2023
end
2124
##
25+
# Provides operations to manage the microsoft365Apps property of the microsoft.graph.admin entity.
26+
def microsoft365_apps()
27+
return MicrosoftGraph::Admin::Microsoft365Apps::Microsoft365AppsRequestBuilder.new(@path_parameters, @request_adapter)
28+
end
29+
##
30+
# Provides operations to manage the people property of the microsoft.graph.admin entity.
31+
def people()
32+
return MicrosoftGraph::Admin::People::PeopleRequestBuilder.new(@path_parameters, @request_adapter)
33+
end
34+
##
35+
# Provides operations to manage the reportSettings property of the microsoft.graph.admin entity.
36+
def report_settings()
37+
return MicrosoftGraph::Admin::ReportSettings::ReportSettingsRequestBuilder.new(@path_parameters, @request_adapter)
38+
end
39+
##
2240
# Provides operations to manage the serviceAnnouncement property of the microsoft.graph.admin entity.
2341
def service_announcement()
2442
return MicrosoftGraph::Admin::ServiceAnnouncement::ServiceAnnouncementRequestBuilder.new(@path_parameters, @request_adapter)
@@ -35,7 +53,7 @@ def sharepoint()
3553
## @return a void
3654
##
3755
def initialize(path_parameters, request_adapter)
38-
super(path_parameters, request_adapter, "{+baseurl}/admin{?%24select,%24expand}")
56+
super(path_parameters, request_adapter, "{+baseurl}/admin{?%24expand,%24select}")
3957
end
4058
##
4159
## Get admin
@@ -47,8 +65,7 @@ def get(request_configuration=nil)
4765
request_configuration
4866
)
4967
error_mapping = Hash.new
50-
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
51-
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
68+
error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
5269
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Admin.create_from_discriminator_value(pn) }, error_mapping)
5370
end
5471
##
@@ -63,8 +80,7 @@ def patch(body, request_configuration=nil)
6380
body, request_configuration
6481
)
6582
error_mapping = Hash.new
66-
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
67-
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
83+
error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
6884
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Admin.create_from_discriminator_value(pn) }, error_mapping)
6985
end
7086
##
@@ -74,15 +90,15 @@ def patch(body, request_configuration=nil)
7490
##
7591
def to_get_request_information(request_configuration=nil)
7692
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
77-
request_info.url_template = @url_template
78-
request_info.path_parameters = @path_parameters
79-
request_info.http_method = :GET
80-
request_info.headers.add('Accept', 'application/json')
8193
unless request_configuration.nil?
8294
request_info.add_headers_from_raw_object(request_configuration.headers)
8395
request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters)
8496
request_info.add_request_options(request_configuration.options)
8597
end
98+
request_info.url_template = @url_template
99+
request_info.path_parameters = @path_parameters
100+
request_info.http_method = :GET
101+
request_info.headers.try_add('Accept', 'application/json')
86102
return request_info
87103
end
88104
##
@@ -94,17 +110,26 @@ def to_get_request_information(request_configuration=nil)
94110
def to_patch_request_information(body, request_configuration=nil)
95111
raise StandardError, 'body cannot be null' if body.nil?
96112
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
97-
request_info.url_template = @url_template
98-
request_info.path_parameters = @path_parameters
99-
request_info.http_method = :PATCH
100-
request_info.headers.add('Accept', 'application/json')
101113
unless request_configuration.nil?
102114
request_info.add_headers_from_raw_object(request_configuration.headers)
103115
request_info.add_request_options(request_configuration.options)
104116
end
105-
request_info.set_content_from_parsable(@request_adapter, "application/json", body)
117+
request_info.set_content_from_parsable(@request_adapter, 'application/json', body)
118+
request_info.url_template = @url_template
119+
request_info.path_parameters = @path_parameters
120+
request_info.http_method = :PATCH
121+
request_info.headers.try_add('Accept', 'application/json')
106122
return request_info
107123
end
124+
##
125+
## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
126+
## @param raw_url The raw URL to use for the request builder.
127+
## @return a admin_request_builder
128+
##
129+
def with_url(raw_url)
130+
raise StandardError, 'raw_url cannot be null' if raw_url.nil?
131+
return AdminRequestBuilder.new(raw_url, @request_adapter)
132+
end
108133

109134
##
110135
# Get admin

lib/admin/edge/edge_request_builder.rb

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def internet_explorer_mode()
2525
## @return a void
2626
##
2727
def initialize(path_parameters, request_adapter)
28-
super(path_parameters, request_adapter, "{+baseurl}/admin/edge{?%24select,%24expand}")
28+
super(path_parameters, request_adapter, "{+baseurl}/admin/edge{?%24expand,%24select}")
2929
end
3030
##
3131
## Delete navigation property edge for admin
@@ -37,8 +37,7 @@ def delete(request_configuration=nil)
3737
request_configuration
3838
)
3939
error_mapping = Hash.new
40-
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
41-
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
40+
error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
4241
return @request_adapter.send_async(request_info, nil, error_mapping)
4342
end
4443
##
@@ -51,8 +50,7 @@ def get(request_configuration=nil)
5150
request_configuration
5251
)
5352
error_mapping = Hash.new
54-
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
55-
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
53+
error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
5654
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Edge.create_from_discriminator_value(pn) }, error_mapping)
5755
end
5856
##
@@ -67,8 +65,7 @@ def patch(body, request_configuration=nil)
6765
body, request_configuration
6866
)
6967
error_mapping = Hash.new
70-
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
71-
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
68+
error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
7269
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Edge.create_from_discriminator_value(pn) }, error_mapping)
7370
end
7471
##
@@ -78,13 +75,13 @@ def patch(body, request_configuration=nil)
7875
##
7976
def to_delete_request_information(request_configuration=nil)
8077
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
81-
request_info.url_template = @url_template
82-
request_info.path_parameters = @path_parameters
83-
request_info.http_method = :DELETE
8478
unless request_configuration.nil?
8579
request_info.add_headers_from_raw_object(request_configuration.headers)
8680
request_info.add_request_options(request_configuration.options)
8781
end
82+
request_info.url_template = @url_template
83+
request_info.path_parameters = @path_parameters
84+
request_info.http_method = :DELETE
8885
return request_info
8986
end
9087
##
@@ -94,15 +91,15 @@ def to_delete_request_information(request_configuration=nil)
9491
##
9592
def to_get_request_information(request_configuration=nil)
9693
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
97-
request_info.url_template = @url_template
98-
request_info.path_parameters = @path_parameters
99-
request_info.http_method = :GET
100-
request_info.headers.add('Accept', 'application/json')
10194
unless request_configuration.nil?
10295
request_info.add_headers_from_raw_object(request_configuration.headers)
10396
request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters)
10497
request_info.add_request_options(request_configuration.options)
10598
end
99+
request_info.url_template = @url_template
100+
request_info.path_parameters = @path_parameters
101+
request_info.http_method = :GET
102+
request_info.headers.try_add('Accept', 'application/json')
106103
return request_info
107104
end
108105
##
@@ -114,17 +111,26 @@ def to_get_request_information(request_configuration=nil)
114111
def to_patch_request_information(body, request_configuration=nil)
115112
raise StandardError, 'body cannot be null' if body.nil?
116113
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
117-
request_info.url_template = @url_template
118-
request_info.path_parameters = @path_parameters
119-
request_info.http_method = :PATCH
120-
request_info.headers.add('Accept', 'application/json')
121114
unless request_configuration.nil?
122115
request_info.add_headers_from_raw_object(request_configuration.headers)
123116
request_info.add_request_options(request_configuration.options)
124117
end
125-
request_info.set_content_from_parsable(@request_adapter, "application/json", body)
118+
request_info.set_content_from_parsable(@request_adapter, 'application/json', body)
119+
request_info.url_template = @url_template
120+
request_info.path_parameters = @path_parameters
121+
request_info.http_method = :PATCH
122+
request_info.headers.try_add('Accept', 'application/json')
126123
return request_info
127124
end
125+
##
126+
## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
127+
## @param raw_url The raw URL to use for the request builder.
128+
## @return a edge_request_builder
129+
##
130+
def with_url(raw_url)
131+
raise StandardError, 'raw_url cannot be null' if raw_url.nil?
132+
return EdgeRequestBuilder.new(raw_url, @request_adapter)
133+
end
128134

129135
##
130136
# A container for Microsoft Edge resources. Read-only.

0 commit comments

Comments
 (0)