Class: MicrosoftGraph::IdentityGovernance::LifecycleWorkflows::Workflows::Item::Runs::RunsRequestBuilder
- Inherits:
-
MicrosoftKiotaAbstractions::BaseRequestBuilder
- Object
- MicrosoftKiotaAbstractions::BaseRequestBuilder
- MicrosoftGraph::IdentityGovernance::LifecycleWorkflows::Workflows::Item::Runs::RunsRequestBuilder
- Defined in:
- lib/identity_governance/lifecycle_workflows/workflows/item/runs/runs_request_builder.rb
Overview
Provides operations to manage the runs property of the microsoft.graph.identityGovernance.workflow entity.
Defined Under Namespace
Classes: RunsRequestBuilderGetQueryParameters
Instance Method Summary collapse
-
#by_run_id(run_id) ⇒ Object
Provides operations to manage the runs property of the microsoft.graph.identityGovernance.workflow entity.
-
#count ⇒ Object
Provides operations to count the resources in the collection.
-
#get(request_configuration = nil) ⇒ Object
Get a list of the run objects and their properties for a lifecycle workflow.
-
#initialize(path_parameters, request_adapter) ⇒ Object
constructor
Instantiates a new RunsRequestBuilder and sets the default values.
-
#microsoft_graph_identity_governance_summary_with_start_date_time_with_end_date_time(end_date_time, start_date_time) ⇒ Object
Provides operations to call the summary method.
-
#to_get_request_information(request_configuration = nil) ⇒ Object
Get a list of the run objects and their properties for a lifecycle workflow.
Constructor Details
#initialize(path_parameters, request_adapter) ⇒ Object
Instantiates a new RunsRequestBuilder and sets the default values.
47 48 49 |
# File 'lib/identity_governance/lifecycle_workflows/workflows/item/runs/runs_request_builder.rb', line 47 def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}") end |
Instance Method Details
#by_run_id(run_id) ⇒ Object
Provides operations to manage the runs property of the microsoft.graph.identityGovernance.workflow entity.
35 36 37 38 39 40 |
# File 'lib/identity_governance/lifecycle_workflows/workflows/item/runs/runs_request_builder.rb', line 35 def by_run_id(run_id) raise StandardError, 'run_id cannot be null' if run_id.nil? url_tpl_params = @path_parameters.clone url_tpl_params["run%2Did"] = run_id return MicrosoftGraph::IdentityGovernance::LifecycleWorkflows::Workflows::Item::Runs::Item::RunItemRequestBuilder.new(url_tpl_params, @request_adapter) end |
#count ⇒ Object
Provides operations to count the resources in the collection.
27 28 29 |
# File 'lib/identity_governance/lifecycle_workflows/workflows/item/runs/runs_request_builder.rb', line 27 def count() return MicrosoftGraph::IdentityGovernance::LifecycleWorkflows::Workflows::Item::Runs::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end |
#get(request_configuration = nil) ⇒ Object
Get a list of the run objects and their properties for a lifecycle workflow.
55 56 57 58 59 60 61 62 63 |
# File 'lib/identity_governance/lifecycle_workflows/workflows/item/runs/runs_request_builder.rb', line 55 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::IdentityGovernanceRunCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end |
#microsoft_graph_identity_governance_summary_with_start_date_time_with_end_date_time(end_date_time, start_date_time) ⇒ Object
Provides operations to call the summary method.
70 71 72 73 74 |
# File 'lib/identity_governance/lifecycle_workflows/workflows/item/runs/runs_request_builder.rb', line 70 def microsoft_graph_identity_governance_summary_with_start_date_time_with_end_date_time(end_date_time, start_date_time) raise StandardError, 'end_date_time cannot be null' if end_date_time.nil? raise StandardError, 'start_date_time cannot be null' if start_date_time.nil? return MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.new(@path_parameters, @request_adapter, endDateTime, startDateTime) end |
#to_get_request_information(request_configuration = nil) ⇒ Object
Get a list of the run objects and their properties for a lifecycle workflow.
80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/identity_governance/lifecycle_workflows/workflows/item/runs/runs_request_builder.rb', line 80 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 |