Class: MicrosoftGraph::Me::OwnedDevices::Item::DirectoryObjectItemRequestBuilder
- Inherits:
-
MicrosoftKiotaAbstractions::BaseRequestBuilder
- Object
- MicrosoftKiotaAbstractions::BaseRequestBuilder
- MicrosoftGraph::Me::OwnedDevices::Item::DirectoryObjectItemRequestBuilder
- Defined in:
- lib/me/owned_devices/item/directory_object_item_request_builder.rb
Overview
Provides operations to manage the ownedDevices property of the microsoft.graph.user entity.
Defined Under Namespace
Classes: DirectoryObjectItemRequestBuilderGetQueryParameters
Instance Method Summary collapse
-
#get(request_configuration = nil) ⇒ Object
Devices that are owned by the user.
-
#graph_app_role_assignment ⇒ Object
Casts the previous resource to appRoleAssignment.
-
#graph_device ⇒ Object
Casts the previous resource to device.
-
#graph_endpoint ⇒ Object
Casts the previous resource to endpoint.
-
#initialize(path_parameters, request_adapter) ⇒ Object
constructor
Instantiates a new DirectoryObjectItemRequestBuilder and sets the default values.
-
#to_get_request_information(request_configuration = nil) ⇒ Object
Devices that are owned by the user.
Constructor Details
#initialize(path_parameters, request_adapter) ⇒ Object
Instantiates a new DirectoryObjectItemRequestBuilder and sets the default values.
41 42 43 |
# File 'lib/me/owned_devices/item/directory_object_item_request_builder.rb', line 41 def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/me/ownedDevices/{directoryObject%2Did}{?%24select,%24expand}") end |
Instance Method Details
#get(request_configuration = nil) ⇒ Object
Devices that are owned by the user. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1).
49 50 51 52 53 54 55 56 57 |
# File 'lib/me/owned_devices/item/directory_object_item_request_builder.rb', line 49 def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }, error_mapping) end |
#graph_app_role_assignment ⇒ Object
Casts the previous resource to appRoleAssignment.
22 23 24 |
# File 'lib/me/owned_devices/item/directory_object_item_request_builder.rb', line 22 def graph_app_role_assignment() return MicrosoftGraph::Me::OwnedDevices::Item::GraphAppRoleAssignment::GraphAppRoleAssignmentRequestBuilder.new(@path_parameters, @request_adapter) end |
#graph_device ⇒ Object
Casts the previous resource to device.
27 28 29 |
# File 'lib/me/owned_devices/item/directory_object_item_request_builder.rb', line 27 def graph_device() return MicrosoftGraph::Me::OwnedDevices::Item::GraphDevice::GraphDeviceRequestBuilder.new(@path_parameters, @request_adapter) end |
#graph_endpoint ⇒ Object
Casts the previous resource to endpoint.
32 33 34 |
# File 'lib/me/owned_devices/item/directory_object_item_request_builder.rb', line 32 def graph_endpoint() return MicrosoftGraph::Me::OwnedDevices::Item::GraphEndpoint::GraphEndpointRequestBuilder.new(@path_parameters, @request_adapter) end |
#to_get_request_information(request_configuration = nil) ⇒ Object
Devices that are owned by the user. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1).
63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/me/owned_devices/item/directory_object_item_request_builder.rb', line 63 def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() request_info.url_template = @url_template request_info.path_parameters = @path_parameters request_info.http_method = :GET request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.(request_configuration.) end return request_info end |