Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated models and request builders #161

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
606 changes: 303 additions & 303 deletions lib/.kiota.log

Large diffs are not rendered by default.

31 changes: 23 additions & 8 deletions lib/admin/admin_request_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
require_relative '../models/o_data_errors_o_data_error'
require_relative './admin'
require_relative './edge/edge_request_builder'
require_relative './people/people_request_builder'
require_relative './service_announcement/service_announcement_request_builder'
require_relative './sharepoint/sharepoint_request_builder'

Expand All @@ -19,6 +20,11 @@ def edge()
return MicrosoftGraph::Admin::Edge::EdgeRequestBuilder.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 serviceAnnouncement property of the microsoft.graph.admin entity.
def service_announcement()
return MicrosoftGraph::Admin::ServiceAnnouncement::ServiceAnnouncementRequestBuilder.new(@path_parameters, @request_adapter)
Expand Down Expand Up @@ -74,15 +80,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;q=1')
return request_info
end
##
Expand All @@ -94,17 +100,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.url_template = @url_template
request_info.path_parameters = @path_parameters
request_info.http_method = :PATCH
request_info.headers.try_add('Accept', 'application/json;q=1')
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
32 changes: 21 additions & 11 deletions lib/admin/edge/edge_request_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,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, application/json')
return request_info
end
##
Expand All @@ -94,15 +95,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;q=1')
return request_info
end
##
Expand All @@ -114,17 +115,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.url_template = @url_template
request_info.path_parameters = @path_parameters
request_info.http_method = :PATCH
request_info.headers.try_add('Accept', 'application/json;q=1')
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
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,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, application/json')
return request_info
end
##
Expand All @@ -96,15 +97,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;q=1')
return request_info
end
##
Expand All @@ -116,17 +117,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.url_template = @url_template
request_info.path_parameters = @path_parameters
request_info.http_method = :PATCH
request_info.headers.try_add('Accept', 'application/json;q=1')
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 internet_explorer_mode_request_builder
##
def with_url(raw_url)
raise StandardError, 'raw_url cannot be null' if raw_url.nil?
return InternetExplorerModeRequestBuilder.new(raw_url, @request_adapter)
end

##
# A container for Internet Explorer mode resources.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,26 @@ def get(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', 'text/plain')
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', 'text/plain;q=0.9')
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 count_request_builder
##
def with_url(raw_url)
raise StandardError, 'raw_url cannot be null' if raw_url.nil?
return CountRequestBuilder.new(raw_url, @request_adapter)
end

##
# Get the number of the resource
Expand Down
Loading
Loading