Class: OCI::GoldenGate::Models::DeploymentWalletsOperationSummary
- Inherits:
-
Object
- Object
- OCI::GoldenGate::Models::DeploymentWalletsOperationSummary
- 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
-
#deployment_wallet_operation_status ⇒ String
[Required] The status of the deployment wallet.
-
#deployment_wallet_operation_type ⇒ String
[Required] The operation type of the deployment wallet.
-
#time_completed ⇒ DateTime
The date and time the request was finished.
-
#time_started ⇒ DateTime
[Required] The date and time the request was started.
-
#wallet_operation_id ⇒ String
[Required] The UUID of the wallet operation performed by the customer.
-
#wallet_secret_id ⇒ String
[Required] The OCID of the customer's GoldenGate Service Secret.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ DeploymentWalletsOperationSummary
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Constructor Details
#initialize(attributes = {}) ⇒ DeploymentWalletsOperationSummary
Initializes the object
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_status ⇒ String
[Required] The status of the deployment wallet.
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_type ⇒ String
[Required] The operation type of the deployment wallet.
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_completed ⇒ DateTime
The date and time the request was finished. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z
.
61 62 63 |
# File 'lib/oci/golden_gate/models/deployment_wallets_operation_summary.rb', line 61 def time_completed @time_completed end |
#time_started ⇒ DateTime
[Required] The date and time the request was started. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z
.
55 56 57 |
# File 'lib/oci/golden_gate/models/deployment_wallets_operation_summary.rb', line 55 def time_started @time_started end |
#wallet_operation_id ⇒ String
[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
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_id ⇒ String
[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.
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_map ⇒ Object
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_types ⇒ Object
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.
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
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
194 195 196 |
# File 'lib/oci/golden_gate/models/deployment_wallets_operation_summary.rb', line 194 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
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_hash ⇒ 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_s ⇒ String
Returns the string representation 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 |