Skip to content

Commit 51f8ae3

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
Microsoft Graph DevX Tooling
authored and
Microsoft Graph DevX Tooling
committed
Update generated files with build 110434
1 parent f8790b3 commit 51f8ae3

File tree

175 files changed

+5178
-149
lines changed

Some content is hidden

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

175 files changed

+5178
-149
lines 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-
## Create a new reply to a chatMessage in a specified channel.
72+
## Send 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-
## Create a new reply to a chatMessage in a specified channel.
106+
## Send 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/chats/item/messages/messages_request_builder.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def get(request_configuration=nil)
6565
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping)
6666
end
6767
##
68-
## Send a new chatMessage in the specified channel or a chat.
68+
## Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
6969
## @param body The request body
7070
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
7171
## @return a Fiber of chat_message
@@ -99,7 +99,7 @@ def to_get_request_information(request_configuration=nil)
9999
return request_info
100100
end
101101
##
102-
## Send a new chatMessage in the specified channel or a chat.
102+
## Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
103103
## @param body The request body
104104
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
105105
## @return a request_information

lib/contacts/item/member_of/graph_administrative_unit/count/count.rb

Whitespace-only changes.
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
require 'microsoft_kiota_abstractions'
2+
require_relative '../../../../../microsoft_graph'
3+
require_relative '../../../../../models/o_data_errors/o_data_error'
4+
require_relative '../../../../contacts'
5+
require_relative '../../../item'
6+
require_relative '../../member_of'
7+
require_relative '../graph_administrative_unit'
8+
require_relative './count'
9+
10+
module MicrosoftGraph
11+
module Contacts
12+
module Item
13+
module MemberOf
14+
module GraphAdministrativeUnit
15+
module Count
16+
##
17+
# Provides operations to count the resources in the collection.
18+
class CountRequestBuilder
19+
20+
##
21+
# Path parameters for the request
22+
@path_parameters
23+
##
24+
# The request adapter to use to execute the requests.
25+
@request_adapter
26+
##
27+
# Url template to use to build the URL for the current request builder
28+
@url_template
29+
##
30+
## Instantiates a new CountRequestBuilder and sets the default values.
31+
## @param pathParameters Path parameters for the request
32+
## @param requestAdapter The request adapter to use to execute the requests.
33+
## @return a void
34+
##
35+
def initialize(path_parameters, request_adapter)
36+
raise StandardError, 'path_parameters cannot be null' if path_parameters.nil?
37+
raise StandardError, 'request_adapter cannot be null' if request_adapter.nil?
38+
@url_template = "{+baseurl}/contacts/{orgContact%2Did}/memberOf/graph.administrativeUnit/$count{?%24search,%24filter}"
39+
@request_adapter = request_adapter
40+
path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String
41+
@path_parameters = path_parameters if path_parameters.is_a? Hash
42+
end
43+
##
44+
## Get the number of the resource
45+
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
46+
## @return a Fiber of integer
47+
##
48+
def get(request_configuration=nil)
49+
request_info = self.to_get_request_information(
50+
request_configuration
51+
)
52+
error_mapping = Hash.new
53+
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
54+
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
55+
return @request_adapter.send_async(request_info, number, error_mapping)
56+
end
57+
##
58+
## Get the number of the resource
59+
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
60+
## @return a request_information
61+
##
62+
def to_get_request_information(request_configuration=nil)
63+
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
64+
request_info.url_template = @url_template
65+
request_info.path_parameters = @path_parameters
66+
request_info.http_method = :GET
67+
request_info.headers.add('Accept', 'text/plain')
68+
unless request_configuration.nil?
69+
request_info.add_headers_from_raw_object(request_configuration.headers)
70+
request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters)
71+
request_info.add_request_options(request_configuration.options)
72+
end
73+
return request_info
74+
end
75+
76+
##
77+
# Get the number of the resource
78+
class CountRequestBuilderGetQueryParameters
79+
80+
##
81+
# Filter items by property values
82+
attr_accessor :filter
83+
##
84+
# Search items by search phrases
85+
attr_accessor :search
86+
##
87+
## Maps the query parameters names to their encoded names for the URI template parsing.
88+
## @param originalName The original query parameter name in the class.
89+
## @return a string
90+
##
91+
def get_query_parameter(original_name)
92+
raise StandardError, 'original_name cannot be null' if original_name.nil?
93+
case original_name
94+
when "filter"
95+
return "%24filter"
96+
when "search"
97+
return "%24search"
98+
else
99+
return original_name
100+
end
101+
end
102+
end
103+
104+
##
105+
# Configuration for the request such as headers, query parameters, and middleware options.
106+
class CountRequestBuilderGetRequestConfiguration
107+
108+
##
109+
# Request headers
110+
attr_accessor :headers
111+
##
112+
# Request options
113+
attr_accessor :options
114+
##
115+
# Request query parameters
116+
attr_accessor :query_parameters
117+
end
118+
end
119+
end
120+
end
121+
end
122+
end
123+
end
124+
end

lib/contacts/item/member_of/graph_administrative_unit/graph_administrative_unit.rb

Whitespace-only changes.
Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
require 'microsoft_kiota_abstractions'
2+
require_relative '../../../../microsoft_graph'
3+
require_relative '../../../../models/administrative_unit_collection_response'
4+
require_relative '../../../../models/o_data_errors/o_data_error'
5+
require_relative '../../../contacts'
6+
require_relative '../../item'
7+
require_relative '../member_of'
8+
require_relative './count/count_request_builder'
9+
require_relative './graph_administrative_unit'
10+
11+
module MicrosoftGraph
12+
module Contacts
13+
module Item
14+
module MemberOf
15+
module GraphAdministrativeUnit
16+
##
17+
# Casts the previous resource to administrativeUnit.
18+
class GraphAdministrativeUnitRequestBuilder
19+
20+
##
21+
# Provides operations to count the resources in the collection.
22+
def count()
23+
return MicrosoftGraph::Contacts::Item::MemberOf::GraphAdministrativeUnit::Count::CountRequestBuilder.new(@path_parameters, @request_adapter)
24+
end
25+
##
26+
# Path parameters for the request
27+
@path_parameters
28+
##
29+
# The request adapter to use to execute the requests.
30+
@request_adapter
31+
##
32+
# Url template to use to build the URL for the current request builder
33+
@url_template
34+
##
35+
## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values.
36+
## @param pathParameters Path parameters for the request
37+
## @param requestAdapter The request adapter to use to execute the requests.
38+
## @return a void
39+
##
40+
def initialize(path_parameters, request_adapter)
41+
raise StandardError, 'path_parameters cannot be null' if path_parameters.nil?
42+
raise StandardError, 'request_adapter cannot be null' if request_adapter.nil?
43+
@url_template = "{+baseurl}/contacts/{orgContact%2Did}/memberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"
44+
@request_adapter = request_adapter
45+
path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String
46+
@path_parameters = path_parameters if path_parameters.is_a? Hash
47+
end
48+
##
49+
## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection
50+
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
51+
## @return a Fiber of administrative_unit_collection_response
52+
##
53+
def get(request_configuration=nil)
54+
request_info = self.to_get_request_information(
55+
request_configuration
56+
)
57+
error_mapping = Hash.new
58+
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
59+
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
60+
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnitCollectionResponse.create_from_discriminator_value(pn) }, error_mapping)
61+
end
62+
##
63+
## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection
64+
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
65+
## @return a request_information
66+
##
67+
def to_get_request_information(request_configuration=nil)
68+
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
69+
request_info.url_template = @url_template
70+
request_info.path_parameters = @path_parameters
71+
request_info.http_method = :GET
72+
request_info.headers.add('Accept', 'application/json')
73+
unless request_configuration.nil?
74+
request_info.add_headers_from_raw_object(request_configuration.headers)
75+
request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters)
76+
request_info.add_request_options(request_configuration.options)
77+
end
78+
return request_info
79+
end
80+
81+
##
82+
# Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection
83+
class GraphAdministrativeUnitRequestBuilderGetQueryParameters
84+
85+
##
86+
# Include count of items
87+
attr_accessor :count
88+
##
89+
# Expand related entities
90+
attr_accessor :expand
91+
##
92+
# Filter items by property values
93+
attr_accessor :filter
94+
##
95+
# Order items by property values
96+
attr_accessor :orderby
97+
##
98+
# Search items by search phrases
99+
attr_accessor :search
100+
##
101+
# Select properties to be returned
102+
attr_accessor :select
103+
##
104+
# Skip the first n items
105+
attr_accessor :skip
106+
##
107+
# Show only the first n items
108+
attr_accessor :top
109+
##
110+
## Maps the query parameters names to their encoded names for the URI template parsing.
111+
## @param originalName The original query parameter name in the class.
112+
## @return a string
113+
##
114+
def get_query_parameter(original_name)
115+
raise StandardError, 'original_name cannot be null' if original_name.nil?
116+
case original_name
117+
when "count"
118+
return "%24count"
119+
when "expand"
120+
return "%24expand"
121+
when "filter"
122+
return "%24filter"
123+
when "orderby"
124+
return "%24orderby"
125+
when "search"
126+
return "%24search"
127+
when "select"
128+
return "%24select"
129+
when "skip"
130+
return "%24skip"
131+
when "top"
132+
return "%24top"
133+
else
134+
return original_name
135+
end
136+
end
137+
end
138+
139+
##
140+
# Configuration for the request such as headers, query parameters, and middleware options.
141+
class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration
142+
143+
##
144+
# Request headers
145+
attr_accessor :headers
146+
##
147+
# Request options
148+
attr_accessor :options
149+
##
150+
# Request query parameters
151+
attr_accessor :query_parameters
152+
end
153+
end
154+
end
155+
end
156+
end
157+
end
158+
end

0 commit comments

Comments
 (0)