google-api-client 0.28.7 → 0.29.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -25,6 +25,12 @@ module Google
|
|
25
25
|
class About
|
26
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
27
|
|
28
|
+
class DriveTheme
|
29
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
30
|
+
|
31
|
+
include Google::Apis::Core::JsonObjectSupport
|
32
|
+
end
|
33
|
+
|
28
34
|
class StorageQuota
|
29
35
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
30
36
|
|
@@ -76,6 +82,36 @@ module Google
|
|
76
82
|
include Google::Apis::Core::JsonObjectSupport
|
77
83
|
end
|
78
84
|
|
85
|
+
class Drive
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
class BackgroundImageFile
|
89
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
90
|
+
|
91
|
+
include Google::Apis::Core::JsonObjectSupport
|
92
|
+
end
|
93
|
+
|
94
|
+
class Capabilities
|
95
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
96
|
+
|
97
|
+
include Google::Apis::Core::JsonObjectSupport
|
98
|
+
end
|
99
|
+
|
100
|
+
class Restrictions
|
101
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
102
|
+
|
103
|
+
include Google::Apis::Core::JsonObjectSupport
|
104
|
+
end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class DriveList
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
79
115
|
class File
|
80
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
117
|
|
@@ -133,6 +169,12 @@ module Google
|
|
133
169
|
class Permission
|
134
170
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
171
|
|
172
|
+
class PermissionDetail
|
173
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
174
|
+
|
175
|
+
include Google::Apis::Core::JsonObjectSupport
|
176
|
+
end
|
177
|
+
|
136
178
|
class TeamDrivePermissionDetail
|
137
179
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
138
180
|
|
@@ -218,7 +260,10 @@ module Google
|
|
218
260
|
# @private
|
219
261
|
class Representation < Google::Apis::Core::JsonRepresentation
|
220
262
|
property :app_installed, as: 'appInstalled'
|
263
|
+
property :can_create_drives, as: 'canCreateDrives'
|
221
264
|
property :can_create_team_drives, as: 'canCreateTeamDrives'
|
265
|
+
collection :drive_themes, as: 'driveThemes', class: Google::Apis::DriveV3::About::DriveTheme, decorator: Google::Apis::DriveV3::About::DriveTheme::Representation
|
266
|
+
|
222
267
|
hash :export_formats, as: 'exportFormats', :class => Array do
|
223
268
|
include Representable::JSON::Collection
|
224
269
|
items
|
@@ -241,6 +286,15 @@ module Google
|
|
241
286
|
|
242
287
|
end
|
243
288
|
|
289
|
+
class DriveTheme
|
290
|
+
# @private
|
291
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
292
|
+
property :background_image_link, as: 'backgroundImageLink'
|
293
|
+
property :color_rgb, as: 'colorRgb'
|
294
|
+
property :id, as: 'id'
|
295
|
+
end
|
296
|
+
end
|
297
|
+
|
244
298
|
class StorageQuota
|
245
299
|
# @private
|
246
300
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -264,6 +318,10 @@ module Google
|
|
264
318
|
class Change
|
265
319
|
# @private
|
266
320
|
class Representation < Google::Apis::Core::JsonRepresentation
|
321
|
+
property :change_type, as: 'changeType'
|
322
|
+
property :drive, as: 'drive', class: Google::Apis::DriveV3::Drive, decorator: Google::Apis::DriveV3::Drive::Representation
|
323
|
+
|
324
|
+
property :drive_id, as: 'driveId'
|
267
325
|
property :file, as: 'file', class: Google::Apis::DriveV3::File, decorator: Google::Apis::DriveV3::File::Representation
|
268
326
|
|
269
327
|
property :file_id, as: 'fileId'
|
@@ -346,6 +404,81 @@ module Google
|
|
346
404
|
end
|
347
405
|
end
|
348
406
|
|
407
|
+
class Drive
|
408
|
+
# @private
|
409
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
410
|
+
property :background_image_file, as: 'backgroundImageFile', class: Google::Apis::DriveV3::Drive::BackgroundImageFile, decorator: Google::Apis::DriveV3::Drive::BackgroundImageFile::Representation
|
411
|
+
|
412
|
+
property :background_image_link, as: 'backgroundImageLink'
|
413
|
+
property :capabilities, as: 'capabilities', class: Google::Apis::DriveV3::Drive::Capabilities, decorator: Google::Apis::DriveV3::Drive::Capabilities::Representation
|
414
|
+
|
415
|
+
property :color_rgb, as: 'colorRgb'
|
416
|
+
property :created_time, as: 'createdTime', type: DateTime
|
417
|
+
|
418
|
+
property :hidden, as: 'hidden'
|
419
|
+
property :id, as: 'id'
|
420
|
+
property :kind, as: 'kind'
|
421
|
+
property :name, as: 'name'
|
422
|
+
property :restrictions, as: 'restrictions', class: Google::Apis::DriveV3::Drive::Restrictions, decorator: Google::Apis::DriveV3::Drive::Restrictions::Representation
|
423
|
+
|
424
|
+
property :theme_id, as: 'themeId'
|
425
|
+
end
|
426
|
+
|
427
|
+
class BackgroundImageFile
|
428
|
+
# @private
|
429
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
430
|
+
property :id, as: 'id'
|
431
|
+
property :width, as: 'width'
|
432
|
+
property :x_coordinate, as: 'xCoordinate'
|
433
|
+
property :y_coordinate, as: 'yCoordinate'
|
434
|
+
end
|
435
|
+
end
|
436
|
+
|
437
|
+
class Capabilities
|
438
|
+
# @private
|
439
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
440
|
+
property :can_add_children, as: 'canAddChildren'
|
441
|
+
property :can_change_copy_requires_writer_permission_restriction, as: 'canChangeCopyRequiresWriterPermissionRestriction'
|
442
|
+
property :can_change_domain_users_only_restriction, as: 'canChangeDomainUsersOnlyRestriction'
|
443
|
+
property :can_change_drive_background, as: 'canChangeDriveBackground'
|
444
|
+
property :can_change_drive_members_only_restriction, as: 'canChangeDriveMembersOnlyRestriction'
|
445
|
+
property :can_comment, as: 'canComment'
|
446
|
+
property :can_copy, as: 'canCopy'
|
447
|
+
property :can_delete_children, as: 'canDeleteChildren'
|
448
|
+
property :can_delete_drive, as: 'canDeleteDrive'
|
449
|
+
property :can_download, as: 'canDownload'
|
450
|
+
property :can_edit, as: 'canEdit'
|
451
|
+
property :can_list_children, as: 'canListChildren'
|
452
|
+
property :can_manage_members, as: 'canManageMembers'
|
453
|
+
property :can_read_revisions, as: 'canReadRevisions'
|
454
|
+
property :can_rename, as: 'canRename'
|
455
|
+
property :can_rename_drive, as: 'canRenameDrive'
|
456
|
+
property :can_share, as: 'canShare'
|
457
|
+
property :can_trash_children, as: 'canTrashChildren'
|
458
|
+
end
|
459
|
+
end
|
460
|
+
|
461
|
+
class Restrictions
|
462
|
+
# @private
|
463
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
464
|
+
property :admin_managed_restrictions, as: 'adminManagedRestrictions'
|
465
|
+
property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
|
466
|
+
property :domain_users_only, as: 'domainUsersOnly'
|
467
|
+
property :drive_members_only, as: 'driveMembersOnly'
|
468
|
+
end
|
469
|
+
end
|
470
|
+
end
|
471
|
+
|
472
|
+
class DriveList
|
473
|
+
# @private
|
474
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
475
|
+
collection :drives, as: 'drives', class: Google::Apis::DriveV3::Drive, decorator: Google::Apis::DriveV3::Drive::Representation
|
476
|
+
|
477
|
+
property :kind, as: 'kind'
|
478
|
+
property :next_page_token, as: 'nextPageToken'
|
479
|
+
end
|
480
|
+
end
|
481
|
+
|
349
482
|
class File
|
350
483
|
# @private
|
351
484
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -358,6 +491,7 @@ module Google
|
|
358
491
|
property :created_time, as: 'createdTime', type: DateTime
|
359
492
|
|
360
493
|
property :description, as: 'description'
|
494
|
+
property :drive_id, as: 'driveId'
|
361
495
|
property :explicitly_trashed, as: 'explicitlyTrashed'
|
362
496
|
hash :export_links, as: 'exportLinks'
|
363
497
|
property :file_extension, as: 'fileExtension'
|
@@ -433,12 +567,17 @@ module Google
|
|
433
567
|
property :can_download, as: 'canDownload'
|
434
568
|
property :can_edit, as: 'canEdit'
|
435
569
|
property :can_list_children, as: 'canListChildren'
|
570
|
+
property :can_move_children_out_of_drive, as: 'canMoveChildrenOutOfDrive'
|
436
571
|
property :can_move_children_out_of_team_drive, as: 'canMoveChildrenOutOfTeamDrive'
|
572
|
+
property :can_move_children_within_drive, as: 'canMoveChildrenWithinDrive'
|
437
573
|
property :can_move_children_within_team_drive, as: 'canMoveChildrenWithinTeamDrive'
|
438
574
|
property :can_move_item_into_team_drive, as: 'canMoveItemIntoTeamDrive'
|
575
|
+
property :can_move_item_out_of_drive, as: 'canMoveItemOutOfDrive'
|
439
576
|
property :can_move_item_out_of_team_drive, as: 'canMoveItemOutOfTeamDrive'
|
577
|
+
property :can_move_item_within_drive, as: 'canMoveItemWithinDrive'
|
440
578
|
property :can_move_item_within_team_drive, as: 'canMoveItemWithinTeamDrive'
|
441
579
|
property :can_move_team_drive_item, as: 'canMoveTeamDriveItem'
|
580
|
+
property :can_read_drive, as: 'canReadDrive'
|
442
581
|
property :can_read_revisions, as: 'canReadRevisions'
|
443
582
|
property :can_read_team_drive, as: 'canReadTeamDrive'
|
444
583
|
property :can_remove_children, as: 'canRemoveChildren'
|
@@ -546,6 +685,8 @@ module Google
|
|
546
685
|
|
547
686
|
property :id, as: 'id'
|
548
687
|
property :kind, as: 'kind'
|
688
|
+
collection :permission_details, as: 'permissionDetails', class: Google::Apis::DriveV3::Permission::PermissionDetail, decorator: Google::Apis::DriveV3::Permission::PermissionDetail::Representation
|
689
|
+
|
549
690
|
property :photo_link, as: 'photoLink'
|
550
691
|
property :role, as: 'role'
|
551
692
|
collection :team_drive_permission_details, as: 'teamDrivePermissionDetails', class: Google::Apis::DriveV3::Permission::TeamDrivePermissionDetail, decorator: Google::Apis::DriveV3::Permission::TeamDrivePermissionDetail::Representation
|
@@ -553,6 +694,16 @@ module Google
|
|
553
694
|
property :type, as: 'type'
|
554
695
|
end
|
555
696
|
|
697
|
+
class PermissionDetail
|
698
|
+
# @private
|
699
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
700
|
+
property :inherited, as: 'inherited'
|
701
|
+
property :inherited_from, as: 'inheritedFrom'
|
702
|
+
property :permission_type, as: 'permissionType'
|
703
|
+
property :role, as: 'role'
|
704
|
+
end
|
705
|
+
end
|
706
|
+
|
556
707
|
class TeamDrivePermissionDetail
|
557
708
|
# @private
|
558
709
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -83,11 +83,15 @@ module Google
|
|
83
83
|
end
|
84
84
|
|
85
85
|
# Gets the starting pageToken for listing future changes.
|
86
|
+
# @param [String] drive_id
|
87
|
+
# The ID of the shared drive for which the starting pageToken for listing future
|
88
|
+
# changes from that shared drive will be returned.
|
89
|
+
# @param [Boolean] supports_all_drives
|
90
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
86
91
|
# @param [Boolean] supports_team_drives
|
87
|
-
#
|
92
|
+
# Deprecated use supportsAllDrives instead.
|
88
93
|
# @param [String] team_drive_id
|
89
|
-
#
|
90
|
-
# changes from that Team Drive will be returned.
|
94
|
+
# Deprecated use driveId instead.
|
91
95
|
# @param [String] fields
|
92
96
|
# Selector specifying which fields to include in a partial response.
|
93
97
|
# @param [String] quota_user
|
@@ -107,10 +111,12 @@ module Google
|
|
107
111
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
108
112
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
109
113
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
110
|
-
def get_changes_start_page_token(supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
114
|
+
def get_changes_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)
|
111
115
|
command = make_simple_command(:get, 'changes/startPageToken', options)
|
112
116
|
command.response_representation = Google::Apis::DriveV3::StartPageToken::Representation
|
113
117
|
command.response_class = Google::Apis::DriveV3::StartPageToken
|
118
|
+
command.query['driveId'] = drive_id unless drive_id.nil?
|
119
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
114
120
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
115
121
|
command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
116
122
|
command.query['fields'] = fields unless fields.nil?
|
@@ -119,21 +125,27 @@ module Google
|
|
119
125
|
execute_or_queue_command(command, &block)
|
120
126
|
end
|
121
127
|
|
122
|
-
# Lists the changes for a user or
|
128
|
+
# Lists the changes for a user or shared drive.
|
123
129
|
# @param [String] page_token
|
124
130
|
# The token for continuing a previous list request on the next page. This should
|
125
131
|
# be set to the value of 'nextPageToken' from the previous response or to the
|
126
132
|
# response from the getStartPageToken method.
|
133
|
+
# @param [String] drive_id
|
134
|
+
# The shared drive from which changes will be returned. If specified the change
|
135
|
+
# IDs will be reflective of the shared drive; use the combined drive ID and
|
136
|
+
# change ID as an identifier.
|
127
137
|
# @param [Boolean] include_corpus_removals
|
128
138
|
# Whether changes should include the file resource if the file is still
|
129
139
|
# accessible by the user at the time of the request, even when a file was
|
130
140
|
# removed from the list of changes and there will be no further change entries
|
131
141
|
# for this file.
|
142
|
+
# @param [Boolean] include_items_from_all_drives
|
143
|
+
# Whether both My Drive and shared drive items should be included in results.
|
132
144
|
# @param [Boolean] include_removed
|
133
145
|
# Whether to include changes indicating that items have been removed from the
|
134
146
|
# list of changes, for example by deletion or loss of access.
|
135
147
|
# @param [Boolean] include_team_drive_items
|
136
|
-
#
|
148
|
+
# Deprecated use includeItemsFromAllDrives instead.
|
137
149
|
# @param [Fixnum] page_size
|
138
150
|
# The maximum number of changes to return per page.
|
139
151
|
# @param [Boolean] restrict_to_my_drive
|
@@ -143,12 +155,12 @@ module Google
|
|
143
155
|
# @param [String] spaces
|
144
156
|
# A comma-separated list of spaces to query within the user corpus. Supported
|
145
157
|
# values are 'drive', 'appDataFolder' and 'photos'.
|
158
|
+
# @param [Boolean] supports_all_drives
|
159
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
146
160
|
# @param [Boolean] supports_team_drives
|
147
|
-
#
|
161
|
+
# Deprecated use supportsAllDrives instead.
|
148
162
|
# @param [String] team_drive_id
|
149
|
-
#
|
150
|
-
# IDs will be reflective of the Team Drive; use the combined Team Drive ID and
|
151
|
-
# change ID as an identifier.
|
163
|
+
# Deprecated use driveId instead.
|
152
164
|
# @param [String] fields
|
153
165
|
# Selector specifying which fields to include in a partial response.
|
154
166
|
# @param [String] quota_user
|
@@ -168,17 +180,20 @@ module Google
|
|
168
180
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
169
181
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
170
182
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
171
|
-
def list_changes(page_token, include_corpus_removals: nil, include_removed: nil, include_team_drive_items: nil, page_size: nil, restrict_to_my_drive: nil, spaces: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
183
|
+
def list_changes(page_token, drive_id: nil, include_corpus_removals: nil, include_items_from_all_drives: nil, include_removed: nil, include_team_drive_items: nil, page_size: nil, restrict_to_my_drive: 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)
|
172
184
|
command = make_simple_command(:get, 'changes', options)
|
173
185
|
command.response_representation = Google::Apis::DriveV3::ChangeList::Representation
|
174
186
|
command.response_class = Google::Apis::DriveV3::ChangeList
|
187
|
+
command.query['driveId'] = drive_id unless drive_id.nil?
|
175
188
|
command.query['includeCorpusRemovals'] = include_corpus_removals unless include_corpus_removals.nil?
|
189
|
+
command.query['includeItemsFromAllDrives'] = include_items_from_all_drives unless include_items_from_all_drives.nil?
|
176
190
|
command.query['includeRemoved'] = include_removed unless include_removed.nil?
|
177
191
|
command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
|
178
192
|
command.query['pageSize'] = page_size unless page_size.nil?
|
179
193
|
command.query['pageToken'] = page_token unless page_token.nil?
|
180
194
|
command.query['restrictToMyDrive'] = restrict_to_my_drive unless restrict_to_my_drive.nil?
|
181
195
|
command.query['spaces'] = spaces unless spaces.nil?
|
196
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
182
197
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
183
198
|
command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
184
199
|
command.query['fields'] = fields unless fields.nil?
|
@@ -193,16 +208,22 @@ module Google
|
|
193
208
|
# be set to the value of 'nextPageToken' from the previous response or to the
|
194
209
|
# response from the getStartPageToken method.
|
195
210
|
# @param [Google::Apis::DriveV3::Channel] channel_object
|
211
|
+
# @param [String] drive_id
|
212
|
+
# The shared drive from which changes will be returned. If specified the change
|
213
|
+
# IDs will be reflective of the shared drive; use the combined drive ID and
|
214
|
+
# change ID as an identifier.
|
196
215
|
# @param [Boolean] include_corpus_removals
|
197
216
|
# Whether changes should include the file resource if the file is still
|
198
217
|
# accessible by the user at the time of the request, even when a file was
|
199
218
|
# removed from the list of changes and there will be no further change entries
|
200
219
|
# for this file.
|
220
|
+
# @param [Boolean] include_items_from_all_drives
|
221
|
+
# Whether both My Drive and shared drive items should be included in results.
|
201
222
|
# @param [Boolean] include_removed
|
202
223
|
# Whether to include changes indicating that items have been removed from the
|
203
224
|
# list of changes, for example by deletion or loss of access.
|
204
225
|
# @param [Boolean] include_team_drive_items
|
205
|
-
#
|
226
|
+
# Deprecated use includeItemsFromAllDrives instead.
|
206
227
|
# @param [Fixnum] page_size
|
207
228
|
# The maximum number of changes to return per page.
|
208
229
|
# @param [Boolean] restrict_to_my_drive
|
@@ -212,12 +233,12 @@ module Google
|
|
212
233
|
# @param [String] spaces
|
213
234
|
# A comma-separated list of spaces to query within the user corpus. Supported
|
214
235
|
# values are 'drive', 'appDataFolder' and 'photos'.
|
236
|
+
# @param [Boolean] supports_all_drives
|
237
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
215
238
|
# @param [Boolean] supports_team_drives
|
216
|
-
#
|
239
|
+
# Deprecated use supportsAllDrives instead.
|
217
240
|
# @param [String] team_drive_id
|
218
|
-
#
|
219
|
-
# IDs will be reflective of the Team Drive; use the combined Team Drive ID and
|
220
|
-
# change ID as an identifier.
|
241
|
+
# Deprecated use driveId instead.
|
221
242
|
# @param [String] fields
|
222
243
|
# Selector specifying which fields to include in a partial response.
|
223
244
|
# @param [String] quota_user
|
@@ -237,19 +258,22 @@ module Google
|
|
237
258
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
238
259
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
239
260
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
240
|
-
def watch_change(page_token, channel_object = nil, include_corpus_removals: nil, include_removed: nil, include_team_drive_items: nil, page_size: nil, restrict_to_my_drive: nil, spaces: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
261
|
+
def watch_change(page_token, channel_object = nil, drive_id: nil, include_corpus_removals: nil, include_items_from_all_drives: nil, include_removed: nil, include_team_drive_items: nil, page_size: nil, restrict_to_my_drive: 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)
|
241
262
|
command = make_simple_command(:post, 'changes/watch', options)
|
242
263
|
command.request_representation = Google::Apis::DriveV3::Channel::Representation
|
243
264
|
command.request_object = channel_object
|
244
265
|
command.response_representation = Google::Apis::DriveV3::Channel::Representation
|
245
266
|
command.response_class = Google::Apis::DriveV3::Channel
|
267
|
+
command.query['driveId'] = drive_id unless drive_id.nil?
|
246
268
|
command.query['includeCorpusRemovals'] = include_corpus_removals unless include_corpus_removals.nil?
|
269
|
+
command.query['includeItemsFromAllDrives'] = include_items_from_all_drives unless include_items_from_all_drives.nil?
|
247
270
|
command.query['includeRemoved'] = include_removed unless include_removed.nil?
|
248
271
|
command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
|
249
272
|
command.query['pageSize'] = page_size unless page_size.nil?
|
250
273
|
command.query['pageToken'] = page_token unless page_token.nil?
|
251
274
|
command.query['restrictToMyDrive'] = restrict_to_my_drive unless restrict_to_my_drive.nil?
|
252
275
|
command.query['spaces'] = spaces unless spaces.nil?
|
276
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
253
277
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
254
278
|
command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
255
279
|
command.query['fields'] = fields unless fields.nil?
|
@@ -486,6 +510,266 @@ module Google
|
|
486
510
|
execute_or_queue_command(command, &block)
|
487
511
|
end
|
488
512
|
|
513
|
+
# Creates a new shared drive.
|
514
|
+
# @param [String] request_id
|
515
|
+
# An ID, such as a random UUID, which uniquely identifies this user's request
|
516
|
+
# for idempotent creation of a shared drive. A repeated request by the same user
|
517
|
+
# and with the same request ID will avoid creating duplicates by attempting to
|
518
|
+
# create the same shared drive. If the shared drive already exists a 409 error
|
519
|
+
# will be returned.
|
520
|
+
# @param [Google::Apis::DriveV3::Drive] drive_object
|
521
|
+
# @param [String] fields
|
522
|
+
# Selector specifying which fields to include in a partial response.
|
523
|
+
# @param [String] quota_user
|
524
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
525
|
+
# characters.
|
526
|
+
# @param [String] user_ip
|
527
|
+
# Deprecated. Please use quotaUser instead.
|
528
|
+
# @param [Google::Apis::RequestOptions] options
|
529
|
+
# Request-specific options
|
530
|
+
#
|
531
|
+
# @yield [result, err] Result & error if block supplied
|
532
|
+
# @yieldparam result [Google::Apis::DriveV3::Drive] parsed result object
|
533
|
+
# @yieldparam err [StandardError] error object if request failed
|
534
|
+
#
|
535
|
+
# @return [Google::Apis::DriveV3::Drive]
|
536
|
+
#
|
537
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
538
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
539
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
540
|
+
def create_drife(request_id, drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
541
|
+
command = make_simple_command(:post, 'drives', options)
|
542
|
+
command.request_representation = Google::Apis::DriveV3::Drive::Representation
|
543
|
+
command.request_object = drive_object
|
544
|
+
command.response_representation = Google::Apis::DriveV3::Drive::Representation
|
545
|
+
command.response_class = Google::Apis::DriveV3::Drive
|
546
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
547
|
+
command.query['fields'] = fields unless fields.nil?
|
548
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
549
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
550
|
+
execute_or_queue_command(command, &block)
|
551
|
+
end
|
552
|
+
|
553
|
+
# Permanently deletes a shared drive for which the user is an organizer. The
|
554
|
+
# shared drive cannot contain any untrashed items.
|
555
|
+
# @param [String] drive_id
|
556
|
+
# The ID of the shared drive.
|
557
|
+
# @param [String] fields
|
558
|
+
# Selector specifying which fields to include in a partial response.
|
559
|
+
# @param [String] quota_user
|
560
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
561
|
+
# characters.
|
562
|
+
# @param [String] user_ip
|
563
|
+
# Deprecated. Please use quotaUser instead.
|
564
|
+
# @param [Google::Apis::RequestOptions] options
|
565
|
+
# Request-specific options
|
566
|
+
#
|
567
|
+
# @yield [result, err] Result & error if block supplied
|
568
|
+
# @yieldparam result [NilClass] No result returned for this method
|
569
|
+
# @yieldparam err [StandardError] error object if request failed
|
570
|
+
#
|
571
|
+
# @return [void]
|
572
|
+
#
|
573
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
574
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
575
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
576
|
+
def delete_drife(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
577
|
+
command = make_simple_command(:delete, 'drives/{driveId}', options)
|
578
|
+
command.params['driveId'] = drive_id unless drive_id.nil?
|
579
|
+
command.query['fields'] = fields unless fields.nil?
|
580
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
581
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
582
|
+
execute_or_queue_command(command, &block)
|
583
|
+
end
|
584
|
+
|
585
|
+
# Gets a shared drive's metadata by ID.
|
586
|
+
# @param [String] drive_id
|
587
|
+
# The ID of the shared drive.
|
588
|
+
# @param [Boolean] use_domain_admin_access
|
589
|
+
# Issue the request as a domain administrator; if set to true, then the
|
590
|
+
# requester will be granted access if they are an administrator of the domain to
|
591
|
+
# which the shared drive belongs.
|
592
|
+
# @param [String] fields
|
593
|
+
# Selector specifying which fields to include in a partial response.
|
594
|
+
# @param [String] quota_user
|
595
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
596
|
+
# characters.
|
597
|
+
# @param [String] user_ip
|
598
|
+
# Deprecated. Please use quotaUser instead.
|
599
|
+
# @param [Google::Apis::RequestOptions] options
|
600
|
+
# Request-specific options
|
601
|
+
#
|
602
|
+
# @yield [result, err] Result & error if block supplied
|
603
|
+
# @yieldparam result [Google::Apis::DriveV3::Drive] parsed result object
|
604
|
+
# @yieldparam err [StandardError] error object if request failed
|
605
|
+
#
|
606
|
+
# @return [Google::Apis::DriveV3::Drive]
|
607
|
+
#
|
608
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
609
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
610
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
611
|
+
def get_drife(drive_id, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
612
|
+
command = make_simple_command(:get, 'drives/{driveId}', options)
|
613
|
+
command.response_representation = Google::Apis::DriveV3::Drive::Representation
|
614
|
+
command.response_class = Google::Apis::DriveV3::Drive
|
615
|
+
command.params['driveId'] = drive_id unless drive_id.nil?
|
616
|
+
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
617
|
+
command.query['fields'] = fields unless fields.nil?
|
618
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
619
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
620
|
+
execute_or_queue_command(command, &block)
|
621
|
+
end
|
622
|
+
|
623
|
+
# Hides a shared drive from the default view.
|
624
|
+
# @param [String] drive_id
|
625
|
+
# The ID of the shared drive.
|
626
|
+
# @param [String] fields
|
627
|
+
# Selector specifying which fields to include in a partial response.
|
628
|
+
# @param [String] quota_user
|
629
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
630
|
+
# characters.
|
631
|
+
# @param [String] user_ip
|
632
|
+
# Deprecated. Please use quotaUser instead.
|
633
|
+
# @param [Google::Apis::RequestOptions] options
|
634
|
+
# Request-specific options
|
635
|
+
#
|
636
|
+
# @yield [result, err] Result & error if block supplied
|
637
|
+
# @yieldparam result [Google::Apis::DriveV3::Drive] parsed result object
|
638
|
+
# @yieldparam err [StandardError] error object if request failed
|
639
|
+
#
|
640
|
+
# @return [Google::Apis::DriveV3::Drive]
|
641
|
+
#
|
642
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
643
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
644
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
645
|
+
def hide_drife(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
646
|
+
command = make_simple_command(:post, 'drives/{driveId}/hide', options)
|
647
|
+
command.response_representation = Google::Apis::DriveV3::Drive::Representation
|
648
|
+
command.response_class = Google::Apis::DriveV3::Drive
|
649
|
+
command.params['driveId'] = drive_id unless drive_id.nil?
|
650
|
+
command.query['fields'] = fields unless fields.nil?
|
651
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
652
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
653
|
+
execute_or_queue_command(command, &block)
|
654
|
+
end
|
655
|
+
|
656
|
+
# Lists the user's shared drives.
|
657
|
+
# @param [Fixnum] page_size
|
658
|
+
# Maximum number of shared drives to return.
|
659
|
+
# @param [String] page_token
|
660
|
+
# Page token for shared drives.
|
661
|
+
# @param [String] q
|
662
|
+
# Query string for searching shared drives.
|
663
|
+
# @param [Boolean] use_domain_admin_access
|
664
|
+
# Issue the request as a domain administrator; if set to true, then all shared
|
665
|
+
# drives of the domain in which the requester is an administrator are returned.
|
666
|
+
# @param [String] fields
|
667
|
+
# Selector specifying which fields to include in a partial response.
|
668
|
+
# @param [String] quota_user
|
669
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
670
|
+
# characters.
|
671
|
+
# @param [String] user_ip
|
672
|
+
# Deprecated. Please use quotaUser instead.
|
673
|
+
# @param [Google::Apis::RequestOptions] options
|
674
|
+
# Request-specific options
|
675
|
+
#
|
676
|
+
# @yield [result, err] Result & error if block supplied
|
677
|
+
# @yieldparam result [Google::Apis::DriveV3::DriveList] parsed result object
|
678
|
+
# @yieldparam err [StandardError] error object if request failed
|
679
|
+
#
|
680
|
+
# @return [Google::Apis::DriveV3::DriveList]
|
681
|
+
#
|
682
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
683
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
684
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
685
|
+
def list_drives(page_size: nil, page_token: nil, q: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
686
|
+
command = make_simple_command(:get, 'drives', options)
|
687
|
+
command.response_representation = Google::Apis::DriveV3::DriveList::Representation
|
688
|
+
command.response_class = Google::Apis::DriveV3::DriveList
|
689
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
690
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
691
|
+
command.query['q'] = q unless q.nil?
|
692
|
+
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
693
|
+
command.query['fields'] = fields unless fields.nil?
|
694
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
695
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
696
|
+
execute_or_queue_command(command, &block)
|
697
|
+
end
|
698
|
+
|
699
|
+
# Restores a shared drive to the default view.
|
700
|
+
# @param [String] drive_id
|
701
|
+
# The ID of the shared drive.
|
702
|
+
# @param [String] fields
|
703
|
+
# Selector specifying which fields to include in a partial response.
|
704
|
+
# @param [String] quota_user
|
705
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
706
|
+
# characters.
|
707
|
+
# @param [String] user_ip
|
708
|
+
# Deprecated. Please use quotaUser instead.
|
709
|
+
# @param [Google::Apis::RequestOptions] options
|
710
|
+
# Request-specific options
|
711
|
+
#
|
712
|
+
# @yield [result, err] Result & error if block supplied
|
713
|
+
# @yieldparam result [Google::Apis::DriveV3::Drive] parsed result object
|
714
|
+
# @yieldparam err [StandardError] error object if request failed
|
715
|
+
#
|
716
|
+
# @return [Google::Apis::DriveV3::Drive]
|
717
|
+
#
|
718
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
719
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
720
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
721
|
+
def unhide_drife(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
722
|
+
command = make_simple_command(:post, 'drives/{driveId}/unhide', options)
|
723
|
+
command.response_representation = Google::Apis::DriveV3::Drive::Representation
|
724
|
+
command.response_class = Google::Apis::DriveV3::Drive
|
725
|
+
command.params['driveId'] = drive_id unless drive_id.nil?
|
726
|
+
command.query['fields'] = fields unless fields.nil?
|
727
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
728
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
729
|
+
execute_or_queue_command(command, &block)
|
730
|
+
end
|
731
|
+
|
732
|
+
# Updates the metadate for a shared drive.
|
733
|
+
# @param [String] drive_id
|
734
|
+
# The ID of the shared drive.
|
735
|
+
# @param [Google::Apis::DriveV3::Drive] drive_object
|
736
|
+
# @param [Boolean] use_domain_admin_access
|
737
|
+
# Issue the request as a domain administrator; if set to true, then the
|
738
|
+
# requester will be granted access if they are an administrator of the domain to
|
739
|
+
# which the shared drive belongs.
|
740
|
+
# @param [String] fields
|
741
|
+
# Selector specifying which fields to include in a partial response.
|
742
|
+
# @param [String] quota_user
|
743
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
744
|
+
# characters.
|
745
|
+
# @param [String] user_ip
|
746
|
+
# Deprecated. Please use quotaUser instead.
|
747
|
+
# @param [Google::Apis::RequestOptions] options
|
748
|
+
# Request-specific options
|
749
|
+
#
|
750
|
+
# @yield [result, err] Result & error if block supplied
|
751
|
+
# @yieldparam result [Google::Apis::DriveV3::Drive] parsed result object
|
752
|
+
# @yieldparam err [StandardError] error object if request failed
|
753
|
+
#
|
754
|
+
# @return [Google::Apis::DriveV3::Drive]
|
755
|
+
#
|
756
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
757
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
758
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
759
|
+
def update_drife(drive_id, drive_object = nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
760
|
+
command = make_simple_command(:patch, 'drives/{driveId}', options)
|
761
|
+
command.request_representation = Google::Apis::DriveV3::Drive::Representation
|
762
|
+
command.request_object = drive_object
|
763
|
+
command.response_representation = Google::Apis::DriveV3::Drive::Representation
|
764
|
+
command.response_class = Google::Apis::DriveV3::Drive
|
765
|
+
command.params['driveId'] = drive_id unless drive_id.nil?
|
766
|
+
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
767
|
+
command.query['fields'] = fields unless fields.nil?
|
768
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
769
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
770
|
+
execute_or_queue_command(command, &block)
|
771
|
+
end
|
772
|
+
|
489
773
|
# Creates a copy of a file and applies any requested updates with patch
|
490
774
|
# semantics.
|
491
775
|
# @param [String] file_id
|
@@ -498,11 +782,13 @@ module Google
|
|
498
782
|
# Permissions are still inherited from parent folders.
|
499
783
|
# @param [Boolean] keep_revision_forever
|
500
784
|
# Whether to set the 'keepForever' field in the new head revision. This is only
|
501
|
-
# applicable to files with binary content in Drive.
|
785
|
+
# applicable to files with binary content in Google Drive.
|
502
786
|
# @param [String] ocr_language
|
503
787
|
# A language hint for OCR processing during image import (ISO 639-1 code).
|
788
|
+
# @param [Boolean] supports_all_drives
|
789
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
504
790
|
# @param [Boolean] supports_team_drives
|
505
|
-
#
|
791
|
+
# Deprecated use supportsAllDrives instead.
|
506
792
|
# @param [String] fields
|
507
793
|
# Selector specifying which fields to include in a partial response.
|
508
794
|
# @param [String] quota_user
|
@@ -522,7 +808,7 @@ module Google
|
|
522
808
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
523
809
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
524
810
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
525
|
-
def copy_file(file_id, file_object = nil, ignore_default_visibility: nil, keep_revision_forever: nil, ocr_language: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
811
|
+
def copy_file(file_id, file_object = nil, ignore_default_visibility: nil, keep_revision_forever: nil, ocr_language: nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
526
812
|
command = make_simple_command(:post, 'files/{fileId}/copy', options)
|
527
813
|
command.request_representation = Google::Apis::DriveV3::File::Representation
|
528
814
|
command.request_object = file_object
|
@@ -532,6 +818,7 @@ module Google
|
|
532
818
|
command.query['ignoreDefaultVisibility'] = ignore_default_visibility unless ignore_default_visibility.nil?
|
533
819
|
command.query['keepRevisionForever'] = keep_revision_forever unless keep_revision_forever.nil?
|
534
820
|
command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
|
821
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
535
822
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
536
823
|
command.query['fields'] = fields unless fields.nil?
|
537
824
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -548,11 +835,13 @@ module Google
|
|
548
835
|
# Permissions are still inherited from parent folders.
|
549
836
|
# @param [Boolean] keep_revision_forever
|
550
837
|
# Whether to set the 'keepForever' field in the new head revision. This is only
|
551
|
-
# applicable to files with binary content in Drive.
|
838
|
+
# applicable to files with binary content in Google Drive.
|
552
839
|
# @param [String] ocr_language
|
553
840
|
# A language hint for OCR processing during image import (ISO 639-1 code).
|
841
|
+
# @param [Boolean] supports_all_drives
|
842
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
554
843
|
# @param [Boolean] supports_team_drives
|
555
|
-
#
|
844
|
+
# Deprecated use supportsAllDrives instead.
|
556
845
|
# @param [Boolean] use_content_as_indexable_text
|
557
846
|
# Whether to use the uploaded content as indexable text.
|
558
847
|
# @param [String] fields
|
@@ -578,7 +867,7 @@ module Google
|
|
578
867
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
579
868
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
580
869
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
581
|
-
def create_file(file_object = nil, ignore_default_visibility: nil, keep_revision_forever: nil, ocr_language: nil, supports_team_drives: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
870
|
+
def create_file(file_object = nil, ignore_default_visibility: nil, keep_revision_forever: nil, ocr_language: nil, supports_all_drives: nil, supports_team_drives: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
582
871
|
if upload_source.nil?
|
583
872
|
command = make_simple_command(:post, 'files', options)
|
584
873
|
else
|
@@ -593,6 +882,7 @@ module Google
|
|
593
882
|
command.query['ignoreDefaultVisibility'] = ignore_default_visibility unless ignore_default_visibility.nil?
|
594
883
|
command.query['keepRevisionForever'] = keep_revision_forever unless keep_revision_forever.nil?
|
595
884
|
command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
|
885
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
596
886
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
597
887
|
command.query['useContentAsIndexableText'] = use_content_as_indexable_text unless use_content_as_indexable_text.nil?
|
598
888
|
command.query['fields'] = fields unless fields.nil?
|
@@ -602,13 +892,15 @@ module Google
|
|
602
892
|
end
|
603
893
|
|
604
894
|
# Permanently deletes a file owned by the user without moving it to the trash.
|
605
|
-
# If the file belongs to a
|
895
|
+
# If the file belongs to a shared drive the user must be an organizer on the
|
606
896
|
# parent. If the target is a folder, all descendants owned by the user are also
|
607
897
|
# deleted.
|
608
898
|
# @param [String] file_id
|
609
899
|
# The ID of the file.
|
900
|
+
# @param [Boolean] supports_all_drives
|
901
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
610
902
|
# @param [Boolean] supports_team_drives
|
611
|
-
#
|
903
|
+
# Deprecated use supportsAllDrives instead.
|
612
904
|
# @param [String] fields
|
613
905
|
# Selector specifying which fields to include in a partial response.
|
614
906
|
# @param [String] quota_user
|
@@ -628,9 +920,10 @@ module Google
|
|
628
920
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
629
921
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
630
922
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
631
|
-
def delete_file(file_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
923
|
+
def delete_file(file_id, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
632
924
|
command = make_simple_command(:delete, 'files/{fileId}', options)
|
633
925
|
command.params['fileId'] = file_id unless file_id.nil?
|
926
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
634
927
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
635
928
|
command.query['fields'] = fields unless fields.nil?
|
636
929
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -751,8 +1044,10 @@ module Google
|
|
751
1044
|
# @param [Boolean] acknowledge_abuse
|
752
1045
|
# Whether the user is acknowledging the risk of downloading known malware or
|
753
1046
|
# other abusive files. This is only applicable when alt=media.
|
1047
|
+
# @param [Boolean] supports_all_drives
|
1048
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
754
1049
|
# @param [Boolean] supports_team_drives
|
755
|
-
#
|
1050
|
+
# Deprecated use supportsAllDrives instead.
|
756
1051
|
# @param [String] fields
|
757
1052
|
# Selector specifying which fields to include in a partial response.
|
758
1053
|
# @param [String] quota_user
|
@@ -774,7 +1069,7 @@ module Google
|
|
774
1069
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
775
1070
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
776
1071
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
777
|
-
def get_file(file_id, acknowledge_abuse: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
1072
|
+
def get_file(file_id, acknowledge_abuse: nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
778
1073
|
if download_dest.nil?
|
779
1074
|
command = make_simple_command(:get, 'files/{fileId}', options)
|
780
1075
|
else
|
@@ -785,6 +1080,7 @@ module Google
|
|
785
1080
|
command.response_class = Google::Apis::DriveV3::File
|
786
1081
|
command.params['fileId'] = file_id unless file_id.nil?
|
787
1082
|
command.query['acknowledgeAbuse'] = acknowledge_abuse unless acknowledge_abuse.nil?
|
1083
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
788
1084
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
789
1085
|
command.query['fields'] = fields unless fields.nil?
|
790
1086
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -794,14 +1090,17 @@ module Google
|
|
794
1090
|
|
795
1091
|
# Lists or searches files.
|
796
1092
|
# @param [String] corpora
|
797
|
-
#
|
798
|
-
#
|
799
|
-
#
|
800
|
-
# in isolation. Prefer 'user' or 'teamDrive' to 'allTeamDrives' for efficiency.
|
1093
|
+
# Bodies of items (files/documents) to which the query applies. Supported bodies
|
1094
|
+
# are 'user', 'domain', 'drive' and 'allDrives'. Prefer 'user' or 'drive' to '
|
1095
|
+
# allDrives' for efficiency.
|
801
1096
|
# @param [String] corpus
|
802
1097
|
# The source of files to list. Deprecated: use 'corpora' instead.
|
1098
|
+
# @param [String] drive_id
|
1099
|
+
# ID of the shared drive to search.
|
1100
|
+
# @param [Boolean] include_items_from_all_drives
|
1101
|
+
# Whether both My Drive and shared drive items should be included in results.
|
803
1102
|
# @param [Boolean] include_team_drive_items
|
804
|
-
#
|
1103
|
+
# Deprecated use includeItemsFromAllDrives instead.
|
805
1104
|
# @param [String] order_by
|
806
1105
|
# A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', '
|
807
1106
|
# modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', '
|
@@ -822,10 +1121,12 @@ module Google
|
|
822
1121
|
# @param [String] spaces
|
823
1122
|
# A comma-separated list of spaces to query within the corpus. Supported values
|
824
1123
|
# are 'drive', 'appDataFolder' and 'photos'.
|
1124
|
+
# @param [Boolean] supports_all_drives
|
1125
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
825
1126
|
# @param [Boolean] supports_team_drives
|
826
|
-
#
|
1127
|
+
# Deprecated use supportsAllDrives instead.
|
827
1128
|
# @param [String] team_drive_id
|
828
|
-
#
|
1129
|
+
# Deprecated use driveId instead.
|
829
1130
|
# @param [String] fields
|
830
1131
|
# Selector specifying which fields to include in a partial response.
|
831
1132
|
# @param [String] quota_user
|
@@ -845,18 +1146,21 @@ module Google
|
|
845
1146
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
846
1147
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
847
1148
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
848
|
-
def list_files(corpora: nil, corpus: nil, include_team_drive_items: nil, order_by: nil, page_size: nil, page_token: nil, q: nil, spaces: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1149
|
+
def list_files(corpora: nil, corpus: nil, drive_id: nil, include_items_from_all_drives: nil, include_team_drive_items: nil, order_by: nil, page_size: nil, page_token: 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)
|
849
1150
|
command = make_simple_command(:get, 'files', options)
|
850
1151
|
command.response_representation = Google::Apis::DriveV3::FileList::Representation
|
851
1152
|
command.response_class = Google::Apis::DriveV3::FileList
|
852
1153
|
command.query['corpora'] = corpora unless corpora.nil?
|
853
1154
|
command.query['corpus'] = corpus unless corpus.nil?
|
1155
|
+
command.query['driveId'] = drive_id unless drive_id.nil?
|
1156
|
+
command.query['includeItemsFromAllDrives'] = include_items_from_all_drives unless include_items_from_all_drives.nil?
|
854
1157
|
command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
|
855
1158
|
command.query['orderBy'] = order_by unless order_by.nil?
|
856
1159
|
command.query['pageSize'] = page_size unless page_size.nil?
|
857
1160
|
command.query['pageToken'] = page_token unless page_token.nil?
|
858
1161
|
command.query['q'] = q unless q.nil?
|
859
1162
|
command.query['spaces'] = spaces unless spaces.nil?
|
1163
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
860
1164
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
861
1165
|
command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
862
1166
|
command.query['fields'] = fields unless fields.nil?
|
@@ -873,13 +1177,15 @@ module Google
|
|
873
1177
|
# A comma-separated list of parent IDs to add.
|
874
1178
|
# @param [Boolean] keep_revision_forever
|
875
1179
|
# Whether to set the 'keepForever' field in the new head revision. This is only
|
876
|
-
# applicable to files with binary content in Drive.
|
1180
|
+
# applicable to files with binary content in Google Drive.
|
877
1181
|
# @param [String] ocr_language
|
878
1182
|
# A language hint for OCR processing during image import (ISO 639-1 code).
|
879
1183
|
# @param [String] remove_parents
|
880
1184
|
# A comma-separated list of parent IDs to remove.
|
1185
|
+
# @param [Boolean] supports_all_drives
|
1186
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
881
1187
|
# @param [Boolean] supports_team_drives
|
882
|
-
#
|
1188
|
+
# Deprecated use supportsAllDrives instead.
|
883
1189
|
# @param [Boolean] use_content_as_indexable_text
|
884
1190
|
# Whether to use the uploaded content as indexable text.
|
885
1191
|
# @param [String] fields
|
@@ -905,7 +1211,7 @@ module Google
|
|
905
1211
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
906
1212
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
907
1213
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
908
|
-
def update_file(file_id, file_object = nil, add_parents: nil, keep_revision_forever: nil, ocr_language: nil, remove_parents: nil, supports_team_drives: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
1214
|
+
def update_file(file_id, file_object = nil, add_parents: nil, keep_revision_forever: nil, ocr_language: nil, remove_parents: nil, supports_all_drives: nil, supports_team_drives: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
909
1215
|
if upload_source.nil?
|
910
1216
|
command = make_simple_command(:patch, 'files/{fileId}', options)
|
911
1217
|
else
|
@@ -922,6 +1228,7 @@ module Google
|
|
922
1228
|
command.query['keepRevisionForever'] = keep_revision_forever unless keep_revision_forever.nil?
|
923
1229
|
command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
|
924
1230
|
command.query['removeParents'] = remove_parents unless remove_parents.nil?
|
1231
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
925
1232
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
926
1233
|
command.query['useContentAsIndexableText'] = use_content_as_indexable_text unless use_content_as_indexable_text.nil?
|
927
1234
|
command.query['fields'] = fields unless fields.nil?
|
@@ -937,8 +1244,10 @@ module Google
|
|
937
1244
|
# @param [Boolean] acknowledge_abuse
|
938
1245
|
# Whether the user is acknowledging the risk of downloading known malware or
|
939
1246
|
# other abusive files. This is only applicable when alt=media.
|
1247
|
+
# @param [Boolean] supports_all_drives
|
1248
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
940
1249
|
# @param [Boolean] supports_team_drives
|
941
|
-
#
|
1250
|
+
# Deprecated use supportsAllDrives instead.
|
942
1251
|
# @param [String] fields
|
943
1252
|
# Selector specifying which fields to include in a partial response.
|
944
1253
|
# @param [String] quota_user
|
@@ -960,7 +1269,7 @@ module Google
|
|
960
1269
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
961
1270
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
962
1271
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
963
|
-
def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
1272
|
+
def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
964
1273
|
if download_dest.nil?
|
965
1274
|
command = make_simple_command(:post, 'files/{fileId}/watch', options)
|
966
1275
|
else
|
@@ -973,6 +1282,7 @@ module Google
|
|
973
1282
|
command.response_class = Google::Apis::DriveV3::Channel
|
974
1283
|
command.params['fileId'] = file_id unless file_id.nil?
|
975
1284
|
command.query['acknowledgeAbuse'] = acknowledge_abuse unless acknowledge_abuse.nil?
|
1285
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
976
1286
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
977
1287
|
command.query['fields'] = fields unless fields.nil?
|
978
1288
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -980,9 +1290,9 @@ module Google
|
|
980
1290
|
execute_or_queue_command(command, &block)
|
981
1291
|
end
|
982
1292
|
|
983
|
-
# Creates a permission for a file or
|
1293
|
+
# Creates a permission for a file or shared drive.
|
984
1294
|
# @param [String] file_id
|
985
|
-
# The ID of the file or
|
1295
|
+
# The ID of the file or shared drive.
|
986
1296
|
# @param [Google::Apis::DriveV3::Permission] permission_object
|
987
1297
|
# @param [String] email_message
|
988
1298
|
# A plain text custom message to include in the notification email.
|
@@ -990,16 +1300,19 @@ module Google
|
|
990
1300
|
# Whether to send a notification email when sharing to users or groups. This
|
991
1301
|
# defaults to true for users and groups, and is not allowed for other requests.
|
992
1302
|
# It must not be disabled for ownership transfers.
|
1303
|
+
# @param [Boolean] supports_all_drives
|
1304
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
993
1305
|
# @param [Boolean] supports_team_drives
|
994
|
-
#
|
1306
|
+
# Deprecated use supportsAllDrives instead.
|
995
1307
|
# @param [Boolean] transfer_ownership
|
996
1308
|
# Whether to transfer ownership to the specified user and downgrade the current
|
997
1309
|
# owner to a writer. This parameter is required as an acknowledgement of the
|
998
1310
|
# side effect.
|
999
1311
|
# @param [Boolean] use_domain_admin_access
|
1000
1312
|
# Issue the request as a domain administrator; if set to true, then the
|
1001
|
-
# requester will be granted access if
|
1002
|
-
# which the
|
1313
|
+
# requester will be granted access if the file ID parameter refers to a shared
|
1314
|
+
# drive and the requester is an administrator of the domain to which the shared
|
1315
|
+
# drive belongs.
|
1003
1316
|
# @param [String] fields
|
1004
1317
|
# Selector specifying which fields to include in a partial response.
|
1005
1318
|
# @param [String] quota_user
|
@@ -1019,7 +1332,7 @@ module Google
|
|
1019
1332
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1020
1333
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1021
1334
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1022
|
-
def create_permission(file_id, permission_object = nil, email_message: nil, send_notification_email: nil, supports_team_drives: nil, transfer_ownership: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1335
|
+
def create_permission(file_id, permission_object = nil, email_message: nil, send_notification_email: 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)
|
1023
1336
|
command = make_simple_command(:post, 'files/{fileId}/permissions', options)
|
1024
1337
|
command.request_representation = Google::Apis::DriveV3::Permission::Representation
|
1025
1338
|
command.request_object = permission_object
|
@@ -1028,6 +1341,7 @@ module Google
|
|
1028
1341
|
command.params['fileId'] = file_id unless file_id.nil?
|
1029
1342
|
command.query['emailMessage'] = email_message unless email_message.nil?
|
1030
1343
|
command.query['sendNotificationEmail'] = send_notification_email unless send_notification_email.nil?
|
1344
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
1031
1345
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
1032
1346
|
command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
|
1033
1347
|
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
@@ -1039,15 +1353,18 @@ module Google
|
|
1039
1353
|
|
1040
1354
|
# Deletes a permission.
|
1041
1355
|
# @param [String] file_id
|
1042
|
-
# The ID of the file or
|
1356
|
+
# The ID of the file or shared drive.
|
1043
1357
|
# @param [String] permission_id
|
1044
1358
|
# The ID of the permission.
|
1359
|
+
# @param [Boolean] supports_all_drives
|
1360
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
1045
1361
|
# @param [Boolean] supports_team_drives
|
1046
|
-
#
|
1362
|
+
# Deprecated use supportsAllDrives instead.
|
1047
1363
|
# @param [Boolean] use_domain_admin_access
|
1048
1364
|
# Issue the request as a domain administrator; if set to true, then the
|
1049
|
-
# requester will be granted access if
|
1050
|
-
# which the
|
1365
|
+
# requester will be granted access if the file ID parameter refers to a shared
|
1366
|
+
# drive and the requester is an administrator of the domain to which the shared
|
1367
|
+
# drive belongs.
|
1051
1368
|
# @param [String] fields
|
1052
1369
|
# Selector specifying which fields to include in a partial response.
|
1053
1370
|
# @param [String] quota_user
|
@@ -1067,10 +1384,11 @@ module Google
|
|
1067
1384
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1068
1385
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1069
1386
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1070
|
-
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)
|
1387
|
+
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)
|
1071
1388
|
command = make_simple_command(:delete, 'files/{fileId}/permissions/{permissionId}', options)
|
1072
1389
|
command.params['fileId'] = file_id unless file_id.nil?
|
1073
1390
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
1391
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
1074
1392
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
1075
1393
|
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
1076
1394
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1084,12 +1402,15 @@ module Google
|
|
1084
1402
|
# The ID of the file.
|
1085
1403
|
# @param [String] permission_id
|
1086
1404
|
# The ID of the permission.
|
1405
|
+
# @param [Boolean] supports_all_drives
|
1406
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
1087
1407
|
# @param [Boolean] supports_team_drives
|
1088
|
-
#
|
1408
|
+
# Deprecated use supportsAllDrives instead.
|
1089
1409
|
# @param [Boolean] use_domain_admin_access
|
1090
1410
|
# Issue the request as a domain administrator; if set to true, then the
|
1091
|
-
# requester will be granted access if
|
1092
|
-
# which the
|
1411
|
+
# requester will be granted access if the file ID parameter refers to a shared
|
1412
|
+
# drive and the requester is an administrator of the domain to which the shared
|
1413
|
+
# drive belongs.
|
1093
1414
|
# @param [String] fields
|
1094
1415
|
# Selector specifying which fields to include in a partial response.
|
1095
1416
|
# @param [String] quota_user
|
@@ -1109,12 +1430,13 @@ module Google
|
|
1109
1430
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1110
1431
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1111
1432
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1112
|
-
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)
|
1433
|
+
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)
|
1113
1434
|
command = make_simple_command(:get, 'files/{fileId}/permissions/{permissionId}', options)
|
1114
1435
|
command.response_representation = Google::Apis::DriveV3::Permission::Representation
|
1115
1436
|
command.response_class = Google::Apis::DriveV3::Permission
|
1116
1437
|
command.params['fileId'] = file_id unless file_id.nil?
|
1117
1438
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
1439
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
1118
1440
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
1119
1441
|
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
1120
1442
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1123,22 +1445,25 @@ module Google
|
|
1123
1445
|
execute_or_queue_command(command, &block)
|
1124
1446
|
end
|
1125
1447
|
|
1126
|
-
# Lists a file's or
|
1448
|
+
# Lists a file's or shared drive's permissions.
|
1127
1449
|
# @param [String] file_id
|
1128
|
-
# The ID of the file or
|
1450
|
+
# The ID of the file or shared drive.
|
1129
1451
|
# @param [Fixnum] page_size
|
1130
1452
|
# The maximum number of permissions to return per page. When not set for files
|
1131
|
-
# in a
|
1132
|
-
# that are not in a
|
1453
|
+
# in a shared drive, at most 100 results will be returned. When not set for
|
1454
|
+
# files that are not in a shared drive, the entire list will be returned.
|
1133
1455
|
# @param [String] page_token
|
1134
1456
|
# The token for continuing a previous list request on the next page. This should
|
1135
1457
|
# be set to the value of 'nextPageToken' from the previous response.
|
1458
|
+
# @param [Boolean] supports_all_drives
|
1459
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
1136
1460
|
# @param [Boolean] supports_team_drives
|
1137
|
-
#
|
1461
|
+
# Deprecated use supportsAllDrives instead.
|
1138
1462
|
# @param [Boolean] use_domain_admin_access
|
1139
1463
|
# Issue the request as a domain administrator; if set to true, then the
|
1140
|
-
# requester will be granted access if
|
1141
|
-
# which the
|
1464
|
+
# requester will be granted access if the file ID parameter refers to a shared
|
1465
|
+
# drive and the requester is an administrator of the domain to which the shared
|
1466
|
+
# drive belongs.
|
1142
1467
|
# @param [String] fields
|
1143
1468
|
# Selector specifying which fields to include in a partial response.
|
1144
1469
|
# @param [String] quota_user
|
@@ -1158,13 +1483,14 @@ module Google
|
|
1158
1483
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1159
1484
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1160
1485
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1161
|
-
def list_permissions(file_id, page_size: nil, page_token: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1486
|
+
def list_permissions(file_id, page_size: 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)
|
1162
1487
|
command = make_simple_command(:get, 'files/{fileId}/permissions', options)
|
1163
1488
|
command.response_representation = Google::Apis::DriveV3::PermissionList::Representation
|
1164
1489
|
command.response_class = Google::Apis::DriveV3::PermissionList
|
1165
1490
|
command.params['fileId'] = file_id unless file_id.nil?
|
1166
1491
|
command.query['pageSize'] = page_size unless page_size.nil?
|
1167
1492
|
command.query['pageToken'] = page_token unless page_token.nil?
|
1493
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
1168
1494
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
1169
1495
|
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
1170
1496
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1175,22 +1501,25 @@ module Google
|
|
1175
1501
|
|
1176
1502
|
# Updates a permission with patch semantics.
|
1177
1503
|
# @param [String] file_id
|
1178
|
-
# The ID of the file or
|
1504
|
+
# The ID of the file or shared drive.
|
1179
1505
|
# @param [String] permission_id
|
1180
1506
|
# The ID of the permission.
|
1181
1507
|
# @param [Google::Apis::DriveV3::Permission] permission_object
|
1182
1508
|
# @param [Boolean] remove_expiration
|
1183
1509
|
# Whether to remove the expiration date.
|
1510
|
+
# @param [Boolean] supports_all_drives
|
1511
|
+
# Whether the requesting application supports both My Drives and shared drives.
|
1184
1512
|
# @param [Boolean] supports_team_drives
|
1185
|
-
#
|
1513
|
+
# Deprecated use supportsAllDrives instead.
|
1186
1514
|
# @param [Boolean] transfer_ownership
|
1187
1515
|
# Whether to transfer ownership to the specified user and downgrade the current
|
1188
1516
|
# owner to a writer. This parameter is required as an acknowledgement of the
|
1189
1517
|
# side effect.
|
1190
1518
|
# @param [Boolean] use_domain_admin_access
|
1191
1519
|
# Issue the request as a domain administrator; if set to true, then the
|
1192
|
-
# requester will be granted access if
|
1193
|
-
# which the
|
1520
|
+
# requester will be granted access if the file ID parameter refers to a shared
|
1521
|
+
# drive and the requester is an administrator of the domain to which the shared
|
1522
|
+
# drive belongs.
|
1194
1523
|
# @param [String] fields
|
1195
1524
|
# Selector specifying which fields to include in a partial response.
|
1196
1525
|
# @param [String] quota_user
|
@@ -1210,7 +1539,7 @@ module Google
|
|
1210
1539
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1211
1540
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1212
1541
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1213
|
-
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)
|
1542
|
+
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)
|
1214
1543
|
command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options)
|
1215
1544
|
command.request_representation = Google::Apis::DriveV3::Permission::Representation
|
1216
1545
|
command.request_object = permission_object
|
@@ -1219,6 +1548,7 @@ module Google
|
|
1219
1548
|
command.params['fileId'] = file_id unless file_id.nil?
|
1220
1549
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
1221
1550
|
command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
|
1551
|
+
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
1222
1552
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
1223
1553
|
command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
|
1224
1554
|
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
@@ -1437,8 +1767,9 @@ module Google
|
|
1437
1767
|
end
|
1438
1768
|
|
1439
1769
|
# Permanently deletes a file version. You can only delete revisions for files
|
1440
|
-
# with binary content, like images or videos. Revisions for
|
1441
|
-
# Google Docs or Sheets, and the last remaining file version
|
1770
|
+
# with binary content in Google Drive, like images or videos. Revisions for
|
1771
|
+
# other files, like Google Docs or Sheets, and the last remaining file version
|
1772
|
+
# can't be deleted.
|
1442
1773
|
# @param [String] file_id
|
1443
1774
|
# The ID of the file.
|
1444
1775
|
# @param [String] revision_id
|
@@ -1598,7 +1929,7 @@ module Google
|
|
1598
1929
|
execute_or_queue_command(command, &block)
|
1599
1930
|
end
|
1600
1931
|
|
1601
|
-
#
|
1932
|
+
# Deprecated use drives.create instead.
|
1602
1933
|
# @param [String] request_id
|
1603
1934
|
# An ID, such as a random UUID, which uniquely identifies this user's request
|
1604
1935
|
# for idempotent creation of a Team Drive. A repeated request by the same user
|
@@ -1638,8 +1969,7 @@ module Google
|
|
1638
1969
|
execute_or_queue_command(command, &block)
|
1639
1970
|
end
|
1640
1971
|
|
1641
|
-
#
|
1642
|
-
# Drive cannot contain any untrashed items.
|
1972
|
+
# Deprecated use drives.delete instead.
|
1643
1973
|
# @param [String] team_drive_id
|
1644
1974
|
# The ID of the Team Drive
|
1645
1975
|
# @param [String] fields
|
@@ -1670,7 +2000,7 @@ module Google
|
|
1670
2000
|
execute_or_queue_command(command, &block)
|
1671
2001
|
end
|
1672
2002
|
|
1673
|
-
#
|
2003
|
+
# Deprecated use drives.get instead.
|
1674
2004
|
# @param [String] team_drive_id
|
1675
2005
|
# The ID of the Team Drive
|
1676
2006
|
# @param [Boolean] use_domain_admin_access
|
@@ -1708,7 +2038,7 @@ module Google
|
|
1708
2038
|
execute_or_queue_command(command, &block)
|
1709
2039
|
end
|
1710
2040
|
|
1711
|
-
#
|
2041
|
+
# Deprecated use drives.list instead.
|
1712
2042
|
# @param [Fixnum] page_size
|
1713
2043
|
# Maximum number of Team Drives to return.
|
1714
2044
|
# @param [String] page_token
|
@@ -1751,7 +2081,7 @@ module Google
|
|
1751
2081
|
execute_or_queue_command(command, &block)
|
1752
2082
|
end
|
1753
2083
|
|
1754
|
-
#
|
2084
|
+
# Deprecated use drives.update instead
|
1755
2085
|
# @param [String] team_drive_id
|
1756
2086
|
# The ID of the Team Drive
|
1757
2087
|
# @param [Google::Apis::DriveV3::TeamDrive] team_drive_object
|