Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1EntitlementChange

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

Change event entry for Entitlement order history

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudChannelV1EntitlementChange

Returns a new instance of GoogleCloudChannelV1EntitlementChange.



1168
1169
1170
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1168

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

Instance Attribute Details

#activation_reasonString

The Entitlement's activation reason Corresponds to the JSON property activationReason

Returns:

  • (String)


1106
1107
1108
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1106

def activation_reason
  @activation_reason
end

#cancellation_reasonString

Cancellation reason for the Entitlement. Corresponds to the JSON property cancellationReason

Returns:

  • (String)


1111
1112
1113
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1111

def cancellation_reason
  @cancellation_reason
end

#change_typeString

The change action type. Corresponds to the JSON property changeType

Returns:

  • (String)


1116
1117
1118
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1116

def change_type
  @change_type
end

#create_timeString

The submitted time of the change. Corresponds to the JSON property createTime

Returns:

  • (String)


1121
1122
1123
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1121

def create_time
  @create_time
end

#entitlementString

Required. Resource name of an entitlement in the form: accounts/account_id/ customers/customer_id/entitlements/entitlement_id Corresponds to the JSON property entitlement

Returns:

  • (String)


1127
1128
1129
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1127

def entitlement
  @entitlement
end

#offerString

Required. Resource name of the Offer at the time of change. Takes the form: accounts/account_id/offers/offer_id. Corresponds to the JSON property offer

Returns:

  • (String)


1133
1134
1135
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1133

def offer
  @offer
end

#operatorString

Human-readable identifier that shows what operator made a change. When the operator_type is RESELLER, this is the user's email address. For all other operator types, this is empty. Corresponds to the JSON property operator

Returns:

  • (String)


1140
1141
1142
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1140

def operator
  @operator
end

#operator_typeString

Operator type responsible for the change. Corresponds to the JSON property operatorType

Returns:

  • (String)


1145
1146
1147
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1145

def operator_type
  @operator_type
end

#other_change_reasonString

e.g. purchase_number change reason, entered by CRS. Corresponds to the JSON property otherChangeReason

Returns:

  • (String)


1150
1151
1152
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1150

def other_change_reason
  @other_change_reason
end

#parametersArray<Google::Apis::CloudchannelV1::GoogleCloudChannelV1Parameter>

Extended parameters, such as: purchase_order_number, gcp_details; internal_correlation_id, long_running_operation_id, order_id; etc. Corresponds to the JSON property parameters



1156
1157
1158
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1156

def parameters
  @parameters
end

#provisioned_serviceGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1ProvisionedService

Service provisioned for an entitlement. Corresponds to the JSON property provisionedService



1161
1162
1163
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1161

def provisioned_service
  @provisioned_service
end

#suspension_reasonString

Suspension reason for the Entitlement. Corresponds to the JSON property suspensionReason

Returns:

  • (String)


1166
1167
1168
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1166

def suspension_reason
  @suspension_reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1173

def update!(**args)
  @activation_reason = args[:activation_reason] if args.key?(:activation_reason)
  @cancellation_reason = args[:cancellation_reason] if args.key?(:cancellation_reason)
  @change_type = args[:change_type] if args.key?(:change_type)
  @create_time = args[:create_time] if args.key?(:create_time)
  @entitlement = args[:entitlement] if args.key?(:entitlement)
  @offer = args[:offer] if args.key?(:offer)
  @operator = args[:operator] if args.key?(:operator)
  @operator_type = args[:operator_type] if args.key?(:operator_type)
  @other_change_reason = args[:other_change_reason] if args.key?(:other_change_reason)
  @parameters = args[:parameters] if args.key?(:parameters)
  @provisioned_service = args[:provisioned_service] if args.key?(:provisioned_service)
  @suspension_reason = args[:suspension_reason] if args.key?(:suspension_reason)
end