Class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent
- Inherits:
-
Object
- Object
- Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/paymentsresellersubscription_v1/classes.rb,
lib/google/apis/paymentsresellersubscription_v1/representations.rb,
lib/google/apis/paymentsresellersubscription_v1/representations.rb
Overview
Intent message for creating a Subscription resource.
Instance Attribute Summary collapse
-
#parent ⇒ String
Required.
-
#subscription ⇒ Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Subscription
A subscription serves as a central billing entity between an external partner and Google.
-
#subscription_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent
constructor
A new instance of GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent
Returns a new instance of GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent.
139 140 141 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 139 def initialize(**args) update!(**args) end |
Instance Attribute Details
#parent ⇒ String
Required. The parent resource name, which is the identifier of the partner.
Corresponds to the JSON property parent
116 117 118 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 116 def parent @parent end |
#subscription ⇒ Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Subscription
A subscription serves as a central billing entity between an external partner
and Google. The underlying Google services rely on the subscription state to
grant or revoke the user's service entitlement. It's important to note that
the subscription state may not always perfectly align with the user's service
entitlement. For example, some Google services may continue providing access
to the user until the current billing cycle ends, even if the subscription has
been immediately canceled. However, other services may not do the same. To
fully understand the specific details, please consult the relevant contract or
product policy.
Corresponds to the JSON property subscription
129 130 131 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 129 def subscription @subscription end |
#subscription_id ⇒ String
Required. Identifies the subscription resource on the Partner side. The value
is restricted to 63 ASCII characters at the maximum. If a subscription was
previously created with the same subscription_id, we will directly return that
one.
Corresponds to the JSON property subscriptionId
137 138 139 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 137 def subscription_id @subscription_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
144 145 146 147 148 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 144 def update!(**args) @parent = args[:parent] if args.key?(:parent) @subscription = args[:subscription] if args.key?(:subscription) @subscription_id = args[:subscription_id] if args.key?(:subscription_id) end |