Class: Google::Apis::ManufacturersV1::ManufacturerCenterService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::ManufacturersV1::ManufacturerCenterService
- Defined in:
- generated/google/apis/manufacturers_v1/service.rb
Overview
Manufacturer Center API
Public API for managing Manufacturer Center related data.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Attributes inherited from Core::BaseService
#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path
Instance Method Summary collapse
-
#get_account_product(parent, name, quota_user: nil, fields: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ManufacturersV1::Product
Gets the product from a Manufacturer Center account, including product issues.
-
#initialize ⇒ ManufacturerCenterService
constructor
A new instance of ManufacturerCenterService.
-
#list_account_products(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ManufacturersV1::ListProductsResponse
Lists all the products in a Manufacturer Center account.
Methods inherited from Core::BaseService
#batch, #batch_upload, #fetch_all, #http
Methods included from Core::Logging
Constructor Details
#initialize ⇒ ManufacturerCenterService
Returns a new instance of ManufacturerCenterService
45 46 47 48 |
# File 'generated/google/apis/manufacturers_v1/service.rb', line 45 def initialize super('https://manufacturers.googleapis.com/', '') @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
38 39 40 |
# File 'generated/google/apis/manufacturers_v1/service.rb', line 38 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
43 44 45 |
# File 'generated/google/apis/manufacturers_v1/service.rb', line 43 def quota_user @quota_user end |
Instance Method Details
#get_account_product(parent, name, quota_user: nil, fields: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ManufacturersV1::Product
Gets the product from a Manufacturer Center account, including product issues.
119 120 121 122 123 124 125 126 127 128 |
# File 'generated/google/apis/manufacturers_v1/service.rb', line 119 def get_account_product(parent, name, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/products/{+name}', ) command.response_representation = Google::Apis::ManufacturersV1::Product::Representation command.response_class = Google::Apis::ManufacturersV1::Product command.params['parent'] = parent unless parent.nil? command.params['name'] = name unless name.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end |
#list_account_products(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ManufacturersV1::ListProductsResponse
Lists all the products in a Manufacturer Center account.
76 77 78 79 80 81 82 83 84 85 86 |
# File 'generated/google/apis/manufacturers_v1/service.rb', line 76 def list_account_products(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/products', ) command.response_representation = Google::Apis::ManufacturersV1::ListProductsResponse::Representation command.response_class = Google::Apis::ManufacturersV1::ListProductsResponse command.params['parent'] = parent unless parent.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end |