Skip to content

Commit

Permalink
Merge pull request #97 from microsoftgraph/v1.0/pipelinebuild/108103
Browse files Browse the repository at this point in the history
Generated  models and request builders
  • Loading branch information
baywet authored Mar 7, 2023
2 parents 13a3ebf + 60d9fa8 commit bf583b9
Show file tree
Hide file tree
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.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

## [0.17.0] - 2023-03-07

### Changed

- Weekly generation.

## [0.16.0] - 2023-02-21

### Changed
Expand Down
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

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
require_relative '../../../health_overviews'
require_relative '../../item'
require_relative '../issues'
require_relative './incident_report/incident_report_request_builder'
require_relative './item'
require_relative './microsoft_graph_incident_report/microsoft_graph_incident_report_request_builder'

module MicrosoftGraph
module Admin
Expand All @@ -23,8 +23,8 @@ class ServiceHealthIssueItemRequestBuilder

##
# Provides operations to call the incidentReport method.
def microsoft_graph_incident_report()
return MicrosoftGraph::Admin::ServiceAnnouncement::HealthOverviews::Item::Issues::Item::MicrosoftGraphIncidentReport::MicrosoftGraphIncidentReportRequestBuilder.new(@path_parameters, @request_adapter)
def incident_report()
return MicrosoftGraph::Admin::ServiceAnnouncement::HealthOverviews::Item::Issues::Item::IncidentReport::IncidentReportRequestBuilder.new(@path_parameters, @request_adapter)
end
##
# Path parameters for the request
Expand Down
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
Loading

0 comments on commit bf583b9

Please sign in to comment.