Skip to content

Commit 25eca5f

Browse files
authored
Merge pull request #79 from microsoftgraph/v1.0/pipelinebuild/102225
Generated v1.0 models and request builders using Kiota
2 parents ebaf27d + 4f525b3 commit 25eca5f

File tree

105 files changed

+1382
-198
lines changed

Some content is hidden

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

105 files changed

+1382
-198
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.12.0] - 2023-01-17
15+
16+
### Changed
17+
18+
- Weekly generation.
19+
1420
## [0.11.0] - 2023-01-10
1521

1622
### Added

lib/chats/item/messages/messages_request_builder.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def get(request_configuration=nil)
6464
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping)
6565
end
6666
##
67-
## Send a new chatMessage in the specified channel or a chat.
67+
## 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.
6868
## @param body The request body
6969
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
7070
## @return a Fiber of chat_message
@@ -98,7 +98,7 @@ def to_get_request_information(request_configuration=nil)
9898
return request_info
9999
end
100100
##
101-
## Send a new chatMessage in the specified channel or a chat.
101+
## 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.
102102
## @param body The request body
103103
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
104104
## @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
@@ -37,7 +37,7 @@ def initialize(path_parameters, request_adapter)
3737
@path_parameters = path_parameters if path_parameters.is_a? Hash
3838
end
3939
##
40-
## Invite participants to the active call. For more information about how to handle operations, see commsOperation.
40+
## 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.
4141
## @param body The request body
4242
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
4343
## @return a Fiber of invite_participants_operation
@@ -53,7 +53,7 @@ def post(body, request_configuration=nil)
5353
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::InviteParticipantsOperation.create_from_discriminator_value(pn) }, error_mapping)
5454
end
5555
##
56-
## Invite participants to the active call. For more information about how to handle operations, see commsOperation.
56+
## 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.
5757
## @param body The request body
5858
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5959
## @return a request_information
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require_relative 'get_devices_without_compliance_policy_report_post_request_body'
2+
module MicrosoftGraph::DeviceManagement::Reports::GetDevicesWithoutCompliancePolicyReport
3+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,242 @@
1+
require 'microsoft_kiota_abstractions'
2+
require_relative '../../../microsoft_graph'
3+
require_relative '../../device_management'
4+
require_relative '../reports'
5+
require_relative './get_devices_without_compliance_policy_report'
6+
7+
module MicrosoftGraph::DeviceManagement::Reports::GetDevicesWithoutCompliancePolicyReport
8+
class GetDevicesWithoutCompliancePolicyReportPostRequestBody
9+
include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
10+
##
11+
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
12+
@additional_data
13+
##
14+
# The filter property
15+
@filter
16+
##
17+
# The groupBy property
18+
@group_by
19+
##
20+
# The name property
21+
@name
22+
##
23+
# The orderBy property
24+
@order_by
25+
##
26+
# The search property
27+
@search
28+
##
29+
# The select property
30+
@select
31+
##
32+
# The sessionId property
33+
@session_id
34+
##
35+
# The skip property
36+
@skip
37+
##
38+
# The top property
39+
@top
40+
##
41+
## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
42+
## @return a i_dictionary
43+
##
44+
def additional_data
45+
return @additional_data
46+
end
47+
##
48+
## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
49+
## @param value Value to set for the AdditionalData property.
50+
## @return a void
51+
##
52+
def additional_data=(value)
53+
@additional_data = value
54+
end
55+
##
56+
## Instantiates a new getDevicesWithoutCompliancePolicyReportPostRequestBody and sets the default values.
57+
## @return a void
58+
##
59+
def initialize()
60+
@additional_data = Hash.new
61+
end
62+
##
63+
## Creates a new instance of the appropriate class based on discriminator value
64+
## @param parseNode The parse node to use to read the discriminator value and create the object
65+
## @return a get_devices_without_compliance_policy_report_post_request_body
66+
##
67+
def self.create_from_discriminator_value(parse_node)
68+
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
69+
return GetDevicesWithoutCompliancePolicyReportPostRequestBody.new
70+
end
71+
##
72+
## Gets the filter property value. The filter property
73+
## @return a string
74+
##
75+
def filter
76+
return @filter
77+
end
78+
##
79+
## Sets the filter property value. The filter property
80+
## @param value Value to set for the filter property.
81+
## @return a void
82+
##
83+
def filter=(value)
84+
@filter = value
85+
end
86+
##
87+
## The deserialization information for the current model
88+
## @return a i_dictionary
89+
##
90+
def get_field_deserializers()
91+
return {
92+
"filter" => lambda {|n| @filter = n.get_string_value() },
93+
"groupBy" => lambda {|n| @group_by = n.get_collection_of_primitive_values(String) },
94+
"name" => lambda {|n| @name = n.get_string_value() },
95+
"orderBy" => lambda {|n| @order_by = n.get_collection_of_primitive_values(String) },
96+
"search" => lambda {|n| @search = n.get_string_value() },
97+
"select" => lambda {|n| @select = n.get_collection_of_primitive_values(String) },
98+
"sessionId" => lambda {|n| @session_id = n.get_string_value() },
99+
"skip" => lambda {|n| @skip = n.get_number_value() },
100+
"top" => lambda {|n| @top = n.get_number_value() },
101+
}
102+
end
103+
##
104+
## Gets the groupBy property value. The groupBy property
105+
## @return a string
106+
##
107+
def group_by
108+
return @group_by
109+
end
110+
##
111+
## Sets the groupBy property value. The groupBy property
112+
## @param value Value to set for the groupBy property.
113+
## @return a void
114+
##
115+
def group_by=(value)
116+
@group_by = value
117+
end
118+
##
119+
## Gets the name property value. The name property
120+
## @return a string
121+
##
122+
def name
123+
return @name
124+
end
125+
##
126+
## Sets the name property value. The name property
127+
## @param value Value to set for the name property.
128+
## @return a void
129+
##
130+
def name=(value)
131+
@name = value
132+
end
133+
##
134+
## Gets the orderBy property value. The orderBy property
135+
## @return a string
136+
##
137+
def order_by
138+
return @order_by
139+
end
140+
##
141+
## Sets the orderBy property value. The orderBy property
142+
## @param value Value to set for the orderBy property.
143+
## @return a void
144+
##
145+
def order_by=(value)
146+
@order_by = value
147+
end
148+
##
149+
## Gets the search property value. The search property
150+
## @return a string
151+
##
152+
def search
153+
return @search
154+
end
155+
##
156+
## Sets the search property value. The search property
157+
## @param value Value to set for the search property.
158+
## @return a void
159+
##
160+
def search=(value)
161+
@search = value
162+
end
163+
##
164+
## Gets the select property value. The select property
165+
## @return a string
166+
##
167+
def select
168+
return @select
169+
end
170+
##
171+
## Sets the select property value. The select property
172+
## @param value Value to set for the select property.
173+
## @return a void
174+
##
175+
def select=(value)
176+
@select = value
177+
end
178+
##
179+
## Serializes information the current object
180+
## @param writer Serialization writer to use to serialize this model
181+
## @return a void
182+
##
183+
def serialize(writer)
184+
raise StandardError, 'writer cannot be null' if writer.nil?
185+
writer.write_string_value("filter", @filter)
186+
writer.write_collection_of_primitive_values("groupBy", @group_by)
187+
writer.write_string_value("name", @name)
188+
writer.write_collection_of_primitive_values("orderBy", @order_by)
189+
writer.write_string_value("search", @search)
190+
writer.write_collection_of_primitive_values("select", @select)
191+
writer.write_string_value("sessionId", @session_id)
192+
writer.write_number_value("skip", @skip)
193+
writer.write_number_value("top", @top)
194+
writer.write_additional_data(@additional_data)
195+
end
196+
##
197+
## Gets the sessionId property value. The sessionId property
198+
## @return a string
199+
##
200+
def session_id
201+
return @session_id
202+
end
203+
##
204+
## Sets the sessionId property value. The sessionId property
205+
## @param value Value to set for the sessionId property.
206+
## @return a void
207+
##
208+
def session_id=(value)
209+
@session_id = value
210+
end
211+
##
212+
## Gets the skip property value. The skip property
213+
## @return a integer
214+
##
215+
def skip
216+
return @skip
217+
end
218+
##
219+
## Sets the skip property value. The skip property
220+
## @param value Value to set for the skip property.
221+
## @return a void
222+
##
223+
def skip=(value)
224+
@skip = value
225+
end
226+
##
227+
## Gets the top property value. The top property
228+
## @return a integer
229+
##
230+
def top
231+
return @top
232+
end
233+
##
234+
## Sets the top property value. The top property
235+
## @param value Value to set for the top property.
236+
## @return a void
237+
##
238+
def top=(value)
239+
@top = value
240+
end
241+
end
242+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
require 'microsoft_kiota_abstractions'
2+
require_relative '../../../microsoft_graph'
3+
require_relative '../../../models/o_data_errors/o_data_error'
4+
require_relative '../../device_management'
5+
require_relative '../reports'
6+
require_relative './get_devices_without_compliance_policy_report'
7+
8+
module MicrosoftGraph::DeviceManagement::Reports::GetDevicesWithoutCompliancePolicyReport
9+
##
10+
# Provides operations to call the getDevicesWithoutCompliancePolicyReport method.
11+
class GetDevicesWithoutCompliancePolicyReportRequestBuilder
12+
13+
##
14+
# Path parameters for the request
15+
@path_parameters
16+
##
17+
# The request adapter to use to execute the requests.
18+
@request_adapter
19+
##
20+
# Url template to use to build the URL for the current request builder
21+
@url_template
22+
##
23+
## Instantiates a new GetDevicesWithoutCompliancePolicyReportRequestBuilder and sets the default values.
24+
## @param pathParameters Path parameters for the request
25+
## @param requestAdapter The request adapter to use to execute the requests.
26+
## @return a void
27+
##
28+
def initialize(path_parameters, request_adapter)
29+
raise StandardError, 'path_parameters cannot be null' if path_parameters.nil?
30+
raise StandardError, 'request_adapter cannot be null' if request_adapter.nil?
31+
@url_template = "{+baseurl}/deviceManagement/reports/microsoft.graph.getDevicesWithoutCompliancePolicyReport"
32+
@request_adapter = request_adapter
33+
path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String
34+
@path_parameters = path_parameters if path_parameters.is_a? Hash
35+
end
36+
##
37+
## Invoke action getDevicesWithoutCompliancePolicyReport
38+
## @param body The request body
39+
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
40+
## @return a Fiber of binary
41+
##
42+
def post(body, request_configuration=nil)
43+
raise StandardError, 'body cannot be null' if body.nil?
44+
request_info = self.to_post_request_information(
45+
body, request_configuration
46+
)
47+
error_mapping = Hash.new
48+
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
49+
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
50+
return @request_adapter.send_async(request_info, Binary, error_mapping)
51+
end
52+
##
53+
## Invoke action getDevicesWithoutCompliancePolicyReport
54+
## @param body The request body
55+
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
56+
## @return a request_information
57+
##
58+
def to_post_request_information(body, request_configuration=nil)
59+
raise StandardError, 'body cannot be null' if body.nil?
60+
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
61+
request_info.url_template = @url_template
62+
request_info.path_parameters = @path_parameters
63+
request_info.http_method = :POST
64+
unless request_configuration.nil?
65+
request_info.add_headers_from_raw_object(request_configuration.headers)
66+
request_info.add_request_options(request_configuration.options)
67+
end
68+
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
69+
return request_info
70+
end
71+
72+
##
73+
# Configuration for the request such as headers, query parameters, and middleware options.
74+
class GetDevicesWithoutCompliancePolicyReportRequestBuilderPostRequestConfiguration
75+
76+
##
77+
# Request headers
78+
attr_accessor :headers
79+
##
80+
# Request options
81+
attr_accessor :options
82+
end
83+
end
84+
end

0 commit comments

Comments
 (0)