google-api-client 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
- data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
- data/generated/google/apis/admin_directory_v1/service.rb +4 -1
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
- data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
- data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +747 -747
- data/generated/google/apis/appengine_v1/representations.rb +158 -158
- data/generated/google/apis/appengine_v1/service.rb +214 -214
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- 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 +6 -0
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +517 -515
- data/generated/google/apis/classroom_v1/representations.rb +147 -147
- data/generated/google/apis/classroom_v1/service.rb +1144 -1143
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
- data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
- data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
- data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
- data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
- data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
- data/generated/google/apis/cloudkms_v1/service.rb +276 -276
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
- data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
- data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +82 -6
- data/generated/google/apis/compute_beta/representations.rb +4 -0
- data/generated/google/apis/compute_beta/service.rb +1177 -834
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +371 -1
- data/generated/google/apis/compute_v1/representations.rb +139 -0
- data/generated/google/apis/compute_v1/service.rb +257 -9
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1122 -826
- data/generated/google/apis/container_v1/representations.rb +279 -135
- data/generated/google/apis/container_v1/service.rb +440 -98
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +3 -1
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +4 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
- data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
- data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +450 -431
- data/generated/google/apis/dataproc_v1/representations.rb +92 -92
- data/generated/google/apis/dataproc_v1/service.rb +200 -200
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +397 -397
- data/generated/google/apis/datastore_v1/representations.rb +100 -100
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.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 +87 -87
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
- data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
- data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
- data/generated/google/apis/firebaserules_v1/service.rb +151 -151
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +9 -9
- data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
- data/generated/google/apis/genomics_v1/representations.rb +306 -306
- data/generated/google/apis/genomics_v1/service.rb +1172 -1172
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +243 -243
- data/generated/google/apis/iam_v1/representations.rb +79 -79
- data/generated/google/apis/iam_v1/service.rb +137 -137
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +451 -451
- data/generated/google/apis/language_v1/representations.rb +103 -103
- data/generated/google/apis/language_v1/service.rb +49 -49
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +459 -459
- data/generated/google/apis/language_v1beta1/representations.rb +110 -110
- data/generated/google/apis/language_v1beta1/service.rb +43 -43
- data/generated/google/apis/logging_v2.rb +8 -8
- data/generated/google/apis/logging_v2/classes.rb +915 -915
- data/generated/google/apis/logging_v2/representations.rb +142 -142
- data/generated/google/apis/logging_v2/service.rb +415 -415
- data/generated/google/apis/logging_v2beta1.rb +8 -8
- data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
- data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
- data/generated/google/apis/logging_v2beta1/service.rb +221 -221
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
- data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
- data/generated/google/apis/manufacturers_v1/service.rb +101 -4
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +709 -673
- data/generated/google/apis/ml_v1/representations.rb +154 -151
- data/generated/google/apis/ml_v1/service.rb +341 -354
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +869 -869
- data/generated/google/apis/monitoring_v3/representations.rb +171 -171
- data/generated/google/apis/monitoring_v3/service.rb +340 -340
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1569 -1569
- data/generated/google/apis/partners_v2/representations.rb +256 -256
- data/generated/google/apis/partners_v2/service.rb +530 -530
- data/generated/google/apis/people_v1.rb +7 -7
- data/generated/google/apis/people_v1/classes.rb +1287 -946
- data/generated/google/apis/people_v1/representations.rb +355 -203
- data/generated/google/apis/people_v1/service.rb +409 -32
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +286 -287
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +178 -178
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
- data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/script_v1.rb +4 -4
- data/generated/google/apis/script_v1/classes.rb +172 -172
- data/generated/google/apis/script_v1/representations.rb +41 -41
- data/generated/google/apis/script_v1/service.rb +6 -6
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
- data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
- data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
- data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
- data/generated/google/apis/servicemanagement_v1.rb +6 -6
- data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
- data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
- data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
- data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
- data/generated/google/apis/serviceuser_v1/service.rb +59 -59
- data/generated/google/apis/sheets_v4.rb +5 -5
- data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
- data/generated/google/apis/sheets_v4/representations.rb +957 -940
- data/generated/google/apis/sheets_v4/service.rb +175 -175
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2932 -2905
- data/generated/google/apis/slides_v1/representations.rb +709 -694
- data/generated/google/apis/slides_v1/service.rb +50 -50
- data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
- data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
- data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
- data/generated/google/apis/spanner_v1.rb +7 -1
- data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
- data/generated/google/apis/spanner_v1/representations.rb +342 -323
- data/generated/google/apis/spanner_v1/service.rb +502 -492
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
- data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
- data/generated/google/apis/speech_v1beta1/service.rb +91 -91
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
- data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
- data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
- data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
- data/generated/google/apis/translate_v2/classes.rb +107 -107
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +81 -81
- data/generated/google/apis/vision_v1.rb +4 -1
- data/generated/google/apis/vision_v1/classes.rb +527 -527
- data/generated/google/apis/vision_v1/representations.rb +115 -115
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
- data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
- data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/analytics.rb +2 -2
- 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 = '20170704'
|
|
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'
|
|
@@ -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 = '20170704'
|
|
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'
|
|
@@ -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 = '20170711'
|
|
29
29
|
|
|
30
30
|
# View and modify your beacons
|
|
31
31
|
AUTH_USERLOCATION_BEACON_REGISTRY = 'https://www.googleapis.com/auth/userlocation.beacon.registry'
|
|
@@ -22,334 +22,6 @@ 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
|
-
|
|
294
|
-
# Represents a whole calendar date, e.g. date of birth. The time of day and
|
|
295
|
-
# time zone are either specified elsewhere or are not significant. The date
|
|
296
|
-
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
|
|
297
|
-
# represent a year and month where the day is not significant, e.g. credit card
|
|
298
|
-
# expiration date. The year may be 0 to represent a month and day independent
|
|
299
|
-
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
|
|
300
|
-
# and `google.protobuf.Timestamp`.
|
|
301
|
-
class Date
|
|
302
|
-
include Google::Apis::Core::Hashable
|
|
303
|
-
|
|
304
|
-
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
|
|
305
|
-
# a year.
|
|
306
|
-
# Corresponds to the JSON property `year`
|
|
307
|
-
# @return [Fixnum]
|
|
308
|
-
attr_accessor :year
|
|
309
|
-
|
|
310
|
-
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
|
311
|
-
# if specifying a year/month where the day is not significant.
|
|
312
|
-
# Corresponds to the JSON property `day`
|
|
313
|
-
# @return [Fixnum]
|
|
314
|
-
attr_accessor :day
|
|
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
|
-
|
|
321
|
-
def initialize(**args)
|
|
322
|
-
update!(**args)
|
|
323
|
-
end
|
|
324
|
-
|
|
325
|
-
# Update properties of this object
|
|
326
|
-
def update!(**args)
|
|
327
|
-
@year = args[:year] if args.key?(:year)
|
|
328
|
-
@day = args[:day] if args.key?(:day)
|
|
329
|
-
@month = args[:month] if args.key?(:month)
|
|
330
|
-
end
|
|
331
|
-
end
|
|
332
|
-
|
|
333
|
-
# Indoor level, a human-readable string as returned by Google Maps APIs,
|
|
334
|
-
# useful to indicate which floor of a building a beacon is located on.
|
|
335
|
-
class IndoorLevel
|
|
336
|
-
include Google::Apis::Core::Hashable
|
|
337
|
-
|
|
338
|
-
# The name of this level.
|
|
339
|
-
# Corresponds to the JSON property `name`
|
|
340
|
-
# @return [String]
|
|
341
|
-
attr_accessor :name
|
|
342
|
-
|
|
343
|
-
def initialize(**args)
|
|
344
|
-
update!(**args)
|
|
345
|
-
end
|
|
346
|
-
|
|
347
|
-
# Update properties of this object
|
|
348
|
-
def update!(**args)
|
|
349
|
-
@name = args[:name] if args.key?(:name)
|
|
350
|
-
end
|
|
351
|
-
end
|
|
352
|
-
|
|
353
25
|
# Response to ListNamespacesRequest that contains all the project's namespaces.
|
|
354
26
|
class ListNamespacesResponse
|
|
355
27
|
include Google::Apis::Core::Hashable
|
|
@@ -373,17 +45,6 @@ module Google
|
|
|
373
45
|
class Diagnostics
|
|
374
46
|
include Google::Apis::Core::Hashable
|
|
375
47
|
|
|
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
48
|
# Represents a whole calendar date, e.g. date of birth. The time of day and
|
|
388
49
|
# time zone are either specified elsewhere or are not significant. The date
|
|
389
50
|
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
|
|
@@ -395,15 +56,26 @@ module Google
|
|
|
395
56
|
# @return [Google::Apis::ProximitybeaconV1beta1::Date]
|
|
396
57
|
attr_accessor :estimated_low_battery_date
|
|
397
58
|
|
|
59
|
+
# Resource name of the beacon. For Eddystone-EID beacons, this may
|
|
60
|
+
# be the beacon's current EID, or the beacon's "stable" Eddystone-UID.
|
|
61
|
+
# Corresponds to the JSON property `beaconName`
|
|
62
|
+
# @return [String]
|
|
63
|
+
attr_accessor :beacon_name
|
|
64
|
+
|
|
65
|
+
# An unordered list of Alerts that the beacon has.
|
|
66
|
+
# Corresponds to the JSON property `alerts`
|
|
67
|
+
# @return [Array<String>]
|
|
68
|
+
attr_accessor :alerts
|
|
69
|
+
|
|
398
70
|
def initialize(**args)
|
|
399
71
|
update!(**args)
|
|
400
72
|
end
|
|
401
73
|
|
|
402
74
|
# Update properties of this object
|
|
403
75
|
def update!(**args)
|
|
76
|
+
@estimated_low_battery_date = args[:estimated_low_battery_date] if args.key?(:estimated_low_battery_date)
|
|
404
77
|
@beacon_name = args[:beacon_name] if args.key?(:beacon_name)
|
|
405
78
|
@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
79
|
end
|
|
408
80
|
end
|
|
409
81
|
|
|
@@ -417,38 +89,16 @@ module Google
|
|
|
417
89
|
# @return [String]
|
|
418
90
|
attr_accessor :next_page_token
|
|
419
91
|
|
|
420
|
-
# The beacons that matched the search criteria.
|
|
421
|
-
# Corresponds to the JSON property `beacons`
|
|
422
|
-
# @return [Array<Google::Apis::ProximitybeaconV1beta1::Beacon>]
|
|
423
|
-
attr_accessor :beacons
|
|
424
|
-
|
|
425
92
|
# Estimate of the total number of beacons matched by the query. Higher
|
|
426
93
|
# values may be less accurate.
|
|
427
94
|
# Corresponds to the JSON property `totalCount`
|
|
428
95
|
# @return [Fixnum]
|
|
429
96
|
attr_accessor :total_count
|
|
430
97
|
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
# Update properties of this object
|
|
436
|
-
def update!(**args)
|
|
437
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
438
|
-
@beacons = args[:beacons] if args.key?(:beacons)
|
|
439
|
-
@total_count = args[:total_count] if args.key?(:total_count)
|
|
440
|
-
end
|
|
441
|
-
end
|
|
442
|
-
|
|
443
|
-
# A generic empty message that you can re-use to avoid defining duplicated
|
|
444
|
-
# empty messages in your APIs. A typical example is to use it as the request
|
|
445
|
-
# or the response type of an API method. For instance:
|
|
446
|
-
# service Foo `
|
|
447
|
-
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
448
|
-
# `
|
|
449
|
-
# The JSON representation for `Empty` is empty JSON object ````.
|
|
450
|
-
class Empty
|
|
451
|
-
include Google::Apis::Core::Hashable
|
|
98
|
+
# The beacons that matched the search criteria.
|
|
99
|
+
# Corresponds to the JSON property `beacons`
|
|
100
|
+
# @return [Array<Google::Apis::ProximitybeaconV1beta1::Beacon>]
|
|
101
|
+
attr_accessor :beacons
|
|
452
102
|
|
|
453
103
|
def initialize(**args)
|
|
454
104
|
update!(**args)
|
|
@@ -456,6 +106,9 @@ module Google
|
|
|
456
106
|
|
|
457
107
|
# Update properties of this object
|
|
458
108
|
def update!(**args)
|
|
109
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
110
|
+
@total_count = args[:total_count] if args.key?(:total_count)
|
|
111
|
+
@beacons = args[:beacons] if args.key?(:beacons)
|
|
459
112
|
end
|
|
460
113
|
end
|
|
461
114
|
|
|
@@ -491,6 +144,25 @@ module Google
|
|
|
491
144
|
end
|
|
492
145
|
end
|
|
493
146
|
|
|
147
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
|
148
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
|
149
|
+
# or the response type of an API method. For instance:
|
|
150
|
+
# service Foo `
|
|
151
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
152
|
+
# `
|
|
153
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
|
154
|
+
class Empty
|
|
155
|
+
include Google::Apis::Core::Hashable
|
|
156
|
+
|
|
157
|
+
def initialize(**args)
|
|
158
|
+
update!(**args)
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Update properties of this object
|
|
162
|
+
def update!(**args)
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
|
|
494
166
|
# Project-specific data associated with a beacon.
|
|
495
167
|
class BeaconAttachment
|
|
496
168
|
include Google::Apis::Core::Hashable
|
|
@@ -562,6 +234,23 @@ module Google
|
|
|
562
234
|
class EphemeralIdRegistration
|
|
563
235
|
include Google::Apis::Core::Hashable
|
|
564
236
|
|
|
237
|
+
# The initial clock value of the beacon. The beacon's clock must have
|
|
238
|
+
# begun counting at this value immediately prior to transmitting this
|
|
239
|
+
# value to the resolving service. Significant delay in transmitting this
|
|
240
|
+
# value to the service risks registration or resolution failures. If a
|
|
241
|
+
# value is not provided, the default is zero.
|
|
242
|
+
# Corresponds to the JSON property `initialClockValue`
|
|
243
|
+
# @return [Fixnum]
|
|
244
|
+
attr_accessor :initial_clock_value
|
|
245
|
+
|
|
246
|
+
# The beacon's public key used for the Elliptic curve Diffie-Hellman
|
|
247
|
+
# key exchange. When this field is populated, `service_ecdh_public_key`
|
|
248
|
+
# must also be populated, and `beacon_identity_key` must not be.
|
|
249
|
+
# Corresponds to the JSON property `beaconEcdhPublicKey`
|
|
250
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
251
|
+
# @return [String]
|
|
252
|
+
attr_accessor :beacon_ecdh_public_key
|
|
253
|
+
|
|
565
254
|
# Indicates the nominal period between each rotation of the beacon's
|
|
566
255
|
# ephemeral ID. "Nominal" because the beacon should randomize the
|
|
567
256
|
# actual interval. See [the spec at github](https://github.com/google/eddystone/
|
|
@@ -599,35 +288,18 @@ module Google
|
|
|
599
288
|
# @return [String]
|
|
600
289
|
attr_accessor :initial_eid
|
|
601
290
|
|
|
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
|
-
|
|
619
291
|
def initialize(**args)
|
|
620
292
|
update!(**args)
|
|
621
293
|
end
|
|
622
294
|
|
|
623
295
|
# Update properties of this object
|
|
624
296
|
def update!(**args)
|
|
297
|
+
@initial_clock_value = args[:initial_clock_value] if args.key?(:initial_clock_value)
|
|
298
|
+
@beacon_ecdh_public_key = args[:beacon_ecdh_public_key] if args.key?(:beacon_ecdh_public_key)
|
|
625
299
|
@rotation_period_exponent = args[:rotation_period_exponent] if args.key?(:rotation_period_exponent)
|
|
626
300
|
@service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key)
|
|
627
301
|
@beacon_identity_key = args[:beacon_identity_key] if args.key?(:beacon_identity_key)
|
|
628
302
|
@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)
|
|
631
303
|
end
|
|
632
304
|
end
|
|
633
305
|
|
|
@@ -715,26 +387,26 @@ module Google
|
|
|
715
387
|
class Namespace
|
|
716
388
|
include Google::Apis::Core::Hashable
|
|
717
389
|
|
|
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
390
|
# Resource name of this namespace. Namespaces names have the format:
|
|
725
391
|
# <code>namespaces/<var>namespace</var></code>.
|
|
726
392
|
# Corresponds to the JSON property `namespaceName`
|
|
727
393
|
# @return [String]
|
|
728
394
|
attr_accessor :namespace_name
|
|
729
395
|
|
|
396
|
+
# Specifies what clients may receive attachments under this namespace
|
|
397
|
+
# via `beaconinfo.getforobserved`.
|
|
398
|
+
# Corresponds to the JSON property `servingVisibility`
|
|
399
|
+
# @return [String]
|
|
400
|
+
attr_accessor :serving_visibility
|
|
401
|
+
|
|
730
402
|
def initialize(**args)
|
|
731
403
|
update!(**args)
|
|
732
404
|
end
|
|
733
405
|
|
|
734
406
|
# Update properties of this object
|
|
735
407
|
def update!(**args)
|
|
736
|
-
@serving_visibility = args[:serving_visibility] if args.key?(:serving_visibility)
|
|
737
408
|
@namespace_name = args[:namespace_name] if args.key?(:namespace_name)
|
|
409
|
+
@serving_visibility = args[:serving_visibility] if args.key?(:serving_visibility)
|
|
738
410
|
end
|
|
739
411
|
end
|
|
740
412
|
|
|
@@ -744,18 +416,191 @@ module Google
|
|
|
744
416
|
class AttachmentInfo
|
|
745
417
|
include Google::Apis::Core::Hashable
|
|
746
418
|
|
|
747
|
-
#
|
|
748
|
-
#
|
|
749
|
-
#
|
|
750
|
-
#
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
#
|
|
755
|
-
#
|
|
756
|
-
#
|
|
757
|
-
# @return [String]
|
|
758
|
-
attr_accessor :
|
|
419
|
+
# An opaque data container for client-provided data.
|
|
420
|
+
# Corresponds to the JSON property `data`
|
|
421
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
422
|
+
# @return [String]
|
|
423
|
+
attr_accessor :data
|
|
424
|
+
|
|
425
|
+
# Specifies what kind of attachment this is. Tells a client how to
|
|
426
|
+
# interpret the `data` field. Format is <var>namespace/type</var>, for
|
|
427
|
+
# example <code>scrupulous-wombat-12345/welcome-message</code>
|
|
428
|
+
# Corresponds to the JSON property `namespacedType`
|
|
429
|
+
# @return [String]
|
|
430
|
+
attr_accessor :namespaced_type
|
|
431
|
+
|
|
432
|
+
def initialize(**args)
|
|
433
|
+
update!(**args)
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
# Update properties of this object
|
|
437
|
+
def update!(**args)
|
|
438
|
+
@data = args[:data] if args.key?(:data)
|
|
439
|
+
@namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
|
|
440
|
+
end
|
|
441
|
+
end
|
|
442
|
+
|
|
443
|
+
# A subset of beacon information served via the `beaconinfo.getforobserved`
|
|
444
|
+
# method, which you call when users of your app encounter your beacons.
|
|
445
|
+
class BeaconInfo
|
|
446
|
+
include Google::Apis::Core::Hashable
|
|
447
|
+
|
|
448
|
+
# The name under which the beacon is registered.
|
|
449
|
+
# Corresponds to the JSON property `beaconName`
|
|
450
|
+
# @return [String]
|
|
451
|
+
attr_accessor :beacon_name
|
|
452
|
+
|
|
453
|
+
# Attachments matching the type(s) requested.
|
|
454
|
+
# May be empty if no attachment types were requested.
|
|
455
|
+
# Corresponds to the JSON property `attachments`
|
|
456
|
+
# @return [Array<Google::Apis::ProximitybeaconV1beta1::AttachmentInfo>]
|
|
457
|
+
attr_accessor :attachments
|
|
458
|
+
|
|
459
|
+
# Defines a unique identifier of a beacon as broadcast by the device.
|
|
460
|
+
# Corresponds to the JSON property `advertisedId`
|
|
461
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
|
|
462
|
+
attr_accessor :advertised_id
|
|
463
|
+
|
|
464
|
+
def initialize(**args)
|
|
465
|
+
update!(**args)
|
|
466
|
+
end
|
|
467
|
+
|
|
468
|
+
# Update properties of this object
|
|
469
|
+
def update!(**args)
|
|
470
|
+
@beacon_name = args[:beacon_name] if args.key?(:beacon_name)
|
|
471
|
+
@attachments = args[:attachments] if args.key?(:attachments)
|
|
472
|
+
@advertised_id = args[:advertised_id] if args.key?(:advertised_id)
|
|
473
|
+
end
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
# Information a client needs to provision and register beacons that
|
|
477
|
+
# broadcast Eddystone-EID format beacon IDs, using Elliptic curve
|
|
478
|
+
# Diffie-Hellman key exchange. See
|
|
479
|
+
# [the Eddystone specification](https://github.com/google/eddystone/tree/master/
|
|
480
|
+
# eddystone-eid) at GitHub.
|
|
481
|
+
class EphemeralIdRegistrationParams
|
|
482
|
+
include Google::Apis::Core::Hashable
|
|
483
|
+
|
|
484
|
+
# Indicates the maximum rotation period supported by the service.
|
|
485
|
+
# See EddystoneEidRegistration.rotation_period_exponent
|
|
486
|
+
# Corresponds to the JSON property `maxRotationPeriodExponent`
|
|
487
|
+
# @return [Fixnum]
|
|
488
|
+
attr_accessor :max_rotation_period_exponent
|
|
489
|
+
|
|
490
|
+
# Indicates the minimum rotation period supported by the service.
|
|
491
|
+
# See EddystoneEidRegistration.rotation_period_exponent
|
|
492
|
+
# Corresponds to the JSON property `minRotationPeriodExponent`
|
|
493
|
+
# @return [Fixnum]
|
|
494
|
+
attr_accessor :min_rotation_period_exponent
|
|
495
|
+
|
|
496
|
+
# The beacon service's public key for use by a beacon to derive its
|
|
497
|
+
# Identity Key using Elliptic Curve Diffie-Hellman key exchange.
|
|
498
|
+
# Corresponds to the JSON property `serviceEcdhPublicKey`
|
|
499
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
500
|
+
# @return [String]
|
|
501
|
+
attr_accessor :service_ecdh_public_key
|
|
502
|
+
|
|
503
|
+
def initialize(**args)
|
|
504
|
+
update!(**args)
|
|
505
|
+
end
|
|
506
|
+
|
|
507
|
+
# Update properties of this object
|
|
508
|
+
def update!(**args)
|
|
509
|
+
@max_rotation_period_exponent = args[:max_rotation_period_exponent] if args.key?(:max_rotation_period_exponent)
|
|
510
|
+
@min_rotation_period_exponent = args[:min_rotation_period_exponent] if args.key?(:min_rotation_period_exponent)
|
|
511
|
+
@service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key)
|
|
512
|
+
end
|
|
513
|
+
end
|
|
514
|
+
|
|
515
|
+
# Response for a request to delete attachments.
|
|
516
|
+
class DeleteAttachmentsResponse
|
|
517
|
+
include Google::Apis::Core::Hashable
|
|
518
|
+
|
|
519
|
+
# The number of attachments that were deleted.
|
|
520
|
+
# Corresponds to the JSON property `numDeleted`
|
|
521
|
+
# @return [Fixnum]
|
|
522
|
+
attr_accessor :num_deleted
|
|
523
|
+
|
|
524
|
+
def initialize(**args)
|
|
525
|
+
update!(**args)
|
|
526
|
+
end
|
|
527
|
+
|
|
528
|
+
# Update properties of this object
|
|
529
|
+
def update!(**args)
|
|
530
|
+
@num_deleted = args[:num_deleted] if args.key?(:num_deleted)
|
|
531
|
+
end
|
|
532
|
+
end
|
|
533
|
+
|
|
534
|
+
# Represents one beacon observed once.
|
|
535
|
+
class Observation
|
|
536
|
+
include Google::Apis::Core::Hashable
|
|
537
|
+
|
|
538
|
+
# Time when the beacon was observed.
|
|
539
|
+
# Corresponds to the JSON property `timestampMs`
|
|
540
|
+
# @return [String]
|
|
541
|
+
attr_accessor :timestamp_ms
|
|
542
|
+
|
|
543
|
+
# Defines a unique identifier of a beacon as broadcast by the device.
|
|
544
|
+
# Corresponds to the JSON property `advertisedId`
|
|
545
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
|
|
546
|
+
attr_accessor :advertised_id
|
|
547
|
+
|
|
548
|
+
# The array of telemetry bytes received from the beacon. The server is
|
|
549
|
+
# responsible for parsing it. This field may frequently be empty, as
|
|
550
|
+
# with a beacon that transmits telemetry only occasionally.
|
|
551
|
+
# Corresponds to the JSON property `telemetry`
|
|
552
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
553
|
+
# @return [String]
|
|
554
|
+
attr_accessor :telemetry
|
|
555
|
+
|
|
556
|
+
def initialize(**args)
|
|
557
|
+
update!(**args)
|
|
558
|
+
end
|
|
559
|
+
|
|
560
|
+
# Update properties of this object
|
|
561
|
+
def update!(**args)
|
|
562
|
+
@timestamp_ms = args[:timestamp_ms] if args.key?(:timestamp_ms)
|
|
563
|
+
@advertised_id = args[:advertised_id] if args.key?(:advertised_id)
|
|
564
|
+
@telemetry = args[:telemetry] if args.key?(:telemetry)
|
|
565
|
+
end
|
|
566
|
+
end
|
|
567
|
+
|
|
568
|
+
# Response that contains the requested diagnostics.
|
|
569
|
+
class ListDiagnosticsResponse
|
|
570
|
+
include Google::Apis::Core::Hashable
|
|
571
|
+
|
|
572
|
+
# The diagnostics matching the given request.
|
|
573
|
+
# Corresponds to the JSON property `diagnostics`
|
|
574
|
+
# @return [Array<Google::Apis::ProximitybeaconV1beta1::Diagnostics>]
|
|
575
|
+
attr_accessor :diagnostics
|
|
576
|
+
|
|
577
|
+
# Token that can be used for pagination. Returned only if the
|
|
578
|
+
# request matches more beacons than can be returned in this response.
|
|
579
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
580
|
+
# @return [String]
|
|
581
|
+
attr_accessor :next_page_token
|
|
582
|
+
|
|
583
|
+
def initialize(**args)
|
|
584
|
+
update!(**args)
|
|
585
|
+
end
|
|
586
|
+
|
|
587
|
+
# Update properties of this object
|
|
588
|
+
def update!(**args)
|
|
589
|
+
@diagnostics = args[:diagnostics] if args.key?(:diagnostics)
|
|
590
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
591
|
+
end
|
|
592
|
+
end
|
|
593
|
+
|
|
594
|
+
# Information about the requested beacons, optionally including attachment
|
|
595
|
+
# data.
|
|
596
|
+
class GetInfoForObservedBeaconsResponse
|
|
597
|
+
include Google::Apis::Core::Hashable
|
|
598
|
+
|
|
599
|
+
# Public information about beacons.
|
|
600
|
+
# May be empty if the request matched no beacons.
|
|
601
|
+
# Corresponds to the JSON property `beacons`
|
|
602
|
+
# @return [Array<Google::Apis::ProximitybeaconV1beta1::BeaconInfo>]
|
|
603
|
+
attr_accessor :beacons
|
|
759
604
|
|
|
760
605
|
def initialize(**args)
|
|
761
606
|
update!(**args)
|
|
@@ -763,31 +608,145 @@ module Google
|
|
|
763
608
|
|
|
764
609
|
# Update properties of this object
|
|
765
610
|
def update!(**args)
|
|
766
|
-
@
|
|
767
|
-
@data = args[:data] if args.key?(:data)
|
|
611
|
+
@beacons = args[:beacons] if args.key?(:beacons)
|
|
768
612
|
end
|
|
769
613
|
end
|
|
770
614
|
|
|
771
|
-
#
|
|
772
|
-
|
|
773
|
-
class BeaconInfo
|
|
615
|
+
# Details of a beacon device.
|
|
616
|
+
class Beacon
|
|
774
617
|
include Google::Apis::Core::Hashable
|
|
775
618
|
|
|
776
|
-
#
|
|
619
|
+
# Current status of the beacon.
|
|
620
|
+
# Required.
|
|
621
|
+
# Corresponds to the JSON property `status`
|
|
622
|
+
# @return [String]
|
|
623
|
+
attr_accessor :status
|
|
624
|
+
|
|
625
|
+
# Indoor level, a human-readable string as returned by Google Maps APIs,
|
|
626
|
+
# useful to indicate which floor of a building a beacon is located on.
|
|
627
|
+
# Corresponds to the JSON property `indoorLevel`
|
|
628
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::IndoorLevel]
|
|
629
|
+
attr_accessor :indoor_level
|
|
630
|
+
|
|
631
|
+
# Resource name of this beacon. A beacon name has the format
|
|
632
|
+
# "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
|
|
633
|
+
# the beacon and N is a code for the beacon's type. Possible values are
|
|
634
|
+
# `3` for Eddystone, `1` for iBeacon, or `5` for AltBeacon.
|
|
635
|
+
# This field must be left empty when registering. After reading a beacon,
|
|
636
|
+
# clients can use the name for future operations.
|
|
777
637
|
# Corresponds to the JSON property `beaconName`
|
|
778
638
|
# @return [String]
|
|
779
639
|
attr_accessor :beacon_name
|
|
780
640
|
|
|
641
|
+
# Expected location stability. This is set when the beacon is registered or
|
|
642
|
+
# updated, not automatically detected in any way.
|
|
643
|
+
# Optional.
|
|
644
|
+
# Corresponds to the JSON property `expectedStability`
|
|
645
|
+
# @return [String]
|
|
646
|
+
attr_accessor :expected_stability
|
|
647
|
+
|
|
781
648
|
# Defines a unique identifier of a beacon as broadcast by the device.
|
|
782
649
|
# Corresponds to the JSON property `advertisedId`
|
|
783
650
|
# @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
|
|
784
651
|
attr_accessor :advertised_id
|
|
785
652
|
|
|
786
|
-
#
|
|
787
|
-
#
|
|
788
|
-
#
|
|
789
|
-
#
|
|
790
|
-
|
|
653
|
+
# Some beacons may require a user to provide an authorization key before
|
|
654
|
+
# changing any of its configuration (e.g. broadcast frames, transmit power).
|
|
655
|
+
# This field provides a place to store and control access to that key.
|
|
656
|
+
# This field is populated in responses to `GET /v1beta1/beacons/3!beaconId`
|
|
657
|
+
# from users with write access to the given beacon. That is to say: If the
|
|
658
|
+
# user is authorized to write the beacon's confidential data in the service,
|
|
659
|
+
# the service considers them authorized to configure the beacon. Note
|
|
660
|
+
# that this key grants nothing on the service, only on the beacon itself.
|
|
661
|
+
# Corresponds to the JSON property `provisioningKey`
|
|
662
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
663
|
+
# @return [String]
|
|
664
|
+
attr_accessor :provisioning_key
|
|
665
|
+
|
|
666
|
+
# Write-only registration parameters for beacons using Eddystone-EID format.
|
|
667
|
+
# Two ways of securely registering an Eddystone-EID beacon with the service
|
|
668
|
+
# are supported:
|
|
669
|
+
# 1. Perform an ECDH key exchange via this API, including a previous call
|
|
670
|
+
# to `GET /v1beta1/eidparams`. In this case the fields
|
|
671
|
+
# `beacon_ecdh_public_key` and `service_ecdh_public_key` should be
|
|
672
|
+
# populated and `beacon_identity_key` should not be populated. This
|
|
673
|
+
# method ensures that only the two parties in the ECDH key exchange can
|
|
674
|
+
# compute the identity key, which becomes a secret between them.
|
|
675
|
+
# 2. Derive or obtain the beacon's identity key via other secure means
|
|
676
|
+
# (perhaps an ECDH key exchange between the beacon and a mobile device
|
|
677
|
+
# or any other secure method), and then submit the resulting identity key
|
|
678
|
+
# to the service. In this case `beacon_identity_key` field should be
|
|
679
|
+
# populated, and neither of `beacon_ecdh_public_key` nor
|
|
680
|
+
# `service_ecdh_public_key` fields should be. The security of this method
|
|
681
|
+
# depends on how securely the parties involved (in particular the
|
|
682
|
+
# bluetooth client) handle the identity key, and obviously on how
|
|
683
|
+
# securely the identity key was generated.
|
|
684
|
+
# See [the Eddystone specification](https://github.com/google/eddystone/tree/
|
|
685
|
+
# master/eddystone-eid) at GitHub.
|
|
686
|
+
# Corresponds to the JSON property `ephemeralIdRegistration`
|
|
687
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration]
|
|
688
|
+
attr_accessor :ephemeral_id_registration
|
|
689
|
+
|
|
690
|
+
# An object representing a latitude/longitude pair. This is expressed as a pair
|
|
691
|
+
# of doubles representing degrees latitude and degrees longitude. Unless
|
|
692
|
+
# specified otherwise, this must conform to the
|
|
693
|
+
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
|
694
|
+
# standard</a>. Values must be within normalized ranges.
|
|
695
|
+
# Example of normalization code in Python:
|
|
696
|
+
# def NormalizeLongitude(longitude):
|
|
697
|
+
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
|
|
698
|
+
# q, r = divmod(longitude, 360.0)
|
|
699
|
+
# if r > 180.0 or (r == 180.0 and q <= -1.0):
|
|
700
|
+
# return r - 360.0
|
|
701
|
+
# return r
|
|
702
|
+
# def NormalizeLatLng(latitude, longitude):
|
|
703
|
+
# """Wraps decimal degrees latitude and longitude to
|
|
704
|
+
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
|
|
705
|
+
# r = latitude % 360.0
|
|
706
|
+
# if r <= 90.0:
|
|
707
|
+
# return r, NormalizeLongitude(longitude)
|
|
708
|
+
# elif r >= 270.0:
|
|
709
|
+
# return r - 360, NormalizeLongitude(longitude)
|
|
710
|
+
# else:
|
|
711
|
+
# return 180 - r, NormalizeLongitude(longitude + 180.0)
|
|
712
|
+
# assert 180.0 == NormalizeLongitude(180.0)
|
|
713
|
+
# assert -180.0 == NormalizeLongitude(-180.0)
|
|
714
|
+
# assert -179.0 == NormalizeLongitude(181.0)
|
|
715
|
+
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
|
|
716
|
+
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
|
|
717
|
+
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
|
|
718
|
+
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
|
|
719
|
+
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
|
|
720
|
+
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
|
|
721
|
+
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
|
|
722
|
+
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
|
|
723
|
+
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
|
|
724
|
+
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
|
725
|
+
# Corresponds to the JSON property `latLng`
|
|
726
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::LatLng]
|
|
727
|
+
attr_accessor :lat_lng
|
|
728
|
+
|
|
729
|
+
# The [Google Places API](/places/place-id) Place ID of the place where
|
|
730
|
+
# the beacon is deployed. This is given when the beacon is registered or
|
|
731
|
+
# updated, not automatically detected in any way.
|
|
732
|
+
# Optional.
|
|
733
|
+
# Corresponds to the JSON property `placeId`
|
|
734
|
+
# @return [String]
|
|
735
|
+
attr_accessor :place_id
|
|
736
|
+
|
|
737
|
+
# Free text used to identify and describe the beacon. Maximum length 140
|
|
738
|
+
# characters.
|
|
739
|
+
# Optional.
|
|
740
|
+
# Corresponds to the JSON property `description`
|
|
741
|
+
# @return [String]
|
|
742
|
+
attr_accessor :description
|
|
743
|
+
|
|
744
|
+
# Properties of the beacon device, for example battery type or firmware
|
|
745
|
+
# version.
|
|
746
|
+
# Optional.
|
|
747
|
+
# Corresponds to the JSON property `properties`
|
|
748
|
+
# @return [Hash<String,String>]
|
|
749
|
+
attr_accessor :properties
|
|
791
750
|
|
|
792
751
|
def initialize(**args)
|
|
793
752
|
update!(**args)
|
|
@@ -795,20 +754,40 @@ module Google
|
|
|
795
754
|
|
|
796
755
|
# Update properties of this object
|
|
797
756
|
def update!(**args)
|
|
757
|
+
@status = args[:status] if args.key?(:status)
|
|
758
|
+
@indoor_level = args[:indoor_level] if args.key?(:indoor_level)
|
|
798
759
|
@beacon_name = args[:beacon_name] if args.key?(:beacon_name)
|
|
760
|
+
@expected_stability = args[:expected_stability] if args.key?(:expected_stability)
|
|
799
761
|
@advertised_id = args[:advertised_id] if args.key?(:advertised_id)
|
|
800
|
-
@
|
|
762
|
+
@provisioning_key = args[:provisioning_key] if args.key?(:provisioning_key)
|
|
763
|
+
@ephemeral_id_registration = args[:ephemeral_id_registration] if args.key?(:ephemeral_id_registration)
|
|
764
|
+
@lat_lng = args[:lat_lng] if args.key?(:lat_lng)
|
|
765
|
+
@place_id = args[:place_id] if args.key?(:place_id)
|
|
766
|
+
@description = args[:description] if args.key?(:description)
|
|
767
|
+
@properties = args[:properties] if args.key?(:properties)
|
|
801
768
|
end
|
|
802
769
|
end
|
|
803
770
|
|
|
804
|
-
#
|
|
805
|
-
class
|
|
771
|
+
# Defines a unique identifier of a beacon as broadcast by the device.
|
|
772
|
+
class AdvertisedId
|
|
806
773
|
include Google::Apis::Core::Hashable
|
|
807
774
|
|
|
808
|
-
# The
|
|
809
|
-
#
|
|
810
|
-
#
|
|
811
|
-
|
|
775
|
+
# The actual beacon identifier, as broadcast by the beacon hardware. Must be
|
|
776
|
+
# [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP
|
|
777
|
+
# requests, and will be so encoded (with padding) in responses. The base64
|
|
778
|
+
# encoding should be of the binary byte-stream and not any textual (such as
|
|
779
|
+
# hex) representation thereof.
|
|
780
|
+
# Required.
|
|
781
|
+
# Corresponds to the JSON property `id`
|
|
782
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
783
|
+
# @return [String]
|
|
784
|
+
attr_accessor :id
|
|
785
|
+
|
|
786
|
+
# Specifies the identifier type.
|
|
787
|
+
# Required.
|
|
788
|
+
# Corresponds to the JSON property `type`
|
|
789
|
+
# @return [String]
|
|
790
|
+
attr_accessor :type
|
|
812
791
|
|
|
813
792
|
def initialize(**args)
|
|
814
793
|
update!(**args)
|
|
@@ -816,36 +795,59 @@ module Google
|
|
|
816
795
|
|
|
817
796
|
# Update properties of this object
|
|
818
797
|
def update!(**args)
|
|
819
|
-
@
|
|
798
|
+
@id = args[:id] if args.key?(:id)
|
|
799
|
+
@type = args[:type] if args.key?(:type)
|
|
820
800
|
end
|
|
821
801
|
end
|
|
822
802
|
|
|
823
|
-
#
|
|
824
|
-
#
|
|
825
|
-
#
|
|
826
|
-
#
|
|
827
|
-
#
|
|
828
|
-
|
|
803
|
+
# Represents a whole calendar date, e.g. date of birth. The time of day and
|
|
804
|
+
# time zone are either specified elsewhere or are not significant. The date
|
|
805
|
+
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
|
|
806
|
+
# represent a year and month where the day is not significant, e.g. credit card
|
|
807
|
+
# expiration date. The year may be 0 to represent a month and day independent
|
|
808
|
+
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
|
|
809
|
+
# and `google.protobuf.Timestamp`.
|
|
810
|
+
class Date
|
|
829
811
|
include Google::Apis::Core::Hashable
|
|
830
812
|
|
|
831
|
-
#
|
|
832
|
-
#
|
|
833
|
-
# Corresponds to the JSON property `
|
|
813
|
+
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
|
814
|
+
# if specifying a year/month where the day is not significant.
|
|
815
|
+
# Corresponds to the JSON property `day`
|
|
834
816
|
# @return [Fixnum]
|
|
835
|
-
attr_accessor :
|
|
817
|
+
attr_accessor :day
|
|
836
818
|
|
|
837
|
-
#
|
|
838
|
-
#
|
|
839
|
-
# Corresponds to the JSON property `
|
|
819
|
+
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
|
|
820
|
+
# a year.
|
|
821
|
+
# Corresponds to the JSON property `year`
|
|
840
822
|
# @return [Fixnum]
|
|
841
|
-
attr_accessor :
|
|
823
|
+
attr_accessor :year
|
|
842
824
|
|
|
843
|
-
#
|
|
844
|
-
#
|
|
845
|
-
#
|
|
846
|
-
|
|
825
|
+
# Month of year. Must be from 1 to 12.
|
|
826
|
+
# Corresponds to the JSON property `month`
|
|
827
|
+
# @return [Fixnum]
|
|
828
|
+
attr_accessor :month
|
|
829
|
+
|
|
830
|
+
def initialize(**args)
|
|
831
|
+
update!(**args)
|
|
832
|
+
end
|
|
833
|
+
|
|
834
|
+
# Update properties of this object
|
|
835
|
+
def update!(**args)
|
|
836
|
+
@day = args[:day] if args.key?(:day)
|
|
837
|
+
@year = args[:year] if args.key?(:year)
|
|
838
|
+
@month = args[:month] if args.key?(:month)
|
|
839
|
+
end
|
|
840
|
+
end
|
|
841
|
+
|
|
842
|
+
# Indoor level, a human-readable string as returned by Google Maps APIs,
|
|
843
|
+
# useful to indicate which floor of a building a beacon is located on.
|
|
844
|
+
class IndoorLevel
|
|
845
|
+
include Google::Apis::Core::Hashable
|
|
846
|
+
|
|
847
|
+
# The name of this level.
|
|
848
|
+
# Corresponds to the JSON property `name`
|
|
847
849
|
# @return [String]
|
|
848
|
-
attr_accessor :
|
|
850
|
+
attr_accessor :name
|
|
849
851
|
|
|
850
852
|
def initialize(**args)
|
|
851
853
|
update!(**args)
|
|
@@ -853,9 +855,7 @@ module Google
|
|
|
853
855
|
|
|
854
856
|
# Update properties of this object
|
|
855
857
|
def update!(**args)
|
|
856
|
-
@
|
|
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)
|
|
858
|
+
@name = args[:name] if args.key?(:name)
|
|
859
859
|
end
|
|
860
860
|
end
|
|
861
861
|
end
|