Class: MicrosoftGraph::IdentityGovernance::LifecycleWorkflows::Workflows::Item::WorkflowItemRequestBuilder
- Inherits:
-
MicrosoftKiotaAbstractions::BaseRequestBuilder
- Object
- MicrosoftKiotaAbstractions::BaseRequestBuilder
- MicrosoftGraph::IdentityGovernance::LifecycleWorkflows::Workflows::Item::WorkflowItemRequestBuilder
- Defined in:
- lib/identity_governance/lifecycle_workflows/workflows/item/workflow_item_request_builder.rb
Overview
Provides operations to manage the workflows property of the microsoft.graph.identityGovernance.lifecycleWorkflowsContainer entity.
Defined Under Namespace
Classes: WorkflowItemRequestBuilderGetQueryParameters
Instance Method Summary collapse
-
#created_by ⇒ Object
Provides operations to manage the createdBy property of the microsoft.graph.identityGovernance.workflowBase entity.
-
#delete(request_configuration = nil) ⇒ Object
Delete a workflow object and its associated tasks, taskProcessingResults and versions.
-
#execution_scope ⇒ Object
Provides operations to manage the executionScope property of the microsoft.graph.identityGovernance.workflow entity.
-
#get(request_configuration = nil) ⇒ Object
Read the properties and relationships of a workflow object.
-
#initialize(path_parameters, request_adapter) ⇒ Object
constructor
Instantiates a new WorkflowItemRequestBuilder and sets the default values.
-
#last_modified_by ⇒ Object
Provides operations to manage the lastModifiedBy property of the microsoft.graph.identityGovernance.workflowBase entity.
-
#microsoft_graph_identity_governance_activate ⇒ Object
Provides operations to call the activate method.
-
#microsoft_graph_identity_governance_create_new_version ⇒ Object
Provides operations to call the createNewVersion method.
-
#microsoft_graph_identity_governance_restore ⇒ Object
Provides operations to call the restore method.
-
#patch(body, request_configuration = nil) ⇒ Object
Update the properties of a workflow object.
-
#runs ⇒ Object
Provides operations to manage the runs property of the microsoft.graph.identityGovernance.workflow entity.
-
#task_reports ⇒ Object
Provides operations to manage the taskReports property of the microsoft.graph.identityGovernance.workflow entity.
-
#tasks ⇒ Object
Provides operations to manage the tasks property of the microsoft.graph.identityGovernance.workflowBase entity.
-
#to_delete_request_information(request_configuration = nil) ⇒ Object
Delete a workflow object and its associated tasks, taskProcessingResults and versions.
-
#to_get_request_information(request_configuration = nil) ⇒ Object
Read the properties and relationships of a workflow object.
-
#to_patch_request_information(body, request_configuration = nil) ⇒ Object
Update the properties of a workflow object.
-
#user_processing_results ⇒ Object
Provides operations to manage the userProcessingResults property of the microsoft.graph.identityGovernance.workflow entity.
-
#versions ⇒ Object
Provides operations to manage the versions property of the microsoft.graph.identityGovernance.workflow entity.
Constructor Details
#initialize(path_parameters, request_adapter) ⇒ Object
Instantiates a new WorkflowItemRequestBuilder and sets the default values.
91 92 93 |
# File 'lib/identity_governance/lifecycle_workflows/workflows/item/workflow_item_request_builder.rb', line 91 def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}{?%24select,%24expand}") end |
Instance Method Details
#created_by ⇒ Object
Provides operations to manage the createdBy property of the microsoft.graph.identityGovernance.workflowBase entity.
32 33 34 |
# File 'lib/identity_governance/lifecycle_workflows/workflows/item/workflow_item_request_builder.rb', line 32 def created_by() return MicrosoftGraph::IdentityGovernance::LifecycleWorkflows::Workflows::Item::CreatedBy::CreatedByRequestBuilder.new(@path_parameters, @request_adapter) end |
#delete(request_configuration = nil) ⇒ Object
Delete a workflow object and its associated tasks, taskProcessingResults and versions. You can restore a deleted workflow and its associated objects within 30 days of deletion.
99 100 101 102 103 104 105 106 107 |
# File 'lib/identity_governance/lifecycle_workflows/workflows/item/workflow_item_request_builder.rb', line 99 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 |
#execution_scope ⇒ Object
Provides operations to manage the executionScope property of the microsoft.graph.identityGovernance.workflow entity.
37 38 39 |
# File 'lib/identity_governance/lifecycle_workflows/workflows/item/workflow_item_request_builder.rb', line 37 def execution_scope() return MicrosoftGraph::IdentityGovernance::LifecycleWorkflows::Workflows::Item::ExecutionScope::ExecutionScopeRequestBuilder.new(@path_parameters, @request_adapter) end |
#get(request_configuration = nil) ⇒ Object
Read the properties and relationships of a workflow object.
113 114 115 116 117 118 119 120 121 |
# File 'lib/identity_governance/lifecycle_workflows/workflows/item/workflow_item_request_builder.rb', line 113 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::IdentityGovernanceWorkflow.create_from_discriminator_value(pn) }, error_mapping) end |
#last_modified_by ⇒ Object
Provides operations to manage the lastModifiedBy property of the microsoft.graph.identityGovernance.workflowBase entity.
42 43 44 |
# File 'lib/identity_governance/lifecycle_workflows/workflows/item/workflow_item_request_builder.rb', line 42 def last_modified_by() return MicrosoftGraph::IdentityGovernance::LifecycleWorkflows::Workflows::Item::LastModifiedBy::LastModifiedByRequestBuilder.new(@path_parameters, @request_adapter) end |
#microsoft_graph_identity_governance_activate ⇒ Object
Provides operations to call the activate method.
47 48 49 |
# File 'lib/identity_governance/lifecycle_workflows/workflows/item/workflow_item_request_builder.rb', line 47 def microsoft_graph_identity_governance_activate() return MicrosoftGraph::IdentityGovernance::LifecycleWorkflows::Workflows::Item::MicrosoftGraphIdentityGovernanceActivate::MicrosoftGraphIdentityGovernanceActivateRequestBuilder.new(@path_parameters, @request_adapter) end |
#microsoft_graph_identity_governance_create_new_version ⇒ Object
Provides operations to call the createNewVersion method.
52 53 54 |
# File 'lib/identity_governance/lifecycle_workflows/workflows/item/workflow_item_request_builder.rb', line 52 def microsoft_graph_identity_governance_create_new_version() return MicrosoftGraph::IdentityGovernance::LifecycleWorkflows::Workflows::Item::MicrosoftGraphIdentityGovernanceCreateNewVersion::MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.new(@path_parameters, @request_adapter) end |
#microsoft_graph_identity_governance_restore ⇒ Object
Provides operations to call the restore method.
57 58 59 |
# File 'lib/identity_governance/lifecycle_workflows/workflows/item/workflow_item_request_builder.rb', line 57 def microsoft_graph_identity_governance_restore() return MicrosoftGraph::IdentityGovernance::LifecycleWorkflows::Workflows::Item::MicrosoftGraphIdentityGovernanceRestore::MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.new(@path_parameters, @request_adapter) end |
#patch(body, request_configuration = nil) ⇒ Object
Update the properties of a workflow object. Only the properties listed in the request body table can be updated. To update any other workflow properties, see workflow: createNewVersion.
128 129 130 131 132 133 134 135 136 137 |
# File 'lib/identity_governance/lifecycle_workflows/workflows/item/workflow_item_request_builder.rb', line 128 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::IdentityGovernanceWorkflow.create_from_discriminator_value(pn) }, error_mapping) end |
#runs ⇒ Object
Provides operations to manage the runs property of the microsoft.graph.identityGovernance.workflow entity.
62 63 64 |
# File 'lib/identity_governance/lifecycle_workflows/workflows/item/workflow_item_request_builder.rb', line 62 def runs() return MicrosoftGraph::IdentityGovernance::LifecycleWorkflows::Workflows::Item::Runs::RunsRequestBuilder.new(@path_parameters, @request_adapter) end |
#task_reports ⇒ Object
Provides operations to manage the taskReports property of the microsoft.graph.identityGovernance.workflow entity.
67 68 69 |
# File 'lib/identity_governance/lifecycle_workflows/workflows/item/workflow_item_request_builder.rb', line 67 def task_reports() return MicrosoftGraph::IdentityGovernance::LifecycleWorkflows::Workflows::Item::TaskReports::TaskReportsRequestBuilder.new(@path_parameters, @request_adapter) end |
#tasks ⇒ Object
Provides operations to manage the tasks property of the microsoft.graph.identityGovernance.workflowBase entity.
72 73 74 |
# File 'lib/identity_governance/lifecycle_workflows/workflows/item/workflow_item_request_builder.rb', line 72 def tasks() return MicrosoftGraph::IdentityGovernance::LifecycleWorkflows::Workflows::Item::Tasks::TasksRequestBuilder.new(@path_parameters, @request_adapter) end |
#to_delete_request_information(request_configuration = nil) ⇒ Object
Delete a workflow object and its associated tasks, taskProcessingResults and versions. You can restore a deleted workflow and its associated objects within 30 days of deletion.
143 144 145 146 147 148 149 150 151 152 153 |
# File 'lib/identity_governance/lifecycle_workflows/workflows/item/workflow_item_request_builder.rb', line 143 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
Read the properties and relationships of a workflow object.
159 160 161 162 163 164 165 166 167 168 169 170 171 |
# File 'lib/identity_governance/lifecycle_workflows/workflows/item/workflow_item_request_builder.rb', line 159 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 properties of a workflow object. Only the properties listed in the request body table can be updated. To update any other workflow properties, see workflow: createNewVersion.
178 179 180 181 182 183 184 185 186 187 188 189 190 191 |
# File 'lib/identity_governance/lifecycle_workflows/workflows/item/workflow_item_request_builder.rb', line 178 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 |
#user_processing_results ⇒ Object
Provides operations to manage the userProcessingResults property of the microsoft.graph.identityGovernance.workflow entity.
77 78 79 |
# File 'lib/identity_governance/lifecycle_workflows/workflows/item/workflow_item_request_builder.rb', line 77 def user_processing_results() return MicrosoftGraph::IdentityGovernance::LifecycleWorkflows::Workflows::Item::UserProcessingResults::UserProcessingResultsRequestBuilder.new(@path_parameters, @request_adapter) end |
#versions ⇒ Object
Provides operations to manage the versions property of the microsoft.graph.identityGovernance.workflow entity.
82 83 84 |
# File 'lib/identity_governance/lifecycle_workflows/workflows/item/workflow_item_request_builder.rb', line 82 def versions() return MicrosoftGraph::IdentityGovernance::LifecycleWorkflows::Workflows::Item::Versions::VersionsRequestBuilder.new(@path_parameters, @request_adapter) end |