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, request_id: nil, validate_only: 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, filter: nil, page_size: nil, page_token: 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(category_id: nil, country: nil, language_code: nil, name: 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, order_by: nil, page_size: nil, page_token: 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, field_mask: nil, language_code: 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.
286 287 288 289 290 291 292 293 294 295 296 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 286 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.
319 320 321 322 323 324 325 326 327 328 329 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 319 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.
353 354 355 356 357 358 359 360 361 362 363 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 353 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.
190 191 192 193 194 195 196 197 198 199 200 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 190 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, request_id: nil, validate_only: 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.
395 396 397 398 399 400 401 402 403 404 405 406 407 408 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 395 def create_account_location(name, location_object = nil, language_code: nil, request_id: nil, validate_only: 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['requestId'] = request_id unless request_id.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 |
#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.
698 699 700 701 702 703 704 705 706 707 708 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 698 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.
222 223 224 225 226 227 228 229 230 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 222 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.
435 436 437 438 439 440 441 442 443 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 435 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.
730 731 732 733 734 735 736 737 738 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 730 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.
791 792 793 794 795 796 797 798 799 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 791 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.
467 468 469 470 471 472 473 474 475 476 477 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 467 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.
72 73 74 75 76 77 78 79 80 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 72 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.
500 501 502 503 504 505 506 507 508 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 500 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.
531 532 533 534 535 536 537 538 539 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 531 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.
823 824 825 826 827 828 829 830 831 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 823 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.
252 253 254 255 256 257 258 259 260 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 252 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.
760 761 762 763 764 765 766 767 768 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 760 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, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessV3::ListLocationsResponse
Lists the locations for the specified account.
577 578 579 580 581 582 583 584 585 586 587 588 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 577 def list_account_locations(name, filter: nil, page_size: nil, page_token: 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['filter'] = filter unless filter.nil? 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_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.
109 110 111 112 113 114 115 116 117 118 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 109 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(category_id: nil, country: nil, language_code: nil, name: 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(category_id: nil, country: nil, language_code: nil, name: 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['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['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_reviews(name, order_by: nil, page_size: nil, page_token: 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.
863 864 865 866 867 868 869 870 871 872 873 874 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 863 def list_reviews(name, order_by: nil, page_size: nil, page_token: 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['orderBy'] = order_by unless order_by.nil? 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 |
#patch_account_location(name, location_object = nil, field_mask: nil, language_code: 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.
622 623 624 625 626 627 628 629 630 631 632 633 634 635 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 622 def patch_account_location(name, location_object = nil, field_mask: nil, language_code: 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['fieldMask'] = field_mask unless field_mask.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 |
#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.
899 900 901 902 903 904 905 906 907 908 909 |
# File 'generated/google/apis/mybusiness_v3/service.rb', line 899 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 |