Class: OCI::GoldenGate::Models::DeploymentWalletsOperationSummary

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/golden_gate/models/deployment_wallets_operation_summary.rb

Overview

Summary of the deployment wallets operations.

Constant Summary collapse

DEPLOYMENT_WALLET_OPERATION_TYPE_ENUM =
[
  DEPLOYMENT_WALLET_OPERATION_TYPE_EXPORT = 'EXPORT'.freeze,
  DEPLOYMENT_WALLET_OPERATION_TYPE_IMPORT = 'IMPORT'.freeze,
  DEPLOYMENT_WALLET_OPERATION_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
DEPLOYMENT_WALLET_OPERATION_STATUS_ENUM =
[
  DEPLOYMENT_WALLET_OPERATION_STATUS_EXPORTING = 'EXPORTING'.freeze,
  DEPLOYMENT_WALLET_OPERATION_STATUS_EXPORTED = 'EXPORTED'.freeze,
  DEPLOYMENT_WALLET_OPERATION_STATUS_IMPORTED = 'IMPORTED'.freeze,
  DEPLOYMENT_WALLET_OPERATION_STATUS_IMPORTING = 'IMPORTING'.freeze,
  DEPLOYMENT_WALLET_OPERATION_STATUS_FAILED = 'FAILED'.freeze,
  DEPLOYMENT_WALLET_OPERATION_STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ DeploymentWalletsOperationSummary

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):



103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# File 'lib/oci/golden_gate/models/deployment_wallets_operation_summary.rb', line 103

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  self.wallet_operation_id = attributes[:'walletOperationId'] if attributes[:'walletOperationId']

  raise 'You cannot provide both :walletOperationId and :wallet_operation_id' if attributes.key?(:'walletOperationId') && attributes.key?(:'wallet_operation_id')

  self.wallet_operation_id = attributes[:'wallet_operation_id'] if attributes[:'wallet_operation_id']

  self.wallet_secret_id = attributes[:'walletSecretId'] if attributes[:'walletSecretId']

  raise 'You cannot provide both :walletSecretId and :wallet_secret_id' if attributes.key?(:'walletSecretId') && attributes.key?(:'wallet_secret_id')

  self.wallet_secret_id = attributes[:'wallet_secret_id'] if attributes[:'wallet_secret_id']

  self.deployment_wallet_operation_type = attributes[:'deploymentWalletOperationType'] if attributes[:'deploymentWalletOperationType']

  raise 'You cannot provide both :deploymentWalletOperationType and :deployment_wallet_operation_type' if attributes.key?(:'deploymentWalletOperationType') && attributes.key?(:'deployment_wallet_operation_type')

  self.deployment_wallet_operation_type = attributes[:'deployment_wallet_operation_type'] if attributes[:'deployment_wallet_operation_type']

  self.deployment_wallet_operation_status = attributes[:'deploymentWalletOperationStatus'] if attributes[:'deploymentWalletOperationStatus']

  raise 'You cannot provide both :deploymentWalletOperationStatus and :deployment_wallet_operation_status' if attributes.key?(:'deploymentWalletOperationStatus') && attributes.key?(:'deployment_wallet_operation_status')

  self.deployment_wallet_operation_status = attributes[:'deployment_wallet_operation_status'] if attributes[:'deployment_wallet_operation_status']

  self.time_started = attributes[:'timeStarted'] if attributes[:'timeStarted']

  raise 'You cannot provide both :timeStarted and :time_started' if attributes.key?(:'timeStarted') && attributes.key?(:'time_started')

  self.time_started = attributes[:'time_started'] if attributes[:'time_started']

  self.time_completed = attributes[:'timeCompleted'] if attributes[:'timeCompleted']

  raise 'You cannot provide both :timeCompleted and :time_completed' if attributes.key?(:'timeCompleted') && attributes.key?(:'time_completed')

  self.time_completed = attributes[:'time_completed'] if attributes[:'time_completed']
end

Instance Attribute Details

#deployment_wallet_operation_statusString

[Required] The status of the deployment wallet.

Returns:

  • (String)


49
50
51
# File 'lib/oci/golden_gate/models/deployment_wallets_operation_summary.rb', line 49

def deployment_wallet_operation_status
  @deployment_wallet_operation_status
end

#deployment_wallet_operation_typeString

[Required] The operation type of the deployment wallet.

Returns:

  • (String)


44
45
46
# File 'lib/oci/golden_gate/models/deployment_wallets_operation_summary.rb', line 44

def deployment_wallet_operation_type
  @deployment_wallet_operation_type
end

#time_completedDateTime

The date and time the request was finished. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

Returns:

  • (DateTime)


61
62
63
# File 'lib/oci/golden_gate/models/deployment_wallets_operation_summary.rb', line 61

def time_completed
  @time_completed
end

#time_startedDateTime

[Required] The date and time the request was started. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

Returns:

  • (DateTime)


55
56
57
# File 'lib/oci/golden_gate/models/deployment_wallets_operation_summary.rb', line 55

def time_started
  @time_started
end

#wallet_operation_idString

[Required] The UUID of the wallet operation performed by the customer. If provided, this will reference a key which the customer can use to query or search a particular wallet operation

Returns:

  • (String)


32
33
34
# File 'lib/oci/golden_gate/models/deployment_wallets_operation_summary.rb', line 32

def wallet_operation_id
  @wallet_operation_id
end

#wallet_secret_idString

[Required] The OCID of the customer's GoldenGate Service Secret. If provided, it references a key that customers will be required to ensure the policies are established to permit GoldenGate to use this Secret.

Returns:

  • (String)


39
40
41
# File 'lib/oci/golden_gate/models/deployment_wallets_operation_summary.rb', line 39

def wallet_secret_id
  @wallet_secret_id
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/oci/golden_gate/models/deployment_wallets_operation_summary.rb', line 64

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'wallet_operation_id': :'walletOperationId',
    'wallet_secret_id': :'walletSecretId',
    'deployment_wallet_operation_type': :'deploymentWalletOperationType',
    'deployment_wallet_operation_status': :'deploymentWalletOperationStatus',
    'time_started': :'timeStarted',
    'time_completed': :'timeCompleted'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/oci/golden_gate/models/deployment_wallets_operation_summary.rb', line 78

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'wallet_operation_id': :'String',
    'wallet_secret_id': :'String',
    'deployment_wallet_operation_type': :'String',
    'deployment_wallet_operation_status': :'String',
    'time_started': :'DateTime',
    'time_completed': :'DateTime'
    # rubocop:enable Style/SymbolLiteral
  }
end

Instance Method Details

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • other (Object)

    the other object to be compared



179
180
181
182
183
184
185
186
187
188
189
# File 'lib/oci/golden_gate/models/deployment_wallets_operation_summary.rb', line 179

def ==(other)
  return true if equal?(other)

  self.class == other.class &&
    wallet_operation_id == other.wallet_operation_id &&
    wallet_secret_id == other.wallet_secret_id &&
    deployment_wallet_operation_type == other.deployment_wallet_operation_type &&
    deployment_wallet_operation_status == other.deployment_wallet_operation_status &&
    time_started == other.time_started &&
    time_completed == other.time_completed
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
# File 'lib/oci/golden_gate/models/deployment_wallets_operation_summary.rb', line 214

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)

  self.class.swagger_types.each_pair do |key, type|
    if type =~ /^Array<(.*)>/i
      # check to ensure the input is an array given that the the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        public_method("#{key}=").call(
          attributes[self.class.attribute_map[key]]
            .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
        )
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      public_method("#{key}=").call(
        OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
      )
    end
    # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end

#eql?(other) ⇒ Boolean

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


194
195
196
# File 'lib/oci/golden_gate/models/deployment_wallets_operation_summary.rb', line 194

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



203
204
205
# File 'lib/oci/golden_gate/models/deployment_wallets_operation_summary.rb', line 203

def hash
  [wallet_operation_id, wallet_secret_id, deployment_wallet_operation_type, deployment_wallet_operation_status, time_started, time_completed].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



247
248
249
250
251
252
253
254
255
256
# File 'lib/oci/golden_gate/models/deployment_wallets_operation_summary.rb', line 247

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = public_method(attr).call
    next if value.nil? && !instance_variable_defined?("@#{attr}")

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



241
242
243
# File 'lib/oci/golden_gate/models/deployment_wallets_operation_summary.rb', line 241

def to_s
  to_hash.to_s
end