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.



2042
2043
2044
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 2042

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



2024
2025
2026
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 2024

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)


2029
2030
2031
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 2029

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)


2035
2036
2037
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 2035

def name
  @name
end

#stateString

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

Returns:

  • (String)


2040
2041
2042
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 2040

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2047
2048
2049
2050
2051
2052
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 2047

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