google-api-client 0.39.5 → 0.40.0
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 +34 -0
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +39 -4
- data/generated/google/apis/apigee_v1/representations.rb +5 -0
- data/generated/google/apis/apigee_v1/service.rb +15 -13
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +34 -0
- data/generated/google/apis/bigquery_v2/representations.rb +3 -0
- data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1/classes.rb +2 -0
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +2 -0
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +3 -3
- data/generated/google/apis/{pagespeedonline_v2.rb → chromeuxreport_v1.rb} +10 -10
- data/generated/google/apis/chromeuxreport_v1/classes.rb +297 -0
- data/generated/google/apis/chromeuxreport_v1/representations.rb +147 -0
- data/generated/google/apis/chromeuxreport_v1/service.rb +92 -0
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +26 -10
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +281 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +17 -0
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +2 -2
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +2 -2
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +23 -7
- data/generated/google/apis/compute_alpha/representations.rb +3 -1
- data/generated/google/apis/compute_alpha/service.rb +671 -671
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1 -1
- data/generated/google/apis/compute_beta/service.rb +591 -591
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +37 -1
- data/generated/google/apis/compute_v1/representations.rb +5 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +2 -4
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +27 -4
- data/generated/google/apis/container_v1beta1/representations.rb +16 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +331 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +164 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +261 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +565 -8
- data/generated/google/apis/dialogflow_v2/representations.rb +238 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +565 -8
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +238 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +44 -0
- data/generated/google/apis/dialogflow_v3alpha1.rb +1 -1
- data/generated/google/apis/dialogflow_v3alpha1/classes.rb +565 -8
- data/generated/google/apis/dialogflow_v3alpha1/representations.rb +238 -0
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +149 -0
- data/generated/google/apis/displayvideo_v1/representations.rb +76 -0
- data/generated/google/apis/displayvideo_v1/service.rb +280 -0
- data/generated/google/apis/fitness_v1.rb +4 -4
- data/generated/google/apis/fitness_v1/classes.rb +185 -158
- data/generated/google/apis/fitness_v1/service.rb +187 -215
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/classes.rb +36 -27
- data/generated/google/apis/healthcare_v1/service.rb +61 -29
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +38 -34
- data/generated/google/apis/healthcare_v1beta1/service.rb +162 -144
- data/generated/google/apis/homegraph_v1.rb +1 -1
- data/generated/google/apis/homegraph_v1/classes.rb +3 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +24 -12
- data/generated/google/apis/iam_v1/service.rb +7 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +7 -0
- data/generated/google/apis/monitoring_v3/representations.rb +1 -0
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +29 -10
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +3 -3
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +3 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +26 -26
- data/generated/google/apis/youtube_v3/service.rb +1 -36
- data/lib/google/apis/version.rb +1 -1
- metadata +7 -11
- data/generated/google/apis/pagespeedonline_v2/classes.rb +0 -621
- data/generated/google/apis/pagespeedonline_v2/representations.rb +0 -273
- data/generated/google/apis/pagespeedonline_v2/service.rb +0 -116
- data/generated/google/apis/pagespeedonline_v4.rb +0 -32
- data/generated/google/apis/pagespeedonline_v4/classes.rb +0 -795
- data/generated/google/apis/pagespeedonline_v4/representations.rb +0 -335
- data/generated/google/apis/pagespeedonline_v4/service.rb +0 -125
|
@@ -20,9 +20,9 @@ require 'google/apis/errors'
|
|
|
20
20
|
module Google
|
|
21
21
|
module Apis
|
|
22
22
|
module FitnessV1
|
|
23
|
-
# Fitness
|
|
23
|
+
# Fitness API
|
|
24
24
|
#
|
|
25
|
-
#
|
|
25
|
+
# The Fitness API for managing users' fitness tracking data.
|
|
26
26
|
#
|
|
27
27
|
# @example
|
|
28
28
|
# require 'google/apis/fitness_v1'
|
|
@@ -30,7 +30,7 @@ module Google
|
|
|
30
30
|
# Fitness = Google::Apis::FitnessV1 # Alias the module
|
|
31
31
|
# service = Fitness::FitnessService.new
|
|
32
32
|
#
|
|
33
|
-
# @see https://developers.google.com/fit/rest/
|
|
33
|
+
# @see https://developers.google.com/fit/rest/v1/get-started
|
|
34
34
|
class FitnessService < Google::Apis::Core::BaseService
|
|
35
35
|
# @return [String]
|
|
36
36
|
# API key. Your API key identifies your project and provides you with API access,
|
|
@@ -38,57 +38,55 @@ module Google
|
|
|
38
38
|
attr_accessor :key
|
|
39
39
|
|
|
40
40
|
# @return [String]
|
|
41
|
-
#
|
|
42
|
-
# characters.
|
|
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
43
|
attr_accessor :quota_user
|
|
44
44
|
|
|
45
|
-
# @return [String]
|
|
46
|
-
# Deprecated. Please use quotaUser instead.
|
|
47
|
-
attr_accessor :user_ip
|
|
48
|
-
|
|
49
45
|
def initialize
|
|
50
|
-
super('https://www.googleapis.com/', '
|
|
46
|
+
super('https://www.googleapis.com/', '')
|
|
51
47
|
@batch_path = 'batch/fitness/v1'
|
|
52
48
|
end
|
|
53
49
|
|
|
54
|
-
# Creates a new data source that is unique across all data sources belonging
|
|
55
|
-
# this user.
|
|
56
|
-
# A data source is a unique source of sensor data. Data sources can expose
|
|
57
|
-
# data coming from hardware sensors on local or companion devices. They
|
|
58
|
-
# expose derived data, created by transforming or merging other data
|
|
59
|
-
# Multiple data sources can exist for the same data type. Every data
|
|
60
|
-
# every dataset inserted into or read from the Fitness API has an
|
|
61
|
-
# data source.
|
|
62
|
-
# Each data source produces a unique stream of dataset updates, with a
|
|
63
|
-
# data source identifier. Not all changes to data source affect the
|
|
64
|
-
# ID, so that data collected by updated versions of the same
|
|
65
|
-
# can still be considered to belong to the same data
|
|
66
|
-
#
|
|
67
|
-
#
|
|
68
|
-
#
|
|
69
|
-
#
|
|
70
|
-
#
|
|
71
|
-
#
|
|
72
|
-
#
|
|
73
|
-
#
|
|
74
|
-
# will
|
|
75
|
-
#
|
|
76
|
-
#
|
|
50
|
+
# Creates a new data source that is unique across all data sources belonging
|
|
51
|
+
# to this user.
|
|
52
|
+
# A data source is a unique source of sensor data. Data sources can expose
|
|
53
|
+
# raw data coming from hardware sensors on local or companion devices. They
|
|
54
|
+
# can also expose derived data, created by transforming or merging other data
|
|
55
|
+
# sources. Multiple data sources can exist for the same data type. Every data
|
|
56
|
+
# point in every dataset inserted into or read from the Fitness API has an
|
|
57
|
+
# associated data source.
|
|
58
|
+
# Each data source produces a unique stream of dataset updates, with a
|
|
59
|
+
# unique data source identifier. Not all changes to data source affect the
|
|
60
|
+
# data stream ID, so that data collected by updated versions of the same
|
|
61
|
+
# application/device can still be considered to belong to the same data
|
|
62
|
+
# source.
|
|
63
|
+
# Data sources are identified using a string generated by the server, based
|
|
64
|
+
# on the contents of the source being created. The <code>dataStreamId</code>
|
|
65
|
+
# field should not be set when invoking this method. It
|
|
66
|
+
# will be automatically generated by the server with the correct format. If
|
|
67
|
+
# a <code>dataStreamId</code> is set, it must match the format that the
|
|
68
|
+
# server would generate. This format is a combination of some fields from the
|
|
69
|
+
# data source, and has a specific order. If it doesn't match, the request
|
|
70
|
+
# will fail with an error.
|
|
71
|
+
# Specifying a DataType which is not a known type (beginning with
|
|
72
|
+
# "com.google.") will create a DataSource with a <em>custom data type</em>.
|
|
73
|
+
# Custom data types are only readable by the application that created them.
|
|
74
|
+
# Custom data types are <strong>deprecated</strong>; use standard data types
|
|
75
|
+
# instead.
|
|
77
76
|
# In addition to the data source fields included in the data source ID, the
|
|
78
|
-
# developer project number that is authenticated when creating the data
|
|
79
|
-
# is included. This developer project number is obfuscated when read
|
|
80
|
-
# other developer reading public data types.
|
|
77
|
+
# developer project number that is authenticated when creating the data
|
|
78
|
+
# source is included. This developer project number is obfuscated when read
|
|
79
|
+
# by any other developer reading public data types.
|
|
81
80
|
# @param [String] user_id
|
|
82
|
-
# Create the data source for the person identified. Use me to
|
|
83
|
-
# authenticated user. Only me is supported at this
|
|
81
|
+
# Create the data source for the person identified. Use <code>me</code> to
|
|
82
|
+
# indicate the authenticated user. Only <code>me</code> is supported at this
|
|
83
|
+
# time.
|
|
84
84
|
# @param [Google::Apis::FitnessV1::DataSource] data_source_object
|
|
85
85
|
# @param [String] fields
|
|
86
86
|
# Selector specifying which fields to include in a partial response.
|
|
87
87
|
# @param [String] quota_user
|
|
88
|
-
#
|
|
89
|
-
# characters.
|
|
90
|
-
# @param [String] user_ip
|
|
91
|
-
# Deprecated. Please use quotaUser instead.
|
|
88
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
89
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
92
90
|
# @param [Google::Apis::RequestOptions] options
|
|
93
91
|
# Request-specific options
|
|
94
92
|
#
|
|
@@ -101,8 +99,8 @@ module Google
|
|
|
101
99
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
102
100
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
103
101
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
104
|
-
def create_user_data_source(user_id, data_source_object = nil, fields: nil, quota_user: nil,
|
|
105
|
-
command = make_simple_command(:post, '{userId}/dataSources', options)
|
|
102
|
+
def create_user_data_source(user_id, data_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
103
|
+
command = make_simple_command(:post, 'fitness/v1/users/{userId}/dataSources', options)
|
|
106
104
|
command.request_representation = Google::Apis::FitnessV1::DataSource::Representation
|
|
107
105
|
command.request_object = data_source_object
|
|
108
106
|
command.response_representation = Google::Apis::FitnessV1::DataSource::Representation
|
|
@@ -110,24 +108,22 @@ module Google
|
|
|
110
108
|
command.params['userId'] = user_id unless user_id.nil?
|
|
111
109
|
command.query['fields'] = fields unless fields.nil?
|
|
112
110
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
113
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
114
111
|
execute_or_queue_command(command, &block)
|
|
115
112
|
end
|
|
116
113
|
|
|
117
|
-
# Deletes the specified data source. The request will fail if the data
|
|
118
|
-
# contains any data points.
|
|
114
|
+
# Deletes the specified data source. The request will fail if the data
|
|
115
|
+
# source contains any data points.
|
|
119
116
|
# @param [String] user_id
|
|
120
|
-
# Retrieve a data source for the person identified. Use me to
|
|
121
|
-
# authenticated user. Only me is supported at this
|
|
117
|
+
# Retrieve a data source for the person identified. Use <code>me</code> to
|
|
118
|
+
# indicate the authenticated user. Only <code>me</code> is supported at this
|
|
119
|
+
# time.
|
|
122
120
|
# @param [String] data_source_id
|
|
123
121
|
# The data stream ID of the data source to delete.
|
|
124
122
|
# @param [String] fields
|
|
125
123
|
# Selector specifying which fields to include in a partial response.
|
|
126
124
|
# @param [String] quota_user
|
|
127
|
-
#
|
|
128
|
-
# characters.
|
|
129
|
-
# @param [String] user_ip
|
|
130
|
-
# Deprecated. Please use quotaUser instead.
|
|
125
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
126
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
131
127
|
# @param [Google::Apis::RequestOptions] options
|
|
132
128
|
# Request-specific options
|
|
133
129
|
#
|
|
@@ -140,31 +136,29 @@ module Google
|
|
|
140
136
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
141
137
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
142
138
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
143
|
-
def delete_user_data_source(user_id, data_source_id, fields: nil, quota_user: nil,
|
|
144
|
-
command = make_simple_command(:delete, '{userId}/dataSources/{dataSourceId}', options)
|
|
139
|
+
def delete_user_data_source(user_id, data_source_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
140
|
+
command = make_simple_command(:delete, 'fitness/v1/users/{userId}/dataSources/{dataSourceId}', options)
|
|
145
141
|
command.response_representation = Google::Apis::FitnessV1::DataSource::Representation
|
|
146
142
|
command.response_class = Google::Apis::FitnessV1::DataSource
|
|
147
143
|
command.params['userId'] = user_id unless user_id.nil?
|
|
148
144
|
command.params['dataSourceId'] = data_source_id unless data_source_id.nil?
|
|
149
145
|
command.query['fields'] = fields unless fields.nil?
|
|
150
146
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
151
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
152
147
|
execute_or_queue_command(command, &block)
|
|
153
148
|
end
|
|
154
149
|
|
|
155
150
|
# Returns the specified data source.
|
|
156
151
|
# @param [String] user_id
|
|
157
|
-
# Retrieve a data source for the person identified. Use me to
|
|
158
|
-
# authenticated user. Only me is supported at this
|
|
152
|
+
# Retrieve a data source for the person identified. Use <code>me</code> to
|
|
153
|
+
# indicate the authenticated user. Only <code>me</code> is supported at this
|
|
154
|
+
# time.
|
|
159
155
|
# @param [String] data_source_id
|
|
160
156
|
# The data stream ID of the data source to retrieve.
|
|
161
157
|
# @param [String] fields
|
|
162
158
|
# Selector specifying which fields to include in a partial response.
|
|
163
159
|
# @param [String] quota_user
|
|
164
|
-
#
|
|
165
|
-
# characters.
|
|
166
|
-
# @param [String] user_ip
|
|
167
|
-
# Deprecated. Please use quotaUser instead.
|
|
160
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
161
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
168
162
|
# @param [Google::Apis::RequestOptions] options
|
|
169
163
|
# Request-specific options
|
|
170
164
|
#
|
|
@@ -177,34 +171,33 @@ module Google
|
|
|
177
171
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
178
172
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
179
173
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
180
|
-
def get_user_data_source(user_id, data_source_id, fields: nil, quota_user: nil,
|
|
181
|
-
command = make_simple_command(:get, '{userId}/dataSources/{dataSourceId}', options)
|
|
174
|
+
def get_user_data_source(user_id, data_source_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
175
|
+
command = make_simple_command(:get, 'fitness/v1/users/{userId}/dataSources/{dataSourceId}', options)
|
|
182
176
|
command.response_representation = Google::Apis::FitnessV1::DataSource::Representation
|
|
183
177
|
command.response_class = Google::Apis::FitnessV1::DataSource
|
|
184
178
|
command.params['userId'] = user_id unless user_id.nil?
|
|
185
179
|
command.params['dataSourceId'] = data_source_id unless data_source_id.nil?
|
|
186
180
|
command.query['fields'] = fields unless fields.nil?
|
|
187
181
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
188
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
189
182
|
execute_or_queue_command(command, &block)
|
|
190
183
|
end
|
|
191
184
|
|
|
192
185
|
# Lists all data sources that are visible to the developer, using the OAuth
|
|
193
|
-
# scopes provided. The list is not exhaustive; the user may have private
|
|
194
|
-
# sources that are only visible to other developers, or calls using
|
|
186
|
+
# scopes provided. The list is not exhaustive; the user may have private
|
|
187
|
+
# data sources that are only visible to other developers, or calls using
|
|
188
|
+
# other scopes.
|
|
195
189
|
# @param [String] user_id
|
|
196
|
-
# List data sources for the person identified. Use me to
|
|
197
|
-
# authenticated user. Only me is supported at this
|
|
190
|
+
# List data sources for the person identified. Use <code>me</code> to
|
|
191
|
+
# indicate the authenticated user. Only <code>me</code> is supported at this
|
|
192
|
+
# time.
|
|
198
193
|
# @param [Array<String>, String] data_type_name
|
|
199
|
-
# The names of data types to include in the list. If not specified, all
|
|
200
|
-
# sources will be returned.
|
|
194
|
+
# The names of data types to include in the list. If not specified, all
|
|
195
|
+
# data sources will be returned.
|
|
201
196
|
# @param [String] fields
|
|
202
197
|
# Selector specifying which fields to include in a partial response.
|
|
203
198
|
# @param [String] quota_user
|
|
204
|
-
#
|
|
205
|
-
# characters.
|
|
206
|
-
# @param [String] user_ip
|
|
207
|
-
# Deprecated. Please use quotaUser instead.
|
|
199
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
200
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
208
201
|
# @param [Google::Apis::RequestOptions] options
|
|
209
202
|
# Request-specific options
|
|
210
203
|
#
|
|
@@ -217,35 +210,34 @@ module Google
|
|
|
217
210
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
218
211
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
219
212
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
220
|
-
def list_user_data_sources(user_id, data_type_name: nil, fields: nil, quota_user: nil,
|
|
221
|
-
command = make_simple_command(:get, '{userId}/dataSources', options)
|
|
213
|
+
def list_user_data_sources(user_id, data_type_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
214
|
+
command = make_simple_command(:get, 'fitness/v1/users/{userId}/dataSources', options)
|
|
222
215
|
command.response_representation = Google::Apis::FitnessV1::ListDataSourcesResponse::Representation
|
|
223
216
|
command.response_class = Google::Apis::FitnessV1::ListDataSourcesResponse
|
|
224
217
|
command.params['userId'] = user_id unless user_id.nil?
|
|
225
218
|
command.query['dataTypeName'] = data_type_name unless data_type_name.nil?
|
|
226
219
|
command.query['fields'] = fields unless fields.nil?
|
|
227
220
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
228
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
229
221
|
execute_or_queue_command(command, &block)
|
|
230
222
|
end
|
|
231
223
|
|
|
232
|
-
# Updates the specified data source. The dataStreamId
|
|
233
|
-
# dataStreamName
|
|
234
|
-
#
|
|
235
|
-
#
|
|
224
|
+
# Updates the specified data source. The <code>dataStreamId</code>,
|
|
225
|
+
# <code>dataType</code>, <code>type</code>, <code>dataStreamName</code>, and
|
|
226
|
+
# <code>device</code> properties with the exception of <code>version</code>,
|
|
227
|
+
# cannot be modified.
|
|
228
|
+
# Data sources are identified by their <code>dataStreamId</code>.
|
|
236
229
|
# @param [String] user_id
|
|
237
|
-
# Update the data source for the person identified. Use me to
|
|
238
|
-
# authenticated user. Only me is supported at this
|
|
230
|
+
# Update the data source for the person identified. Use <code>me</code> to
|
|
231
|
+
# indicate the authenticated user. Only <code>me</code> is supported at this
|
|
232
|
+
# time.
|
|
239
233
|
# @param [String] data_source_id
|
|
240
234
|
# The data stream ID of the data source to update.
|
|
241
235
|
# @param [Google::Apis::FitnessV1::DataSource] data_source_object
|
|
242
236
|
# @param [String] fields
|
|
243
237
|
# Selector specifying which fields to include in a partial response.
|
|
244
238
|
# @param [String] quota_user
|
|
245
|
-
#
|
|
246
|
-
# characters.
|
|
247
|
-
# @param [String] user_ip
|
|
248
|
-
# Deprecated. Please use quotaUser instead.
|
|
239
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
240
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
249
241
|
# @param [Google::Apis::RequestOptions] options
|
|
250
242
|
# Request-specific options
|
|
251
243
|
#
|
|
@@ -258,8 +250,8 @@ module Google
|
|
|
258
250
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
259
251
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
260
252
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
261
|
-
def update_user_data_source(user_id, data_source_id, data_source_object = nil, fields: nil, quota_user: nil,
|
|
262
|
-
command = make_simple_command(:put, '{userId}/dataSources/{dataSourceId}', options)
|
|
253
|
+
def update_user_data_source(user_id, data_source_id, data_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
254
|
+
command = make_simple_command(:put, 'fitness/v1/users/{userId}/dataSources/{dataSourceId}', options)
|
|
263
255
|
command.request_representation = Google::Apis::FitnessV1::DataSource::Representation
|
|
264
256
|
command.request_object = data_source_object
|
|
265
257
|
command.response_representation = Google::Apis::FitnessV1::DataSource::Representation
|
|
@@ -268,30 +260,27 @@ module Google
|
|
|
268
260
|
command.params['dataSourceId'] = data_source_id unless data_source_id.nil?
|
|
269
261
|
command.query['fields'] = fields unless fields.nil?
|
|
270
262
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
271
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
272
263
|
execute_or_queue_command(command, &block)
|
|
273
264
|
end
|
|
274
265
|
|
|
275
266
|
# Queries for user's data point changes for a particular data source.
|
|
276
267
|
# @param [String] user_id
|
|
277
|
-
# List data points for the person identified. Use me to indicate
|
|
278
|
-
# authenticated user. Only me is supported at this time.
|
|
268
|
+
# List data points for the person identified. Use <code>me</code> to indicate
|
|
269
|
+
# the authenticated user. Only <code>me</code> is supported at this time.
|
|
279
270
|
# @param [String] data_source_id
|
|
280
271
|
# The data stream ID of the data source that created the dataset.
|
|
281
272
|
# @param [Fixnum] limit
|
|
282
|
-
# If specified, no more than this many data point changes will be included
|
|
283
|
-
# the response.
|
|
273
|
+
# If specified, no more than this many data point changes will be included
|
|
274
|
+
# in the response.
|
|
284
275
|
# @param [String] page_token
|
|
285
|
-
# The continuation token, which is used to page through large result sets.
|
|
286
|
-
# get the next page of results, set this parameter to the value of
|
|
287
|
-
# from the previous response.
|
|
276
|
+
# The continuation token, which is used to page through large result sets.
|
|
277
|
+
# To get the next page of results, set this parameter to the value of
|
|
278
|
+
# <code>nextPageToken</code> from the previous response.
|
|
288
279
|
# @param [String] fields
|
|
289
280
|
# Selector specifying which fields to include in a partial response.
|
|
290
281
|
# @param [String] quota_user
|
|
291
|
-
#
|
|
292
|
-
# characters.
|
|
293
|
-
# @param [String] user_ip
|
|
294
|
-
# Deprecated. Please use quotaUser instead.
|
|
282
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
283
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
295
284
|
# @param [Google::Apis::RequestOptions] options
|
|
296
285
|
# Request-specific options
|
|
297
286
|
#
|
|
@@ -304,8 +293,8 @@ module Google
|
|
|
304
293
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
305
294
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
306
295
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
307
|
-
def list_user_data_source_data_point_changes(user_id, data_source_id, limit: nil, page_token: nil, fields: nil, quota_user: nil,
|
|
308
|
-
command = make_simple_command(:get, '{userId}/dataSources/{dataSourceId}/dataPointChanges', options)
|
|
296
|
+
def list_user_data_source_data_point_changes(user_id, data_source_id, limit: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
297
|
+
command = make_simple_command(:get, 'fitness/v1/users/{userId}/dataSources/{dataSourceId}/dataPointChanges', options)
|
|
309
298
|
command.response_representation = Google::Apis::FitnessV1::ListDataPointChangesResponse::Representation
|
|
310
299
|
command.response_class = Google::Apis::FitnessV1::ListDataPointChangesResponse
|
|
311
300
|
command.params['userId'] = user_id unless user_id.nil?
|
|
@@ -314,26 +303,26 @@ module Google
|
|
|
314
303
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
315
304
|
command.query['fields'] = fields unless fields.nil?
|
|
316
305
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
317
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
318
306
|
execute_or_queue_command(command, &block)
|
|
319
307
|
end
|
|
320
308
|
|
|
321
|
-
# Performs an inclusive delete of all data points whose start and end times
|
|
322
|
-
# any overlap with the time range specified by the dataset ID. For most
|
|
323
|
-
# types, the entire data point will be deleted. For data types where the
|
|
324
|
-
# span represents a consistent value (such as
|
|
325
|
-
# a data point straddles
|
|
326
|
-
#
|
|
309
|
+
# Performs an inclusive delete of all data points whose start and end times
|
|
310
|
+
# have any overlap with the time range specified by the dataset ID. For most
|
|
311
|
+
# data types, the entire data point will be deleted. For data types where the
|
|
312
|
+
# time span represents a consistent value (such as
|
|
313
|
+
# <code>com.google.activity.segment</code>), and a data point straddles
|
|
314
|
+
# either end point of the dataset, only the overlapping portion of the data
|
|
315
|
+
# point will be deleted.
|
|
327
316
|
# @param [String] user_id
|
|
328
|
-
# Delete a dataset for the person identified. Use me to indicate
|
|
329
|
-
# authenticated user. Only me is supported at this time.
|
|
317
|
+
# Delete a dataset for the person identified. Use <code>me</code> to indicate
|
|
318
|
+
# the authenticated user. Only <code>me</code> is supported at this time.
|
|
330
319
|
# @param [String] data_source_id
|
|
331
320
|
# The data stream ID of the data source that created the dataset.
|
|
332
321
|
# @param [String] dataset_id
|
|
333
322
|
# Dataset identifier that is a composite of the minimum data point start time
|
|
334
|
-
# and maximum data point end time represented as nanoseconds from the epoch.
|
|
335
|
-
# ID is formatted like: "startTime
|
|
336
|
-
# bit integers.
|
|
323
|
+
# and maximum data point end time represented as nanoseconds from the epoch.
|
|
324
|
+
# The ID is formatted like: "<var>startTime</var>-<var>endTime</var>"
|
|
325
|
+
# where <var>startTime</var> and <var>endTime</var> are 64 bit integers.
|
|
337
326
|
# @param [Fixnum] current_time_millis
|
|
338
327
|
# The client's current time in milliseconds since epoch.
|
|
339
328
|
# @param [Fixnum] modified_time_millis
|
|
@@ -341,10 +330,8 @@ module Google
|
|
|
341
330
|
# @param [String] fields
|
|
342
331
|
# Selector specifying which fields to include in a partial response.
|
|
343
332
|
# @param [String] quota_user
|
|
344
|
-
#
|
|
345
|
-
# characters.
|
|
346
|
-
# @param [String] user_ip
|
|
347
|
-
# Deprecated. Please use quotaUser instead.
|
|
333
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
334
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
348
335
|
# @param [Google::Apis::RequestOptions] options
|
|
349
336
|
# Request-specific options
|
|
350
337
|
#
|
|
@@ -357,8 +344,8 @@ module Google
|
|
|
357
344
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
358
345
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
359
346
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
360
|
-
def delete_user_data_source_dataset(user_id, data_source_id, dataset_id, current_time_millis: nil, modified_time_millis: nil, fields: nil, quota_user: nil,
|
|
361
|
-
command = make_simple_command(:delete, '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', options)
|
|
347
|
+
def delete_user_data_source_dataset(user_id, data_source_id, dataset_id, current_time_millis: nil, modified_time_millis: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
348
|
+
command = make_simple_command(:delete, 'fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', options)
|
|
362
349
|
command.params['userId'] = user_id unless user_id.nil?
|
|
363
350
|
command.params['dataSourceId'] = data_source_id unless data_source_id.nil?
|
|
364
351
|
command.params['datasetId'] = dataset_id unless dataset_id.nil?
|
|
@@ -366,42 +353,40 @@ module Google
|
|
|
366
353
|
command.query['modifiedTimeMillis'] = modified_time_millis unless modified_time_millis.nil?
|
|
367
354
|
command.query['fields'] = fields unless fields.nil?
|
|
368
355
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
369
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
370
356
|
execute_or_queue_command(command, &block)
|
|
371
357
|
end
|
|
372
358
|
|
|
373
|
-
# Returns a dataset containing all data points whose start and end times
|
|
374
|
-
# with the specified range of the dataset minimum start time and
|
|
375
|
-
# time. Specifically, any data point whose start time is less
|
|
376
|
-
# the dataset end time and whose end time is greater than or
|
|
377
|
-
# dataset start time.
|
|
359
|
+
# Returns a dataset containing all data points whose start and end times
|
|
360
|
+
# overlap with the specified range of the dataset minimum start time and
|
|
361
|
+
# maximum end time. Specifically, any data point whose start time is less
|
|
362
|
+
# than or equal to the dataset end time and whose end time is greater than or
|
|
363
|
+
# equal to the dataset start time.
|
|
378
364
|
# @param [String] user_id
|
|
379
|
-
# Retrieve a dataset for the person identified. Use me to
|
|
380
|
-
# authenticated user. Only me is supported at this
|
|
365
|
+
# Retrieve a dataset for the person identified. Use <code>me</code> to
|
|
366
|
+
# indicate the authenticated user. Only <code>me</code> is supported at this
|
|
367
|
+
# time.
|
|
381
368
|
# @param [String] data_source_id
|
|
382
369
|
# The data stream ID of the data source that created the dataset.
|
|
383
370
|
# @param [String] dataset_id
|
|
384
371
|
# Dataset identifier that is a composite of the minimum data point start time
|
|
385
|
-
# and maximum data point end time represented as nanoseconds from the epoch.
|
|
386
|
-
# ID is formatted like: "startTime
|
|
387
|
-
# bit integers.
|
|
372
|
+
# and maximum data point end time represented as nanoseconds from the epoch.
|
|
373
|
+
# The ID is formatted like: "<var>startTime</var>-<var>endTime</var>"
|
|
374
|
+
# where <var>startTime</var> and <var>endTime</var> are 64 bit integers.
|
|
388
375
|
# @param [Fixnum] limit
|
|
389
376
|
# If specified, no more than this many data points will be included in the
|
|
390
|
-
# dataset. If there are more data points in the dataset, nextPageToken
|
|
391
|
-
# set in the dataset response.
|
|
377
|
+
# dataset. If there are more data points in the dataset, nextPageToken
|
|
378
|
+
# will be set in the dataset response.
|
|
392
379
|
# @param [String] page_token
|
|
393
|
-
# The continuation token, which is used to page through large datasets.
|
|
394
|
-
# the next page of a dataset, set this parameter to the value of
|
|
395
|
-
# from the previous response. Each subsequent
|
|
396
|
-
# with data point end timestamps that are
|
|
397
|
-
# previous partial response.
|
|
380
|
+
# The continuation token, which is used to page through large datasets.
|
|
381
|
+
# To get the next page of a dataset, set this parameter to the value of
|
|
382
|
+
# <code>nextPageToken</code> from the previous response. Each subsequent
|
|
383
|
+
# call will yield a partial dataset with data point end timestamps that are
|
|
384
|
+
# strictly smaller than those in the previous partial response.
|
|
398
385
|
# @param [String] fields
|
|
399
386
|
# Selector specifying which fields to include in a partial response.
|
|
400
387
|
# @param [String] quota_user
|
|
401
|
-
#
|
|
402
|
-
# characters.
|
|
403
|
-
# @param [String] user_ip
|
|
404
|
-
# Deprecated. Please use quotaUser instead.
|
|
388
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
389
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
405
390
|
# @param [Google::Apis::RequestOptions] options
|
|
406
391
|
# Request-specific options
|
|
407
392
|
#
|
|
@@ -414,8 +399,8 @@ module Google
|
|
|
414
399
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
415
400
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
416
401
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
417
|
-
def get_user_data_source_dataset(user_id, data_source_id, dataset_id, limit: nil, page_token: nil, fields: nil, quota_user: nil,
|
|
418
|
-
command = make_simple_command(:get, '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', options)
|
|
402
|
+
def get_user_data_source_dataset(user_id, data_source_id, dataset_id, limit: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
403
|
+
command = make_simple_command(:get, 'fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', options)
|
|
419
404
|
command.response_representation = Google::Apis::FitnessV1::Dataset::Representation
|
|
420
405
|
command.response_class = Google::Apis::FitnessV1::Dataset
|
|
421
406
|
command.params['userId'] = user_id unless user_id.nil?
|
|
@@ -425,36 +410,33 @@ module Google
|
|
|
425
410
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
426
411
|
command.query['fields'] = fields unless fields.nil?
|
|
427
412
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
428
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
429
413
|
execute_or_queue_command(command, &block)
|
|
430
414
|
end
|
|
431
415
|
|
|
432
|
-
# Adds data points to a dataset. The dataset need not be previously created.
|
|
433
|
-
# points within the given dataset will be returned with subsquent calls
|
|
434
|
-
# retrieve this dataset. Data points can belong to more than one dataset.
|
|
435
|
-
# method does not use patch semantics.
|
|
416
|
+
# Adds data points to a dataset. The dataset need not be previously created.
|
|
417
|
+
# All points within the given dataset will be returned with subsquent calls
|
|
418
|
+
# to retrieve this dataset. Data points can belong to more than one dataset.
|
|
419
|
+
# This method does not use patch semantics.
|
|
436
420
|
# @param [String] user_id
|
|
437
|
-
# Patch a dataset for the person identified. Use me to indicate
|
|
438
|
-
# authenticated user. Only me is supported at this time.
|
|
421
|
+
# Patch a dataset for the person identified. Use <code>me</code> to indicate
|
|
422
|
+
# the authenticated user. Only <code>me</code> is supported at this time.
|
|
439
423
|
# @param [String] data_source_id
|
|
440
424
|
# The data stream ID of the data source that created the dataset.
|
|
441
425
|
# @param [String] dataset_id
|
|
442
426
|
# Dataset identifier that is a composite of the minimum data point start time
|
|
443
|
-
# and maximum data point end time represented as nanoseconds from the epoch.
|
|
444
|
-
# ID is formatted like: "startTime
|
|
445
|
-
# bit integers.
|
|
427
|
+
# and maximum data point end time represented as nanoseconds from the epoch.
|
|
428
|
+
# The ID is formatted like: "<var>startTime</var>-<var>endTime</var>"
|
|
429
|
+
# where <var>startTime</var> and <var>endTime</var> are 64 bit integers.
|
|
446
430
|
# @param [Google::Apis::FitnessV1::Dataset] dataset_object
|
|
447
431
|
# @param [Fixnum] current_time_millis
|
|
448
432
|
# The client's current time in milliseconds since epoch. Note that the
|
|
449
|
-
# minStartTimeNs and maxEndTimeNs properties in
|
|
450
|
-
# nanoseconds instead of milliseconds.
|
|
433
|
+
# <code>minStartTimeNs</code> and <code>maxEndTimeNs</code> properties in
|
|
434
|
+
# the request body are in nanoseconds instead of milliseconds.
|
|
451
435
|
# @param [String] fields
|
|
452
436
|
# Selector specifying which fields to include in a partial response.
|
|
453
437
|
# @param [String] quota_user
|
|
454
|
-
#
|
|
455
|
-
# characters.
|
|
456
|
-
# @param [String] user_ip
|
|
457
|
-
# Deprecated. Please use quotaUser instead.
|
|
438
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
439
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
458
440
|
# @param [Google::Apis::RequestOptions] options
|
|
459
441
|
# Request-specific options
|
|
460
442
|
#
|
|
@@ -467,8 +449,8 @@ module Google
|
|
|
467
449
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
468
450
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
469
451
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
470
|
-
def patch_user_data_source_dataset(user_id, data_source_id, dataset_id, dataset_object = nil, current_time_millis: nil, fields: nil, quota_user: nil,
|
|
471
|
-
command = make_simple_command(:patch, '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', options)
|
|
452
|
+
def patch_user_data_source_dataset(user_id, data_source_id, dataset_id, dataset_object = nil, current_time_millis: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
453
|
+
command = make_simple_command(:patch, 'fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', options)
|
|
472
454
|
command.request_representation = Google::Apis::FitnessV1::Dataset::Representation
|
|
473
455
|
command.request_object = dataset_object
|
|
474
456
|
command.response_representation = Google::Apis::FitnessV1::Dataset::Representation
|
|
@@ -479,7 +461,6 @@ module Google
|
|
|
479
461
|
command.query['currentTimeMillis'] = current_time_millis unless current_time_millis.nil?
|
|
480
462
|
command.query['fields'] = fields unless fields.nil?
|
|
481
463
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
482
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
483
464
|
execute_or_queue_command(command, &block)
|
|
484
465
|
end
|
|
485
466
|
|
|
@@ -487,16 +468,14 @@ module Google
|
|
|
487
468
|
# type of boundary. Multiple data sets of multiple types and from multiple
|
|
488
469
|
# sources can be aggregated into exactly one bucket type per request.
|
|
489
470
|
# @param [String] user_id
|
|
490
|
-
# Aggregate data for the person identified. Use me to indicate
|
|
491
|
-
# user. Only me is supported at this time.
|
|
471
|
+
# Aggregate data for the person identified. Use <code>me</code> to indicate
|
|
472
|
+
# the authenticated user. Only <code>me</code> is supported at this time.
|
|
492
473
|
# @param [Google::Apis::FitnessV1::AggregateRequest] aggregate_request_object
|
|
493
474
|
# @param [String] fields
|
|
494
475
|
# Selector specifying which fields to include in a partial response.
|
|
495
476
|
# @param [String] quota_user
|
|
496
|
-
#
|
|
497
|
-
# characters.
|
|
498
|
-
# @param [String] user_ip
|
|
499
|
-
# Deprecated. Please use quotaUser instead.
|
|
477
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
478
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
500
479
|
# @param [Google::Apis::RequestOptions] options
|
|
501
480
|
# Request-specific options
|
|
502
481
|
#
|
|
@@ -509,8 +488,8 @@ module Google
|
|
|
509
488
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
510
489
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
511
490
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
512
|
-
def aggregate_dataset(user_id, aggregate_request_object = nil, fields: nil, quota_user: nil,
|
|
513
|
-
command = make_simple_command(:post, '{userId}/dataset:aggregate', options)
|
|
491
|
+
def aggregate_dataset(user_id, aggregate_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
492
|
+
command = make_simple_command(:post, 'fitness/v1/users/{userId}/dataset:aggregate', options)
|
|
514
493
|
command.request_representation = Google::Apis::FitnessV1::AggregateRequest::Representation
|
|
515
494
|
command.request_object = aggregate_request_object
|
|
516
495
|
command.response_representation = Google::Apis::FitnessV1::AggregateResponse::Representation
|
|
@@ -518,14 +497,13 @@ module Google
|
|
|
518
497
|
command.params['userId'] = user_id unless user_id.nil?
|
|
519
498
|
command.query['fields'] = fields unless fields.nil?
|
|
520
499
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
521
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
522
500
|
execute_or_queue_command(command, &block)
|
|
523
501
|
end
|
|
524
502
|
|
|
525
503
|
# Deletes a session specified by the given session ID.
|
|
526
504
|
# @param [String] user_id
|
|
527
|
-
# Delete a session for the person identified. Use me to indicate
|
|
528
|
-
# authenticated user. Only me is supported at this time.
|
|
505
|
+
# Delete a session for the person identified. Use <code>me</code> to indicate
|
|
506
|
+
# the authenticated user. Only <code>me</code> is supported at this time.
|
|
529
507
|
# @param [String] session_id
|
|
530
508
|
# The ID of the session to be deleted.
|
|
531
509
|
# @param [Fixnum] current_time_millis
|
|
@@ -533,10 +511,8 @@ module Google
|
|
|
533
511
|
# @param [String] fields
|
|
534
512
|
# Selector specifying which fields to include in a partial response.
|
|
535
513
|
# @param [String] quota_user
|
|
536
|
-
#
|
|
537
|
-
# characters.
|
|
538
|
-
# @param [String] user_ip
|
|
539
|
-
# Deprecated. Please use quotaUser instead.
|
|
514
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
515
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
540
516
|
# @param [Google::Apis::RequestOptions] options
|
|
541
517
|
# Request-specific options
|
|
542
518
|
#
|
|
@@ -549,48 +525,49 @@ module Google
|
|
|
549
525
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
550
526
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
551
527
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
552
|
-
def delete_user_session(user_id, session_id, current_time_millis: nil, fields: nil, quota_user: nil,
|
|
553
|
-
command = make_simple_command(:delete, '{userId}/sessions/{sessionId}', options)
|
|
528
|
+
def delete_user_session(user_id, session_id, current_time_millis: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
529
|
+
command = make_simple_command(:delete, 'fitness/v1/users/{userId}/sessions/{sessionId}', options)
|
|
554
530
|
command.params['userId'] = user_id unless user_id.nil?
|
|
555
531
|
command.params['sessionId'] = session_id unless session_id.nil?
|
|
556
532
|
command.query['currentTimeMillis'] = current_time_millis unless current_time_millis.nil?
|
|
557
533
|
command.query['fields'] = fields unless fields.nil?
|
|
558
534
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
559
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
560
535
|
execute_or_queue_command(command, &block)
|
|
561
536
|
end
|
|
562
537
|
|
|
563
538
|
# Lists sessions previously created.
|
|
564
539
|
# @param [String] user_id
|
|
565
|
-
# List sessions for the person identified. Use me to indicate
|
|
566
|
-
# user. Only me is supported at this time.
|
|
540
|
+
# List sessions for the person identified. Use <code>me</code> to indicate
|
|
541
|
+
# the authenticated user. Only <code>me</code> is supported at this time.
|
|
567
542
|
# @param [Array<Fixnum>, Fixnum] activity_type
|
|
568
543
|
# If non-empty, only sessions with these activity types should be returned.
|
|
569
544
|
# @param [String] end_time
|
|
570
|
-
# An RFC3339 timestamp.
|
|
571
|
-
# will be included in
|
|
545
|
+
# An <a href="https://www.ietf.org/rfc/rfc3339.txt">RFC3339</a> timestamp.
|
|
546
|
+
# Only sessions ending between the start and end times will be included in
|
|
547
|
+
# the response. If this time is omitted but <var>startTime</var> is
|
|
548
|
+
# specified, all sessions from <var>startTime</var> to the end of time will
|
|
549
|
+
# be returned.
|
|
572
550
|
# @param [Boolean] include_deleted
|
|
573
|
-
# If true,
|
|
574
|
-
#
|
|
575
|
-
# fields.
|
|
551
|
+
# If true, and if both <var>startTime</var> and <var>endTime</var> are
|
|
552
|
+
# omitted, session deletions will be returned.
|
|
576
553
|
# @param [String] page_token
|
|
577
|
-
# The continuation token, which is used for incremental syncing.
|
|
578
|
-
# batch of changes, set this parameter to the value of
|
|
579
|
-
# previous response.
|
|
580
|
-
#
|
|
581
|
-
#
|
|
582
|
-
# time, end time, and the page token is specified, sessions modified in the last
|
|
554
|
+
# The continuation token, which is used for incremental syncing.
|
|
555
|
+
# To get the next batch of changes, set this parameter to the value of
|
|
556
|
+
# <code>nextPageToken</code> from the previous response. The page token is
|
|
557
|
+
# ignored if either start or end time is specified. If none of start time,
|
|
558
|
+
# end time, and the page token is specified, sessions modified in the last
|
|
583
559
|
# 30 days are returned.
|
|
584
560
|
# @param [String] start_time
|
|
585
|
-
# An RFC3339 timestamp.
|
|
586
|
-
# will be included in
|
|
561
|
+
# An <a href="https://www.ietf.org/rfc/rfc3339.txt">RFC3339</a> timestamp.
|
|
562
|
+
# Only sessions ending between the start and end times will be included in
|
|
563
|
+
# the response. If this time is omitted but <var>endTime</var> is specified,
|
|
564
|
+
# all sessions from the start of time up to <var>endTime</var> will be
|
|
565
|
+
# returned.
|
|
587
566
|
# @param [String] fields
|
|
588
567
|
# Selector specifying which fields to include in a partial response.
|
|
589
568
|
# @param [String] quota_user
|
|
590
|
-
#
|
|
591
|
-
# characters.
|
|
592
|
-
# @param [String] user_ip
|
|
593
|
-
# Deprecated. Please use quotaUser instead.
|
|
569
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
570
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
594
571
|
# @param [Google::Apis::RequestOptions] options
|
|
595
572
|
# Request-specific options
|
|
596
573
|
#
|
|
@@ -603,8 +580,8 @@ module Google
|
|
|
603
580
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
604
581
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
605
582
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
606
|
-
def list_user_sessions(user_id, activity_type: nil, end_time: nil, include_deleted: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil,
|
|
607
|
-
command = make_simple_command(:get, '{userId}/sessions', options)
|
|
583
|
+
def list_user_sessions(user_id, activity_type: nil, end_time: nil, include_deleted: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
584
|
+
command = make_simple_command(:get, 'fitness/v1/users/{userId}/sessions', options)
|
|
608
585
|
command.response_representation = Google::Apis::FitnessV1::ListSessionsResponse::Representation
|
|
609
586
|
command.response_class = Google::Apis::FitnessV1::ListSessionsResponse
|
|
610
587
|
command.params['userId'] = user_id unless user_id.nil?
|
|
@@ -615,14 +592,13 @@ module Google
|
|
|
615
592
|
command.query['startTime'] = start_time unless start_time.nil?
|
|
616
593
|
command.query['fields'] = fields unless fields.nil?
|
|
617
594
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
618
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
619
595
|
execute_or_queue_command(command, &block)
|
|
620
596
|
end
|
|
621
597
|
|
|
622
598
|
# Updates or insert a given session.
|
|
623
599
|
# @param [String] user_id
|
|
624
|
-
# Create sessions for the person identified. Use me to indicate
|
|
625
|
-
# authenticated user. Only me is supported at this time.
|
|
600
|
+
# Create sessions for the person identified. Use <code>me</code> to indicate
|
|
601
|
+
# the authenticated user. Only <code>me</code> is supported at this time.
|
|
626
602
|
# @param [String] session_id
|
|
627
603
|
# The ID of the session to be created.
|
|
628
604
|
# @param [Google::Apis::FitnessV1::Session] session_object
|
|
@@ -631,10 +607,8 @@ module Google
|
|
|
631
607
|
# @param [String] fields
|
|
632
608
|
# Selector specifying which fields to include in a partial response.
|
|
633
609
|
# @param [String] quota_user
|
|
634
|
-
#
|
|
635
|
-
# characters.
|
|
636
|
-
# @param [String] user_ip
|
|
637
|
-
# Deprecated. Please use quotaUser instead.
|
|
610
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
611
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
638
612
|
# @param [Google::Apis::RequestOptions] options
|
|
639
613
|
# Request-specific options
|
|
640
614
|
#
|
|
@@ -647,8 +621,8 @@ module Google
|
|
|
647
621
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
648
622
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
649
623
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
650
|
-
def update_user_session(user_id, session_id, session_object = nil, current_time_millis: nil, fields: nil, quota_user: nil,
|
|
651
|
-
command = make_simple_command(:put, '{userId}/sessions/{sessionId}', options)
|
|
624
|
+
def update_user_session(user_id, session_id, session_object = nil, current_time_millis: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
625
|
+
command = make_simple_command(:put, 'fitness/v1/users/{userId}/sessions/{sessionId}', options)
|
|
652
626
|
command.request_representation = Google::Apis::FitnessV1::Session::Representation
|
|
653
627
|
command.request_object = session_object
|
|
654
628
|
command.response_representation = Google::Apis::FitnessV1::Session::Representation
|
|
@@ -658,7 +632,6 @@ module Google
|
|
|
658
632
|
command.query['currentTimeMillis'] = current_time_millis unless current_time_millis.nil?
|
|
659
633
|
command.query['fields'] = fields unless fields.nil?
|
|
660
634
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
661
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
662
635
|
execute_or_queue_command(command, &block)
|
|
663
636
|
end
|
|
664
637
|
|
|
@@ -667,7 +640,6 @@ module Google
|
|
|
667
640
|
def apply_command_defaults(command)
|
|
668
641
|
command.query['key'] = key unless key.nil?
|
|
669
642
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
670
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
671
643
|
end
|
|
672
644
|
end
|
|
673
645
|
end
|