Class: MicrosoftGraph::RoleManagement::EntitlementManagement::EntitlementManagementRequestBuilder
- Inherits:
-
MicrosoftKiotaAbstractions::BaseRequestBuilder
- Object
- MicrosoftKiotaAbstractions::BaseRequestBuilder
- MicrosoftGraph::RoleManagement::EntitlementManagement::EntitlementManagementRequestBuilder
- Defined in:
- lib/role_management/entitlement_management/entitlement_management_request_builder.rb
Overview
Provides operations to manage the entitlementManagement property of the microsoft.graph.roleManagement entity.
Defined Under Namespace
Classes: EntitlementManagementRequestBuilderGetQueryParameters
Instance Method Summary collapse
-
#delete(request_configuration = nil) ⇒ Object
Delete navigation property entitlementManagement for roleManagement.
-
#get(request_configuration = nil) ⇒ Object
Container for roles and assignments for entitlement management resources.
-
#initialize(path_parameters, request_adapter) ⇒ Object
constructor
Instantiates a new EntitlementManagementRequestBuilder and sets the default values.
-
#patch(body, request_configuration = nil) ⇒ Object
Update the navigation property entitlementManagement in roleManagement.
-
#resource_namespaces ⇒ Object
Provides operations to manage the resourceNamespaces property of the microsoft.graph.rbacApplication entity.
-
#resource_namespaces_by_id(id) ⇒ 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_instances_by_id(id) ⇒ 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_schedule_requests_by_id(id) ⇒ 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_assignment_schedules_by_id(id) ⇒ 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_assignments_by_id(id) ⇒ 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_definitions_by_id(id) ⇒ 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_instances_by_id(id) ⇒ 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_schedule_requests_by_id(id) ⇒ 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.
-
#role_eligibility_schedules_by_id(id) ⇒ 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 entitlementManagement for roleManagement.
-
#to_get_request_information(request_configuration = nil) ⇒ Object
Container for roles and assignments for entitlement management resources.
-
#to_patch_request_information(body, request_configuration = nil) ⇒ Object
Update the navigation property entitlementManagement in roleManagement.
Constructor Details
#initialize(path_parameters, request_adapter) ⇒ Object
Instantiates a new EntitlementManagementRequestBuilder and sets the default values.
84 85 86 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 84 def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/roleManagement/entitlementManagement{?%24select,%24expand}") end |
Instance Method Details
#delete(request_configuration = nil) ⇒ Object
Delete navigation property entitlementManagement for roleManagement
92 93 94 95 96 97 98 99 100 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 92 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end |
#get(request_configuration = nil) ⇒ Object
Container for roles and assignments for entitlement management resources.
106 107 108 109 110 111 112 113 114 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 106 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.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 entitlementManagement in roleManagement
121 122 123 124 125 126 127 128 129 130 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 121 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.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.
35 36 37 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 35 def resource_namespaces() return MicrosoftGraph::RoleManagement::EntitlementManagement::ResourceNamespaces::ResourceNamespacesRequestBuilder.new(@path_parameters, @request_adapter) end |
#resource_namespaces_by_id(id) ⇒ Object
Provides operations to manage the resourceNamespaces property of the microsoft.graph.rbacApplication entity.
136 137 138 139 140 141 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 136 def resource_namespaces_by_id(id) raise StandardError, 'id cannot be null' if id.nil? url_tpl_params = @path_parameters.clone url_tpl_params["unifiedRbacResourceNamespace%2Did"] = id return MicrosoftGraph::RoleManagement::EntitlementManagement::ResourceNamespaces::Item::UnifiedRbacResourceNamespaceItemRequestBuilder.new(url_tpl_params, @request_adapter) end |
#role_assignment_schedule_instances ⇒ Object
Provides operations to manage the roleAssignmentScheduleInstances property of the microsoft.graph.rbacApplication entity.
45 46 47 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 45 def role_assignment_schedule_instances() return MicrosoftGraph::RoleManagement::EntitlementManagement::RoleAssignmentScheduleInstances::RoleAssignmentScheduleInstancesRequestBuilder.new(@path_parameters, @request_adapter) end |
#role_assignment_schedule_instances_by_id(id) ⇒ Object
Provides operations to manage the roleAssignmentScheduleInstances property of the microsoft.graph.rbacApplication entity.
158 159 160 161 162 163 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 158 def role_assignment_schedule_instances_by_id(id) raise StandardError, 'id cannot be null' if id.nil? url_tpl_params = @path_parameters.clone url_tpl_params["unifiedRoleAssignmentScheduleInstance%2Did"] = id return MicrosoftGraph::RoleManagement::EntitlementManagement::RoleAssignmentScheduleInstances::Item::UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.new(url_tpl_params, @request_adapter) end |
#role_assignment_schedule_requests ⇒ Object
Provides operations to manage the roleAssignmentScheduleRequests property of the microsoft.graph.rbacApplication entity.
50 51 52 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 50 def role_assignment_schedule_requests() return MicrosoftGraph::RoleManagement::EntitlementManagement::RoleAssignmentScheduleRequests::RoleAssignmentScheduleRequestsRequestBuilder.new(@path_parameters, @request_adapter) end |
#role_assignment_schedule_requests_by_id(id) ⇒ Object
Provides operations to manage the roleAssignmentScheduleRequests property of the microsoft.graph.rbacApplication entity.
169 170 171 172 173 174 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 169 def role_assignment_schedule_requests_by_id(id) raise StandardError, 'id cannot be null' if id.nil? url_tpl_params = @path_parameters.clone url_tpl_params["unifiedRoleAssignmentScheduleRequest%2Did"] = id return MicrosoftGraph::RoleManagement::EntitlementManagement::RoleAssignmentScheduleRequests::Item::UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.new(url_tpl_params, @request_adapter) end |
#role_assignment_schedules ⇒ Object
Provides operations to manage the roleAssignmentSchedules property of the microsoft.graph.rbacApplication entity.
55 56 57 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 55 def role_assignment_schedules() return MicrosoftGraph::RoleManagement::EntitlementManagement::RoleAssignmentSchedules::RoleAssignmentSchedulesRequestBuilder.new(@path_parameters, @request_adapter) end |
#role_assignment_schedules_by_id(id) ⇒ Object
Provides operations to manage the roleAssignmentSchedules property of the microsoft.graph.rbacApplication entity.
180 181 182 183 184 185 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 180 def role_assignment_schedules_by_id(id) raise StandardError, 'id cannot be null' if id.nil? url_tpl_params = @path_parameters.clone url_tpl_params["unifiedRoleAssignmentSchedule%2Did"] = id return MicrosoftGraph::RoleManagement::EntitlementManagement::RoleAssignmentSchedules::Item::UnifiedRoleAssignmentScheduleItemRequestBuilder.new(url_tpl_params, @request_adapter) end |
#role_assignments ⇒ Object
Provides operations to manage the roleAssignments property of the microsoft.graph.rbacApplication entity.
40 41 42 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 40 def role_assignments() return MicrosoftGraph::RoleManagement::EntitlementManagement::RoleAssignments::RoleAssignmentsRequestBuilder.new(@path_parameters, @request_adapter) end |
#role_assignments_by_id(id) ⇒ Object
Provides operations to manage the roleAssignments property of the microsoft.graph.rbacApplication entity.
147 148 149 150 151 152 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 147 def role_assignments_by_id(id) raise StandardError, 'id cannot be null' if id.nil? url_tpl_params = @path_parameters.clone url_tpl_params["unifiedRoleAssignment%2Did"] = id return MicrosoftGraph::RoleManagement::EntitlementManagement::RoleAssignments::Item::UnifiedRoleAssignmentItemRequestBuilder.new(url_tpl_params, @request_adapter) end |
#role_definitions ⇒ Object
Provides operations to manage the roleDefinitions property of the microsoft.graph.rbacApplication entity.
60 61 62 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 60 def role_definitions() return MicrosoftGraph::RoleManagement::EntitlementManagement::RoleDefinitions::RoleDefinitionsRequestBuilder.new(@path_parameters, @request_adapter) end |
#role_definitions_by_id(id) ⇒ Object
Provides operations to manage the roleDefinitions property of the microsoft.graph.rbacApplication entity.
191 192 193 194 195 196 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 191 def role_definitions_by_id(id) raise StandardError, 'id cannot be null' if id.nil? url_tpl_params = @path_parameters.clone url_tpl_params["unifiedRoleDefinition%2Did"] = id return MicrosoftGraph::RoleManagement::EntitlementManagement::RoleDefinitions::Item::UnifiedRoleDefinitionItemRequestBuilder.new(url_tpl_params, @request_adapter) end |
#role_eligibility_schedule_instances ⇒ Object
Provides operations to manage the roleEligibilityScheduleInstances property of the microsoft.graph.rbacApplication entity.
65 66 67 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 65 def role_eligibility_schedule_instances() return MicrosoftGraph::RoleManagement::EntitlementManagement::RoleEligibilityScheduleInstances::RoleEligibilityScheduleInstancesRequestBuilder.new(@path_parameters, @request_adapter) end |
#role_eligibility_schedule_instances_by_id(id) ⇒ Object
Provides operations to manage the roleEligibilityScheduleInstances property of the microsoft.graph.rbacApplication entity.
202 203 204 205 206 207 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 202 def role_eligibility_schedule_instances_by_id(id) raise StandardError, 'id cannot be null' if id.nil? url_tpl_params = @path_parameters.clone url_tpl_params["unifiedRoleEligibilityScheduleInstance%2Did"] = id return MicrosoftGraph::RoleManagement::EntitlementManagement::RoleEligibilityScheduleInstances::Item::UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.new(url_tpl_params, @request_adapter) end |
#role_eligibility_schedule_requests ⇒ Object
Provides operations to manage the roleEligibilityScheduleRequests property of the microsoft.graph.rbacApplication entity.
70 71 72 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 70 def role_eligibility_schedule_requests() return MicrosoftGraph::RoleManagement::EntitlementManagement::RoleEligibilityScheduleRequests::RoleEligibilityScheduleRequestsRequestBuilder.new(@path_parameters, @request_adapter) end |
#role_eligibility_schedule_requests_by_id(id) ⇒ Object
Provides operations to manage the roleEligibilityScheduleRequests property of the microsoft.graph.rbacApplication entity.
213 214 215 216 217 218 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 213 def role_eligibility_schedule_requests_by_id(id) raise StandardError, 'id cannot be null' if id.nil? url_tpl_params = @path_parameters.clone url_tpl_params["unifiedRoleEligibilityScheduleRequest%2Did"] = id return MicrosoftGraph::RoleManagement::EntitlementManagement::RoleEligibilityScheduleRequests::Item::UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.new(url_tpl_params, @request_adapter) end |
#role_eligibility_schedules ⇒ Object
Provides operations to manage the roleEligibilitySchedules property of the microsoft.graph.rbacApplication entity.
75 76 77 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 75 def role_eligibility_schedules() return MicrosoftGraph::RoleManagement::EntitlementManagement::RoleEligibilitySchedules::RoleEligibilitySchedulesRequestBuilder.new(@path_parameters, @request_adapter) end |
#role_eligibility_schedules_by_id(id) ⇒ Object
Provides operations to manage the roleEligibilitySchedules property of the microsoft.graph.rbacApplication entity.
224 225 226 227 228 229 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 224 def role_eligibility_schedules_by_id(id) raise StandardError, 'id cannot be null' if id.nil? url_tpl_params = @path_parameters.clone url_tpl_params["unifiedRoleEligibilitySchedule%2Did"] = id return MicrosoftGraph::RoleManagement::EntitlementManagement::RoleEligibilitySchedules::Item::UnifiedRoleEligibilityScheduleItemRequestBuilder.new(url_tpl_params, @request_adapter) end |
#to_delete_request_information(request_configuration = nil) ⇒ Object
Delete navigation property entitlementManagement for roleManagement
235 236 237 238 239 240 241 242 243 244 245 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 235 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
Container for roles and assignments for entitlement management resources.
251 252 253 254 255 256 257 258 259 260 261 262 263 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 251 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 entitlementManagement in roleManagement
270 271 272 273 274 275 276 277 278 279 280 281 282 283 |
# File 'lib/role_management/entitlement_management/entitlement_management_request_builder.rb', line 270 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 |