-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from microsoftgraph/v1.0/pipelinebuild/102225
Generated v1.0 models and request builders using Kiota
- Loading branch information
Showing
105 changed files
with
1,382 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
..._devices_without_compliance_policy_report/get_devices_without_compliance_policy_report.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
242 changes: 242 additions & 0 deletions
242
...ompliance_policy_report/get_devices_without_compliance_policy_report_post_request_body.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
84 changes: 84 additions & 0 deletions
84
..._compliance_policy_report/get_devices_without_compliance_policy_report_request_builder.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.