google-api-client 0.9.8 → 0.10.2
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/.travis.yml +15 -8
- data/CHANGELOG.md +84 -0
- data/Gemfile +10 -2
- data/README.md +10 -2
- data/api_names.yaml +37172 -135
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -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 +206 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
- data/generated/google/apis/admin_directory_v1/service.rb +41 -2
- data/generated/google/apis/admin_reports_v1.rb +5 -5
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +379 -3
- data/generated/google/apis/analytics_v3/representations.rb +136 -0
- data/generated/google/apis/analytics_v3/service.rb +256 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
- data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
- data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
- data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
- data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
- data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
- data/generated/google/apis/appengine_v1beta5.rb +7 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
- data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
- data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
- data/generated/google/apis/appsactivity_v1.rb +3 -3
- data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
- data/generated/google/apis/appsactivity_v1/service.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 +360 -38
- data/generated/google/apis/bigquery_v2/representations.rb +106 -0
- data/generated/google/apis/bigquery_v2/service.rb +18 -4
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +83 -0
- data/generated/google/apis/books_v1/representations.rb +35 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +208 -5
- data/generated/google/apis/calendar_v3/representations.rb +97 -0
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
- data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
- data/generated/google/apis/civicinfo_v2/service.rb +27 -6
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -761
- data/generated/google/apis/classroom_v1/representations.rb +263 -198
- data/generated/google/apis/classroom_v1/service.rb +1349 -672
- data/generated/google/apis/cloudbilling_v1.rb +3 -3
- data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
- data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
- data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
- data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
- data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
- data/generated/google/apis/clouddebugger_v2.rb +5 -8
- data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
- data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
- data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
- data/generated/google/apis/cloudkms_v1.rb +35 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1/service.rb +933 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
- data/generated/google/apis/cloudtrace_v1.rb +9 -9
- data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
- data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +7007 -3648
- data/generated/google/apis/compute_beta/representations.rb +1459 -120
- data/generated/google/apis/compute_beta/service.rb +7943 -3726
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +2567 -370
- data/generated/google/apis/compute_v1/representations.rb +855 -0
- data/generated/google/apis/compute_v1/service.rb +6388 -2908
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +287 -16
- data/generated/google/apis/container_v1/representations.rb +113 -2
- data/generated/google/apis/container_v1/service.rb +130 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +778 -10
- data/generated/google/apis/content_v2/representations.rb +339 -0
- data/generated/google/apis/content_v2/service.rb +364 -49
- data/generated/google/apis/dataflow_v1b3.rb +37 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
- data/generated/google/apis/dataproc_v1/representations.rb +299 -225
- data/generated/google/apis/dataproc_v1/service.rb +277 -192
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1289 -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 +436 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
- 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 +11586 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
- data/generated/google/apis/dfareporting_v2_7.rb +40 -0
- data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
- data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
- data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +43 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
- data/generated/google/apis/dns_v2beta1/service.rb +768 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +595 -37
- data/generated/google/apis/drive_v2/representations.rb +140 -0
- data/generated/google/apis/drive_v2/service.rb +406 -40
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +507 -40
- data/generated/google/apis/drive_v3/representations.rb +105 -0
- data/generated/google/apis/drive_v3/service.rb +326 -29
- data/generated/google/apis/fitness_v1.rb +38 -2
- data/generated/google/apis/fitness_v1/classes.rb +65 -7
- 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 +10 -12
- data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
- data/generated/google/apis/genomics_v1/representations.rb +468 -496
- data/generated/google/apis/genomics_v1/service.rb +978 -882
- data/generated/google/apis/gmail_v1.rb +11 -2
- data/generated/google/apis/gmail_v1/classes.rb +655 -5
- data/generated/google/apis/gmail_v1/representations.rb +261 -0
- data/generated/google/apis/gmail_v1/service.rb +1211 -48
- data/generated/google/apis/groupssettings_v1.rb +2 -2
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +446 -368
- data/generated/google/apis/iam_v1/representations.rb +109 -91
- data/generated/google/apis/iam_v1/service.rb +249 -162
- data/generated/google/apis/identitytoolkit_v3.rb +7 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
- data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
- data/generated/google/apis/kgsearch_v1.rb +2 -3
- data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +26 -24
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +757 -0
- data/generated/google/apis/language_v1beta1/representations.rb +339 -0
- data/generated/google/apis/language_v1beta1/service.rb +185 -0
- data/generated/google/apis/licensing_v1.rb +3 -3
- data/generated/google/apis/licensing_v1/classes.rb +14 -2
- data/generated/google/apis/licensing_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/service.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
- data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
- data/generated/google/apis/logging_v2beta1/service.rb +427 -155
- data/generated/google/apis/manufacturers_v1.rb +34 -0
- data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
- data/generated/google/apis/manufacturers_v1/service.rb +138 -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 +1333 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +706 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +3 -3
- data/generated/google/apis/partners_v2/classes.rb +1831 -477
- data/generated/google/apis/partners_v2/representations.rb +571 -114
- data/generated/google/apis/partners_v2/service.rb +898 -167
- data/generated/google/apis/people_v1.rb +15 -16
- data/generated/google/apis/people_v1/classes.rb +1047 -859
- data/generated/google/apis/people_v1/representations.rb +252 -213
- data/generated/google/apis/people_v1/service.rb +75 -62
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +363 -310
- data/generated/google/apis/pubsub_v1/representations.rb +76 -76
- data/generated/google/apis/pubsub_v1/service.rb +464 -335
- 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/replicapoolupdater_v1beta1.rb +4 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +222 -61
- data/generated/google/apis/reseller_v1/representations.rb +28 -0
- data/generated/google/apis/reseller_v1/service.rb +240 -47
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +151 -137
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/script_v1/service.rb +9 -8
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
- data/generated/google/apis/sheets_v4/representations.rb +988 -737
- data/generated/google/apis/sheets_v4/service.rb +266 -99
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +4480 -0
- data/generated/google/apis/slides_v1/representations.rb +1926 -0
- data/generated/google/apis/slides_v1/service.rb +245 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
- data/generated/google/apis/speech_v1beta1/service.rb +270 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +205 -21
- data/generated/google/apis/storage_v1/representations.rb +51 -1
- data/generated/google/apis/storage_v1/service.rb +263 -9
- data/generated/google/apis/tagmanager_v1.rb +5 -5
- 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 +1275 -731
- data/generated/google/apis/vision_v1/representations.rb +378 -111
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
- data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
- data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +430 -22
- data/generated/google/apis/youtube_v3/representations.rb +171 -4
- data/generated/google/apis/youtube_v3/service.rb +100 -9
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
- data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
- data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
- data/google-api-client.gemspec +4 -3
- data/lib/google/apis/core/api_command.rb +16 -6
- data/lib/google/apis/core/base_service.rb +17 -9
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/json_representation.rb +2 -2
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +6 -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/calendar.rb +1 -1
- data/samples/cli/lib/samples/gmail.rb +74 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/samples/cli/lib/samples/you_tube.rb +4 -1
- data/sync.rb +71 -0
- metadata +86 -18
|
@@ -151,6 +151,12 @@ module Google
|
|
|
151
151
|
class File
|
|
152
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
153
153
|
|
|
154
|
+
class Capabilities
|
|
155
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
156
|
+
|
|
157
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
158
|
+
end
|
|
159
|
+
|
|
154
160
|
class ImageMediaMetadata
|
|
155
161
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
156
162
|
|
|
@@ -216,6 +222,12 @@ module Google
|
|
|
216
222
|
|
|
217
223
|
class Permission
|
|
218
224
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
225
|
+
|
|
226
|
+
class TeamDrivePermissionDetail
|
|
227
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
228
|
+
|
|
229
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
230
|
+
end
|
|
219
231
|
|
|
220
232
|
include Google::Apis::Core::JsonObjectSupport
|
|
221
233
|
end
|
|
@@ -256,6 +268,30 @@ module Google
|
|
|
256
268
|
include Google::Apis::Core::JsonObjectSupport
|
|
257
269
|
end
|
|
258
270
|
|
|
271
|
+
class StartPageToken
|
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
273
|
+
|
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
class TeamDrive
|
|
278
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
279
|
+
|
|
280
|
+
class Capabilities
|
|
281
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
282
|
+
|
|
283
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
class TeamDriveList
|
|
290
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
291
|
+
|
|
292
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
293
|
+
end
|
|
294
|
+
|
|
259
295
|
class User
|
|
260
296
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
261
297
|
|
|
@@ -426,6 +462,10 @@ module Google
|
|
|
426
462
|
property :modification_date, as: 'modificationDate', type: DateTime
|
|
427
463
|
|
|
428
464
|
property :self_link, as: 'selfLink'
|
|
465
|
+
property :team_drive, as: 'teamDrive', class: Google::Apis::DriveV2::TeamDrive, decorator: Google::Apis::DriveV2::TeamDrive::Representation
|
|
466
|
+
|
|
467
|
+
property :team_drive_id, as: 'teamDriveId'
|
|
468
|
+
property :type, as: 'type'
|
|
429
469
|
end
|
|
430
470
|
end
|
|
431
471
|
|
|
@@ -437,6 +477,7 @@ module Google
|
|
|
437
477
|
|
|
438
478
|
property :kind, as: 'kind'
|
|
439
479
|
property :largest_change_id, as: 'largestChangeId'
|
|
480
|
+
property :new_start_page_token, as: 'newStartPageToken'
|
|
440
481
|
property :next_link, as: 'nextLink'
|
|
441
482
|
property :next_page_token, as: 'nextPageToken'
|
|
442
483
|
property :self_link, as: 'selfLink'
|
|
@@ -565,6 +606,8 @@ module Google
|
|
|
565
606
|
property :app_data_contents, as: 'appDataContents'
|
|
566
607
|
property :can_comment, as: 'canComment'
|
|
567
608
|
property :can_read_revisions, as: 'canReadRevisions'
|
|
609
|
+
property :capabilities, as: 'capabilities', class: Google::Apis::DriveV2::File::Capabilities, decorator: Google::Apis::DriveV2::File::Capabilities::Representation
|
|
610
|
+
|
|
568
611
|
property :copyable, as: 'copyable'
|
|
569
612
|
property :created_date, as: 'createdDate', type: DateTime
|
|
570
613
|
|
|
@@ -580,6 +623,8 @@ module Google
|
|
|
580
623
|
property :file_size, as: 'fileSize'
|
|
581
624
|
property :folder_color_rgb, as: 'folderColorRgb'
|
|
582
625
|
property :full_file_extension, as: 'fullFileExtension'
|
|
626
|
+
property :has_augmented_permissions, as: 'hasAugmentedPermissions'
|
|
627
|
+
property :has_thumbnail, as: 'hasThumbnail'
|
|
583
628
|
property :head_revision_id, as: 'headRevisionId'
|
|
584
629
|
property :icon_link, as: 'iconLink'
|
|
585
630
|
property :id, as: 'id'
|
|
@@ -625,10 +670,16 @@ module Google
|
|
|
625
670
|
property :sharing_user, as: 'sharingUser', class: Google::Apis::DriveV2::User, decorator: Google::Apis::DriveV2::User::Representation
|
|
626
671
|
|
|
627
672
|
collection :spaces, as: 'spaces'
|
|
673
|
+
property :team_drive_id, as: 'teamDriveId'
|
|
628
674
|
property :thumbnail, as: 'thumbnail', class: Google::Apis::DriveV2::File::Thumbnail, decorator: Google::Apis::DriveV2::File::Thumbnail::Representation
|
|
629
675
|
|
|
630
676
|
property :thumbnail_link, as: 'thumbnailLink'
|
|
677
|
+
property :thumbnail_version, as: 'thumbnailVersion'
|
|
631
678
|
property :title, as: 'title'
|
|
679
|
+
property :trashed_date, as: 'trashedDate', type: DateTime
|
|
680
|
+
|
|
681
|
+
property :trashing_user, as: 'trashingUser', class: Google::Apis::DriveV2::User, decorator: Google::Apis::DriveV2::User::Representation
|
|
682
|
+
|
|
632
683
|
property :user_permission, as: 'userPermission', class: Google::Apis::DriveV2::Permission, decorator: Google::Apis::DriveV2::Permission::Representation
|
|
633
684
|
|
|
634
685
|
property :version, as: 'version'
|
|
@@ -639,6 +690,28 @@ module Google
|
|
|
639
690
|
property :writers_can_share, as: 'writersCanShare'
|
|
640
691
|
end
|
|
641
692
|
|
|
693
|
+
class Capabilities
|
|
694
|
+
# @private
|
|
695
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
696
|
+
property :can_add_children, as: 'canAddChildren'
|
|
697
|
+
property :can_comment, as: 'canComment'
|
|
698
|
+
property :can_copy, as: 'canCopy'
|
|
699
|
+
property :can_delete, as: 'canDelete'
|
|
700
|
+
property :can_download, as: 'canDownload'
|
|
701
|
+
property :can_edit, as: 'canEdit'
|
|
702
|
+
property :can_list_children, as: 'canListChildren'
|
|
703
|
+
property :can_move_item_into_team_drive, as: 'canMoveItemIntoTeamDrive'
|
|
704
|
+
property :can_move_team_drive_item, as: 'canMoveTeamDriveItem'
|
|
705
|
+
property :can_read_revisions, as: 'canReadRevisions'
|
|
706
|
+
property :can_read_team_drive, as: 'canReadTeamDrive'
|
|
707
|
+
property :can_remove_children, as: 'canRemoveChildren'
|
|
708
|
+
property :can_rename, as: 'canRename'
|
|
709
|
+
property :can_share, as: 'canShare'
|
|
710
|
+
property :can_trash, as: 'canTrash'
|
|
711
|
+
property :can_untrash, as: 'canUntrash'
|
|
712
|
+
end
|
|
713
|
+
end
|
|
714
|
+
|
|
642
715
|
class ImageMediaMetadata
|
|
643
716
|
# @private
|
|
644
717
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -687,6 +760,7 @@ module Google
|
|
|
687
760
|
# @private
|
|
688
761
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
689
762
|
property :hidden, as: 'hidden'
|
|
763
|
+
property :modified, as: 'modified'
|
|
690
764
|
property :restricted, as: 'restricted'
|
|
691
765
|
property :starred, as: 'starred'
|
|
692
766
|
property :trashed, as: 'trashed'
|
|
@@ -716,6 +790,7 @@ module Google
|
|
|
716
790
|
# @private
|
|
717
791
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
718
792
|
property :etag, as: 'etag'
|
|
793
|
+
property :incomplete_search, as: 'incompleteSearch'
|
|
719
794
|
collection :items, as: 'items', class: Google::Apis::DriveV2::File, decorator: Google::Apis::DriveV2::File::Representation
|
|
720
795
|
|
|
721
796
|
property :kind, as: 'kind'
|
|
@@ -764,16 +839,31 @@ module Google
|
|
|
764
839
|
property :domain, as: 'domain'
|
|
765
840
|
property :email_address, as: 'emailAddress'
|
|
766
841
|
property :etag, as: 'etag'
|
|
842
|
+
property :expiration_date, as: 'expirationDate', type: DateTime
|
|
843
|
+
|
|
767
844
|
property :id, as: 'id'
|
|
768
845
|
property :kind, as: 'kind'
|
|
769
846
|
property :name, as: 'name'
|
|
770
847
|
property :photo_link, as: 'photoLink'
|
|
771
848
|
property :role, as: 'role'
|
|
772
849
|
property :self_link, as: 'selfLink'
|
|
850
|
+
collection :team_drive_permission_details, as: 'teamDrivePermissionDetails', class: Google::Apis::DriveV2::Permission::TeamDrivePermissionDetail, decorator: Google::Apis::DriveV2::Permission::TeamDrivePermissionDetail::Representation
|
|
851
|
+
|
|
773
852
|
property :type, as: 'type'
|
|
774
853
|
property :value, as: 'value'
|
|
775
854
|
property :with_link, as: 'withLink'
|
|
776
855
|
end
|
|
856
|
+
|
|
857
|
+
class TeamDrivePermissionDetail
|
|
858
|
+
# @private
|
|
859
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
860
|
+
collection :additional_roles, as: 'additionalRoles'
|
|
861
|
+
property :inherited, as: 'inherited'
|
|
862
|
+
property :inherited_from, as: 'inheritedFrom'
|
|
863
|
+
property :role, as: 'role'
|
|
864
|
+
property :team_drive_permission_type, as: 'teamDrivePermissionType'
|
|
865
|
+
end
|
|
866
|
+
end
|
|
777
867
|
end
|
|
778
868
|
|
|
779
869
|
class PermissionId
|
|
@@ -791,6 +881,7 @@ module Google
|
|
|
791
881
|
collection :items, as: 'items', class: Google::Apis::DriveV2::Permission, decorator: Google::Apis::DriveV2::Permission::Representation
|
|
792
882
|
|
|
793
883
|
property :kind, as: 'kind'
|
|
884
|
+
property :next_page_token, as: 'nextPageToken'
|
|
794
885
|
property :self_link, as: 'selfLink'
|
|
795
886
|
end
|
|
796
887
|
end
|
|
@@ -851,10 +942,59 @@ module Google
|
|
|
851
942
|
collection :items, as: 'items', class: Google::Apis::DriveV2::Revision, decorator: Google::Apis::DriveV2::Revision::Representation
|
|
852
943
|
|
|
853
944
|
property :kind, as: 'kind'
|
|
945
|
+
property :next_page_token, as: 'nextPageToken'
|
|
854
946
|
property :self_link, as: 'selfLink'
|
|
855
947
|
end
|
|
856
948
|
end
|
|
857
949
|
|
|
950
|
+
class StartPageToken
|
|
951
|
+
# @private
|
|
952
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
953
|
+
property :kind, as: 'kind'
|
|
954
|
+
property :start_page_token, as: 'startPageToken'
|
|
955
|
+
end
|
|
956
|
+
end
|
|
957
|
+
|
|
958
|
+
class TeamDrive
|
|
959
|
+
# @private
|
|
960
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
961
|
+
property :capabilities, as: 'capabilities', class: Google::Apis::DriveV2::TeamDrive::Capabilities, decorator: Google::Apis::DriveV2::TeamDrive::Capabilities::Representation
|
|
962
|
+
|
|
963
|
+
property :id, as: 'id'
|
|
964
|
+
property :kind, as: 'kind'
|
|
965
|
+
property :name, as: 'name'
|
|
966
|
+
end
|
|
967
|
+
|
|
968
|
+
class Capabilities
|
|
969
|
+
# @private
|
|
970
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
971
|
+
property :can_add_children, as: 'canAddChildren'
|
|
972
|
+
property :can_comment, as: 'canComment'
|
|
973
|
+
property :can_copy, as: 'canCopy'
|
|
974
|
+
property :can_delete_team_drive, as: 'canDeleteTeamDrive'
|
|
975
|
+
property :can_download, as: 'canDownload'
|
|
976
|
+
property :can_edit, as: 'canEdit'
|
|
977
|
+
property :can_list_children, as: 'canListChildren'
|
|
978
|
+
property :can_manage_members, as: 'canManageMembers'
|
|
979
|
+
property :can_read_revisions, as: 'canReadRevisions'
|
|
980
|
+
property :can_remove_children, as: 'canRemoveChildren'
|
|
981
|
+
property :can_rename, as: 'canRename'
|
|
982
|
+
property :can_rename_team_drive, as: 'canRenameTeamDrive'
|
|
983
|
+
property :can_share, as: 'canShare'
|
|
984
|
+
end
|
|
985
|
+
end
|
|
986
|
+
end
|
|
987
|
+
|
|
988
|
+
class TeamDriveList
|
|
989
|
+
# @private
|
|
990
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
991
|
+
collection :items, as: 'items', class: Google::Apis::DriveV2::TeamDrive, decorator: Google::Apis::DriveV2::TeamDrive::Representation
|
|
992
|
+
|
|
993
|
+
property :kind, as: 'kind'
|
|
994
|
+
property :next_page_token, as: 'nextPageToken'
|
|
995
|
+
end
|
|
996
|
+
end
|
|
997
|
+
|
|
858
998
|
class User
|
|
859
999
|
# @private
|
|
860
1000
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -184,6 +184,10 @@ module Google
|
|
|
184
184
|
# Gets a specific change.
|
|
185
185
|
# @param [String] change_id
|
|
186
186
|
# The ID of the change.
|
|
187
|
+
# @param [Boolean] supports_team_drives
|
|
188
|
+
# Whether the requesting application supports Team Drives.
|
|
189
|
+
# @param [String] team_drive_id
|
|
190
|
+
# The Team Drive from which the change will be returned.
|
|
187
191
|
# @param [String] fields
|
|
188
192
|
# Selector specifying which fields to include in a partial response.
|
|
189
193
|
# @param [String] quota_user
|
|
@@ -205,33 +209,90 @@ module Google
|
|
|
205
209
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
206
210
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
207
211
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
208
|
-
def get_change(change_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
212
|
+
def get_change(change_id, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
209
213
|
command = make_simple_command(:get, 'changes/{changeId}', options)
|
|
210
214
|
command.response_representation = Google::Apis::DriveV2::Change::Representation
|
|
211
215
|
command.response_class = Google::Apis::DriveV2::Change
|
|
212
216
|
command.params['changeId'] = change_id unless change_id.nil?
|
|
217
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
218
|
+
command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
|
213
219
|
command.query['fields'] = fields unless fields.nil?
|
|
214
220
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
215
221
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
216
222
|
execute_or_queue_command(command, &block)
|
|
217
223
|
end
|
|
218
224
|
|
|
219
|
-
#
|
|
225
|
+
# Gets the starting pageToken for listing future changes.
|
|
226
|
+
# @param [Boolean] supports_team_drives
|
|
227
|
+
# Whether the requesting application supports Team Drives.
|
|
228
|
+
# @param [String] team_drive_id
|
|
229
|
+
# The ID of the Team Drive for which the starting pageToken for listing future
|
|
230
|
+
# changes from that Team Drive will be returned.
|
|
231
|
+
# @param [String] fields
|
|
232
|
+
# Selector specifying which fields to include in a partial response.
|
|
233
|
+
# @param [String] quota_user
|
|
234
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
235
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
236
|
+
# Overrides userIp if both are provided.
|
|
237
|
+
# @param [String] user_ip
|
|
238
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
239
|
+
# enforce per-user limits.
|
|
240
|
+
# @param [Google::Apis::RequestOptions] options
|
|
241
|
+
# Request-specific options
|
|
242
|
+
#
|
|
243
|
+
# @yield [result, err] Result & error if block supplied
|
|
244
|
+
# @yieldparam result [Google::Apis::DriveV2::StartPageToken] parsed result object
|
|
245
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
246
|
+
#
|
|
247
|
+
# @return [Google::Apis::DriveV2::StartPageToken]
|
|
248
|
+
#
|
|
249
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
250
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
251
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
252
|
+
def get_change_start_page_token(supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
253
|
+
command = make_simple_command(:get, 'changes/startPageToken', options)
|
|
254
|
+
command.response_representation = Google::Apis::DriveV2::StartPageToken::Representation
|
|
255
|
+
command.response_class = Google::Apis::DriveV2::StartPageToken
|
|
256
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
257
|
+
command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
|
258
|
+
command.query['fields'] = fields unless fields.nil?
|
|
259
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
260
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
261
|
+
execute_or_queue_command(command, &block)
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
# Lists the changes for a user or Team Drive.
|
|
265
|
+
# @param [Boolean] include_corpus_removals
|
|
266
|
+
# Whether changes should include the file resource if the file is still
|
|
267
|
+
# accessible by the user at the time of the request, even when a file was
|
|
268
|
+
# removed from the list of changes and there will be no further change entries
|
|
269
|
+
# for this file.
|
|
220
270
|
# @param [Boolean] include_deleted
|
|
221
|
-
# Whether to include
|
|
271
|
+
# Whether to include changes indicating that items have been removed from the
|
|
272
|
+
# list of changes, for example by deletion or loss of access.
|
|
222
273
|
# @param [Boolean] include_subscribed
|
|
223
274
|
# Whether to include public files the user has opened and shared files. When set
|
|
224
275
|
# to false, the list only includes owned files plus any shared or public files
|
|
225
276
|
# the user has explicitly added to a folder they own.
|
|
277
|
+
# @param [Boolean] include_team_drive_items
|
|
278
|
+
# Whether Team Drive files or changes should be included in results.
|
|
226
279
|
# @param [Fixnum] max_results
|
|
227
280
|
# Maximum number of changes to return.
|
|
228
281
|
# @param [String] page_token
|
|
229
|
-
#
|
|
282
|
+
# The token for continuing a previous list request on the next page. This should
|
|
283
|
+
# be set to the value of 'nextPageToken' from the previous response or to the
|
|
284
|
+
# response from the getStartPageToken method.
|
|
230
285
|
# @param [String] spaces
|
|
231
286
|
# A comma-separated list of spaces to query. Supported values are 'drive', '
|
|
232
287
|
# appDataFolder' and 'photos'.
|
|
233
288
|
# @param [String] start_change_id
|
|
234
289
|
# Change ID to start listing changes from.
|
|
290
|
+
# @param [Boolean] supports_team_drives
|
|
291
|
+
# Whether the requesting application supports Team Drives.
|
|
292
|
+
# @param [String] team_drive_id
|
|
293
|
+
# The Team Drive from which changes will be returned. If specified the change
|
|
294
|
+
# IDs will be reflective of the Team Drive; use the combined Team Drive ID and
|
|
295
|
+
# change ID as an identifier.
|
|
235
296
|
# @param [String] fields
|
|
236
297
|
# Selector specifying which fields to include in a partial response.
|
|
237
298
|
# @param [String] quota_user
|
|
@@ -253,16 +314,20 @@ module Google
|
|
|
253
314
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
254
315
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
255
316
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
256
|
-
def list_changes(include_deleted: nil, include_subscribed: nil, max_results: nil, page_token: nil, spaces: nil, start_change_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
317
|
+
def list_changes(include_corpus_removals: nil, include_deleted: nil, include_subscribed: nil, include_team_drive_items: nil, max_results: nil, page_token: nil, spaces: nil, start_change_id: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
257
318
|
command = make_simple_command(:get, 'changes', options)
|
|
258
319
|
command.response_representation = Google::Apis::DriveV2::ChangeList::Representation
|
|
259
320
|
command.response_class = Google::Apis::DriveV2::ChangeList
|
|
321
|
+
command.query['includeCorpusRemovals'] = include_corpus_removals unless include_corpus_removals.nil?
|
|
260
322
|
command.query['includeDeleted'] = include_deleted unless include_deleted.nil?
|
|
261
323
|
command.query['includeSubscribed'] = include_subscribed unless include_subscribed.nil?
|
|
324
|
+
command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
|
|
262
325
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
263
326
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
264
327
|
command.query['spaces'] = spaces unless spaces.nil?
|
|
265
328
|
command.query['startChangeId'] = start_change_id unless start_change_id.nil?
|
|
329
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
330
|
+
command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
|
266
331
|
command.query['fields'] = fields unless fields.nil?
|
|
267
332
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
268
333
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -271,21 +336,37 @@ module Google
|
|
|
271
336
|
|
|
272
337
|
# Subscribe to changes for a user.
|
|
273
338
|
# @param [Google::Apis::DriveV2::Channel] channel_object
|
|
339
|
+
# @param [Boolean] include_corpus_removals
|
|
340
|
+
# Whether changes should include the file resource if the file is still
|
|
341
|
+
# accessible by the user at the time of the request, even when a file was
|
|
342
|
+
# removed from the list of changes and there will be no further change entries
|
|
343
|
+
# for this file.
|
|
274
344
|
# @param [Boolean] include_deleted
|
|
275
|
-
# Whether to include
|
|
345
|
+
# Whether to include changes indicating that items have been removed from the
|
|
346
|
+
# list of changes, for example by deletion or loss of access.
|
|
276
347
|
# @param [Boolean] include_subscribed
|
|
277
348
|
# Whether to include public files the user has opened and shared files. When set
|
|
278
349
|
# to false, the list only includes owned files plus any shared or public files
|
|
279
350
|
# the user has explicitly added to a folder they own.
|
|
351
|
+
# @param [Boolean] include_team_drive_items
|
|
352
|
+
# Whether Team Drive files or changes should be included in results.
|
|
280
353
|
# @param [Fixnum] max_results
|
|
281
354
|
# Maximum number of changes to return.
|
|
282
355
|
# @param [String] page_token
|
|
283
|
-
#
|
|
356
|
+
# The token for continuing a previous list request on the next page. This should
|
|
357
|
+
# be set to the value of 'nextPageToken' from the previous response or to the
|
|
358
|
+
# response from the getStartPageToken method.
|
|
284
359
|
# @param [String] spaces
|
|
285
360
|
# A comma-separated list of spaces to query. Supported values are 'drive', '
|
|
286
361
|
# appDataFolder' and 'photos'.
|
|
287
362
|
# @param [String] start_change_id
|
|
288
363
|
# Change ID to start listing changes from.
|
|
364
|
+
# @param [Boolean] supports_team_drives
|
|
365
|
+
# Whether the requesting application supports Team Drives.
|
|
366
|
+
# @param [String] team_drive_id
|
|
367
|
+
# The Team Drive from which changes will be returned. If specified the change
|
|
368
|
+
# IDs will be reflective of the Team Drive; use the combined Team Drive ID and
|
|
369
|
+
# change ID as an identifier.
|
|
289
370
|
# @param [String] fields
|
|
290
371
|
# Selector specifying which fields to include in a partial response.
|
|
291
372
|
# @param [String] quota_user
|
|
@@ -307,18 +388,22 @@ module Google
|
|
|
307
388
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
308
389
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
309
390
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
310
|
-
def watch_change(channel_object = nil, include_deleted: nil, include_subscribed: nil, max_results: nil, page_token: nil, spaces: nil, start_change_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
391
|
+
def watch_change(channel_object = nil, include_corpus_removals: nil, include_deleted: nil, include_subscribed: nil, include_team_drive_items: nil, max_results: nil, page_token: nil, spaces: nil, start_change_id: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
311
392
|
command = make_simple_command(:post, 'changes/watch', options)
|
|
312
393
|
command.request_representation = Google::Apis::DriveV2::Channel::Representation
|
|
313
394
|
command.request_object = channel_object
|
|
314
395
|
command.response_representation = Google::Apis::DriveV2::Channel::Representation
|
|
315
396
|
command.response_class = Google::Apis::DriveV2::Channel
|
|
397
|
+
command.query['includeCorpusRemovals'] = include_corpus_removals unless include_corpus_removals.nil?
|
|
316
398
|
command.query['includeDeleted'] = include_deleted unless include_deleted.nil?
|
|
317
399
|
command.query['includeSubscribed'] = include_subscribed unless include_subscribed.nil?
|
|
400
|
+
command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
|
|
318
401
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
319
402
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
320
403
|
command.query['spaces'] = spaces unless spaces.nil?
|
|
321
404
|
command.query['startChangeId'] = start_change_id unless start_change_id.nil?
|
|
405
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
406
|
+
command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
|
322
407
|
command.query['fields'] = fields unless fields.nil?
|
|
323
408
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
324
409
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -436,6 +521,8 @@ module Google
|
|
|
436
521
|
# @param [String] folder_id
|
|
437
522
|
# The ID of the folder.
|
|
438
523
|
# @param [Google::Apis::DriveV2::ChildReference] child_reference_object
|
|
524
|
+
# @param [Boolean] supports_team_drives
|
|
525
|
+
# Whether the requesting application supports Team Drives.
|
|
439
526
|
# @param [String] fields
|
|
440
527
|
# Selector specifying which fields to include in a partial response.
|
|
441
528
|
# @param [String] quota_user
|
|
@@ -457,13 +544,14 @@ module Google
|
|
|
457
544
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
458
545
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
459
546
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
460
|
-
def insert_child(folder_id, child_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
547
|
+
def insert_child(folder_id, child_reference_object = nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
461
548
|
command = make_simple_command(:post, 'files/{folderId}/children', options)
|
|
462
549
|
command.request_representation = Google::Apis::DriveV2::ChildReference::Representation
|
|
463
550
|
command.request_object = child_reference_object
|
|
464
551
|
command.response_representation = Google::Apis::DriveV2::ChildReference::Representation
|
|
465
552
|
command.response_class = Google::Apis::DriveV2::ChildReference
|
|
466
553
|
command.params['folderId'] = folder_id unless folder_id.nil?
|
|
554
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
467
555
|
command.query['fields'] = fields unless fields.nil?
|
|
468
556
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
469
557
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -785,6 +873,8 @@ module Google
|
|
|
785
873
|
# @param [Boolean] pinned
|
|
786
874
|
# Whether to pin the head revision of the new copy. A file can have a maximum of
|
|
787
875
|
# 200 pinned revisions.
|
|
876
|
+
# @param [Boolean] supports_team_drives
|
|
877
|
+
# Whether the requesting application supports Team Drives.
|
|
788
878
|
# @param [String] timed_text_language
|
|
789
879
|
# The language of the timed text.
|
|
790
880
|
# @param [String] timed_text_track_name
|
|
@@ -813,7 +903,7 @@ module Google
|
|
|
813
903
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
814
904
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
815
905
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
816
|
-
def copy_file(file_id, file_object = nil, convert: nil, ocr: nil, ocr_language: nil, pinned: nil, timed_text_language: nil, timed_text_track_name: nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
906
|
+
def copy_file(file_id, file_object = nil, convert: nil, ocr: nil, ocr_language: nil, pinned: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
817
907
|
command = make_simple_command(:post, 'files/{fileId}/copy', options)
|
|
818
908
|
command.request_representation = Google::Apis::DriveV2::File::Representation
|
|
819
909
|
command.request_object = file_object
|
|
@@ -824,6 +914,7 @@ module Google
|
|
|
824
914
|
command.query['ocr'] = ocr unless ocr.nil?
|
|
825
915
|
command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
|
|
826
916
|
command.query['pinned'] = pinned unless pinned.nil?
|
|
917
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
827
918
|
command.query['timedTextLanguage'] = timed_text_language unless timed_text_language.nil?
|
|
828
919
|
command.query['timedTextTrackName'] = timed_text_track_name unless timed_text_track_name.nil?
|
|
829
920
|
command.query['visibility'] = visibility unless visibility.nil?
|
|
@@ -834,9 +925,11 @@ module Google
|
|
|
834
925
|
end
|
|
835
926
|
|
|
836
927
|
# Permanently deletes a file by ID. Skips the trash. The currently authenticated
|
|
837
|
-
# user must own the file.
|
|
928
|
+
# user must own the file or be an organizer on the parent for Team Drive files.
|
|
838
929
|
# @param [String] file_id
|
|
839
930
|
# The ID of the file to delete.
|
|
931
|
+
# @param [Boolean] supports_team_drives
|
|
932
|
+
# Whether the requesting application supports Team Drives.
|
|
840
933
|
# @param [String] fields
|
|
841
934
|
# Selector specifying which fields to include in a partial response.
|
|
842
935
|
# @param [String] quota_user
|
|
@@ -858,9 +951,10 @@ module Google
|
|
|
858
951
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
859
952
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
860
953
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
861
|
-
def delete_file(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
954
|
+
def delete_file(file_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
862
955
|
command = make_simple_command(:delete, 'files/{fileId}', options)
|
|
863
956
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
957
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
864
958
|
command.query['fields'] = fields unless fields.nil?
|
|
865
959
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
866
960
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -991,6 +1085,8 @@ module Google
|
|
|
991
1085
|
# @param [String] revision_id
|
|
992
1086
|
# Specifies the Revision ID that should be downloaded. Ignored unless alt=media
|
|
993
1087
|
# is specified.
|
|
1088
|
+
# @param [Boolean] supports_team_drives
|
|
1089
|
+
# Whether the requesting application supports Team Drives.
|
|
994
1090
|
# @param [Boolean] update_viewed_date
|
|
995
1091
|
# Deprecated: Use files.update with modifiedDateBehavior=noChange,
|
|
996
1092
|
# updateViewedDate=true and an empty request body.
|
|
@@ -1017,7 +1113,7 @@ module Google
|
|
|
1017
1113
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1018
1114
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1019
1115
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1020
|
-
def get_file(file_id, acknowledge_abuse: nil, projection: nil, revision_id: nil, update_viewed_date: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
|
1116
|
+
def get_file(file_id, acknowledge_abuse: nil, projection: nil, revision_id: nil, supports_team_drives: nil, update_viewed_date: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
|
1021
1117
|
if download_dest.nil?
|
|
1022
1118
|
command = make_simple_command(:get, 'files/{fileId}', options)
|
|
1023
1119
|
else
|
|
@@ -1030,6 +1126,7 @@ module Google
|
|
|
1030
1126
|
command.query['acknowledgeAbuse'] = acknowledge_abuse unless acknowledge_abuse.nil?
|
|
1031
1127
|
command.query['projection'] = projection unless projection.nil?
|
|
1032
1128
|
command.query['revisionId'] = revision_id unless revision_id.nil?
|
|
1129
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1033
1130
|
command.query['updateViewedDate'] = update_viewed_date unless update_viewed_date.nil?
|
|
1034
1131
|
command.query['fields'] = fields unless fields.nil?
|
|
1035
1132
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1048,6 +1145,8 @@ module Google
|
|
|
1048
1145
|
# @param [Boolean] pinned
|
|
1049
1146
|
# Whether to pin the head revision of the uploaded file. A file can have a
|
|
1050
1147
|
# maximum of 200 pinned revisions.
|
|
1148
|
+
# @param [Boolean] supports_team_drives
|
|
1149
|
+
# Whether the requesting application supports Team Drives.
|
|
1051
1150
|
# @param [String] timed_text_language
|
|
1052
1151
|
# The language of the timed text.
|
|
1053
1152
|
# @param [String] timed_text_track_name
|
|
@@ -1082,7 +1181,7 @@ module Google
|
|
|
1082
1181
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1083
1182
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1084
1183
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1085
|
-
def insert_file(file_object = nil, convert: nil, ocr: nil, ocr_language: nil, pinned: nil, timed_text_language: nil, timed_text_track_name: nil, use_content_as_indexable_text: nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
|
1184
|
+
def insert_file(file_object = nil, convert: nil, ocr: nil, ocr_language: nil, pinned: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, use_content_as_indexable_text: nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
|
1086
1185
|
if upload_source.nil?
|
|
1087
1186
|
command = make_simple_command(:post, 'files', options)
|
|
1088
1187
|
else
|
|
@@ -1098,6 +1197,7 @@ module Google
|
|
|
1098
1197
|
command.query['ocr'] = ocr unless ocr.nil?
|
|
1099
1198
|
command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
|
|
1100
1199
|
command.query['pinned'] = pinned unless pinned.nil?
|
|
1200
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1101
1201
|
command.query['timedTextLanguage'] = timed_text_language unless timed_text_language.nil?
|
|
1102
1202
|
command.query['timedTextTrackName'] = timed_text_track_name unless timed_text_track_name.nil?
|
|
1103
1203
|
command.query['useContentAsIndexableText'] = use_content_as_indexable_text unless use_content_as_indexable_text.nil?
|
|
@@ -1109,8 +1209,17 @@ module Google
|
|
|
1109
1209
|
end
|
|
1110
1210
|
|
|
1111
1211
|
# Lists the user's files.
|
|
1212
|
+
# @param [String] corpora
|
|
1213
|
+
# Comma-separated list of bodies of items (files/documents) to which the query
|
|
1214
|
+
# applies. Supported bodies are 'default', 'domain', 'teamDrive' and '
|
|
1215
|
+
# allTeamDrives'. 'allTeamDrives' must be combined with 'default'; all other
|
|
1216
|
+
# values must be used in isolation. Prefer 'default' or 'teamDrive' to '
|
|
1217
|
+
# allTeamDrives' for efficiency.
|
|
1112
1218
|
# @param [String] corpus
|
|
1113
|
-
# The body of items (files/documents) to which the query applies.
|
|
1219
|
+
# The body of items (files/documents) to which the query applies. Deprecated:
|
|
1220
|
+
# use 'corpora' instead.
|
|
1221
|
+
# @param [Boolean] include_team_drive_items
|
|
1222
|
+
# Whether Team Drive items should be included in results.
|
|
1114
1223
|
# @param [Fixnum] max_results
|
|
1115
1224
|
# Maximum number of files to return.
|
|
1116
1225
|
# @param [String] order_by
|
|
@@ -1130,6 +1239,10 @@ module Google
|
|
|
1130
1239
|
# @param [String] spaces
|
|
1131
1240
|
# A comma-separated list of spaces to query. Supported values are 'drive', '
|
|
1132
1241
|
# appDataFolder' and 'photos'.
|
|
1242
|
+
# @param [Boolean] supports_team_drives
|
|
1243
|
+
# Whether the requesting application supports Team Drives.
|
|
1244
|
+
# @param [String] team_drive_id
|
|
1245
|
+
# ID of Team Drive to search.
|
|
1133
1246
|
# @param [String] fields
|
|
1134
1247
|
# Selector specifying which fields to include in a partial response.
|
|
1135
1248
|
# @param [String] quota_user
|
|
@@ -1151,17 +1264,21 @@ module Google
|
|
|
1151
1264
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1152
1265
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1153
1266
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1154
|
-
def list_files(corpus: nil, max_results: nil, order_by: nil, page_token: nil, projection: nil, q: nil, spaces: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1267
|
+
def list_files(corpora: nil, corpus: nil, include_team_drive_items: nil, max_results: nil, order_by: nil, page_token: nil, projection: nil, q: nil, spaces: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1155
1268
|
command = make_simple_command(:get, 'files', options)
|
|
1156
1269
|
command.response_representation = Google::Apis::DriveV2::FileList::Representation
|
|
1157
1270
|
command.response_class = Google::Apis::DriveV2::FileList
|
|
1271
|
+
command.query['corpora'] = corpora unless corpora.nil?
|
|
1158
1272
|
command.query['corpus'] = corpus unless corpus.nil?
|
|
1273
|
+
command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
|
|
1159
1274
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
1160
1275
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
1161
1276
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1162
1277
|
command.query['projection'] = projection unless projection.nil?
|
|
1163
1278
|
command.query['q'] = q unless q.nil?
|
|
1164
1279
|
command.query['spaces'] = spaces unless spaces.nil?
|
|
1280
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1281
|
+
command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
|
1165
1282
|
command.query['fields'] = fields unless fields.nil?
|
|
1166
1283
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1167
1284
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -1197,6 +1314,8 @@ module Google
|
|
|
1197
1314
|
# Comma-separated list of parent IDs to remove.
|
|
1198
1315
|
# @param [Boolean] set_modified_date
|
|
1199
1316
|
# Whether to set the modified date with the supplied modified date.
|
|
1317
|
+
# @param [Boolean] supports_team_drives
|
|
1318
|
+
# Whether the requesting application supports Team Drives.
|
|
1200
1319
|
# @param [String] timed_text_language
|
|
1201
1320
|
# The language of the timed text.
|
|
1202
1321
|
# @param [String] timed_text_track_name
|
|
@@ -1226,7 +1345,7 @@ module Google
|
|
|
1226
1345
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1227
1346
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1228
1347
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1229
|
-
def patch_file(file_id, file_object = nil, add_parents: nil, convert: nil, modified_date_behavior: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1348
|
+
def patch_file(file_id, file_object = nil, add_parents: nil, convert: nil, modified_date_behavior: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1230
1349
|
command = make_simple_command(:patch, 'files/{fileId}', options)
|
|
1231
1350
|
command.request_representation = Google::Apis::DriveV2::File::Representation
|
|
1232
1351
|
command.request_object = file_object
|
|
@@ -1242,6 +1361,7 @@ module Google
|
|
|
1242
1361
|
command.query['pinned'] = pinned unless pinned.nil?
|
|
1243
1362
|
command.query['removeParents'] = remove_parents unless remove_parents.nil?
|
|
1244
1363
|
command.query['setModifiedDate'] = set_modified_date unless set_modified_date.nil?
|
|
1364
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1245
1365
|
command.query['timedTextLanguage'] = timed_text_language unless timed_text_language.nil?
|
|
1246
1366
|
command.query['timedTextTrackName'] = timed_text_track_name unless timed_text_track_name.nil?
|
|
1247
1367
|
command.query['updateViewedDate'] = update_viewed_date unless update_viewed_date.nil?
|
|
@@ -1255,6 +1375,8 @@ module Google
|
|
|
1255
1375
|
# Set the file's updated time to the current server time.
|
|
1256
1376
|
# @param [String] file_id
|
|
1257
1377
|
# The ID of the file to update.
|
|
1378
|
+
# @param [Boolean] supports_team_drives
|
|
1379
|
+
# Whether the requesting application supports Team Drives.
|
|
1258
1380
|
# @param [String] fields
|
|
1259
1381
|
# Selector specifying which fields to include in a partial response.
|
|
1260
1382
|
# @param [String] quota_user
|
|
@@ -1276,20 +1398,24 @@ module Google
|
|
|
1276
1398
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1277
1399
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1278
1400
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1279
|
-
def touch_file(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1401
|
+
def touch_file(file_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1280
1402
|
command = make_simple_command(:post, 'files/{fileId}/touch', options)
|
|
1281
1403
|
command.response_representation = Google::Apis::DriveV2::File::Representation
|
|
1282
1404
|
command.response_class = Google::Apis::DriveV2::File
|
|
1283
1405
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1406
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1284
1407
|
command.query['fields'] = fields unless fields.nil?
|
|
1285
1408
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1286
1409
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1287
1410
|
execute_or_queue_command(command, &block)
|
|
1288
1411
|
end
|
|
1289
1412
|
|
|
1290
|
-
# Moves a file to the trash. The currently authenticated user must own the file
|
|
1413
|
+
# Moves a file to the trash. The currently authenticated user must own the file
|
|
1414
|
+
# or be an organizer on the parent for Team Drive files.
|
|
1291
1415
|
# @param [String] file_id
|
|
1292
1416
|
# The ID of the file to trash.
|
|
1417
|
+
# @param [Boolean] supports_team_drives
|
|
1418
|
+
# Whether the requesting application supports Team Drives.
|
|
1293
1419
|
# @param [String] fields
|
|
1294
1420
|
# Selector specifying which fields to include in a partial response.
|
|
1295
1421
|
# @param [String] quota_user
|
|
@@ -1311,11 +1437,12 @@ module Google
|
|
|
1311
1437
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1312
1438
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1313
1439
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1314
|
-
def trash_file(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1440
|
+
def trash_file(file_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1315
1441
|
command = make_simple_command(:post, 'files/{fileId}/trash', options)
|
|
1316
1442
|
command.response_representation = Google::Apis::DriveV2::File::Representation
|
|
1317
1443
|
command.response_class = Google::Apis::DriveV2::File
|
|
1318
1444
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1445
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1319
1446
|
command.query['fields'] = fields unless fields.nil?
|
|
1320
1447
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1321
1448
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -1325,6 +1452,8 @@ module Google
|
|
|
1325
1452
|
# Restores a file from the trash.
|
|
1326
1453
|
# @param [String] file_id
|
|
1327
1454
|
# The ID of the file to untrash.
|
|
1455
|
+
# @param [Boolean] supports_team_drives
|
|
1456
|
+
# Whether the requesting application supports Team Drives.
|
|
1328
1457
|
# @param [String] fields
|
|
1329
1458
|
# Selector specifying which fields to include in a partial response.
|
|
1330
1459
|
# @param [String] quota_user
|
|
@@ -1346,11 +1475,12 @@ module Google
|
|
|
1346
1475
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1347
1476
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1348
1477
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1349
|
-
def untrash_file(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1478
|
+
def untrash_file(file_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1350
1479
|
command = make_simple_command(:post, 'files/{fileId}/untrash', options)
|
|
1351
1480
|
command.response_representation = Google::Apis::DriveV2::File::Representation
|
|
1352
1481
|
command.response_class = Google::Apis::DriveV2::File
|
|
1353
1482
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1483
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1354
1484
|
command.query['fields'] = fields unless fields.nil?
|
|
1355
1485
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1356
1486
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -1386,6 +1516,8 @@ module Google
|
|
|
1386
1516
|
# Comma-separated list of parent IDs to remove.
|
|
1387
1517
|
# @param [Boolean] set_modified_date
|
|
1388
1518
|
# Whether to set the modified date with the supplied modified date.
|
|
1519
|
+
# @param [Boolean] supports_team_drives
|
|
1520
|
+
# Whether the requesting application supports Team Drives.
|
|
1389
1521
|
# @param [String] timed_text_language
|
|
1390
1522
|
# The language of the timed text.
|
|
1391
1523
|
# @param [String] timed_text_track_name
|
|
@@ -1419,7 +1551,7 @@ module Google
|
|
|
1419
1551
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1420
1552
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1421
1553
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1422
|
-
def update_file(file_id, file_object = nil, add_parents: nil, convert: nil, modified_date_behavior: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
|
1554
|
+
def update_file(file_id, file_object = nil, add_parents: nil, convert: nil, modified_date_behavior: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
|
1423
1555
|
if upload_source.nil?
|
|
1424
1556
|
command = make_simple_command(:put, 'files/{fileId}', options)
|
|
1425
1557
|
else
|
|
@@ -1441,6 +1573,7 @@ module Google
|
|
|
1441
1573
|
command.query['pinned'] = pinned unless pinned.nil?
|
|
1442
1574
|
command.query['removeParents'] = remove_parents unless remove_parents.nil?
|
|
1443
1575
|
command.query['setModifiedDate'] = set_modified_date unless set_modified_date.nil?
|
|
1576
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1444
1577
|
command.query['timedTextLanguage'] = timed_text_language unless timed_text_language.nil?
|
|
1445
1578
|
command.query['timedTextTrackName'] = timed_text_track_name unless timed_text_track_name.nil?
|
|
1446
1579
|
command.query['updateViewedDate'] = update_viewed_date unless update_viewed_date.nil?
|
|
@@ -1463,6 +1596,8 @@ module Google
|
|
|
1463
1596
|
# @param [String] revision_id
|
|
1464
1597
|
# Specifies the Revision ID that should be downloaded. Ignored unless alt=media
|
|
1465
1598
|
# is specified.
|
|
1599
|
+
# @param [Boolean] supports_team_drives
|
|
1600
|
+
# Whether the requesting application supports Team Drives.
|
|
1466
1601
|
# @param [Boolean] update_viewed_date
|
|
1467
1602
|
# Deprecated: Use files.update with modifiedDateBehavior=noChange,
|
|
1468
1603
|
# updateViewedDate=true and an empty request body.
|
|
@@ -1489,7 +1624,7 @@ module Google
|
|
|
1489
1624
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1490
1625
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1491
1626
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1492
|
-
def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, projection: nil, revision_id: nil, update_viewed_date: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
|
1627
|
+
def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, projection: nil, revision_id: nil, supports_team_drives: nil, update_viewed_date: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
|
1493
1628
|
if download_dest.nil?
|
|
1494
1629
|
command = make_simple_command(:post, 'files/{fileId}/watch', options)
|
|
1495
1630
|
else
|
|
@@ -1504,6 +1639,7 @@ module Google
|
|
|
1504
1639
|
command.query['acknowledgeAbuse'] = acknowledge_abuse unless acknowledge_abuse.nil?
|
|
1505
1640
|
command.query['projection'] = projection unless projection.nil?
|
|
1506
1641
|
command.query['revisionId'] = revision_id unless revision_id.nil?
|
|
1642
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1507
1643
|
command.query['updateViewedDate'] = update_viewed_date unless update_viewed_date.nil?
|
|
1508
1644
|
command.query['fields'] = fields unless fields.nil?
|
|
1509
1645
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1589,6 +1725,8 @@ module Google
|
|
|
1589
1725
|
# @param [String] file_id
|
|
1590
1726
|
# The ID of the file.
|
|
1591
1727
|
# @param [Google::Apis::DriveV2::ParentReference] parent_reference_object
|
|
1728
|
+
# @param [Boolean] supports_team_drives
|
|
1729
|
+
# Whether the requesting application supports Team Drives.
|
|
1592
1730
|
# @param [String] fields
|
|
1593
1731
|
# Selector specifying which fields to include in a partial response.
|
|
1594
1732
|
# @param [String] quota_user
|
|
@@ -1610,13 +1748,14 @@ module Google
|
|
|
1610
1748
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1611
1749
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1612
1750
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1613
|
-
def insert_parent(file_id, parent_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1751
|
+
def insert_parent(file_id, parent_reference_object = nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1614
1752
|
command = make_simple_command(:post, 'files/{fileId}/parents', options)
|
|
1615
1753
|
command.request_representation = Google::Apis::DriveV2::ParentReference::Representation
|
|
1616
1754
|
command.request_object = parent_reference_object
|
|
1617
1755
|
command.response_representation = Google::Apis::DriveV2::ParentReference::Representation
|
|
1618
1756
|
command.response_class = Google::Apis::DriveV2::ParentReference
|
|
1619
1757
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1758
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1620
1759
|
command.query['fields'] = fields unless fields.nil?
|
|
1621
1760
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1622
1761
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -1658,11 +1797,13 @@ module Google
|
|
|
1658
1797
|
execute_or_queue_command(command, &block)
|
|
1659
1798
|
end
|
|
1660
1799
|
|
|
1661
|
-
# Deletes a permission from a file.
|
|
1800
|
+
# Deletes a permission from a file or Team Drive.
|
|
1662
1801
|
# @param [String] file_id
|
|
1663
|
-
# The ID for the file.
|
|
1802
|
+
# The ID for the file or Team Drive.
|
|
1664
1803
|
# @param [String] permission_id
|
|
1665
1804
|
# The ID for the permission.
|
|
1805
|
+
# @param [Boolean] supports_team_drives
|
|
1806
|
+
# Whether the requesting application supports Team Drives.
|
|
1666
1807
|
# @param [String] fields
|
|
1667
1808
|
# Selector specifying which fields to include in a partial response.
|
|
1668
1809
|
# @param [String] quota_user
|
|
@@ -1684,10 +1825,11 @@ module Google
|
|
|
1684
1825
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1685
1826
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1686
1827
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1687
|
-
def delete_permission(file_id, permission_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1828
|
+
def delete_permission(file_id, permission_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1688
1829
|
command = make_simple_command(:delete, 'files/{fileId}/permissions/{permissionId}', options)
|
|
1689
1830
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1690
1831
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
|
1832
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1691
1833
|
command.query['fields'] = fields unless fields.nil?
|
|
1692
1834
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1693
1835
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -1696,9 +1838,11 @@ module Google
|
|
|
1696
1838
|
|
|
1697
1839
|
# Gets a permission by ID.
|
|
1698
1840
|
# @param [String] file_id
|
|
1699
|
-
# The ID for the file.
|
|
1841
|
+
# The ID for the file or Team Drive.
|
|
1700
1842
|
# @param [String] permission_id
|
|
1701
1843
|
# The ID for the permission.
|
|
1844
|
+
# @param [Boolean] supports_team_drives
|
|
1845
|
+
# Whether the requesting application supports Team Drives.
|
|
1702
1846
|
# @param [String] fields
|
|
1703
1847
|
# Selector specifying which fields to include in a partial response.
|
|
1704
1848
|
# @param [String] quota_user
|
|
@@ -1720,12 +1864,13 @@ module Google
|
|
|
1720
1864
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1721
1865
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1722
1866
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1723
|
-
def get_permission(file_id, permission_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1867
|
+
def get_permission(file_id, permission_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1724
1868
|
command = make_simple_command(:get, 'files/{fileId}/permissions/{permissionId}', options)
|
|
1725
1869
|
command.response_representation = Google::Apis::DriveV2::Permission::Representation
|
|
1726
1870
|
command.response_class = Google::Apis::DriveV2::Permission
|
|
1727
1871
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1728
1872
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
|
1873
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1729
1874
|
command.query['fields'] = fields unless fields.nil?
|
|
1730
1875
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1731
1876
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -1767,15 +1912,17 @@ module Google
|
|
|
1767
1912
|
execute_or_queue_command(command, &block)
|
|
1768
1913
|
end
|
|
1769
1914
|
|
|
1770
|
-
# Inserts a permission for a file.
|
|
1915
|
+
# Inserts a permission for a file or Team Drive.
|
|
1771
1916
|
# @param [String] file_id
|
|
1772
|
-
# The ID for the file.
|
|
1917
|
+
# The ID for the file or Team Drive.
|
|
1773
1918
|
# @param [Google::Apis::DriveV2::Permission] permission_object
|
|
1774
1919
|
# @param [String] email_message
|
|
1775
1920
|
# A custom message to include in notification emails.
|
|
1776
1921
|
# @param [Boolean] send_notification_emails
|
|
1777
1922
|
# Whether to send notification emails when sharing to users or groups. This
|
|
1778
1923
|
# parameter is ignored and an email is sent if the role is owner.
|
|
1924
|
+
# @param [Boolean] supports_team_drives
|
|
1925
|
+
# Whether the requesting application supports Team Drives.
|
|
1779
1926
|
# @param [String] fields
|
|
1780
1927
|
# Selector specifying which fields to include in a partial response.
|
|
1781
1928
|
# @param [String] quota_user
|
|
@@ -1797,7 +1944,7 @@ module Google
|
|
|
1797
1944
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1798
1945
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1799
1946
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1800
|
-
def insert_permission(file_id, permission_object = nil, email_message: nil, send_notification_emails: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1947
|
+
def insert_permission(file_id, permission_object = nil, email_message: nil, send_notification_emails: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1801
1948
|
command = make_simple_command(:post, 'files/{fileId}/permissions', options)
|
|
1802
1949
|
command.request_representation = Google::Apis::DriveV2::Permission::Representation
|
|
1803
1950
|
command.request_object = permission_object
|
|
@@ -1806,15 +1953,25 @@ module Google
|
|
|
1806
1953
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1807
1954
|
command.query['emailMessage'] = email_message unless email_message.nil?
|
|
1808
1955
|
command.query['sendNotificationEmails'] = send_notification_emails unless send_notification_emails.nil?
|
|
1956
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1809
1957
|
command.query['fields'] = fields unless fields.nil?
|
|
1810
1958
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1811
1959
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1812
1960
|
execute_or_queue_command(command, &block)
|
|
1813
1961
|
end
|
|
1814
1962
|
|
|
1815
|
-
# Lists a file's permissions.
|
|
1963
|
+
# Lists a file's or Team Drive's permissions.
|
|
1816
1964
|
# @param [String] file_id
|
|
1817
|
-
# The ID for the file.
|
|
1965
|
+
# The ID for the file or Team Drive.
|
|
1966
|
+
# @param [Fixnum] max_results
|
|
1967
|
+
# The maximum number of permissions to return per page. When not set for files
|
|
1968
|
+
# in a Team Drive, at most 100 results will be returned. When not set for files
|
|
1969
|
+
# that are not in a Team Drive, the entire list will be returned.
|
|
1970
|
+
# @param [String] page_token
|
|
1971
|
+
# The token for continuing a previous list request on the next page. This should
|
|
1972
|
+
# be set to the value of 'nextPageToken' from the previous response.
|
|
1973
|
+
# @param [Boolean] supports_team_drives
|
|
1974
|
+
# Whether the requesting application supports Team Drives.
|
|
1818
1975
|
# @param [String] fields
|
|
1819
1976
|
# Selector specifying which fields to include in a partial response.
|
|
1820
1977
|
# @param [String] quota_user
|
|
@@ -1836,11 +1993,14 @@ module Google
|
|
|
1836
1993
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1837
1994
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1838
1995
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1839
|
-
def list_permissions(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1996
|
+
def list_permissions(file_id, max_results: nil, page_token: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1840
1997
|
command = make_simple_command(:get, 'files/{fileId}/permissions', options)
|
|
1841
1998
|
command.response_representation = Google::Apis::DriveV2::PermissionList::Representation
|
|
1842
1999
|
command.response_class = Google::Apis::DriveV2::PermissionList
|
|
1843
2000
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
2001
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
2002
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
2003
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1844
2004
|
command.query['fields'] = fields unless fields.nil?
|
|
1845
2005
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1846
2006
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -1849,10 +2009,14 @@ module Google
|
|
|
1849
2009
|
|
|
1850
2010
|
# Updates a permission using patch semantics.
|
|
1851
2011
|
# @param [String] file_id
|
|
1852
|
-
# The ID for the file.
|
|
2012
|
+
# The ID for the file or Team Drive.
|
|
1853
2013
|
# @param [String] permission_id
|
|
1854
2014
|
# The ID for the permission.
|
|
1855
2015
|
# @param [Google::Apis::DriveV2::Permission] permission_object
|
|
2016
|
+
# @param [Boolean] remove_expiration
|
|
2017
|
+
# Whether to remove the expiration date.
|
|
2018
|
+
# @param [Boolean] supports_team_drives
|
|
2019
|
+
# Whether the requesting application supports Team Drives.
|
|
1856
2020
|
# @param [Boolean] transfer_ownership
|
|
1857
2021
|
# Whether changing a role to 'owner' downgrades the current owners to writers.
|
|
1858
2022
|
# Does nothing if the specified role is not 'owner'.
|
|
@@ -1877,7 +2041,7 @@ module Google
|
|
|
1877
2041
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1878
2042
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1879
2043
|
# @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)
|
|
2044
|
+
def patch_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_team_drives: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1881
2045
|
command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options)
|
|
1882
2046
|
command.request_representation = Google::Apis::DriveV2::Permission::Representation
|
|
1883
2047
|
command.request_object = permission_object
|
|
@@ -1885,6 +2049,8 @@ module Google
|
|
|
1885
2049
|
command.response_class = Google::Apis::DriveV2::Permission
|
|
1886
2050
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1887
2051
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
|
2052
|
+
command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
|
|
2053
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1888
2054
|
command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
|
|
1889
2055
|
command.query['fields'] = fields unless fields.nil?
|
|
1890
2056
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1894,10 +2060,14 @@ module Google
|
|
|
1894
2060
|
|
|
1895
2061
|
# Updates a permission.
|
|
1896
2062
|
# @param [String] file_id
|
|
1897
|
-
# The ID for the file.
|
|
2063
|
+
# The ID for the file or Team Drive.
|
|
1898
2064
|
# @param [String] permission_id
|
|
1899
2065
|
# The ID for the permission.
|
|
1900
2066
|
# @param [Google::Apis::DriveV2::Permission] permission_object
|
|
2067
|
+
# @param [Boolean] remove_expiration
|
|
2068
|
+
# Whether to remove the expiration date.
|
|
2069
|
+
# @param [Boolean] supports_team_drives
|
|
2070
|
+
# Whether the requesting application supports Team Drives.
|
|
1901
2071
|
# @param [Boolean] transfer_ownership
|
|
1902
2072
|
# Whether changing a role to 'owner' downgrades the current owners to writers.
|
|
1903
2073
|
# Does nothing if the specified role is not 'owner'.
|
|
@@ -1922,7 +2092,7 @@ module Google
|
|
|
1922
2092
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1923
2093
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1924
2094
|
# @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)
|
|
2095
|
+
def update_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_team_drives: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1926
2096
|
command = make_simple_command(:put, 'files/{fileId}/permissions/{permissionId}', options)
|
|
1927
2097
|
command.request_representation = Google::Apis::DriveV2::Permission::Representation
|
|
1928
2098
|
command.request_object = permission_object
|
|
@@ -1930,6 +2100,8 @@ module Google
|
|
|
1930
2100
|
command.response_class = Google::Apis::DriveV2::Permission
|
|
1931
2101
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1932
2102
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
|
2103
|
+
command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
|
|
2104
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1933
2105
|
command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
|
|
1934
2106
|
command.query['fields'] = fields unless fields.nil?
|
|
1935
2107
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -2614,6 +2786,11 @@ module Google
|
|
|
2614
2786
|
# Lists a file's revisions.
|
|
2615
2787
|
# @param [String] file_id
|
|
2616
2788
|
# The ID of the file.
|
|
2789
|
+
# @param [Fixnum] max_results
|
|
2790
|
+
# Maximum number of revisions to return.
|
|
2791
|
+
# @param [String] page_token
|
|
2792
|
+
# Page token for revisions. To get the next page of results, set this parameter
|
|
2793
|
+
# to the value of "nextPageToken" from the previous response.
|
|
2617
2794
|
# @param [String] fields
|
|
2618
2795
|
# Selector specifying which fields to include in a partial response.
|
|
2619
2796
|
# @param [String] quota_user
|
|
@@ -2635,11 +2812,13 @@ module Google
|
|
|
2635
2812
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2636
2813
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2637
2814
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2638
|
-
def list_revisions(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2815
|
+
def list_revisions(file_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2639
2816
|
command = make_simple_command(:get, 'files/{fileId}/revisions', options)
|
|
2640
2817
|
command.response_representation = Google::Apis::DriveV2::RevisionList::Representation
|
|
2641
2818
|
command.response_class = Google::Apis::DriveV2::RevisionList
|
|
2642
2819
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
2820
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
2821
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
2643
2822
|
command.query['fields'] = fields unless fields.nil?
|
|
2644
2823
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2645
2824
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -2727,6 +2906,193 @@ module Google
|
|
|
2727
2906
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2728
2907
|
execute_or_queue_command(command, &block)
|
|
2729
2908
|
end
|
|
2909
|
+
|
|
2910
|
+
# Permanently deletes a Team Drive for which the user is an organizer. The Team
|
|
2911
|
+
# Drive cannot contain any untrashed items.
|
|
2912
|
+
# @param [String] team_drive_id
|
|
2913
|
+
# The ID of the Team Drive
|
|
2914
|
+
# @param [String] fields
|
|
2915
|
+
# Selector specifying which fields to include in a partial response.
|
|
2916
|
+
# @param [String] quota_user
|
|
2917
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2918
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2919
|
+
# Overrides userIp if both are provided.
|
|
2920
|
+
# @param [String] user_ip
|
|
2921
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2922
|
+
# enforce per-user limits.
|
|
2923
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2924
|
+
# Request-specific options
|
|
2925
|
+
#
|
|
2926
|
+
# @yield [result, err] Result & error if block supplied
|
|
2927
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
2928
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2929
|
+
#
|
|
2930
|
+
# @return [void]
|
|
2931
|
+
#
|
|
2932
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2933
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2934
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2935
|
+
def delete_teamdrife(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2936
|
+
command = make_simple_command(:delete, 'teamdrives/{teamDriveId}', options)
|
|
2937
|
+
command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
|
2938
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2939
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2940
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2941
|
+
execute_or_queue_command(command, &block)
|
|
2942
|
+
end
|
|
2943
|
+
|
|
2944
|
+
# Gets a Team Drive's metadata by ID.
|
|
2945
|
+
# @param [String] team_drive_id
|
|
2946
|
+
# The ID of the Team Drive
|
|
2947
|
+
# @param [String] fields
|
|
2948
|
+
# Selector specifying which fields to include in a partial response.
|
|
2949
|
+
# @param [String] quota_user
|
|
2950
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2951
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2952
|
+
# Overrides userIp if both are provided.
|
|
2953
|
+
# @param [String] user_ip
|
|
2954
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2955
|
+
# enforce per-user limits.
|
|
2956
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2957
|
+
# Request-specific options
|
|
2958
|
+
#
|
|
2959
|
+
# @yield [result, err] Result & error if block supplied
|
|
2960
|
+
# @yieldparam result [Google::Apis::DriveV2::TeamDrive] parsed result object
|
|
2961
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2962
|
+
#
|
|
2963
|
+
# @return [Google::Apis::DriveV2::TeamDrive]
|
|
2964
|
+
#
|
|
2965
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2966
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2967
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2968
|
+
def get_teamdrife(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2969
|
+
command = make_simple_command(:get, 'teamdrives/{teamDriveId}', options)
|
|
2970
|
+
command.response_representation = Google::Apis::DriveV2::TeamDrive::Representation
|
|
2971
|
+
command.response_class = Google::Apis::DriveV2::TeamDrive
|
|
2972
|
+
command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
|
2973
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2974
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2975
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2976
|
+
execute_or_queue_command(command, &block)
|
|
2977
|
+
end
|
|
2978
|
+
|
|
2979
|
+
# Creates a new Team Drive.
|
|
2980
|
+
# @param [String] request_id
|
|
2981
|
+
# An ID, such as a random UUID, which uniquely identifies this user's request
|
|
2982
|
+
# for idempotent creation of a Team Drive. A repeated request by the same user
|
|
2983
|
+
# and with the same request ID will avoid creating duplicates by attempting to
|
|
2984
|
+
# create the same Team Drive. If the Team Drive already exists a 409 error will
|
|
2985
|
+
# be returned.
|
|
2986
|
+
# @param [Google::Apis::DriveV2::TeamDrive] team_drive_object
|
|
2987
|
+
# @param [String] fields
|
|
2988
|
+
# Selector specifying which fields to include in a partial response.
|
|
2989
|
+
# @param [String] quota_user
|
|
2990
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2991
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2992
|
+
# Overrides userIp if both are provided.
|
|
2993
|
+
# @param [String] user_ip
|
|
2994
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2995
|
+
# enforce per-user limits.
|
|
2996
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2997
|
+
# Request-specific options
|
|
2998
|
+
#
|
|
2999
|
+
# @yield [result, err] Result & error if block supplied
|
|
3000
|
+
# @yieldparam result [Google::Apis::DriveV2::TeamDrive] parsed result object
|
|
3001
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3002
|
+
#
|
|
3003
|
+
# @return [Google::Apis::DriveV2::TeamDrive]
|
|
3004
|
+
#
|
|
3005
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3006
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3007
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3008
|
+
def insert_teamdrife(request_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3009
|
+
command = make_simple_command(:post, 'teamdrives', options)
|
|
3010
|
+
command.request_representation = Google::Apis::DriveV2::TeamDrive::Representation
|
|
3011
|
+
command.request_object = team_drive_object
|
|
3012
|
+
command.response_representation = Google::Apis::DriveV2::TeamDrive::Representation
|
|
3013
|
+
command.response_class = Google::Apis::DriveV2::TeamDrive
|
|
3014
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
3015
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3016
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3017
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
3018
|
+
execute_or_queue_command(command, &block)
|
|
3019
|
+
end
|
|
3020
|
+
|
|
3021
|
+
# Lists the user's Team Drives.
|
|
3022
|
+
# @param [Fixnum] max_results
|
|
3023
|
+
# Maximum number of Team Drives to return.
|
|
3024
|
+
# @param [String] page_token
|
|
3025
|
+
# Page token for Team Drives.
|
|
3026
|
+
# @param [String] fields
|
|
3027
|
+
# Selector specifying which fields to include in a partial response.
|
|
3028
|
+
# @param [String] quota_user
|
|
3029
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
3030
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
3031
|
+
# Overrides userIp if both are provided.
|
|
3032
|
+
# @param [String] user_ip
|
|
3033
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
3034
|
+
# enforce per-user limits.
|
|
3035
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3036
|
+
# Request-specific options
|
|
3037
|
+
#
|
|
3038
|
+
# @yield [result, err] Result & error if block supplied
|
|
3039
|
+
# @yieldparam result [Google::Apis::DriveV2::TeamDriveList] parsed result object
|
|
3040
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3041
|
+
#
|
|
3042
|
+
# @return [Google::Apis::DriveV2::TeamDriveList]
|
|
3043
|
+
#
|
|
3044
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3045
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3046
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3047
|
+
def list_teamdrives(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3048
|
+
command = make_simple_command(:get, 'teamdrives', options)
|
|
3049
|
+
command.response_representation = Google::Apis::DriveV2::TeamDriveList::Representation
|
|
3050
|
+
command.response_class = Google::Apis::DriveV2::TeamDriveList
|
|
3051
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
3052
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
3053
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3054
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3055
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
3056
|
+
execute_or_queue_command(command, &block)
|
|
3057
|
+
end
|
|
3058
|
+
|
|
3059
|
+
# Updates a Team Drive's metadata
|
|
3060
|
+
# @param [String] team_drive_id
|
|
3061
|
+
# The ID of the Team Drive
|
|
3062
|
+
# @param [Google::Apis::DriveV2::TeamDrive] team_drive_object
|
|
3063
|
+
# @param [String] fields
|
|
3064
|
+
# Selector specifying which fields to include in a partial response.
|
|
3065
|
+
# @param [String] quota_user
|
|
3066
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
3067
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
3068
|
+
# Overrides userIp if both are provided.
|
|
3069
|
+
# @param [String] user_ip
|
|
3070
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
3071
|
+
# enforce per-user limits.
|
|
3072
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3073
|
+
# Request-specific options
|
|
3074
|
+
#
|
|
3075
|
+
# @yield [result, err] Result & error if block supplied
|
|
3076
|
+
# @yieldparam result [Google::Apis::DriveV2::TeamDrive] parsed result object
|
|
3077
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3078
|
+
#
|
|
3079
|
+
# @return [Google::Apis::DriveV2::TeamDrive]
|
|
3080
|
+
#
|
|
3081
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3082
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3083
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3084
|
+
def update_teamdrife(team_drive_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3085
|
+
command = make_simple_command(:put, 'teamdrives/{teamDriveId}', options)
|
|
3086
|
+
command.request_representation = Google::Apis::DriveV2::TeamDrive::Representation
|
|
3087
|
+
command.request_object = team_drive_object
|
|
3088
|
+
command.response_representation = Google::Apis::DriveV2::TeamDrive::Representation
|
|
3089
|
+
command.response_class = Google::Apis::DriveV2::TeamDrive
|
|
3090
|
+
command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
|
3091
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3092
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3093
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
3094
|
+
execute_or_queue_command(command, &block)
|
|
3095
|
+
end
|
|
2730
3096
|
|
|
2731
3097
|
protected
|
|
2732
3098
|
|