Skip to content

Commit

Permalink
Update generated files with build 167322
Browse files Browse the repository at this point in the history
  • Loading branch information
Microsoft Graph DevX Tooling authored and Microsoft Graph DevX Tooling committed Oct 16, 2024
1 parent a222d3b commit f1d5d9d
Show file tree
Hide file tree
Showing 31,824 changed files with 1,150,684 additions and 578,808 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def by_access_review_decision_id(access_review_decision_id)
## @return a void
##
def initialize(path_parameters, request_adapter)
super(path_parameters, request_adapter, "{+baseurl}/accessReviewDecisions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}")
super(path_parameters, request_adapter, "{+baseurl}/accessReviewDecisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}")
end
##
## Get entities from accessReviewDecisions
Expand All @@ -48,8 +48,7 @@ def get(request_configuration=nil)
request_configuration
)
error_mapping = Hash.new
error_mapping["4XX"] = lambda {|pn| MicrosoftGraphBeta::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
error_mapping["5XX"] = lambda {|pn| MicrosoftGraphBeta::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
error_mapping["XXX"] = lambda {|pn| MicrosoftGraphBeta::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraphBeta::Models::AccessReviewDecisionCollectionResponse.create_from_discriminator_value(pn) }, error_mapping)
end
##
Expand All @@ -64,8 +63,7 @@ def post(body, request_configuration=nil)
body, request_configuration
)
error_mapping = Hash.new
error_mapping["4XX"] = lambda {|pn| MicrosoftGraphBeta::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
error_mapping["5XX"] = lambda {|pn| MicrosoftGraphBeta::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
error_mapping["XXX"] = lambda {|pn| MicrosoftGraphBeta::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraphBeta::Models::AccessReviewDecision.create_from_discriminator_value(pn) }, error_mapping)
end
##
Expand All @@ -75,15 +73,15 @@ def post(body, request_configuration=nil)
##
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', 'application/json')
unless request_configuration.nil?
request_info.add_headers_from_raw_object(request_configuration.headers)
request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters)
request_info.add_request_options(request_configuration.options)
end
request_info.url_template = @url_template
request_info.path_parameters = @path_parameters
request_info.http_method = :GET
request_info.headers.try_add('Accept', 'application/json')
return request_info
end
##
Expand All @@ -95,17 +93,26 @@ def to_get_request_information(request_configuration=nil)
def to_post_request_information(body, request_configuration=nil)
raise StandardError, 'body cannot be null' if body.nil?
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
request_info.url_template = @url_template
request_info.path_parameters = @path_parameters
request_info.http_method = :POST
request_info.headers.add('Accept', 'application/json')
unless request_configuration.nil?
request_info.add_headers_from_raw_object(request_configuration.headers)
request_info.add_request_options(request_configuration.options)
end
request_info.set_content_from_parsable(@request_adapter, "application/json", body)
request_info.set_content_from_parsable(@request_adapter, 'application/json', body)
request_info.url_template = @url_template
request_info.path_parameters = @path_parameters
request_info.http_method = :POST
request_info.headers.try_add('Accept', 'application/json')
return request_info
end
##
## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
## @param raw_url The raw URL to use for the request builder.
## @return a access_review_decisions_request_builder
##
def with_url(raw_url)
raise StandardError, 'raw_url cannot be null' if raw_url.nil?
return AccessReviewDecisionsRequestBuilder.new(raw_url, @request_adapter)
end

##
# Get entities from accessReviewDecisions
Expand Down
22 changes: 15 additions & 7 deletions lib/access_review_decisions/count/count_request_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
## @return a void
##
def initialize(path_parameters, request_adapter)
super(path_parameters, request_adapter, "{+baseurl}/accessReviewDecisions/$count{?%24search,%24filter}")
super(path_parameters, request_adapter, "{+baseurl}/accessReviewDecisions/$count{?%24filter,%24search}")
end
##
## Get the number of the resource
Expand All @@ -30,8 +30,7 @@ def get(request_configuration=nil)
request_configuration
)
error_mapping = Hash.new
error_mapping["4XX"] = lambda {|pn| MicrosoftGraphBeta::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
error_mapping["5XX"] = lambda {|pn| MicrosoftGraphBeta::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
error_mapping["XXX"] = lambda {|pn| MicrosoftGraphBeta::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
return @request_adapter.send_async(request_info, number, error_mapping)
end
##
Expand All @@ -41,17 +40,26 @@ def get(request_configuration=nil)
##
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.set_query_string_parameters_from_raw_object(request_configuration.query_parameters)
request_info.add_request_options(request_configuration.options)
end
request_info.url_template = @url_template
request_info.path_parameters = @path_parameters
request_info.http_method = :GET
request_info.headers.try_add('Accept', 'text/plain;q=0.9')
return request_info
end
##
## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
## @param raw_url The raw URL to use for the request builder.
## @return a count_request_builder
##
def with_url(raw_url)
raise StandardError, 'raw_url cannot be null' if raw_url.nil?
return CountRequestBuilder.new(raw_url, @request_adapter)
end

##
# Get the number of the resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class AccessReviewDecisionItemRequestBuilder < MicrosoftKiotaAbstractions::BaseR
## @return a void
##
def initialize(path_parameters, request_adapter)
super(path_parameters, request_adapter, "{+baseurl}/accessReviewDecisions/{accessReviewDecision%2Did}{?%24select,%24expand}")
super(path_parameters, request_adapter, "{+baseurl}/accessReviewDecisions/{accessReviewDecision%2Did}{?%24expand,%24select}")
end
##
## Delete entity from accessReviewDecisions
Expand All @@ -31,8 +31,7 @@ def delete(request_configuration=nil)
request_configuration
)
error_mapping = Hash.new
error_mapping["4XX"] = lambda {|pn| MicrosoftGraphBeta::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
error_mapping["5XX"] = lambda {|pn| MicrosoftGraphBeta::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
error_mapping["XXX"] = lambda {|pn| MicrosoftGraphBeta::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
return @request_adapter.send_async(request_info, nil, error_mapping)
end
##
Expand All @@ -45,8 +44,7 @@ def get(request_configuration=nil)
request_configuration
)
error_mapping = Hash.new
error_mapping["4XX"] = lambda {|pn| MicrosoftGraphBeta::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
error_mapping["5XX"] = lambda {|pn| MicrosoftGraphBeta::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
error_mapping["XXX"] = lambda {|pn| MicrosoftGraphBeta::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraphBeta::Models::AccessReviewDecision.create_from_discriminator_value(pn) }, error_mapping)
end
##
Expand All @@ -61,8 +59,7 @@ def patch(body, request_configuration=nil)
body, request_configuration
)
error_mapping = Hash.new
error_mapping["4XX"] = lambda {|pn| MicrosoftGraphBeta::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
error_mapping["5XX"] = lambda {|pn| MicrosoftGraphBeta::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
error_mapping["XXX"] = lambda {|pn| MicrosoftGraphBeta::Models::ODataErrorsODataError.create_from_discriminator_value(pn) }
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraphBeta::Models::AccessReviewDecision.create_from_discriminator_value(pn) }, error_mapping)
end
##
Expand All @@ -72,13 +69,14 @@ def patch(body, request_configuration=nil)
##
def to_delete_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 = :DELETE
unless request_configuration.nil?
request_info.add_headers_from_raw_object(request_configuration.headers)
request_info.add_request_options(request_configuration.options)
end
request_info.url_template = @url_template
request_info.path_parameters = @path_parameters
request_info.http_method = :DELETE
request_info.headers.try_add('Accept', 'application/json')
return request_info
end
##
Expand All @@ -88,15 +86,15 @@ def to_delete_request_information(request_configuration=nil)
##
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', 'application/json')
unless request_configuration.nil?
request_info.add_headers_from_raw_object(request_configuration.headers)
request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters)
request_info.add_request_options(request_configuration.options)
end
request_info.url_template = @url_template
request_info.path_parameters = @path_parameters
request_info.http_method = :GET
request_info.headers.try_add('Accept', 'application/json')
return request_info
end
##
Expand All @@ -108,17 +106,26 @@ def to_get_request_information(request_configuration=nil)
def to_patch_request_information(body, request_configuration=nil)
raise StandardError, 'body cannot be null' if body.nil?
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
request_info.url_template = @url_template
request_info.path_parameters = @path_parameters
request_info.http_method = :PATCH
request_info.headers.add('Accept', 'application/json')
unless request_configuration.nil?
request_info.add_headers_from_raw_object(request_configuration.headers)
request_info.add_request_options(request_configuration.options)
end
request_info.set_content_from_parsable(@request_adapter, "application/json", body)
request_info.set_content_from_parsable(@request_adapter, 'application/json', body)
request_info.url_template = @url_template
request_info.path_parameters = @path_parameters
request_info.http_method = :PATCH
request_info.headers.try_add('Accept', 'application/json')
return request_info
end
##
## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
## @param raw_url The raw URL to use for the request builder.
## @return a access_review_decision_item_request_builder
##
def with_url(raw_url)
raise StandardError, 'raw_url cannot be null' if raw_url.nil?
return AccessReviewDecisionItemRequestBuilder.new(raw_url, @request_adapter)
end

##
# Get entity from accessReviewDecisions by key
Expand Down
Loading

0 comments on commit f1d5d9d

Please sign in to comment.