Class: Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse

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

Overview

Response message for PrivateCatalog.SearchProducts.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudPrivatecatalogV1beta1SearchProductsResponse

Returns a new instance of GoogleCloudPrivatecatalogV1beta1SearchProductsResponse.



270
271
272
# File 'generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb', line 270

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

Instance Attribute Details

#next_page_tokenString

A pagination token returned from a previous call to SearchProducts that indicates from where listing should continue. This field is optional. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


263
264
265
# File 'generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb', line 263

def next_page_token
  @next_page_token
end

#productsArray<Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1Product>

The Product resources computed from the resource context. Corresponds to the JSON property products



268
269
270
# File 'generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb', line 268

def products
  @products
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



275
276
277
278
# File 'generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb', line 275

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