Class: Google::Apis::CloudcommerceprocurementV1::ListEntitlementsResponse

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

Overview

Response message for PartnerProcurementService.ListEntitlements.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListEntitlementsResponse

Returns a new instance of ListEntitlementsResponse.



429
430
431
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 429

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

Instance Attribute Details

#entitlementsArray<Google::Apis::CloudcommerceprocurementV1::Entitlement>

The list of entitlements in this response. Corresponds to the JSON property entitlements



422
423
424
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 422

def entitlements
  @entitlements
end

#next_page_tokenString

The token for fetching the next page. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


427
428
429
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 427

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



434
435
436
437
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 434

def update!(**args)
  @entitlements = args[:entitlements] if args.key?(:entitlements)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end