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

Commit f5cb075

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
Update generated files with build 181216
1 parent 6517532 commit f5cb075

File tree

18,618 files changed

+716902
-322746
lines changed

Some content is hidden

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

18,618 files changed

+716902
-322746
lines changed

lib/.kiota.log

Lines changed: 1398 additions & 701 deletions
Large diffs are not rendered by default.

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: 26 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,14 @@ 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
85+
request_info.headers.try_add('Accept', 'application/json')
8886
return request_info
8987
end
9088
##
@@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil)
9492
##
9593
def to_get_request_information(request_configuration=nil)
9694
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')
10195
unless request_configuration.nil?
10296
request_info.add_headers_from_raw_object(request_configuration.headers)
10397
request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters)
10498
request_info.add_request_options(request_configuration.options)
10599
end
100+
request_info.url_template = @url_template
101+
request_info.path_parameters = @path_parameters
102+
request_info.http_method = :GET
103+
request_info.headers.try_add('Accept', 'application/json')
106104
return request_info
107105
end
108106
##
@@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil)
114112
def to_patch_request_information(body, request_configuration=nil)
115113
raise StandardError, 'body cannot be null' if body.nil?
116114
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')
121115
unless request_configuration.nil?
122116
request_info.add_headers_from_raw_object(request_configuration.headers)
123117
request_info.add_request_options(request_configuration.options)
124118
end
125-
request_info.set_content_from_parsable(@request_adapter, "application/json", body)
119+
request_info.set_content_from_parsable(@request_adapter, 'application/json', body)
120+
request_info.url_template = @url_template
121+
request_info.path_parameters = @path_parameters
122+
request_info.http_method = :PATCH
123+
request_info.headers.try_add('Accept', 'application/json')
126124
return request_info
127125
end
126+
##
127+
## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
128+
## @param raw_url The raw URL to use for the request builder.
129+
## @return a edge_request_builder
130+
##
131+
def with_url(raw_url)
132+
raise StandardError, 'raw_url cannot be null' if raw_url.nil?
133+
return EdgeRequestBuilder.new(raw_url, @request_adapter)
134+
end
128135

129136
##
130137
# A container for Microsoft Edge resources. Read-only.

0 commit comments

Comments
 (0)