Skip to content

Commit

Permalink
Merge pull request #100 from microsoftgraph/v1.0/pipelinebuild/109147
Browse files Browse the repository at this point in the history
Generated  models and request builders
  • Loading branch information
baywet authored Mar 14, 2023
2 parents 776238f + 2009896 commit f8790b3
Show file tree
Hide file tree
Showing 264 changed files with 3,171 additions and 705 deletions.
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.18.0] - 2023-03-14

### Changed

- Weekly generation.

## [0.17.0] - 2023-03-07

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def get(request_configuration=nil)
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping)
end
##
## Send a new reply to a chatMessage in a specified channel.
## Create a new reply to a chatMessage in a specified channel.
## @param body The request body
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
## @return a Fiber of chat_message
Expand Down Expand Up @@ -103,7 +103,7 @@ def to_get_request_information(request_configuration=nil)
return request_info
end
##
## Send a new reply to a chatMessage in a specified channel.
## Create a new reply to a chatMessage in a specified channel.
## @param body The request body
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
## @return a request_information
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def initialize(path_parameters, request_adapter)
@path_parameters = path_parameters if path_parameters.is_a? Hash
end
##
## Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
## Invite participants to the active call. For more information about how to handle operations, see commsOperation.
## @param body The request body
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
## @return a Fiber of invite_participants_operation
Expand All @@ -58,7 +58,7 @@ def post(body, request_configuration=nil)
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::InviteParticipantsOperation.create_from_discriminator_value(pn) }, error_mapping)
end
##
## Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
## Invite participants to the active call. For more information about how to handle operations, see commsOperation.
## @param body The request body
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
## @return a request_information
Expand Down
49 changes: 49 additions & 0 deletions lib/drives/item/bundles/bundles_request_builder.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require 'microsoft_kiota_abstractions'
require_relative '../../../microsoft_graph'
require_relative '../../../models/drive_item'
require_relative '../../../models/drive_item_collection_response'
require_relative '../../../models/o_data_errors/o_data_error'
require_relative '../../drives'
Expand Down Expand Up @@ -58,6 +59,22 @@ def get(request_configuration=nil)
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItemCollectionResponse.create_from_discriminator_value(pn) }, error_mapping)
end
##
## Create new navigation property to bundles for drives
## @param body The request body
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
## @return a Fiber of drive_item
##
def post(body, request_configuration=nil)
raise StandardError, 'body cannot be null' if body.nil?
request_info = self.to_post_request_information(
body, 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, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping)
end
##
## Collection of [bundles][bundle] (albums and multi-select-shared sets of items). Only in personal OneDrive.
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
## @return a request_information
Expand All @@ -75,6 +92,26 @@ def to_get_request_information(request_configuration=nil)
end
return request_info
end
##
## Create new navigation property to bundles for drives
## @param body The request body
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
## @return a request_information
##
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(self.request_adapter, "application/json", body)
return request_info
end

##
# Collection of [bundles][bundle] (albums and multi-select-shared sets of items). Only in personal OneDrive.
Expand Down Expand Up @@ -148,6 +185,18 @@ class BundlesRequestBuilderGetRequestConfiguration
# Request query parameters
attr_accessor :query_parameters
end

##
# Configuration for the request such as headers, query parameters, and middleware options.
class BundlesRequestBuilderPostRequestConfiguration

##
# Request headers
attr_accessor :headers
##
# Request options
attr_accessor :options
end
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module Item
module Workbook
module Functions
module Beta_Dist
class Beta_DistPostRequestBody
class BetaDistPostRequestBody
include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
##
# The A property
Expand Down Expand Up @@ -116,7 +116,7 @@ def beta=(value)
@beta = value
end
##
## Instantiates a new beta_DistPostRequestBody and sets the default values.
## Instantiates a new BetaDistPostRequestBody and sets the default values.
## @return a void
##
def initialize()
Expand All @@ -129,7 +129,7 @@ def initialize()
##
def self.create_from_discriminator_value(parse_node)
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
return Beta_DistPostRequestBody.new
return BetaDistPostRequestBody.new
end
##
## Gets the cumulative property value. The cumulative property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module Functions
module Beta_Dist
##
# Provides operations to call the beta_Dist method.
class Beta_DistRequestBuilder
class BetaDistRequestBuilder

##
# Path parameters for the request
Expand Down Expand Up @@ -84,7 +84,7 @@ def to_post_request_information(body, request_configuration=nil)

##
# Configuration for the request such as headers, query parameters, and middleware options.
class Beta_DistRequestBuilderPostRequestConfiguration
class BetaDistRequestBuilderPostRequestConfiguration

##
# Request headers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module Item
module Workbook
module Functions
module Beta_Inv
class Beta_InvPostRequestBody
class BetaInvPostRequestBody
include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
##
# The A property
Expand Down Expand Up @@ -113,7 +113,7 @@ def beta=(value)
@beta = value
end
##
## Instantiates a new beta_InvPostRequestBody and sets the default values.
## Instantiates a new BetaInvPostRequestBody and sets the default values.
## @return a void
##
def initialize()
Expand All @@ -126,7 +126,7 @@ def initialize()
##
def self.create_from_discriminator_value(parse_node)
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
return Beta_InvPostRequestBody.new
return BetaInvPostRequestBody.new
end
##
## The deserialization information for the current model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module Functions
module Beta_Inv
##
# Provides operations to call the beta_Inv method.
class Beta_InvRequestBuilder
class BetaInvRequestBuilder

##
# Path parameters for the request
Expand Down Expand Up @@ -84,7 +84,7 @@ def to_post_request_information(body, request_configuration=nil)

##
# Configuration for the request such as headers, query parameters, and middleware options.
class Beta_InvRequestBuilderPostRequestConfiguration
class BetaInvRequestBuilderPostRequestConfiguration

##
# Request headers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module Item
module Workbook
module Functions
module Binom_Dist
class Binom_DistPostRequestBody
class BinomDistPostRequestBody
include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
##
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
Expand Down Expand Up @@ -50,7 +50,7 @@ def additional_data=(value)
@additional_data = value
end
##
## Instantiates a new binom_DistPostRequestBody and sets the default values.
## Instantiates a new BinomDistPostRequestBody and sets the default values.
## @return a void
##
def initialize()
Expand All @@ -63,7 +63,7 @@ def initialize()
##
def self.create_from_discriminator_value(parse_node)
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
return Binom_DistPostRequestBody.new
return BinomDistPostRequestBody.new
end
##
## Gets the cumulative property value. The cumulative property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module Functions
module Binom_Dist
##
# Provides operations to call the binom_Dist method.
class Binom_DistRequestBuilder
class BinomDistRequestBuilder

##
# Path parameters for the request
Expand Down Expand Up @@ -84,7 +84,7 @@ def to_post_request_information(body, request_configuration=nil)

##
# Configuration for the request such as headers, query parameters, and middleware options.
class Binom_DistRequestBuilderPostRequestConfiguration
class BinomDistRequestBuilderPostRequestConfiguration

##
# Request headers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module Item
module Workbook
module Functions
module Binom_Dist_Range
class Binom_Dist_RangePostRequestBody
class BinomDistRangePostRequestBody
include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
##
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
Expand Down Expand Up @@ -50,7 +50,7 @@ def additional_data=(value)
@additional_data = value
end
##
## Instantiates a new binom_Dist_RangePostRequestBody and sets the default values.
## Instantiates a new BinomDistRangePostRequestBody and sets the default values.
## @return a void
##
def initialize()
Expand All @@ -63,7 +63,7 @@ def initialize()
##
def self.create_from_discriminator_value(parse_node)
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
return Binom_Dist_RangePostRequestBody.new
return BinomDistRangePostRequestBody.new
end
##
## The deserialization information for the current model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module Functions
module Binom_Dist_Range
##
# Provides operations to call the binom_Dist_Range method.
class Binom_Dist_RangeRequestBuilder
class BinomDistRangeRequestBuilder

##
# Path parameters for the request
Expand Down Expand Up @@ -84,7 +84,7 @@ def to_post_request_information(body, request_configuration=nil)

##
# Configuration for the request such as headers, query parameters, and middleware options.
class Binom_Dist_RangeRequestBuilderPostRequestConfiguration
class BinomDistRangeRequestBuilderPostRequestConfiguration

##
# Request headers
Expand Down
Loading

0 comments on commit f8790b3

Please sign in to comment.