Skip to content

Commit

Permalink
Merge pull request #78 from microsoftgraph/bugfix/path-length
Browse files Browse the repository at this point in the history
bugfix/path length
  • Loading branch information
baywet authored Jan 11, 2023
2 parents b889a9a + 7d807ea commit ebaf27d
Show file tree
Hide file tree
Showing 28,724 changed files with 1,166,925 additions and 1,155,372 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
61 changes: 52 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,58 @@
/.bundle/
/.yardoc
/_yardoc/
*.gem
*.rbc
/.config
/coverage/
/doc/
/InstalledFiles
/pkg/
/spec/reports/
/spec/examples.txt
/test/tmp/
/test/version_tmp/
/tmp/
.env
.DS_Store

# rspec failure tracking
.rspec_status
# Used by dotenv library to load environment variables.
# .env

# Ignore Byebug command history file.
.byebug_history

## Specific to RubyMotion:
.dat*
.repl_history
build/
*.bridgesupport
build-iPhoneOS/
build-iPhoneSimulator/

## Specific to RubyMotion (use of CocoaPods):
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# vendor/Pods/

## Documentation cache and generated files:
/.yardoc/
/_yardoc/
/doc/
/rdoc/

## Environment normalization:
/.bundle/
/vendor/bundle
/lib/bundler/man/

# for a library or gem, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
Gemfile.lock
.ruby-version
.ruby-gemset

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc

# Used by RuboCop. Remote config files pulled in from inherit_from directive.
# .rubocop-https?--*

Gemfile.lock
.rspec_status
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'microsoft_kiota_abstractions'
require_relative '../microsoft_graph'
require_relative '../models/admin'
require_relative '../models/o_data_errors/o_data_error'
require_relative './admin'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
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 './count'

module MicrosoftGraph::Admin::ServiceAnnouncement::HealthOverviews::Count
##
# Provides operations to count the resources in the collection.
class CountRequestBuilder

##
# 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 CountRequestBuilder 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/$count"
@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
##
## Get the number of the resource
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
## @return a Fiber of integer
##
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, number, error_mapping)
end
##
## Get the number of the resource
## @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
request_info.headers.add('Accept', 'text/plain')
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 CountRequestBuilderGetRequestConfiguration

##
# Request headers
attr_accessor :headers
##
# Request options
attr_accessor :options
end
end
end
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'microsoft_kiota_abstractions'
require_relative '../../../microsoft_graph'
require_relative '../../../models/o_data_errors/o_data_error'
require_relative '../../../models/service_health'
require_relative '../../../models/service_health_collection_response'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
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 './count'

module MicrosoftGraph::Admin::ServiceAnnouncement::HealthOverviews::Item::Issues::Count
##
# Provides operations to count the resources in the collection.
class CountRequestBuilder

##
# 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 CountRequestBuilder 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/$count"
@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
##
## Get the number of the resource
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
## @return a Fiber of integer
##
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, number, error_mapping)
end
##
## Get the number of the resource
## @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
request_info.headers.add('Accept', 'text/plain')
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 CountRequestBuilderGetRequestConfiguration

##
# Request headers
attr_accessor :headers
##
# Request options
attr_accessor :options
end
end
end
Loading

0 comments on commit ebaf27d

Please sign in to comment.