Class: Google::Apis::OracledatabaseV1::AutonomousDatabase

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 resource. https://docs.oracle.com/en-us/ iaas/api/#/en/database/20160918/AutonomousDatabase/

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AutonomousDatabase

Returns a new instance of AutonomousDatabase.



122
123
124
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 122

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

Instance Attribute Details

#admin_passwordString

Optional. The password for the default ADMIN user. Corresponds to the JSON property adminPassword

Returns:

  • (String)


68
69
70
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 68

def admin_password
  @admin_password
end

#cidrString

Required. The subnet CIDR range for the Autonmous Database. Corresponds to the JSON property cidr

Returns:

  • (String)


73
74
75
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 73

def cidr
  @cidr
end

#create_timeString

Output only. The date and time that the Autonomous Database was created. Corresponds to the JSON property createTime

Returns:

  • (String)


78
79
80
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 78

def create_time
  @create_time
end

#databaseString

Optional. The name of the Autonomous Database. The database name must be unique in the project. The name must begin with a letter and can contain a maximum of 30 alphanumeric characters. Corresponds to the JSON property database

Returns:

  • (String)


85
86
87
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 85

def database
  @database
end

#display_nameString

Optional. The display name for the Autonomous Database. The name does not have to be unique within your project. Corresponds to the JSON property displayName

Returns:

  • (String)


91
92
93
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 91

def display_name
  @display_name
end

#entitlement_idString

Output only. The ID of the subscription entitlement associated with the Autonomous Database. Corresponds to the JSON property entitlementId

Returns:

  • (String)


97
98
99
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 97

def entitlement_id
  @entitlement_id
end

#labelsHash<String,String>

Optional. The labels or tags associated with the Autonomous Database. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


102
103
104
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 102

def labels
  @labels
end

#nameString

Identifier. The name of the Autonomous Database resource in the following format: projects/project/locations/region/autonomousDatabases/ autonomous_database Corresponds to the JSON property name

Returns:

  • (String)


109
110
111
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 109

def name
  @name
end

#networkString

Required. The name of the VPC network used by the Autonomous Database in the following format: projects/project/global/networks/network Corresponds to the JSON property network

Returns:

  • (String)


115
116
117
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 115

def network
  @network
end

#propertiesGoogle::Apis::OracledatabaseV1::AutonomousDatabaseProperties

The properties of an Autonomous Database. Corresponds to the JSON property properties



120
121
122
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 120

def properties
  @properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



127
128
129
130
131
132
133
134
135
136
137
138
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 127

def update!(**args)
  @admin_password = args[:admin_password] if args.key?(:admin_password)
  @cidr = args[:cidr] if args.key?(:cidr)
  @create_time = args[:create_time] if args.key?(:create_time)
  @database = args[:database] if args.key?(:database)
  @display_name = args[:display_name] if args.key?(:display_name)
  @entitlement_id = args[:entitlement_id] if args.key?(:entitlement_id)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @network = args[:network] if args.key?(:network)
  @properties = args[:properties] if args.key?(:properties)
end