Class: Google::Apis::MybusinessbusinesscallsV1::MyBusinessBusinessCallsService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::MybusinessbusinesscallsV1::MyBusinessBusinessCallsService
- Defined in:
- lib/google/apis/mybusinessbusinesscalls_v1/service.rb
Overview
My Business Business Calls API
The My Business Business Calls API manages business calls information of a location on Google.
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_businesscallssettings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessbusinesscallsV1::BusinessCallsSettings
Returns the Business calls settings resource for the given location.
-
#initialize ⇒ MyBusinessBusinessCallsService
constructor
A new instance of MyBusinessBusinessCallsService.
-
#list_location_businesscallsinsights(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessbusinesscallsV1::ListBusinessCallsInsightsResponse
Returns insights for Business calls for a location.
-
#update_location_businesscallssettings(name, business_calls_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessbusinesscallsV1::BusinessCallsSettings
Updates the Business call settings for the specified location.
Constructor Details
#initialize ⇒ MyBusinessBusinessCallsService
Returns a new instance of MyBusinessBusinessCallsService.
46 47 48 49 50 51 |
# File 'lib/google/apis/mybusinessbusinesscalls_v1/service.rb', line 46 def initialize super('https://mybusinessbusinesscalls.googleapis.com/', '', client_name: 'google-apis-mybusinessbusinesscalls_v1', client_version: Google::Apis::MybusinessbusinesscallsV1::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.
39 40 41 |
# File 'lib/google/apis/mybusinessbusinesscalls_v1/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 'lib/google/apis/mybusinessbusinesscalls_v1/service.rb', line 44 def quota_user @quota_user end |
Instance Method Details
#get_location_businesscallssettings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessbusinesscallsV1::BusinessCallsSettings
Returns the Business calls settings resource for the given location.
75 76 77 78 79 80 81 82 83 |
# File 'lib/google/apis/mybusinessbusinesscalls_v1/service.rb', line 75 def get_location_businesscallssettings(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::MybusinessbusinesscallsV1::BusinessCallsSettings::Representation command.response_class = Google::Apis::MybusinessbusinesscallsV1::BusinessCallsSettings 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_location_businesscallsinsights(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessbusinesscallsV1::ListBusinessCallsInsightsResponse
Returns insights for Business calls for a location.
167 168 169 170 171 172 173 174 175 176 177 178 |
# File 'lib/google/apis/mybusinessbusinesscalls_v1/service.rb', line 167 def list_location_businesscallsinsights(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/businesscallsinsights', ) command.response_representation = Google::Apis::MybusinessbusinesscallsV1::ListBusinessCallsInsightsResponse::Representation command.response_class = Google::Apis::MybusinessbusinesscallsV1::ListBusinessCallsInsightsResponse command.params['parent'] = parent unless parent.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 |
#update_location_businesscallssettings(name, business_calls_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MybusinessbusinesscallsV1::BusinessCallsSettings
Updates the Business call settings for the specified location.
109 110 111 112 113 114 115 116 117 118 119 120 |
# File 'lib/google/apis/mybusinessbusinesscalls_v1/service.rb', line 109 def update_location_businesscallssettings(name, business_calls_settings_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::MybusinessbusinesscallsV1::BusinessCallsSettings::Representation command.request_object = business_calls_settings_object command.response_representation = Google::Apis::MybusinessbusinesscallsV1::BusinessCallsSettings::Representation command.response_class = Google::Apis::MybusinessbusinesscallsV1::BusinessCallsSettings 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 |