CreateSparkArtifactLocationDetails

class oci.golden_gate.models.CreateSparkArtifactLocationDetails(**kwargs)

Bases: object

The information about a location used to share Spark application artifacts with a remote cluster.

Attributes

LOCATION_TYPE_OCI_OBJECT_STORAGE A constant which can be used with the location_type property of a CreateSparkArtifactLocationDetails.
location_type [Required] Gets the location_type of this CreateSparkArtifactLocationDetails.
should_overwrite_existing Gets the should_overwrite_existing of this CreateSparkArtifactLocationDetails.

Methods

__init__(**kwargs) Initializes a new CreateSparkArtifactLocationDetails object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
LOCATION_TYPE_OCI_OBJECT_STORAGE = 'OCI_OBJECT_STORAGE'

A constant which can be used with the location_type property of a CreateSparkArtifactLocationDetails. This constant has a value of “OCI_OBJECT_STORAGE”

__init__(**kwargs)

Initializes a new CreateSparkArtifactLocationDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • location_type (str) – The value to assign to the location_type property of this CreateSparkArtifactLocationDetails. Allowed values for this property are: “OCI_OBJECT_STORAGE”
  • should_overwrite_existing (bool) – The value to assign to the should_overwrite_existing property of this CreateSparkArtifactLocationDetails.
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

location_type

[Required] Gets the location_type of this CreateSparkArtifactLocationDetails. The type of location used to share Spark application artifacts.

Allowed values for this property are: “OCI_OBJECT_STORAGE”

Returns:The location_type of this CreateSparkArtifactLocationDetails.
Return type:str
should_overwrite_existing

Gets the should_overwrite_existing of this CreateSparkArtifactLocationDetails. Controls whether a staged Spark application artifact replaces an existing file or object with the same name at the configured destination. The artifact is typically a GGFAB pipeline package or one of its dependency files.

When set to true, the existing file or object is replaced with the newly staged version. When set to false, staging fails or skips the upload rather than replacing it. This setting does not replace the entire target directory or prefix. It allows an updated pipeline or dependency to be deployed when artifact names remain the same across versions.

Returns:The should_overwrite_existing of this CreateSparkArtifactLocationDetails.
Return type:bool