Skip to content

Commit

Permalink
Merge pull request #79 from microsoftgraph/v1.0/pipelinebuild/102225
Browse files Browse the repository at this point in the history
Generated v1.0 models and request builders using Kiota
  • Loading branch information
baywet authored Jan 17, 2023
2 parents ebaf27d + 4f525b3 commit 25eca5f
Show file tree
Hide file tree
Showing 105 changed files with 1,382 additions and 198 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.12.0] - 2023-01-17

### Changed

- Weekly generation.

## [0.11.0] - 2023-01-10

### Added
Expand Down
4 changes: 2 additions & 2 deletions lib/chats/item/messages/messages_request_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,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 chatMessage in the specified channel or a chat.
## 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.
## @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 @@ -98,7 +98,7 @@ def to_get_request_information(request_configuration=nil)
return request_info
end
##
## Send a new chatMessage in the specified channel or a chat.
## 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.
## @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 @@ -37,7 +37,7 @@ def initialize(path_parameters, request_adapter)
@path_parameters = path_parameters if path_parameters.is_a? Hash
end
##
## Invite participants to the active call. For more information about how to handle operations, see commsOperation.
## 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.
## @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 @@ -53,7 +53,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
##
## Invite participants to the active call. For more information about how to handle operations, see commsOperation.
## 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.
## @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
@@ -0,0 +1,3 @@
require_relative 'get_devices_without_compliance_policy_report_post_request_body'
module MicrosoftGraph::DeviceManagement::Reports::GetDevicesWithoutCompliancePolicyReport
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,242 @@
require 'microsoft_kiota_abstractions'
require_relative '../../../microsoft_graph'
require_relative '../../device_management'
require_relative '../reports'
require_relative './get_devices_without_compliance_policy_report'

module MicrosoftGraph::DeviceManagement::Reports::GetDevicesWithoutCompliancePolicyReport
class GetDevicesWithoutCompliancePolicyReportPostRequestBody
include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
##
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
@additional_data
##
# The filter property
@filter
##
# The groupBy property
@group_by
##
# The name property
@name
##
# The orderBy property
@order_by
##
# The search property
@search
##
# The select property
@select
##
# The sessionId property
@session_id
##
# The skip property
@skip
##
# The top property
@top
##
## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
## @return a i_dictionary
##
def additional_data
return @additional_data
end
##
## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
## @param value Value to set for the AdditionalData property.
## @return a void
##
def additional_data=(value)
@additional_data = value
end
##
## Instantiates a new getDevicesWithoutCompliancePolicyReportPostRequestBody and sets the default values.
## @return a void
##
def initialize()
@additional_data = Hash.new
end
##
## Creates a new instance of the appropriate class based on discriminator value
## @param parseNode The parse node to use to read the discriminator value and create the object
## @return a get_devices_without_compliance_policy_report_post_request_body
##
def self.create_from_discriminator_value(parse_node)
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
return GetDevicesWithoutCompliancePolicyReportPostRequestBody.new
end
##
## Gets the filter property value. The filter property
## @return a string
##
def filter
return @filter
end
##
## Sets the filter property value. The filter property
## @param value Value to set for the filter property.
## @return a void
##
def filter=(value)
@filter = value
end
##
## The deserialization information for the current model
## @return a i_dictionary
##
def get_field_deserializers()
return {
"filter" => lambda {|n| @filter = n.get_string_value() },
"groupBy" => lambda {|n| @group_by = n.get_collection_of_primitive_values(String) },
"name" => lambda {|n| @name = n.get_string_value() },
"orderBy" => lambda {|n| @order_by = n.get_collection_of_primitive_values(String) },
"search" => lambda {|n| @search = n.get_string_value() },
"select" => lambda {|n| @select = n.get_collection_of_primitive_values(String) },
"sessionId" => lambda {|n| @session_id = n.get_string_value() },
"skip" => lambda {|n| @skip = n.get_number_value() },
"top" => lambda {|n| @top = n.get_number_value() },
}
end
##
## Gets the groupBy property value. The groupBy property
## @return a string
##
def group_by
return @group_by
end
##
## Sets the groupBy property value. The groupBy property
## @param value Value to set for the groupBy property.
## @return a void
##
def group_by=(value)
@group_by = value
end
##
## Gets the name property value. The name property
## @return a string
##
def name
return @name
end
##
## Sets the name property value. The name property
## @param value Value to set for the name property.
## @return a void
##
def name=(value)
@name = value
end
##
## Gets the orderBy property value. The orderBy property
## @return a string
##
def order_by
return @order_by
end
##
## Sets the orderBy property value. The orderBy property
## @param value Value to set for the orderBy property.
## @return a void
##
def order_by=(value)
@order_by = value
end
##
## Gets the search property value. The search property
## @return a string
##
def search
return @search
end
##
## Sets the search property value. The search property
## @param value Value to set for the search property.
## @return a void
##
def search=(value)
@search = value
end
##
## Gets the select property value. The select property
## @return a string
##
def select
return @select
end
##
## Sets the select property value. The select property
## @param value Value to set for the select property.
## @return a void
##
def select=(value)
@select = value
end
##
## Serializes information the current object
## @param writer Serialization writer to use to serialize this model
## @return a void
##
def serialize(writer)
raise StandardError, 'writer cannot be null' if writer.nil?
writer.write_string_value("filter", @filter)
writer.write_collection_of_primitive_values("groupBy", @group_by)
writer.write_string_value("name", @name)
writer.write_collection_of_primitive_values("orderBy", @order_by)
writer.write_string_value("search", @search)
writer.write_collection_of_primitive_values("select", @select)
writer.write_string_value("sessionId", @session_id)
writer.write_number_value("skip", @skip)
writer.write_number_value("top", @top)
writer.write_additional_data(@additional_data)
end
##
## Gets the sessionId property value. The sessionId property
## @return a string
##
def session_id
return @session_id
end
##
## Sets the sessionId property value. The sessionId property
## @param value Value to set for the sessionId property.
## @return a void
##
def session_id=(value)
@session_id = value
end
##
## Gets the skip property value. The skip property
## @return a integer
##
def skip
return @skip
end
##
## Sets the skip property value. The skip property
## @param value Value to set for the skip property.
## @return a void
##
def skip=(value)
@skip = value
end
##
## Gets the top property value. The top property
## @return a integer
##
def top
return @top
end
##
## Sets the top property value. The top property
## @param value Value to set for the top property.
## @return a void
##
def top=(value)
@top = value
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
require 'microsoft_kiota_abstractions'
require_relative '../../../microsoft_graph'
require_relative '../../../models/o_data_errors/o_data_error'
require_relative '../../device_management'
require_relative '../reports'
require_relative './get_devices_without_compliance_policy_report'

module MicrosoftGraph::DeviceManagement::Reports::GetDevicesWithoutCompliancePolicyReport
##
# Provides operations to call the getDevicesWithoutCompliancePolicyReport method.
class GetDevicesWithoutCompliancePolicyReportRequestBuilder

##
# Path parameters for the request
@path_parameters
##
# The request adapter to use to execute the requests.
@request_adapter
##
# Url template to use to build the URL for the current request builder
@url_template
##
## Instantiates a new GetDevicesWithoutCompliancePolicyReportRequestBuilder and sets the default values.
## @param pathParameters Path parameters for the request
## @param requestAdapter The request adapter to use to execute the requests.
## @return a void
##
def initialize(path_parameters, request_adapter)
raise StandardError, 'path_parameters cannot be null' if path_parameters.nil?
raise StandardError, 'request_adapter cannot be null' if request_adapter.nil?
@url_template = "{+baseurl}/deviceManagement/reports/microsoft.graph.getDevicesWithoutCompliancePolicyReport"
@request_adapter = request_adapter
path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String
@path_parameters = path_parameters if path_parameters.is_a? Hash
end
##
## Invoke action getDevicesWithoutCompliancePolicyReport
## @param body The request body
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
## @return a Fiber of binary
##
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, Binary, error_mapping)
end
##
## Invoke action getDevicesWithoutCompliancePolicyReport
## @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
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

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

##
# Request headers
attr_accessor :headers
##
# Request options
attr_accessor :options
end
end
end
Loading

0 comments on commit 25eca5f

Please sign in to comment.