Class: Google::Apis::OracledatabaseV1::Entitlement

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 Entitlement resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Entitlement

Returns a new instance of Entitlement.



3321
3322
3323
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 3321

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

Instance Attribute Details

#cloud_account_detailsGoogle::Apis::OracledatabaseV1::CloudAccountDetails

Details of the OCI Cloud Account. Corresponds to the JSON property cloudAccountDetails



3303
3304
3305
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 3303

def 
  @cloud_account_details
end

#entitlement_idString

Output only. Google Cloud Marketplace order ID (aka entitlement ID) Corresponds to the JSON property entitlementId

Returns:

  • (String)


3308
3309
3310
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 3308

def entitlement_id
  @entitlement_id
end

#nameString

Identifier. The name of the Entitlement resource with the format: projects/ project/locations/region/entitlements/entitlement Corresponds to the JSON property name

Returns:

  • (String)


3314
3315
3316
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 3314

def name
  @name
end

#stateString

Output only. Entitlement State. Corresponds to the JSON property state

Returns:

  • (String)


3319
3320
3321
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 3319

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3326
3327
3328
3329
3330
3331
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 3326

def update!(**args)
  @cloud_account_details = args[:cloud_account_details] if args.key?(:cloud_account_details)
  @entitlement_id = args[:entitlement_id] if args.key?(:entitlement_id)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
end