Skip to content

Commit f8790b3

Browse files
authored
Merge pull request #100 from microsoftgraph/v1.0/pipelinebuild/109147
Generated models and request builders
2 parents 776238f + 2009896 commit f8790b3

File tree

264 files changed

+3171
-705
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

264 files changed

+3171
-705
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
## [0.18.0] - 2023-03-14
15+
16+
### Changed
17+
18+
- Weekly generation.
19+
1420
## [0.17.0] - 2023-03-07
1521

1622
### Changed

lib/chats/item/messages/item/replies/replies_request_builder.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def get(request_configuration=nil)
6969
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping)
7070
end
7171
##
72-
## Send a new reply to a chatMessage in a specified channel.
72+
## Create a new reply to a chatMessage in a specified channel.
7373
## @param body The request body
7474
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
7575
## @return a Fiber of chat_message
@@ -103,7 +103,7 @@ def to_get_request_information(request_configuration=nil)
103103
return request_info
104104
end
105105
##
106-
## Send a new reply to a chatMessage in a specified channel.
106+
## Create a new reply to a chatMessage in a specified channel.
107107
## @param body The request body
108108
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
109109
## @return a request_information

lib/communications/calls/item/participants/invite/invite_request_builder.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def initialize(path_parameters, request_adapter)
4242
@path_parameters = path_parameters if path_parameters.is_a? Hash
4343
end
4444
##
45-
## 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.
45+
## Invite participants to the active call. For more information about how to handle operations, see commsOperation.
4646
## @param body The request body
4747
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
4848
## @return a Fiber of invite_participants_operation
@@ -58,7 +58,7 @@ def post(body, request_configuration=nil)
5858
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::InviteParticipantsOperation.create_from_discriminator_value(pn) }, error_mapping)
5959
end
6060
##
61-
## 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.
61+
## Invite participants to the active call. For more information about how to handle operations, see commsOperation.
6262
## @param body The request body
6363
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
6464
## @return a request_information

lib/drives/item/bundles/bundles_request_builder.rb

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
require 'microsoft_kiota_abstractions'
22
require_relative '../../../microsoft_graph'
3+
require_relative '../../../models/drive_item'
34
require_relative '../../../models/drive_item_collection_response'
45
require_relative '../../../models/o_data_errors/o_data_error'
56
require_relative '../../drives'
@@ -58,6 +59,22 @@ def get(request_configuration=nil)
5859
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItemCollectionResponse.create_from_discriminator_value(pn) }, error_mapping)
5960
end
6061
##
62+
## Create new navigation property to bundles for drives
63+
## @param body The request body
64+
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
65+
## @return a Fiber of drive_item
66+
##
67+
def post(body, request_configuration=nil)
68+
raise StandardError, 'body cannot be null' if body.nil?
69+
request_info = self.to_post_request_information(
70+
body, request_configuration
71+
)
72+
error_mapping = Hash.new
73+
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
74+
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
75+
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping)
76+
end
77+
##
6178
## Collection of [bundles][bundle] (albums and multi-select-shared sets of items). Only in personal OneDrive.
6279
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
6380
## @return a request_information
@@ -75,6 +92,26 @@ def to_get_request_information(request_configuration=nil)
7592
end
7693
return request_info
7794
end
95+
##
96+
## Create new navigation property to bundles for drives
97+
## @param body The request body
98+
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
99+
## @return a request_information
100+
##
101+
def to_post_request_information(body, request_configuration=nil)
102+
raise StandardError, 'body cannot be null' if body.nil?
103+
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
104+
request_info.url_template = @url_template
105+
request_info.path_parameters = @path_parameters
106+
request_info.http_method = :POST
107+
request_info.headers.add('Accept', 'application/json')
108+
unless request_configuration.nil?
109+
request_info.add_headers_from_raw_object(request_configuration.headers)
110+
request_info.add_request_options(request_configuration.options)
111+
end
112+
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
113+
return request_info
114+
end
78115

79116
##
80117
# Collection of [bundles][bundle] (albums and multi-select-shared sets of items). Only in personal OneDrive.
@@ -148,6 +185,18 @@ class BundlesRequestBuilderGetRequestConfiguration
148185
# Request query parameters
149186
attr_accessor :query_parameters
150187
end
188+
189+
##
190+
# Configuration for the request such as headers, query parameters, and middleware options.
191+
class BundlesRequestBuilderPostRequestConfiguration
192+
193+
##
194+
# Request headers
195+
attr_accessor :headers
196+
##
197+
# Request options
198+
attr_accessor :options
199+
end
151200
end
152201
end
153202
end

lib/drives/item/items/item/workbook/functions/beta_dist/beta_dist_post_request_body.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module Item
1717
module Workbook
1818
module Functions
1919
module Beta_Dist
20-
class Beta_DistPostRequestBody
20+
class BetaDistPostRequestBody
2121
include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
2222
##
2323
# The A property
@@ -116,7 +116,7 @@ def beta=(value)
116116
@beta = value
117117
end
118118
##
119-
## Instantiates a new beta_DistPostRequestBody and sets the default values.
119+
## Instantiates a new BetaDistPostRequestBody and sets the default values.
120120
## @return a void
121121
##
122122
def initialize()
@@ -129,7 +129,7 @@ def initialize()
129129
##
130130
def self.create_from_discriminator_value(parse_node)
131131
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
132-
return Beta_DistPostRequestBody.new
132+
return BetaDistPostRequestBody.new
133133
end
134134
##
135135
## Gets the cumulative property value. The cumulative property

lib/drives/item/items/item/workbook/functions/beta_dist/beta_dist_request_builder.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module Functions
2020
module Beta_Dist
2121
##
2222
# Provides operations to call the beta_Dist method.
23-
class Beta_DistRequestBuilder
23+
class BetaDistRequestBuilder
2424

2525
##
2626
# Path parameters for the request
@@ -84,7 +84,7 @@ def to_post_request_information(body, request_configuration=nil)
8484

8585
##
8686
# Configuration for the request such as headers, query parameters, and middleware options.
87-
class Beta_DistRequestBuilderPostRequestConfiguration
87+
class BetaDistRequestBuilderPostRequestConfiguration
8888

8989
##
9090
# Request headers

lib/drives/item/items/item/workbook/functions/beta_inv/beta_inv_post_request_body.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module Item
1717
module Workbook
1818
module Functions
1919
module Beta_Inv
20-
class Beta_InvPostRequestBody
20+
class BetaInvPostRequestBody
2121
include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
2222
##
2323
# The A property
@@ -113,7 +113,7 @@ def beta=(value)
113113
@beta = value
114114
end
115115
##
116-
## Instantiates a new beta_InvPostRequestBody and sets the default values.
116+
## Instantiates a new BetaInvPostRequestBody and sets the default values.
117117
## @return a void
118118
##
119119
def initialize()
@@ -126,7 +126,7 @@ def initialize()
126126
##
127127
def self.create_from_discriminator_value(parse_node)
128128
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
129-
return Beta_InvPostRequestBody.new
129+
return BetaInvPostRequestBody.new
130130
end
131131
##
132132
## The deserialization information for the current model

lib/drives/item/items/item/workbook/functions/beta_inv/beta_inv_request_builder.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module Functions
2020
module Beta_Inv
2121
##
2222
# Provides operations to call the beta_Inv method.
23-
class Beta_InvRequestBuilder
23+
class BetaInvRequestBuilder
2424

2525
##
2626
# Path parameters for the request
@@ -84,7 +84,7 @@ def to_post_request_information(body, request_configuration=nil)
8484

8585
##
8686
# Configuration for the request such as headers, query parameters, and middleware options.
87-
class Beta_InvRequestBuilderPostRequestConfiguration
87+
class BetaInvRequestBuilderPostRequestConfiguration
8888

8989
##
9090
# Request headers

lib/drives/item/items/item/workbook/functions/binom_dist/binom_dist_post_request_body.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module Item
1717
module Workbook
1818
module Functions
1919
module Binom_Dist
20-
class Binom_DistPostRequestBody
20+
class BinomDistPostRequestBody
2121
include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
2222
##
2323
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
@@ -50,7 +50,7 @@ def additional_data=(value)
5050
@additional_data = value
5151
end
5252
##
53-
## Instantiates a new binom_DistPostRequestBody and sets the default values.
53+
## Instantiates a new BinomDistPostRequestBody and sets the default values.
5454
## @return a void
5555
##
5656
def initialize()
@@ -63,7 +63,7 @@ def initialize()
6363
##
6464
def self.create_from_discriminator_value(parse_node)
6565
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
66-
return Binom_DistPostRequestBody.new
66+
return BinomDistPostRequestBody.new
6767
end
6868
##
6969
## Gets the cumulative property value. The cumulative property

lib/drives/item/items/item/workbook/functions/binom_dist/binom_dist_request_builder.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module Functions
2020
module Binom_Dist
2121
##
2222
# Provides operations to call the binom_Dist method.
23-
class Binom_DistRequestBuilder
23+
class BinomDistRequestBuilder
2424

2525
##
2626
# Path parameters for the request
@@ -84,7 +84,7 @@ def to_post_request_information(body, request_configuration=nil)
8484

8585
##
8686
# Configuration for the request such as headers, query parameters, and middleware options.
87-
class Binom_DistRequestBuilderPostRequestConfiguration
87+
class BinomDistRequestBuilderPostRequestConfiguration
8888

8989
##
9090
# Request headers

lib/drives/item/items/item/workbook/functions/binom_dist_range/binom_dist_range_post_request_body.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module Item
1717
module Workbook
1818
module Functions
1919
module Binom_Dist_Range
20-
class Binom_Dist_RangePostRequestBody
20+
class BinomDistRangePostRequestBody
2121
include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
2222
##
2323
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
@@ -50,7 +50,7 @@ def additional_data=(value)
5050
@additional_data = value
5151
end
5252
##
53-
## Instantiates a new binom_Dist_RangePostRequestBody and sets the default values.
53+
## Instantiates a new BinomDistRangePostRequestBody and sets the default values.
5454
## @return a void
5555
##
5656
def initialize()
@@ -63,7 +63,7 @@ def initialize()
6363
##
6464
def self.create_from_discriminator_value(parse_node)
6565
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
66-
return Binom_Dist_RangePostRequestBody.new
66+
return BinomDistRangePostRequestBody.new
6767
end
6868
##
6969
## The deserialization information for the current model

lib/drives/item/items/item/workbook/functions/binom_dist_range/binom_dist_range_request_builder.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module Functions
2020
module Binom_Dist_Range
2121
##
2222
# Provides operations to call the binom_Dist_Range method.
23-
class Binom_Dist_RangeRequestBuilder
23+
class BinomDistRangeRequestBuilder
2424

2525
##
2626
# Path parameters for the request
@@ -84,7 +84,7 @@ def to_post_request_information(body, request_configuration=nil)
8484

8585
##
8686
# Configuration for the request such as headers, query parameters, and middleware options.
87-
class Binom_Dist_RangeRequestBuilderPostRequestConfiguration
87+
class BinomDistRangeRequestBuilderPostRequestConfiguration
8888

8989
##
9090
# Request headers

0 commit comments

Comments
 (0)