google-api-client 0.9.8 → 0.9.15
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 +30 -0
- data/Gemfile +9 -1
- data/README.md +10 -2
- data/api_names.yaml +61 -110
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +160 -9
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +46 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +6 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
- data/generated/google/apis/admin_directory_v1/service.rb +2 -2
- data/generated/google/apis/admin_reports_v1.rb +3 -3
- data/generated/google/apis/admin_reports_v1/service.rb +2 -2
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +371 -1
- data/generated/google/apis/analytics_v3/representations.rb +135 -0
- data/generated/google/apis/analytics_v3/service.rb +218 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +722 -48
- data/generated/google/apis/androidenterprise_v1/representations.rb +305 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +1180 -146
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +9 -8
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +430 -288
- data/generated/google/apis/appengine_v1beta5/representations.rb +84 -10
- data/generated/google/apis/appengine_v1beta5/service.rb +285 -25
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +254 -6
- data/generated/google/apis/bigquery_v2/representations.rb +85 -0
- data/generated/google/apis/bigquery_v2/service.rb +8 -2
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +77 -0
- data/generated/google/apis/books_v1/representations.rb +34 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +16 -4
- data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
- data/generated/google/apis/civicinfo_v2/service.rb +8 -2
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +176 -37
- data/generated/google/apis/classroom_v1/representations.rb +73 -9
- data/generated/google/apis/classroom_v1/service.rb +392 -37
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +320 -12
- data/generated/google/apis/cloudbuild_v1/representations.rb +136 -2
- data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
- data/generated/google/apis/clouddebugger_v2.rb +3 -6
- data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +157 -3
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +33 -0
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +60 -21
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +22 -5
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +2 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +61 -39
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1620 -199
- data/generated/google/apis/compute_beta/representations.rb +563 -0
- data/generated/google/apis/compute_beta/service.rb +5123 -2690
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1717 -295
- data/generated/google/apis/compute_v1/representations.rb +536 -0
- data/generated/google/apis/compute_v1/service.rb +2038 -1041
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +709 -1
- data/generated/google/apis/content_v2/representations.rb +319 -0
- data/generated/google/apis/content_v2/service.rb +244 -0
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
- data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +162 -50
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11585 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9006 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- 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 +11 -3
- data/generated/google/apis/drive_v2/representations.rb +2 -0
- data/generated/google/apis/drive_v2/service.rb +8 -2
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +36 -16
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/drive_v3/service.rb +4 -1
- data/generated/google/apis/fitness_v1.rb +8 -2
- data/generated/google/apis/fitness_v1/classes.rb +64 -6
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- 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 +2 -4
- data/generated/google/apis/genomics_v1/classes.rb +111 -9
- data/generated/google/apis/genomics_v1/representations.rb +36 -0
- data/generated/google/apis/genomics_v1/service.rb +4 -7
- data/generated/google/apis/gmail_v1.rb +7 -1
- data/generated/google/apis/gmail_v1/classes.rb +540 -0
- data/generated/google/apis/gmail_v1/representations.rb +213 -0
- data/generated/google/apis/gmail_v1/service.rb +898 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +154 -1
- data/generated/google/apis/identitytoolkit_v3/representations.rb +35 -0
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +596 -0
- data/generated/google/apis/language_v1beta1/representations.rb +289 -0
- data/generated/google/apis/language_v1beta1/service.rb +154 -0
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1328 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +711 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +6 -0
- data/generated/google/apis/script_v1/representations.rb +1 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +35 -0
- data/generated/google/apis/sheets_v4/representations.rb +16 -0
- data/generated/google/apis/sheets_v4/service.rb +55 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +521 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +219 -0
- data/generated/google/apis/speech_v1beta1/service.rb +268 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +26 -8
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +19 -10
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +10 -9
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +163 -2
- data/generated/google/apis/youtube_v3/representations.rb +82 -0
- data/generated/google/apis/youtube_v3/service.rb +6 -2
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/google-api-client.gemspec +2 -1
- data/lib/google/apis/core/api_command.rb +4 -0
- data/lib/google/apis/core/base_service.rb +10 -4
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +2 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/sync.rb +71 -0
- metadata +43 -13
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/cloud-dns
|
|
26
26
|
module DnsV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20160825'
|
|
29
29
|
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -146,7 +146,7 @@ module Google
|
|
|
146
146
|
attr_accessor :kind
|
|
147
147
|
|
|
148
148
|
# User assigned name for this resource. Must be unique within the project. The
|
|
149
|
-
# name must be 1-
|
|
149
|
+
# name must be 1-63 characters long, must begin with a letter, end with a letter
|
|
150
150
|
# or digit, and only contain lowercase letters, digits or dashes.
|
|
151
151
|
# Corresponds to the JSON property `name`
|
|
152
152
|
# @return [String]
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://developers.google.com/doubleclick-search/
|
|
27
27
|
module DoubleclicksearchV2
|
|
28
28
|
VERSION = 'V2'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20160907'
|
|
30
30
|
|
|
31
31
|
# View and manage your advertising data in DoubleClick Search
|
|
32
32
|
AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'
|
|
@@ -137,7 +137,7 @@ module Google
|
|
|
137
137
|
# @return [String]
|
|
138
138
|
attr_accessor :quota_type
|
|
139
139
|
|
|
140
|
-
# The number of remaining change ids.
|
|
140
|
+
# The number of remaining change ids, limited to no more than 2500.
|
|
141
141
|
# Corresponds to the JSON property `remainingChangeIds`
|
|
142
142
|
# @return [String]
|
|
143
143
|
attr_accessor :remaining_change_ids
|
|
@@ -2093,9 +2093,15 @@ module Google
|
|
|
2093
2093
|
# @return [String]
|
|
2094
2094
|
attr_accessor :etag
|
|
2095
2095
|
|
|
2096
|
+
# The time at which this permission will expire (RFC 3339 date-time).
|
|
2097
|
+
# Corresponds to the JSON property `expirationDate`
|
|
2098
|
+
# @return [DateTime]
|
|
2099
|
+
attr_accessor :expiration_date
|
|
2100
|
+
|
|
2096
2101
|
# The ID of the user this permission refers to, and identical to the
|
|
2097
2102
|
# permissionId in the About and Files resources. When making a drive.permissions.
|
|
2098
|
-
# insert request, exactly one of the id or value fields must be specified
|
|
2103
|
+
# insert request, exactly one of the id or value fields must be specified unless
|
|
2104
|
+
# the permission type anyone, in which case both id and value are ignored.
|
|
2099
2105
|
# Corresponds to the JSON property `id`
|
|
2100
2106
|
# @return [String]
|
|
2101
2107
|
attr_accessor :id
|
|
@@ -2139,7 +2145,8 @@ module Google
|
|
|
2139
2145
|
|
|
2140
2146
|
# The email address or domain name for the entity. This is used during inserts
|
|
2141
2147
|
# and is not populated in responses. When making a drive.permissions.insert
|
|
2142
|
-
# request, exactly one of the id or value fields must be specified
|
|
2148
|
+
# request, exactly one of the id or value fields must be specified unless the
|
|
2149
|
+
# permission type anyone, in which case both id and value are ignored.
|
|
2143
2150
|
# Corresponds to the JSON property `value`
|
|
2144
2151
|
# @return [String]
|
|
2145
2152
|
attr_accessor :value
|
|
@@ -2161,6 +2168,7 @@ module Google
|
|
|
2161
2168
|
@domain = args[:domain] if args.key?(:domain)
|
|
2162
2169
|
@email_address = args[:email_address] if args.key?(:email_address)
|
|
2163
2170
|
@etag = args[:etag] if args.key?(:etag)
|
|
2171
|
+
@expiration_date = args[:expiration_date] if args.key?(:expiration_date)
|
|
2164
2172
|
@id = args[:id] if args.key?(:id)
|
|
2165
2173
|
@kind = args[:kind] if args.key?(:kind)
|
|
2166
2174
|
@name = args[:name] if args.key?(:name)
|
|
@@ -764,6 +764,8 @@ module Google
|
|
|
764
764
|
property :domain, as: 'domain'
|
|
765
765
|
property :email_address, as: 'emailAddress'
|
|
766
766
|
property :etag, as: 'etag'
|
|
767
|
+
property :expiration_date, as: 'expirationDate', type: DateTime
|
|
768
|
+
|
|
767
769
|
property :id, as: 'id'
|
|
768
770
|
property :kind, as: 'kind'
|
|
769
771
|
property :name, as: 'name'
|
|
@@ -1853,6 +1853,8 @@ module Google
|
|
|
1853
1853
|
# @param [String] permission_id
|
|
1854
1854
|
# The ID for the permission.
|
|
1855
1855
|
# @param [Google::Apis::DriveV2::Permission] permission_object
|
|
1856
|
+
# @param [Boolean] remove_expiration
|
|
1857
|
+
# Whether to remove the expiration date.
|
|
1856
1858
|
# @param [Boolean] transfer_ownership
|
|
1857
1859
|
# Whether changing a role to 'owner' downgrades the current owners to writers.
|
|
1858
1860
|
# Does nothing if the specified role is not 'owner'.
|
|
@@ -1877,7 +1879,7 @@ module Google
|
|
|
1877
1879
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1878
1880
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1879
1881
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1880
|
-
def patch_permission(file_id, permission_id, permission_object = nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1882
|
+
def patch_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1881
1883
|
command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options)
|
|
1882
1884
|
command.request_representation = Google::Apis::DriveV2::Permission::Representation
|
|
1883
1885
|
command.request_object = permission_object
|
|
@@ -1885,6 +1887,7 @@ module Google
|
|
|
1885
1887
|
command.response_class = Google::Apis::DriveV2::Permission
|
|
1886
1888
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1887
1889
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
|
1890
|
+
command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
|
|
1888
1891
|
command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
|
|
1889
1892
|
command.query['fields'] = fields unless fields.nil?
|
|
1890
1893
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1898,6 +1901,8 @@ module Google
|
|
|
1898
1901
|
# @param [String] permission_id
|
|
1899
1902
|
# The ID for the permission.
|
|
1900
1903
|
# @param [Google::Apis::DriveV2::Permission] permission_object
|
|
1904
|
+
# @param [Boolean] remove_expiration
|
|
1905
|
+
# Whether to remove the expiration date.
|
|
1901
1906
|
# @param [Boolean] transfer_ownership
|
|
1902
1907
|
# Whether changing a role to 'owner' downgrades the current owners to writers.
|
|
1903
1908
|
# Does nothing if the specified role is not 'owner'.
|
|
@@ -1922,7 +1927,7 @@ module Google
|
|
|
1922
1927
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1923
1928
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1924
1929
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1925
|
-
def update_permission(file_id, permission_id, permission_object = nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1930
|
+
def update_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1926
1931
|
command = make_simple_command(:put, 'files/{fileId}/permissions/{permissionId}', options)
|
|
1927
1932
|
command.request_representation = Google::Apis::DriveV2::Permission::Representation
|
|
1928
1933
|
command.request_object = permission_object
|
|
@@ -1930,6 +1935,7 @@ module Google
|
|
|
1930
1935
|
command.response_class = Google::Apis::DriveV2::Permission
|
|
1931
1936
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1932
1937
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
|
1938
|
+
command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
|
|
1933
1939
|
command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
|
|
1934
1940
|
command.query['fields'] = fields unless fields.nil?
|
|
1935
1941
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -47,7 +47,8 @@ module Google
|
|
|
47
47
|
# @return [Hash<String,Array<String>>]
|
|
48
48
|
attr_accessor :import_formats
|
|
49
49
|
|
|
50
|
-
#
|
|
50
|
+
# Identifies what kind of resource this is. Value: the fixed string "drive#about"
|
|
51
|
+
# .
|
|
51
52
|
# Corresponds to the JSON property `kind`
|
|
52
53
|
# @return [String]
|
|
53
54
|
attr_accessor :kind
|
|
@@ -142,7 +143,8 @@ module Google
|
|
|
142
143
|
# @return [String]
|
|
143
144
|
attr_accessor :file_id
|
|
144
145
|
|
|
145
|
-
#
|
|
146
|
+
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
|
147
|
+
# change".
|
|
146
148
|
# Corresponds to the JSON property `kind`
|
|
147
149
|
# @return [String]
|
|
148
150
|
attr_accessor :kind
|
|
@@ -182,7 +184,8 @@ module Google
|
|
|
182
184
|
# @return [Array<Google::Apis::DriveV3::Change>]
|
|
183
185
|
attr_accessor :changes
|
|
184
186
|
|
|
185
|
-
#
|
|
187
|
+
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
|
188
|
+
# changeList".
|
|
186
189
|
# Corresponds to the JSON property `kind`
|
|
187
190
|
# @return [String]
|
|
188
191
|
attr_accessor :kind
|
|
@@ -332,7 +335,8 @@ module Google
|
|
|
332
335
|
# @return [String]
|
|
333
336
|
attr_accessor :id
|
|
334
337
|
|
|
335
|
-
#
|
|
338
|
+
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
|
339
|
+
# comment".
|
|
336
340
|
# Corresponds to the JSON property `kind`
|
|
337
341
|
# @return [String]
|
|
338
342
|
attr_accessor :kind
|
|
@@ -419,7 +423,8 @@ module Google
|
|
|
419
423
|
# @return [Array<Google::Apis::DriveV3::Comment>]
|
|
420
424
|
attr_accessor :comments
|
|
421
425
|
|
|
422
|
-
#
|
|
426
|
+
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
|
427
|
+
# commentList".
|
|
423
428
|
# Corresponds to the JSON property `kind`
|
|
424
429
|
# @return [String]
|
|
425
430
|
attr_accessor :kind
|
|
@@ -531,7 +536,7 @@ module Google
|
|
|
531
536
|
attr_accessor :is_app_authorized
|
|
532
537
|
alias_method :is_app_authorized?, :is_app_authorized
|
|
533
538
|
|
|
534
|
-
#
|
|
539
|
+
# Identifies what kind of resource this is. Value: the fixed string "drive#file".
|
|
535
540
|
# Corresponds to the JSON property `kind`
|
|
536
541
|
# @return [String]
|
|
537
542
|
attr_accessor :kind
|
|
@@ -1083,7 +1088,8 @@ module Google
|
|
|
1083
1088
|
# @return [Array<Google::Apis::DriveV3::File>]
|
|
1084
1089
|
attr_accessor :files
|
|
1085
1090
|
|
|
1086
|
-
#
|
|
1091
|
+
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
|
1092
|
+
# fileList".
|
|
1087
1093
|
# Corresponds to the JSON property `kind`
|
|
1088
1094
|
# @return [String]
|
|
1089
1095
|
attr_accessor :kind
|
|
@@ -1115,7 +1121,8 @@ module Google
|
|
|
1115
1121
|
# @return [Array<String>]
|
|
1116
1122
|
attr_accessor :ids
|
|
1117
1123
|
|
|
1118
|
-
#
|
|
1124
|
+
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
|
1125
|
+
# generatedIds".
|
|
1119
1126
|
# Corresponds to the JSON property `kind`
|
|
1120
1127
|
# @return [String]
|
|
1121
1128
|
attr_accessor :kind
|
|
@@ -1164,13 +1171,19 @@ module Google
|
|
|
1164
1171
|
# @return [String]
|
|
1165
1172
|
attr_accessor :email_address
|
|
1166
1173
|
|
|
1174
|
+
# The time at which this permission will expire (RFC 3339 date-time).
|
|
1175
|
+
# Corresponds to the JSON property `expirationTime`
|
|
1176
|
+
# @return [DateTime]
|
|
1177
|
+
attr_accessor :expiration_time
|
|
1178
|
+
|
|
1167
1179
|
# The ID of this permission. This is a unique identifier for the grantee, and is
|
|
1168
1180
|
# published in User resources as permissionId.
|
|
1169
1181
|
# Corresponds to the JSON property `id`
|
|
1170
1182
|
# @return [String]
|
|
1171
1183
|
attr_accessor :id
|
|
1172
1184
|
|
|
1173
|
-
#
|
|
1185
|
+
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
|
1186
|
+
# permission".
|
|
1174
1187
|
# Corresponds to the JSON property `kind`
|
|
1175
1188
|
# @return [String]
|
|
1176
1189
|
attr_accessor :kind
|
|
@@ -1208,6 +1221,7 @@ module Google
|
|
|
1208
1221
|
@display_name = args[:display_name] if args.key?(:display_name)
|
|
1209
1222
|
@domain = args[:domain] if args.key?(:domain)
|
|
1210
1223
|
@email_address = args[:email_address] if args.key?(:email_address)
|
|
1224
|
+
@expiration_time = args[:expiration_time] if args.key?(:expiration_time)
|
|
1211
1225
|
@id = args[:id] if args.key?(:id)
|
|
1212
1226
|
@kind = args[:kind] if args.key?(:kind)
|
|
1213
1227
|
@photo_link = args[:photo_link] if args.key?(:photo_link)
|
|
@@ -1220,7 +1234,8 @@ module Google
|
|
|
1220
1234
|
class PermissionList
|
|
1221
1235
|
include Google::Apis::Core::Hashable
|
|
1222
1236
|
|
|
1223
|
-
#
|
|
1237
|
+
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
|
1238
|
+
# permissionList".
|
|
1224
1239
|
# Corresponds to the JSON property `kind`
|
|
1225
1240
|
# @return [String]
|
|
1226
1241
|
attr_accessor :kind
|
|
@@ -1285,7 +1300,8 @@ module Google
|
|
|
1285
1300
|
# @return [String]
|
|
1286
1301
|
attr_accessor :id
|
|
1287
1302
|
|
|
1288
|
-
#
|
|
1303
|
+
# Identifies what kind of resource this is. Value: the fixed string "drive#reply"
|
|
1304
|
+
# .
|
|
1289
1305
|
# Corresponds to the JSON property `kind`
|
|
1290
1306
|
# @return [String]
|
|
1291
1307
|
attr_accessor :kind
|
|
@@ -1317,7 +1333,8 @@ module Google
|
|
|
1317
1333
|
class ReplyList
|
|
1318
1334
|
include Google::Apis::Core::Hashable
|
|
1319
1335
|
|
|
1320
|
-
#
|
|
1336
|
+
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
|
1337
|
+
# replyList".
|
|
1321
1338
|
# Corresponds to the JSON property `kind`
|
|
1322
1339
|
# @return [String]
|
|
1323
1340
|
attr_accessor :kind
|
|
@@ -1364,7 +1381,8 @@ module Google
|
|
|
1364
1381
|
attr_accessor :keep_forever
|
|
1365
1382
|
alias_method :keep_forever?, :keep_forever
|
|
1366
1383
|
|
|
1367
|
-
#
|
|
1384
|
+
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
|
1385
|
+
# revision".
|
|
1368
1386
|
# Corresponds to the JSON property `kind`
|
|
1369
1387
|
# @return [String]
|
|
1370
1388
|
attr_accessor :kind
|
|
@@ -1447,7 +1465,8 @@ module Google
|
|
|
1447
1465
|
class RevisionList
|
|
1448
1466
|
include Google::Apis::Core::Hashable
|
|
1449
1467
|
|
|
1450
|
-
#
|
|
1468
|
+
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
|
1469
|
+
# revisionList".
|
|
1451
1470
|
# Corresponds to the JSON property `kind`
|
|
1452
1471
|
# @return [String]
|
|
1453
1472
|
attr_accessor :kind
|
|
@@ -1472,7 +1491,8 @@ module Google
|
|
|
1472
1491
|
class StartPageToken
|
|
1473
1492
|
include Google::Apis::Core::Hashable
|
|
1474
1493
|
|
|
1475
|
-
#
|
|
1494
|
+
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
|
1495
|
+
# startPageToken".
|
|
1476
1496
|
# Corresponds to the JSON property `kind`
|
|
1477
1497
|
# @return [String]
|
|
1478
1498
|
attr_accessor :kind
|
|
@@ -1508,7 +1528,7 @@ module Google
|
|
|
1508
1528
|
# @return [String]
|
|
1509
1529
|
attr_accessor :email_address
|
|
1510
1530
|
|
|
1511
|
-
#
|
|
1531
|
+
# Identifies what kind of resource this is. Value: the fixed string "drive#user".
|
|
1512
1532
|
# Corresponds to the JSON property `kind`
|
|
1513
1533
|
# @return [String]
|
|
1514
1534
|
attr_accessor :kind
|
|
@@ -451,6 +451,8 @@ module Google
|
|
|
451
451
|
property :display_name, as: 'displayName'
|
|
452
452
|
property :domain, as: 'domain'
|
|
453
453
|
property :email_address, as: 'emailAddress'
|
|
454
|
+
property :expiration_time, as: 'expirationTime', type: DateTime
|
|
455
|
+
|
|
454
456
|
property :id, as: 'id'
|
|
455
457
|
property :kind, as: 'kind'
|
|
456
458
|
property :photo_link, as: 'photoLink'
|
|
@@ -1110,6 +1110,8 @@ module Google
|
|
|
1110
1110
|
# @param [String] permission_id
|
|
1111
1111
|
# The ID of the permission.
|
|
1112
1112
|
# @param [Google::Apis::DriveV3::Permission] permission_object
|
|
1113
|
+
# @param [Boolean] remove_expiration
|
|
1114
|
+
# Whether to remove the expiration date.
|
|
1113
1115
|
# @param [Boolean] transfer_ownership
|
|
1114
1116
|
# Whether to transfer ownership to the specified user and downgrade the current
|
|
1115
1117
|
# owner to a writer. This parameter is required as an acknowledgement of the
|
|
@@ -1135,7 +1137,7 @@ module Google
|
|
|
1135
1137
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1136
1138
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1137
1139
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1138
|
-
def update_permission(file_id, permission_id, permission_object = nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1140
|
+
def update_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1139
1141
|
command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options)
|
|
1140
1142
|
command.request_representation = Google::Apis::DriveV3::Permission::Representation
|
|
1141
1143
|
command.request_object = permission_object
|
|
@@ -1143,6 +1145,7 @@ module Google
|
|
|
1143
1145
|
command.response_class = Google::Apis::DriveV3::Permission
|
|
1144
1146
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1145
1147
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
|
1148
|
+
command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
|
|
1146
1149
|
command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
|
|
1147
1150
|
command.query['fields'] = fields unless fields.nil?
|
|
1148
1151
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -20,12 +20,12 @@ module Google
|
|
|
20
20
|
module Apis
|
|
21
21
|
# Fitness
|
|
22
22
|
#
|
|
23
|
-
#
|
|
23
|
+
# Stores and accesses user data in the fitness store from apps on any platform.
|
|
24
24
|
#
|
|
25
25
|
# @see https://developers.google.com/fit/rest/
|
|
26
26
|
module FitnessV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20160907'
|
|
29
29
|
|
|
30
30
|
# View your activity information in Google Fit
|
|
31
31
|
AUTH_FITNESS_ACTIVITY_READ = 'https://www.googleapis.com/auth/fitness.activity.read'
|
|
@@ -44,6 +44,12 @@ module Google
|
|
|
44
44
|
|
|
45
45
|
# View and store your location data in Google Fit
|
|
46
46
|
AUTH_FITNESS_LOCATION_WRITE = 'https://www.googleapis.com/auth/fitness.location.write'
|
|
47
|
+
|
|
48
|
+
# View nutrition information in Google Fit
|
|
49
|
+
AUTH_FITNESS_NUTRITION_READ = 'https://www.googleapis.com/auth/fitness.nutrition.read'
|
|
50
|
+
|
|
51
|
+
# View and store nutrition information in Google Fit
|
|
52
|
+
AUTH_FITNESS_NUTRITION_WRITE = 'https://www.googleapis.com/auth/fitness.nutrition.write'
|
|
47
53
|
end
|
|
48
54
|
end
|
|
49
55
|
end
|
|
@@ -103,7 +103,7 @@ module Google
|
|
|
103
103
|
end
|
|
104
104
|
end
|
|
105
105
|
|
|
106
|
-
#
|
|
106
|
+
# Next id: 10
|
|
107
107
|
class AggregateRequest
|
|
108
108
|
include Google::Apis::Core::Hashable
|
|
109
109
|
|
|
@@ -151,6 +151,13 @@ module Google
|
|
|
151
151
|
# @return [String]
|
|
152
152
|
attr_accessor :end_time_millis
|
|
153
153
|
|
|
154
|
+
# A list of acceptable data quality standards. Only data points which conform to
|
|
155
|
+
# at least one of the specified data quality standards will be returned. If the
|
|
156
|
+
# list is empty, all data points are returned.
|
|
157
|
+
# Corresponds to the JSON property `filteredDataQualityStandard`
|
|
158
|
+
# @return [Array<String>]
|
|
159
|
+
attr_accessor :filtered_data_quality_standard
|
|
160
|
+
|
|
154
161
|
# The start of a window of time. Data that intersects with this time window will
|
|
155
162
|
# be aggregated. The time is in milliseconds since epoch, inclusive.
|
|
156
163
|
# Corresponds to the JSON property `startTimeMillis`
|
|
@@ -169,6 +176,7 @@ module Google
|
|
|
169
176
|
@bucket_by_session = args[:bucket_by_session] if args.key?(:bucket_by_session)
|
|
170
177
|
@bucket_by_time = args[:bucket_by_time] if args.key?(:bucket_by_time)
|
|
171
178
|
@end_time_millis = args[:end_time_millis] if args.key?(:end_time_millis)
|
|
179
|
+
@filtered_data_quality_standard = args[:filtered_data_quality_standard] if args.key?(:filtered_data_quality_standard)
|
|
172
180
|
@start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis)
|
|
173
181
|
end
|
|
174
182
|
end
|
|
@@ -192,7 +200,7 @@ module Google
|
|
|
192
200
|
end
|
|
193
201
|
end
|
|
194
202
|
|
|
195
|
-
#
|
|
203
|
+
#
|
|
196
204
|
class Application
|
|
197
205
|
include Google::Apis::Core::Hashable
|
|
198
206
|
|
|
@@ -294,6 +302,11 @@ module Google
|
|
|
294
302
|
# @return [String]
|
|
295
303
|
attr_accessor :duration_millis
|
|
296
304
|
|
|
305
|
+
#
|
|
306
|
+
# Corresponds to the JSON property `period`
|
|
307
|
+
# @return [Google::Apis::FitnessV1::BucketByTimePeriod]
|
|
308
|
+
attr_accessor :period
|
|
309
|
+
|
|
297
310
|
def initialize(**args)
|
|
298
311
|
update!(**args)
|
|
299
312
|
end
|
|
@@ -301,6 +314,38 @@ module Google
|
|
|
301
314
|
# Update properties of this object
|
|
302
315
|
def update!(**args)
|
|
303
316
|
@duration_millis = args[:duration_millis] if args.key?(:duration_millis)
|
|
317
|
+
@period = args[:period] if args.key?(:period)
|
|
318
|
+
end
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
#
|
|
322
|
+
class BucketByTimePeriod
|
|
323
|
+
include Google::Apis::Core::Hashable
|
|
324
|
+
|
|
325
|
+
# org.joda.timezone.DateTimeZone
|
|
326
|
+
# Corresponds to the JSON property `timeZoneId`
|
|
327
|
+
# @return [String]
|
|
328
|
+
attr_accessor :time_zone_id
|
|
329
|
+
|
|
330
|
+
#
|
|
331
|
+
# Corresponds to the JSON property `type`
|
|
332
|
+
# @return [String]
|
|
333
|
+
attr_accessor :type
|
|
334
|
+
|
|
335
|
+
#
|
|
336
|
+
# Corresponds to the JSON property `value`
|
|
337
|
+
# @return [Fixnum]
|
|
338
|
+
attr_accessor :value
|
|
339
|
+
|
|
340
|
+
def initialize(**args)
|
|
341
|
+
update!(**args)
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
# Update properties of this object
|
|
345
|
+
def update!(**args)
|
|
346
|
+
@time_zone_id = args[:time_zone_id] if args.key?(:time_zone_id)
|
|
347
|
+
@type = args[:type] if args.key?(:type)
|
|
348
|
+
@value = args[:value] if args.key?(:value)
|
|
304
349
|
end
|
|
305
350
|
end
|
|
306
351
|
|
|
@@ -400,11 +445,16 @@ module Google
|
|
|
400
445
|
class DataSource
|
|
401
446
|
include Google::Apis::Core::Hashable
|
|
402
447
|
|
|
403
|
-
#
|
|
448
|
+
#
|
|
404
449
|
# Corresponds to the JSON property `application`
|
|
405
450
|
# @return [Google::Apis::FitnessV1::Application]
|
|
406
451
|
attr_accessor :application
|
|
407
452
|
|
|
453
|
+
#
|
|
454
|
+
# Corresponds to the JSON property `dataQualityStandard`
|
|
455
|
+
# @return [Array<String>]
|
|
456
|
+
attr_accessor :data_quality_standard
|
|
457
|
+
|
|
408
458
|
# A unique identifier for the data stream produced by this data source. The
|
|
409
459
|
# identifier includes:
|
|
410
460
|
#
|
|
@@ -443,7 +493,7 @@ module Google
|
|
|
443
493
|
# @return [String]
|
|
444
494
|
attr_accessor :data_stream_name
|
|
445
495
|
|
|
446
|
-
#
|
|
496
|
+
#
|
|
447
497
|
# Corresponds to the JSON property `dataType`
|
|
448
498
|
# @return [Google::Apis::FitnessV1::DataType]
|
|
449
499
|
attr_accessor :data_type
|
|
@@ -481,6 +531,7 @@ module Google
|
|
|
481
531
|
# Update properties of this object
|
|
482
532
|
def update!(**args)
|
|
483
533
|
@application = args[:application] if args.key?(:application)
|
|
534
|
+
@data_quality_standard = args[:data_quality_standard] if args.key?(:data_quality_standard)
|
|
484
535
|
@data_stream_id = args[:data_stream_id] if args.key?(:data_stream_id)
|
|
485
536
|
@data_stream_name = args[:data_stream_name] if args.key?(:data_stream_name)
|
|
486
537
|
@data_type = args[:data_type] if args.key?(:data_type)
|
|
@@ -490,7 +541,7 @@ module Google
|
|
|
490
541
|
end
|
|
491
542
|
end
|
|
492
543
|
|
|
493
|
-
#
|
|
544
|
+
#
|
|
494
545
|
class DataType
|
|
495
546
|
include Google::Apis::Core::Hashable
|
|
496
547
|
|
|
@@ -695,6 +746,12 @@ module Google
|
|
|
695
746
|
# @return [Array<Google::Apis::FitnessV1::Session>]
|
|
696
747
|
attr_accessor :deleted_session
|
|
697
748
|
|
|
749
|
+
# Flag to indicate server has more data to transfer
|
|
750
|
+
# Corresponds to the JSON property `hasMoreData`
|
|
751
|
+
# @return [Boolean]
|
|
752
|
+
attr_accessor :has_more_data
|
|
753
|
+
alias_method :has_more_data?, :has_more_data
|
|
754
|
+
|
|
698
755
|
# The continuation token, which is used to page through large result sets.
|
|
699
756
|
# Provide this value in a subsequent request to return the next page of results.
|
|
700
757
|
# Corresponds to the JSON property `nextPageToken`
|
|
@@ -713,6 +770,7 @@ module Google
|
|
|
713
770
|
# Update properties of this object
|
|
714
771
|
def update!(**args)
|
|
715
772
|
@deleted_session = args[:deleted_session] if args.key?(:deleted_session)
|
|
773
|
+
@has_more_data = args[:has_more_data] if args.key?(:has_more_data)
|
|
716
774
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
717
775
|
@session = args[:session] if args.key?(:session)
|
|
718
776
|
end
|
|
@@ -757,7 +815,7 @@ module Google
|
|
|
757
815
|
# @return [Fixnum]
|
|
758
816
|
attr_accessor :activity_type
|
|
759
817
|
|
|
760
|
-
#
|
|
818
|
+
#
|
|
761
819
|
# Corresponds to the JSON property `application`
|
|
762
820
|
# @return [Google::Apis::FitnessV1::Application]
|
|
763
821
|
attr_accessor :application
|