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.



3365
3366
3367
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 3365

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



3347
3348
3349
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 3347

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)


3352
3353
3354
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 3352

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)


3358
3359
3360
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 3358

def name
  @name
end

#stateString

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

Returns:

  • (String)


3363
3364
3365
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 3363

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3370
3371
3372
3373
3374
3375
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 3370

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