Class: MicrosoftGraph::RoleManagement::Directory::RoleAssignmentSchedules::Item::UnifiedRoleAssignmentScheduleItemRequestBuilder
- Inherits:
-
MicrosoftKiotaAbstractions::BaseRequestBuilder
- Object
- MicrosoftKiotaAbstractions::BaseRequestBuilder
- MicrosoftGraph::RoleManagement::Directory::RoleAssignmentSchedules::Item::UnifiedRoleAssignmentScheduleItemRequestBuilder
- Defined in:
- lib/role_management/directory/role_assignment_schedules/item/unified_role_assignment_schedule_item_request_builder.rb
Overview
Provides operations to manage the roleAssignmentSchedules property of the microsoft.graph.rbacApplication entity.
Defined Under Namespace
Classes: UnifiedRoleAssignmentScheduleItemRequestBuilderGetQueryParameters
Instance Method Summary collapse
-
#activated_using ⇒ Object
Provides operations to manage the activatedUsing property of the microsoft.graph.unifiedRoleAssignmentSchedule entity.
-
#app_scope ⇒ Object
Provides operations to manage the appScope property of the microsoft.graph.unifiedRoleScheduleBase entity.
-
#delete(request_configuration = nil) ⇒ Object
Delete navigation property roleAssignmentSchedules for roleManagement.
-
#directory_scope ⇒ Object
Provides operations to manage the directoryScope property of the microsoft.graph.unifiedRoleScheduleBase entity.
-
#get(request_configuration = nil) ⇒ Object
Retrieve the schedule for an active role assignment operation.
-
#initialize(path_parameters, request_adapter) ⇒ Object
constructor
Instantiates a new UnifiedRoleAssignmentScheduleItemRequestBuilder and sets the default values.
-
#patch(body, request_configuration = nil) ⇒ Object
Update the navigation property roleAssignmentSchedules in roleManagement.
-
#principal ⇒ Object
Provides operations to manage the principal property of the microsoft.graph.unifiedRoleScheduleBase entity.
-
#role_definition ⇒ Object
Provides operations to manage the roleDefinition property of the microsoft.graph.unifiedRoleScheduleBase entity.
-
#to_delete_request_information(request_configuration = nil) ⇒ Object
Delete navigation property roleAssignmentSchedules for roleManagement.
-
#to_get_request_information(request_configuration = nil) ⇒ Object
Retrieve the schedule for an active role assignment operation.
-
#to_patch_request_information(body, request_configuration = nil) ⇒ Object
Update the navigation property roleAssignmentSchedules in roleManagement.
Constructor Details
#initialize(path_parameters, request_adapter) ⇒ Object
Instantiates a new UnifiedRoleAssignmentScheduleItemRequestBuilder and sets the default values.
55 56 57 |
# File 'lib/role_management/directory/role_assignment_schedules/item/unified_role_assignment_schedule_item_request_builder.rb', line 55 def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/roleManagement/directory/roleAssignmentSchedules/{unifiedRoleAssignmentSchedule%2Did}{?%24select,%24expand}") end |
Instance Method Details
#activated_using ⇒ Object
Provides operations to manage the activatedUsing property of the microsoft.graph.unifiedRoleAssignmentSchedule entity.
26 27 28 |
# File 'lib/role_management/directory/role_assignment_schedules/item/unified_role_assignment_schedule_item_request_builder.rb', line 26 def activated_using() return MicrosoftGraph::RoleManagement::Directory::RoleAssignmentSchedules::Item::ActivatedUsing::ActivatedUsingRequestBuilder.new(@path_parameters, @request_adapter) end |
#app_scope ⇒ Object
Provides operations to manage the appScope property of the microsoft.graph.unifiedRoleScheduleBase entity.
31 32 33 |
# File 'lib/role_management/directory/role_assignment_schedules/item/unified_role_assignment_schedule_item_request_builder.rb', line 31 def app_scope() return MicrosoftGraph::RoleManagement::Directory::RoleAssignmentSchedules::Item::AppScope::AppScopeRequestBuilder.new(@path_parameters, @request_adapter) end |
#delete(request_configuration = nil) ⇒ Object
Delete navigation property roleAssignmentSchedules for roleManagement
63 64 65 66 67 68 69 70 71 |
# File 'lib/role_management/directory/role_assignment_schedules/item/unified_role_assignment_schedule_item_request_builder.rb', line 63 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 |
#directory_scope ⇒ Object
Provides operations to manage the directoryScope property of the microsoft.graph.unifiedRoleScheduleBase entity.
36 37 38 |
# File 'lib/role_management/directory/role_assignment_schedules/item/unified_role_assignment_schedule_item_request_builder.rb', line 36 def directory_scope() return MicrosoftGraph::RoleManagement::Directory::RoleAssignmentSchedules::Item::DirectoryScope::DirectoryScopeRequestBuilder.new(@path_parameters, @request_adapter) end |
#get(request_configuration = nil) ⇒ Object
Retrieve the schedule for an active role assignment operation.
77 78 79 80 81 82 83 84 85 |
# File 'lib/role_management/directory/role_assignment_schedules/item/unified_role_assignment_schedule_item_request_builder.rb', line 77 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::UnifiedRoleAssignmentSchedule.create_from_discriminator_value(pn) }, error_mapping) end |
#patch(body, request_configuration = nil) ⇒ Object
Update the navigation property roleAssignmentSchedules in roleManagement
92 93 94 95 96 97 98 99 100 101 |
# File 'lib/role_management/directory/role_assignment_schedules/item/unified_role_assignment_schedule_item_request_builder.rb', line 92 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::UnifiedRoleAssignmentSchedule.create_from_discriminator_value(pn) }, error_mapping) end |
#principal ⇒ Object
Provides operations to manage the principal property of the microsoft.graph.unifiedRoleScheduleBase entity.
41 42 43 |
# File 'lib/role_management/directory/role_assignment_schedules/item/unified_role_assignment_schedule_item_request_builder.rb', line 41 def principal() return MicrosoftGraph::RoleManagement::Directory::RoleAssignmentSchedules::Item::Principal::PrincipalRequestBuilder.new(@path_parameters, @request_adapter) end |
#role_definition ⇒ Object
Provides operations to manage the roleDefinition property of the microsoft.graph.unifiedRoleScheduleBase entity.
46 47 48 |
# File 'lib/role_management/directory/role_assignment_schedules/item/unified_role_assignment_schedule_item_request_builder.rb', line 46 def role_definition() return MicrosoftGraph::RoleManagement::Directory::RoleAssignmentSchedules::Item::RoleDefinition::RoleDefinitionRequestBuilder.new(@path_parameters, @request_adapter) end |
#to_delete_request_information(request_configuration = nil) ⇒ Object
Delete navigation property roleAssignmentSchedules for roleManagement
107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/role_management/directory/role_assignment_schedules/item/unified_role_assignment_schedule_item_request_builder.rb', line 107 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
Retrieve the schedule for an active role assignment operation.
123 124 125 126 127 128 129 130 131 132 133 134 135 |
# File 'lib/role_management/directory/role_assignment_schedules/item/unified_role_assignment_schedule_item_request_builder.rb', line 123 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 roleAssignmentSchedules in roleManagement
142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/role_management/directory/role_assignment_schedules/item/unified_role_assignment_schedule_item_request_builder.rb', line 142 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 |