Class: MicrosoftGraph::Users::Item::OwnedDevices::Item::DirectoryObjectItemRequestBuilder
- Inherits:
-
MicrosoftKiotaAbstractions::BaseRequestBuilder
- Object
- MicrosoftKiotaAbstractions::BaseRequestBuilder
- MicrosoftGraph::Users::Item::OwnedDevices::Item::DirectoryObjectItemRequestBuilder
- Defined in:
- lib/users/item/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.
43 44 45 |
# File 'lib/users/item/owned_devices/item/directory_object_item_request_builder.rb', line 43 def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/users/{user%2Did}/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).
51 52 53 54 55 56 57 58 59 |
# File 'lib/users/item/owned_devices/item/directory_object_item_request_builder.rb', line 51 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.
24 25 26 |
# File 'lib/users/item/owned_devices/item/directory_object_item_request_builder.rb', line 24 def graph_app_role_assignment() return MicrosoftGraph::Users::Item::OwnedDevices::Item::GraphAppRoleAssignment::GraphAppRoleAssignmentRequestBuilder.new(@path_parameters, @request_adapter) end |
#graph_device ⇒ Object
Casts the previous resource to device.
29 30 31 |
# File 'lib/users/item/owned_devices/item/directory_object_item_request_builder.rb', line 29 def graph_device() return MicrosoftGraph::Users::Item::OwnedDevices::Item::GraphDevice::GraphDeviceRequestBuilder.new(@path_parameters, @request_adapter) end |
#graph_endpoint ⇒ Object
Casts the previous resource to endpoint.
34 35 36 |
# File 'lib/users/item/owned_devices/item/directory_object_item_request_builder.rb', line 34 def graph_endpoint() return MicrosoftGraph::Users::Item::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).
65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/users/item/owned_devices/item/directory_object_item_request_builder.rb', line 65 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 |