google-api-client 0.28.7 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.kokoro/build.bat +9 -6
- data/.kokoro/build.sh +2 -32
- data/.kokoro/continuous/common.cfg +6 -1
- data/.kokoro/continuous/windows.cfg +17 -1
- data/.kokoro/osx.sh +2 -33
- data/.kokoro/presubmit/common.cfg +6 -1
- data/.kokoro/presubmit/windows.cfg +17 -1
- data/.kokoro/trampoline.bat +10 -0
- data/.kokoro/trampoline.sh +3 -23
- data/CHANGELOG.md +138 -0
- data/Rakefile +31 -0
- data/generated/google/apis/accessapproval_v1beta1.rb +34 -0
- data/generated/google/apis/accessapproval_v1beta1/classes.rb +306 -0
- data/generated/google/apis/accessapproval_v1beta1/representations.rb +159 -0
- data/generated/google/apis/accessapproval_v1beta1/service.rb +728 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +96 -131
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +2 -42
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +98 -0
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +25 -0
- data/generated/google/apis/alertcenter_v1beta1/service.rb +2 -1
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +40 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +6 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +0 -26
- data/generated/google/apis/androidenterprise_v1/representations.rb +0 -14
- data/generated/google/apis/androidenterprise_v1/service.rb +0 -36
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +188 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +82 -0
- data/generated/google/apis/androidmanagement_v1/service.rb +170 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/service.rb +6 -12
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/service.rb +6 -12
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/service.rb +7 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +2 -1
- data/generated/google/apis/appengine_v1beta/service.rb +7 -1
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +4 -3
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +28 -4
- data/generated/google/apis/bigquery_v2/representations.rb +13 -0
- data/generated/google/apis/bigtableadmin_v1.rb +2 -2
- data/generated/google/apis/bigtableadmin_v1/service.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2.rb +2 -2
- data/generated/google/apis/bigtableadmin_v2/classes.rb +10 -10
- data/generated/google/apis/bigtableadmin_v2/service.rb +111 -2
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +16 -16
- data/generated/google/apis/classroom_v1.rb +7 -1
- data/generated/google/apis/classroom_v1/classes.rb +77 -0
- data/generated/google/apis/classroom_v1/representations.rb +32 -0
- data/generated/google/apis/classroom_v1/service.rb +224 -0
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +15 -2
- data/generated/google/apis/cloudasset_v1/representations.rb +1 -0
- data/generated/google/apis/cloudasset_v1/service.rb +3 -2
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +13 -0
- data/generated/google/apis/cloudasset_v1beta1/representations.rb +1 -0
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/service.rb +2 -2
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +19 -16
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +6 -5
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -10
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -4
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +6 -5
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +30 -21
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +37 -26
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1.rb +34 -0
- data/generated/google/apis/cloudscheduler_v1/classes.rb +994 -0
- data/generated/google/apis/cloudscheduler_v1/representations.rb +297 -0
- data/generated/google/apis/cloudscheduler_v1/service.rb +448 -0
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -2
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +25 -11
- data/generated/google/apis/cloudsearch_v1/service.rb +36 -32
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/service.rb +13 -13
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +13 -13
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/service.rb +13 -13
- data/generated/google/apis/commentanalyzer_v1alpha1.rb +39 -0
- data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +484 -0
- data/generated/google/apis/commentanalyzer_v1alpha1/representations.rb +210 -0
- data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +124 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +328 -25
- data/generated/google/apis/compute_alpha/representations.rb +134 -0
- data/generated/google/apis/compute_alpha/service.rb +465 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +86 -20
- data/generated/google/apis/compute_beta/representations.rb +7 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +994 -103
- data/generated/google/apis/compute_v1/representations.rb +346 -0
- data/generated/google/apis/compute_v1/service.rb +533 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +167 -21
- data/generated/google/apis/container_v1/representations.rb +66 -0
- data/generated/google/apis/container_v1/service.rb +85 -36
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +86 -21
- data/generated/google/apis/container_v1beta1/representations.rb +32 -0
- data/generated/google/apis/container_v1beta1/service.rb +38 -38
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +95 -6
- data/generated/google/apis/containeranalysis_v1beta1/representations.rb +25 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +5 -5
- data/generated/google/apis/content_v2/service.rb +6 -6
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +18 -4
- data/generated/google/apis/content_v2_1/representations.rb +2 -0
- data/generated/google/apis/content_v2_1/service.rb +6 -6
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +56 -1
- data/generated/google/apis/dataflow_v1b3/representations.rb +39 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +251 -0
- data/generated/google/apis/datafusion_v1beta1.rb +43 -0
- data/generated/google/apis/datafusion_v1beta1/classes.rb +1304 -0
- data/generated/google/apis/datafusion_v1beta1/representations.rb +469 -0
- data/generated/google/apis/datafusion_v1beta1/service.rb +657 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +5 -5
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +37 -24
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +20 -16
- data/generated/google/apis/datastore_v1beta1.rb +1 -1
- data/generated/google/apis/datastore_v1beta1/classes.rb +10 -10
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +10 -6
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +236 -0
- data/generated/google/apis/dialogflow_v2/representations.rb +99 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +64 -2
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +31 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +19 -2
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +202 -93
- data/generated/google/apis/dns_v1/service.rb +110 -15
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +262 -122
- data/generated/google/apis/dns_v1beta2/service.rb +141 -21
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +202 -93
- data/generated/google/apis/dns_v2beta1/service.rb +110 -15
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +10 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +601 -69
- data/generated/google/apis/drive_v2/representations.rb +152 -0
- data/generated/google/apis/drive_v2/service.rb +452 -96
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +591 -64
- data/generated/google/apis/drive_v3/representations.rb +151 -0
- data/generated/google/apis/drive_v3/service.rb +407 -77
- data/generated/google/apis/driveactivity_v2.rb +1 -1
- data/generated/google/apis/driveactivity_v2/classes.rb +149 -17
- data/generated/google/apis/driveactivity_v2/representations.rb +69 -0
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +399 -8
- data/generated/google/apis/file_v1/representations.rb +121 -0
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +399 -8
- data/generated/google/apis/file_v1beta1/representations.rb +121 -0
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +28 -4
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +4 -0
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +13 -13
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +10 -2
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +15 -15
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +15 -15
- data/generated/google/apis/firestore_v1beta2.rb +1 -1
- data/generated/google/apis/firestore_v1beta2/classes.rb +10 -10
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +1 -1
- data/generated/google/apis/games_v1.rb +2 -2
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +29 -0
- data/generated/google/apis/gmail_v1/representations.rb +13 -0
- data/generated/google/apis/gmail_v1/service.rb +76 -0
- data/generated/google/apis/healthcare_v1beta1.rb +34 -0
- data/generated/google/apis/healthcare_v1beta1/classes.rb +2462 -0
- data/generated/google/apis/healthcare_v1beta1/representations.rb +1042 -0
- data/generated/google/apis/healthcare_v1beta1/service.rb +3403 -0
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +9 -8
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +13 -7
- data/generated/google/apis/jobs_v3/service.rb +1 -2
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +13 -7
- data/generated/google/apis/jobs_v3p1beta1/service.rb +1 -2
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +3 -2
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/language_v1beta2/classes.rb +3 -2
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +64 -16
- data/generated/google/apis/ml_v1/representations.rb +2 -0
- data/generated/google/apis/ml_v1/service.rb +5 -5
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +0 -10
- data/generated/google/apis/monitoring_v3/representations.rb +0 -1
- data/generated/google/apis/oauth2_v1.rb +1 -1
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oslogin_v1.rb +3 -2
- data/generated/google/apis/oslogin_v1/service.rb +2 -1
- data/generated/google/apis/oslogin_v1alpha.rb +3 -2
- data/generated/google/apis/oslogin_v1alpha/service.rb +2 -1
- data/generated/google/apis/oslogin_v1beta.rb +3 -2
- data/generated/google/apis/oslogin_v1beta/service.rb +2 -1
- data/generated/google/apis/people_v1.rb +1 -4
- data/generated/google/apis/people_v1/classes.rb +19 -11
- data/generated/google/apis/people_v1/representations.rb +1 -0
- data/generated/google/apis/people_v1/service.rb +1 -0
- data/generated/google/apis/plus_domains_v1.rb +2 -5
- data/generated/google/apis/plus_domains_v1/service.rb +8 -90
- data/generated/google/apis/plus_v1.rb +2 -2
- data/generated/google/apis/plus_v1/service.rb +7 -7
- data/generated/google/apis/poly_v1.rb +1 -1
- data/generated/google/apis/poly_v1/classes.rb +3 -2
- data/generated/google/apis/poly_v1/service.rb +11 -8
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +2 -1
- data/generated/google/apis/pubsub_v1/service.rb +8 -8
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +7 -6
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +5 -4
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +5 -4
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1.rb +35 -0
- data/generated/google/apis/securitycenter_v1/classes.rb +1627 -0
- data/generated/google/apis/securitycenter_v1/representations.rb +569 -0
- data/generated/google/apis/securitycenter_v1/service.rb +1110 -0
- data/generated/google/apis/securitycenter_v1beta1.rb +35 -0
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +1514 -0
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +548 -0
- data/generated/google/apis/securitycenter_v1beta1/service.rb +1035 -0
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +324 -13
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +174 -0
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +5 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +2 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +101 -20
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +16 -13
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +16 -13
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +110 -13
- data/generated/google/apis/serviceusage_v1/representations.rb +43 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +110 -13
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +43 -0
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +182 -0
- data/generated/google/apis/sourcerepo_v1/representations.rb +45 -0
- data/generated/google/apis/sourcerepo_v1/service.rb +35 -0
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +20 -19
- data/generated/google/apis/spanner_v1/service.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +9 -2
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +144 -0
- data/generated/google/apis/storage_v1/representations.rb +56 -0
- data/generated/google/apis/storage_v1/service.rb +441 -46
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +3 -3
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +6 -0
- data/generated/google/apis/testing_v1/representations.rb +1 -0
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +240 -0
- data/generated/google/apis/toolresults_v1beta3/representations.rb +43 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +116 -0
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +10 -4
- data/generated/google/apis/tpu_v1/representations.rb +1 -0
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +10 -4
- data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +37 -18
- data/generated/google/apis/vault_v1/representations.rb +3 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +84 -47
- data/generated/google/apis/vision_v1/service.rb +68 -4
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +84 -47
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +84 -47
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/webmasters_v3/classes.rb +0 -166
- data/generated/google/apis/webmasters_v3/representations.rb +0 -93
- data/generated/google/apis/webmasters_v3/service.rb +0 -171
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +15 -34
- data/generated/google/apis/youtube_partner_v1/representations.rb +4 -17
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +2 -2
- data/google-api-client.gemspec +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +31 -9
- data/.kokoro/common.cfg +0 -22
- data/.kokoro/windows.sh +0 -32
- data/generated/google/apis/logging_v2beta1.rb +0 -46
- data/generated/google/apis/logging_v2beta1/classes.rb +0 -1764
- data/generated/google/apis/logging_v2beta1/representations.rb +0 -537
- data/generated/google/apis/logging_v2beta1/service.rb +0 -570
|
@@ -37,6 +37,12 @@ module Google
|
|
|
37
37
|
include Google::Apis::Core::JsonObjectSupport
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
+
class DriveTheme
|
|
41
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
42
|
+
|
|
43
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
44
|
+
end
|
|
45
|
+
|
|
40
46
|
class ExportFormat
|
|
41
47
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
42
48
|
|
|
@@ -154,6 +160,36 @@ module Google
|
|
|
154
160
|
include Google::Apis::Core::JsonObjectSupport
|
|
155
161
|
end
|
|
156
162
|
|
|
163
|
+
class Drive
|
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
165
|
+
|
|
166
|
+
class BackgroundImageFile
|
|
167
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
168
|
+
|
|
169
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
class Capabilities
|
|
173
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
174
|
+
|
|
175
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
class Restrictions
|
|
179
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
180
|
+
|
|
181
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
class DriveList
|
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
189
|
+
|
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
191
|
+
end
|
|
192
|
+
|
|
157
193
|
class File
|
|
158
194
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
159
195
|
|
|
@@ -229,6 +265,12 @@ module Google
|
|
|
229
265
|
class Permission
|
|
230
266
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
231
267
|
|
|
268
|
+
class PermissionDetail
|
|
269
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
270
|
+
|
|
271
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
272
|
+
end
|
|
273
|
+
|
|
232
274
|
class TeamDrivePermissionDetail
|
|
233
275
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
234
276
|
|
|
@@ -327,8 +369,11 @@ module Google
|
|
|
327
369
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
328
370
|
collection :additional_role_info, as: 'additionalRoleInfo', class: Google::Apis::DriveV2::About::AdditionalRoleInfo, decorator: Google::Apis::DriveV2::About::AdditionalRoleInfo::Representation
|
|
329
371
|
|
|
372
|
+
property :can_create_drives, as: 'canCreateDrives'
|
|
330
373
|
property :can_create_team_drives, as: 'canCreateTeamDrives'
|
|
331
374
|
property :domain_sharing_policy, as: 'domainSharingPolicy'
|
|
375
|
+
collection :drive_themes, as: 'driveThemes', class: Google::Apis::DriveV2::About::DriveTheme, decorator: Google::Apis::DriveV2::About::DriveTheme::Representation
|
|
376
|
+
|
|
332
377
|
property :etag, as: 'etag'
|
|
333
378
|
collection :export_formats, as: 'exportFormats', class: Google::Apis::DriveV2::About::ExportFormat, decorator: Google::Apis::DriveV2::About::ExportFormat::Representation
|
|
334
379
|
|
|
@@ -378,6 +423,15 @@ module Google
|
|
|
378
423
|
end
|
|
379
424
|
end
|
|
380
425
|
|
|
426
|
+
class DriveTheme
|
|
427
|
+
# @private
|
|
428
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
429
|
+
property :background_image_link, as: 'backgroundImageLink'
|
|
430
|
+
property :color_rgb, as: 'colorRgb'
|
|
431
|
+
property :id, as: 'id'
|
|
432
|
+
end
|
|
433
|
+
end
|
|
434
|
+
|
|
381
435
|
class ExportFormat
|
|
382
436
|
# @private
|
|
383
437
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -483,7 +537,11 @@ module Google
|
|
|
483
537
|
class Change
|
|
484
538
|
# @private
|
|
485
539
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
540
|
+
property :change_type, as: 'changeType'
|
|
486
541
|
property :deleted, as: 'deleted'
|
|
542
|
+
property :drive, as: 'drive', class: Google::Apis::DriveV2::Drive, decorator: Google::Apis::DriveV2::Drive::Representation
|
|
543
|
+
|
|
544
|
+
property :drive_id, as: 'driveId'
|
|
487
545
|
property :file, as: 'file', class: Google::Apis::DriveV2::File, decorator: Google::Apis::DriveV2::File::Representation
|
|
488
546
|
|
|
489
547
|
property :file_id, as: 'fileId'
|
|
@@ -629,6 +687,81 @@ module Google
|
|
|
629
687
|
end
|
|
630
688
|
end
|
|
631
689
|
|
|
690
|
+
class Drive
|
|
691
|
+
# @private
|
|
692
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
693
|
+
property :background_image_file, as: 'backgroundImageFile', class: Google::Apis::DriveV2::Drive::BackgroundImageFile, decorator: Google::Apis::DriveV2::Drive::BackgroundImageFile::Representation
|
|
694
|
+
|
|
695
|
+
property :background_image_link, as: 'backgroundImageLink'
|
|
696
|
+
property :capabilities, as: 'capabilities', class: Google::Apis::DriveV2::Drive::Capabilities, decorator: Google::Apis::DriveV2::Drive::Capabilities::Representation
|
|
697
|
+
|
|
698
|
+
property :color_rgb, as: 'colorRgb'
|
|
699
|
+
property :created_date, as: 'createdDate', type: DateTime
|
|
700
|
+
|
|
701
|
+
property :hidden, as: 'hidden'
|
|
702
|
+
property :id, as: 'id'
|
|
703
|
+
property :kind, as: 'kind'
|
|
704
|
+
property :name, as: 'name'
|
|
705
|
+
property :restrictions, as: 'restrictions', class: Google::Apis::DriveV2::Drive::Restrictions, decorator: Google::Apis::DriveV2::Drive::Restrictions::Representation
|
|
706
|
+
|
|
707
|
+
property :theme_id, as: 'themeId'
|
|
708
|
+
end
|
|
709
|
+
|
|
710
|
+
class BackgroundImageFile
|
|
711
|
+
# @private
|
|
712
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
713
|
+
property :id, as: 'id'
|
|
714
|
+
property :width, as: 'width'
|
|
715
|
+
property :x_coordinate, as: 'xCoordinate'
|
|
716
|
+
property :y_coordinate, as: 'yCoordinate'
|
|
717
|
+
end
|
|
718
|
+
end
|
|
719
|
+
|
|
720
|
+
class Capabilities
|
|
721
|
+
# @private
|
|
722
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
723
|
+
property :can_add_children, as: 'canAddChildren'
|
|
724
|
+
property :can_change_copy_requires_writer_permission_restriction, as: 'canChangeCopyRequiresWriterPermissionRestriction'
|
|
725
|
+
property :can_change_domain_users_only_restriction, as: 'canChangeDomainUsersOnlyRestriction'
|
|
726
|
+
property :can_change_drive_background, as: 'canChangeDriveBackground'
|
|
727
|
+
property :can_change_drive_members_only_restriction, as: 'canChangeDriveMembersOnlyRestriction'
|
|
728
|
+
property :can_comment, as: 'canComment'
|
|
729
|
+
property :can_copy, as: 'canCopy'
|
|
730
|
+
property :can_delete_children, as: 'canDeleteChildren'
|
|
731
|
+
property :can_delete_drive, as: 'canDeleteDrive'
|
|
732
|
+
property :can_download, as: 'canDownload'
|
|
733
|
+
property :can_edit, as: 'canEdit'
|
|
734
|
+
property :can_list_children, as: 'canListChildren'
|
|
735
|
+
property :can_manage_members, as: 'canManageMembers'
|
|
736
|
+
property :can_read_revisions, as: 'canReadRevisions'
|
|
737
|
+
property :can_rename, as: 'canRename'
|
|
738
|
+
property :can_rename_drive, as: 'canRenameDrive'
|
|
739
|
+
property :can_share, as: 'canShare'
|
|
740
|
+
property :can_trash_children, as: 'canTrashChildren'
|
|
741
|
+
end
|
|
742
|
+
end
|
|
743
|
+
|
|
744
|
+
class Restrictions
|
|
745
|
+
# @private
|
|
746
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
747
|
+
property :admin_managed_restrictions, as: 'adminManagedRestrictions'
|
|
748
|
+
property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
|
|
749
|
+
property :domain_users_only, as: 'domainUsersOnly'
|
|
750
|
+
property :drive_members_only, as: 'driveMembersOnly'
|
|
751
|
+
end
|
|
752
|
+
end
|
|
753
|
+
end
|
|
754
|
+
|
|
755
|
+
class DriveList
|
|
756
|
+
# @private
|
|
757
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
758
|
+
collection :items, as: 'items', class: Google::Apis::DriveV2::Drive, decorator: Google::Apis::DriveV2::Drive::Representation
|
|
759
|
+
|
|
760
|
+
property :kind, as: 'kind'
|
|
761
|
+
property :next_page_token, as: 'nextPageToken'
|
|
762
|
+
end
|
|
763
|
+
end
|
|
764
|
+
|
|
632
765
|
class File
|
|
633
766
|
# @private
|
|
634
767
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -645,6 +778,7 @@ module Google
|
|
|
645
778
|
property :default_open_with_link, as: 'defaultOpenWithLink'
|
|
646
779
|
property :description, as: 'description'
|
|
647
780
|
property :download_url, as: 'downloadUrl'
|
|
781
|
+
property :drive_id, as: 'driveId'
|
|
648
782
|
property :editable, as: 'editable'
|
|
649
783
|
property :embed_link, as: 'embedLink'
|
|
650
784
|
property :etag, as: 'etag'
|
|
@@ -735,12 +869,17 @@ module Google
|
|
|
735
869
|
property :can_download, as: 'canDownload'
|
|
736
870
|
property :can_edit, as: 'canEdit'
|
|
737
871
|
property :can_list_children, as: 'canListChildren'
|
|
872
|
+
property :can_move_children_out_of_drive, as: 'canMoveChildrenOutOfDrive'
|
|
738
873
|
property :can_move_children_out_of_team_drive, as: 'canMoveChildrenOutOfTeamDrive'
|
|
874
|
+
property :can_move_children_within_drive, as: 'canMoveChildrenWithinDrive'
|
|
739
875
|
property :can_move_children_within_team_drive, as: 'canMoveChildrenWithinTeamDrive'
|
|
740
876
|
property :can_move_item_into_team_drive, as: 'canMoveItemIntoTeamDrive'
|
|
877
|
+
property :can_move_item_out_of_drive, as: 'canMoveItemOutOfDrive'
|
|
741
878
|
property :can_move_item_out_of_team_drive, as: 'canMoveItemOutOfTeamDrive'
|
|
879
|
+
property :can_move_item_within_drive, as: 'canMoveItemWithinDrive'
|
|
742
880
|
property :can_move_item_within_team_drive, as: 'canMoveItemWithinTeamDrive'
|
|
743
881
|
property :can_move_team_drive_item, as: 'canMoveTeamDriveItem'
|
|
882
|
+
property :can_read_drive, as: 'canReadDrive'
|
|
744
883
|
property :can_read_revisions, as: 'canReadRevisions'
|
|
745
884
|
property :can_read_team_drive, as: 'canReadTeamDrive'
|
|
746
885
|
property :can_remove_children, as: 'canRemoveChildren'
|
|
@@ -885,6 +1024,8 @@ module Google
|
|
|
885
1024
|
property :id, as: 'id'
|
|
886
1025
|
property :kind, as: 'kind'
|
|
887
1026
|
property :name, as: 'name'
|
|
1027
|
+
collection :permission_details, as: 'permissionDetails', class: Google::Apis::DriveV2::Permission::PermissionDetail, decorator: Google::Apis::DriveV2::Permission::PermissionDetail::Representation
|
|
1028
|
+
|
|
888
1029
|
property :photo_link, as: 'photoLink'
|
|
889
1030
|
property :role, as: 'role'
|
|
890
1031
|
property :self_link, as: 'selfLink'
|
|
@@ -895,6 +1036,17 @@ module Google
|
|
|
895
1036
|
property :with_link, as: 'withLink'
|
|
896
1037
|
end
|
|
897
1038
|
|
|
1039
|
+
class PermissionDetail
|
|
1040
|
+
# @private
|
|
1041
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1042
|
+
collection :additional_roles, as: 'additionalRoles'
|
|
1043
|
+
property :inherited, as: 'inherited'
|
|
1044
|
+
property :inherited_from, as: 'inheritedFrom'
|
|
1045
|
+
property :permission_type, as: 'permissionType'
|
|
1046
|
+
property :role, as: 'role'
|
|
1047
|
+
end
|
|
1048
|
+
end
|
|
1049
|
+
|
|
898
1050
|
class TeamDrivePermissionDetail
|
|
899
1051
|
# @private
|
|
900
1052
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -178,10 +178,14 @@ module Google
|
|
|
178
178
|
# changes.
|
|
179
179
|
# @param [String] change_id
|
|
180
180
|
# The ID of the change.
|
|
181
|
+
# @param [String] drive_id
|
|
182
|
+
# The shared drive from which the change will be returned.
|
|
183
|
+
# @param [Boolean] supports_all_drives
|
|
184
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
|
181
185
|
# @param [Boolean] supports_team_drives
|
|
182
|
-
#
|
|
186
|
+
# Deprecated use supportsAllDrives instead.
|
|
183
187
|
# @param [String] team_drive_id
|
|
184
|
-
#
|
|
188
|
+
# Deprecated use driveId instead.
|
|
185
189
|
# @param [String] fields
|
|
186
190
|
# Selector specifying which fields to include in a partial response.
|
|
187
191
|
# @param [String] quota_user
|
|
@@ -201,11 +205,13 @@ module Google
|
|
|
201
205
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
202
206
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
203
207
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
204
|
-
def get_change(change_id, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
208
|
+
def get_change(change_id, drive_id: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
205
209
|
command = make_simple_command(:get, 'changes/{changeId}', options)
|
|
206
210
|
command.response_representation = Google::Apis::DriveV2::Change::Representation
|
|
207
211
|
command.response_class = Google::Apis::DriveV2::Change
|
|
208
212
|
command.params['changeId'] = change_id unless change_id.nil?
|
|
213
|
+
command.query['driveId'] = drive_id unless drive_id.nil?
|
|
214
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
209
215
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
210
216
|
command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
|
211
217
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -215,11 +221,15 @@ module Google
|
|
|
215
221
|
end
|
|
216
222
|
|
|
217
223
|
# Gets the starting pageToken for listing future changes.
|
|
224
|
+
# @param [String] drive_id
|
|
225
|
+
# The ID of the shared drive for which the starting pageToken for listing future
|
|
226
|
+
# changes from that shared drive will be returned.
|
|
227
|
+
# @param [Boolean] supports_all_drives
|
|
228
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
|
218
229
|
# @param [Boolean] supports_team_drives
|
|
219
|
-
#
|
|
230
|
+
# Deprecated use supportsAllDrives instead.
|
|
220
231
|
# @param [String] team_drive_id
|
|
221
|
-
#
|
|
222
|
-
# changes from that Team Drive will be returned.
|
|
232
|
+
# Deprecated use driveId instead.
|
|
223
233
|
# @param [String] fields
|
|
224
234
|
# Selector specifying which fields to include in a partial response.
|
|
225
235
|
# @param [String] quota_user
|
|
@@ -239,10 +249,12 @@ module Google
|
|
|
239
249
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
240
250
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
241
251
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
242
|
-
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)
|
|
252
|
+
def get_change_start_page_token(drive_id: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
243
253
|
command = make_simple_command(:get, 'changes/startPageToken', options)
|
|
244
254
|
command.response_representation = Google::Apis::DriveV2::StartPageToken::Representation
|
|
245
255
|
command.response_class = Google::Apis::DriveV2::StartPageToken
|
|
256
|
+
command.query['driveId'] = drive_id unless drive_id.nil?
|
|
257
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
246
258
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
247
259
|
command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
|
248
260
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -251,7 +263,11 @@ module Google
|
|
|
251
263
|
execute_or_queue_command(command, &block)
|
|
252
264
|
end
|
|
253
265
|
|
|
254
|
-
# Lists the changes for a user or
|
|
266
|
+
# Lists the changes for a user or shared drive.
|
|
267
|
+
# @param [String] drive_id
|
|
268
|
+
# The shared drive from which changes will be returned. If specified the change
|
|
269
|
+
# IDs will be reflective of the shared drive; use the combined drive ID and
|
|
270
|
+
# change ID as an identifier.
|
|
255
271
|
# @param [Boolean] include_corpus_removals
|
|
256
272
|
# Whether changes should include the file resource if the file is still
|
|
257
273
|
# accessible by the user at the time of the request, even when a file was
|
|
@@ -260,13 +276,15 @@ module Google
|
|
|
260
276
|
# @param [Boolean] include_deleted
|
|
261
277
|
# Whether to include changes indicating that items have been removed from the
|
|
262
278
|
# list of changes, for example by deletion or loss of access.
|
|
279
|
+
# @param [Boolean] include_items_from_all_drives
|
|
280
|
+
# Whether both My Drive and shared drive items should be included in results.
|
|
263
281
|
# @param [Boolean] include_subscribed
|
|
264
282
|
# Whether to include changes outside the My Drive hierarchy in the result. When
|
|
265
283
|
# set to false, changes to files such as those in the Application Data folder or
|
|
266
284
|
# shared files which have not been added to My Drive will be omitted from the
|
|
267
285
|
# result.
|
|
268
286
|
# @param [Boolean] include_team_drive_items
|
|
269
|
-
#
|
|
287
|
+
# Deprecated use includeItemsFromAllDrives instead.
|
|
270
288
|
# @param [Fixnum] max_results
|
|
271
289
|
# Maximum number of changes to return.
|
|
272
290
|
# @param [String] page_token
|
|
@@ -278,12 +296,12 @@ module Google
|
|
|
278
296
|
# appDataFolder' and 'photos'.
|
|
279
297
|
# @param [Fixnum] start_change_id
|
|
280
298
|
# Deprecated - use pageToken instead.
|
|
299
|
+
# @param [Boolean] supports_all_drives
|
|
300
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
|
281
301
|
# @param [Boolean] supports_team_drives
|
|
282
|
-
#
|
|
302
|
+
# Deprecated use supportsAllDrives instead.
|
|
283
303
|
# @param [String] team_drive_id
|
|
284
|
-
#
|
|
285
|
-
# IDs will be reflective of the Team Drive; use the combined Team Drive ID and
|
|
286
|
-
# change ID as an identifier.
|
|
304
|
+
# Deprecated use driveId instead.
|
|
287
305
|
# @param [String] fields
|
|
288
306
|
# Selector specifying which fields to include in a partial response.
|
|
289
307
|
# @param [String] quota_user
|
|
@@ -303,18 +321,21 @@ module Google
|
|
|
303
321
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
304
322
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
305
323
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
306
|
-
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)
|
|
324
|
+
def list_changes(drive_id: nil, include_corpus_removals: nil, include_deleted: nil, include_items_from_all_drives: nil, include_subscribed: nil, include_team_drive_items: nil, max_results: nil, page_token: nil, spaces: nil, start_change_id: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
307
325
|
command = make_simple_command(:get, 'changes', options)
|
|
308
326
|
command.response_representation = Google::Apis::DriveV2::ChangeList::Representation
|
|
309
327
|
command.response_class = Google::Apis::DriveV2::ChangeList
|
|
328
|
+
command.query['driveId'] = drive_id unless drive_id.nil?
|
|
310
329
|
command.query['includeCorpusRemovals'] = include_corpus_removals unless include_corpus_removals.nil?
|
|
311
330
|
command.query['includeDeleted'] = include_deleted unless include_deleted.nil?
|
|
331
|
+
command.query['includeItemsFromAllDrives'] = include_items_from_all_drives unless include_items_from_all_drives.nil?
|
|
312
332
|
command.query['includeSubscribed'] = include_subscribed unless include_subscribed.nil?
|
|
313
333
|
command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
|
|
314
334
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
315
335
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
316
336
|
command.query['spaces'] = spaces unless spaces.nil?
|
|
317
337
|
command.query['startChangeId'] = start_change_id unless start_change_id.nil?
|
|
338
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
318
339
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
319
340
|
command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
|
320
341
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -325,6 +346,10 @@ module Google
|
|
|
325
346
|
|
|
326
347
|
# Subscribe to changes for a user.
|
|
327
348
|
# @param [Google::Apis::DriveV2::Channel] channel_object
|
|
349
|
+
# @param [String] drive_id
|
|
350
|
+
# The shared drive from which changes will be returned. If specified the change
|
|
351
|
+
# IDs will be reflective of the shared drive; use the combined drive ID and
|
|
352
|
+
# change ID as an identifier.
|
|
328
353
|
# @param [Boolean] include_corpus_removals
|
|
329
354
|
# Whether changes should include the file resource if the file is still
|
|
330
355
|
# accessible by the user at the time of the request, even when a file was
|
|
@@ -333,13 +358,15 @@ module Google
|
|
|
333
358
|
# @param [Boolean] include_deleted
|
|
334
359
|
# Whether to include changes indicating that items have been removed from the
|
|
335
360
|
# list of changes, for example by deletion or loss of access.
|
|
361
|
+
# @param [Boolean] include_items_from_all_drives
|
|
362
|
+
# Whether both My Drive and shared drive items should be included in results.
|
|
336
363
|
# @param [Boolean] include_subscribed
|
|
337
364
|
# Whether to include changes outside the My Drive hierarchy in the result. When
|
|
338
365
|
# set to false, changes to files such as those in the Application Data folder or
|
|
339
366
|
# shared files which have not been added to My Drive will be omitted from the
|
|
340
367
|
# result.
|
|
341
368
|
# @param [Boolean] include_team_drive_items
|
|
342
|
-
#
|
|
369
|
+
# Deprecated use includeItemsFromAllDrives instead.
|
|
343
370
|
# @param [Fixnum] max_results
|
|
344
371
|
# Maximum number of changes to return.
|
|
345
372
|
# @param [String] page_token
|
|
@@ -351,12 +378,12 @@ module Google
|
|
|
351
378
|
# appDataFolder' and 'photos'.
|
|
352
379
|
# @param [Fixnum] start_change_id
|
|
353
380
|
# Deprecated - use pageToken instead.
|
|
381
|
+
# @param [Boolean] supports_all_drives
|
|
382
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
|
354
383
|
# @param [Boolean] supports_team_drives
|
|
355
|
-
#
|
|
384
|
+
# Deprecated use supportsAllDrives instead.
|
|
356
385
|
# @param [String] team_drive_id
|
|
357
|
-
#
|
|
358
|
-
# IDs will be reflective of the Team Drive; use the combined Team Drive ID and
|
|
359
|
-
# change ID as an identifier.
|
|
386
|
+
# Deprecated use driveId instead.
|
|
360
387
|
# @param [String] fields
|
|
361
388
|
# Selector specifying which fields to include in a partial response.
|
|
362
389
|
# @param [String] quota_user
|
|
@@ -376,20 +403,23 @@ module Google
|
|
|
376
403
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
377
404
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
378
405
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
379
|
-
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)
|
|
406
|
+
def watch_change(channel_object = nil, drive_id: nil, include_corpus_removals: nil, include_deleted: nil, include_items_from_all_drives: nil, include_subscribed: nil, include_team_drive_items: nil, max_results: nil, page_token: nil, spaces: nil, start_change_id: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
380
407
|
command = make_simple_command(:post, 'changes/watch', options)
|
|
381
408
|
command.request_representation = Google::Apis::DriveV2::Channel::Representation
|
|
382
409
|
command.request_object = channel_object
|
|
383
410
|
command.response_representation = Google::Apis::DriveV2::Channel::Representation
|
|
384
411
|
command.response_class = Google::Apis::DriveV2::Channel
|
|
412
|
+
command.query['driveId'] = drive_id unless drive_id.nil?
|
|
385
413
|
command.query['includeCorpusRemovals'] = include_corpus_removals unless include_corpus_removals.nil?
|
|
386
414
|
command.query['includeDeleted'] = include_deleted unless include_deleted.nil?
|
|
415
|
+
command.query['includeItemsFromAllDrives'] = include_items_from_all_drives unless include_items_from_all_drives.nil?
|
|
387
416
|
command.query['includeSubscribed'] = include_subscribed unless include_subscribed.nil?
|
|
388
417
|
command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
|
|
389
418
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
390
419
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
391
420
|
command.query['spaces'] = spaces unless spaces.nil?
|
|
392
421
|
command.query['startChangeId'] = start_change_id unless start_change_id.nil?
|
|
422
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
393
423
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
394
424
|
command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
|
395
425
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -503,8 +533,10 @@ module Google
|
|
|
503
533
|
# @param [String] folder_id
|
|
504
534
|
# The ID of the folder.
|
|
505
535
|
# @param [Google::Apis::DriveV2::ChildReference] child_reference_object
|
|
536
|
+
# @param [Boolean] supports_all_drives
|
|
537
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
|
506
538
|
# @param [Boolean] supports_team_drives
|
|
507
|
-
#
|
|
539
|
+
# Deprecated use supportsAllDrives instead.
|
|
508
540
|
# @param [String] fields
|
|
509
541
|
# Selector specifying which fields to include in a partial response.
|
|
510
542
|
# @param [String] quota_user
|
|
@@ -524,13 +556,14 @@ module Google
|
|
|
524
556
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
525
557
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
526
558
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
527
|
-
def insert_child(folder_id, child_reference_object = nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
559
|
+
def insert_child(folder_id, child_reference_object = nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
528
560
|
command = make_simple_command(:post, 'files/{folderId}/children', options)
|
|
529
561
|
command.request_representation = Google::Apis::DriveV2::ChildReference::Representation
|
|
530
562
|
command.request_object = child_reference_object
|
|
531
563
|
command.response_representation = Google::Apis::DriveV2::ChildReference::Representation
|
|
532
564
|
command.response_class = Google::Apis::DriveV2::ChildReference
|
|
533
565
|
command.params['folderId'] = folder_id unless folder_id.nil?
|
|
566
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
534
567
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
535
568
|
command.query['fields'] = fields unless fields.nil?
|
|
536
569
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -826,6 +859,266 @@ module Google
|
|
|
826
859
|
execute_or_queue_command(command, &block)
|
|
827
860
|
end
|
|
828
861
|
|
|
862
|
+
# Permanently deletes a shared drive for which the user is an organizer. The
|
|
863
|
+
# shared drive cannot contain any untrashed items.
|
|
864
|
+
# @param [String] drive_id
|
|
865
|
+
# The ID of the shared drive.
|
|
866
|
+
# @param [String] fields
|
|
867
|
+
# Selector specifying which fields to include in a partial response.
|
|
868
|
+
# @param [String] quota_user
|
|
869
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
870
|
+
# characters.
|
|
871
|
+
# @param [String] user_ip
|
|
872
|
+
# Deprecated. Please use quotaUser instead.
|
|
873
|
+
# @param [Google::Apis::RequestOptions] options
|
|
874
|
+
# Request-specific options
|
|
875
|
+
#
|
|
876
|
+
# @yield [result, err] Result & error if block supplied
|
|
877
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
878
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
879
|
+
#
|
|
880
|
+
# @return [void]
|
|
881
|
+
#
|
|
882
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
883
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
884
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
885
|
+
def delete_drife(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
886
|
+
command = make_simple_command(:delete, 'drives/{driveId}', options)
|
|
887
|
+
command.params['driveId'] = drive_id unless drive_id.nil?
|
|
888
|
+
command.query['fields'] = fields unless fields.nil?
|
|
889
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
890
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
891
|
+
execute_or_queue_command(command, &block)
|
|
892
|
+
end
|
|
893
|
+
|
|
894
|
+
# Gets a shared drive's metadata by ID.
|
|
895
|
+
# @param [String] drive_id
|
|
896
|
+
# The ID of the shared drive.
|
|
897
|
+
# @param [Boolean] use_domain_admin_access
|
|
898
|
+
# Issue the request as a domain administrator; if set to true, then the
|
|
899
|
+
# requester will be granted access if they are an administrator of the domain to
|
|
900
|
+
# which the shared drive belongs.
|
|
901
|
+
# @param [String] fields
|
|
902
|
+
# Selector specifying which fields to include in a partial response.
|
|
903
|
+
# @param [String] quota_user
|
|
904
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
905
|
+
# characters.
|
|
906
|
+
# @param [String] user_ip
|
|
907
|
+
# Deprecated. Please use quotaUser instead.
|
|
908
|
+
# @param [Google::Apis::RequestOptions] options
|
|
909
|
+
# Request-specific options
|
|
910
|
+
#
|
|
911
|
+
# @yield [result, err] Result & error if block supplied
|
|
912
|
+
# @yieldparam result [Google::Apis::DriveV2::Drive] parsed result object
|
|
913
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
914
|
+
#
|
|
915
|
+
# @return [Google::Apis::DriveV2::Drive]
|
|
916
|
+
#
|
|
917
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
918
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
919
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
920
|
+
def get_drife(drive_id, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
921
|
+
command = make_simple_command(:get, 'drives/{driveId}', options)
|
|
922
|
+
command.response_representation = Google::Apis::DriveV2::Drive::Representation
|
|
923
|
+
command.response_class = Google::Apis::DriveV2::Drive
|
|
924
|
+
command.params['driveId'] = drive_id unless drive_id.nil?
|
|
925
|
+
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
|
926
|
+
command.query['fields'] = fields unless fields.nil?
|
|
927
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
928
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
929
|
+
execute_or_queue_command(command, &block)
|
|
930
|
+
end
|
|
931
|
+
|
|
932
|
+
# Hides a shared drive from the default view.
|
|
933
|
+
# @param [String] drive_id
|
|
934
|
+
# The ID of the shared drive.
|
|
935
|
+
# @param [String] fields
|
|
936
|
+
# Selector specifying which fields to include in a partial response.
|
|
937
|
+
# @param [String] quota_user
|
|
938
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
939
|
+
# characters.
|
|
940
|
+
# @param [String] user_ip
|
|
941
|
+
# Deprecated. Please use quotaUser instead.
|
|
942
|
+
# @param [Google::Apis::RequestOptions] options
|
|
943
|
+
# Request-specific options
|
|
944
|
+
#
|
|
945
|
+
# @yield [result, err] Result & error if block supplied
|
|
946
|
+
# @yieldparam result [Google::Apis::DriveV2::Drive] parsed result object
|
|
947
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
948
|
+
#
|
|
949
|
+
# @return [Google::Apis::DriveV2::Drive]
|
|
950
|
+
#
|
|
951
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
952
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
953
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
954
|
+
def hide_drife(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
955
|
+
command = make_simple_command(:post, 'drives/{driveId}/hide', options)
|
|
956
|
+
command.response_representation = Google::Apis::DriveV2::Drive::Representation
|
|
957
|
+
command.response_class = Google::Apis::DriveV2::Drive
|
|
958
|
+
command.params['driveId'] = drive_id unless drive_id.nil?
|
|
959
|
+
command.query['fields'] = fields unless fields.nil?
|
|
960
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
961
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
962
|
+
execute_or_queue_command(command, &block)
|
|
963
|
+
end
|
|
964
|
+
|
|
965
|
+
# Creates a new shared drive.
|
|
966
|
+
# @param [String] request_id
|
|
967
|
+
# An ID, such as a random UUID, which uniquely identifies this user's request
|
|
968
|
+
# for idempotent creation of a shared drive. A repeated request by the same user
|
|
969
|
+
# and with the same request ID will avoid creating duplicates by attempting to
|
|
970
|
+
# create the same shared drive. If the shared drive already exists a 409 error
|
|
971
|
+
# will be returned.
|
|
972
|
+
# @param [Google::Apis::DriveV2::Drive] drive_object
|
|
973
|
+
# @param [String] fields
|
|
974
|
+
# Selector specifying which fields to include in a partial response.
|
|
975
|
+
# @param [String] quota_user
|
|
976
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
977
|
+
# characters.
|
|
978
|
+
# @param [String] user_ip
|
|
979
|
+
# Deprecated. Please use quotaUser instead.
|
|
980
|
+
# @param [Google::Apis::RequestOptions] options
|
|
981
|
+
# Request-specific options
|
|
982
|
+
#
|
|
983
|
+
# @yield [result, err] Result & error if block supplied
|
|
984
|
+
# @yieldparam result [Google::Apis::DriveV2::Drive] parsed result object
|
|
985
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
986
|
+
#
|
|
987
|
+
# @return [Google::Apis::DriveV2::Drive]
|
|
988
|
+
#
|
|
989
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
990
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
991
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
992
|
+
def insert_drife(request_id, drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
993
|
+
command = make_simple_command(:post, 'drives', options)
|
|
994
|
+
command.request_representation = Google::Apis::DriveV2::Drive::Representation
|
|
995
|
+
command.request_object = drive_object
|
|
996
|
+
command.response_representation = Google::Apis::DriveV2::Drive::Representation
|
|
997
|
+
command.response_class = Google::Apis::DriveV2::Drive
|
|
998
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
999
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1000
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1001
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1002
|
+
execute_or_queue_command(command, &block)
|
|
1003
|
+
end
|
|
1004
|
+
|
|
1005
|
+
# Lists the user's shared drives.
|
|
1006
|
+
# @param [Fixnum] max_results
|
|
1007
|
+
# Maximum number of shared drives to return.
|
|
1008
|
+
# @param [String] page_token
|
|
1009
|
+
# Page token for shared drives.
|
|
1010
|
+
# @param [String] q
|
|
1011
|
+
# Query string for searching shared drives.
|
|
1012
|
+
# @param [Boolean] use_domain_admin_access
|
|
1013
|
+
# Issue the request as a domain administrator; if set to true, then all shared
|
|
1014
|
+
# drives of the domain in which the requester is an administrator are returned.
|
|
1015
|
+
# @param [String] fields
|
|
1016
|
+
# Selector specifying which fields to include in a partial response.
|
|
1017
|
+
# @param [String] quota_user
|
|
1018
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
1019
|
+
# characters.
|
|
1020
|
+
# @param [String] user_ip
|
|
1021
|
+
# Deprecated. Please use quotaUser instead.
|
|
1022
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1023
|
+
# Request-specific options
|
|
1024
|
+
#
|
|
1025
|
+
# @yield [result, err] Result & error if block supplied
|
|
1026
|
+
# @yieldparam result [Google::Apis::DriveV2::DriveList] parsed result object
|
|
1027
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1028
|
+
#
|
|
1029
|
+
# @return [Google::Apis::DriveV2::DriveList]
|
|
1030
|
+
#
|
|
1031
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1032
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1033
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1034
|
+
def list_drives(max_results: nil, page_token: nil, q: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1035
|
+
command = make_simple_command(:get, 'drives', options)
|
|
1036
|
+
command.response_representation = Google::Apis::DriveV2::DriveList::Representation
|
|
1037
|
+
command.response_class = Google::Apis::DriveV2::DriveList
|
|
1038
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
1039
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1040
|
+
command.query['q'] = q unless q.nil?
|
|
1041
|
+
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
|
1042
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1043
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1044
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1045
|
+
execute_or_queue_command(command, &block)
|
|
1046
|
+
end
|
|
1047
|
+
|
|
1048
|
+
# Restores a shared drive to the default view.
|
|
1049
|
+
# @param [String] drive_id
|
|
1050
|
+
# The ID of the shared drive.
|
|
1051
|
+
# @param [String] fields
|
|
1052
|
+
# Selector specifying which fields to include in a partial response.
|
|
1053
|
+
# @param [String] quota_user
|
|
1054
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
1055
|
+
# characters.
|
|
1056
|
+
# @param [String] user_ip
|
|
1057
|
+
# Deprecated. Please use quotaUser instead.
|
|
1058
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1059
|
+
# Request-specific options
|
|
1060
|
+
#
|
|
1061
|
+
# @yield [result, err] Result & error if block supplied
|
|
1062
|
+
# @yieldparam result [Google::Apis::DriveV2::Drive] parsed result object
|
|
1063
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1064
|
+
#
|
|
1065
|
+
# @return [Google::Apis::DriveV2::Drive]
|
|
1066
|
+
#
|
|
1067
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1068
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1069
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1070
|
+
def unhide_drife(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1071
|
+
command = make_simple_command(:post, 'drives/{driveId}/unhide', options)
|
|
1072
|
+
command.response_representation = Google::Apis::DriveV2::Drive::Representation
|
|
1073
|
+
command.response_class = Google::Apis::DriveV2::Drive
|
|
1074
|
+
command.params['driveId'] = drive_id unless drive_id.nil?
|
|
1075
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1076
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1077
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1078
|
+
execute_or_queue_command(command, &block)
|
|
1079
|
+
end
|
|
1080
|
+
|
|
1081
|
+
# Updates the metadata for a shared drive.
|
|
1082
|
+
# @param [String] drive_id
|
|
1083
|
+
# The ID of the shared drive.
|
|
1084
|
+
# @param [Google::Apis::DriveV2::Drive] drive_object
|
|
1085
|
+
# @param [Boolean] use_domain_admin_access
|
|
1086
|
+
# Issue the request as a domain administrator; if set to true, then the
|
|
1087
|
+
# requester will be granted access if they are an administrator of the domain to
|
|
1088
|
+
# which the shared drive belongs.
|
|
1089
|
+
# @param [String] fields
|
|
1090
|
+
# Selector specifying which fields to include in a partial response.
|
|
1091
|
+
# @param [String] quota_user
|
|
1092
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
1093
|
+
# characters.
|
|
1094
|
+
# @param [String] user_ip
|
|
1095
|
+
# Deprecated. Please use quotaUser instead.
|
|
1096
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1097
|
+
# Request-specific options
|
|
1098
|
+
#
|
|
1099
|
+
# @yield [result, err] Result & error if block supplied
|
|
1100
|
+
# @yieldparam result [Google::Apis::DriveV2::Drive] parsed result object
|
|
1101
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1102
|
+
#
|
|
1103
|
+
# @return [Google::Apis::DriveV2::Drive]
|
|
1104
|
+
#
|
|
1105
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1106
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1107
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1108
|
+
def update_drife(drive_id, drive_object = nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1109
|
+
command = make_simple_command(:put, 'drives/{driveId}', options)
|
|
1110
|
+
command.request_representation = Google::Apis::DriveV2::Drive::Representation
|
|
1111
|
+
command.request_object = drive_object
|
|
1112
|
+
command.response_representation = Google::Apis::DriveV2::Drive::Representation
|
|
1113
|
+
command.response_class = Google::Apis::DriveV2::Drive
|
|
1114
|
+
command.params['driveId'] = drive_id unless drive_id.nil?
|
|
1115
|
+
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
|
1116
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1117
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1118
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1119
|
+
execute_or_queue_command(command, &block)
|
|
1120
|
+
end
|
|
1121
|
+
|
|
829
1122
|
# Creates a copy of the specified file.
|
|
830
1123
|
# @param [String] file_id
|
|
831
1124
|
# The ID of the file to copy.
|
|
@@ -839,8 +1132,10 @@ module Google
|
|
|
839
1132
|
# @param [Boolean] pinned
|
|
840
1133
|
# Whether to pin the head revision of the new copy. A file can have a maximum of
|
|
841
1134
|
# 200 pinned revisions.
|
|
1135
|
+
# @param [Boolean] supports_all_drives
|
|
1136
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
|
842
1137
|
# @param [Boolean] supports_team_drives
|
|
843
|
-
#
|
|
1138
|
+
# Deprecated use supportsAllDrives instead.
|
|
844
1139
|
# @param [String] timed_text_language
|
|
845
1140
|
# The language of the timed text.
|
|
846
1141
|
# @param [String] timed_text_track_name
|
|
@@ -867,7 +1162,7 @@ module Google
|
|
|
867
1162
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
868
1163
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
869
1164
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
870
|
-
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)
|
|
1165
|
+
def copy_file(file_id, file_object = nil, convert: nil, ocr: nil, ocr_language: nil, pinned: nil, supports_all_drives: 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)
|
|
871
1166
|
command = make_simple_command(:post, 'files/{fileId}/copy', options)
|
|
872
1167
|
command.request_representation = Google::Apis::DriveV2::File::Representation
|
|
873
1168
|
command.request_object = file_object
|
|
@@ -878,6 +1173,7 @@ module Google
|
|
|
878
1173
|
command.query['ocr'] = ocr unless ocr.nil?
|
|
879
1174
|
command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
|
|
880
1175
|
command.query['pinned'] = pinned unless pinned.nil?
|
|
1176
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
881
1177
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
882
1178
|
command.query['timedTextLanguage'] = timed_text_language unless timed_text_language.nil?
|
|
883
1179
|
command.query['timedTextTrackName'] = timed_text_track_name unless timed_text_track_name.nil?
|
|
@@ -889,11 +1185,13 @@ module Google
|
|
|
889
1185
|
end
|
|
890
1186
|
|
|
891
1187
|
# Permanently deletes a file by ID. Skips the trash. The currently authenticated
|
|
892
|
-
# user must own the file or be an organizer on the parent for
|
|
1188
|
+
# user must own the file or be an organizer on the parent for shared drive files.
|
|
893
1189
|
# @param [String] file_id
|
|
894
1190
|
# The ID of the file to delete.
|
|
1191
|
+
# @param [Boolean] supports_all_drives
|
|
1192
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
|
895
1193
|
# @param [Boolean] supports_team_drives
|
|
896
|
-
#
|
|
1194
|
+
# Deprecated use supportsAllDrives instead.
|
|
897
1195
|
# @param [String] fields
|
|
898
1196
|
# Selector specifying which fields to include in a partial response.
|
|
899
1197
|
# @param [String] quota_user
|
|
@@ -913,9 +1211,10 @@ module Google
|
|
|
913
1211
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
914
1212
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
915
1213
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
916
|
-
def delete_file(file_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1214
|
+
def delete_file(file_id, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
917
1215
|
command = make_simple_command(:delete, 'files/{fileId}', options)
|
|
918
1216
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1217
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
919
1218
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
920
1219
|
command.query['fields'] = fields unless fields.nil?
|
|
921
1220
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1041,8 +1340,10 @@ module Google
|
|
|
1041
1340
|
# @param [String] revision_id
|
|
1042
1341
|
# Specifies the Revision ID that should be downloaded. Ignored unless alt=media
|
|
1043
1342
|
# is specified.
|
|
1343
|
+
# @param [Boolean] supports_all_drives
|
|
1344
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
|
1044
1345
|
# @param [Boolean] supports_team_drives
|
|
1045
|
-
#
|
|
1346
|
+
# Deprecated use supportsAllDrives instead.
|
|
1046
1347
|
# @param [Boolean] update_viewed_date
|
|
1047
1348
|
# Deprecated: Use files.update with modifiedDateBehavior=noChange,
|
|
1048
1349
|
# updateViewedDate=true and an empty request body.
|
|
@@ -1067,7 +1368,7 @@ module Google
|
|
|
1067
1368
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1068
1369
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1069
1370
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1070
|
-
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)
|
|
1371
|
+
def get_file(file_id, acknowledge_abuse: nil, projection: nil, revision_id: nil, supports_all_drives: nil, supports_team_drives: nil, update_viewed_date: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
|
1071
1372
|
if download_dest.nil?
|
|
1072
1373
|
command = make_simple_command(:get, 'files/{fileId}', options)
|
|
1073
1374
|
else
|
|
@@ -1080,6 +1381,7 @@ module Google
|
|
|
1080
1381
|
command.query['acknowledgeAbuse'] = acknowledge_abuse unless acknowledge_abuse.nil?
|
|
1081
1382
|
command.query['projection'] = projection unless projection.nil?
|
|
1082
1383
|
command.query['revisionId'] = revision_id unless revision_id.nil?
|
|
1384
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
1083
1385
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1084
1386
|
command.query['updateViewedDate'] = update_viewed_date unless update_viewed_date.nil?
|
|
1085
1387
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -1099,8 +1401,10 @@ module Google
|
|
|
1099
1401
|
# @param [Boolean] pinned
|
|
1100
1402
|
# Whether to pin the head revision of the uploaded file. A file can have a
|
|
1101
1403
|
# maximum of 200 pinned revisions.
|
|
1404
|
+
# @param [Boolean] supports_all_drives
|
|
1405
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
|
1102
1406
|
# @param [Boolean] supports_team_drives
|
|
1103
|
-
#
|
|
1407
|
+
# Deprecated use supportsAllDrives instead.
|
|
1104
1408
|
# @param [String] timed_text_language
|
|
1105
1409
|
# The language of the timed text.
|
|
1106
1410
|
# @param [String] timed_text_track_name
|
|
@@ -1133,7 +1437,7 @@ module Google
|
|
|
1133
1437
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1134
1438
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1135
1439
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1136
|
-
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)
|
|
1440
|
+
def insert_file(file_object = nil, convert: nil, ocr: nil, ocr_language: nil, pinned: nil, supports_all_drives: 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)
|
|
1137
1441
|
if upload_source.nil?
|
|
1138
1442
|
command = make_simple_command(:post, 'files', options)
|
|
1139
1443
|
else
|
|
@@ -1149,6 +1453,7 @@ module Google
|
|
|
1149
1453
|
command.query['ocr'] = ocr unless ocr.nil?
|
|
1150
1454
|
command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
|
|
1151
1455
|
command.query['pinned'] = pinned unless pinned.nil?
|
|
1456
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
1152
1457
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1153
1458
|
command.query['timedTextLanguage'] = timed_text_language unless timed_text_language.nil?
|
|
1154
1459
|
command.query['timedTextTrackName'] = timed_text_track_name unless timed_text_track_name.nil?
|
|
@@ -1162,16 +1467,18 @@ module Google
|
|
|
1162
1467
|
|
|
1163
1468
|
# Lists the user's files.
|
|
1164
1469
|
# @param [String] corpora
|
|
1165
|
-
#
|
|
1166
|
-
#
|
|
1167
|
-
#
|
|
1168
|
-
# values must be used in isolation. Prefer 'default' or 'teamDrive' to '
|
|
1169
|
-
# allTeamDrives' for efficiency.
|
|
1470
|
+
# Bodies of items (files/documents) to which the query applies. Supported bodies
|
|
1471
|
+
# are 'default', 'domain', 'drive' and 'allDrives'. Prefer 'default' or 'drive'
|
|
1472
|
+
# to 'allDrives' for efficiency.
|
|
1170
1473
|
# @param [String] corpus
|
|
1171
1474
|
# The body of items (files/documents) to which the query applies. Deprecated:
|
|
1172
1475
|
# use 'corpora' instead.
|
|
1476
|
+
# @param [String] drive_id
|
|
1477
|
+
# ID of the shared drive to search.
|
|
1478
|
+
# @param [Boolean] include_items_from_all_drives
|
|
1479
|
+
# Whether both My Drive and shared drive items should be included in results.
|
|
1173
1480
|
# @param [Boolean] include_team_drive_items
|
|
1174
|
-
#
|
|
1481
|
+
# Deprecated use includeItemsFromAllDrives instead.
|
|
1175
1482
|
# @param [Fixnum] max_results
|
|
1176
1483
|
# The maximum number of files to return per page. Partial or empty result pages
|
|
1177
1484
|
# are possible even before the end of the files list has been reached.
|
|
@@ -1192,10 +1499,12 @@ module Google
|
|
|
1192
1499
|
# @param [String] spaces
|
|
1193
1500
|
# A comma-separated list of spaces to query. Supported values are 'drive', '
|
|
1194
1501
|
# appDataFolder' and 'photos'.
|
|
1502
|
+
# @param [Boolean] supports_all_drives
|
|
1503
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
|
1195
1504
|
# @param [Boolean] supports_team_drives
|
|
1196
|
-
#
|
|
1505
|
+
# Deprecated use supportsAllDrives instead.
|
|
1197
1506
|
# @param [String] team_drive_id
|
|
1198
|
-
#
|
|
1507
|
+
# Deprecated use driveId instead.
|
|
1199
1508
|
# @param [String] fields
|
|
1200
1509
|
# Selector specifying which fields to include in a partial response.
|
|
1201
1510
|
# @param [String] quota_user
|
|
@@ -1215,12 +1524,14 @@ module Google
|
|
|
1215
1524
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1216
1525
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1217
1526
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1218
|
-
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)
|
|
1527
|
+
def list_files(corpora: nil, corpus: nil, drive_id: nil, include_items_from_all_drives: nil, include_team_drive_items: nil, max_results: nil, order_by: nil, page_token: nil, projection: nil, q: nil, spaces: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1219
1528
|
command = make_simple_command(:get, 'files', options)
|
|
1220
1529
|
command.response_representation = Google::Apis::DriveV2::FileList::Representation
|
|
1221
1530
|
command.response_class = Google::Apis::DriveV2::FileList
|
|
1222
1531
|
command.query['corpora'] = corpora unless corpora.nil?
|
|
1223
1532
|
command.query['corpus'] = corpus unless corpus.nil?
|
|
1533
|
+
command.query['driveId'] = drive_id unless drive_id.nil?
|
|
1534
|
+
command.query['includeItemsFromAllDrives'] = include_items_from_all_drives unless include_items_from_all_drives.nil?
|
|
1224
1535
|
command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
|
|
1225
1536
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
1226
1537
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
@@ -1228,6 +1539,7 @@ module Google
|
|
|
1228
1539
|
command.query['projection'] = projection unless projection.nil?
|
|
1229
1540
|
command.query['q'] = q unless q.nil?
|
|
1230
1541
|
command.query['spaces'] = spaces unless spaces.nil?
|
|
1542
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
1231
1543
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1232
1544
|
command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
|
1233
1545
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -1268,8 +1580,10 @@ module Google
|
|
|
1268
1580
|
# Setting this field to true is equivalent to modifiedDateBehavior=fromBodyOrNow,
|
|
1269
1581
|
# and false is equivalent to modifiedDateBehavior=now. To prevent any changes
|
|
1270
1582
|
# to the modified date set modifiedDateBehavior=noChange.
|
|
1583
|
+
# @param [Boolean] supports_all_drives
|
|
1584
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
|
1271
1585
|
# @param [Boolean] supports_team_drives
|
|
1272
|
-
#
|
|
1586
|
+
# Deprecated use supportsAllDrives instead.
|
|
1273
1587
|
# @param [String] timed_text_language
|
|
1274
1588
|
# The language of the timed text.
|
|
1275
1589
|
# @param [String] timed_text_track_name
|
|
@@ -1297,7 +1611,7 @@ module Google
|
|
|
1297
1611
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1298
1612
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1299
1613
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1300
|
-
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)
|
|
1614
|
+
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_all_drives: 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)
|
|
1301
1615
|
command = make_simple_command(:patch, 'files/{fileId}', options)
|
|
1302
1616
|
command.request_representation = Google::Apis::DriveV2::File::Representation
|
|
1303
1617
|
command.request_object = file_object
|
|
@@ -1313,6 +1627,7 @@ module Google
|
|
|
1313
1627
|
command.query['pinned'] = pinned unless pinned.nil?
|
|
1314
1628
|
command.query['removeParents'] = remove_parents unless remove_parents.nil?
|
|
1315
1629
|
command.query['setModifiedDate'] = set_modified_date unless set_modified_date.nil?
|
|
1630
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
1316
1631
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1317
1632
|
command.query['timedTextLanguage'] = timed_text_language unless timed_text_language.nil?
|
|
1318
1633
|
command.query['timedTextTrackName'] = timed_text_track_name unless timed_text_track_name.nil?
|
|
@@ -1327,8 +1642,10 @@ module Google
|
|
|
1327
1642
|
# Set the file's updated time to the current server time.
|
|
1328
1643
|
# @param [String] file_id
|
|
1329
1644
|
# The ID of the file to update.
|
|
1645
|
+
# @param [Boolean] supports_all_drives
|
|
1646
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
|
1330
1647
|
# @param [Boolean] supports_team_drives
|
|
1331
|
-
#
|
|
1648
|
+
# Deprecated use supportsAllDrives instead.
|
|
1332
1649
|
# @param [String] fields
|
|
1333
1650
|
# Selector specifying which fields to include in a partial response.
|
|
1334
1651
|
# @param [String] quota_user
|
|
@@ -1348,11 +1665,12 @@ module Google
|
|
|
1348
1665
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1349
1666
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1350
1667
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1351
|
-
def touch_file(file_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1668
|
+
def touch_file(file_id, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1352
1669
|
command = make_simple_command(:post, 'files/{fileId}/touch', options)
|
|
1353
1670
|
command.response_representation = Google::Apis::DriveV2::File::Representation
|
|
1354
1671
|
command.response_class = Google::Apis::DriveV2::File
|
|
1355
1672
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1673
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
1356
1674
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1357
1675
|
command.query['fields'] = fields unless fields.nil?
|
|
1358
1676
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1361,11 +1679,13 @@ module Google
|
|
|
1361
1679
|
end
|
|
1362
1680
|
|
|
1363
1681
|
# Moves a file to the trash. The currently authenticated user must own the file
|
|
1364
|
-
# or be at least a fileOrganizer on the parent for
|
|
1682
|
+
# or be at least a fileOrganizer on the parent for shared drive files.
|
|
1365
1683
|
# @param [String] file_id
|
|
1366
1684
|
# The ID of the file to trash.
|
|
1685
|
+
# @param [Boolean] supports_all_drives
|
|
1686
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
|
1367
1687
|
# @param [Boolean] supports_team_drives
|
|
1368
|
-
#
|
|
1688
|
+
# Deprecated use supportsAllDrives instead.
|
|
1369
1689
|
# @param [String] fields
|
|
1370
1690
|
# Selector specifying which fields to include in a partial response.
|
|
1371
1691
|
# @param [String] quota_user
|
|
@@ -1385,11 +1705,12 @@ module Google
|
|
|
1385
1705
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1386
1706
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1387
1707
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1388
|
-
def trash_file(file_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1708
|
+
def trash_file(file_id, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1389
1709
|
command = make_simple_command(:post, 'files/{fileId}/trash', options)
|
|
1390
1710
|
command.response_representation = Google::Apis::DriveV2::File::Representation
|
|
1391
1711
|
command.response_class = Google::Apis::DriveV2::File
|
|
1392
1712
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1713
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
1393
1714
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1394
1715
|
command.query['fields'] = fields unless fields.nil?
|
|
1395
1716
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1400,8 +1721,10 @@ module Google
|
|
|
1400
1721
|
# Restores a file from the trash.
|
|
1401
1722
|
# @param [String] file_id
|
|
1402
1723
|
# The ID of the file to untrash.
|
|
1724
|
+
# @param [Boolean] supports_all_drives
|
|
1725
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
|
1403
1726
|
# @param [Boolean] supports_team_drives
|
|
1404
|
-
#
|
|
1727
|
+
# Deprecated use supportsAllDrives instead.
|
|
1405
1728
|
# @param [String] fields
|
|
1406
1729
|
# Selector specifying which fields to include in a partial response.
|
|
1407
1730
|
# @param [String] quota_user
|
|
@@ -1421,11 +1744,12 @@ module Google
|
|
|
1421
1744
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1422
1745
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1423
1746
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1424
|
-
def untrash_file(file_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1747
|
+
def untrash_file(file_id, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1425
1748
|
command = make_simple_command(:post, 'files/{fileId}/untrash', options)
|
|
1426
1749
|
command.response_representation = Google::Apis::DriveV2::File::Representation
|
|
1427
1750
|
command.response_class = Google::Apis::DriveV2::File
|
|
1428
1751
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1752
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
1429
1753
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1430
1754
|
command.query['fields'] = fields unless fields.nil?
|
|
1431
1755
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1465,8 +1789,10 @@ module Google
|
|
|
1465
1789
|
# Setting this field to true is equivalent to modifiedDateBehavior=fromBodyOrNow,
|
|
1466
1790
|
# and false is equivalent to modifiedDateBehavior=now. To prevent any changes
|
|
1467
1791
|
# to the modified date set modifiedDateBehavior=noChange.
|
|
1792
|
+
# @param [Boolean] supports_all_drives
|
|
1793
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
|
1468
1794
|
# @param [Boolean] supports_team_drives
|
|
1469
|
-
#
|
|
1795
|
+
# Deprecated use supportsAllDrives instead.
|
|
1470
1796
|
# @param [String] timed_text_language
|
|
1471
1797
|
# The language of the timed text.
|
|
1472
1798
|
# @param [String] timed_text_track_name
|
|
@@ -1498,7 +1824,7 @@ module Google
|
|
|
1498
1824
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1499
1825
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1500
1826
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1501
|
-
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)
|
|
1827
|
+
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_all_drives: 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)
|
|
1502
1828
|
if upload_source.nil?
|
|
1503
1829
|
command = make_simple_command(:put, 'files/{fileId}', options)
|
|
1504
1830
|
else
|
|
@@ -1520,6 +1846,7 @@ module Google
|
|
|
1520
1846
|
command.query['pinned'] = pinned unless pinned.nil?
|
|
1521
1847
|
command.query['removeParents'] = remove_parents unless remove_parents.nil?
|
|
1522
1848
|
command.query['setModifiedDate'] = set_modified_date unless set_modified_date.nil?
|
|
1849
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
1523
1850
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1524
1851
|
command.query['timedTextLanguage'] = timed_text_language unless timed_text_language.nil?
|
|
1525
1852
|
command.query['timedTextTrackName'] = timed_text_track_name unless timed_text_track_name.nil?
|
|
@@ -1543,8 +1870,10 @@ module Google
|
|
|
1543
1870
|
# @param [String] revision_id
|
|
1544
1871
|
# Specifies the Revision ID that should be downloaded. Ignored unless alt=media
|
|
1545
1872
|
# is specified.
|
|
1873
|
+
# @param [Boolean] supports_all_drives
|
|
1874
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
|
1546
1875
|
# @param [Boolean] supports_team_drives
|
|
1547
|
-
#
|
|
1876
|
+
# Deprecated use supportsAllDrives instead.
|
|
1548
1877
|
# @param [Boolean] update_viewed_date
|
|
1549
1878
|
# Deprecated: Use files.update with modifiedDateBehavior=noChange,
|
|
1550
1879
|
# updateViewedDate=true and an empty request body.
|
|
@@ -1569,7 +1898,7 @@ module Google
|
|
|
1569
1898
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1570
1899
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1571
1900
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1572
|
-
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)
|
|
1901
|
+
def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, projection: nil, revision_id: nil, supports_all_drives: nil, supports_team_drives: nil, update_viewed_date: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
|
1573
1902
|
if download_dest.nil?
|
|
1574
1903
|
command = make_simple_command(:post, 'files/{fileId}/watch', options)
|
|
1575
1904
|
else
|
|
@@ -1584,6 +1913,7 @@ module Google
|
|
|
1584
1913
|
command.query['acknowledgeAbuse'] = acknowledge_abuse unless acknowledge_abuse.nil?
|
|
1585
1914
|
command.query['projection'] = projection unless projection.nil?
|
|
1586
1915
|
command.query['revisionId'] = revision_id unless revision_id.nil?
|
|
1916
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
1587
1917
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1588
1918
|
command.query['updateViewedDate'] = update_viewed_date unless update_viewed_date.nil?
|
|
1589
1919
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -1666,8 +1996,10 @@ module Google
|
|
|
1666
1996
|
# @param [String] file_id
|
|
1667
1997
|
# The ID of the file.
|
|
1668
1998
|
# @param [Google::Apis::DriveV2::ParentReference] parent_reference_object
|
|
1999
|
+
# @param [Boolean] supports_all_drives
|
|
2000
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
|
1669
2001
|
# @param [Boolean] supports_team_drives
|
|
1670
|
-
#
|
|
2002
|
+
# Deprecated use supportsAllDrives instead.
|
|
1671
2003
|
# @param [String] fields
|
|
1672
2004
|
# Selector specifying which fields to include in a partial response.
|
|
1673
2005
|
# @param [String] quota_user
|
|
@@ -1687,13 +2019,14 @@ module Google
|
|
|
1687
2019
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1688
2020
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1689
2021
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1690
|
-
def insert_parent(file_id, parent_reference_object = nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2022
|
+
def insert_parent(file_id, parent_reference_object = nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1691
2023
|
command = make_simple_command(:post, 'files/{fileId}/parents', options)
|
|
1692
2024
|
command.request_representation = Google::Apis::DriveV2::ParentReference::Representation
|
|
1693
2025
|
command.request_object = parent_reference_object
|
|
1694
2026
|
command.response_representation = Google::Apis::DriveV2::ParentReference::Representation
|
|
1695
2027
|
command.response_class = Google::Apis::DriveV2::ParentReference
|
|
1696
2028
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
2029
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
1697
2030
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1698
2031
|
command.query['fields'] = fields unless fields.nil?
|
|
1699
2032
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1734,17 +2067,20 @@ module Google
|
|
|
1734
2067
|
execute_or_queue_command(command, &block)
|
|
1735
2068
|
end
|
|
1736
2069
|
|
|
1737
|
-
# Deletes a permission from a file or
|
|
2070
|
+
# Deletes a permission from a file or shared drive.
|
|
1738
2071
|
# @param [String] file_id
|
|
1739
|
-
# The ID for the file or
|
|
2072
|
+
# The ID for the file or shared drive.
|
|
1740
2073
|
# @param [String] permission_id
|
|
1741
2074
|
# The ID for the permission.
|
|
2075
|
+
# @param [Boolean] supports_all_drives
|
|
2076
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
|
1742
2077
|
# @param [Boolean] supports_team_drives
|
|
1743
|
-
#
|
|
2078
|
+
# Deprecated use supportsAllDrives instead.
|
|
1744
2079
|
# @param [Boolean] use_domain_admin_access
|
|
1745
2080
|
# Issue the request as a domain administrator; if set to true, then the
|
|
1746
|
-
# requester will be granted access if
|
|
1747
|
-
# which the
|
|
2081
|
+
# requester will be granted access if the file ID parameter refers to a shared
|
|
2082
|
+
# drive and the requester is an administrator of the domain to which the shared
|
|
2083
|
+
# drive belongs.
|
|
1748
2084
|
# @param [String] fields
|
|
1749
2085
|
# Selector specifying which fields to include in a partial response.
|
|
1750
2086
|
# @param [String] quota_user
|
|
@@ -1764,10 +2100,11 @@ module Google
|
|
|
1764
2100
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1765
2101
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1766
2102
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1767
|
-
def delete_permission(file_id, permission_id, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2103
|
+
def delete_permission(file_id, permission_id, supports_all_drives: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1768
2104
|
command = make_simple_command(:delete, 'files/{fileId}/permissions/{permissionId}', options)
|
|
1769
2105
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1770
2106
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
|
2107
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
1771
2108
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1772
2109
|
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
|
1773
2110
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -1778,15 +2115,18 @@ module Google
|
|
|
1778
2115
|
|
|
1779
2116
|
# Gets a permission by ID.
|
|
1780
2117
|
# @param [String] file_id
|
|
1781
|
-
# The ID for the file or
|
|
2118
|
+
# The ID for the file or shared drive.
|
|
1782
2119
|
# @param [String] permission_id
|
|
1783
2120
|
# The ID for the permission.
|
|
2121
|
+
# @param [Boolean] supports_all_drives
|
|
2122
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
|
1784
2123
|
# @param [Boolean] supports_team_drives
|
|
1785
|
-
#
|
|
2124
|
+
# Deprecated use supportsAllDrives instead.
|
|
1786
2125
|
# @param [Boolean] use_domain_admin_access
|
|
1787
2126
|
# Issue the request as a domain administrator; if set to true, then the
|
|
1788
|
-
# requester will be granted access if
|
|
1789
|
-
# which the
|
|
2127
|
+
# requester will be granted access if the file ID parameter refers to a shared
|
|
2128
|
+
# drive and the requester is an administrator of the domain to which the shared
|
|
2129
|
+
# drive belongs.
|
|
1790
2130
|
# @param [String] fields
|
|
1791
2131
|
# Selector specifying which fields to include in a partial response.
|
|
1792
2132
|
# @param [String] quota_user
|
|
@@ -1806,12 +2146,13 @@ module Google
|
|
|
1806
2146
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1807
2147
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1808
2148
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1809
|
-
def get_permission(file_id, permission_id, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2149
|
+
def get_permission(file_id, permission_id, supports_all_drives: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1810
2150
|
command = make_simple_command(:get, 'files/{fileId}/permissions/{permissionId}', options)
|
|
1811
2151
|
command.response_representation = Google::Apis::DriveV2::Permission::Representation
|
|
1812
2152
|
command.response_class = Google::Apis::DriveV2::Permission
|
|
1813
2153
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1814
2154
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
|
2155
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
1815
2156
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1816
2157
|
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
|
1817
2158
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -1853,21 +2194,24 @@ module Google
|
|
|
1853
2194
|
execute_or_queue_command(command, &block)
|
|
1854
2195
|
end
|
|
1855
2196
|
|
|
1856
|
-
# Inserts a permission for a file or
|
|
2197
|
+
# Inserts a permission for a file or shared drive.
|
|
1857
2198
|
# @param [String] file_id
|
|
1858
|
-
# The ID for the file or
|
|
2199
|
+
# The ID for the file or shared drive.
|
|
1859
2200
|
# @param [Google::Apis::DriveV2::Permission] permission_object
|
|
1860
2201
|
# @param [String] email_message
|
|
1861
2202
|
# A plain text custom message to include in notification emails.
|
|
1862
2203
|
# @param [Boolean] send_notification_emails
|
|
1863
2204
|
# Whether to send notification emails when sharing to users or groups. This
|
|
1864
2205
|
# parameter is ignored and an email is sent if the role is owner.
|
|
2206
|
+
# @param [Boolean] supports_all_drives
|
|
2207
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
|
1865
2208
|
# @param [Boolean] supports_team_drives
|
|
1866
|
-
#
|
|
2209
|
+
# Deprecated use supportsAllDrives instead.
|
|
1867
2210
|
# @param [Boolean] use_domain_admin_access
|
|
1868
2211
|
# Issue the request as a domain administrator; if set to true, then the
|
|
1869
|
-
# requester will be granted access if
|
|
1870
|
-
# which the
|
|
2212
|
+
# requester will be granted access if the file ID parameter refers to a shared
|
|
2213
|
+
# drive and the requester is an administrator of the domain to which the shared
|
|
2214
|
+
# drive belongs.
|
|
1871
2215
|
# @param [String] fields
|
|
1872
2216
|
# Selector specifying which fields to include in a partial response.
|
|
1873
2217
|
# @param [String] quota_user
|
|
@@ -1887,7 +2231,7 @@ module Google
|
|
|
1887
2231
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1888
2232
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1889
2233
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1890
|
-
def insert_permission(file_id, permission_object = nil, email_message: nil, send_notification_emails: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2234
|
+
def insert_permission(file_id, permission_object = nil, email_message: nil, send_notification_emails: nil, supports_all_drives: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1891
2235
|
command = make_simple_command(:post, 'files/{fileId}/permissions', options)
|
|
1892
2236
|
command.request_representation = Google::Apis::DriveV2::Permission::Representation
|
|
1893
2237
|
command.request_object = permission_object
|
|
@@ -1896,6 +2240,7 @@ module Google
|
|
|
1896
2240
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1897
2241
|
command.query['emailMessage'] = email_message unless email_message.nil?
|
|
1898
2242
|
command.query['sendNotificationEmails'] = send_notification_emails unless send_notification_emails.nil?
|
|
2243
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
1899
2244
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1900
2245
|
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
|
1901
2246
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -1904,22 +2249,25 @@ module Google
|
|
|
1904
2249
|
execute_or_queue_command(command, &block)
|
|
1905
2250
|
end
|
|
1906
2251
|
|
|
1907
|
-
# Lists a file's or
|
|
2252
|
+
# Lists a file's or shared drive's permissions.
|
|
1908
2253
|
# @param [String] file_id
|
|
1909
|
-
# The ID for the file or
|
|
2254
|
+
# The ID for the file or shared drive.
|
|
1910
2255
|
# @param [Fixnum] max_results
|
|
1911
2256
|
# The maximum number of permissions to return per page. When not set for files
|
|
1912
|
-
# in a
|
|
1913
|
-
# that are not in a
|
|
2257
|
+
# in a shared drive, at most 100 results will be returned. When not set for
|
|
2258
|
+
# files that are not in a shared drive, the entire list will be returned.
|
|
1914
2259
|
# @param [String] page_token
|
|
1915
2260
|
# The token for continuing a previous list request on the next page. This should
|
|
1916
2261
|
# be set to the value of 'nextPageToken' from the previous response.
|
|
2262
|
+
# @param [Boolean] supports_all_drives
|
|
2263
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
|
1917
2264
|
# @param [Boolean] supports_team_drives
|
|
1918
|
-
#
|
|
2265
|
+
# Deprecated use supportsAllDrives instead.
|
|
1919
2266
|
# @param [Boolean] use_domain_admin_access
|
|
1920
2267
|
# Issue the request as a domain administrator; if set to true, then the
|
|
1921
|
-
# requester will be granted access if
|
|
1922
|
-
# which the
|
|
2268
|
+
# requester will be granted access if the file ID parameter refers to a shared
|
|
2269
|
+
# drive and the requester is an administrator of the domain to which the shared
|
|
2270
|
+
# drive belongs.
|
|
1923
2271
|
# @param [String] fields
|
|
1924
2272
|
# Selector specifying which fields to include in a partial response.
|
|
1925
2273
|
# @param [String] quota_user
|
|
@@ -1939,13 +2287,14 @@ module Google
|
|
|
1939
2287
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1940
2288
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1941
2289
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1942
|
-
def list_permissions(file_id, max_results: nil, page_token: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2290
|
+
def list_permissions(file_id, max_results: nil, page_token: nil, supports_all_drives: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1943
2291
|
command = make_simple_command(:get, 'files/{fileId}/permissions', options)
|
|
1944
2292
|
command.response_representation = Google::Apis::DriveV2::PermissionList::Representation
|
|
1945
2293
|
command.response_class = Google::Apis::DriveV2::PermissionList
|
|
1946
2294
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1947
2295
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
1948
2296
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
2297
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
1949
2298
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
1950
2299
|
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
|
1951
2300
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -1956,21 +2305,24 @@ module Google
|
|
|
1956
2305
|
|
|
1957
2306
|
# Updates a permission using patch semantics.
|
|
1958
2307
|
# @param [String] file_id
|
|
1959
|
-
# The ID for the file or
|
|
2308
|
+
# The ID for the file or shared drive.
|
|
1960
2309
|
# @param [String] permission_id
|
|
1961
2310
|
# The ID for the permission.
|
|
1962
2311
|
# @param [Google::Apis::DriveV2::Permission] permission_object
|
|
1963
2312
|
# @param [Boolean] remove_expiration
|
|
1964
2313
|
# Whether to remove the expiration date.
|
|
2314
|
+
# @param [Boolean] supports_all_drives
|
|
2315
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
|
1965
2316
|
# @param [Boolean] supports_team_drives
|
|
1966
|
-
#
|
|
2317
|
+
# Deprecated use supportsAllDrives instead.
|
|
1967
2318
|
# @param [Boolean] transfer_ownership
|
|
1968
2319
|
# Whether changing a role to 'owner' downgrades the current owners to writers.
|
|
1969
2320
|
# Does nothing if the specified role is not 'owner'.
|
|
1970
2321
|
# @param [Boolean] use_domain_admin_access
|
|
1971
2322
|
# Issue the request as a domain administrator; if set to true, then the
|
|
1972
|
-
# requester will be granted access if
|
|
1973
|
-
# which the
|
|
2323
|
+
# requester will be granted access if the file ID parameter refers to a shared
|
|
2324
|
+
# drive and the requester is an administrator of the domain to which the shared
|
|
2325
|
+
# drive belongs.
|
|
1974
2326
|
# @param [String] fields
|
|
1975
2327
|
# Selector specifying which fields to include in a partial response.
|
|
1976
2328
|
# @param [String] quota_user
|
|
@@ -1990,7 +2342,7 @@ module Google
|
|
|
1990
2342
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1991
2343
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1992
2344
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1993
|
-
def patch_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_team_drives: nil, transfer_ownership: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2345
|
+
def patch_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_all_drives: nil, supports_team_drives: nil, transfer_ownership: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1994
2346
|
command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options)
|
|
1995
2347
|
command.request_representation = Google::Apis::DriveV2::Permission::Representation
|
|
1996
2348
|
command.request_object = permission_object
|
|
@@ -1999,6 +2351,7 @@ module Google
|
|
|
1999
2351
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
2000
2352
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
|
2001
2353
|
command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
|
|
2354
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
2002
2355
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
2003
2356
|
command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
|
|
2004
2357
|
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
|
@@ -2010,21 +2363,24 @@ module Google
|
|
|
2010
2363
|
|
|
2011
2364
|
# Updates a permission.
|
|
2012
2365
|
# @param [String] file_id
|
|
2013
|
-
# The ID for the file or
|
|
2366
|
+
# The ID for the file or shared drive.
|
|
2014
2367
|
# @param [String] permission_id
|
|
2015
2368
|
# The ID for the permission.
|
|
2016
2369
|
# @param [Google::Apis::DriveV2::Permission] permission_object
|
|
2017
2370
|
# @param [Boolean] remove_expiration
|
|
2018
2371
|
# Whether to remove the expiration date.
|
|
2372
|
+
# @param [Boolean] supports_all_drives
|
|
2373
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
|
2019
2374
|
# @param [Boolean] supports_team_drives
|
|
2020
|
-
#
|
|
2375
|
+
# Deprecated use supportsAllDrives instead.
|
|
2021
2376
|
# @param [Boolean] transfer_ownership
|
|
2022
2377
|
# Whether changing a role to 'owner' downgrades the current owners to writers.
|
|
2023
2378
|
# Does nothing if the specified role is not 'owner'.
|
|
2024
2379
|
# @param [Boolean] use_domain_admin_access
|
|
2025
2380
|
# Issue the request as a domain administrator; if set to true, then the
|
|
2026
|
-
# requester will be granted access if
|
|
2027
|
-
# which the
|
|
2381
|
+
# requester will be granted access if the file ID parameter refers to a shared
|
|
2382
|
+
# drive and the requester is an administrator of the domain to which the shared
|
|
2383
|
+
# drive belongs.
|
|
2028
2384
|
# @param [String] fields
|
|
2029
2385
|
# Selector specifying which fields to include in a partial response.
|
|
2030
2386
|
# @param [String] quota_user
|
|
@@ -2044,7 +2400,7 @@ module Google
|
|
|
2044
2400
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2045
2401
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2046
2402
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2047
|
-
def update_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_team_drives: nil, transfer_ownership: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2403
|
+
def update_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_all_drives: nil, supports_team_drives: nil, transfer_ownership: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2048
2404
|
command = make_simple_command(:put, 'files/{fileId}/permissions/{permissionId}', options)
|
|
2049
2405
|
command.request_representation = Google::Apis::DriveV2::Permission::Representation
|
|
2050
2406
|
command.request_object = permission_object
|
|
@@ -2053,6 +2409,7 @@ module Google
|
|
|
2053
2409
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
2054
2410
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
|
2055
2411
|
command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
|
|
2412
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
2056
2413
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
2057
2414
|
command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
|
|
2058
2415
|
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
|
@@ -2825,8 +3182,7 @@ module Google
|
|
|
2825
3182
|
execute_or_queue_command(command, &block)
|
|
2826
3183
|
end
|
|
2827
3184
|
|
|
2828
|
-
#
|
|
2829
|
-
# Drive cannot contain any untrashed items.
|
|
3185
|
+
# Deprecated use drives.delete instead.
|
|
2830
3186
|
# @param [String] team_drive_id
|
|
2831
3187
|
# The ID of the Team Drive
|
|
2832
3188
|
# @param [String] fields
|
|
@@ -2857,7 +3213,7 @@ module Google
|
|
|
2857
3213
|
execute_or_queue_command(command, &block)
|
|
2858
3214
|
end
|
|
2859
3215
|
|
|
2860
|
-
#
|
|
3216
|
+
# Deprecated use drives.get instead.
|
|
2861
3217
|
# @param [String] team_drive_id
|
|
2862
3218
|
# The ID of the Team Drive
|
|
2863
3219
|
# @param [Boolean] use_domain_admin_access
|
|
@@ -2895,7 +3251,7 @@ module Google
|
|
|
2895
3251
|
execute_or_queue_command(command, &block)
|
|
2896
3252
|
end
|
|
2897
3253
|
|
|
2898
|
-
#
|
|
3254
|
+
# Deprecated use drives.insert instead.
|
|
2899
3255
|
# @param [String] request_id
|
|
2900
3256
|
# An ID, such as a random UUID, which uniquely identifies this user's request
|
|
2901
3257
|
# for idempotent creation of a Team Drive. A repeated request by the same user
|
|
@@ -2935,7 +3291,7 @@ module Google
|
|
|
2935
3291
|
execute_or_queue_command(command, &block)
|
|
2936
3292
|
end
|
|
2937
3293
|
|
|
2938
|
-
#
|
|
3294
|
+
# Deprecated use drives.list instead.
|
|
2939
3295
|
# @param [Fixnum] max_results
|
|
2940
3296
|
# Maximum number of Team Drives to return.
|
|
2941
3297
|
# @param [String] page_token
|
|
@@ -2978,7 +3334,7 @@ module Google
|
|
|
2978
3334
|
execute_or_queue_command(command, &block)
|
|
2979
3335
|
end
|
|
2980
3336
|
|
|
2981
|
-
#
|
|
3337
|
+
# Deprecated use drives.update instead.
|
|
2982
3338
|
# @param [String] team_drive_id
|
|
2983
3339
|
# The ID of the Team Drive
|
|
2984
3340
|
# @param [Google::Apis::DriveV2::TeamDrive] team_drive_object
|