Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1TransferEligibility

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

Overview

Specifies transfer eligibility of a SKU.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudChannelV1TransferEligibility

Returns a new instance of GoogleCloudChannelV1TransferEligibility.



3014
3015
3016
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3014

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

Instance Attribute Details

#descriptionString

Localized description if reseller is not eligible to transfer the SKU. Corresponds to the JSON property description

Returns:

  • (String)


3001
3002
3003
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3001

def description
  @description
end

#ineligibility_reasonString

Specified the reason for ineligibility. Corresponds to the JSON property ineligibilityReason

Returns:

  • (String)


3006
3007
3008
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3006

def ineligibility_reason
  @ineligibility_reason
end

#is_eligibleBoolean Also known as: is_eligible?

Whether reseller is eligible to transfer the SKU. Corresponds to the JSON property isEligible

Returns:

  • (Boolean)


3011
3012
3013
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3011

def is_eligible
  @is_eligible
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3019
3020
3021
3022
3023
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3019

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @ineligibility_reason = args[:ineligibility_reason] if args.key?(:ineligibility_reason)
  @is_eligible = args[:is_eligible] if args.key?(:is_eligible)
end