Class: MicrosoftGraph::Devices::Item::RegisteredUsers::RegisteredUsersRequestBuilder
- Inherits:
-
MicrosoftKiotaAbstractions::BaseRequestBuilder
- Object
- MicrosoftKiotaAbstractions::BaseRequestBuilder
- MicrosoftGraph::Devices::Item::RegisteredUsers::RegisteredUsersRequestBuilder
- Defined in:
- lib/devices/item/registered_users/registered_users_request_builder.rb
Overview
Provides operations to manage the registeredUsers property of the microsoft.graph.device entity.
Defined Under Namespace
Classes: RegisteredUsersRequestBuilderGetQueryParameters
Instance Method Summary collapse
-
#by_directory_object_id(directory_object_id) ⇒ Object
Gets an item from the MicrosoftGraph.devices.item.registeredUsers.item collection.
-
#count ⇒ Object
Provides operations to count the resources in the collection.
-
#get(request_configuration = nil) ⇒ Object
Collection of registered users of the device.
-
#graph_app_role_assignment ⇒ Object
Casts the previous resource to appRoleAssignment.
-
#graph_endpoint ⇒ Object
Casts the previous resource to endpoint.
-
#graph_service_principal ⇒ Object
Casts the previous resource to servicePrincipal.
-
#graph_user ⇒ Object
Casts the previous resource to user.
-
#initialize(path_parameters, request_adapter) ⇒ Object
constructor
Instantiates a new RegisteredUsersRequestBuilder and sets the default values.
-
#ref ⇒ Object
Provides operations to manage the collection of device entities.
-
#to_get_request_information(request_configuration = nil) ⇒ Object
Collection of registered users of the device.
Constructor Details
#initialize(path_parameters, request_adapter) ⇒ Object
Instantiates a new RegisteredUsersRequestBuilder and sets the default values.
71 72 73 |
# File 'lib/devices/item/registered_users/registered_users_request_builder.rb', line 71 def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/devices/{device%2Did}/registeredUsers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") end |
Instance Method Details
#by_directory_object_id(directory_object_id) ⇒ Object
Gets an item from the MicrosoftGraph.devices.item.registeredUsers.item collection
59 60 61 62 63 64 |
# File 'lib/devices/item/registered_users/registered_users_request_builder.rb', line 59 def by_directory_object_id(directory_object_id) raise StandardError, 'directory_object_id cannot be null' if directory_object_id.nil? url_tpl_params = @path_parameters.clone url_tpl_params["directoryObject%2Did"] = directory_object_id return MicrosoftGraph::Devices::Item::RegisteredUsers::Item::DirectoryObjectItemRequestBuilder.new(url_tpl_params, @request_adapter) end |
#count ⇒ Object
Provides operations to count the resources in the collection.
26 27 28 |
# File 'lib/devices/item/registered_users/registered_users_request_builder.rb', line 26 def count() return MicrosoftGraph::Devices::Item::RegisteredUsers::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end |
#get(request_configuration = nil) ⇒ Object
Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand.
79 80 81 82 83 84 85 86 87 |
# File 'lib/devices/item/registered_users/registered_users_request_builder.rb', line 79 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::DirectoryObjectCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end |
#graph_app_role_assignment ⇒ Object
Casts the previous resource to appRoleAssignment.
31 32 33 |
# File 'lib/devices/item/registered_users/registered_users_request_builder.rb', line 31 def graph_app_role_assignment() return MicrosoftGraph::Devices::Item::RegisteredUsers::GraphAppRoleAssignment::GraphAppRoleAssignmentRequestBuilder.new(@path_parameters, @request_adapter) end |
#graph_endpoint ⇒ Object
Casts the previous resource to endpoint.
36 37 38 |
# File 'lib/devices/item/registered_users/registered_users_request_builder.rb', line 36 def graph_endpoint() return MicrosoftGraph::Devices::Item::RegisteredUsers::GraphEndpoint::GraphEndpointRequestBuilder.new(@path_parameters, @request_adapter) end |
#graph_service_principal ⇒ Object
Casts the previous resource to servicePrincipal.
41 42 43 |
# File 'lib/devices/item/registered_users/registered_users_request_builder.rb', line 41 def graph_service_principal() return MicrosoftGraph::Devices::Item::RegisteredUsers::GraphServicePrincipal::GraphServicePrincipalRequestBuilder.new(@path_parameters, @request_adapter) end |
#graph_user ⇒ Object
Casts the previous resource to user.
46 47 48 |
# File 'lib/devices/item/registered_users/registered_users_request_builder.rb', line 46 def graph_user() return MicrosoftGraph::Devices::Item::RegisteredUsers::GraphUser::GraphUserRequestBuilder.new(@path_parameters, @request_adapter) end |
#ref ⇒ Object
Provides operations to manage the collection of device entities.
51 52 53 |
# File 'lib/devices/item/registered_users/registered_users_request_builder.rb', line 51 def ref() return MicrosoftGraph::Devices::Item::RegisteredUsers::Ref::RefRequestBuilder.new(@path_parameters, @request_adapter) end |
#to_get_request_information(request_configuration = nil) ⇒ Object
Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand.
93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/devices/item/registered_users/registered_users_request_builder.rb', line 93 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 |