Class: Google::Apis::SpectrumV1explorer::SpectrumService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::SpectrumV1explorer::SpectrumService
- Defined in:
- generated/google/apis/spectrum_v1explorer/service.rb
Overview
Google Spectrum Database API
API for spectrum-management functions.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
An opaque string that represents a user for quota purposes.
-
#user_ip ⇒ String
Deprecated.
Attributes inherited from Core::BaseService
#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path
Instance Method Summary collapse
-
#get_paw_spectrum(paws_get_spectrum_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SpectrumV1explorer::PawsGetSpectrumResponse
Requests information about the available spectrum for a device at a location.
-
#get_paw_spectrum_batch(paws_get_spectrum_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SpectrumV1explorer::PawsGetSpectrumBatchResponse
The Google Spectrum Database does not support batch requests, so this method always yields an UNIMPLEMENTED error.
-
#init_paw(paws_init_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SpectrumV1explorer::PawsInitResponse
Initializes the connection between a white space device and the database.
-
#initialize ⇒ SpectrumService
constructor
A new instance of SpectrumService.
-
#notify_paw_spectrum_use(paws_notify_spectrum_use_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SpectrumV1explorer::PawsNotifySpectrumUseResponse
Notifies the database that the device has selected certain frequency ranges for transmission.
-
#register_paw(paws_register_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SpectrumV1explorer::PawsRegisterResponse
The Google Spectrum Database implements registration in the getSpectrum method.
-
#verify_paw_device(paws_verify_device_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SpectrumV1explorer::PawsVerifyDeviceResponse
Validates a device for white space use in accordance with regulatory rules.
Methods inherited from Core::BaseService
#batch, #batch_upload, #fetch_all, #http
Methods included from Core::Logging
Constructor Details
#initialize ⇒ SpectrumService
Returns a new instance of SpectrumService
49 50 51 52 |
# File 'generated/google/apis/spectrum_v1explorer/service.rb', line 49 def initialize super('https://www.googleapis.com/', 'spectrum/v1explorer/paws/') @batch_path = 'batch/spectrum/v1explorer' 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/spectrum_v1explorer/service.rb', line 38 def key @key end |
#quota_user ⇒ String
Returns An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
43 44 45 |
# File 'generated/google/apis/spectrum_v1explorer/service.rb', line 43 def quota_user @quota_user end |
#user_ip ⇒ String
Returns Deprecated. Please use quotaUser instead.
47 48 49 |
# File 'generated/google/apis/spectrum_v1explorer/service.rb', line 47 def user_ip @user_ip end |
Instance Method Details
#get_paw_spectrum(paws_get_spectrum_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SpectrumV1explorer::PawsGetSpectrumResponse
Requests information about the available spectrum for a device at a location. Requests from a fixed-mode device must include owner information so the device can be registered with the database.
77 78 79 80 81 82 83 84 85 86 87 |
# File 'generated/google/apis/spectrum_v1explorer/service.rb', line 77 def get_paw_spectrum(paws_get_spectrum_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'getSpectrum', ) command.request_representation = Google::Apis::SpectrumV1explorer::PawsGetSpectrumRequest::Representation command.request_object = paws_get_spectrum_request_object command.response_representation = Google::Apis::SpectrumV1explorer::PawsGetSpectrumResponse::Representation command.response_class = Google::Apis::SpectrumV1explorer::PawsGetSpectrumResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_paw_spectrum_batch(paws_get_spectrum_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SpectrumV1explorer::PawsGetSpectrumBatchResponse
The Google Spectrum Database does not support batch requests, so this method always yields an UNIMPLEMENTED error.
111 112 113 114 115 116 117 118 119 120 121 |
# File 'generated/google/apis/spectrum_v1explorer/service.rb', line 111 def get_paw_spectrum_batch(paws_get_spectrum_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'getSpectrumBatch', ) command.request_representation = Google::Apis::SpectrumV1explorer::PawsGetSpectrumBatchRequest::Representation command.request_object = paws_get_spectrum_batch_request_object command.response_representation = Google::Apis::SpectrumV1explorer::PawsGetSpectrumBatchResponse::Representation command.response_class = Google::Apis::SpectrumV1explorer::PawsGetSpectrumBatchResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#init_paw(paws_init_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SpectrumV1explorer::PawsInitResponse
Initializes the connection between a white space device and the database.
144 145 146 147 148 149 150 151 152 153 154 |
# File 'generated/google/apis/spectrum_v1explorer/service.rb', line 144 def init_paw(paws_init_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'init', ) command.request_representation = Google::Apis::SpectrumV1explorer::PawsInitRequest::Representation command.request_object = paws_init_request_object command.response_representation = Google::Apis::SpectrumV1explorer::PawsInitResponse::Representation command.response_class = Google::Apis::SpectrumV1explorer::PawsInitResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#notify_paw_spectrum_use(paws_notify_spectrum_use_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SpectrumV1explorer::PawsNotifySpectrumUseResponse
Notifies the database that the device has selected certain frequency ranges for transmission. Only to be invoked when required by the regulator. The Google Spectrum Database does not operate in domains that require notification, so this always yields an UNIMPLEMENTED error.
180 181 182 183 184 185 186 187 188 189 190 |
# File 'generated/google/apis/spectrum_v1explorer/service.rb', line 180 def notify_paw_spectrum_use(paws_notify_spectrum_use_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'notifySpectrumUse', ) command.request_representation = Google::Apis::SpectrumV1explorer::PawsNotifySpectrumUseRequest::Representation command.request_object = paws_notify_spectrum_use_request_object command.response_representation = Google::Apis::SpectrumV1explorer::PawsNotifySpectrumUseResponse::Representation command.response_class = Google::Apis::SpectrumV1explorer::PawsNotifySpectrumUseResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#register_paw(paws_register_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SpectrumV1explorer::PawsRegisterResponse
The Google Spectrum Database implements registration in the getSpectrum method. As such this always returns an UNIMPLEMENTED error.
214 215 216 217 218 219 220 221 222 223 224 |
# File 'generated/google/apis/spectrum_v1explorer/service.rb', line 214 def register_paw(paws_register_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'register', ) command.request_representation = Google::Apis::SpectrumV1explorer::PawsRegisterRequest::Representation command.request_object = paws_register_request_object command.response_representation = Google::Apis::SpectrumV1explorer::PawsRegisterResponse::Representation command.response_class = Google::Apis::SpectrumV1explorer::PawsRegisterResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#verify_paw_device(paws_verify_device_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SpectrumV1explorer::PawsVerifyDeviceResponse
Validates a device for white space use in accordance with regulatory rules. The Google Spectrum Database does not support master/slave configurations, so this always yields an UNIMPLEMENTED error.
249 250 251 252 253 254 255 256 257 258 259 |
# File 'generated/google/apis/spectrum_v1explorer/service.rb', line 249 def verify_paw_device(paws_verify_device_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'verifyDevice', ) command.request_representation = Google::Apis::SpectrumV1explorer::PawsVerifyDeviceRequest::Representation command.request_object = paws_verify_device_request_object command.response_representation = Google::Apis::SpectrumV1explorer::PawsVerifyDeviceResponse::Representation command.response_class = Google::Apis::SpectrumV1explorer::PawsVerifyDeviceResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |