Class: Google::Apis::MybusinesslodgingV1::MyBusinessLodgingService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::MybusinesslodgingV1::MyBusinessLodgingService
- Defined in:
- lib/google/apis/mybusinesslodging_v1/service.rb
Overview
My Business Lodging API
The My Business Lodging API enables managing lodging business information on Google. Note - If you have a quota of 0 after enabling the API, please request for GBP API access.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#get_location_lodging(name, read_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinesslodgingV1::Lodging
Returns the Lodging of a specific location.
-
#get_location_lodging_google_updated(name, read_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinesslodgingV1::GetGoogleUpdatedLodgingResponse
Returns the Google updated Lodging of a specific location.
-
#initialize ⇒ MyBusinessLodgingService
constructor
A new instance of MyBusinessLodgingService.
-
#update_location_lodging(name, lodging_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinesslodgingV1::Lodging
Updates the Lodging of a specific location.
Constructor Details
#initialize ⇒ MyBusinessLodgingService
Returns a new instance of MyBusinessLodgingService.
47 48 49 50 51 52 |
# File 'lib/google/apis/mybusinesslodging_v1/service.rb', line 47 def initialize super('https://mybusinesslodging.googleapis.com/', '', client_name: 'google-apis-mybusinesslodging_v1', client_version: Google::Apis::MybusinesslodgingV1::GEM_VERSION) @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.
40 41 42 |
# File 'lib/google/apis/mybusinesslodging_v1/service.rb', line 40 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.
45 46 47 |
# File 'lib/google/apis/mybusinesslodging_v1/service.rb', line 45 def quota_user @quota_user end |
Instance Method Details
#get_location_lodging(name, read_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinesslodgingV1::Lodging
Returns the Lodging of a specific location.
78 79 80 81 82 83 84 85 86 87 |
# File 'lib/google/apis/mybusinesslodging_v1/service.rb', line 78 def get_location_lodging(name, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::MybusinesslodgingV1::Lodging::Representation command.response_class = Google::Apis::MybusinesslodgingV1::Lodging command.params['name'] = name unless name.nil? command.query['readMask'] = read_mask unless read_mask.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_location_lodging_google_updated(name, read_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinesslodgingV1::GetGoogleUpdatedLodgingResponse
Returns the Google updated Lodging of a specific location.
152 153 154 155 156 157 158 159 160 161 |
# File 'lib/google/apis/mybusinesslodging_v1/service.rb', line 152 def get_location_lodging_google_updated(name, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}:getGoogleUpdated', ) command.response_representation = Google::Apis::MybusinesslodgingV1::GetGoogleUpdatedLodgingResponse::Representation command.response_class = Google::Apis::MybusinesslodgingV1::GetGoogleUpdatedLodgingResponse command.params['name'] = name unless name.nil? command.query['readMask'] = read_mask unless read_mask.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_location_lodging(name, lodging_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinesslodgingV1::Lodging
Updates the Lodging of a specific location.
115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'lib/google/apis/mybusinesslodging_v1/service.rb', line 115 def update_location_lodging(name, lodging_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::MybusinesslodgingV1::Lodging::Representation command.request_object = lodging_object command.response_representation = Google::Apis::MybusinesslodgingV1::Lodging::Representation command.response_class = Google::Apis::MybusinesslodgingV1::Lodging command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |