Skip to content

Commit

Permalink
Update generated files with build 163754
Browse files Browse the repository at this point in the history
  • Loading branch information
Microsoft Graph DevX Tooling authored and Microsoft Graph DevX Tooling committed Sep 18, 2024
1 parent c0f647f commit a39576a
Show file tree
Hide file tree
Showing 18,197 changed files with 681,393 additions and 321,733 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
53 changes: 39 additions & 14 deletions lib/admin/admin_request_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
require_relative '../models/o_data_errors_o_data_error'
require_relative './admin'
require_relative './edge/edge_request_builder'
require_relative './microsoft365_apps/microsoft365_apps_request_builder'
require_relative './people/people_request_builder'
require_relative './report_settings/report_settings_request_builder'
require_relative './service_announcement/service_announcement_request_builder'
require_relative './sharepoint/sharepoint_request_builder'

Expand All @@ -19,6 +22,21 @@ def edge()
return MicrosoftGraph::Admin::Edge::EdgeRequestBuilder.new(@path_parameters, @request_adapter)
end
##
# Provides operations to manage the microsoft365Apps property of the microsoft.graph.admin entity.
def microsoft365_apps()
return MicrosoftGraph::Admin::Microsoft365Apps::Microsoft365AppsRequestBuilder.new(@path_parameters, @request_adapter)
end
##
# Provides operations to manage the people property of the microsoft.graph.admin entity.
def people()
return MicrosoftGraph::Admin::People::PeopleRequestBuilder.new(@path_parameters, @request_adapter)
end
##
# Provides operations to manage the reportSettings property of the microsoft.graph.admin entity.
def report_settings()
return MicrosoftGraph::Admin::ReportSettings::ReportSettingsRequestBuilder.new(@path_parameters, @request_adapter)
end
##
# Provides operations to manage the serviceAnnouncement property of the microsoft.graph.admin entity.
def service_announcement()
return MicrosoftGraph::Admin::ServiceAnnouncement::ServiceAnnouncementRequestBuilder.new(@path_parameters, @request_adapter)
Expand All @@ -35,7 +53,7 @@ def sharepoint()
## @return a void
##
def initialize(path_parameters, request_adapter)
super(path_parameters, request_adapter, "{+baseurl}/admin{?%24select,%24expand}")
super(path_parameters, request_adapter, "{+baseurl}/admin{?%24expand,%24select}")
end
##
## Get admin
Expand All @@ -47,8 +65,7 @@ def get(request_configuration=nil)
request_configuration
)
error_mapping = Hash.new
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Admin.create_from_discriminator_value(pn) }, error_mapping)
end
##
Expand All @@ -63,8 +80,7 @@ def patch(body, request_configuration=nil)
body, request_configuration
)
error_mapping = Hash.new
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Admin.create_from_discriminator_value(pn) }, error_mapping)
end
##
Expand All @@ -74,15 +90,15 @@ def patch(body, request_configuration=nil)
##
def to_get_request_information(request_configuration=nil)
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
request_info.url_template = @url_template
request_info.path_parameters = @path_parameters
request_info.http_method = :GET
request_info.headers.add('Accept', 'application/json')
unless request_configuration.nil?
request_info.add_headers_from_raw_object(request_configuration.headers)
request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters)
request_info.add_request_options(request_configuration.options)
end
request_info.url_template = @url_template
request_info.path_parameters = @path_parameters
request_info.http_method = :GET
request_info.headers.try_add('Accept', 'application/json')
return request_info
end
##
Expand All @@ -94,17 +110,26 @@ def to_get_request_information(request_configuration=nil)
def to_patch_request_information(body, request_configuration=nil)
raise StandardError, 'body cannot be null' if body.nil?
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
request_info.url_template = @url_template
request_info.path_parameters = @path_parameters
request_info.http_method = :PATCH
request_info.headers.add('Accept', 'application/json')
unless request_configuration.nil?
request_info.add_headers_from_raw_object(request_configuration.headers)
request_info.add_request_options(request_configuration.options)
end
request_info.set_content_from_parsable(@request_adapter, "application/json", body)
request_info.set_content_from_parsable(@request_adapter, 'application/json', body)
request_info.url_template = @url_template
request_info.path_parameters = @path_parameters
request_info.http_method = :PATCH
request_info.headers.try_add('Accept', 'application/json')
return request_info
end
##
## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
## @param raw_url The raw URL to use for the request builder.
## @return a admin_request_builder
##
def with_url(raw_url)
raise StandardError, 'raw_url cannot be null' if raw_url.nil?
return AdminRequestBuilder.new(raw_url, @request_adapter)
end

##
# Get admin
Expand Down
45 changes: 26 additions & 19 deletions lib/admin/edge/edge_request_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def internet_explorer_mode()
## @return a void
##
def initialize(path_parameters, request_adapter)
super(path_parameters, request_adapter, "{+baseurl}/admin/edge{?%24select,%24expand}")
super(path_parameters, request_adapter, "{+baseurl}/admin/edge{?%24expand,%24select}")
end
##
## Delete navigation property edge for admin
Expand All @@ -37,8 +37,7 @@ def delete(request_configuration=nil)
request_configuration
)
error_mapping = Hash.new
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
return @request_adapter.send_async(request_info, nil, error_mapping)
end
##
Expand All @@ -51,8 +50,7 @@ def get(request_configuration=nil)
request_configuration
)
error_mapping = Hash.new
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Edge.create_from_discriminator_value(pn) }, error_mapping)
end
##
Expand All @@ -67,8 +65,7 @@ def patch(body, request_configuration=nil)
body, request_configuration
)
error_mapping = Hash.new
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
error_mapping["XXX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Edge.create_from_discriminator_value(pn) }, error_mapping)
end
##
Expand All @@ -78,13 +75,14 @@ def patch(body, request_configuration=nil)
##
def to_delete_request_information(request_configuration=nil)
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
request_info.url_template = @url_template
request_info.path_parameters = @path_parameters
request_info.http_method = :DELETE
unless request_configuration.nil?
request_info.add_headers_from_raw_object(request_configuration.headers)
request_info.add_request_options(request_configuration.options)
end
request_info.url_template = @url_template
request_info.path_parameters = @path_parameters
request_info.http_method = :DELETE
request_info.headers.try_add('Accept', 'application/json')
return request_info
end
##
Expand All @@ -94,15 +92,15 @@ def to_delete_request_information(request_configuration=nil)
##
def to_get_request_information(request_configuration=nil)
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
request_info.url_template = @url_template
request_info.path_parameters = @path_parameters
request_info.http_method = :GET
request_info.headers.add('Accept', 'application/json')
unless request_configuration.nil?
request_info.add_headers_from_raw_object(request_configuration.headers)
request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters)
request_info.add_request_options(request_configuration.options)
end
request_info.url_template = @url_template
request_info.path_parameters = @path_parameters
request_info.http_method = :GET
request_info.headers.try_add('Accept', 'application/json')
return request_info
end
##
Expand All @@ -114,17 +112,26 @@ def to_get_request_information(request_configuration=nil)
def to_patch_request_information(body, request_configuration=nil)
raise StandardError, 'body cannot be null' if body.nil?
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
request_info.url_template = @url_template
request_info.path_parameters = @path_parameters
request_info.http_method = :PATCH
request_info.headers.add('Accept', 'application/json')
unless request_configuration.nil?
request_info.add_headers_from_raw_object(request_configuration.headers)
request_info.add_request_options(request_configuration.options)
end
request_info.set_content_from_parsable(@request_adapter, "application/json", body)
request_info.set_content_from_parsable(@request_adapter, 'application/json', body)
request_info.url_template = @url_template
request_info.path_parameters = @path_parameters
request_info.http_method = :PATCH
request_info.headers.try_add('Accept', 'application/json')
return request_info
end
##
## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
## @param raw_url The raw URL to use for the request builder.
## @return a edge_request_builder
##
def with_url(raw_url)
raise StandardError, 'raw_url cannot be null' if raw_url.nil?
return EdgeRequestBuilder.new(raw_url, @request_adapter)
end

##
# A container for Microsoft Edge resources. Read-only.
Expand Down
Loading

0 comments on commit a39576a

Please sign in to comment.