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 #157

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.
580 changes: 289 additions & 291 deletions lib/.kiota.log

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions lib/admin/admin_request_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,15 @@ def to_patch_request_information(body, request_configuration=nil)
request_info.set_content_from_parsable(@request_adapter, "application/json", body)
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
9 changes: 9 additions & 0 deletions lib/admin/edge/edge_request_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,15 @@ def to_patch_request_information(body, request_configuration=nil)
request_info.set_content_from_parsable(@request_adapter, "application/json", body)
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 @@ -127,6 +127,15 @@ def to_patch_request_information(body, request_configuration=nil)
request_info.set_content_from_parsable(@request_adapter, "application/json", body)
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 @@ -58,6 +58,15 @@ def to_get_request_information(request_configuration=nil)
end
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
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def initialize(path_parameters, request_adapter)
super(path_parameters, request_adapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}{?%24select,%24expand}")
end
##
## Delete a browserSiteList object.
## Delete a browserSiteList object. This API is supported in the following national cloud deployments.
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
## @return a Fiber of void
##
Expand All @@ -60,7 +60,7 @@ def delete(request_configuration=nil)
return @request_adapter.send_async(request_info, nil, error_mapping)
end
##
## Get a browserSiteList that contains browserSite and browserSharedCookie resources.
## Get a browserSiteList that contains browserSite and browserSharedCookie resources. This API is supported in the following national cloud deployments.
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
## @return a Fiber of browser_site_list
##
Expand All @@ -74,7 +74,7 @@ def get(request_configuration=nil)
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BrowserSiteList.create_from_discriminator_value(pn) }, error_mapping)
end
##
## Update the properties of a browserSiteList object.
## Update the properties of a browserSiteList object. This API is supported in the following national cloud deployments.
## @param body The request body
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
## @return a Fiber of browser_site_list
Expand All @@ -90,7 +90,7 @@ def patch(body, request_configuration=nil)
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BrowserSiteList.create_from_discriminator_value(pn) }, error_mapping)
end
##
## Delete a browserSiteList object.
## Delete a browserSiteList object. This API is supported in the following national cloud deployments.
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
## @return a request_information
##
Expand All @@ -106,7 +106,7 @@ def to_delete_request_information(request_configuration=nil)
return request_info
end
##
## Get a browserSiteList that contains browserSite and browserSharedCookie resources.
## Get a browserSiteList that contains browserSite and browserSharedCookie resources. This API is supported in the following national cloud deployments.
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
## @return a request_information
##
Expand All @@ -124,7 +124,7 @@ def to_get_request_information(request_configuration=nil)
return request_info
end
##
## Update the properties of a browserSiteList object.
## Update the properties of a browserSiteList object. This API is supported in the following national cloud deployments.
## @param body The request body
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
## @return a request_information
Expand All @@ -143,9 +143,18 @@ def to_patch_request_information(body, request_configuration=nil)
request_info.set_content_from_parsable(@request_adapter, "application/json", body)
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 browser_site_list_item_request_builder
##
def with_url(raw_url)
raise StandardError, 'raw_url cannot be null' if raw_url.nil?
return BrowserSiteListItemRequestBuilder.new(raw_url, @request_adapter)
end

##
# Get a browserSiteList that contains browserSite and browserSharedCookie resources.
# Get a browserSiteList that contains browserSite and browserSharedCookie resources. This API is supported in the following national cloud deployments.
class BrowserSiteListItemRequestBuilderGetQueryParameters

##
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def initialize(path_parameters, request_adapter)
super(path_parameters, request_adapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/publish")
end
##
## Publish the specified browserSiteList for devices to download.
## Publish the specified browserSiteList for devices to download. This API is supported in the following national cloud deployments.
## @param body The request body
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
## @return a Fiber of browser_site_list
Expand All @@ -46,7 +46,7 @@ def post(body, request_configuration=nil)
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::BrowserSiteList.create_from_discriminator_value(pn) }, error_mapping)
end
##
## Publish the specified browserSiteList for devices to download.
## Publish the specified browserSiteList for devices to download. This API is supported in the following national cloud deployments.
## @param body The request body
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
## @return a request_information
Expand All @@ -65,6 +65,15 @@ def to_post_request_information(body, request_configuration=nil)
request_info.set_content_from_parsable(@request_adapter, "application/json", body)
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 publish_request_builder
##
def with_url(raw_url)
raise StandardError, 'raw_url cannot be null' if raw_url.nil?
return PublishRequestBuilder.new(raw_url, @request_adapter)
end
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ def to_get_request_information(request_configuration=nil)
end
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