Class: Google::Apis::OracledatabaseV1::AutonomousDatabaseBackup

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/oracledatabase_v1/classes.rb,
lib/google/apis/oracledatabase_v1/representations.rb,
lib/google/apis/oracledatabase_v1/representations.rb

Overview

Details of the Autonomous Database Backup resource. https://docs.oracle.com/en- us/iaas/api/#/en/database/20160918/AutonomousDatabaseBackup/

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AutonomousDatabaseBackup

Returns a new instance of AutonomousDatabaseBackup.



202
203
204
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 202

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#autonomous_databaseString

Required. The name of the Autonomous Database resource for which the backup is being created. Format: projects/project/locations/region/ autonomousDatabases/autonomous_database Corresponds to the JSON property autonomousDatabase

Returns:

  • (String)


177
178
179
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 177

def autonomous_database
  @autonomous_database
end

#display_nameString

Optional. User friendly name for the Backup. The name does not have to be unique. Corresponds to the JSON property displayName

Returns:

  • (String)


183
184
185
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 183

def display_name
  @display_name
end

#labelsHash<String,String>

Optional. labels or tags associated with the resource. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


188
189
190
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 188

def labels
  @labels
end

#nameString

Identifier. The name of the Autonomous Database Backup resource with the format: projects/project/locations/region/autonomousDatabaseBackups/ autonomous_database_backup Corresponds to the JSON property name

Returns:

  • (String)


195
196
197
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 195

def name
  @name
end

#propertiesGoogle::Apis::OracledatabaseV1::AutonomousDatabaseBackupProperties

Properties of the Autonomous Database Backup resource. Corresponds to the JSON property properties



200
201
202
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 200

def properties
  @properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



207
208
209
210
211
212
213
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 207

def update!(**args)
  @autonomous_database = args[:autonomous_database] if args.key?(:autonomous_database)
  @display_name = args[:display_name] if args.key?(:display_name)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @properties = args[:properties] if args.key?(:properties)
end