-
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 #78 from microsoftgraph/bugfix/path-length
bugfix/path length
- Loading branch information
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.
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
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.
1 change: 1 addition & 0 deletions
1
...soft_graph/admin/admin_request_builder.rb → lib/admin/admin_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
File renamed without changes.
81 changes: 81 additions & 0 deletions
81
lib/admin/service_announcement/health_overviews/count/count_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,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 |
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...views/health_overviews_request_builder.rb → ...views/health_overviews_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
File renamed without changes.
83 changes: 83 additions & 0 deletions
83
lib/admin/service_announcement/health_overviews/item/issues/count/count_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,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 |
File renamed without changes.
Oops, something went wrong.