-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from microsoftgraph/v1.0/pipelinebuild/108103
Generated models and request builders
- Loading branch information
Showing
10,862 changed files
with
390,419 additions
and
409,481 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
97 changes: 97 additions & 0 deletions
97
...ment/health_overviews/item/issues/item/incident_report/incident_report_request_builder.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
require 'microsoft_kiota_abstractions' | ||
require_relative '../../../../../../../microsoft_graph' | ||
require_relative '../../../../../../../models/o_data_errors/o_data_error' | ||
require_relative '../../../../../../admin' | ||
require_relative '../../../../../service_announcement' | ||
require_relative '../../../../health_overviews' | ||
require_relative '../../../item' | ||
require_relative '../../issues' | ||
require_relative '../item' | ||
require_relative './incident_report' | ||
|
||
module MicrosoftGraph | ||
module Admin | ||
module ServiceAnnouncement | ||
module HealthOverviews | ||
module Item | ||
module Issues | ||
module Item | ||
module IncidentReport | ||
## | ||
# Provides operations to call the incidentReport method. | ||
class IncidentReportRequestBuilder | ||
|
||
## | ||
# Path parameters for the request | ||
@path_parameters | ||
## | ||
# The request adapter to use to execute the requests. | ||
@request_adapter | ||
## | ||
# Url template to use to build the URL for the current request builder | ||
@url_template | ||
## | ||
## Instantiates a new IncidentReportRequestBuilder and sets the default values. | ||
## @param pathParameters Path parameters for the request | ||
## @param requestAdapter The request adapter to use to execute the requests. | ||
## @return a void | ||
## | ||
def initialize(path_parameters, request_adapter) | ||
raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? | ||
raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? | ||
@url_template = "{+baseurl}/admin/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}/issues/{serviceHealthIssue%2Did}/incidentReport()" | ||
@request_adapter = request_adapter | ||
path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String | ||
@path_parameters = path_parameters if path_parameters.is_a? Hash | ||
end | ||
## | ||
## Invoke function incidentReport | ||
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. | ||
## @return a Fiber of binary | ||
## | ||
def get(request_configuration=nil) | ||
request_info = self.to_get_request_information( | ||
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) } | ||
return @request_adapter.send_async(request_info, Binary, error_mapping) | ||
end | ||
## | ||
## Invoke function incidentReport | ||
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. | ||
## @return a request_information | ||
## | ||
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 | ||
unless request_configuration.nil? | ||
request_info.add_headers_from_raw_object(request_configuration.headers) | ||
request_info.add_request_options(request_configuration.options) | ||
end | ||
return request_info | ||
end | ||
|
||
## | ||
# Configuration for the request such as headers, query parameters, and middleware options. | ||
class IncidentReportRequestBuilderGetRequestConfiguration | ||
|
||
## | ||
# Request headers | ||
attr_accessor :headers | ||
## | ||
# Request options | ||
attr_accessor :options | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
97 changes: 0 additions & 97 deletions
97
...s/item/microsoft_graph_incident_report/microsoft_graph_incident_report_request_builder.rb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
91 changes: 91 additions & 0 deletions
91
...admin/service_announcement/issues/item/incident_report/incident_report_request_builder.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
require 'microsoft_kiota_abstractions' | ||
require_relative '../../../../../microsoft_graph' | ||
require_relative '../../../../../models/o_data_errors/o_data_error' | ||
require_relative '../../../../admin' | ||
require_relative '../../../service_announcement' | ||
require_relative '../../issues' | ||
require_relative '../item' | ||
require_relative './incident_report' | ||
|
||
module MicrosoftGraph | ||
module Admin | ||
module ServiceAnnouncement | ||
module Issues | ||
module Item | ||
module IncidentReport | ||
## | ||
# Provides operations to call the incidentReport method. | ||
class IncidentReportRequestBuilder | ||
|
||
## | ||
# Path parameters for the request | ||
@path_parameters | ||
## | ||
# The request adapter to use to execute the requests. | ||
@request_adapter | ||
## | ||
# Url template to use to build the URL for the current request builder | ||
@url_template | ||
## | ||
## Instantiates a new IncidentReportRequestBuilder and sets the default values. | ||
## @param pathParameters Path parameters for the request | ||
## @param requestAdapter The request adapter to use to execute the requests. | ||
## @return a void | ||
## | ||
def initialize(path_parameters, request_adapter) | ||
raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? | ||
raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? | ||
@url_template = "{+baseurl}/admin/serviceAnnouncement/issues/{serviceHealthIssue%2Did}/incidentReport()" | ||
@request_adapter = request_adapter | ||
path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String | ||
@path_parameters = path_parameters if path_parameters.is_a? Hash | ||
end | ||
## | ||
## Invoke function incidentReport | ||
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. | ||
## @return a Fiber of binary | ||
## | ||
def get(request_configuration=nil) | ||
request_info = self.to_get_request_information( | ||
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) } | ||
return @request_adapter.send_async(request_info, Binary, error_mapping) | ||
end | ||
## | ||
## Invoke function incidentReport | ||
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. | ||
## @return a request_information | ||
## | ||
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 | ||
unless request_configuration.nil? | ||
request_info.add_headers_from_raw_object(request_configuration.headers) | ||
request_info.add_request_options(request_configuration.options) | ||
end | ||
return request_info | ||
end | ||
|
||
## | ||
# Configuration for the request such as headers, query parameters, and middleware options. | ||
class IncidentReportRequestBuilderGetRequestConfiguration | ||
|
||
## | ||
# Request headers | ||
attr_accessor :headers | ||
## | ||
# Request options | ||
attr_accessor :options | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
Oops, something went wrong.