google-api-client 0.11.2 → 0.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +6 -0
- data/api_names.yaml +1 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
- 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/classes.rb +926 -926
- data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
- data/generated/google/apis/appengine_v1/representations.rb +229 -229
- data/generated/google/apis/appengine_v1/service.rb +188 -188
- 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 +15 -10
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +10 -4
- data/generated/google/apis/classroom_v1.rb +26 -17
- data/generated/google/apis/classroom_v1/classes.rb +990 -990
- data/generated/google/apis/classroom_v1/representations.rb +239 -239
- data/generated/google/apis/classroom_v1/service.rb +853 -853
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
- data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
- data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
- data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
- data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
- data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
- data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
- data/generated/google/apis/cloudkms_v1/service.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
- data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
- data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +66 -25
- data/generated/google/apis/compute_beta/representations.rb +16 -0
- data/generated/google/apis/compute_beta/service.rb +85 -3
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +375 -24
- data/generated/google/apis/compute_v1/representations.rb +155 -0
- data/generated/google/apis/compute_v1/service.rb +481 -3
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +301 -301
- data/generated/google/apis/container_v1/representations.rb +59 -59
- data/generated/google/apis/container_v1/service.rb +178 -178
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +37 -2
- data/generated/google/apis/content_v2/representations.rb +15 -0
- data/generated/google/apis/content_v2/service.rb +58 -3
- data/generated/google/apis/dataflow_v1b3.rb +4 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
- data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
- data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +446 -446
- data/generated/google/apis/dataproc_v1/representations.rb +96 -96
- data/generated/google/apis/dataproc_v1/service.rb +302 -302
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +370 -374
- data/generated/google/apis/datastore_v1/representations.rb +120 -120
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- 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 +3 -0
- 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 +24 -21
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +24 -22
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
- data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
- data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
- data/generated/google/apis/firebaserules_v1/service.rb +68 -68
- 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 +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
- data/generated/google/apis/genomics_v1/representations.rb +430 -430
- data/generated/google/apis/genomics_v1/service.rb +1159 -1159
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/service.rb +2 -2
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +305 -298
- data/generated/google/apis/iam_v1/representations.rb +97 -96
- data/generated/google/apis/iam_v1/service.rb +86 -86
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +10 -10
- data/generated/google/apis/language_v1.rb +4 -4
- data/generated/google/apis/language_v1/classes.rb +452 -452
- data/generated/google/apis/language_v1/representations.rb +93 -93
- data/generated/google/apis/language_v1/service.rb +48 -48
- data/generated/google/apis/language_v1beta1.rb +4 -4
- data/generated/google/apis/language_v1beta1/classes.rb +84 -84
- data/generated/google/apis/language_v1beta1/representations.rb +22 -22
- data/generated/google/apis/language_v1beta1/service.rb +3 -3
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +884 -873
- data/generated/google/apis/logging_v2/representations.rb +167 -166
- data/generated/google/apis/logging_v2/service.rb +430 -430
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
- data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
- data/generated/google/apis/logging_v2beta1/service.rb +292 -292
- data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
- data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +501 -494
- data/generated/google/apis/ml_v1/representations.rb +92 -91
- data/generated/google/apis/ml_v1/service.rb +190 -190
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +878 -878
- data/generated/google/apis/monitoring_v3/representations.rb +176 -176
- data/generated/google/apis/monitoring_v3/service.rb +223 -262
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1506 -1506
- data/generated/google/apis/partners_v2/representations.rb +370 -370
- data/generated/google/apis/partners_v2/service.rb +393 -393
- data/generated/google/apis/people_v1.rb +13 -13
- data/generated/google/apis/people_v1/classes.rb +597 -594
- data/generated/google/apis/people_v1/representations.rb +121 -121
- data/generated/google/apis/people_v1/service.rb +39 -48
- 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 +323 -327
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +178 -178
- data/generated/google/apis/pubsub_v1/representations.rb +55 -55
- data/generated/google/apis/pubsub_v1/service.rb +357 -357
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
- data/generated/google/apis/script_v1.rb +16 -16
- data/generated/google/apis/script_v1/classes.rb +113 -113
- data/generated/google/apis/script_v1/representations.rb +28 -28
- 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 +84 -84
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/searchconsole_v1/service.rb +6 -6
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
- data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
- data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
- data/generated/google/apis/servicemanagement_v1.rb +4 -4
- data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
- data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
- data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
- data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
- data/generated/google/apis/serviceuser_v1/service.rb +16 -16
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
- data/generated/google/apis/sheets_v4/representations.rb +548 -548
- data/generated/google/apis/sheets_v4/service.rb +170 -170
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2945 -2916
- data/generated/google/apis/slides_v1/representations.rb +700 -697
- data/generated/google/apis/slides_v1/service.rb +44 -44
- data/generated/google/apis/sourcerepo_v1.rb +2 -2
- data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
- data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
- data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
- data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
- data/generated/google/apis/spanner_v1/representations.rb +323 -323
- data/generated/google/apis/spanner_v1/service.rb +383 -383
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
- data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
- data/generated/google/apis/speech_v1beta1/service.rb +37 -32
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +26 -0
- data/generated/google/apis/storage_v1/representations.rb +15 -0
- data/generated/google/apis/storage_v1/service.rb +168 -42
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
- data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
- data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
- data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
- data/generated/google/apis/translate_v2.rb +11 -4
- data/generated/google/apis/translate_v2/classes.rb +140 -37
- data/generated/google/apis/translate_v2/representations.rb +62 -15
- data/generated/google/apis/translate_v2/service.rb +119 -66
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1265 -1273
- data/generated/google/apis/vision_v1/representations.rb +202 -202
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
- data/lib/google/apis/core/api_command.rb +43 -10
- data/lib/google/apis/core/json_representation.rb +1 -1
- data/lib/google/apis/options.rb +6 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +3 -3
@@ -22,139 +22,204 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module ProximitybeaconV1beta1
|
24
24
|
|
25
|
-
class
|
25
|
+
class AttachmentInfo
|
26
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
27
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
-
class
|
31
|
+
class BeaconInfo
|
32
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
33
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
-
class
|
37
|
+
class DeleteAttachmentsResponse
|
38
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
39
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
-
class
|
43
|
+
class EphemeralIdRegistrationParams
|
44
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
45
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
-
class
|
49
|
+
class Observation
|
50
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
51
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
-
class
|
55
|
+
class ListDiagnosticsResponse
|
56
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
57
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
59
59
|
end
|
60
60
|
|
61
|
-
class
|
61
|
+
class GetInfoForObservedBeaconsResponse
|
62
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
63
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
65
65
|
end
|
66
66
|
|
67
|
-
class
|
67
|
+
class Beacon
|
68
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
69
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
71
71
|
end
|
72
72
|
|
73
|
-
class
|
73
|
+
class AdvertisedId
|
74
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
75
|
|
76
76
|
include Google::Apis::Core::JsonObjectSupport
|
77
77
|
end
|
78
78
|
|
79
|
-
class
|
79
|
+
class Date
|
80
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
81
|
|
82
82
|
include Google::Apis::Core::JsonObjectSupport
|
83
83
|
end
|
84
84
|
|
85
|
-
class
|
85
|
+
class IndoorLevel
|
86
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
87
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
89
89
|
end
|
90
90
|
|
91
|
-
class
|
91
|
+
class ListNamespacesResponse
|
92
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
93
|
|
94
94
|
include Google::Apis::Core::JsonObjectSupport
|
95
95
|
end
|
96
96
|
|
97
|
-
class
|
97
|
+
class Diagnostics
|
98
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
99
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
-
class
|
103
|
+
class ListBeaconsResponse
|
104
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
105
|
|
106
106
|
include Google::Apis::Core::JsonObjectSupport
|
107
107
|
end
|
108
108
|
|
109
|
-
class
|
109
|
+
class GetInfoForObservedBeaconsRequest
|
110
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
111
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
113
113
|
end
|
114
114
|
|
115
|
-
class
|
115
|
+
class Empty
|
116
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
117
|
|
118
118
|
include Google::Apis::Core::JsonObjectSupport
|
119
119
|
end
|
120
120
|
|
121
|
-
class
|
121
|
+
class BeaconAttachment
|
122
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
123
|
|
124
124
|
include Google::Apis::Core::JsonObjectSupport
|
125
125
|
end
|
126
126
|
|
127
|
-
class
|
127
|
+
class EphemeralIdRegistration
|
128
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
129
|
|
130
130
|
include Google::Apis::Core::JsonObjectSupport
|
131
131
|
end
|
132
132
|
|
133
|
-
class
|
133
|
+
class LatLng
|
134
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
135
|
|
136
136
|
include Google::Apis::Core::JsonObjectSupport
|
137
137
|
end
|
138
138
|
|
139
|
-
class
|
139
|
+
class ListBeaconAttachmentsResponse
|
140
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
141
|
|
142
142
|
include Google::Apis::Core::JsonObjectSupport
|
143
143
|
end
|
144
144
|
|
145
|
-
class
|
145
|
+
class Namespace
|
146
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
147
|
|
148
148
|
include Google::Apis::Core::JsonObjectSupport
|
149
149
|
end
|
150
150
|
|
151
|
+
class AttachmentInfo
|
152
|
+
# @private
|
153
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
154
|
+
property :namespaced_type, as: 'namespacedType'
|
155
|
+
property :data, :base64 => true, as: 'data'
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
class BeaconInfo
|
160
|
+
# @private
|
161
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
162
|
+
property :beacon_name, as: 'beaconName'
|
163
|
+
property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
|
164
|
+
|
165
|
+
collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo, decorator: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo::Representation
|
166
|
+
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
class DeleteAttachmentsResponse
|
171
|
+
# @private
|
172
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
173
|
+
property :num_deleted, as: 'numDeleted'
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
177
|
+
class EphemeralIdRegistrationParams
|
178
|
+
# @private
|
179
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
180
|
+
property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey'
|
181
|
+
property :min_rotation_period_exponent, as: 'minRotationPeriodExponent'
|
182
|
+
property :max_rotation_period_exponent, as: 'maxRotationPeriodExponent'
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
class Observation
|
187
|
+
# @private
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
189
|
+
property :telemetry, :base64 => true, as: 'telemetry'
|
190
|
+
property :timestamp_ms, as: 'timestampMs'
|
191
|
+
property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
|
192
|
+
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
class ListDiagnosticsResponse
|
197
|
+
# @private
|
198
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
199
|
+
property :next_page_token, as: 'nextPageToken'
|
200
|
+
collection :diagnostics, as: 'diagnostics', class: Google::Apis::ProximitybeaconV1beta1::Diagnostics, decorator: Google::Apis::ProximitybeaconV1beta1::Diagnostics::Representation
|
201
|
+
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
class GetInfoForObservedBeaconsResponse
|
206
|
+
# @private
|
207
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
208
|
+
collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::BeaconInfo, decorator: Google::Apis::ProximitybeaconV1beta1::BeaconInfo::Representation
|
209
|
+
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
151
213
|
class Beacon
|
152
214
|
# @private
|
153
215
|
class Representation < Google::Apis::Core::JsonRepresentation
|
154
|
-
property :
|
216
|
+
property :ephemeral_id_registration, as: 'ephemeralIdRegistration', class: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration, decorator: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration::Representation
|
155
217
|
|
156
|
-
property :
|
218
|
+
property :provisioning_key, :base64 => true, as: 'provisioningKey'
|
157
219
|
property :description, as: 'description'
|
220
|
+
property :place_id, as: 'placeId'
|
221
|
+
property :lat_lng, as: 'latLng', class: Google::Apis::ProximitybeaconV1beta1::LatLng, decorator: Google::Apis::ProximitybeaconV1beta1::LatLng::Representation
|
222
|
+
|
158
223
|
hash :properties, as: 'properties'
|
159
224
|
property :status, as: 'status'
|
160
225
|
property :indoor_level, as: 'indoorLevel', class: Google::Apis::ProximitybeaconV1beta1::IndoorLevel, decorator: Google::Apis::ProximitybeaconV1beta1::IndoorLevel::Representation
|
@@ -163,17 +228,14 @@ module Google
|
|
163
228
|
property :expected_stability, as: 'expectedStability'
|
164
229
|
property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
|
165
230
|
|
166
|
-
property :ephemeral_id_registration, as: 'ephemeralIdRegistration', class: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration, decorator: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration::Representation
|
167
|
-
|
168
|
-
property :provisioning_key, :base64 => true, as: 'provisioningKey'
|
169
231
|
end
|
170
232
|
end
|
171
233
|
|
172
234
|
class AdvertisedId
|
173
235
|
# @private
|
174
236
|
class Representation < Google::Apis::Core::JsonRepresentation
|
175
|
-
property :id, :base64 => true, as: 'id'
|
176
237
|
property :type, as: 'type'
|
238
|
+
property :id, :base64 => true, as: 'id'
|
177
239
|
end
|
178
240
|
end
|
179
241
|
|
@@ -201,23 +263,23 @@ module Google
|
|
201
263
|
end
|
202
264
|
end
|
203
265
|
|
204
|
-
class
|
266
|
+
class Diagnostics
|
205
267
|
# @private
|
206
268
|
class Representation < Google::Apis::Core::JsonRepresentation
|
207
|
-
property :
|
208
|
-
collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::Beacon, decorator: Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
|
269
|
+
property :estimated_low_battery_date, as: 'estimatedLowBatteryDate', class: Google::Apis::ProximitybeaconV1beta1::Date, decorator: Google::Apis::ProximitybeaconV1beta1::Date::Representation
|
209
270
|
|
210
|
-
property :
|
271
|
+
property :beacon_name, as: 'beaconName'
|
272
|
+
collection :alerts, as: 'alerts'
|
211
273
|
end
|
212
274
|
end
|
213
275
|
|
214
|
-
class
|
276
|
+
class ListBeaconsResponse
|
215
277
|
# @private
|
216
278
|
class Representation < Google::Apis::Core::JsonRepresentation
|
217
|
-
property :
|
279
|
+
property :next_page_token, as: 'nextPageToken'
|
280
|
+
collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::Beacon, decorator: Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
|
218
281
|
|
219
|
-
property :
|
220
|
-
collection :alerts, as: 'alerts'
|
282
|
+
property :total_count, :numeric_string => true, as: 'totalCount'
|
221
283
|
end
|
222
284
|
end
|
223
285
|
|
@@ -239,22 +301,22 @@ module Google
|
|
239
301
|
class BeaconAttachment
|
240
302
|
# @private
|
241
303
|
class Representation < Google::Apis::Core::JsonRepresentation
|
242
|
-
property :attachment_name, as: 'attachmentName'
|
243
304
|
property :namespaced_type, as: 'namespacedType'
|
244
305
|
property :data, :base64 => true, as: 'data'
|
245
306
|
property :creation_time_ms, as: 'creationTimeMs'
|
307
|
+
property :attachment_name, as: 'attachmentName'
|
246
308
|
end
|
247
309
|
end
|
248
310
|
|
249
311
|
class EphemeralIdRegistration
|
250
312
|
# @private
|
251
313
|
class Representation < Google::Apis::Core::JsonRepresentation
|
252
|
-
property :initial_eid, :base64 => true, as: 'initialEid'
|
253
314
|
property :initial_clock_value, :numeric_string => true, as: 'initialClockValue'
|
254
315
|
property :beacon_ecdh_public_key, :base64 => true, as: 'beaconEcdhPublicKey'
|
255
316
|
property :rotation_period_exponent, as: 'rotationPeriodExponent'
|
256
317
|
property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey'
|
257
318
|
property :beacon_identity_key, :base64 => true, as: 'beaconIdentityKey'
|
319
|
+
property :initial_eid, :base64 => true, as: 'initialEid'
|
258
320
|
end
|
259
321
|
end
|
260
322
|
|
@@ -277,70 +339,8 @@ module Google
|
|
277
339
|
class Namespace
|
278
340
|
# @private
|
279
341
|
class Representation < Google::Apis::Core::JsonRepresentation
|
280
|
-
property :namespace_name, as: 'namespaceName'
|
281
342
|
property :serving_visibility, as: 'servingVisibility'
|
282
|
-
|
283
|
-
end
|
284
|
-
|
285
|
-
class BeaconInfo
|
286
|
-
# @private
|
287
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
288
|
-
property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
|
289
|
-
|
290
|
-
collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo, decorator: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo::Representation
|
291
|
-
|
292
|
-
property :beacon_name, as: 'beaconName'
|
293
|
-
end
|
294
|
-
end
|
295
|
-
|
296
|
-
class AttachmentInfo
|
297
|
-
# @private
|
298
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
299
|
-
property :namespaced_type, as: 'namespacedType'
|
300
|
-
property :data, :base64 => true, as: 'data'
|
301
|
-
end
|
302
|
-
end
|
303
|
-
|
304
|
-
class EphemeralIdRegistrationParams
|
305
|
-
# @private
|
306
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
307
|
-
property :min_rotation_period_exponent, as: 'minRotationPeriodExponent'
|
308
|
-
property :max_rotation_period_exponent, as: 'maxRotationPeriodExponent'
|
309
|
-
property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey'
|
310
|
-
end
|
311
|
-
end
|
312
|
-
|
313
|
-
class DeleteAttachmentsResponse
|
314
|
-
# @private
|
315
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
316
|
-
property :num_deleted, as: 'numDeleted'
|
317
|
-
end
|
318
|
-
end
|
319
|
-
|
320
|
-
class Observation
|
321
|
-
# @private
|
322
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
323
|
-
property :telemetry, :base64 => true, as: 'telemetry'
|
324
|
-
property :timestamp_ms, as: 'timestampMs'
|
325
|
-
property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
|
326
|
-
|
327
|
-
end
|
328
|
-
end
|
329
|
-
|
330
|
-
class ListDiagnosticsResponse
|
331
|
-
# @private
|
332
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
333
|
-
collection :diagnostics, as: 'diagnostics', class: Google::Apis::ProximitybeaconV1beta1::Diagnostics, decorator: Google::Apis::ProximitybeaconV1beta1::Diagnostics::Representation
|
334
|
-
|
335
|
-
property :next_page_token, as: 'nextPageToken'
|
336
|
-
end
|
337
|
-
end
|
338
|
-
|
339
|
-
class GetInfoForObservedBeaconsResponse
|
340
|
-
# @private
|
341
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
342
|
-
collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::BeaconInfo, decorator: Google::Apis::ProximitybeaconV1beta1::BeaconInfo::Representation
|
343
|
-
|
343
|
+
property :namespace_name, as: 'namespaceName'
|
344
344
|
end
|
345
345
|
end
|
346
346
|
end
|
@@ -32,32 +32,28 @@ module Google
|
|
32
32
|
#
|
33
33
|
# @see https://developers.google.com/beacons/proximity/
|
34
34
|
class ProximitybeaconService < Google::Apis::Core::BaseService
|
35
|
-
# @return [String]
|
36
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
37
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38
|
-
attr_accessor :quota_user
|
39
|
-
|
40
35
|
# @return [String]
|
41
36
|
# API key. Your API key identifies your project and provides you with API access,
|
42
37
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
43
38
|
attr_accessor :key
|
44
39
|
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
attr_accessor :quota_user
|
44
|
+
|
45
45
|
def initialize
|
46
46
|
super('https://proximitybeacon.googleapis.com/', '')
|
47
47
|
@batch_path = 'batch'
|
48
48
|
end
|
49
49
|
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
#
|
54
|
-
#
|
55
|
-
#
|
56
|
-
#
|
57
|
-
# The project id of the namespace to update. If the project id is not
|
58
|
-
# specified then the project making the request is used. The project id
|
59
|
-
# must match the project that owns the beacon.
|
60
|
-
# Optional.
|
50
|
+
# Gets the Proximity Beacon API's current public key and associated
|
51
|
+
# parameters used to initiate the Diffie-Hellman key exchange required to
|
52
|
+
# register a beacon that broadcasts the Eddystone-EID format. This key
|
53
|
+
# changes periodically; clients may cache it and re-use the same public key
|
54
|
+
# to provision and register multiple beacons. However, clients should be
|
55
|
+
# prepared to refresh this key when they encounter an error registering an
|
56
|
+
# Eddystone-EID beacon.
|
61
57
|
# @param [String] quota_user
|
62
58
|
# Available to use for quota purposes for server-side applications. Can be any
|
63
59
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -67,36 +63,43 @@ module Google
|
|
67
63
|
# Request-specific options
|
68
64
|
#
|
69
65
|
# @yield [result, err] Result & error if block supplied
|
70
|
-
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::
|
66
|
+
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams] parsed result object
|
71
67
|
# @yieldparam err [StandardError] error object if request failed
|
72
68
|
#
|
73
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::
|
69
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams]
|
74
70
|
#
|
75
71
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
76
72
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
77
73
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
78
|
-
def
|
79
|
-
command = make_simple_command(:
|
80
|
-
command.
|
81
|
-
command.
|
82
|
-
command.response_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
|
83
|
-
command.response_class = Google::Apis::ProximitybeaconV1beta1::Namespace
|
84
|
-
command.params['namespaceName'] = namespace_name unless namespace_name.nil?
|
85
|
-
command.query['projectId'] = project_id unless project_id.nil?
|
74
|
+
def get_eidparams(quota_user: nil, fields: nil, options: nil, &block)
|
75
|
+
command = make_simple_command(:get, 'v1beta1/eidparams', options)
|
76
|
+
command.response_representation = Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams::Representation
|
77
|
+
command.response_class = Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams
|
86
78
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
87
79
|
command.query['fields'] = fields unless fields.nil?
|
88
80
|
execute_or_queue_command(command, &block)
|
89
81
|
end
|
90
82
|
|
91
|
-
#
|
92
|
-
#
|
93
|
-
#
|
83
|
+
# Activates a beacon. A beacon that is active will return information
|
84
|
+
# and attachment data when queried via `beaconinfo.getforobserved`.
|
85
|
+
# Calling this method on an already active beacon will do nothing (but
|
86
|
+
# will return a successful response code).
|
94
87
|
# Authenticate using an [OAuth access token](https://developers.google.com/
|
95
88
|
# identity/protocols/OAuth2)
|
96
|
-
# from a signed-in user with **
|
97
|
-
#
|
89
|
+
# from a signed-in user with **Is owner** or **Can edit** permissions in the
|
90
|
+
# Google Developers Console project.
|
91
|
+
# @param [String] beacon_name
|
92
|
+
# Beacon that should be activated. A beacon name has the format
|
93
|
+
# "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
|
94
|
+
# the beacon and N is a code for the beacon's type. Possible values are
|
95
|
+
# `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
|
96
|
+
# for AltBeacon. For Eddystone-EID beacons, you may use either the
|
97
|
+
# current EID or the beacon's "stable" UID.
|
98
|
+
# Required.
|
98
99
|
# @param [String] project_id
|
99
|
-
# The project id to
|
100
|
+
# The project id of the beacon to activate. If the project id is not
|
101
|
+
# specified then the project making the request is used. The project id
|
102
|
+
# must match the project that owns the beacon.
|
100
103
|
# Optional.
|
101
104
|
# @param [String] quota_user
|
102
105
|
# Available to use for quota purposes for server-side applications. Can be any
|
@@ -107,57 +110,25 @@ module Google
|
|
107
110
|
# Request-specific options
|
108
111
|
#
|
109
112
|
# @yield [result, err] Result & error if block supplied
|
110
|
-
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::
|
113
|
+
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object
|
111
114
|
# @yieldparam err [StandardError] error object if request failed
|
112
115
|
#
|
113
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::
|
116
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::Empty]
|
114
117
|
#
|
115
118
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
116
119
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
117
120
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
118
|
-
def
|
119
|
-
command = make_simple_command(:
|
120
|
-
command.response_representation = Google::Apis::ProximitybeaconV1beta1::
|
121
|
-
command.response_class = Google::Apis::ProximitybeaconV1beta1::
|
121
|
+
def activate_beacon(beacon_name, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
|
122
|
+
command = make_simple_command(:post, 'v1beta1/{+beaconName}:activate', options)
|
123
|
+
command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
|
124
|
+
command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
|
125
|
+
command.params['beaconName'] = beacon_name unless beacon_name.nil?
|
122
126
|
command.query['projectId'] = project_id unless project_id.nil?
|
123
127
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
124
128
|
command.query['fields'] = fields unless fields.nil?
|
125
129
|
execute_or_queue_command(command, &block)
|
126
130
|
end
|
127
131
|
|
128
|
-
# Gets the Proximity Beacon API's current public key and associated
|
129
|
-
# parameters used to initiate the Diffie-Hellman key exchange required to
|
130
|
-
# register a beacon that broadcasts the Eddystone-EID format. This key
|
131
|
-
# changes periodically; clients may cache it and re-use the same public key
|
132
|
-
# to provision and register multiple beacons. However, clients should be
|
133
|
-
# prepared to refresh this key when they encounter an error registering an
|
134
|
-
# Eddystone-EID beacon.
|
135
|
-
# @param [String] quota_user
|
136
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
137
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
138
|
-
# @param [String] fields
|
139
|
-
# Selector specifying which fields to include in a partial response.
|
140
|
-
# @param [Google::Apis::RequestOptions] options
|
141
|
-
# Request-specific options
|
142
|
-
#
|
143
|
-
# @yield [result, err] Result & error if block supplied
|
144
|
-
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams] parsed result object
|
145
|
-
# @yieldparam err [StandardError] error object if request failed
|
146
|
-
#
|
147
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams]
|
148
|
-
#
|
149
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
150
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
151
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
152
|
-
def get_eidparams(quota_user: nil, fields: nil, options: nil, &block)
|
153
|
-
command = make_simple_command(:get, 'v1beta1/eidparams', options)
|
154
|
-
command.response_representation = Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams::Representation
|
155
|
-
command.response_class = Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams
|
156
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
157
|
-
command.query['fields'] = fields unless fields.nil?
|
158
|
-
execute_or_queue_command(command, &block)
|
159
|
-
end
|
160
|
-
|
161
132
|
# Returns detailed information about the specified beacon.
|
162
133
|
# Authenticate using an [OAuth access token](https://developers.google.com/
|
163
134
|
# identity/protocols/OAuth2)
|
@@ -408,6 +379,47 @@ module Google
|
|
408
379
|
execute_or_queue_command(command, &block)
|
409
380
|
end
|
410
381
|
|
382
|
+
# Registers a previously unregistered beacon given its `advertisedId`.
|
383
|
+
# These IDs are unique within the system. An ID can be registered only once.
|
384
|
+
# Authenticate using an [OAuth access token](https://developers.google.com/
|
385
|
+
# identity/protocols/OAuth2)
|
386
|
+
# from a signed-in user with **Is owner** or **Can edit** permissions in the
|
387
|
+
# Google Developers Console project.
|
388
|
+
# @param [Google::Apis::ProximitybeaconV1beta1::Beacon] beacon_object
|
389
|
+
# @param [String] project_id
|
390
|
+
# The project id of the project the beacon will be registered to. If
|
391
|
+
# the project id is not specified then the project making the request
|
392
|
+
# is used.
|
393
|
+
# Optional.
|
394
|
+
# @param [String] quota_user
|
395
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
396
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
397
|
+
# @param [String] fields
|
398
|
+
# Selector specifying which fields to include in a partial response.
|
399
|
+
# @param [Google::Apis::RequestOptions] options
|
400
|
+
# Request-specific options
|
401
|
+
#
|
402
|
+
# @yield [result, err] Result & error if block supplied
|
403
|
+
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Beacon] parsed result object
|
404
|
+
# @yieldparam err [StandardError] error object if request failed
|
405
|
+
#
|
406
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::Beacon]
|
407
|
+
#
|
408
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
409
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
410
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
411
|
+
def register_beacon(beacon_object = nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
|
412
|
+
command = make_simple_command(:post, 'v1beta1/beacons:register', options)
|
413
|
+
command.request_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
|
414
|
+
command.request_object = beacon_object
|
415
|
+
command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
|
416
|
+
command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon
|
417
|
+
command.query['projectId'] = project_id unless project_id.nil?
|
418
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
419
|
+
command.query['fields'] = fields unless fields.nil?
|
420
|
+
execute_or_queue_command(command, &block)
|
421
|
+
end
|
422
|
+
|
411
423
|
# Searches the beacon registry for beacons that match the given search
|
412
424
|
# criteria. Only those beacons that the client has permission to list
|
413
425
|
# will be returned.
|
@@ -518,68 +530,28 @@ module Google
|
|
518
530
|
execute_or_queue_command(command, &block)
|
519
531
|
end
|
520
532
|
|
521
|
-
#
|
522
|
-
#
|
523
|
-
#
|
524
|
-
# identity/protocols/OAuth2)
|
525
|
-
# from a signed-in user with **Is owner** or **Can edit** permissions in the
|
526
|
-
# Google Developers Console project.
|
527
|
-
# @param [Google::Apis::ProximitybeaconV1beta1::Beacon] beacon_object
|
528
|
-
# @param [String] project_id
|
529
|
-
# The project id of the project the beacon will be registered to. If
|
530
|
-
# the project id is not specified then the project making the request
|
531
|
-
# is used.
|
532
|
-
# Optional.
|
533
|
-
# @param [String] quota_user
|
534
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
535
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
536
|
-
# @param [String] fields
|
537
|
-
# Selector specifying which fields to include in a partial response.
|
538
|
-
# @param [Google::Apis::RequestOptions] options
|
539
|
-
# Request-specific options
|
540
|
-
#
|
541
|
-
# @yield [result, err] Result & error if block supplied
|
542
|
-
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Beacon] parsed result object
|
543
|
-
# @yieldparam err [StandardError] error object if request failed
|
544
|
-
#
|
545
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::Beacon]
|
546
|
-
#
|
547
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
548
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
549
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
550
|
-
def register_beacon(beacon_object = nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
|
551
|
-
command = make_simple_command(:post, 'v1beta1/beacons:register', options)
|
552
|
-
command.request_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
|
553
|
-
command.request_object = beacon_object
|
554
|
-
command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
|
555
|
-
command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon
|
556
|
-
command.query['projectId'] = project_id unless project_id.nil?
|
557
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
558
|
-
command.query['fields'] = fields unless fields.nil?
|
559
|
-
execute_or_queue_command(command, &block)
|
560
|
-
end
|
561
|
-
|
562
|
-
# Activates a beacon. A beacon that is active will return information
|
563
|
-
# and attachment data when queried via `beaconinfo.getforobserved`.
|
564
|
-
# Calling this method on an already active beacon will do nothing (but
|
565
|
-
# will return a successful response code).
|
533
|
+
# List the diagnostics for a single beacon. You can also list diagnostics for
|
534
|
+
# all the beacons owned by your Google Developers Console project by using
|
535
|
+
# the beacon name `beacons/-`.
|
566
536
|
# Authenticate using an [OAuth access token](https://developers.google.com/
|
567
537
|
# identity/protocols/OAuth2)
|
568
|
-
# from a signed-in user with **Is owner** or **Can edit**
|
569
|
-
# Google Developers Console project.
|
538
|
+
# from a signed-in user with **viewer**, **Is owner** or **Can edit**
|
539
|
+
# permissions in the Google Developers Console project.
|
570
540
|
# @param [String] beacon_name
|
571
|
-
# Beacon that
|
572
|
-
#
|
573
|
-
# the
|
574
|
-
#
|
575
|
-
#
|
576
|
-
#
|
577
|
-
#
|
541
|
+
# Beacon that the diagnostics are for.
|
542
|
+
# @param [Fixnum] page_size
|
543
|
+
# Specifies the maximum number of results to return. Defaults to
|
544
|
+
# 10. Maximum 1000. Optional.
|
545
|
+
# @param [String] alert_filter
|
546
|
+
# Requests only beacons that have the given alert. For example, to find
|
547
|
+
# beacons that have low batteries use `alert_filter=LOW_BATTERY`.
|
578
548
|
# @param [String] project_id
|
579
|
-
#
|
580
|
-
#
|
581
|
-
#
|
582
|
-
#
|
549
|
+
# Requests only diagnostic records for the given project id. If not set,
|
550
|
+
# then the project making the request will be used for looking up
|
551
|
+
# diagnostic records. Optional.
|
552
|
+
# @param [String] page_token
|
553
|
+
# Requests results that occur after the `page_token`, obtained from the
|
554
|
+
# response to a previous request. Optional.
|
583
555
|
# @param [String] quota_user
|
584
556
|
# Available to use for quota purposes for server-side applications. Can be any
|
585
557
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -589,20 +561,23 @@ module Google
|
|
589
561
|
# Request-specific options
|
590
562
|
#
|
591
563
|
# @yield [result, err] Result & error if block supplied
|
592
|
-
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::
|
564
|
+
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse] parsed result object
|
593
565
|
# @yieldparam err [StandardError] error object if request failed
|
594
566
|
#
|
595
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::
|
567
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse]
|
596
568
|
#
|
597
569
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
598
570
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
599
571
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
600
|
-
def
|
601
|
-
command = make_simple_command(:
|
602
|
-
command.response_representation = Google::Apis::ProximitybeaconV1beta1::
|
603
|
-
command.response_class = Google::Apis::ProximitybeaconV1beta1::
|
572
|
+
def list_beacon_diagnostics(beacon_name, page_size: nil, alert_filter: nil, project_id: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
573
|
+
command = make_simple_command(:get, 'v1beta1/{+beaconName}/diagnostics', options)
|
574
|
+
command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse::Representation
|
575
|
+
command.response_class = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse
|
604
576
|
command.params['beaconName'] = beacon_name unless beacon_name.nil?
|
577
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
578
|
+
command.query['alertFilter'] = alert_filter unless alert_filter.nil?
|
605
579
|
command.query['projectId'] = project_id unless project_id.nil?
|
580
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
606
581
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
607
582
|
command.query['fields'] = fields unless fields.nil?
|
608
583
|
execute_or_queue_command(command, &block)
|
@@ -791,6 +766,11 @@ module Google
|
|
791
766
|
# for AltBeacon. For Eddystone-EID beacons, you may use either the
|
792
767
|
# current EID or the beacon's "stable" UID.
|
793
768
|
# Required.
|
769
|
+
# @param [String] namespaced_type
|
770
|
+
# Specifies the namespace and type of attachments to delete in
|
771
|
+
# `namespace/type` format. Accepts `*/*` to specify
|
772
|
+
# "all types in all namespaces".
|
773
|
+
# Optional.
|
794
774
|
# @param [String] project_id
|
795
775
|
# The project id to delete beacon attachments under. This field can be
|
796
776
|
# used when "*" is specified to mean all attachment namespaces. Projects
|
@@ -798,11 +778,6 @@ module Google
|
|
798
778
|
# specified and the projectId string is empty, then the project
|
799
779
|
# making the request is used.
|
800
780
|
# Optional.
|
801
|
-
# @param [String] namespaced_type
|
802
|
-
# Specifies the namespace and type of attachments to delete in
|
803
|
-
# `namespace/type` format. Accepts `*/*` to specify
|
804
|
-
# "all types in all namespaces".
|
805
|
-
# Optional.
|
806
781
|
# @param [String] quota_user
|
807
782
|
# Available to use for quota purposes for server-side applications. Can be any
|
808
783
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -820,40 +795,62 @@ module Google
|
|
820
795
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
821
796
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
822
797
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
823
|
-
def batch_beacon_attachment_delete(beacon_name,
|
798
|
+
def batch_beacon_attachment_delete(beacon_name, namespaced_type: nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
|
824
799
|
command = make_simple_command(:post, 'v1beta1/{+beaconName}/attachments:batchDelete', options)
|
825
800
|
command.response_representation = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse::Representation
|
826
801
|
command.response_class = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse
|
827
802
|
command.params['beaconName'] = beacon_name unless beacon_name.nil?
|
828
|
-
command.query['projectId'] = project_id unless project_id.nil?
|
829
803
|
command.query['namespacedType'] = namespaced_type unless namespaced_type.nil?
|
804
|
+
command.query['projectId'] = project_id unless project_id.nil?
|
830
805
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
831
806
|
command.query['fields'] = fields unless fields.nil?
|
832
807
|
execute_or_queue_command(command, &block)
|
833
808
|
end
|
834
809
|
|
835
|
-
#
|
836
|
-
#
|
837
|
-
#
|
810
|
+
# Given one or more beacon observations, returns any beacon information
|
811
|
+
# and attachments accessible to your application. Authorize by using the
|
812
|
+
# [API key](https://developers.google.com/beacons/proximity/get-started#
|
813
|
+
# request_a_browser_api_key)
|
814
|
+
# for the application.
|
815
|
+
# @param [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest] get_info_for_observed_beacons_request_object
|
816
|
+
# @param [String] quota_user
|
817
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
818
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
819
|
+
# @param [String] fields
|
820
|
+
# Selector specifying which fields to include in a partial response.
|
821
|
+
# @param [Google::Apis::RequestOptions] options
|
822
|
+
# Request-specific options
|
823
|
+
#
|
824
|
+
# @yield [result, err] Result & error if block supplied
|
825
|
+
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse] parsed result object
|
826
|
+
# @yieldparam err [StandardError] error object if request failed
|
827
|
+
#
|
828
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse]
|
829
|
+
#
|
830
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
831
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
832
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
833
|
+
def getforobserved_beaconinfo(get_info_for_observed_beacons_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
834
|
+
command = make_simple_command(:post, 'v1beta1/beaconinfo:getforobserved', options)
|
835
|
+
command.request_representation = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest::Representation
|
836
|
+
command.request_object = get_info_for_observed_beacons_request_object
|
837
|
+
command.response_representation = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse::Representation
|
838
|
+
command.response_class = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse
|
839
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
840
|
+
command.query['fields'] = fields unless fields.nil?
|
841
|
+
execute_or_queue_command(command, &block)
|
842
|
+
end
|
843
|
+
|
844
|
+
# Lists all attachment namespaces owned by your Google Developers Console
|
845
|
+
# project. Attachment data associated with a beacon must include a
|
846
|
+
# namespaced type, and the namespace must be owned by your project.
|
838
847
|
# Authenticate using an [OAuth access token](https://developers.google.com/
|
839
848
|
# identity/protocols/OAuth2)
|
840
849
|
# from a signed-in user with **viewer**, **Is owner** or **Can edit**
|
841
850
|
# permissions in the Google Developers Console project.
|
842
|
-
# @param [String] beacon_name
|
843
|
-
# Beacon that the diagnostics are for.
|
844
|
-
# @param [String] page_token
|
845
|
-
# Requests results that occur after the `page_token`, obtained from the
|
846
|
-
# response to a previous request. Optional.
|
847
|
-
# @param [Fixnum] page_size
|
848
|
-
# Specifies the maximum number of results to return. Defaults to
|
849
|
-
# 10. Maximum 1000. Optional.
|
850
|
-
# @param [String] alert_filter
|
851
|
-
# Requests only beacons that have the given alert. For example, to find
|
852
|
-
# beacons that have low batteries use `alert_filter=LOW_BATTERY`.
|
853
851
|
# @param [String] project_id
|
854
|
-
#
|
855
|
-
#
|
856
|
-
# diagnostic records. Optional.
|
852
|
+
# The project id to list namespaces under.
|
853
|
+
# Optional.
|
857
854
|
# @param [String] quota_user
|
858
855
|
# Available to use for quota purposes for server-side applications. Can be any
|
859
856
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -863,34 +860,35 @@ module Google
|
|
863
860
|
# Request-specific options
|
864
861
|
#
|
865
862
|
# @yield [result, err] Result & error if block supplied
|
866
|
-
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::
|
863
|
+
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse] parsed result object
|
867
864
|
# @yieldparam err [StandardError] error object if request failed
|
868
865
|
#
|
869
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::
|
866
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse]
|
870
867
|
#
|
871
868
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
872
869
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
873
870
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
874
|
-
def
|
875
|
-
command = make_simple_command(:get, 'v1beta1/
|
876
|
-
command.response_representation = Google::Apis::ProximitybeaconV1beta1::
|
877
|
-
command.response_class = Google::Apis::ProximitybeaconV1beta1::
|
878
|
-
command.params['beaconName'] = beacon_name unless beacon_name.nil?
|
879
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
880
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
881
|
-
command.query['alertFilter'] = alert_filter unless alert_filter.nil?
|
871
|
+
def list_namespaces(project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
|
872
|
+
command = make_simple_command(:get, 'v1beta1/namespaces', options)
|
873
|
+
command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse::Representation
|
874
|
+
command.response_class = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse
|
882
875
|
command.query['projectId'] = project_id unless project_id.nil?
|
883
876
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
884
877
|
command.query['fields'] = fields unless fields.nil?
|
885
878
|
execute_or_queue_command(command, &block)
|
886
879
|
end
|
887
880
|
|
888
|
-
#
|
889
|
-
#
|
890
|
-
# [
|
891
|
-
#
|
892
|
-
#
|
893
|
-
# @param [Google::Apis::ProximitybeaconV1beta1::
|
881
|
+
# Updates the information about the specified namespace. Only the namespace
|
882
|
+
# visibility can be updated.
|
883
|
+
# @param [String] namespace_name
|
884
|
+
# Resource name of this namespace. Namespaces names have the format:
|
885
|
+
# <code>namespaces/<var>namespace</var></code>.
|
886
|
+
# @param [Google::Apis::ProximitybeaconV1beta1::Namespace] namespace_object
|
887
|
+
# @param [String] project_id
|
888
|
+
# The project id of the namespace to update. If the project id is not
|
889
|
+
# specified then the project making the request is used. The project id
|
890
|
+
# must match the project that owns the beacon.
|
891
|
+
# Optional.
|
894
892
|
# @param [String] quota_user
|
895
893
|
# Available to use for quota purposes for server-side applications. Can be any
|
896
894
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -900,20 +898,22 @@ module Google
|
|
900
898
|
# Request-specific options
|
901
899
|
#
|
902
900
|
# @yield [result, err] Result & error if block supplied
|
903
|
-
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::
|
901
|
+
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Namespace] parsed result object
|
904
902
|
# @yieldparam err [StandardError] error object if request failed
|
905
903
|
#
|
906
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::
|
904
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::Namespace]
|
907
905
|
#
|
908
906
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
909
907
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
910
908
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
911
|
-
def
|
912
|
-
command = make_simple_command(:
|
913
|
-
command.request_representation = Google::Apis::ProximitybeaconV1beta1::
|
914
|
-
command.request_object =
|
915
|
-
command.response_representation = Google::Apis::ProximitybeaconV1beta1::
|
916
|
-
command.response_class = Google::Apis::ProximitybeaconV1beta1::
|
909
|
+
def update_namespace(namespace_name, namespace_object = nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
|
910
|
+
command = make_simple_command(:put, 'v1beta1/{+namespaceName}', options)
|
911
|
+
command.request_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
|
912
|
+
command.request_object = namespace_object
|
913
|
+
command.response_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
|
914
|
+
command.response_class = Google::Apis::ProximitybeaconV1beta1::Namespace
|
915
|
+
command.params['namespaceName'] = namespace_name unless namespace_name.nil?
|
916
|
+
command.query['projectId'] = project_id unless project_id.nil?
|
917
917
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
918
918
|
command.query['fields'] = fields unless fields.nil?
|
919
919
|
execute_or_queue_command(command, &block)
|
@@ -922,8 +922,8 @@ module Google
|
|
922
922
|
protected
|
923
923
|
|
924
924
|
def apply_command_defaults(command)
|
925
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
926
925
|
command.query['key'] = key unless key.nil?
|
926
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
927
927
|
end
|
928
928
|
end
|
929
929
|
end
|