# coding: utf-8
# Copyright (c) 2016, 2025, Oracle and/or its affiliates.  All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.

# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20190101

from .schedule_http_action_details import ScheduleHttpActionDetails
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel  # noqa: F401
from oci.decorators import init_model_state_from_kwargs


@init_model_state_from_kwargs
class CreatePipelineRunScheduleActionDetails(ScheduleHttpActionDetails):
    """
    create pipeline run details
    """

    def __init__(self, **kwargs):
        """
        Initializes a new CreatePipelineRunScheduleActionDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.data_science.models.CreatePipelineRunScheduleActionDetails.http_action_type` attribute
        of this class is ``CREATE_PIPELINE_RUN`` and it should not be changed.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param http_action_type:
            The value to assign to the http_action_type property of this CreatePipelineRunScheduleActionDetails.
            Allowed values for this property are: "CREATE_JOB_RUN", "CREATE_PIPELINE_RUN", "INVOKE_ML_APPLICATION_PROVIDER_TRIGGER"
        :type http_action_type: str

        :param create_pipeline_run_details:
            The value to assign to the create_pipeline_run_details property of this CreatePipelineRunScheduleActionDetails.
        :type create_pipeline_run_details: oci.data_science.models.CreatePipelineRunDetails

        """
        self.swagger_types = {
            'http_action_type': 'str',
            'create_pipeline_run_details': 'CreatePipelineRunDetails'
        }
        self.attribute_map = {
            'http_action_type': 'httpActionType',
            'create_pipeline_run_details': 'createPipelineRunDetails'
        }
        self._http_action_type = None
        self._create_pipeline_run_details = None
        self._http_action_type = 'CREATE_PIPELINE_RUN'

    @property
    def create_pipeline_run_details(self):
        """
        **[Required]** Gets the create_pipeline_run_details of this CreatePipelineRunScheduleActionDetails.

        :return: The create_pipeline_run_details of this CreatePipelineRunScheduleActionDetails.
        :rtype: oci.data_science.models.CreatePipelineRunDetails
        """
        return self._create_pipeline_run_details

    @create_pipeline_run_details.setter
    def create_pipeline_run_details(self, create_pipeline_run_details):
        """
        Sets the create_pipeline_run_details of this CreatePipelineRunScheduleActionDetails.

        :param create_pipeline_run_details: The create_pipeline_run_details of this CreatePipelineRunScheduleActionDetails.
        :type: oci.data_science.models.CreatePipelineRunDetails
        """
        self._create_pipeline_run_details = create_pipeline_run_details

    def __repr__(self):
        return formatted_flat_dict(self)

    def __eq__(self, other):
        if other is None:
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        return not self == other
