google-api-client 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/api_names.yaml +945 -41609
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +12 -12
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1437 -412
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +516 -71
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1098 -422
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
- data/generated/google/apis/admin_directory_v1/service.rb +26 -26
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
- data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
- data/generated/google/apis/adsense_v1_4/service.rb +44 -44
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
- data/generated/google/apis/analytics_v3/classes.rb +3 -3
- data/generated/google/apis/analytics_v3/representations.rb +3 -3
- data/generated/google/apis/analytics_v3/service.rb +82 -82
- data/generated/google/apis/analyticsreporting_v4/classes.rb +937 -937
- data/generated/google/apis/analyticsreporting_v4/representations.rb +128 -128
- data/generated/google/apis/analyticsreporting_v4/service.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
- data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
- data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
- data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
- data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
- data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +1570 -1512
- data/generated/google/apis/appengine_v1/representations.rb +362 -343
- data/generated/google/apis/appengine_v1/service.rb +220 -220
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +5 -5
- data/generated/google/apis/bigquery_v2/representations.rb +8 -8
- data/generated/google/apis/bigquery_v2/service.rb +13 -13
- data/generated/google/apis/blogger_v3/service.rb +3 -3
- data/generated/google/apis/books_v1/classes.rb +55 -55
- data/generated/google/apis/books_v1/representations.rb +67 -67
- data/generated/google/apis/books_v1/service.rb +82 -82
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +6 -6
- data/generated/google/apis/calendar_v3/representations.rb +3 -3
- data/generated/google/apis/calendar_v3/service.rb +2 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +2 -2
- data/generated/google/apis/civicinfo_v2/representations.rb +4 -4
- data/generated/google/apis/civicinfo_v2/service.rb +12 -12
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +1013 -991
- data/generated/google/apis/classroom_v1/representations.rb +207 -204
- data/generated/google/apis/classroom_v1/service.rb +709 -709
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +307 -307
- data/generated/google/apis/cloudbuild_v1/representations.rb +84 -84
- data/generated/google/apis/cloudbuild_v1/service.rb +125 -125
- data/generated/google/apis/clouddebugger_v2/classes.rb +673 -673
- data/generated/google/apis/clouddebugger_v2/representations.rb +152 -152
- data/generated/google/apis/clouddebugger_v2/service.rb +55 -55
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +121 -121
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +25 -25
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +74 -74
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +668 -613
- data/generated/google/apis/cloudkms_v1/representations.rb +151 -133
- data/generated/google/apis/cloudkms_v1/service.rb +267 -267
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1167 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +193 -193
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +470 -469
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +508 -509
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +94 -94
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +157 -156
- data/generated/google/apis/cloudtrace_v1/service.rb +34 -34
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +163 -15
- data/generated/google/apis/compute_beta/representations.rb +54 -14
- data/generated/google/apis/compute_beta/service.rb +2258 -482
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +465 -13
- data/generated/google/apis/compute_v1/representations.rb +202 -16
- data/generated/google/apis/compute_v1/service.rb +573 -309
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +635 -589
- data/generated/google/apis/container_v1/representations.rb +139 -111
- data/generated/google/apis/container_v1/service.rb +272 -227
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +86 -74
- data/generated/google/apis/content_v2/representations.rb +107 -105
- data/generated/google/apis/content_v2/service.rb +131 -130
- data/generated/google/apis/customsearch_v1.rb +2 -2
- data/generated/google/apis/customsearch_v1/classes.rb +0 -6
- data/generated/google/apis/customsearch_v1/representations.rb +0 -1
- data/generated/google/apis/customsearch_v1/service.rb +2 -5
- data/generated/google/apis/dataflow_v1b3.rb +7 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3405 -3405
- data/generated/google/apis/dataflow_v1b3/representations.rb +834 -834
- data/generated/google/apis/dataflow_v1b3/service.rb +244 -244
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +543 -691
- data/generated/google/apis/dataproc_v1/representations.rb +129 -185
- data/generated/google/apis/dataproc_v1/service.rb +347 -347
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +833 -833
- data/generated/google/apis/datastore_v1/representations.rb +182 -182
- data/generated/google/apis/datastore_v1/service.rb +45 -45
- data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
- data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
- data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
- data/generated/google/apis/discovery_v1/classes.rb +4 -4
- data/generated/google/apis/discovery_v1/representations.rb +2 -2
- data/generated/google/apis/discovery_v1/service.rb +1 -1
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +3 -3
- data/generated/google/apis/dns_v1/representations.rb +6 -6
- data/generated/google/apis/dns_v1/service.rb +12 -12
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +160 -110
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +60 -31
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +38 -3
- data/generated/google/apis/firebaserules_v1/classes.rb +354 -354
- data/generated/google/apis/firebaserules_v1/representations.rb +87 -87
- data/generated/google/apis/firebaserules_v1/service.rb +103 -103
- data/generated/google/apis/fusiontables_v2/service.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
- data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +23 -23
- data/generated/google/apis/games_v1/representations.rb +43 -43
- data/generated/google/apis/games_v1/service.rb +72 -72
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +2316 -2316
- data/generated/google/apis/genomics_v1/representations.rb +291 -291
- data/generated/google/apis/genomics_v1/service.rb +821 -821
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/groupsmigration_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +2 -2
- data/generated/google/apis/groupssettings_v1/service.rb +3 -0
- data/generated/google/apis/iam_v1/classes.rb +338 -338
- data/generated/google/apis/iam_v1/representations.rb +98 -98
- data/generated/google/apis/iam_v1/service.rb +35 -35
- data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
- data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
- data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
- data/generated/google/apis/kgsearch_v1/service.rb +13 -13
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +374 -374
- data/generated/google/apis/language_v1/representations.rb +97 -97
- data/generated/google/apis/language_v1/service.rb +16 -16
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +441 -441
- data/generated/google/apis/language_v1beta1/representations.rb +108 -108
- data/generated/google/apis/language_v1beta1/service.rb +30 -30
- data/generated/google/apis/licensing_v1/service.rb +2 -2
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +712 -712
- data/generated/google/apis/logging_v2/representations.rb +109 -109
- data/generated/google/apis/logging_v2/service.rb +543 -539
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +752 -752
- data/generated/google/apis/logging_v2beta1/representations.rb +94 -94
- data/generated/google/apis/logging_v2beta1/service.rb +257 -256
- data/generated/google/apis/manufacturers_v1/classes.rb +130 -130
- data/generated/google/apis/manufacturers_v1/representations.rb +28 -28
- data/generated/google/apis/mirror_v1/classes.rb +5 -5
- data/generated/google/apis/mirror_v1/representations.rb +10 -10
- data/generated/google/apis/mirror_v1/service.rb +20 -20
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1830 -1210
- data/generated/google/apis/ml_v1/representations.rb +342 -120
- data/generated/google/apis/ml_v1/service.rb +365 -258
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +889 -889
- data/generated/google/apis/monitoring_v3/representations.rb +174 -174
- data/generated/google/apis/monitoring_v3/service.rb +119 -119
- data/generated/google/apis/mybusiness_v3/service.rb +5 -5
- data/generated/google/apis/oauth2_v2/service.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
- data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +550 -536
- data/generated/google/apis/partners_v2/representations.rb +118 -116
- data/generated/google/apis/partners_v2/service.rb +439 -439
- data/generated/google/apis/people_v1.rb +4 -4
- data/generated/google/apis/people_v1/classes.rb +414 -413
- data/generated/google/apis/people_v1/representations.rb +85 -85
- data/generated/google/apis/people_v1/service.rb +111 -18
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/service.rb +4 -4
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/service.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -8
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +443 -443
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +92 -92
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +152 -152
- data/generated/google/apis/pubsub_v1/classes.rb +249 -249
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +415 -415
- data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
- data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
- data/generated/google/apis/qpx_express_v1/service.rb +8 -8
- data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
- data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
- data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
- data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1.rb +4 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
- data/generated/google/apis/script_v1.rb +17 -17
- data/generated/google/apis/script_v1/classes.rb +27 -27
- data/generated/google/apis/script_v1/representations.rb +5 -5
- data/generated/google/apis/script_v1/service.rb +4 -4
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +53 -53
- data/generated/google/apis/searchconsole_v1/representations.rb +23 -23
- data/generated/google/apis/searchconsole_v1/service.rb +4 -4
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1175 -1175
- data/generated/google/apis/servicecontrol_v1/representations.rb +206 -206
- data/generated/google/apis/servicecontrol_v1/service.rb +116 -116
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +1186 -1125
- data/generated/google/apis/servicemanagement_v1/representations.rb +241 -223
- data/generated/google/apis/servicemanagement_v1/service.rb +201 -201
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2645 -2641
- data/generated/google/apis/serviceuser_v1/representations.rb +234 -234
- data/generated/google/apis/serviceuser_v1/service.rb +37 -37
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +5042 -4111
- data/generated/google/apis/sheets_v4/representations.rb +994 -824
- data/generated/google/apis/sheets_v4/service.rb +80 -80
- data/generated/google/apis/site_verification_v1/classes.rb +6 -6
- data/generated/google/apis/site_verification_v1/representations.rb +8 -8
- data/generated/google/apis/site_verification_v1/service.rb +12 -12
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2885 -2885
- data/generated/google/apis/slides_v1/representations.rb +310 -310
- data/generated/google/apis/slides_v1/service.rb +54 -54
- data/generated/google/apis/sourcerepo_v1/classes.rb +206 -206
- data/generated/google/apis/sourcerepo_v1/representations.rb +52 -52
- data/generated/google/apis/sourcerepo_v1/service.rb +5 -5
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +2142 -2141
- data/generated/google/apis/spanner_v1/representations.rb +174 -174
- data/generated/google/apis/spanner_v1/service.rb +497 -497
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +227 -227
- data/generated/google/apis/speech_v1beta1/representations.rb +50 -50
- data/generated/google/apis/speech_v1beta1/service.rb +33 -33
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +21 -21
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -29
- data/generated/google/apis/sqladmin_v1beta4/service.rb +56 -56
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +40 -6
- data/generated/google/apis/storage_v1/representations.rb +20 -4
- data/generated/google/apis/storage_v1/service.rb +61 -46
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +184 -184
- data/generated/google/apis/storagetransfer_v1/representations.rb +35 -35
- data/generated/google/apis/storagetransfer_v1/service.rb +70 -70
- data/generated/google/apis/tagmanager_v1/service.rb +33 -33
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/translate_v2/classes.rb +12 -12
- data/generated/google/apis/translate_v2/representations.rb +10 -10
- data/generated/google/apis/translate_v2/service.rb +62 -62
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1267 -1267
- data/generated/google/apis/vision_v1/representations.rb +200 -200
- data/generated/google/apis/vision_v1/service.rb +10 -10
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/representations.rb +8 -8
- data/generated/google/apis/webmasters_v3/service.rb +21 -21
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
- data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
- data/generated/google/apis/youtube_v3/classes.rb +20 -20
- data/generated/google/apis/youtube_v3/representations.rb +40 -40
- data/generated/google/apis/youtube_v3/service.rb +80 -80
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +129 -129
- data/generated/google/apis/youtubereporting_v1/representations.rb +38 -38
- data/generated/google/apis/youtubereporting_v1/service.rb +97 -97
- data/lib/google/apis/generator/annotator.rb +2 -2
- data/lib/google/apis/generator/model.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/+/domains/
|
26
26
|
module PlusDomainsV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170612'
|
29
29
|
|
30
30
|
# View your circles and the people and pages in them
|
31
31
|
AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'
|
@@ -256,7 +256,7 @@ module Google
|
|
256
256
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
257
257
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
258
258
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
259
|
-
def
|
259
|
+
def add_people(circle_id, email: nil, user_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
260
260
|
command = make_simple_command(:put, 'circles/{circleId}/people', options)
|
261
261
|
command.response_representation = Google::Apis::PlusDomainsV1::Circle::Representation
|
262
262
|
command.response_class = Google::Apis::PlusDomainsV1::Circle
|
@@ -488,7 +488,7 @@ module Google
|
|
488
488
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
489
489
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
490
490
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
491
|
-
def
|
491
|
+
def remove_people(circle_id, email: nil, user_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
492
492
|
command = make_simple_command(:delete, 'circles/{circleId}/people', options)
|
493
493
|
command.params['circleId'] = circle_id unless circle_id.nil?
|
494
494
|
command.query['email'] = email unless email.nil?
|
@@ -833,7 +833,7 @@ module Google
|
|
833
833
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
834
834
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
835
835
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
836
|
-
def
|
836
|
+
def list_people_by_activity(activity_id, collection, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
837
837
|
command = make_simple_command(:get, 'activities/{activityId}/people/{collection}', options)
|
838
838
|
command.response_representation = Google::Apis::PlusDomainsV1::PeopleFeed::Representation
|
839
839
|
command.response_class = Google::Apis::PlusDomainsV1::PeopleFeed
|
@@ -879,7 +879,7 @@ module Google
|
|
879
879
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
880
880
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
881
881
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
882
|
-
def
|
882
|
+
def list_people_by_circle(circle_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
883
883
|
command = make_simple_command(:get, 'circles/{circleId}/people', options)
|
884
884
|
command.response_representation = Google::Apis::PlusDomainsV1::PeopleFeed::Representation
|
885
885
|
command.response_class = Google::Apis::PlusDomainsV1::PeopleFeed
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/+/api/
|
26
26
|
module PlusV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170612'
|
29
29
|
|
30
30
|
# Know the list of people in your circles, your age range, and language
|
31
31
|
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
|
@@ -395,7 +395,7 @@ module Google
|
|
395
395
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
396
396
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
397
397
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
398
|
-
def
|
398
|
+
def list_people_by_activity(activity_id, collection, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
399
399
|
command = make_simple_command(:get, 'activities/{activityId}/people/{collection}', options)
|
400
400
|
command.response_representation = Google::Apis::PlusV1::PeopleFeed::Representation
|
401
401
|
command.response_class = Google::Apis::PlusV1::PeopleFeed
|
@@ -81,7 +81,7 @@ module Google
|
|
81
81
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
82
82
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
83
83
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
84
|
-
def
|
84
|
+
def predict_hosted_model(project, hosted_model_name, input_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
85
85
|
command = make_simple_command(:post, '{project}/hostedmodels/{hostedModelName}/predict', options)
|
86
86
|
command.request_representation = Google::Apis::PredictionV1_6::Input::Representation
|
87
87
|
command.request_object = input_object
|
@@ -121,7 +121,7 @@ module Google
|
|
121
121
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
122
122
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
123
123
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
124
|
-
def
|
124
|
+
def analyze_trained_model(project, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
125
125
|
command = make_simple_command(:get, '{project}/trainedmodels/{id}/analyze', options)
|
126
126
|
command.response_representation = Google::Apis::PredictionV1_6::Analyze::Representation
|
127
127
|
command.response_class = Google::Apis::PredictionV1_6::Analyze
|
@@ -159,7 +159,7 @@ module Google
|
|
159
159
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
160
160
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
161
161
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
162
|
-
def
|
162
|
+
def delete_trained_model(project, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
163
163
|
command = make_simple_command(:delete, '{project}/trainedmodels/{id}', options)
|
164
164
|
command.params['project'] = project unless project.nil?
|
165
165
|
command.params['id'] = id unless id.nil?
|
@@ -195,7 +195,7 @@ module Google
|
|
195
195
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
196
196
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
197
197
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
198
|
-
def
|
198
|
+
def get_trained_model(project, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
199
199
|
command = make_simple_command(:get, '{project}/trainedmodels/{id}', options)
|
200
200
|
command.response_representation = Google::Apis::PredictionV1_6::Insert2::Representation
|
201
201
|
command.response_class = Google::Apis::PredictionV1_6::Insert2
|
@@ -232,7 +232,7 @@ module Google
|
|
232
232
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
233
233
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
234
234
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
235
|
-
def
|
235
|
+
def insert_trained_model(project, insert_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
236
236
|
command = make_simple_command(:post, '{project}/trainedmodels', options)
|
237
237
|
command.request_representation = Google::Apis::PredictionV1_6::Insert::Representation
|
238
238
|
command.request_object = insert_object
|
@@ -273,7 +273,7 @@ module Google
|
|
273
273
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
274
274
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
275
275
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
276
|
-
def
|
276
|
+
def list_trained_models(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
277
277
|
command = make_simple_command(:get, '{project}/trainedmodels/list', options)
|
278
278
|
command.response_representation = Google::Apis::PredictionV1_6::List::Representation
|
279
279
|
command.response_class = Google::Apis::PredictionV1_6::List
|
@@ -313,7 +313,7 @@ module Google
|
|
313
313
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
314
314
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
315
315
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
316
|
-
def
|
316
|
+
def predict_trained_model(project, id, input_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
317
317
|
command = make_simple_command(:post, '{project}/trainedmodels/{id}/predict', options)
|
318
318
|
command.request_representation = Google::Apis::PredictionV1_6::Input::Representation
|
319
319
|
command.request_object = input_object
|
@@ -354,7 +354,7 @@ module Google
|
|
354
354
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
355
355
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
356
356
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
357
|
-
def
|
357
|
+
def update_trained_model(project, id, update_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
358
358
|
command = make_simple_command(:put, '{project}/trainedmodels/{id}', options)
|
359
359
|
command.request_representation = Google::Apis::PredictionV1_6::Update::Representation
|
360
360
|
command.request_object = update_object
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/beacons/proximity/
|
26
26
|
module ProximitybeaconV1beta1
|
27
27
|
VERSION = 'V1beta1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170612'
|
29
29
|
|
30
30
|
# View and modify your beacons
|
31
31
|
AUTH_USERLOCATION_BEACON_REGISTRY = 'https://www.googleapis.com/auth/userlocation.beacon.registry'
|
@@ -22,6 +22,275 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module ProximitybeaconV1beta1
|
24
24
|
|
25
|
+
# Represents one beacon observed once.
|
26
|
+
class Observation
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# Time when the beacon was observed.
|
30
|
+
# Corresponds to the JSON property `timestampMs`
|
31
|
+
# @return [String]
|
32
|
+
attr_accessor :timestamp_ms
|
33
|
+
|
34
|
+
# Defines a unique identifier of a beacon as broadcast by the device.
|
35
|
+
# Corresponds to the JSON property `advertisedId`
|
36
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
|
37
|
+
attr_accessor :advertised_id
|
38
|
+
|
39
|
+
# The array of telemetry bytes received from the beacon. The server is
|
40
|
+
# responsible for parsing it. This field may frequently be empty, as
|
41
|
+
# with a beacon that transmits telemetry only occasionally.
|
42
|
+
# Corresponds to the JSON property `telemetry`
|
43
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
44
|
+
# @return [String]
|
45
|
+
attr_accessor :telemetry
|
46
|
+
|
47
|
+
def initialize(**args)
|
48
|
+
update!(**args)
|
49
|
+
end
|
50
|
+
|
51
|
+
# Update properties of this object
|
52
|
+
def update!(**args)
|
53
|
+
@timestamp_ms = args[:timestamp_ms] if args.key?(:timestamp_ms)
|
54
|
+
@advertised_id = args[:advertised_id] if args.key?(:advertised_id)
|
55
|
+
@telemetry = args[:telemetry] if args.key?(:telemetry)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# Response that contains the requested diagnostics.
|
60
|
+
class ListDiagnosticsResponse
|
61
|
+
include Google::Apis::Core::Hashable
|
62
|
+
|
63
|
+
# The diagnostics matching the given request.
|
64
|
+
# Corresponds to the JSON property `diagnostics`
|
65
|
+
# @return [Array<Google::Apis::ProximitybeaconV1beta1::Diagnostics>]
|
66
|
+
attr_accessor :diagnostics
|
67
|
+
|
68
|
+
# Token that can be used for pagination. Returned only if the
|
69
|
+
# request matches more beacons than can be returned in this response.
|
70
|
+
# Corresponds to the JSON property `nextPageToken`
|
71
|
+
# @return [String]
|
72
|
+
attr_accessor :next_page_token
|
73
|
+
|
74
|
+
def initialize(**args)
|
75
|
+
update!(**args)
|
76
|
+
end
|
77
|
+
|
78
|
+
# Update properties of this object
|
79
|
+
def update!(**args)
|
80
|
+
@diagnostics = args[:diagnostics] if args.key?(:diagnostics)
|
81
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# Information about the requested beacons, optionally including attachment
|
86
|
+
# data.
|
87
|
+
class GetInfoForObservedBeaconsResponse
|
88
|
+
include Google::Apis::Core::Hashable
|
89
|
+
|
90
|
+
# Public information about beacons.
|
91
|
+
# May be empty if the request matched no beacons.
|
92
|
+
# Corresponds to the JSON property `beacons`
|
93
|
+
# @return [Array<Google::Apis::ProximitybeaconV1beta1::BeaconInfo>]
|
94
|
+
attr_accessor :beacons
|
95
|
+
|
96
|
+
def initialize(**args)
|
97
|
+
update!(**args)
|
98
|
+
end
|
99
|
+
|
100
|
+
# Update properties of this object
|
101
|
+
def update!(**args)
|
102
|
+
@beacons = args[:beacons] if args.key?(:beacons)
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
# Details of a beacon device.
|
107
|
+
class Beacon
|
108
|
+
include Google::Apis::Core::Hashable
|
109
|
+
|
110
|
+
# Some beacons may require a user to provide an authorization key before
|
111
|
+
# changing any of its configuration (e.g. broadcast frames, transmit power).
|
112
|
+
# This field provides a place to store and control access to that key.
|
113
|
+
# This field is populated in responses to `GET /v1beta1/beacons/3!beaconId`
|
114
|
+
# from users with write access to the given beacon. That is to say: If the
|
115
|
+
# user is authorized to write the beacon's confidential data in the service,
|
116
|
+
# the service considers them authorized to configure the beacon. Note
|
117
|
+
# that this key grants nothing on the service, only on the beacon itself.
|
118
|
+
# Corresponds to the JSON property `provisioningKey`
|
119
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
120
|
+
# @return [String]
|
121
|
+
attr_accessor :provisioning_key
|
122
|
+
|
123
|
+
# Write-only registration parameters for beacons using Eddystone-EID format.
|
124
|
+
# Two ways of securely registering an Eddystone-EID beacon with the service
|
125
|
+
# are supported:
|
126
|
+
# 1. Perform an ECDH key exchange via this API, including a previous call
|
127
|
+
# to `GET /v1beta1/eidparams`. In this case the fields
|
128
|
+
# `beacon_ecdh_public_key` and `service_ecdh_public_key` should be
|
129
|
+
# populated and `beacon_identity_key` should not be populated. This
|
130
|
+
# method ensures that only the two parties in the ECDH key exchange can
|
131
|
+
# compute the identity key, which becomes a secret between them.
|
132
|
+
# 2. Derive or obtain the beacon's identity key via other secure means
|
133
|
+
# (perhaps an ECDH key exchange between the beacon and a mobile device
|
134
|
+
# or any other secure method), and then submit the resulting identity key
|
135
|
+
# to the service. In this case `beacon_identity_key` field should be
|
136
|
+
# populated, and neither of `beacon_ecdh_public_key` nor
|
137
|
+
# `service_ecdh_public_key` fields should be. The security of this method
|
138
|
+
# depends on how securely the parties involved (in particular the
|
139
|
+
# bluetooth client) handle the identity key, and obviously on how
|
140
|
+
# securely the identity key was generated.
|
141
|
+
# See [the Eddystone specification](https://github.com/google/eddystone/tree/
|
142
|
+
# master/eddystone-eid) at GitHub.
|
143
|
+
# Corresponds to the JSON property `ephemeralIdRegistration`
|
144
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration]
|
145
|
+
attr_accessor :ephemeral_id_registration
|
146
|
+
|
147
|
+
# An object representing a latitude/longitude pair. This is expressed as a pair
|
148
|
+
# of doubles representing degrees latitude and degrees longitude. Unless
|
149
|
+
# specified otherwise, this must conform to the
|
150
|
+
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
151
|
+
# standard</a>. Values must be within normalized ranges.
|
152
|
+
# Example of normalization code in Python:
|
153
|
+
# def NormalizeLongitude(longitude):
|
154
|
+
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
|
155
|
+
# q, r = divmod(longitude, 360.0)
|
156
|
+
# if r > 180.0 or (r == 180.0 and q <= -1.0):
|
157
|
+
# return r - 360.0
|
158
|
+
# return r
|
159
|
+
# def NormalizeLatLng(latitude, longitude):
|
160
|
+
# """Wraps decimal degrees latitude and longitude to
|
161
|
+
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
|
162
|
+
# r = latitude % 360.0
|
163
|
+
# if r <= 90.0:
|
164
|
+
# return r, NormalizeLongitude(longitude)
|
165
|
+
# elif r >= 270.0:
|
166
|
+
# return r - 360, NormalizeLongitude(longitude)
|
167
|
+
# else:
|
168
|
+
# return 180 - r, NormalizeLongitude(longitude + 180.0)
|
169
|
+
# assert 180.0 == NormalizeLongitude(180.0)
|
170
|
+
# assert -180.0 == NormalizeLongitude(-180.0)
|
171
|
+
# assert -179.0 == NormalizeLongitude(181.0)
|
172
|
+
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
|
173
|
+
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
|
174
|
+
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
|
175
|
+
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
|
176
|
+
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
|
177
|
+
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
|
178
|
+
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
|
179
|
+
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
|
180
|
+
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
|
181
|
+
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
182
|
+
# Corresponds to the JSON property `latLng`
|
183
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::LatLng]
|
184
|
+
attr_accessor :lat_lng
|
185
|
+
|
186
|
+
# The [Google Places API](/places/place-id) Place ID of the place where
|
187
|
+
# the beacon is deployed. This is given when the beacon is registered or
|
188
|
+
# updated, not automatically detected in any way.
|
189
|
+
# Optional.
|
190
|
+
# Corresponds to the JSON property `placeId`
|
191
|
+
# @return [String]
|
192
|
+
attr_accessor :place_id
|
193
|
+
|
194
|
+
# Free text used to identify and describe the beacon. Maximum length 140
|
195
|
+
# characters.
|
196
|
+
# Optional.
|
197
|
+
# Corresponds to the JSON property `description`
|
198
|
+
# @return [String]
|
199
|
+
attr_accessor :description
|
200
|
+
|
201
|
+
# Properties of the beacon device, for example battery type or firmware
|
202
|
+
# version.
|
203
|
+
# Optional.
|
204
|
+
# Corresponds to the JSON property `properties`
|
205
|
+
# @return [Hash<String,String>]
|
206
|
+
attr_accessor :properties
|
207
|
+
|
208
|
+
# Current status of the beacon.
|
209
|
+
# Required.
|
210
|
+
# Corresponds to the JSON property `status`
|
211
|
+
# @return [String]
|
212
|
+
attr_accessor :status
|
213
|
+
|
214
|
+
# Indoor level, a human-readable string as returned by Google Maps APIs,
|
215
|
+
# useful to indicate which floor of a building a beacon is located on.
|
216
|
+
# Corresponds to the JSON property `indoorLevel`
|
217
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::IndoorLevel]
|
218
|
+
attr_accessor :indoor_level
|
219
|
+
|
220
|
+
# Resource name of this beacon. A beacon name has the format
|
221
|
+
# "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
|
222
|
+
# the beacon and N is a code for the beacon's type. Possible values are
|
223
|
+
# `3` for Eddystone, `1` for iBeacon, or `5` for AltBeacon.
|
224
|
+
# This field must be left empty when registering. After reading a beacon,
|
225
|
+
# clients can use the name for future operations.
|
226
|
+
# Corresponds to the JSON property `beaconName`
|
227
|
+
# @return [String]
|
228
|
+
attr_accessor :beacon_name
|
229
|
+
|
230
|
+
# Expected location stability. This is set when the beacon is registered or
|
231
|
+
# updated, not automatically detected in any way.
|
232
|
+
# Optional.
|
233
|
+
# Corresponds to the JSON property `expectedStability`
|
234
|
+
# @return [String]
|
235
|
+
attr_accessor :expected_stability
|
236
|
+
|
237
|
+
# Defines a unique identifier of a beacon as broadcast by the device.
|
238
|
+
# Corresponds to the JSON property `advertisedId`
|
239
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
|
240
|
+
attr_accessor :advertised_id
|
241
|
+
|
242
|
+
def initialize(**args)
|
243
|
+
update!(**args)
|
244
|
+
end
|
245
|
+
|
246
|
+
# Update properties of this object
|
247
|
+
def update!(**args)
|
248
|
+
@provisioning_key = args[:provisioning_key] if args.key?(:provisioning_key)
|
249
|
+
@ephemeral_id_registration = args[:ephemeral_id_registration] if args.key?(:ephemeral_id_registration)
|
250
|
+
@lat_lng = args[:lat_lng] if args.key?(:lat_lng)
|
251
|
+
@place_id = args[:place_id] if args.key?(:place_id)
|
252
|
+
@description = args[:description] if args.key?(:description)
|
253
|
+
@properties = args[:properties] if args.key?(:properties)
|
254
|
+
@status = args[:status] if args.key?(:status)
|
255
|
+
@indoor_level = args[:indoor_level] if args.key?(:indoor_level)
|
256
|
+
@beacon_name = args[:beacon_name] if args.key?(:beacon_name)
|
257
|
+
@expected_stability = args[:expected_stability] if args.key?(:expected_stability)
|
258
|
+
@advertised_id = args[:advertised_id] if args.key?(:advertised_id)
|
259
|
+
end
|
260
|
+
end
|
261
|
+
|
262
|
+
# Defines a unique identifier of a beacon as broadcast by the device.
|
263
|
+
class AdvertisedId
|
264
|
+
include Google::Apis::Core::Hashable
|
265
|
+
|
266
|
+
# Specifies the identifier type.
|
267
|
+
# Required.
|
268
|
+
# Corresponds to the JSON property `type`
|
269
|
+
# @return [String]
|
270
|
+
attr_accessor :type
|
271
|
+
|
272
|
+
# The actual beacon identifier, as broadcast by the beacon hardware. Must be
|
273
|
+
# [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP
|
274
|
+
# requests, and will be so encoded (with padding) in responses. The base64
|
275
|
+
# encoding should be of the binary byte-stream and not any textual (such as
|
276
|
+
# hex) representation thereof.
|
277
|
+
# Required.
|
278
|
+
# Corresponds to the JSON property `id`
|
279
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
280
|
+
# @return [String]
|
281
|
+
attr_accessor :id
|
282
|
+
|
283
|
+
def initialize(**args)
|
284
|
+
update!(**args)
|
285
|
+
end
|
286
|
+
|
287
|
+
# Update properties of this object
|
288
|
+
def update!(**args)
|
289
|
+
@type = args[:type] if args.key?(:type)
|
290
|
+
@id = args[:id] if args.key?(:id)
|
291
|
+
end
|
292
|
+
end
|
293
|
+
|
25
294
|
# Represents a whole calendar date, e.g. date of birth. The time of day and
|
26
295
|
# time zone are either specified elsewhere or are not significant. The date
|
27
296
|
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
|
@@ -32,11 +301,6 @@ module Google
|
|
32
301
|
class Date
|
33
302
|
include Google::Apis::Core::Hashable
|
34
303
|
|
35
|
-
# Month of year. Must be from 1 to 12.
|
36
|
-
# Corresponds to the JSON property `month`
|
37
|
-
# @return [Fixnum]
|
38
|
-
attr_accessor :month
|
39
|
-
|
40
304
|
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
|
41
305
|
# a year.
|
42
306
|
# Corresponds to the JSON property `year`
|
@@ -49,15 +313,20 @@ module Google
|
|
49
313
|
# @return [Fixnum]
|
50
314
|
attr_accessor :day
|
51
315
|
|
316
|
+
# Month of year. Must be from 1 to 12.
|
317
|
+
# Corresponds to the JSON property `month`
|
318
|
+
# @return [Fixnum]
|
319
|
+
attr_accessor :month
|
320
|
+
|
52
321
|
def initialize(**args)
|
53
322
|
update!(**args)
|
54
323
|
end
|
55
324
|
|
56
325
|
# Update properties of this object
|
57
326
|
def update!(**args)
|
58
|
-
@month = args[:month] if args.key?(:month)
|
59
327
|
@year = args[:year] if args.key?(:year)
|
60
328
|
@day = args[:day] if args.key?(:day)
|
329
|
+
@month = args[:month] if args.key?(:month)
|
61
330
|
end
|
62
331
|
end
|
63
332
|
|
@@ -100,6 +369,44 @@ module Google
|
|
100
369
|
end
|
101
370
|
end
|
102
371
|
|
372
|
+
# Diagnostics for a single beacon.
|
373
|
+
class Diagnostics
|
374
|
+
include Google::Apis::Core::Hashable
|
375
|
+
|
376
|
+
# Resource name of the beacon. For Eddystone-EID beacons, this may
|
377
|
+
# be the beacon's current EID, or the beacon's "stable" Eddystone-UID.
|
378
|
+
# Corresponds to the JSON property `beaconName`
|
379
|
+
# @return [String]
|
380
|
+
attr_accessor :beacon_name
|
381
|
+
|
382
|
+
# An unordered list of Alerts that the beacon has.
|
383
|
+
# Corresponds to the JSON property `alerts`
|
384
|
+
# @return [Array<String>]
|
385
|
+
attr_accessor :alerts
|
386
|
+
|
387
|
+
# Represents a whole calendar date, e.g. date of birth. The time of day and
|
388
|
+
# time zone are either specified elsewhere or are not significant. The date
|
389
|
+
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
|
390
|
+
# represent a year and month where the day is not significant, e.g. credit card
|
391
|
+
# expiration date. The year may be 0 to represent a month and day independent
|
392
|
+
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
|
393
|
+
# and `google.protobuf.Timestamp`.
|
394
|
+
# Corresponds to the JSON property `estimatedLowBatteryDate`
|
395
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::Date]
|
396
|
+
attr_accessor :estimated_low_battery_date
|
397
|
+
|
398
|
+
def initialize(**args)
|
399
|
+
update!(**args)
|
400
|
+
end
|
401
|
+
|
402
|
+
# Update properties of this object
|
403
|
+
def update!(**args)
|
404
|
+
@beacon_name = args[:beacon_name] if args.key?(:beacon_name)
|
405
|
+
@alerts = args[:alerts] if args.key?(:alerts)
|
406
|
+
@estimated_low_battery_date = args[:estimated_low_battery_date] if args.key?(:estimated_low_battery_date)
|
407
|
+
end
|
408
|
+
end
|
409
|
+
|
103
410
|
# Response that contains list beacon results and pagination help.
|
104
411
|
class ListBeaconsResponse
|
105
412
|
include Google::Apis::Core::Hashable
|
@@ -133,44 +440,6 @@ module Google
|
|
133
440
|
end
|
134
441
|
end
|
135
442
|
|
136
|
-
# Diagnostics for a single beacon.
|
137
|
-
class Diagnostics
|
138
|
-
include Google::Apis::Core::Hashable
|
139
|
-
|
140
|
-
# Represents a whole calendar date, e.g. date of birth. The time of day and
|
141
|
-
# time zone are either specified elsewhere or are not significant. The date
|
142
|
-
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
|
143
|
-
# represent a year and month where the day is not significant, e.g. credit card
|
144
|
-
# expiration date. The year may be 0 to represent a month and day independent
|
145
|
-
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
|
146
|
-
# and `google.protobuf.Timestamp`.
|
147
|
-
# Corresponds to the JSON property `estimatedLowBatteryDate`
|
148
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::Date]
|
149
|
-
attr_accessor :estimated_low_battery_date
|
150
|
-
|
151
|
-
# Resource name of the beacon. For Eddystone-EID beacons, this may
|
152
|
-
# be the beacon's current EID, or the beacon's "stable" Eddystone-UID.
|
153
|
-
# Corresponds to the JSON property `beaconName`
|
154
|
-
# @return [String]
|
155
|
-
attr_accessor :beacon_name
|
156
|
-
|
157
|
-
# An unordered list of Alerts that the beacon has.
|
158
|
-
# Corresponds to the JSON property `alerts`
|
159
|
-
# @return [Array<String>]
|
160
|
-
attr_accessor :alerts
|
161
|
-
|
162
|
-
def initialize(**args)
|
163
|
-
update!(**args)
|
164
|
-
end
|
165
|
-
|
166
|
-
# Update properties of this object
|
167
|
-
def update!(**args)
|
168
|
-
@estimated_low_battery_date = args[:estimated_low_battery_date] if args.key?(:estimated_low_battery_date)
|
169
|
-
@beacon_name = args[:beacon_name] if args.key?(:beacon_name)
|
170
|
-
@alerts = args[:alerts] if args.key?(:alerts)
|
171
|
-
end
|
172
|
-
end
|
173
|
-
|
174
443
|
# A generic empty message that you can re-use to avoid defining duplicated
|
175
444
|
# empty messages in your APIs. A typical example is to use it as the request
|
176
445
|
# or the response type of an API method. For instance:
|
@@ -226,15 +495,6 @@ module Google
|
|
226
495
|
class BeaconAttachment
|
227
496
|
include Google::Apis::Core::Hashable
|
228
497
|
|
229
|
-
# An opaque data container for client-provided data. Must be
|
230
|
-
# [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP
|
231
|
-
# requests, and will be so encoded (with padding) in responses.
|
232
|
-
# Required.
|
233
|
-
# Corresponds to the JSON property `data`
|
234
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
235
|
-
# @return [String]
|
236
|
-
attr_accessor :data
|
237
|
-
|
238
498
|
# The UTC time when this attachment was created, in milliseconds since the
|
239
499
|
# UNIX epoch.
|
240
500
|
# Corresponds to the JSON property `creationTimeMs`
|
@@ -257,16 +517,25 @@ module Google
|
|
257
517
|
# @return [String]
|
258
518
|
attr_accessor :namespaced_type
|
259
519
|
|
520
|
+
# An opaque data container for client-provided data. Must be
|
521
|
+
# [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP
|
522
|
+
# requests, and will be so encoded (with padding) in responses.
|
523
|
+
# Required.
|
524
|
+
# Corresponds to the JSON property `data`
|
525
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
526
|
+
# @return [String]
|
527
|
+
attr_accessor :data
|
528
|
+
|
260
529
|
def initialize(**args)
|
261
530
|
update!(**args)
|
262
531
|
end
|
263
532
|
|
264
533
|
# Update properties of this object
|
265
534
|
def update!(**args)
|
266
|
-
@data = args[:data] if args.key?(:data)
|
267
535
|
@creation_time_ms = args[:creation_time_ms] if args.key?(:creation_time_ms)
|
268
536
|
@attachment_name = args[:attachment_name] if args.key?(:attachment_name)
|
269
537
|
@namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
|
538
|
+
@data = args[:data] if args.key?(:data)
|
270
539
|
end
|
271
540
|
end
|
272
541
|
|
@@ -293,23 +562,6 @@ module Google
|
|
293
562
|
class EphemeralIdRegistration
|
294
563
|
include Google::Apis::Core::Hashable
|
295
564
|
|
296
|
-
# The initial clock value of the beacon. The beacon's clock must have
|
297
|
-
# begun counting at this value immediately prior to transmitting this
|
298
|
-
# value to the resolving service. Significant delay in transmitting this
|
299
|
-
# value to the service risks registration or resolution failures. If a
|
300
|
-
# value is not provided, the default is zero.
|
301
|
-
# Corresponds to the JSON property `initialClockValue`
|
302
|
-
# @return [Fixnum]
|
303
|
-
attr_accessor :initial_clock_value
|
304
|
-
|
305
|
-
# The beacon's public key used for the Elliptic curve Diffie-Hellman
|
306
|
-
# key exchange. When this field is populated, `service_ecdh_public_key`
|
307
|
-
# must also be populated, and `beacon_identity_key` must not be.
|
308
|
-
# Corresponds to the JSON property `beaconEcdhPublicKey`
|
309
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
310
|
-
# @return [String]
|
311
|
-
attr_accessor :beacon_ecdh_public_key
|
312
|
-
|
313
565
|
# Indicates the nominal period between each rotation of the beacon's
|
314
566
|
# ephemeral ID. "Nominal" because the beacon should randomize the
|
315
567
|
# actual interval. See [the spec at github](https://github.com/google/eddystone/
|
@@ -347,18 +599,35 @@ module Google
|
|
347
599
|
# @return [String]
|
348
600
|
attr_accessor :initial_eid
|
349
601
|
|
602
|
+
# The initial clock value of the beacon. The beacon's clock must have
|
603
|
+
# begun counting at this value immediately prior to transmitting this
|
604
|
+
# value to the resolving service. Significant delay in transmitting this
|
605
|
+
# value to the service risks registration or resolution failures. If a
|
606
|
+
# value is not provided, the default is zero.
|
607
|
+
# Corresponds to the JSON property `initialClockValue`
|
608
|
+
# @return [Fixnum]
|
609
|
+
attr_accessor :initial_clock_value
|
610
|
+
|
611
|
+
# The beacon's public key used for the Elliptic curve Diffie-Hellman
|
612
|
+
# key exchange. When this field is populated, `service_ecdh_public_key`
|
613
|
+
# must also be populated, and `beacon_identity_key` must not be.
|
614
|
+
# Corresponds to the JSON property `beaconEcdhPublicKey`
|
615
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
616
|
+
# @return [String]
|
617
|
+
attr_accessor :beacon_ecdh_public_key
|
618
|
+
|
350
619
|
def initialize(**args)
|
351
620
|
update!(**args)
|
352
621
|
end
|
353
622
|
|
354
623
|
# Update properties of this object
|
355
624
|
def update!(**args)
|
356
|
-
@initial_clock_value = args[:initial_clock_value] if args.key?(:initial_clock_value)
|
357
|
-
@beacon_ecdh_public_key = args[:beacon_ecdh_public_key] if args.key?(:beacon_ecdh_public_key)
|
358
625
|
@rotation_period_exponent = args[:rotation_period_exponent] if args.key?(:rotation_period_exponent)
|
359
626
|
@service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key)
|
360
627
|
@beacon_identity_key = args[:beacon_identity_key] if args.key?(:beacon_identity_key)
|
361
628
|
@initial_eid = args[:initial_eid] if args.key?(:initial_eid)
|
629
|
+
@initial_clock_value = args[:initial_clock_value] if args.key?(:initial_clock_value)
|
630
|
+
@beacon_ecdh_public_key = args[:beacon_ecdh_public_key] if args.key?(:beacon_ecdh_public_key)
|
362
631
|
end
|
363
632
|
end
|
364
633
|
|
@@ -423,221 +692,12 @@ module Google
|
|
423
692
|
|
424
693
|
# Response to `ListBeaconAttachments` that contains the requested attachments.
|
425
694
|
class ListBeaconAttachmentsResponse
|
426
|
-
include Google::Apis::Core::Hashable
|
427
|
-
|
428
|
-
# The attachments that corresponded to the request params.
|
429
|
-
# Corresponds to the JSON property `attachments`
|
430
|
-
# @return [Array<Google::Apis::ProximitybeaconV1beta1::BeaconAttachment>]
|
431
|
-
attr_accessor :attachments
|
432
|
-
|
433
|
-
def initialize(**args)
|
434
|
-
update!(**args)
|
435
|
-
end
|
436
|
-
|
437
|
-
# Update properties of this object
|
438
|
-
def update!(**args)
|
439
|
-
@attachments = args[:attachments] if args.key?(:attachments)
|
440
|
-
end
|
441
|
-
end
|
442
|
-
|
443
|
-
# An attachment namespace defines read and write access for all the attachments
|
444
|
-
# created under it. Each namespace is globally unique, and owned by one
|
445
|
-
# project which is the only project that can create attachments under it.
|
446
|
-
class Namespace
|
447
|
-
include Google::Apis::Core::Hashable
|
448
|
-
|
449
|
-
# Specifies what clients may receive attachments under this namespace
|
450
|
-
# via `beaconinfo.getforobserved`.
|
451
|
-
# Corresponds to the JSON property `servingVisibility`
|
452
|
-
# @return [String]
|
453
|
-
attr_accessor :serving_visibility
|
454
|
-
|
455
|
-
# Resource name of this namespace. Namespaces names have the format:
|
456
|
-
# <code>namespaces/<var>namespace</var></code>.
|
457
|
-
# Corresponds to the JSON property `namespaceName`
|
458
|
-
# @return [String]
|
459
|
-
attr_accessor :namespace_name
|
460
|
-
|
461
|
-
def initialize(**args)
|
462
|
-
update!(**args)
|
463
|
-
end
|
464
|
-
|
465
|
-
# Update properties of this object
|
466
|
-
def update!(**args)
|
467
|
-
@serving_visibility = args[:serving_visibility] if args.key?(:serving_visibility)
|
468
|
-
@namespace_name = args[:namespace_name] if args.key?(:namespace_name)
|
469
|
-
end
|
470
|
-
end
|
471
|
-
|
472
|
-
# A subset of beacon information served via the `beaconinfo.getforobserved`
|
473
|
-
# method, which you call when users of your app encounter your beacons.
|
474
|
-
class BeaconInfo
|
475
|
-
include Google::Apis::Core::Hashable
|
476
|
-
|
477
|
-
# The name under which the beacon is registered.
|
478
|
-
# Corresponds to the JSON property `beaconName`
|
479
|
-
# @return [String]
|
480
|
-
attr_accessor :beacon_name
|
481
|
-
|
482
|
-
# Defines a unique identifier of a beacon as broadcast by the device.
|
483
|
-
# Corresponds to the JSON property `advertisedId`
|
484
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
|
485
|
-
attr_accessor :advertised_id
|
486
|
-
|
487
|
-
# Attachments matching the type(s) requested.
|
488
|
-
# May be empty if no attachment types were requested.
|
489
|
-
# Corresponds to the JSON property `attachments`
|
490
|
-
# @return [Array<Google::Apis::ProximitybeaconV1beta1::AttachmentInfo>]
|
491
|
-
attr_accessor :attachments
|
492
|
-
|
493
|
-
def initialize(**args)
|
494
|
-
update!(**args)
|
495
|
-
end
|
496
|
-
|
497
|
-
# Update properties of this object
|
498
|
-
def update!(**args)
|
499
|
-
@beacon_name = args[:beacon_name] if args.key?(:beacon_name)
|
500
|
-
@advertised_id = args[:advertised_id] if args.key?(:advertised_id)
|
501
|
-
@attachments = args[:attachments] if args.key?(:attachments)
|
502
|
-
end
|
503
|
-
end
|
504
|
-
|
505
|
-
# A subset of attachment information served via the
|
506
|
-
# `beaconinfo.getforobserved` method, used when your users encounter your
|
507
|
-
# beacons.
|
508
|
-
class AttachmentInfo
|
509
|
-
include Google::Apis::Core::Hashable
|
510
|
-
|
511
|
-
# An opaque data container for client-provided data.
|
512
|
-
# Corresponds to the JSON property `data`
|
513
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
514
|
-
# @return [String]
|
515
|
-
attr_accessor :data
|
516
|
-
|
517
|
-
# Specifies what kind of attachment this is. Tells a client how to
|
518
|
-
# interpret the `data` field. Format is <var>namespace/type</var>, for
|
519
|
-
# example <code>scrupulous-wombat-12345/welcome-message</code>
|
520
|
-
# Corresponds to the JSON property `namespacedType`
|
521
|
-
# @return [String]
|
522
|
-
attr_accessor :namespaced_type
|
523
|
-
|
524
|
-
def initialize(**args)
|
525
|
-
update!(**args)
|
526
|
-
end
|
527
|
-
|
528
|
-
# Update properties of this object
|
529
|
-
def update!(**args)
|
530
|
-
@data = args[:data] if args.key?(:data)
|
531
|
-
@namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
|
532
|
-
end
|
533
|
-
end
|
534
|
-
|
535
|
-
# Response for a request to delete attachments.
|
536
|
-
class DeleteAttachmentsResponse
|
537
|
-
include Google::Apis::Core::Hashable
|
538
|
-
|
539
|
-
# The number of attachments that were deleted.
|
540
|
-
# Corresponds to the JSON property `numDeleted`
|
541
|
-
# @return [Fixnum]
|
542
|
-
attr_accessor :num_deleted
|
543
|
-
|
544
|
-
def initialize(**args)
|
545
|
-
update!(**args)
|
546
|
-
end
|
547
|
-
|
548
|
-
# Update properties of this object
|
549
|
-
def update!(**args)
|
550
|
-
@num_deleted = args[:num_deleted] if args.key?(:num_deleted)
|
551
|
-
end
|
552
|
-
end
|
553
|
-
|
554
|
-
# Information a client needs to provision and register beacons that
|
555
|
-
# broadcast Eddystone-EID format beacon IDs, using Elliptic curve
|
556
|
-
# Diffie-Hellman key exchange. See
|
557
|
-
# [the Eddystone specification](https://github.com/google/eddystone/tree/master/
|
558
|
-
# eddystone-eid) at GitHub.
|
559
|
-
class EphemeralIdRegistrationParams
|
560
|
-
include Google::Apis::Core::Hashable
|
561
|
-
|
562
|
-
# The beacon service's public key for use by a beacon to derive its
|
563
|
-
# Identity Key using Elliptic Curve Diffie-Hellman key exchange.
|
564
|
-
# Corresponds to the JSON property `serviceEcdhPublicKey`
|
565
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
566
|
-
# @return [String]
|
567
|
-
attr_accessor :service_ecdh_public_key
|
568
|
-
|
569
|
-
# Indicates the minimum rotation period supported by the service.
|
570
|
-
# See EddystoneEidRegistration.rotation_period_exponent
|
571
|
-
# Corresponds to the JSON property `minRotationPeriodExponent`
|
572
|
-
# @return [Fixnum]
|
573
|
-
attr_accessor :min_rotation_period_exponent
|
574
|
-
|
575
|
-
# Indicates the maximum rotation period supported by the service.
|
576
|
-
# See EddystoneEidRegistration.rotation_period_exponent
|
577
|
-
# Corresponds to the JSON property `maxRotationPeriodExponent`
|
578
|
-
# @return [Fixnum]
|
579
|
-
attr_accessor :max_rotation_period_exponent
|
580
|
-
|
581
|
-
def initialize(**args)
|
582
|
-
update!(**args)
|
583
|
-
end
|
584
|
-
|
585
|
-
# Update properties of this object
|
586
|
-
def update!(**args)
|
587
|
-
@service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key)
|
588
|
-
@min_rotation_period_exponent = args[:min_rotation_period_exponent] if args.key?(:min_rotation_period_exponent)
|
589
|
-
@max_rotation_period_exponent = args[:max_rotation_period_exponent] if args.key?(:max_rotation_period_exponent)
|
590
|
-
end
|
591
|
-
end
|
592
|
-
|
593
|
-
# Represents one beacon observed once.
|
594
|
-
class Observation
|
595
|
-
include Google::Apis::Core::Hashable
|
596
|
-
|
597
|
-
# Time when the beacon was observed.
|
598
|
-
# Corresponds to the JSON property `timestampMs`
|
599
|
-
# @return [String]
|
600
|
-
attr_accessor :timestamp_ms
|
601
|
-
|
602
|
-
# Defines a unique identifier of a beacon as broadcast by the device.
|
603
|
-
# Corresponds to the JSON property `advertisedId`
|
604
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
|
605
|
-
attr_accessor :advertised_id
|
606
|
-
|
607
|
-
# The array of telemetry bytes received from the beacon. The server is
|
608
|
-
# responsible for parsing it. This field may frequently be empty, as
|
609
|
-
# with a beacon that transmits telemetry only occasionally.
|
610
|
-
# Corresponds to the JSON property `telemetry`
|
611
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
612
|
-
# @return [String]
|
613
|
-
attr_accessor :telemetry
|
614
|
-
|
615
|
-
def initialize(**args)
|
616
|
-
update!(**args)
|
617
|
-
end
|
618
|
-
|
619
|
-
# Update properties of this object
|
620
|
-
def update!(**args)
|
621
|
-
@timestamp_ms = args[:timestamp_ms] if args.key?(:timestamp_ms)
|
622
|
-
@advertised_id = args[:advertised_id] if args.key?(:advertised_id)
|
623
|
-
@telemetry = args[:telemetry] if args.key?(:telemetry)
|
624
|
-
end
|
625
|
-
end
|
626
|
-
|
627
|
-
# Response that contains the requested diagnostics.
|
628
|
-
class ListDiagnosticsResponse
|
629
|
-
include Google::Apis::Core::Hashable
|
630
|
-
|
631
|
-
# The diagnostics matching the given request.
|
632
|
-
# Corresponds to the JSON property `diagnostics`
|
633
|
-
# @return [Array<Google::Apis::ProximitybeaconV1beta1::Diagnostics>]
|
634
|
-
attr_accessor :diagnostics
|
635
|
-
|
636
|
-
# Token that can be used for pagination. Returned only if the
|
637
|
-
# request matches more beacons than can be returned in this response.
|
638
|
-
# Corresponds to the JSON property `nextPageToken`
|
639
|
-
# @return [String]
|
640
|
-
attr_accessor :next_page_token
|
695
|
+
include Google::Apis::Core::Hashable
|
696
|
+
|
697
|
+
# The attachments that corresponded to the request params.
|
698
|
+
# Corresponds to the JSON property `attachments`
|
699
|
+
# @return [Array<Google::Apis::ProximitybeaconV1beta1::BeaconAttachment>]
|
700
|
+
attr_accessor :attachments
|
641
701
|
|
642
702
|
def initialize(**args)
|
643
703
|
update!(**args)
|
@@ -645,21 +705,27 @@ module Google
|
|
645
705
|
|
646
706
|
# Update properties of this object
|
647
707
|
def update!(**args)
|
648
|
-
@
|
649
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
708
|
+
@attachments = args[:attachments] if args.key?(:attachments)
|
650
709
|
end
|
651
710
|
end
|
652
711
|
|
653
|
-
#
|
654
|
-
#
|
655
|
-
|
712
|
+
# An attachment namespace defines read and write access for all the attachments
|
713
|
+
# created under it. Each namespace is globally unique, and owned by one
|
714
|
+
# project which is the only project that can create attachments under it.
|
715
|
+
class Namespace
|
656
716
|
include Google::Apis::Core::Hashable
|
657
717
|
|
658
|
-
#
|
659
|
-
#
|
660
|
-
# Corresponds to the JSON property `
|
661
|
-
# @return [
|
662
|
-
attr_accessor :
|
718
|
+
# Specifies what clients may receive attachments under this namespace
|
719
|
+
# via `beaconinfo.getforobserved`.
|
720
|
+
# Corresponds to the JSON property `servingVisibility`
|
721
|
+
# @return [String]
|
722
|
+
attr_accessor :serving_visibility
|
723
|
+
|
724
|
+
# Resource name of this namespace. Namespaces names have the format:
|
725
|
+
# <code>namespaces/<var>namespace</var></code>.
|
726
|
+
# Corresponds to the JSON property `namespaceName`
|
727
|
+
# @return [String]
|
728
|
+
attr_accessor :namespace_name
|
663
729
|
|
664
730
|
def initialize(**args)
|
665
731
|
update!(**args)
|
@@ -667,145 +733,61 @@ module Google
|
|
667
733
|
|
668
734
|
# Update properties of this object
|
669
735
|
def update!(**args)
|
670
|
-
@
|
736
|
+
@serving_visibility = args[:serving_visibility] if args.key?(:serving_visibility)
|
737
|
+
@namespace_name = args[:namespace_name] if args.key?(:namespace_name)
|
671
738
|
end
|
672
739
|
end
|
673
740
|
|
674
|
-
#
|
675
|
-
|
741
|
+
# A subset of attachment information served via the
|
742
|
+
# `beaconinfo.getforobserved` method, used when your users encounter your
|
743
|
+
# beacons.
|
744
|
+
class AttachmentInfo
|
676
745
|
include Google::Apis::Core::Hashable
|
677
746
|
|
678
|
-
#
|
679
|
-
#
|
680
|
-
#
|
681
|
-
#
|
682
|
-
# standard</a>. Values must be within normalized ranges.
|
683
|
-
# Example of normalization code in Python:
|
684
|
-
# def NormalizeLongitude(longitude):
|
685
|
-
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
|
686
|
-
# q, r = divmod(longitude, 360.0)
|
687
|
-
# if r > 180.0 or (r == 180.0 and q <= -1.0):
|
688
|
-
# return r - 360.0
|
689
|
-
# return r
|
690
|
-
# def NormalizeLatLng(latitude, longitude):
|
691
|
-
# """Wraps decimal degrees latitude and longitude to
|
692
|
-
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
|
693
|
-
# r = latitude % 360.0
|
694
|
-
# if r <= 90.0:
|
695
|
-
# return r, NormalizeLongitude(longitude)
|
696
|
-
# elif r >= 270.0:
|
697
|
-
# return r - 360, NormalizeLongitude(longitude)
|
698
|
-
# else:
|
699
|
-
# return 180 - r, NormalizeLongitude(longitude + 180.0)
|
700
|
-
# assert 180.0 == NormalizeLongitude(180.0)
|
701
|
-
# assert -180.0 == NormalizeLongitude(-180.0)
|
702
|
-
# assert -179.0 == NormalizeLongitude(181.0)
|
703
|
-
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
|
704
|
-
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
|
705
|
-
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
|
706
|
-
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
|
707
|
-
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
|
708
|
-
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
|
709
|
-
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
|
710
|
-
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
|
711
|
-
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
|
712
|
-
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
713
|
-
# Corresponds to the JSON property `latLng`
|
714
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::LatLng]
|
715
|
-
attr_accessor :lat_lng
|
716
|
-
|
717
|
-
# The [Google Places API](/places/place-id) Place ID of the place where
|
718
|
-
# the beacon is deployed. This is given when the beacon is registered or
|
719
|
-
# updated, not automatically detected in any way.
|
720
|
-
# Optional.
|
721
|
-
# Corresponds to the JSON property `placeId`
|
747
|
+
# Specifies what kind of attachment this is. Tells a client how to
|
748
|
+
# interpret the `data` field. Format is <var>namespace/type</var>, for
|
749
|
+
# example <code>scrupulous-wombat-12345/welcome-message</code>
|
750
|
+
# Corresponds to the JSON property `namespacedType`
|
722
751
|
# @return [String]
|
723
|
-
attr_accessor :
|
752
|
+
attr_accessor :namespaced_type
|
724
753
|
|
725
|
-
#
|
726
|
-
#
|
727
|
-
#
|
728
|
-
# Corresponds to the JSON property `description`
|
754
|
+
# An opaque data container for client-provided data.
|
755
|
+
# Corresponds to the JSON property `data`
|
756
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
729
757
|
# @return [String]
|
730
|
-
attr_accessor :
|
758
|
+
attr_accessor :data
|
731
759
|
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
# Corresponds to the JSON property `properties`
|
736
|
-
# @return [Hash<String,String>]
|
737
|
-
attr_accessor :properties
|
760
|
+
def initialize(**args)
|
761
|
+
update!(**args)
|
762
|
+
end
|
738
763
|
|
739
|
-
#
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
764
|
+
# Update properties of this object
|
765
|
+
def update!(**args)
|
766
|
+
@namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
|
767
|
+
@data = args[:data] if args.key?(:data)
|
768
|
+
end
|
769
|
+
end
|
744
770
|
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
attr_accessor :status
|
771
|
+
# A subset of beacon information served via the `beaconinfo.getforobserved`
|
772
|
+
# method, which you call when users of your app encounter your beacons.
|
773
|
+
class BeaconInfo
|
774
|
+
include Google::Apis::Core::Hashable
|
750
775
|
|
751
|
-
#
|
752
|
-
# "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
|
753
|
-
# the beacon and N is a code for the beacon's type. Possible values are
|
754
|
-
# `3` for Eddystone, `1` for iBeacon, or `5` for AltBeacon.
|
755
|
-
# This field must be left empty when registering. After reading a beacon,
|
756
|
-
# clients can use the name for future operations.
|
776
|
+
# The name under which the beacon is registered.
|
757
777
|
# Corresponds to the JSON property `beaconName`
|
758
778
|
# @return [String]
|
759
779
|
attr_accessor :beacon_name
|
760
780
|
|
761
|
-
# Expected location stability. This is set when the beacon is registered or
|
762
|
-
# updated, not automatically detected in any way.
|
763
|
-
# Optional.
|
764
|
-
# Corresponds to the JSON property `expectedStability`
|
765
|
-
# @return [String]
|
766
|
-
attr_accessor :expected_stability
|
767
|
-
|
768
781
|
# Defines a unique identifier of a beacon as broadcast by the device.
|
769
782
|
# Corresponds to the JSON property `advertisedId`
|
770
783
|
# @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
|
771
784
|
attr_accessor :advertised_id
|
772
785
|
|
773
|
-
#
|
774
|
-
#
|
775
|
-
#
|
776
|
-
#
|
777
|
-
|
778
|
-
# user is authorized to write the beacon's confidential data in the service,
|
779
|
-
# the service considers them authorized to configure the beacon. Note
|
780
|
-
# that this key grants nothing on the service, only on the beacon itself.
|
781
|
-
# Corresponds to the JSON property `provisioningKey`
|
782
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
783
|
-
# @return [String]
|
784
|
-
attr_accessor :provisioning_key
|
785
|
-
|
786
|
-
# Write-only registration parameters for beacons using Eddystone-EID format.
|
787
|
-
# Two ways of securely registering an Eddystone-EID beacon with the service
|
788
|
-
# are supported:
|
789
|
-
# 1. Perform an ECDH key exchange via this API, including a previous call
|
790
|
-
# to `GET /v1beta1/eidparams`. In this case the fields
|
791
|
-
# `beacon_ecdh_public_key` and `service_ecdh_public_key` should be
|
792
|
-
# populated and `beacon_identity_key` should not be populated. This
|
793
|
-
# method ensures that only the two parties in the ECDH key exchange can
|
794
|
-
# compute the identity key, which becomes a secret between them.
|
795
|
-
# 2. Derive or obtain the beacon's identity key via other secure means
|
796
|
-
# (perhaps an ECDH key exchange between the beacon and a mobile device
|
797
|
-
# or any other secure method), and then submit the resulting identity key
|
798
|
-
# to the service. In this case `beacon_identity_key` field should be
|
799
|
-
# populated, and neither of `beacon_ecdh_public_key` nor
|
800
|
-
# `service_ecdh_public_key` fields should be. The security of this method
|
801
|
-
# depends on how securely the parties involved (in particular the
|
802
|
-
# bluetooth client) handle the identity key, and obviously on how
|
803
|
-
# securely the identity key was generated.
|
804
|
-
# See [the Eddystone specification](https://github.com/google/eddystone/tree/
|
805
|
-
# master/eddystone-eid) at GitHub.
|
806
|
-
# Corresponds to the JSON property `ephemeralIdRegistration`
|
807
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration]
|
808
|
-
attr_accessor :ephemeral_id_registration
|
786
|
+
# Attachments matching the type(s) requested.
|
787
|
+
# May be empty if no attachment types were requested.
|
788
|
+
# Corresponds to the JSON property `attachments`
|
789
|
+
# @return [Array<Google::Apis::ProximitybeaconV1beta1::AttachmentInfo>]
|
790
|
+
attr_accessor :attachments
|
809
791
|
|
810
792
|
def initialize(**args)
|
811
793
|
update!(**args)
|
@@ -813,40 +795,57 @@ module Google
|
|
813
795
|
|
814
796
|
# Update properties of this object
|
815
797
|
def update!(**args)
|
816
|
-
@lat_lng = args[:lat_lng] if args.key?(:lat_lng)
|
817
|
-
@place_id = args[:place_id] if args.key?(:place_id)
|
818
|
-
@description = args[:description] if args.key?(:description)
|
819
|
-
@properties = args[:properties] if args.key?(:properties)
|
820
|
-
@indoor_level = args[:indoor_level] if args.key?(:indoor_level)
|
821
|
-
@status = args[:status] if args.key?(:status)
|
822
798
|
@beacon_name = args[:beacon_name] if args.key?(:beacon_name)
|
823
|
-
@expected_stability = args[:expected_stability] if args.key?(:expected_stability)
|
824
799
|
@advertised_id = args[:advertised_id] if args.key?(:advertised_id)
|
825
|
-
@
|
826
|
-
@ephemeral_id_registration = args[:ephemeral_id_registration] if args.key?(:ephemeral_id_registration)
|
800
|
+
@attachments = args[:attachments] if args.key?(:attachments)
|
827
801
|
end
|
828
802
|
end
|
829
803
|
|
830
|
-
#
|
831
|
-
class
|
804
|
+
# Response for a request to delete attachments.
|
805
|
+
class DeleteAttachmentsResponse
|
832
806
|
include Google::Apis::Core::Hashable
|
833
807
|
|
834
|
-
# The
|
835
|
-
#
|
836
|
-
#
|
837
|
-
|
838
|
-
# hex) representation thereof.
|
839
|
-
# Required.
|
840
|
-
# Corresponds to the JSON property `id`
|
841
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
842
|
-
# @return [String]
|
843
|
-
attr_accessor :id
|
808
|
+
# The number of attachments that were deleted.
|
809
|
+
# Corresponds to the JSON property `numDeleted`
|
810
|
+
# @return [Fixnum]
|
811
|
+
attr_accessor :num_deleted
|
844
812
|
|
845
|
-
|
846
|
-
|
847
|
-
|
813
|
+
def initialize(**args)
|
814
|
+
update!(**args)
|
815
|
+
end
|
816
|
+
|
817
|
+
# Update properties of this object
|
818
|
+
def update!(**args)
|
819
|
+
@num_deleted = args[:num_deleted] if args.key?(:num_deleted)
|
820
|
+
end
|
821
|
+
end
|
822
|
+
|
823
|
+
# Information a client needs to provision and register beacons that
|
824
|
+
# broadcast Eddystone-EID format beacon IDs, using Elliptic curve
|
825
|
+
# Diffie-Hellman key exchange. See
|
826
|
+
# [the Eddystone specification](https://github.com/google/eddystone/tree/master/
|
827
|
+
# eddystone-eid) at GitHub.
|
828
|
+
class EphemeralIdRegistrationParams
|
829
|
+
include Google::Apis::Core::Hashable
|
830
|
+
|
831
|
+
# Indicates the minimum rotation period supported by the service.
|
832
|
+
# See EddystoneEidRegistration.rotation_period_exponent
|
833
|
+
# Corresponds to the JSON property `minRotationPeriodExponent`
|
834
|
+
# @return [Fixnum]
|
835
|
+
attr_accessor :min_rotation_period_exponent
|
836
|
+
|
837
|
+
# Indicates the maximum rotation period supported by the service.
|
838
|
+
# See EddystoneEidRegistration.rotation_period_exponent
|
839
|
+
# Corresponds to the JSON property `maxRotationPeriodExponent`
|
840
|
+
# @return [Fixnum]
|
841
|
+
attr_accessor :max_rotation_period_exponent
|
842
|
+
|
843
|
+
# The beacon service's public key for use by a beacon to derive its
|
844
|
+
# Identity Key using Elliptic Curve Diffie-Hellman key exchange.
|
845
|
+
# Corresponds to the JSON property `serviceEcdhPublicKey`
|
846
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
848
847
|
# @return [String]
|
849
|
-
attr_accessor :
|
848
|
+
attr_accessor :service_ecdh_public_key
|
850
849
|
|
851
850
|
def initialize(**args)
|
852
851
|
update!(**args)
|
@@ -854,8 +853,9 @@ module Google
|
|
854
853
|
|
855
854
|
# Update properties of this object
|
856
855
|
def update!(**args)
|
857
|
-
@
|
858
|
-
@
|
856
|
+
@min_rotation_period_exponent = args[:min_rotation_period_exponent] if args.key?(:min_rotation_period_exponent)
|
857
|
+
@max_rotation_period_exponent = args[:max_rotation_period_exponent] if args.key?(:max_rotation_period_exponent)
|
858
|
+
@service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key)
|
859
859
|
end
|
860
860
|
end
|
861
861
|
end
|