google-api-client 0.9.20 → 0.9.21

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.
Files changed (159) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +8 -4
  3. data/api_names.yaml +33179 -1058
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +24 -6
  7. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +2 -0
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +14 -0
  10. data/generated/google/apis/admin_directory_v1/representations.rb +2 -0
  11. data/generated/google/apis/adsense_v1_4.rb +1 -1
  12. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  13. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  14. data/generated/google/apis/analyticsreporting_v4/classes.rb +7 -0
  15. data/generated/google/apis/analyticsreporting_v4/representations.rb +1 -0
  16. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  17. data/generated/google/apis/androidenterprise_v1/classes.rb +96 -156
  18. data/generated/google/apis/androidenterprise_v1/representations.rb +18 -47
  19. data/generated/google/apis/androidenterprise_v1/service.rb +15 -459
  20. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  21. data/generated/google/apis/androidpublisher_v2/classes.rb +176 -0
  22. data/generated/google/apis/androidpublisher_v2/representations.rb +62 -0
  23. data/generated/google/apis/androidpublisher_v2/service.rb +60 -2
  24. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  25. data/generated/google/apis/appengine_v1beta5/classes.rb +300 -198
  26. data/generated/google/apis/appengine_v1beta5/representations.rb +36 -0
  27. data/generated/google/apis/appengine_v1beta5/service.rb +54 -49
  28. data/generated/google/apis/appsactivity_v1.rb +1 -1
  29. data/generated/google/apis/appstate_v1.rb +1 -1
  30. data/generated/google/apis/bigquery_v2.rb +1 -1
  31. data/generated/google/apis/bigquery_v2/classes.rb +50 -6
  32. data/generated/google/apis/bigquery_v2/representations.rb +5 -0
  33. data/generated/google/apis/books_v1.rb +1 -1
  34. data/generated/google/apis/books_v1/classes.rb +7 -2
  35. data/generated/google/apis/books_v1/representations.rb +1 -0
  36. data/generated/google/apis/calendar_v3.rb +1 -1
  37. data/generated/google/apis/classroom_v1.rb +1 -1
  38. data/generated/google/apis/classroom_v1/classes.rb +74 -74
  39. data/generated/google/apis/classroom_v1/representations.rb +29 -29
  40. data/generated/google/apis/classroom_v1/service.rb +132 -28
  41. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  42. data/generated/google/apis/cloudbuild_v1/classes.rb +47 -27
  43. data/generated/google/apis/cloudbuild_v1/representations.rb +20 -7
  44. data/generated/google/apis/cloudbuild_v1/service.rb +42 -0
  45. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  46. data/generated/google/apis/clouddebugger_v2/classes.rb +648 -578
  47. data/generated/google/apis/clouddebugger_v2/representations.rb +140 -140
  48. data/generated/google/apis/clouddebugger_v2/service.rb +161 -155
  49. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  50. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +563 -423
  51. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +116 -76
  52. data/generated/google/apis/cloudresourcemanager_v1/service.rb +318 -249
  53. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +396 -331
  55. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +317 -281
  57. data/generated/google/apis/compute_beta.rb +1 -1
  58. data/generated/google/apis/compute_beta/classes.rb +352 -80
  59. data/generated/google/apis/compute_beta/representations.rb +132 -19
  60. data/generated/google/apis/compute_beta/service.rb +214 -0
  61. data/generated/google/apis/compute_v1.rb +1 -1
  62. data/generated/google/apis/compute_v1/classes.rb +673 -73
  63. data/generated/google/apis/compute_v1/representations.rb +274 -9
  64. data/generated/google/apis/compute_v1/service.rb +1574 -2
  65. data/generated/google/apis/content_v2.rb +1 -1
  66. data/generated/google/apis/content_v2/classes.rb +7 -8
  67. data/generated/google/apis/content_v2/service.rb +125 -54
  68. data/generated/google/apis/dataflow_v1b3.rb +2 -3
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +286 -114
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +73 -0
  71. data/generated/google/apis/dataflow_v1b3/service.rb +37 -38
  72. data/generated/google/apis/datastore_v1.rb +1 -1
  73. data/generated/google/apis/datastore_v1/classes.rb +5 -0
  74. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  75. data/generated/google/apis/deploymentmanager_v2/classes.rb +37 -5
  76. data/generated/google/apis/deploymentmanager_v2/representations.rb +16 -0
  77. data/generated/google/apis/deploymentmanager_v2/service.rb +4 -1
  78. data/generated/google/apis/dns_v1.rb +1 -1
  79. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  80. data/generated/google/apis/drive_v2.rb +1 -1
  81. data/generated/google/apis/drive_v2/classes.rb +55 -21
  82. data/generated/google/apis/drive_v2/representations.rb +2 -0
  83. data/generated/google/apis/drive_v3.rb +1 -1
  84. data/generated/google/apis/drive_v3/classes.rb +41 -12
  85. data/generated/google/apis/drive_v3/representations.rb +2 -0
  86. data/generated/google/apis/fitness_v1.rb +31 -1
  87. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  88. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  89. data/generated/google/apis/games_management_v1management.rb +1 -1
  90. data/generated/google/apis/games_v1.rb +1 -1
  91. data/generated/google/apis/gmail_v1.rb +1 -1
  92. data/generated/google/apis/gmail_v1/classes.rb +32 -1
  93. data/generated/google/apis/gmail_v1/representations.rb +15 -0
  94. data/generated/google/apis/gmail_v1/service.rb +41 -2
  95. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  96. data/generated/google/apis/identitytoolkit_v3/classes.rb +7 -0
  97. data/generated/google/apis/identitytoolkit_v3/representations.rb +1 -0
  98. data/generated/google/apis/kgsearch_v1.rb +2 -3
  99. data/generated/google/apis/kgsearch_v1/classes.rb +10 -10
  100. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  101. data/generated/google/apis/kgsearch_v1/service.rb +28 -26
  102. data/generated/google/apis/language_v1beta1.rb +1 -1
  103. data/generated/google/apis/language_v1beta1/classes.rb +166 -8
  104. data/generated/google/apis/language_v1beta1/representations.rb +50 -0
  105. data/generated/google/apis/language_v1beta1/service.rb +32 -0
  106. data/generated/google/apis/logging_v2beta1.rb +6 -6
  107. data/generated/google/apis/logging_v2beta1/classes.rb +868 -789
  108. data/generated/google/apis/logging_v2beta1/representations.rb +179 -147
  109. data/generated/google/apis/logging_v2beta1/service.rb +378 -211
  110. data/generated/google/apis/monitoring_v3.rb +1 -1
  111. data/generated/google/apis/monitoring_v3/classes.rb +110 -112
  112. data/generated/google/apis/monitoring_v3/service.rb +68 -73
  113. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  114. data/generated/google/apis/plus_domains_v1.rb +1 -1
  115. data/generated/google/apis/plus_v1.rb +1 -1
  116. data/generated/google/apis/pubsub_v1.rb +1 -1
  117. data/generated/google/apis/pubsub_v1/classes.rb +380 -327
  118. data/generated/google/apis/pubsub_v1/representations.rb +79 -79
  119. data/generated/google/apis/pubsub_v1/service.rb +424 -396
  120. data/generated/google/apis/sheets_v4.rb +1 -1
  121. data/generated/google/apis/sheets_v4/classes.rb +175 -53
  122. data/generated/google/apis/sheets_v4/representations.rb +48 -13
  123. data/generated/google/apis/site_verification_v1.rb +1 -1
  124. data/generated/google/apis/slides_v1.rb +1 -1
  125. data/generated/google/apis/slides_v1/classes.rb +149 -31
  126. data/generated/google/apis/slides_v1/representations.rb +52 -9
  127. data/generated/google/apis/slides_v1/service.rb +5 -5
  128. data/generated/google/apis/speech_v1beta1.rb +1 -1
  129. data/generated/google/apis/speech_v1beta1/service.rb +3 -1
  130. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  131. data/generated/google/apis/sqladmin_v1beta4/classes.rb +54 -2
  132. data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -0
  133. data/generated/google/apis/sqladmin_v1beta4/service.rb +41 -0
  134. data/generated/google/apis/storage_v1.rb +1 -1
  135. data/generated/google/apis/storage_v1/classes.rb +7 -0
  136. data/generated/google/apis/storage_v1/representations.rb +2 -0
  137. data/generated/google/apis/tagmanager_v1.rb +5 -5
  138. data/generated/google/apis/vision_v1.rb +1 -1
  139. data/generated/google/apis/vision_v1/classes.rb +63 -59
  140. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  141. data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
  142. data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
  143. data/generated/google/apis/youtube_analytics_v1/service.rb +0 -76
  144. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  145. data/generated/google/apis/youtube_partner_v1/classes.rb +71 -0
  146. data/generated/google/apis/youtube_partner_v1/representations.rb +33 -0
  147. data/generated/google/apis/youtube_partner_v1/service.rb +52 -0
  148. data/generated/google/apis/youtube_v3.rb +1 -1
  149. data/generated/google/apis/youtube_v3/classes.rb +15 -2
  150. data/generated/google/apis/youtube_v3/representations.rb +3 -0
  151. data/generated/google/apis/youtube_v3/service.rb +4 -4
  152. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  153. data/generated/google/apis/youtubereporting_v1/classes.rb +146 -137
  154. data/generated/google/apis/youtubereporting_v1/representations.rb +33 -33
  155. data/generated/google/apis/youtubereporting_v1/service.rb +149 -145
  156. data/lib/google/apis/version.rb +1 -1
  157. data/samples/cli/lib/samples/calendar.rb +1 -1
  158. data/samples/cli/lib/samples/gmail.rb +74 -0
  159. metadata +29 -29
@@ -28,6 +28,12 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class AuditLogConfig
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
31
37
  class Binding
32
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
39
 
@@ -259,11 +265,21 @@ module Google
259
265
  class AuditConfig
260
266
  # @private
261
267
  class Representation < Google::Apis::Core::JsonRepresentation
268
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::DeploymentmanagerV2::AuditLogConfig, decorator: Google::Apis::DeploymentmanagerV2::AuditLogConfig::Representation
269
+
262
270
  collection :exempted_members, as: 'exemptedMembers'
263
271
  property :service, as: 'service'
264
272
  end
265
273
  end
266
274
 
275
+ class AuditLogConfig
276
+ # @private
277
+ class Representation < Google::Apis::Core::JsonRepresentation
278
+ collection :exempted_members, as: 'exemptedMembers'
279
+ property :log_type, as: 'logType'
280
+ end
281
+ end
282
+
267
283
  class Binding
268
284
  # @private
269
285
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -98,6 +98,8 @@ module Google
98
98
  # The project ID for this request.
99
99
  # @param [String] deployment
100
100
  # The name of the deployment for this request.
101
+ # @param [String] delete_policy
102
+ # Sets the policy to use for deleting resources.
101
103
  # @param [String] fields
102
104
  # Selector specifying which fields to include in a partial response.
103
105
  # @param [String] quota_user
@@ -119,12 +121,13 @@ module Google
119
121
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
120
122
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
121
123
  # @raise [Google::Apis::AuthorizationError] Authorization is required
122
- def delete_deployment(project, deployment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
124
+ def delete_deployment(project, deployment, delete_policy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
123
125
  command = make_simple_command(:delete, '{project}/global/deployments/{deployment}', options)
124
126
  command.response_representation = Google::Apis::DeploymentmanagerV2::Operation::Representation
125
127
  command.response_class = Google::Apis::DeploymentmanagerV2::Operation
126
128
  command.params['project'] = project unless project.nil?
127
129
  command.params['deployment'] = deployment unless deployment.nil?
130
+ command.query['deletePolicy'] = delete_policy unless delete_policy.nil?
128
131
  command.query['fields'] = fields unless fields.nil?
129
132
  command.query['quotaUser'] = quota_user unless quota_user.nil?
130
133
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -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 = '20161020'
28
+ REVISION = '20170102'
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'
@@ -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 = '20161031'
29
+ REVISION = '20170110'
30
30
 
31
31
  # View and manage your advertising data in DoubleClick Search
32
32
  AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/drive/
27
27
  module DriveV2
28
28
  VERSION = 'V2'
29
- REVISION = '20161027'
29
+ REVISION = '20170113'
30
30
 
31
31
  # View and manage the files in your Google Drive
32
32
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -588,7 +588,7 @@ module Google
588
588
  # @return [String]
589
589
  attr_accessor :etag
590
590
 
591
- # The actual list of apps.
591
+ # The list of apps.
592
592
  # Corresponds to the JSON property `items`
593
593
  # @return [Array<Google::Apis::DriveV2::App>]
594
594
  attr_accessor :items
@@ -682,7 +682,8 @@ module Google
682
682
  # @return [String]
683
683
  attr_accessor :etag
684
684
 
685
- # The actual list of changes.
685
+ # The list of changes. If nextPageToken is populated, then this list may be
686
+ # incomplete and an additional page of results should be fetched.
686
687
  # Corresponds to the JSON property `items`
687
688
  # @return [Array<Google::Apis::DriveV2::Change>]
688
689
  attr_accessor :items
@@ -702,7 +703,10 @@ module Google
702
703
  # @return [String]
703
704
  attr_accessor :next_link
704
705
 
705
- # The page token for the next page of changes.
706
+ # The page token for the next page of changes. This will be absent if the end of
707
+ # the changes list has been reached. If the token is rejected for any reason, it
708
+ # should be discarded, and pagination should be restarted from the first page of
709
+ # results.
706
710
  # Corresponds to the JSON property `nextPageToken`
707
711
  # @return [String]
708
712
  attr_accessor :next_page_token
@@ -815,7 +819,8 @@ module Google
815
819
  # @return [String]
816
820
  attr_accessor :etag
817
821
 
818
- # The actual list of children.
822
+ # The list of children. If nextPageToken is populated, then this list may be
823
+ # incomplete and an additional page of results should be fetched.
819
824
  # Corresponds to the JSON property `items`
820
825
  # @return [Array<Google::Apis::DriveV2::ChildReference>]
821
826
  attr_accessor :items
@@ -830,7 +835,10 @@ module Google
830
835
  # @return [String]
831
836
  attr_accessor :next_link
832
837
 
833
- # The page token for the next page of children.
838
+ # The page token for the next page of children. This will be absent if the end
839
+ # of the children list has been reached. If the token is rejected for any reason,
840
+ # it should be discarded, and pagination should be restarted from the first
841
+ # page of results.
834
842
  # Corresponds to the JSON property `nextPageToken`
835
843
  # @return [String]
836
844
  attr_accessor :next_page_token
@@ -1034,7 +1042,8 @@ module Google
1034
1042
  class CommentList
1035
1043
  include Google::Apis::Core::Hashable
1036
1044
 
1037
- # List of comments.
1045
+ # The list of comments. If nextPageToken is populated, then this list may be
1046
+ # incomplete and an additional page of results should be fetched.
1038
1047
  # Corresponds to the JSON property `items`
1039
1048
  # @return [Array<Google::Apis::DriveV2::Comment>]
1040
1049
  attr_accessor :items
@@ -1049,7 +1058,10 @@ module Google
1049
1058
  # @return [String]
1050
1059
  attr_accessor :next_link
1051
1060
 
1052
- # The token to use to request the next page of results.
1061
+ # The page token for the next page of comments. This will be absent if the end
1062
+ # of the comments list has been reached. If the token is rejected for any reason,
1063
+ # it should be discarded, and pagination should be restarted from the first
1064
+ # page of results.
1053
1065
  # Corresponds to the JSON property `nextPageToken`
1054
1066
  # @return [String]
1055
1067
  attr_accessor :next_page_token
@@ -1152,7 +1164,8 @@ module Google
1152
1164
  class CommentReplyList
1153
1165
  include Google::Apis::Core::Hashable
1154
1166
 
1155
- # List of reply.
1167
+ # The list of replies. If nextPageToken is populated, then this list may be
1168
+ # incomplete and an additional page of results should be fetched.
1156
1169
  # Corresponds to the JSON property `items`
1157
1170
  # @return [Array<Google::Apis::DriveV2::CommentReply>]
1158
1171
  attr_accessor :items
@@ -1167,7 +1180,10 @@ module Google
1167
1180
  # @return [String]
1168
1181
  attr_accessor :next_link
1169
1182
 
1170
- # The token to use to request the next page of results.
1183
+ # The page token for the next page of replies. This will be absent if the end of
1184
+ # the replies list has been reached. If the token is rejected for any reason, it
1185
+ # should be discarded, and pagination should be restarted from the first page of
1186
+ # results.
1171
1187
  # Corresponds to the JSON property `nextPageToken`
1172
1188
  # @return [String]
1173
1189
  attr_accessor :next_page_token
@@ -1304,6 +1320,12 @@ module Google
1304
1320
  # @return [String]
1305
1321
  attr_accessor :full_file_extension
1306
1322
 
1323
+ # Whether this file has a thumbnail.
1324
+ # Corresponds to the JSON property `hasThumbnail`
1325
+ # @return [Boolean]
1326
+ attr_accessor :has_thumbnail
1327
+ alias_method :has_thumbnail?, :has_thumbnail
1328
+
1307
1329
  # The ID of the file's head revision. This field is only populated for files
1308
1330
  # with content stored in Drive; it is not populated for Google Docs or shortcut
1309
1331
  # files.
@@ -1481,18 +1503,23 @@ module Google
1481
1503
  # @return [Array<String>]
1482
1504
  attr_accessor :spaces
1483
1505
 
1484
- # Thumbnail for the file. Only accepted on upload and for files that are not
1485
- # already thumbnailed by Google.
1506
+ # A thumbnail for the file. This will only be used if Drive cannot generate a
1507
+ # standard thumbnail.
1486
1508
  # Corresponds to the JSON property `thumbnail`
1487
1509
  # @return [Google::Apis::DriveV2::File::Thumbnail]
1488
1510
  attr_accessor :thumbnail
1489
1511
 
1490
1512
  # A short-lived link to the file's thumbnail. Typically lasts on the order of
1491
- # hours.
1513
+ # hours. Only populated when the requesting app can access the file's content.
1492
1514
  # Corresponds to the JSON property `thumbnailLink`
1493
1515
  # @return [String]
1494
1516
  attr_accessor :thumbnail_link
1495
1517
 
1518
+ # The thumbnail version for use in thumbnail cache invalidation.
1519
+ # Corresponds to the JSON property `thumbnailVersion`
1520
+ # @return [String]
1521
+ attr_accessor :thumbnail_version
1522
+
1496
1523
  # The title of this file.
1497
1524
  # Corresponds to the JSON property `title`
1498
1525
  # @return [String]
@@ -1558,6 +1585,7 @@ module Google
1558
1585
  @file_size = args[:file_size] if args.key?(:file_size)
1559
1586
  @folder_color_rgb = args[:folder_color_rgb] if args.key?(:folder_color_rgb)
1560
1587
  @full_file_extension = args[:full_file_extension] if args.key?(:full_file_extension)
1588
+ @has_thumbnail = args[:has_thumbnail] if args.key?(:has_thumbnail)
1561
1589
  @head_revision_id = args[:head_revision_id] if args.key?(:head_revision_id)
1562
1590
  @icon_link = args[:icon_link] if args.key?(:icon_link)
1563
1591
  @id = args[:id] if args.key?(:id)
@@ -1591,6 +1619,7 @@ module Google
1591
1619
  @spaces = args[:spaces] if args.key?(:spaces)
1592
1620
  @thumbnail = args[:thumbnail] if args.key?(:thumbnail)
1593
1621
  @thumbnail_link = args[:thumbnail_link] if args.key?(:thumbnail_link)
1622
+ @thumbnail_version = args[:thumbnail_version] if args.key?(:thumbnail_version)
1594
1623
  @title = args[:title] if args.key?(:title)
1595
1624
  @user_permission = args[:user_permission] if args.key?(:user_permission)
1596
1625
  @version = args[:version] if args.key?(:version)
@@ -1849,8 +1878,8 @@ module Google
1849
1878
  end
1850
1879
  end
1851
1880
 
1852
- # Thumbnail for the file. Only accepted on upload and for files that are not
1853
- # already thumbnailed by Google.
1881
+ # A thumbnail for the file. This will only be used if Drive cannot generate a
1882
+ # standard thumbnail.
1854
1883
  class Thumbnail
1855
1884
  include Google::Apis::Core::Hashable
1856
1885
 
@@ -1917,7 +1946,8 @@ module Google
1917
1946
  # @return [String]
1918
1947
  attr_accessor :etag
1919
1948
 
1920
- # The actual list of files.
1949
+ # The list of files. If nextPageToken is populated, then this list may be
1950
+ # incomplete and an additional page of results should be fetched.
1921
1951
  # Corresponds to the JSON property `items`
1922
1952
  # @return [Array<Google::Apis::DriveV2::File>]
1923
1953
  attr_accessor :items
@@ -1932,7 +1962,10 @@ module Google
1932
1962
  # @return [String]
1933
1963
  attr_accessor :next_link
1934
1964
 
1935
- # The page token for the next page of files.
1965
+ # The page token for the next page of files. This will be absent if the end of
1966
+ # the files list has been reached. If the token is rejected for any reason, it
1967
+ # should be discarded, and pagination should be restarted from the first page of
1968
+ # results.
1936
1969
  # Corresponds to the JSON property `nextPageToken`
1937
1970
  # @return [String]
1938
1971
  attr_accessor :next_page_token
@@ -1997,7 +2030,7 @@ module Google
1997
2030
  # @return [String]
1998
2031
  attr_accessor :etag
1999
2032
 
2000
- # The actual list of parents.
2033
+ # The list of parents.
2001
2034
  # Corresponds to the JSON property `items`
2002
2035
  # @return [Array<Google::Apis::DriveV2::ParentReference>]
2003
2036
  attr_accessor :items
@@ -2108,7 +2141,7 @@ module Google
2108
2141
  # The ID of the user this permission refers to, and identical to the
2109
2142
  # permissionId in the About and Files resources. When making a drive.permissions.
2110
2143
  # insert request, exactly one of the id or value fields must be specified unless
2111
- # the permission type anyone, in which case both id and value are ignored.
2144
+ # the permission type is anyone, in which case both id and value are ignored.
2112
2145
  # Corresponds to the JSON property `id`
2113
2146
  # @return [String]
2114
2147
  attr_accessor :id
@@ -2153,7 +2186,7 @@ module Google
2153
2186
  # The email address or domain name for the entity. This is used during inserts
2154
2187
  # and is not populated in responses. When making a drive.permissions.insert
2155
2188
  # request, exactly one of the id or value fields must be specified unless the
2156
- # permission type anyone, in which case both id and value are ignored.
2189
+ # permission type is anyone, in which case both id and value are ignored.
2157
2190
  # Corresponds to the JSON property `value`
2158
2191
  # @return [String]
2159
2192
  attr_accessor :value
@@ -2222,7 +2255,7 @@ module Google
2222
2255
  # @return [String]
2223
2256
  attr_accessor :etag
2224
2257
 
2225
- # The actual list of permissions.
2258
+ # The list of permissions.
2226
2259
  # Corresponds to the JSON property `items`
2227
2260
  # @return [Array<Google::Apis::DriveV2::Permission>]
2228
2261
  attr_accessor :items
@@ -2488,7 +2521,8 @@ module Google
2488
2521
  # @return [String]
2489
2522
  attr_accessor :etag
2490
2523
 
2491
- # The actual list of revisions.
2524
+ # The list of revisions. If nextPageToken is populated, then this list may be
2525
+ # incomplete and an additional page of results should be fetched.
2492
2526
  # Corresponds to the JSON property `items`
2493
2527
  # @return [Array<Google::Apis::DriveV2::Revision>]
2494
2528
  attr_accessor :items
@@ -580,6 +580,7 @@ module Google
580
580
  property :file_size, as: 'fileSize'
581
581
  property :folder_color_rgb, as: 'folderColorRgb'
582
582
  property :full_file_extension, as: 'fullFileExtension'
583
+ property :has_thumbnail, as: 'hasThumbnail'
583
584
  property :head_revision_id, as: 'headRevisionId'
584
585
  property :icon_link, as: 'iconLink'
585
586
  property :id, as: 'id'
@@ -628,6 +629,7 @@ module Google
628
629
  property :thumbnail, as: 'thumbnail', class: Google::Apis::DriveV2::File::Thumbnail, decorator: Google::Apis::DriveV2::File::Thumbnail::Representation
629
630
 
630
631
  property :thumbnail_link, as: 'thumbnailLink'
632
+ property :thumbnail_version, as: 'thumbnailVersion'
631
633
  property :title, as: 'title'
632
634
  property :user_permission, as: 'userPermission', class: Google::Apis::DriveV2::Permission, decorator: Google::Apis::DriveV2::Permission::Representation
633
635
 
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/drive/
27
27
  module DriveV3
28
28
  VERSION = 'V3'
29
- REVISION = '20161027'
29
+ REVISION = '20170113'
30
30
 
31
31
  # View and manage the files in your Google Drive
32
32
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -179,7 +179,8 @@ module Google
179
179
  class ChangeList
180
180
  include Google::Apis::Core::Hashable
181
181
 
182
- # The page of changes.
182
+ # The list of changes. If nextPageToken is populated, then this list may be
183
+ # incomplete and an additional page of results should be fetched.
183
184
  # Corresponds to the JSON property `changes`
184
185
  # @return [Array<Google::Apis::DriveV3::Change>]
185
186
  attr_accessor :changes
@@ -197,7 +198,9 @@ module Google
197
198
  attr_accessor :new_start_page_token
198
199
 
199
200
  # The page token for the next page of changes. This will be absent if the end of
200
- # the current changes list has been reached.
201
+ # the changes list has been reached. If the token is rejected for any reason, it
202
+ # should be discarded, and pagination should be restarted from the first page of
203
+ # results.
201
204
  # Corresponds to the JSON property `nextPageToken`
202
205
  # @return [String]
203
206
  attr_accessor :next_page_token
@@ -418,7 +421,8 @@ module Google
418
421
  class CommentList
419
422
  include Google::Apis::Core::Hashable
420
423
 
421
- # The page of comments.
424
+ # The list of comments. If nextPageToken is populated, then this list may be
425
+ # incomplete and an additional page of results should be fetched.
422
426
  # Corresponds to the JSON property `comments`
423
427
  # @return [Array<Google::Apis::DriveV3::Comment>]
424
428
  attr_accessor :comments
@@ -430,7 +434,9 @@ module Google
430
434
  attr_accessor :kind
431
435
 
432
436
  # The page token for the next page of comments. This will be absent if the end
433
- # of the comments list has been reached.
437
+ # of the comments list has been reached. If the token is rejected for any reason,
438
+ # it should be discarded, and pagination should be restarted from the first
439
+ # page of results.
434
440
  # Corresponds to the JSON property `nextPageToken`
435
441
  # @return [String]
436
442
  attr_accessor :next_page_token
@@ -509,6 +515,12 @@ module Google
509
515
  # @return [String]
510
516
  attr_accessor :full_file_extension
511
517
 
518
+ # Whether this file has a thumbnail.
519
+ # Corresponds to the JSON property `hasThumbnail`
520
+ # @return [Boolean]
521
+ attr_accessor :has_thumbnail
522
+ alias_method :has_thumbnail?, :has_thumbnail
523
+
512
524
  # The ID of the file's head revision. This is currently only available for files
513
525
  # with binary content in Drive.
514
526
  # Corresponds to the JSON property `headRevisionId`
@@ -666,11 +678,17 @@ module Google
666
678
  alias_method :starred?, :starred
667
679
 
668
680
  # A short-lived link to the file's thumbnail, if available. Typically lasts on
669
- # the order of hours.
681
+ # the order of hours. Only populated when the requesting app can access the file'
682
+ # s content.
670
683
  # Corresponds to the JSON property `thumbnailLink`
671
684
  # @return [String]
672
685
  attr_accessor :thumbnail_link
673
686
 
687
+ # The thumbnail version for use in thumbnail cache invalidation.
688
+ # Corresponds to the JSON property `thumbnailVersion`
689
+ # @return [String]
690
+ attr_accessor :thumbnail_version
691
+
674
692
  # Whether the file has been trashed, either explicitly or from a trashed parent
675
693
  # folder. Only the owner may trash a file, and other users cannot see files in
676
694
  # the owner's trash.
@@ -741,6 +759,7 @@ module Google
741
759
  @file_extension = args[:file_extension] if args.key?(:file_extension)
742
760
  @folder_color_rgb = args[:folder_color_rgb] if args.key?(:folder_color_rgb)
743
761
  @full_file_extension = args[:full_file_extension] if args.key?(:full_file_extension)
762
+ @has_thumbnail = args[:has_thumbnail] if args.key?(:has_thumbnail)
744
763
  @head_revision_id = args[:head_revision_id] if args.key?(:head_revision_id)
745
764
  @icon_link = args[:icon_link] if args.key?(:icon_link)
746
765
  @id = args[:id] if args.key?(:id)
@@ -768,6 +787,7 @@ module Google
768
787
  @spaces = args[:spaces] if args.key?(:spaces)
769
788
  @starred = args[:starred] if args.key?(:starred)
770
789
  @thumbnail_link = args[:thumbnail_link] if args.key?(:thumbnail_link)
790
+ @thumbnail_version = args[:thumbnail_version] if args.key?(:thumbnail_version)
771
791
  @trashed = args[:trashed] if args.key?(:trashed)
772
792
  @version = args[:version] if args.key?(:version)
773
793
  @video_media_metadata = args[:video_media_metadata] if args.key?(:video_media_metadata)
@@ -1090,7 +1110,8 @@ module Google
1090
1110
  class FileList
1091
1111
  include Google::Apis::Core::Hashable
1092
1112
 
1093
- # The page of files.
1113
+ # The list of files. If nextPageToken is populated, then this list may be
1114
+ # incomplete and an additional page of results should be fetched.
1094
1115
  # Corresponds to the JSON property `files`
1095
1116
  # @return [Array<Google::Apis::DriveV3::File>]
1096
1117
  attr_accessor :files
@@ -1102,7 +1123,9 @@ module Google
1102
1123
  attr_accessor :kind
1103
1124
 
1104
1125
  # The page token for the next page of files. This will be absent if the end of
1105
- # the files list has been reached.
1126
+ # the files list has been reached. If the token is rejected for any reason, it
1127
+ # should be discarded, and pagination should be restarted from the first page of
1128
+ # results.
1106
1129
  # Corresponds to the JSON property `nextPageToken`
1107
1130
  # @return [String]
1108
1131
  attr_accessor :next_page_token
@@ -1247,7 +1270,7 @@ module Google
1247
1270
  # @return [String]
1248
1271
  attr_accessor :kind
1249
1272
 
1250
- # The full list of permissions.
1273
+ # The list of permissions.
1251
1274
  # Corresponds to the JSON property `permissions`
1252
1275
  # @return [Array<Google::Apis::DriveV3::Permission>]
1253
1276
  attr_accessor :permissions
@@ -1347,12 +1370,15 @@ module Google
1347
1370
  attr_accessor :kind
1348
1371
 
1349
1372
  # The page token for the next page of replies. This will be absent if the end of
1350
- # the replies list has been reached.
1373
+ # the replies list has been reached. If the token is rejected for any reason, it
1374
+ # should be discarded, and pagination should be restarted from the first page of
1375
+ # results.
1351
1376
  # Corresponds to the JSON property `nextPageToken`
1352
1377
  # @return [String]
1353
1378
  attr_accessor :next_page_token
1354
1379
 
1355
- # The page of replies.
1380
+ # The list of replies. If nextPageToken is populated, then this list may be
1381
+ # incomplete and an additional page of results should be fetched.
1356
1382
  # Corresponds to the JSON property `replies`
1357
1383
  # @return [Array<Google::Apis::DriveV3::Reply>]
1358
1384
  attr_accessor :replies
@@ -1479,12 +1505,15 @@ module Google
1479
1505
  attr_accessor :kind
1480
1506
 
1481
1507
  # The page token for the next page of revisions. This will be absent if the end
1482
- # of the revisions list has been reached.
1508
+ # of the revisions list has been reached. If the token is rejected for any
1509
+ # reason, it should be discarded, and pagination should be restarted from the
1510
+ # first page of results.
1483
1511
  # Corresponds to the JSON property `nextPageToken`
1484
1512
  # @return [String]
1485
1513
  attr_accessor :next_page_token
1486
1514
 
1487
- # The full list of revisions.
1515
+ # The list of revisions. If nextPageToken is populated, then this list may be
1516
+ # incomplete and an additional page of results should be fetched.
1488
1517
  # Corresponds to the JSON property `revisions`
1489
1518
  # @return [Array<Google::Apis::DriveV3::Revision>]
1490
1519
  attr_accessor :revisions