Class: MicrosoftGraph::RoleManagement::Directory::DirectoryRequestBuilder
- Inherits:
-
MicrosoftKiotaAbstractions::BaseRequestBuilder
- Object
- MicrosoftKiotaAbstractions::BaseRequestBuilder
- MicrosoftGraph::RoleManagement::Directory::DirectoryRequestBuilder
- Defined in:
- lib/role_management/directory/directory_request_builder.rb
Overview
Provides operations to manage the directory property of the microsoft.graph.roleManagement entity.
Defined Under Namespace
Classes: DirectoryRequestBuilderGetQueryParameters
Instance Method Summary collapse
-
#delete(request_configuration = nil) ⇒ Object
Delete navigation property directory for roleManagement.
-
#get(request_configuration = nil) ⇒ Object
Get directory from roleManagement.
-
#initialize(path_parameters, request_adapter) ⇒ Object
constructor
Instantiates a new DirectoryRequestBuilder and sets the default values.
-
#patch(body, request_configuration = nil) ⇒ Object
Update the navigation property directory in roleManagement.
-
#resource_namespaces ⇒ Object
Provides operations to manage the resourceNamespaces property of the microsoft.graph.rbacApplication entity.
-
#role_assignment_schedule_instances ⇒ Object
Provides operations to manage the roleAssignmentScheduleInstances property of the microsoft.graph.rbacApplication entity.
-
#role_assignment_schedule_requests ⇒ Object
Provides operations to manage the roleAssignmentScheduleRequests property of the microsoft.graph.rbacApplication entity.
-
#role_assignment_schedules ⇒ Object
Provides operations to manage the roleAssignmentSchedules property of the microsoft.graph.rbacApplication entity.
-
#role_assignments ⇒ Object
Provides operations to manage the roleAssignments property of the microsoft.graph.rbacApplication entity.
-
#role_definitions ⇒ Object
Provides operations to manage the roleDefinitions property of the microsoft.graph.rbacApplication entity.
-
#role_eligibility_schedule_instances ⇒ Object
Provides operations to manage the roleEligibilityScheduleInstances property of the microsoft.graph.rbacApplication entity.
-
#role_eligibility_schedule_requests ⇒ Object
Provides operations to manage the roleEligibilityScheduleRequests property of the microsoft.graph.rbacApplication entity.
-
#role_eligibility_schedules ⇒ Object
Provides operations to manage the roleEligibilitySchedules property of the microsoft.graph.rbacApplication entity.
-
#to_delete_request_information(request_configuration = nil) ⇒ Object
Delete navigation property directory for roleManagement.
-
#to_get_request_information(request_configuration = nil) ⇒ Object
Get directory from roleManagement.
-
#to_patch_request_information(body, request_configuration = nil) ⇒ Object
Update the navigation property directory in roleManagement.
Constructor Details
#initialize(path_parameters, request_adapter) ⇒ Object
Instantiates a new DirectoryRequestBuilder and sets the default values.
75 76 77 |
# File 'lib/role_management/directory/directory_request_builder.rb', line 75 def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/roleManagement/directory{?%24select,%24expand}") end |
Instance Method Details
#delete(request_configuration = nil) ⇒ Object
Delete navigation property directory for roleManagement
83 84 85 86 87 88 89 90 91 |
# File 'lib/role_management/directory/directory_request_builder.rb', line 83 def delete(request_configuration=nil) request_info = self.to_delete_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, nil, error_mapping) end |
#get(request_configuration = nil) ⇒ Object
Get directory from roleManagement
97 98 99 100 101 102 103 104 105 |
# File 'lib/role_management/directory/directory_request_builder.rb', line 97 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::RbacApplication.create_from_discriminator_value(pn) }, error_mapping) end |
#patch(body, request_configuration = nil) ⇒ Object
Update the navigation property directory in roleManagement
112 113 114 115 116 117 118 119 120 121 |
# File 'lib/role_management/directory/directory_request_builder.rb', line 112 def patch(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = self.to_patch_request_information( body, 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::RbacApplication.create_from_discriminator_value(pn) }, error_mapping) end |
#resource_namespaces ⇒ Object
Provides operations to manage the resourceNamespaces property of the microsoft.graph.rbacApplication entity.
26 27 28 |
# File 'lib/role_management/directory/directory_request_builder.rb', line 26 def resource_namespaces() return MicrosoftGraph::RoleManagement::Directory::ResourceNamespaces::ResourceNamespacesRequestBuilder.new(@path_parameters, @request_adapter) end |
#role_assignment_schedule_instances ⇒ Object
Provides operations to manage the roleAssignmentScheduleInstances property of the microsoft.graph.rbacApplication entity.
36 37 38 |
# File 'lib/role_management/directory/directory_request_builder.rb', line 36 def role_assignment_schedule_instances() return MicrosoftGraph::RoleManagement::Directory::RoleAssignmentScheduleInstances::RoleAssignmentScheduleInstancesRequestBuilder.new(@path_parameters, @request_adapter) end |
#role_assignment_schedule_requests ⇒ Object
Provides operations to manage the roleAssignmentScheduleRequests property of the microsoft.graph.rbacApplication entity.
41 42 43 |
# File 'lib/role_management/directory/directory_request_builder.rb', line 41 def role_assignment_schedule_requests() return MicrosoftGraph::RoleManagement::Directory::RoleAssignmentScheduleRequests::RoleAssignmentScheduleRequestsRequestBuilder.new(@path_parameters, @request_adapter) end |
#role_assignment_schedules ⇒ Object
Provides operations to manage the roleAssignmentSchedules property of the microsoft.graph.rbacApplication entity.
46 47 48 |
# File 'lib/role_management/directory/directory_request_builder.rb', line 46 def role_assignment_schedules() return MicrosoftGraph::RoleManagement::Directory::RoleAssignmentSchedules::RoleAssignmentSchedulesRequestBuilder.new(@path_parameters, @request_adapter) end |
#role_assignments ⇒ Object
Provides operations to manage the roleAssignments property of the microsoft.graph.rbacApplication entity.
31 32 33 |
# File 'lib/role_management/directory/directory_request_builder.rb', line 31 def role_assignments() return MicrosoftGraph::RoleManagement::Directory::RoleAssignments::RoleAssignmentsRequestBuilder.new(@path_parameters, @request_adapter) end |
#role_definitions ⇒ Object
Provides operations to manage the roleDefinitions property of the microsoft.graph.rbacApplication entity.
51 52 53 |
# File 'lib/role_management/directory/directory_request_builder.rb', line 51 def role_definitions() return MicrosoftGraph::RoleManagement::Directory::RoleDefinitions::RoleDefinitionsRequestBuilder.new(@path_parameters, @request_adapter) end |
#role_eligibility_schedule_instances ⇒ Object
Provides operations to manage the roleEligibilityScheduleInstances property of the microsoft.graph.rbacApplication entity.
56 57 58 |
# File 'lib/role_management/directory/directory_request_builder.rb', line 56 def role_eligibility_schedule_instances() return MicrosoftGraph::RoleManagement::Directory::RoleEligibilityScheduleInstances::RoleEligibilityScheduleInstancesRequestBuilder.new(@path_parameters, @request_adapter) end |
#role_eligibility_schedule_requests ⇒ Object
Provides operations to manage the roleEligibilityScheduleRequests property of the microsoft.graph.rbacApplication entity.
61 62 63 |
# File 'lib/role_management/directory/directory_request_builder.rb', line 61 def role_eligibility_schedule_requests() return MicrosoftGraph::RoleManagement::Directory::RoleEligibilityScheduleRequests::RoleEligibilityScheduleRequestsRequestBuilder.new(@path_parameters, @request_adapter) end |
#role_eligibility_schedules ⇒ Object
Provides operations to manage the roleEligibilitySchedules property of the microsoft.graph.rbacApplication entity.
66 67 68 |
# File 'lib/role_management/directory/directory_request_builder.rb', line 66 def role_eligibility_schedules() return MicrosoftGraph::RoleManagement::Directory::RoleEligibilitySchedules::RoleEligibilitySchedulesRequestBuilder.new(@path_parameters, @request_adapter) end |
#to_delete_request_information(request_configuration = nil) ⇒ Object
Delete navigation property directory for roleManagement
127 128 129 130 131 132 133 134 135 136 137 |
# File 'lib/role_management/directory/directory_request_builder.rb', line 127 def to_delete_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 = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.(request_configuration.) end return request_info end |
#to_get_request_information(request_configuration = nil) ⇒ Object
Get directory from roleManagement
143 144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/role_management/directory/directory_request_builder.rb', line 143 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 |
#to_patch_request_information(body, request_configuration = nil) ⇒ Object
Update the navigation property directory in roleManagement
162 163 164 165 166 167 168 169 170 171 172 173 174 175 |
# File 'lib/role_management/directory/directory_request_builder.rb', line 162 def to_patch_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 = :PATCH request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.(request_configuration.) end request_info.set_content_from_parsable(@request_adapter, "application/json", body) return request_info end |