Skip to content

Commit

Permalink
Merge pull request #137 from microsoftgraph/v1.0/pipelinebuild/122457
Browse files Browse the repository at this point in the history
Generated  models and request builders
  • Loading branch information
baywet authored Aug 10, 2023
2 parents cafe35d + 27e54fb commit 5f4e73d
Show file tree
Hide file tree
Showing 14,127 changed files with 309,094 additions and 181,913 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

## [0.22.0] - 2023-08-10

### Changed

- Weekly generation.
- BREAKING: models that were in subnamespaces are now in the main model namespace to avoid circular dependencies. e.g. `MicrosoftGraph::Models::CallRecords::CallRecord` in now `MicrosoftGraph::Models::CallRecordsCallRecord`.

## [0.21.0] - 2023-04-06

### Changed
Expand Down
701 changes: 701 additions & 0 deletions lib/.kiota.log

Large diffs are not rendered by default.

16 changes: 11 additions & 5 deletions lib/admin/admin_request_builder.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
require 'microsoft_kiota_abstractions'
require_relative '../microsoft_graph'
require_relative '../models/admin'
require_relative '../models/o_data_errors/o_data_error'
require_relative '../models/o_data_errors_o_data_error'
require_relative './admin'
require_relative './edge/edge_request_builder'
require_relative './service_announcement/service_announcement_request_builder'
require_relative './sharepoint/sharepoint_request_builder'

module MicrosoftGraph
module Admin
Expand All @@ -23,6 +24,11 @@ def service_announcement()
return MicrosoftGraph::Admin::ServiceAnnouncement::ServiceAnnouncementRequestBuilder.new(@path_parameters, @request_adapter)
end
##
# Provides operations to manage the sharepoint property of the microsoft.graph.admin entity.
def sharepoint()
return MicrosoftGraph::Admin::Sharepoint::SharepointRequestBuilder.new(@path_parameters, @request_adapter)
end
##
## Instantiates a new AdminRequestBuilder and sets the default values.
## @param path_parameters Path parameters for the request
## @param request_adapter The request adapter to use to execute the requests.
Expand All @@ -41,8 +47,8 @@ def get(request_configuration=nil)
request_configuration
)
error_mapping = Hash.new
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
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) }
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Admin.create_from_discriminator_value(pn) }, error_mapping)
end
##
Expand All @@ -57,8 +63,8 @@ def patch(body, request_configuration=nil)
body, request_configuration
)
error_mapping = Hash.new
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
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) }
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Admin.create_from_discriminator_value(pn) }, error_mapping)
end
##
Expand Down
20 changes: 10 additions & 10 deletions lib/admin/edge/edge_request_builder.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'microsoft_kiota_abstractions'
require_relative '../../microsoft_graph'
require_relative '../../models/edge'
require_relative '../../models/o_data_errors/o_data_error'
require_relative '../../models/o_data_errors_o_data_error'
require_relative '../admin'
require_relative './edge'
require_relative './internet_explorer_mode/internet_explorer_mode_request_builder'
Expand Down Expand Up @@ -37,12 +37,12 @@ def delete(request_configuration=nil)
request_configuration
)
error_mapping = Hash.new
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
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) }
return @request_adapter.send_async(request_info, nil, error_mapping)
end
##
## Get edge from admin
## A container for Microsoft Edge resources. Read-only.
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
## @return a Fiber of edge
##
Expand All @@ -51,8 +51,8 @@ def get(request_configuration=nil)
request_configuration
)
error_mapping = Hash.new
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
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) }
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Edge.create_from_discriminator_value(pn) }, error_mapping)
end
##
Expand All @@ -67,8 +67,8 @@ def patch(body, request_configuration=nil)
body, request_configuration
)
error_mapping = Hash.new
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
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) }
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Edge.create_from_discriminator_value(pn) }, error_mapping)
end
##
Expand All @@ -88,7 +88,7 @@ def to_delete_request_information(request_configuration=nil)
return request_info
end
##
## Get edge from admin
## A container for Microsoft Edge resources. Read-only.
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
## @return a request_information
##
Expand Down Expand Up @@ -127,7 +127,7 @@ def to_patch_request_information(body, request_configuration=nil)
end

##
# Get edge from admin
# A container for Microsoft Edge resources. Read-only.
class EdgeRequestBuilderGetQueryParameters

##
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
require 'microsoft_kiota_abstractions'
require_relative '../../../microsoft_graph'
require_relative '../../../models/internet_explorer_mode'
require_relative '../../../models/o_data_errors/o_data_error'
require_relative '../../../models/o_data_errors_o_data_error'
require_relative '../../admin'
require_relative '../edge'
require_relative './internet_explorer_mode'
require_relative './site_lists/item/browser_site_list_item_request_builder'
require_relative './site_lists/site_lists_request_builder'

module MicrosoftGraph
Expand Down Expand Up @@ -40,12 +39,12 @@ def delete(request_configuration=nil)
request_configuration
)
error_mapping = Hash.new
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
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) }
return @request_adapter.send_async(request_info, nil, error_mapping)
end
##
## Get internetExplorerMode from admin
## A container for Internet Explorer mode resources.
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
## @return a Fiber of internet_explorer_mode
##
Expand All @@ -54,8 +53,8 @@ def get(request_configuration=nil)
request_configuration
)
error_mapping = Hash.new
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
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) }
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::InternetExplorerMode.create_from_discriminator_value(pn) }, error_mapping)
end
##
Expand All @@ -70,22 +69,11 @@ def patch(body, request_configuration=nil)
body, request_configuration
)
error_mapping = Hash.new
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
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) }
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::InternetExplorerMode.create_from_discriminator_value(pn) }, error_mapping)
end
##
## Provides operations to manage the siteLists property of the microsoft.graph.internetExplorerMode entity.
## @param id Unique identifier of the item
## @return a browser_site_list_item_request_builder
##
def site_lists_by_id(id)
raise StandardError, 'id cannot be null' if id.nil?
url_tpl_params = @path_parameters.clone
url_tpl_params["browserSiteList%2Did"] = id
return MicrosoftGraph::Admin::Edge::InternetExplorerMode::SiteLists::Item::BrowserSiteListItemRequestBuilder.new(url_tpl_params, @request_adapter)
end
##
## Delete navigation property internetExplorerMode for admin
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
## @return a request_information
Expand All @@ -102,7 +90,7 @@ def to_delete_request_information(request_configuration=nil)
return request_info
end
##
## Get internetExplorerMode from admin
## A container for Internet Explorer mode resources.
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
## @return a request_information
##
Expand Down Expand Up @@ -141,7 +129,7 @@ def to_patch_request_information(body, request_configuration=nil)
end

##
# Get internetExplorerMode from admin
# A container for Internet Explorer mode resources.
class InternetExplorerModeRequestBuilderGetQueryParameters

##
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'microsoft_kiota_abstractions'
require_relative '../../../../../microsoft_graph'
require_relative '../../../../../models/o_data_errors/o_data_error'
require_relative '../../../../../models/o_data_errors_o_data_error'
require_relative '../../../../admin'
require_relative '../../../edge'
require_relative '../../internet_explorer_mode'
Expand Down Expand Up @@ -36,8 +36,8 @@ def get(request_configuration=nil)
request_configuration
)
error_mapping = Hash.new
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
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) }
return @request_adapter.send_async(request_info, number, error_mapping)
end
##
Expand Down
Loading

0 comments on commit 5f4e73d

Please sign in to comment.