Class: Google::Apis::MybusinessV3::MybusinessService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::MybusinessV3::MybusinessService
- Defined in:
- generated/google/apis/mybusiness_v3/service.rb
Overview
Google My Business API
The Google My Business API provides an interface for managing business location information on Google.
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
-
#associate_location(name, associate_location_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Empty
Associates a location to a place ID.
-
#batch_get_locations(name, batch_get_locations_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::BatchGetLocationsResponse
Gets all of the specified locations in the given account.
-
#clear_account_location_association(name, clear_location_association_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Empty
Clears an assocation between a location and its place ID.
-
#create_account_admin(name, admin_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Admin
Invites the specified user to become an administrator on the specified account.
-
#create_account_location(name, location_object = nil, language_code: nil, validate_only: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Location
Creates a new location owned by the specified account, and returns it.
-
#create_account_location_admin(name, admin_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Admin
Invites the specified user to become an administrator on the specified location.
-
#delete_account_admin(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Empty
Removes the specified admin from the specified account.
-
#delete_account_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Empty
Deletes a location.
-
#delete_account_location_admin(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Empty
Removes the specified admin as a manager of the specified location.
-
#delete_reply(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Empty
Deletes the response to the specified review.
-
#find_account_location_matches(name, find_matching_locations_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::FindMatchingLocationsResponse
Finds all of the possible locations that are a match to the specified location.
-
#get_account(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Account
Gets the specified account.
-
#get_account_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Location
Gets the specified location.
-
#get_google_updated_account_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::GoogleUpdatedLocation
Gets the Google updated version of the specified location.
-
#get_review(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Review
Returns the specified review.
-
#initialize ⇒ MybusinessService
constructor
A new instance of MybusinessService.
-
#list_account_admins(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::ListAccountAdminsResponse
Lists the admins for the specified account.
-
#list_account_location_admins(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::ListLocationAdminsResponse
Lists all of the admins for the specified location.
-
#list_account_locations(name, page_size: nil, page_token: nil, filter: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::ListLocationsResponse
Lists the locations for the specified account.
-
#list_accounts(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::ListAccountsResponse
Lists all of the accounts for the authenticated user.
-
#list_attributes(name: nil, category_id: nil, country: nil, language_code: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::ListLocationAttributeMetadataResponse
Returns the list of available attributes that would be available for a location with the given primary category and country.
-
#list_reviews(name, page_size: nil, page_token: nil, order_by: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::ListReviewsResponse
Returns the paginated list of reviews for the specified location.
-
#patch_account_location(name, location_object = nil, language_code: nil, field_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Location
Updates the specified location.
-
#reply_to_review(name, review_reply_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::ReviewReply
Updates the reply to the specified review.
-
#transfer_location(name, transfer_location_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Location
Transfer a location from one account to another.
-
#update_account(name, account_object = nil, language_code: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Account
Updates the specified business account.
Methods inherited from Core::BaseService
#batch, #batch_upload, #fetch_all, #http
Methods included from Core::Logging
Constructor Details
#initialize ⇒ MybusinessService
Returns a new instance of MybusinessService
46 47 48 49 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 46 def initialize super('https://mybusiness.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.
39 40 41 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 39 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.
44 45 46 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 44 def quota_user @quota_user end |
Instance Method Details
#associate_location(name, associate_location_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Empty
Associates a location to a place ID. Any previous association is overwritten. This operation is only valid if the location is unverified. The association must be valid, i.e. appear in the list of FindMatchingLocations.
591 592 593 594 595 596 597 598 599 600 601 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 591 def associate_location(name, associate_location_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/{+name}:associate', ) command.request_representation = Google::Apis::MybusinessV3::AssociateLocationRequest::Representation command.request_object = associate_location_request_object command.response_representation = Google::Apis::MybusinessV3::Empty::Representation command.response_class = Google::Apis::MybusinessV3::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#batch_get_locations(name, batch_get_locations_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::BatchGetLocationsResponse
Gets all of the specified locations in the given account.
363 364 365 366 367 368 369 370 371 372 373 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 363 def batch_get_locations(name, batch_get_locations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/{+name}/locations:batchGet', ) command.request_representation = Google::Apis::MybusinessV3::BatchGetLocationsRequest::Representation command.request_object = batch_get_locations_request_object command.response_representation = Google::Apis::MybusinessV3::BatchGetLocationsResponse::Representation command.response_class = Google::Apis::MybusinessV3::BatchGetLocationsResponse command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#clear_account_location_association(name, clear_location_association_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Empty
Clears an assocation between a location and its place ID. This operation is only valid if the location is unverified.
625 626 627 628 629 630 631 632 633 634 635 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 625 def clear_account_location_association(name, clear_location_association_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/{+name}:clearAssociation', ) command.request_representation = Google::Apis::MybusinessV3::ClearLocationAssociationRequest::Representation command.request_object = clear_location_association_request_object command.response_representation = Google::Apis::MybusinessV3::Empty::Representation command.response_class = Google::Apis::MybusinessV3::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_account_admin(name, admin_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Admin
Invites the specified user to become an administrator on the specified account. The invitee must accept the invitation in order to be granted access to the account.
220 221 222 223 224 225 226 227 228 229 230 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 220 def create_account_admin(name, admin_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/{+name}/admins', ) command.request_representation = Google::Apis::MybusinessV3::Admin::Representation command.request_object = admin_object command.response_representation = Google::Apis::MybusinessV3::Admin::Representation command.response_class = Google::Apis::MybusinessV3::Admin command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_account_location(name, location_object = nil, language_code: nil, validate_only: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Location
Creates a new location owned by the specified account, and returns it.
436 437 438 439 440 441 442 443 444 445 446 447 448 449 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 436 def create_account_location(name, location_object = nil, language_code: nil, validate_only: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/{+name}/locations', ) command.request_representation = Google::Apis::MybusinessV3::Location::Representation command.request_object = location_object command.response_representation = Google::Apis::MybusinessV3::Location::Representation command.response_class = Google::Apis::MybusinessV3::Location command.params['name'] = name unless name.nil? command.query['languageCode'] = language_code unless language_code.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_account_location_admin(name, admin_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Admin
Invites the specified user to become an administrator on the specified location. The invitee must accept the invitation in order to be granted access to the location.
728 729 730 731 732 733 734 735 736 737 738 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 728 def create_account_location_admin(name, admin_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/{+name}/admins', ) command.request_representation = Google::Apis::MybusinessV3::Admin::Representation command.request_object = admin_object command.response_representation = Google::Apis::MybusinessV3::Admin::Representation command.response_class = Google::Apis::MybusinessV3::Admin command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_account_admin(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Empty
Removes the specified admin from the specified account.
252 253 254 255 256 257 258 259 260 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 252 def delete_account_admin(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v3/{+name}', ) command.response_representation = Google::Apis::MybusinessV3::Empty::Representation command.response_class = Google::Apis::MybusinessV3::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_account_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Empty
Deletes a location. Note: If this location has an associated Google+ page, as
indicated by a plus_page_id
in the LocationKey, it cannot be deleted using
the API, it
must be done using the Google My Business website.
Returns NOT_FOUND
if the location does not exist.
523 524 525 526 527 528 529 530 531 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 523 def delete_account_location(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v3/{+name}', ) command.response_representation = Google::Apis::MybusinessV3::Empty::Representation command.response_class = Google::Apis::MybusinessV3::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_account_location_admin(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Empty
Removes the specified admin as a manager of the specified location.
760 761 762 763 764 765 766 767 768 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 760 def delete_account_location_admin(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v3/{+name}', ) command.response_representation = Google::Apis::MybusinessV3::Empty::Representation command.response_class = Google::Apis::MybusinessV3::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_reply(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Empty
Deletes the response to the specified review. This operation is only valid if the specified location is verified.
901 902 903 904 905 906 907 908 909 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 901 def delete_reply(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v3/{+name}/reply', ) command.response_representation = Google::Apis::MybusinessV3::Empty::Representation command.response_class = Google::Apis::MybusinessV3::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#find_account_location_matches(name, find_matching_locations_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::FindMatchingLocationsResponse
Finds all of the possible locations that are a match to the specified location. This operation is only valid if the location is unverified.
555 556 557 558 559 560 561 562 563 564 565 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 555 def find_account_location_matches(name, find_matching_locations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/{+name}:findMatches', ) command.request_representation = Google::Apis::MybusinessV3::FindMatchingLocationsRequest::Representation command.request_object = find_matching_locations_request_object command.response_representation = Google::Apis::MybusinessV3::FindMatchingLocationsResponse::Representation command.response_class = Google::Apis::MybusinessV3::FindMatchingLocationsResponse command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_account(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Account
Gets the specified account. Returns NOT_FOUND
if the
account does not exist or if the caller does not have access rights to it.
110 111 112 113 114 115 116 117 118 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 110 def get_account(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/{+name}', ) command.response_representation = Google::Apis::MybusinessV3::Account::Representation command.response_class = Google::Apis::MybusinessV3::Account command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_account_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Location
Gets the specified location. Returns NOT_FOUND
if the
location does not exist.
332 333 334 335 336 337 338 339 340 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 332 def get_account_location(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/{+name}', ) command.response_representation = Google::Apis::MybusinessV3::Location::Representation command.response_class = Google::Apis::MybusinessV3::Location command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_google_updated_account_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::GoogleUpdatedLocation
Gets the Google updated version of the specified location.
Returns NOT_FOUND
if the location does not exist.
396 397 398 399 400 401 402 403 404 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 396 def get_google_updated_account_location(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/{+name}:googleUpdated', ) command.response_representation = Google::Apis::MybusinessV3::GoogleUpdatedLocation::Representation command.response_class = Google::Apis::MybusinessV3::GoogleUpdatedLocation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_review(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Review
Returns the specified review.
This operation is only valid if the specified location is verified.
Returns NOT_FOUND
if the review does not exist, or has been deleted.
835 836 837 838 839 840 841 842 843 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 835 def get_review(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/{+name}', ) command.response_representation = Google::Apis::MybusinessV3::Review::Representation command.response_class = Google::Apis::MybusinessV3::Review command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_account_admins(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::ListAccountAdminsResponse
Lists the admins for the specified account.
184 185 186 187 188 189 190 191 192 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 184 def list_account_admins(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/{+name}/admins', ) command.response_representation = Google::Apis::MybusinessV3::ListAccountAdminsResponse::Representation command.response_class = Google::Apis::MybusinessV3::ListAccountAdminsResponse command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_account_location_admins(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::ListLocationAdminsResponse
Lists all of the admins for the specified location.
692 693 694 695 696 697 698 699 700 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 692 def list_account_location_admins(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/{+name}/admins', ) command.response_representation = Google::Apis::MybusinessV3::ListLocationAdminsResponse::Representation command.response_class = Google::Apis::MybusinessV3::ListLocationAdminsResponse command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_account_locations(name, page_size: nil, page_token: nil, filter: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::ListLocationsResponse
Lists the locations for the specified account.
298 299 300 301 302 303 304 305 306 307 308 309 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 298 def list_account_locations(name, page_size: nil, page_token: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/{+name}/locations', ) command.response_representation = Google::Apis::MybusinessV3::ListLocationsResponse::Representation command.response_class = Google::Apis::MybusinessV3::ListLocationsResponse command.params['name'] = name unless name.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['filter'] = filter unless filter.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_accounts(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::ListAccountsResponse
Lists all of the accounts for the authenticated user. This includes all accounts that the user owns, as well as any accounts for which the user has management rights.
78 79 80 81 82 83 84 85 86 87 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 78 def list_accounts(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/accounts', ) command.response_representation = Google::Apis::MybusinessV3::ListAccountsResponse::Representation command.response_class = Google::Apis::MybusinessV3::ListAccountsResponse command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_attributes(name: nil, category_id: nil, country: nil, language_code: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::ListLocationAttributeMetadataResponse
Returns the list of available attributes that would be available for a location with the given primary category and country.
939 940 941 942 943 944 945 946 947 948 949 950 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 939 def list_attributes(name: nil, category_id: nil, country: nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/attributes', ) command.response_representation = Google::Apis::MybusinessV3::ListLocationAttributeMetadataResponse::Representation command.response_class = Google::Apis::MybusinessV3::ListLocationAttributeMetadataResponse command.query['name'] = name unless name.nil? command.query['categoryId'] = category_id unless category_id.nil? command.query['country'] = country unless country.nil? command.query['languageCode'] = language_code unless language_code.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_reviews(name, page_size: nil, page_token: nil, order_by: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::ListReviewsResponse
Returns the paginated list of reviews for the specified location. This operation is only valid if the specified location is verified.
800 801 802 803 804 805 806 807 808 809 810 811 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 800 def list_reviews(name, page_size: nil, page_token: nil, order_by: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/{+name}/reviews', ) command.response_representation = Google::Apis::MybusinessV3::ListReviewsResponse::Representation command.response_class = Google::Apis::MybusinessV3::ListReviewsResponse command.params['name'] = name unless name.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_account_location(name, location_object = nil, language_code: nil, field_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Location
Updates the specified location.
Photos are only allowed on a location that has a Google+ page.
Returns NOT_FOUND
if the location does not exist.
483 484 485 486 487 488 489 490 491 492 493 494 495 496 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 483 def patch_account_location(name, location_object = nil, language_code: nil, field_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v3/{+name}', ) command.request_representation = Google::Apis::MybusinessV3::Location::Representation command.request_object = location_object command.response_representation = Google::Apis::MybusinessV3::Location::Representation command.response_class = Google::Apis::MybusinessV3::Location command.params['name'] = name unless name.nil? command.query['languageCode'] = language_code unless language_code.nil? command.query['fieldMask'] = field_mask unless field_mask.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#reply_to_review(name, review_reply_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::ReviewReply
Updates the reply to the specified review. A reply is created if one does not exist. This operation is only valid if the specified location is verified.
868 869 870 871 872 873 874 875 876 877 878 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 868 def reply_to_review(name, review_reply_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/{+name}/reply', ) command.request_representation = Google::Apis::MybusinessV3::ReviewReply::Representation command.request_object = review_reply_object command.response_representation = Google::Apis::MybusinessV3::ReviewReply::Representation command.response_class = Google::Apis::MybusinessV3::ReviewReply command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#transfer_location(name, transfer_location_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Location
Transfer a location from one account to another. The current account that the location is associated with and the destination account must have the same ultimate owner. Returns the Location with its new resource name.
660 661 662 663 664 665 666 667 668 669 670 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 660 def transfer_location(name, transfer_location_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/{+name}:transfer', ) command.request_representation = Google::Apis::MybusinessV3::TransferLocationRequest::Representation command.request_object = transfer_location_request_object command.response_representation = Google::Apis::MybusinessV3::Location::Representation command.response_class = Google::Apis::MybusinessV3::Location command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_account(name, account_object = nil, language_code: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::Account
Updates the specified business account. Personal accounts cannot be
updated using this method.
Note: At this time the only editable field for an account is
account_name
.
Any other fields passed in (such as type
, role
, and verified
) is
ignored.
150 151 152 153 154 155 156 157 158 159 160 161 162 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 150 def update_account(name, account_object = nil, language_code: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'v3/{+name}', ) command.request_representation = Google::Apis::MybusinessV3::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::MybusinessV3::Account::Representation command.response_class = Google::Apis::MybusinessV3::Account command.params['name'] = name unless name.nil? command.query['languageCode'] = language_code unless language_code.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |