PatchVcnInstruction

class oci.core.models.PatchVcnInstruction(**kwargs)

Bases: object

A single instruction to be included as part of PatchVcn request content.

Attributes:

OPERATION_REPLACE

A constant which can be used with the operation property of a PatchVcnInstruction.

operation

[Required] Gets the operation of this PatchVcnInstruction.

selection

[Required] Gets the selection of this PatchVcnInstruction.

Methods:

__init__(**kwargs)

Initializes a new PatchVcnInstruction 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.

OPERATION_REPLACE = 'REPLACE'

A constant which can be used with the operation property of a PatchVcnInstruction. This constant has a value of “REPLACE”

__init__(**kwargs)

Initializes a new PatchVcnInstruction 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
  • operation (str) – The value to assign to the operation property of this PatchVcnInstruction. Allowed values for this property are: “REPLACE”

  • selection (str) – The value to assign to the selection property of this PatchVcnInstruction.

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.

property operation

[Required] Gets the operation of this PatchVcnInstruction. The operation to apply. Values are capitalized per OCI convention but should be compared case-insensitively.

Allowed values for this property are: “REPLACE”

Returns

The operation of this PatchVcnInstruction.

Return type

str

property selection

[Required] Gets the selection of this PatchVcnInstruction. The set of values to which the operation applies as a JMESPath expression for evaluation against the VCN resource representation. The PatchVcn operation restricts supported selections (see PatchVcn documentation). Example: “ipv6PrivateCidrBlocks”

Returns

The selection of this PatchVcnInstruction.

Return type

str