google-api-client 0.28.7 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.kokoro/build.bat +9 -6
- data/.kokoro/build.sh +2 -32
- data/.kokoro/continuous/common.cfg +6 -1
- data/.kokoro/continuous/windows.cfg +17 -1
- data/.kokoro/osx.sh +2 -33
- data/.kokoro/presubmit/common.cfg +6 -1
- data/.kokoro/presubmit/windows.cfg +17 -1
- data/.kokoro/trampoline.bat +10 -0
- data/.kokoro/trampoline.sh +3 -23
- data/CHANGELOG.md +138 -0
- data/Rakefile +31 -0
- data/generated/google/apis/accessapproval_v1beta1.rb +34 -0
- data/generated/google/apis/accessapproval_v1beta1/classes.rb +306 -0
- data/generated/google/apis/accessapproval_v1beta1/representations.rb +159 -0
- data/generated/google/apis/accessapproval_v1beta1/service.rb +728 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +96 -131
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +2 -42
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +98 -0
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +25 -0
- data/generated/google/apis/alertcenter_v1beta1/service.rb +2 -1
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +40 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +6 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +0 -26
- data/generated/google/apis/androidenterprise_v1/representations.rb +0 -14
- data/generated/google/apis/androidenterprise_v1/service.rb +0 -36
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +188 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +82 -0
- data/generated/google/apis/androidmanagement_v1/service.rb +170 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/service.rb +6 -12
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/service.rb +6 -12
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/service.rb +7 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +2 -1
- data/generated/google/apis/appengine_v1beta/service.rb +7 -1
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +4 -3
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +28 -4
- data/generated/google/apis/bigquery_v2/representations.rb +13 -0
- data/generated/google/apis/bigtableadmin_v1.rb +2 -2
- data/generated/google/apis/bigtableadmin_v1/service.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2.rb +2 -2
- data/generated/google/apis/bigtableadmin_v2/classes.rb +10 -10
- data/generated/google/apis/bigtableadmin_v2/service.rb +111 -2
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +16 -16
- data/generated/google/apis/classroom_v1.rb +7 -1
- data/generated/google/apis/classroom_v1/classes.rb +77 -0
- data/generated/google/apis/classroom_v1/representations.rb +32 -0
- data/generated/google/apis/classroom_v1/service.rb +224 -0
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +15 -2
- data/generated/google/apis/cloudasset_v1/representations.rb +1 -0
- data/generated/google/apis/cloudasset_v1/service.rb +3 -2
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +13 -0
- data/generated/google/apis/cloudasset_v1beta1/representations.rb +1 -0
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/service.rb +2 -2
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +19 -16
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +6 -5
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -10
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -4
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +6 -5
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +30 -21
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +37 -26
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1.rb +34 -0
- data/generated/google/apis/cloudscheduler_v1/classes.rb +994 -0
- data/generated/google/apis/cloudscheduler_v1/representations.rb +297 -0
- data/generated/google/apis/cloudscheduler_v1/service.rb +448 -0
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -2
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +25 -11
- data/generated/google/apis/cloudsearch_v1/service.rb +36 -32
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/service.rb +13 -13
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +13 -13
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/service.rb +13 -13
- data/generated/google/apis/commentanalyzer_v1alpha1.rb +39 -0
- data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +484 -0
- data/generated/google/apis/commentanalyzer_v1alpha1/representations.rb +210 -0
- data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +124 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +328 -25
- data/generated/google/apis/compute_alpha/representations.rb +134 -0
- data/generated/google/apis/compute_alpha/service.rb +465 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +86 -20
- data/generated/google/apis/compute_beta/representations.rb +7 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +994 -103
- data/generated/google/apis/compute_v1/representations.rb +346 -0
- data/generated/google/apis/compute_v1/service.rb +533 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +167 -21
- data/generated/google/apis/container_v1/representations.rb +66 -0
- data/generated/google/apis/container_v1/service.rb +85 -36
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +86 -21
- data/generated/google/apis/container_v1beta1/representations.rb +32 -0
- data/generated/google/apis/container_v1beta1/service.rb +38 -38
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +95 -6
- data/generated/google/apis/containeranalysis_v1beta1/representations.rb +25 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +5 -5
- data/generated/google/apis/content_v2/service.rb +6 -6
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +18 -4
- data/generated/google/apis/content_v2_1/representations.rb +2 -0
- data/generated/google/apis/content_v2_1/service.rb +6 -6
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +56 -1
- data/generated/google/apis/dataflow_v1b3/representations.rb +39 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +251 -0
- data/generated/google/apis/datafusion_v1beta1.rb +43 -0
- data/generated/google/apis/datafusion_v1beta1/classes.rb +1304 -0
- data/generated/google/apis/datafusion_v1beta1/representations.rb +469 -0
- data/generated/google/apis/datafusion_v1beta1/service.rb +657 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +5 -5
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +37 -24
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +20 -16
- data/generated/google/apis/datastore_v1beta1.rb +1 -1
- data/generated/google/apis/datastore_v1beta1/classes.rb +10 -10
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +10 -6
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +236 -0
- data/generated/google/apis/dialogflow_v2/representations.rb +99 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +64 -2
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +31 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +19 -2
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +202 -93
- data/generated/google/apis/dns_v1/service.rb +110 -15
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +262 -122
- data/generated/google/apis/dns_v1beta2/service.rb +141 -21
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +202 -93
- data/generated/google/apis/dns_v2beta1/service.rb +110 -15
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +10 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +601 -69
- data/generated/google/apis/drive_v2/representations.rb +152 -0
- data/generated/google/apis/drive_v2/service.rb +452 -96
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +591 -64
- data/generated/google/apis/drive_v3/representations.rb +151 -0
- data/generated/google/apis/drive_v3/service.rb +407 -77
- data/generated/google/apis/driveactivity_v2.rb +1 -1
- data/generated/google/apis/driveactivity_v2/classes.rb +149 -17
- data/generated/google/apis/driveactivity_v2/representations.rb +69 -0
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +399 -8
- data/generated/google/apis/file_v1/representations.rb +121 -0
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +399 -8
- data/generated/google/apis/file_v1beta1/representations.rb +121 -0
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +28 -4
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +4 -0
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +13 -13
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +10 -2
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +15 -15
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +15 -15
- data/generated/google/apis/firestore_v1beta2.rb +1 -1
- data/generated/google/apis/firestore_v1beta2/classes.rb +10 -10
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +1 -1
- data/generated/google/apis/games_v1.rb +2 -2
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +29 -0
- data/generated/google/apis/gmail_v1/representations.rb +13 -0
- data/generated/google/apis/gmail_v1/service.rb +76 -0
- data/generated/google/apis/healthcare_v1beta1.rb +34 -0
- data/generated/google/apis/healthcare_v1beta1/classes.rb +2462 -0
- data/generated/google/apis/healthcare_v1beta1/representations.rb +1042 -0
- data/generated/google/apis/healthcare_v1beta1/service.rb +3403 -0
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +9 -8
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +13 -7
- data/generated/google/apis/jobs_v3/service.rb +1 -2
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +13 -7
- data/generated/google/apis/jobs_v3p1beta1/service.rb +1 -2
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +3 -2
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/language_v1beta2/classes.rb +3 -2
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +64 -16
- data/generated/google/apis/ml_v1/representations.rb +2 -0
- data/generated/google/apis/ml_v1/service.rb +5 -5
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +0 -10
- data/generated/google/apis/monitoring_v3/representations.rb +0 -1
- data/generated/google/apis/oauth2_v1.rb +1 -1
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oslogin_v1.rb +3 -2
- data/generated/google/apis/oslogin_v1/service.rb +2 -1
- data/generated/google/apis/oslogin_v1alpha.rb +3 -2
- data/generated/google/apis/oslogin_v1alpha/service.rb +2 -1
- data/generated/google/apis/oslogin_v1beta.rb +3 -2
- data/generated/google/apis/oslogin_v1beta/service.rb +2 -1
- data/generated/google/apis/people_v1.rb +1 -4
- data/generated/google/apis/people_v1/classes.rb +19 -11
- data/generated/google/apis/people_v1/representations.rb +1 -0
- data/generated/google/apis/people_v1/service.rb +1 -0
- data/generated/google/apis/plus_domains_v1.rb +2 -5
- data/generated/google/apis/plus_domains_v1/service.rb +8 -90
- data/generated/google/apis/plus_v1.rb +2 -2
- data/generated/google/apis/plus_v1/service.rb +7 -7
- data/generated/google/apis/poly_v1.rb +1 -1
- data/generated/google/apis/poly_v1/classes.rb +3 -2
- data/generated/google/apis/poly_v1/service.rb +11 -8
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +2 -1
- data/generated/google/apis/pubsub_v1/service.rb +8 -8
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +7 -6
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +5 -4
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +5 -4
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1.rb +35 -0
- data/generated/google/apis/securitycenter_v1/classes.rb +1627 -0
- data/generated/google/apis/securitycenter_v1/representations.rb +569 -0
- data/generated/google/apis/securitycenter_v1/service.rb +1110 -0
- data/generated/google/apis/securitycenter_v1beta1.rb +35 -0
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +1514 -0
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +548 -0
- data/generated/google/apis/securitycenter_v1beta1/service.rb +1035 -0
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +324 -13
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +174 -0
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +5 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +2 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +101 -20
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +16 -13
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +16 -13
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +110 -13
- data/generated/google/apis/serviceusage_v1/representations.rb +43 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +110 -13
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +43 -0
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +182 -0
- data/generated/google/apis/sourcerepo_v1/representations.rb +45 -0
- data/generated/google/apis/sourcerepo_v1/service.rb +35 -0
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +20 -19
- data/generated/google/apis/spanner_v1/service.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +9 -2
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +144 -0
- data/generated/google/apis/storage_v1/representations.rb +56 -0
- data/generated/google/apis/storage_v1/service.rb +441 -46
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +3 -3
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +6 -0
- data/generated/google/apis/testing_v1/representations.rb +1 -0
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +240 -0
- data/generated/google/apis/toolresults_v1beta3/representations.rb +43 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +116 -0
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +10 -4
- data/generated/google/apis/tpu_v1/representations.rb +1 -0
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +10 -4
- data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +37 -18
- data/generated/google/apis/vault_v1/representations.rb +3 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +84 -47
- data/generated/google/apis/vision_v1/service.rb +68 -4
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +84 -47
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +84 -47
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/webmasters_v3/classes.rb +0 -166
- data/generated/google/apis/webmasters_v3/representations.rb +0 -93
- data/generated/google/apis/webmasters_v3/service.rb +0 -171
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +15 -34
- data/generated/google/apis/youtube_partner_v1/representations.rb +4 -17
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +2 -2
- data/google-api-client.gemspec +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +31 -9
- data/.kokoro/common.cfg +0 -22
- data/.kokoro/windows.sh +0 -32
- data/generated/google/apis/logging_v2beta1.rb +0 -46
- data/generated/google/apis/logging_v2beta1/classes.rb +0 -1764
- data/generated/google/apis/logging_v2beta1/representations.rb +0 -537
- data/generated/google/apis/logging_v2beta1/service.rb +0 -570
|
@@ -51,11 +51,16 @@ module Google
|
|
|
51
51
|
@batch_path = 'batch/dns/v2beta1'
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
-
#
|
|
54
|
+
# Atomically update the ResourceRecordSet collection.
|
|
55
55
|
# @param [String] project
|
|
56
|
+
# Identifies the project addressed by this request.
|
|
56
57
|
# @param [String] managed_zone
|
|
58
|
+
# Identifies the managed zone addressed by this request. Can be the managed zone
|
|
59
|
+
# name or id.
|
|
57
60
|
# @param [Google::Apis::DnsV2beta1::Change] change_object
|
|
58
61
|
# @param [String] client_operation_id
|
|
62
|
+
# For mutating operation requests only. An optional identifier specified by the
|
|
63
|
+
# client. Must be unique for operation resources in the Operations collection.
|
|
59
64
|
# @param [String] fields
|
|
60
65
|
# Selector specifying which fields to include in a partial response.
|
|
61
66
|
# @param [String] quota_user
|
|
@@ -90,11 +95,18 @@ module Google
|
|
|
90
95
|
execute_or_queue_command(command, &block)
|
|
91
96
|
end
|
|
92
97
|
|
|
93
|
-
#
|
|
98
|
+
# Fetch the representation of an existing Change.
|
|
94
99
|
# @param [String] project
|
|
100
|
+
# Identifies the project addressed by this request.
|
|
95
101
|
# @param [String] managed_zone
|
|
102
|
+
# Identifies the managed zone addressed by this request. Can be the managed zone
|
|
103
|
+
# name or id.
|
|
96
104
|
# @param [String] change_id
|
|
105
|
+
# The identifier of the requested change, from a previous
|
|
106
|
+
# ResourceRecordSetsChangeResponse.
|
|
97
107
|
# @param [String] client_operation_id
|
|
108
|
+
# For mutating operation requests only. An optional identifier specified by the
|
|
109
|
+
# client. Must be unique for operation resources in the Operations collection.
|
|
98
110
|
# @param [String] fields
|
|
99
111
|
# Selector specifying which fields to include in a partial response.
|
|
100
112
|
# @param [String] quota_user
|
|
@@ -128,13 +140,22 @@ module Google
|
|
|
128
140
|
execute_or_queue_command(command, &block)
|
|
129
141
|
end
|
|
130
142
|
|
|
131
|
-
#
|
|
143
|
+
# Enumerate Changes to a ResourceRecordSet collection.
|
|
132
144
|
# @param [String] project
|
|
145
|
+
# Identifies the project addressed by this request.
|
|
133
146
|
# @param [String] managed_zone
|
|
147
|
+
# Identifies the managed zone addressed by this request. Can be the managed zone
|
|
148
|
+
# name or id.
|
|
134
149
|
# @param [Fixnum] max_results
|
|
150
|
+
# Optional. Maximum number of results to be returned. If unspecified, the server
|
|
151
|
+
# will decide how many results to return.
|
|
135
152
|
# @param [String] page_token
|
|
153
|
+
# Optional. A tag returned by a previous list request that was truncated. Use
|
|
154
|
+
# this parameter to continue a previous list request.
|
|
136
155
|
# @param [String] sort_by
|
|
156
|
+
# Sorting criterion. The only supported value is change sequence.
|
|
137
157
|
# @param [String] sort_order
|
|
158
|
+
# Sorting order direction: 'ascending' or 'descending'.
|
|
138
159
|
# @param [String] fields
|
|
139
160
|
# Selector specifying which fields to include in a partial response.
|
|
140
161
|
# @param [String] quota_user
|
|
@@ -170,12 +191,21 @@ module Google
|
|
|
170
191
|
execute_or_queue_command(command, &block)
|
|
171
192
|
end
|
|
172
193
|
|
|
173
|
-
#
|
|
194
|
+
# Fetch the representation of an existing DnsKey.
|
|
174
195
|
# @param [String] project
|
|
196
|
+
# Identifies the project addressed by this request.
|
|
175
197
|
# @param [String] managed_zone
|
|
198
|
+
# Identifies the managed zone addressed by this request. Can be the managed zone
|
|
199
|
+
# name or id.
|
|
176
200
|
# @param [String] dns_key_id
|
|
201
|
+
# The identifier of the requested DnsKey.
|
|
177
202
|
# @param [String] client_operation_id
|
|
203
|
+
# For mutating operation requests only. An optional identifier specified by the
|
|
204
|
+
# client. Must be unique for operation resources in the Operations collection.
|
|
178
205
|
# @param [String] digest_type
|
|
206
|
+
# An optional comma-separated list of digest types to compute and display for
|
|
207
|
+
# key signing keys. If omitted, the recommended digest type will be computed and
|
|
208
|
+
# displayed.
|
|
179
209
|
# @param [String] fields
|
|
180
210
|
# Selector specifying which fields to include in a partial response.
|
|
181
211
|
# @param [String] quota_user
|
|
@@ -210,12 +240,22 @@ module Google
|
|
|
210
240
|
execute_or_queue_command(command, &block)
|
|
211
241
|
end
|
|
212
242
|
|
|
213
|
-
#
|
|
243
|
+
# Enumerate DnsKeys to a ResourceRecordSet collection.
|
|
214
244
|
# @param [String] project
|
|
245
|
+
# Identifies the project addressed by this request.
|
|
215
246
|
# @param [String] managed_zone
|
|
247
|
+
# Identifies the managed zone addressed by this request. Can be the managed zone
|
|
248
|
+
# name or id.
|
|
216
249
|
# @param [String] digest_type
|
|
250
|
+
# An optional comma-separated list of digest types to compute and display for
|
|
251
|
+
# key signing keys. If omitted, the recommended digest type will be computed and
|
|
252
|
+
# displayed.
|
|
217
253
|
# @param [Fixnum] max_results
|
|
254
|
+
# Optional. Maximum number of results to be returned. If unspecified, the server
|
|
255
|
+
# will decide how many results to return.
|
|
218
256
|
# @param [String] page_token
|
|
257
|
+
# Optional. A tag returned by a previous list request that was truncated. Use
|
|
258
|
+
# this parameter to continue a previous list request.
|
|
219
259
|
# @param [String] fields
|
|
220
260
|
# Selector specifying which fields to include in a partial response.
|
|
221
261
|
# @param [String] quota_user
|
|
@@ -250,11 +290,16 @@ module Google
|
|
|
250
290
|
execute_or_queue_command(command, &block)
|
|
251
291
|
end
|
|
252
292
|
|
|
253
|
-
#
|
|
293
|
+
# Fetch the representation of an existing Operation.
|
|
254
294
|
# @param [String] project
|
|
295
|
+
# Identifies the project addressed by this request.
|
|
255
296
|
# @param [String] managed_zone
|
|
297
|
+
# Identifies the managed zone addressed by this request.
|
|
256
298
|
# @param [String] operation
|
|
299
|
+
# Identifies the operation addressed by this request.
|
|
257
300
|
# @param [String] client_operation_id
|
|
301
|
+
# For mutating operation requests only. An optional identifier specified by the
|
|
302
|
+
# client. Must be unique for operation resources in the Operations collection.
|
|
258
303
|
# @param [String] fields
|
|
259
304
|
# Selector specifying which fields to include in a partial response.
|
|
260
305
|
# @param [String] quota_user
|
|
@@ -288,12 +333,19 @@ module Google
|
|
|
288
333
|
execute_or_queue_command(command, &block)
|
|
289
334
|
end
|
|
290
335
|
|
|
291
|
-
#
|
|
336
|
+
# Enumerate Operations for the given ManagedZone.
|
|
292
337
|
# @param [String] project
|
|
338
|
+
# Identifies the project addressed by this request.
|
|
293
339
|
# @param [String] managed_zone
|
|
340
|
+
# Identifies the managed zone addressed by this request.
|
|
294
341
|
# @param [Fixnum] max_results
|
|
342
|
+
# Optional. Maximum number of results to be returned. If unspecified, the server
|
|
343
|
+
# will decide how many results to return.
|
|
295
344
|
# @param [String] page_token
|
|
345
|
+
# Optional. A tag returned by a previous list request that was truncated. Use
|
|
346
|
+
# this parameter to continue a previous list request.
|
|
296
347
|
# @param [String] sort_by
|
|
348
|
+
# Sorting criterion. The only supported values are START_TIME and ID.
|
|
297
349
|
# @param [String] fields
|
|
298
350
|
# Selector specifying which fields to include in a partial response.
|
|
299
351
|
# @param [String] quota_user
|
|
@@ -328,10 +380,13 @@ module Google
|
|
|
328
380
|
execute_or_queue_command(command, &block)
|
|
329
381
|
end
|
|
330
382
|
|
|
331
|
-
#
|
|
383
|
+
# Create a new ManagedZone.
|
|
332
384
|
# @param [String] project
|
|
385
|
+
# Identifies the project addressed by this request.
|
|
333
386
|
# @param [Google::Apis::DnsV2beta1::ManagedZone] managed_zone_object
|
|
334
387
|
# @param [String] client_operation_id
|
|
388
|
+
# For mutating operation requests only. An optional identifier specified by the
|
|
389
|
+
# client. Must be unique for operation resources in the Operations collection.
|
|
335
390
|
# @param [String] fields
|
|
336
391
|
# Selector specifying which fields to include in a partial response.
|
|
337
392
|
# @param [String] quota_user
|
|
@@ -365,10 +420,15 @@ module Google
|
|
|
365
420
|
execute_or_queue_command(command, &block)
|
|
366
421
|
end
|
|
367
422
|
|
|
368
|
-
#
|
|
423
|
+
# Delete a previously created ManagedZone.
|
|
369
424
|
# @param [String] project
|
|
425
|
+
# Identifies the project addressed by this request.
|
|
370
426
|
# @param [String] managed_zone
|
|
427
|
+
# Identifies the managed zone addressed by this request. Can be the managed zone
|
|
428
|
+
# name or id.
|
|
371
429
|
# @param [String] client_operation_id
|
|
430
|
+
# For mutating operation requests only. An optional identifier specified by the
|
|
431
|
+
# client. Must be unique for operation resources in the Operations collection.
|
|
372
432
|
# @param [String] fields
|
|
373
433
|
# Selector specifying which fields to include in a partial response.
|
|
374
434
|
# @param [String] quota_user
|
|
@@ -399,10 +459,15 @@ module Google
|
|
|
399
459
|
execute_or_queue_command(command, &block)
|
|
400
460
|
end
|
|
401
461
|
|
|
402
|
-
#
|
|
462
|
+
# Fetch the representation of an existing ManagedZone.
|
|
403
463
|
# @param [String] project
|
|
464
|
+
# Identifies the project addressed by this request.
|
|
404
465
|
# @param [String] managed_zone
|
|
466
|
+
# Identifies the managed zone addressed by this request. Can be the managed zone
|
|
467
|
+
# name or id.
|
|
405
468
|
# @param [String] client_operation_id
|
|
469
|
+
# For mutating operation requests only. An optional identifier specified by the
|
|
470
|
+
# client. Must be unique for operation resources in the Operations collection.
|
|
406
471
|
# @param [String] fields
|
|
407
472
|
# Selector specifying which fields to include in a partial response.
|
|
408
473
|
# @param [String] quota_user
|
|
@@ -435,11 +500,17 @@ module Google
|
|
|
435
500
|
execute_or_queue_command(command, &block)
|
|
436
501
|
end
|
|
437
502
|
|
|
438
|
-
#
|
|
503
|
+
# Enumerate ManagedZones that have been created but not yet deleted.
|
|
439
504
|
# @param [String] project
|
|
505
|
+
# Identifies the project addressed by this request.
|
|
440
506
|
# @param [String] dns_name
|
|
507
|
+
# Restricts the list to return only zones with this domain name.
|
|
441
508
|
# @param [Fixnum] max_results
|
|
509
|
+
# Optional. Maximum number of results to be returned. If unspecified, the server
|
|
510
|
+
# will decide how many results to return.
|
|
442
511
|
# @param [String] page_token
|
|
512
|
+
# Optional. A tag returned by a previous list request that was truncated. Use
|
|
513
|
+
# this parameter to continue a previous list request.
|
|
443
514
|
# @param [String] fields
|
|
444
515
|
# Selector specifying which fields to include in a partial response.
|
|
445
516
|
# @param [String] quota_user
|
|
@@ -473,11 +544,16 @@ module Google
|
|
|
473
544
|
execute_or_queue_command(command, &block)
|
|
474
545
|
end
|
|
475
546
|
|
|
476
|
-
#
|
|
547
|
+
# Apply a partial update to an existing ManagedZone.
|
|
477
548
|
# @param [String] project
|
|
549
|
+
# Identifies the project addressed by this request.
|
|
478
550
|
# @param [String] managed_zone
|
|
551
|
+
# Identifies the managed zone addressed by this request. Can be the managed zone
|
|
552
|
+
# name or id.
|
|
479
553
|
# @param [Google::Apis::DnsV2beta1::ManagedZone] managed_zone_object
|
|
480
554
|
# @param [String] client_operation_id
|
|
555
|
+
# For mutating operation requests only. An optional identifier specified by the
|
|
556
|
+
# client. Must be unique for operation resources in the Operations collection.
|
|
481
557
|
# @param [String] fields
|
|
482
558
|
# Selector specifying which fields to include in a partial response.
|
|
483
559
|
# @param [String] quota_user
|
|
@@ -512,11 +588,16 @@ module Google
|
|
|
512
588
|
execute_or_queue_command(command, &block)
|
|
513
589
|
end
|
|
514
590
|
|
|
515
|
-
#
|
|
591
|
+
# Update an existing ManagedZone.
|
|
516
592
|
# @param [String] project
|
|
593
|
+
# Identifies the project addressed by this request.
|
|
517
594
|
# @param [String] managed_zone
|
|
595
|
+
# Identifies the managed zone addressed by this request. Can be the managed zone
|
|
596
|
+
# name or id.
|
|
518
597
|
# @param [Google::Apis::DnsV2beta1::ManagedZone] managed_zone_object
|
|
519
598
|
# @param [String] client_operation_id
|
|
599
|
+
# For mutating operation requests only. An optional identifier specified by the
|
|
600
|
+
# client. Must be unique for operation resources in the Operations collection.
|
|
520
601
|
# @param [String] fields
|
|
521
602
|
# Selector specifying which fields to include in a partial response.
|
|
522
603
|
# @param [String] quota_user
|
|
@@ -551,9 +632,12 @@ module Google
|
|
|
551
632
|
execute_or_queue_command(command, &block)
|
|
552
633
|
end
|
|
553
634
|
|
|
554
|
-
#
|
|
635
|
+
# Fetch the representation of an existing Project.
|
|
555
636
|
# @param [String] project
|
|
637
|
+
# Identifies the project addressed by this request.
|
|
556
638
|
# @param [String] client_operation_id
|
|
639
|
+
# For mutating operation requests only. An optional identifier specified by the
|
|
640
|
+
# client. Must be unique for operation resources in the Operations collection.
|
|
557
641
|
# @param [String] fields
|
|
558
642
|
# Selector specifying which fields to include in a partial response.
|
|
559
643
|
# @param [String] quota_user
|
|
@@ -585,13 +669,24 @@ module Google
|
|
|
585
669
|
execute_or_queue_command(command, &block)
|
|
586
670
|
end
|
|
587
671
|
|
|
588
|
-
#
|
|
672
|
+
# Enumerate ResourceRecordSets that have been created but not yet deleted.
|
|
589
673
|
# @param [String] project
|
|
674
|
+
# Identifies the project addressed by this request.
|
|
590
675
|
# @param [String] managed_zone
|
|
676
|
+
# Identifies the managed zone addressed by this request. Can be the managed zone
|
|
677
|
+
# name or id.
|
|
591
678
|
# @param [Fixnum] max_results
|
|
679
|
+
# Optional. Maximum number of results to be returned. If unspecified, the server
|
|
680
|
+
# will decide how many results to return.
|
|
592
681
|
# @param [String] name
|
|
682
|
+
# Restricts the list to return only records with this fully qualified domain
|
|
683
|
+
# name.
|
|
593
684
|
# @param [String] page_token
|
|
685
|
+
# Optional. A tag returned by a previous list request that was truncated. Use
|
|
686
|
+
# this parameter to continue a previous list request.
|
|
594
687
|
# @param [String] type
|
|
688
|
+
# Restricts the list to return only records of this type. If present, the "name"
|
|
689
|
+
# parameter must also be present.
|
|
595
690
|
# @param [String] fields
|
|
596
691
|
# Selector specifying which fields to include in a partial response.
|
|
597
692
|
# @param [String] quota_user
|
|
@@ -4574,6 +4574,8 @@ module Google
|
|
|
4574
4574
|
end
|
|
4575
4575
|
|
|
4576
4576
|
# A border around a table cell.
|
|
4577
|
+
# Table cell borders cannot be transparent. To hide a table cell border, make
|
|
4578
|
+
# its width 0.
|
|
4577
4579
|
class TableCellBorder
|
|
4578
4580
|
include Google::Apis::Core::Hashable
|
|
4579
4581
|
|
|
@@ -4649,21 +4651,29 @@ module Google
|
|
|
4649
4651
|
attr_accessor :background_color
|
|
4650
4652
|
|
|
4651
4653
|
# A border around a table cell.
|
|
4654
|
+
# Table cell borders cannot be transparent. To hide a table cell border, make
|
|
4655
|
+
# its width 0.
|
|
4652
4656
|
# Corresponds to the JSON property `borderBottom`
|
|
4653
4657
|
# @return [Google::Apis::DocsV1::TableCellBorder]
|
|
4654
4658
|
attr_accessor :border_bottom
|
|
4655
4659
|
|
|
4656
4660
|
# A border around a table cell.
|
|
4661
|
+
# Table cell borders cannot be transparent. To hide a table cell border, make
|
|
4662
|
+
# its width 0.
|
|
4657
4663
|
# Corresponds to the JSON property `borderLeft`
|
|
4658
4664
|
# @return [Google::Apis::DocsV1::TableCellBorder]
|
|
4659
4665
|
attr_accessor :border_left
|
|
4660
4666
|
|
|
4661
4667
|
# A border around a table cell.
|
|
4668
|
+
# Table cell borders cannot be transparent. To hide a table cell border, make
|
|
4669
|
+
# its width 0.
|
|
4662
4670
|
# Corresponds to the JSON property `borderRight`
|
|
4663
4671
|
# @return [Google::Apis::DocsV1::TableCellBorder]
|
|
4664
4672
|
attr_accessor :border_right
|
|
4665
4673
|
|
|
4666
4674
|
# A border around a table cell.
|
|
4675
|
+
# Table cell borders cannot be transparent. To hide a table cell border, make
|
|
4676
|
+
# its width 0.
|
|
4667
4677
|
# Corresponds to the JSON property `borderTop`
|
|
4668
4678
|
# @return [Google::Apis::DocsV1::TableCellBorder]
|
|
4669
4679
|
attr_accessor :border_top
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/bid-manager/
|
|
26
26
|
module DoubleclickbidmanagerV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20190424'
|
|
29
29
|
|
|
30
30
|
# View and manage your reports in DoubleClick Bid Manager
|
|
31
31
|
AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager'
|
|
@@ -86,14 +86,15 @@ module Google
|
|
|
86
86
|
class DownloadRequest
|
|
87
87
|
include Google::Apis::Core::Hashable
|
|
88
88
|
|
|
89
|
-
# File types that will be returned.
|
|
89
|
+
# File types that will be returned. If INVENTORY_SOURCE is requested, no other
|
|
90
|
+
# file types may be requested.
|
|
90
91
|
# Acceptable values are:
|
|
91
92
|
# - "AD"
|
|
92
93
|
# - "AD_GROUP"
|
|
93
94
|
# - "CAMPAIGN"
|
|
94
95
|
# - "INSERTION_ORDER"
|
|
95
|
-
# - "LINE_ITEM"
|
|
96
96
|
# - "INVENTORY_SOURCE"
|
|
97
|
+
# - "LINE_ITEM"
|
|
97
98
|
# Corresponds to the JSON property `fileTypes`
|
|
98
99
|
# @return [Array<String>]
|
|
99
100
|
attr_accessor :file_types
|
|
@@ -104,7 +105,8 @@ module Google
|
|
|
104
105
|
# @return [Array<Fixnum>]
|
|
105
106
|
attr_accessor :filter_ids
|
|
106
107
|
|
|
107
|
-
# Filter type used to filter entities to fetch.
|
|
108
|
+
# Filter type used to filter entities to fetch. PARTNER_ID and
|
|
109
|
+
# INVENTORY_SOURCE_ID may only be used when downloading inventory sources.
|
|
108
110
|
# Corresponds to the JSON property `filterType`
|
|
109
111
|
# @return [String]
|
|
110
112
|
attr_accessor :filter_type
|
|
@@ -268,7 +270,7 @@ module Google
|
|
|
268
270
|
# @return [Array<String>]
|
|
269
271
|
attr_accessor :group_bys
|
|
270
272
|
|
|
271
|
-
#
|
|
273
|
+
# Deprecated. This field is no longer in use.
|
|
272
274
|
# Corresponds to the JSON property `includeInviteData`
|
|
273
275
|
# @return [Boolean]
|
|
274
276
|
attr_accessor :include_invite_data
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://developers.google.com/drive/
|
|
27
27
|
module DriveV2
|
|
28
28
|
VERSION = 'V2'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20190416'
|
|
30
30
|
|
|
31
31
|
# See, edit, create, and delete all of your Google Drive files
|
|
32
32
|
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
|
@@ -32,7 +32,13 @@ module Google
|
|
|
32
32
|
# @return [Array<Google::Apis::DriveV2::About::AdditionalRoleInfo>]
|
|
33
33
|
attr_accessor :additional_role_info
|
|
34
34
|
|
|
35
|
-
# Whether the user can create
|
|
35
|
+
# Whether the user can create shared drives.
|
|
36
|
+
# Corresponds to the JSON property `canCreateDrives`
|
|
37
|
+
# @return [Boolean]
|
|
38
|
+
attr_accessor :can_create_drives
|
|
39
|
+
alias_method :can_create_drives?, :can_create_drives
|
|
40
|
+
|
|
41
|
+
# Deprecated - use canCreateDrives instead.
|
|
36
42
|
# Corresponds to the JSON property `canCreateTeamDrives`
|
|
37
43
|
# @return [Boolean]
|
|
38
44
|
attr_accessor :can_create_team_drives
|
|
@@ -47,6 +53,11 @@ module Google
|
|
|
47
53
|
# @return [String]
|
|
48
54
|
attr_accessor :domain_sharing_policy
|
|
49
55
|
|
|
56
|
+
# A list of themes that are supported for shared drives.
|
|
57
|
+
# Corresponds to the JSON property `driveThemes`
|
|
58
|
+
# @return [Array<Google::Apis::DriveV2::About::DriveTheme>]
|
|
59
|
+
attr_accessor :drive_themes
|
|
60
|
+
|
|
50
61
|
# The ETag of the item.
|
|
51
62
|
# Corresponds to the JSON property `etag`
|
|
52
63
|
# @return [String]
|
|
@@ -158,7 +169,7 @@ module Google
|
|
|
158
169
|
# @return [String]
|
|
159
170
|
attr_accessor :self_link
|
|
160
171
|
|
|
161
|
-
#
|
|
172
|
+
# Deprecated - use driveThemes instead.
|
|
162
173
|
# Corresponds to the JSON property `teamDriveThemes`
|
|
163
174
|
# @return [Array<Google::Apis::DriveV2::About::TeamDriveTheme>]
|
|
164
175
|
attr_accessor :team_drive_themes
|
|
@@ -175,8 +186,10 @@ module Google
|
|
|
175
186
|
# Update properties of this object
|
|
176
187
|
def update!(**args)
|
|
177
188
|
@additional_role_info = args[:additional_role_info] if args.key?(:additional_role_info)
|
|
189
|
+
@can_create_drives = args[:can_create_drives] if args.key?(:can_create_drives)
|
|
178
190
|
@can_create_team_drives = args[:can_create_team_drives] if args.key?(:can_create_team_drives)
|
|
179
191
|
@domain_sharing_policy = args[:domain_sharing_policy] if args.key?(:domain_sharing_policy)
|
|
192
|
+
@drive_themes = args[:drive_themes] if args.key?(:drive_themes)
|
|
180
193
|
@etag = args[:etag] if args.key?(:etag)
|
|
181
194
|
@export_formats = args[:export_formats] if args.key?(:export_formats)
|
|
182
195
|
@features = args[:features] if args.key?(:features)
|
|
@@ -252,6 +265,37 @@ module Google
|
|
|
252
265
|
end
|
|
253
266
|
end
|
|
254
267
|
|
|
268
|
+
#
|
|
269
|
+
class DriveTheme
|
|
270
|
+
include Google::Apis::Core::Hashable
|
|
271
|
+
|
|
272
|
+
# A link to this theme's background image.
|
|
273
|
+
# Corresponds to the JSON property `backgroundImageLink`
|
|
274
|
+
# @return [String]
|
|
275
|
+
attr_accessor :background_image_link
|
|
276
|
+
|
|
277
|
+
# The color of this theme as an RGB hex string.
|
|
278
|
+
# Corresponds to the JSON property `colorRgb`
|
|
279
|
+
# @return [String]
|
|
280
|
+
attr_accessor :color_rgb
|
|
281
|
+
|
|
282
|
+
# The ID of the theme.
|
|
283
|
+
# Corresponds to the JSON property `id`
|
|
284
|
+
# @return [String]
|
|
285
|
+
attr_accessor :id
|
|
286
|
+
|
|
287
|
+
def initialize(**args)
|
|
288
|
+
update!(**args)
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
# Update properties of this object
|
|
292
|
+
def update!(**args)
|
|
293
|
+
@background_image_link = args[:background_image_link] if args.key?(:background_image_link)
|
|
294
|
+
@color_rgb = args[:color_rgb] if args.key?(:color_rgb)
|
|
295
|
+
@id = args[:id] if args.key?(:id)
|
|
296
|
+
end
|
|
297
|
+
end
|
|
298
|
+
|
|
255
299
|
#
|
|
256
300
|
class ExportFormat
|
|
257
301
|
include Google::Apis::Core::Hashable
|
|
@@ -661,17 +705,32 @@ module Google
|
|
|
661
705
|
end
|
|
662
706
|
end
|
|
663
707
|
|
|
664
|
-
# Representation of a change to a file or
|
|
708
|
+
# Representation of a change to a file or shared drive.
|
|
665
709
|
class Change
|
|
666
710
|
include Google::Apis::Core::Hashable
|
|
667
711
|
|
|
668
|
-
#
|
|
669
|
-
#
|
|
712
|
+
# The type of the change. Possible values are file and drive.
|
|
713
|
+
# Corresponds to the JSON property `changeType`
|
|
714
|
+
# @return [String]
|
|
715
|
+
attr_accessor :change_type
|
|
716
|
+
|
|
717
|
+
# Whether the file or shared drive has been removed from this list of changes,
|
|
718
|
+
# for example by deletion or loss of access.
|
|
670
719
|
# Corresponds to the JSON property `deleted`
|
|
671
720
|
# @return [Boolean]
|
|
672
721
|
attr_accessor :deleted
|
|
673
722
|
alias_method :deleted?, :deleted
|
|
674
723
|
|
|
724
|
+
# Representation of a shared drive.
|
|
725
|
+
# Corresponds to the JSON property `drive`
|
|
726
|
+
# @return [Google::Apis::DriveV2::Drive]
|
|
727
|
+
attr_accessor :drive
|
|
728
|
+
|
|
729
|
+
# The ID of the shared drive associated with this change.
|
|
730
|
+
# Corresponds to the JSON property `driveId`
|
|
731
|
+
# @return [String]
|
|
732
|
+
attr_accessor :drive_id
|
|
733
|
+
|
|
675
734
|
# The metadata for a file.
|
|
676
735
|
# Corresponds to the JSON property `file`
|
|
677
736
|
# @return [Google::Apis::DriveV2::File]
|
|
@@ -707,12 +766,12 @@ module Google
|
|
|
707
766
|
# @return [Google::Apis::DriveV2::TeamDrive]
|
|
708
767
|
attr_accessor :team_drive
|
|
709
768
|
|
|
710
|
-
#
|
|
769
|
+
# Deprecated - use driveId instead.
|
|
711
770
|
# Corresponds to the JSON property `teamDriveId`
|
|
712
771
|
# @return [String]
|
|
713
772
|
attr_accessor :team_drive_id
|
|
714
773
|
|
|
715
|
-
#
|
|
774
|
+
# Deprecated - use changeType instead.
|
|
716
775
|
# Corresponds to the JSON property `type`
|
|
717
776
|
# @return [String]
|
|
718
777
|
attr_accessor :type
|
|
@@ -723,7 +782,10 @@ module Google
|
|
|
723
782
|
|
|
724
783
|
# Update properties of this object
|
|
725
784
|
def update!(**args)
|
|
785
|
+
@change_type = args[:change_type] if args.key?(:change_type)
|
|
726
786
|
@deleted = args[:deleted] if args.key?(:deleted)
|
|
787
|
+
@drive = args[:drive] if args.key?(:drive)
|
|
788
|
+
@drive_id = args[:drive_id] if args.key?(:drive_id)
|
|
727
789
|
@file = args[:file] if args.key?(:file)
|
|
728
790
|
@file_id = args[:file_id] if args.key?(:file_id)
|
|
729
791
|
@id = args[:id] if args.key?(:id)
|
|
@@ -1277,6 +1339,376 @@ module Google
|
|
|
1277
1339
|
end
|
|
1278
1340
|
end
|
|
1279
1341
|
|
|
1342
|
+
# Representation of a shared drive.
|
|
1343
|
+
class Drive
|
|
1344
|
+
include Google::Apis::Core::Hashable
|
|
1345
|
+
|
|
1346
|
+
# An image file and cropping parameters from which a background image for this
|
|
1347
|
+
# shared drive is set. This is a write only field; it can only be set on drive.
|
|
1348
|
+
# drives.update requests that don't set themeId. When specified, all fields of
|
|
1349
|
+
# the backgroundImageFile must be set.
|
|
1350
|
+
# Corresponds to the JSON property `backgroundImageFile`
|
|
1351
|
+
# @return [Google::Apis::DriveV2::Drive::BackgroundImageFile]
|
|
1352
|
+
attr_accessor :background_image_file
|
|
1353
|
+
|
|
1354
|
+
# A short-lived link to this shared drive's background image.
|
|
1355
|
+
# Corresponds to the JSON property `backgroundImageLink`
|
|
1356
|
+
# @return [String]
|
|
1357
|
+
attr_accessor :background_image_link
|
|
1358
|
+
|
|
1359
|
+
# Capabilities the current user has on this shared drive.
|
|
1360
|
+
# Corresponds to the JSON property `capabilities`
|
|
1361
|
+
# @return [Google::Apis::DriveV2::Drive::Capabilities]
|
|
1362
|
+
attr_accessor :capabilities
|
|
1363
|
+
|
|
1364
|
+
# The color of this shared drive as an RGB hex string. It can only be set on a
|
|
1365
|
+
# drive.drives.update request that does not set themeId.
|
|
1366
|
+
# Corresponds to the JSON property `colorRgb`
|
|
1367
|
+
# @return [String]
|
|
1368
|
+
attr_accessor :color_rgb
|
|
1369
|
+
|
|
1370
|
+
# The time at which the shared drive was created (RFC 3339 date-time).
|
|
1371
|
+
# Corresponds to the JSON property `createdDate`
|
|
1372
|
+
# @return [DateTime]
|
|
1373
|
+
attr_accessor :created_date
|
|
1374
|
+
|
|
1375
|
+
# Whether the shared drive is hidden from default view.
|
|
1376
|
+
# Corresponds to the JSON property `hidden`
|
|
1377
|
+
# @return [Boolean]
|
|
1378
|
+
attr_accessor :hidden
|
|
1379
|
+
alias_method :hidden?, :hidden
|
|
1380
|
+
|
|
1381
|
+
# The ID of this shared drive which is also the ID of the top level folder of
|
|
1382
|
+
# this shared drive.
|
|
1383
|
+
# Corresponds to the JSON property `id`
|
|
1384
|
+
# @return [String]
|
|
1385
|
+
attr_accessor :id
|
|
1386
|
+
|
|
1387
|
+
# This is always drive#drive
|
|
1388
|
+
# Corresponds to the JSON property `kind`
|
|
1389
|
+
# @return [String]
|
|
1390
|
+
attr_accessor :kind
|
|
1391
|
+
|
|
1392
|
+
# The name of this shared drive.
|
|
1393
|
+
# Corresponds to the JSON property `name`
|
|
1394
|
+
# @return [String]
|
|
1395
|
+
attr_accessor :name
|
|
1396
|
+
|
|
1397
|
+
# A set of restrictions that apply to this shared drive or items inside this
|
|
1398
|
+
# shared drive.
|
|
1399
|
+
# Corresponds to the JSON property `restrictions`
|
|
1400
|
+
# @return [Google::Apis::DriveV2::Drive::Restrictions]
|
|
1401
|
+
attr_accessor :restrictions
|
|
1402
|
+
|
|
1403
|
+
# The ID of the theme from which the background image and color will be set. The
|
|
1404
|
+
# set of possible driveThemes can be retrieved from a drive.about.get response.
|
|
1405
|
+
# When not specified on a drive.drives.insert request, a random theme is chosen
|
|
1406
|
+
# from which the background image and color are set. This is a write-only field;
|
|
1407
|
+
# it can only be set on requests that don't set colorRgb or backgroundImageFile.
|
|
1408
|
+
# Corresponds to the JSON property `themeId`
|
|
1409
|
+
# @return [String]
|
|
1410
|
+
attr_accessor :theme_id
|
|
1411
|
+
|
|
1412
|
+
def initialize(**args)
|
|
1413
|
+
update!(**args)
|
|
1414
|
+
end
|
|
1415
|
+
|
|
1416
|
+
# Update properties of this object
|
|
1417
|
+
def update!(**args)
|
|
1418
|
+
@background_image_file = args[:background_image_file] if args.key?(:background_image_file)
|
|
1419
|
+
@background_image_link = args[:background_image_link] if args.key?(:background_image_link)
|
|
1420
|
+
@capabilities = args[:capabilities] if args.key?(:capabilities)
|
|
1421
|
+
@color_rgb = args[:color_rgb] if args.key?(:color_rgb)
|
|
1422
|
+
@created_date = args[:created_date] if args.key?(:created_date)
|
|
1423
|
+
@hidden = args[:hidden] if args.key?(:hidden)
|
|
1424
|
+
@id = args[:id] if args.key?(:id)
|
|
1425
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
1426
|
+
@name = args[:name] if args.key?(:name)
|
|
1427
|
+
@restrictions = args[:restrictions] if args.key?(:restrictions)
|
|
1428
|
+
@theme_id = args[:theme_id] if args.key?(:theme_id)
|
|
1429
|
+
end
|
|
1430
|
+
|
|
1431
|
+
# An image file and cropping parameters from which a background image for this
|
|
1432
|
+
# shared drive is set. This is a write only field; it can only be set on drive.
|
|
1433
|
+
# drives.update requests that don't set themeId. When specified, all fields of
|
|
1434
|
+
# the backgroundImageFile must be set.
|
|
1435
|
+
class BackgroundImageFile
|
|
1436
|
+
include Google::Apis::Core::Hashable
|
|
1437
|
+
|
|
1438
|
+
# The ID of an image file in Google Drive to use for the background image.
|
|
1439
|
+
# Corresponds to the JSON property `id`
|
|
1440
|
+
# @return [String]
|
|
1441
|
+
attr_accessor :id
|
|
1442
|
+
|
|
1443
|
+
# The width of the cropped image in the closed range of 0 to 1. This value
|
|
1444
|
+
# represents the width of the cropped image divided by the width of the entire
|
|
1445
|
+
# image. The height is computed by applying a width to height aspect ratio of 80
|
|
1446
|
+
# to 9. The resulting image must be at least 1280 pixels wide and 144 pixels
|
|
1447
|
+
# high.
|
|
1448
|
+
# Corresponds to the JSON property `width`
|
|
1449
|
+
# @return [Float]
|
|
1450
|
+
attr_accessor :width
|
|
1451
|
+
|
|
1452
|
+
# The X coordinate of the upper left corner of the cropping area in the
|
|
1453
|
+
# background image. This is a value in the closed range of 0 to 1. This value
|
|
1454
|
+
# represents the horizontal distance from the left side of the entire image to
|
|
1455
|
+
# the left side of the cropping area divided by the width of the entire image.
|
|
1456
|
+
# Corresponds to the JSON property `xCoordinate`
|
|
1457
|
+
# @return [Float]
|
|
1458
|
+
attr_accessor :x_coordinate
|
|
1459
|
+
|
|
1460
|
+
# The Y coordinate of the upper left corner of the cropping area in the
|
|
1461
|
+
# background image. This is a value in the closed range of 0 to 1. This value
|
|
1462
|
+
# represents the vertical distance from the top side of the entire image to the
|
|
1463
|
+
# top side of the cropping area divided by the height of the entire image.
|
|
1464
|
+
# Corresponds to the JSON property `yCoordinate`
|
|
1465
|
+
# @return [Float]
|
|
1466
|
+
attr_accessor :y_coordinate
|
|
1467
|
+
|
|
1468
|
+
def initialize(**args)
|
|
1469
|
+
update!(**args)
|
|
1470
|
+
end
|
|
1471
|
+
|
|
1472
|
+
# Update properties of this object
|
|
1473
|
+
def update!(**args)
|
|
1474
|
+
@id = args[:id] if args.key?(:id)
|
|
1475
|
+
@width = args[:width] if args.key?(:width)
|
|
1476
|
+
@x_coordinate = args[:x_coordinate] if args.key?(:x_coordinate)
|
|
1477
|
+
@y_coordinate = args[:y_coordinate] if args.key?(:y_coordinate)
|
|
1478
|
+
end
|
|
1479
|
+
end
|
|
1480
|
+
|
|
1481
|
+
# Capabilities the current user has on this shared drive.
|
|
1482
|
+
class Capabilities
|
|
1483
|
+
include Google::Apis::Core::Hashable
|
|
1484
|
+
|
|
1485
|
+
# Whether the current user can add children to folders in this shared drive.
|
|
1486
|
+
# Corresponds to the JSON property `canAddChildren`
|
|
1487
|
+
# @return [Boolean]
|
|
1488
|
+
attr_accessor :can_add_children
|
|
1489
|
+
alias_method :can_add_children?, :can_add_children
|
|
1490
|
+
|
|
1491
|
+
# Whether the current user can change the copyRequiresWriterPermission
|
|
1492
|
+
# restriction of this shared drive.
|
|
1493
|
+
# Corresponds to the JSON property `canChangeCopyRequiresWriterPermissionRestriction`
|
|
1494
|
+
# @return [Boolean]
|
|
1495
|
+
attr_accessor :can_change_copy_requires_writer_permission_restriction
|
|
1496
|
+
alias_method :can_change_copy_requires_writer_permission_restriction?, :can_change_copy_requires_writer_permission_restriction
|
|
1497
|
+
|
|
1498
|
+
# Whether the current user can change the domainUsersOnly restriction of this
|
|
1499
|
+
# shared drive.
|
|
1500
|
+
# Corresponds to the JSON property `canChangeDomainUsersOnlyRestriction`
|
|
1501
|
+
# @return [Boolean]
|
|
1502
|
+
attr_accessor :can_change_domain_users_only_restriction
|
|
1503
|
+
alias_method :can_change_domain_users_only_restriction?, :can_change_domain_users_only_restriction
|
|
1504
|
+
|
|
1505
|
+
# Whether the current user can change the background of this shared drive.
|
|
1506
|
+
# Corresponds to the JSON property `canChangeDriveBackground`
|
|
1507
|
+
# @return [Boolean]
|
|
1508
|
+
attr_accessor :can_change_drive_background
|
|
1509
|
+
alias_method :can_change_drive_background?, :can_change_drive_background
|
|
1510
|
+
|
|
1511
|
+
# Whether the current user can change the driveMembersOnly restriction of this
|
|
1512
|
+
# shared drive.
|
|
1513
|
+
# Corresponds to the JSON property `canChangeDriveMembersOnlyRestriction`
|
|
1514
|
+
# @return [Boolean]
|
|
1515
|
+
attr_accessor :can_change_drive_members_only_restriction
|
|
1516
|
+
alias_method :can_change_drive_members_only_restriction?, :can_change_drive_members_only_restriction
|
|
1517
|
+
|
|
1518
|
+
# Whether the current user can comment on files in this shared drive.
|
|
1519
|
+
# Corresponds to the JSON property `canComment`
|
|
1520
|
+
# @return [Boolean]
|
|
1521
|
+
attr_accessor :can_comment
|
|
1522
|
+
alias_method :can_comment?, :can_comment
|
|
1523
|
+
|
|
1524
|
+
# Whether the current user can copy files in this shared drive.
|
|
1525
|
+
# Corresponds to the JSON property `canCopy`
|
|
1526
|
+
# @return [Boolean]
|
|
1527
|
+
attr_accessor :can_copy
|
|
1528
|
+
alias_method :can_copy?, :can_copy
|
|
1529
|
+
|
|
1530
|
+
# Whether the current user can delete children from folders in this shared drive.
|
|
1531
|
+
# Corresponds to the JSON property `canDeleteChildren`
|
|
1532
|
+
# @return [Boolean]
|
|
1533
|
+
attr_accessor :can_delete_children
|
|
1534
|
+
alias_method :can_delete_children?, :can_delete_children
|
|
1535
|
+
|
|
1536
|
+
# Whether the current user can delete this shared drive. Attempting to delete
|
|
1537
|
+
# the shared drive may still fail if there are untrashed items inside the shared
|
|
1538
|
+
# drive.
|
|
1539
|
+
# Corresponds to the JSON property `canDeleteDrive`
|
|
1540
|
+
# @return [Boolean]
|
|
1541
|
+
attr_accessor :can_delete_drive
|
|
1542
|
+
alias_method :can_delete_drive?, :can_delete_drive
|
|
1543
|
+
|
|
1544
|
+
# Whether the current user can download files in this shared drive.
|
|
1545
|
+
# Corresponds to the JSON property `canDownload`
|
|
1546
|
+
# @return [Boolean]
|
|
1547
|
+
attr_accessor :can_download
|
|
1548
|
+
alias_method :can_download?, :can_download
|
|
1549
|
+
|
|
1550
|
+
# Whether the current user can edit files in this shared drive
|
|
1551
|
+
# Corresponds to the JSON property `canEdit`
|
|
1552
|
+
# @return [Boolean]
|
|
1553
|
+
attr_accessor :can_edit
|
|
1554
|
+
alias_method :can_edit?, :can_edit
|
|
1555
|
+
|
|
1556
|
+
# Whether the current user can list the children of folders in this shared drive.
|
|
1557
|
+
# Corresponds to the JSON property `canListChildren`
|
|
1558
|
+
# @return [Boolean]
|
|
1559
|
+
attr_accessor :can_list_children
|
|
1560
|
+
alias_method :can_list_children?, :can_list_children
|
|
1561
|
+
|
|
1562
|
+
# Whether the current user can add members to this shared drive or remove them
|
|
1563
|
+
# or change their role.
|
|
1564
|
+
# Corresponds to the JSON property `canManageMembers`
|
|
1565
|
+
# @return [Boolean]
|
|
1566
|
+
attr_accessor :can_manage_members
|
|
1567
|
+
alias_method :can_manage_members?, :can_manage_members
|
|
1568
|
+
|
|
1569
|
+
# Whether the current user can read the revisions resource of files in this
|
|
1570
|
+
# shared drive.
|
|
1571
|
+
# Corresponds to the JSON property `canReadRevisions`
|
|
1572
|
+
# @return [Boolean]
|
|
1573
|
+
attr_accessor :can_read_revisions
|
|
1574
|
+
alias_method :can_read_revisions?, :can_read_revisions
|
|
1575
|
+
|
|
1576
|
+
# Whether the current user can rename files or folders in this shared drive.
|
|
1577
|
+
# Corresponds to the JSON property `canRename`
|
|
1578
|
+
# @return [Boolean]
|
|
1579
|
+
attr_accessor :can_rename
|
|
1580
|
+
alias_method :can_rename?, :can_rename
|
|
1581
|
+
|
|
1582
|
+
# Whether the current user can rename this shared drive.
|
|
1583
|
+
# Corresponds to the JSON property `canRenameDrive`
|
|
1584
|
+
# @return [Boolean]
|
|
1585
|
+
attr_accessor :can_rename_drive
|
|
1586
|
+
alias_method :can_rename_drive?, :can_rename_drive
|
|
1587
|
+
|
|
1588
|
+
# Whether the current user can share files or folders in this shared drive.
|
|
1589
|
+
# Corresponds to the JSON property `canShare`
|
|
1590
|
+
# @return [Boolean]
|
|
1591
|
+
attr_accessor :can_share
|
|
1592
|
+
alias_method :can_share?, :can_share
|
|
1593
|
+
|
|
1594
|
+
# Whether the current user can trash children from folders in this shared drive.
|
|
1595
|
+
# Corresponds to the JSON property `canTrashChildren`
|
|
1596
|
+
# @return [Boolean]
|
|
1597
|
+
attr_accessor :can_trash_children
|
|
1598
|
+
alias_method :can_trash_children?, :can_trash_children
|
|
1599
|
+
|
|
1600
|
+
def initialize(**args)
|
|
1601
|
+
update!(**args)
|
|
1602
|
+
end
|
|
1603
|
+
|
|
1604
|
+
# Update properties of this object
|
|
1605
|
+
def update!(**args)
|
|
1606
|
+
@can_add_children = args[:can_add_children] if args.key?(:can_add_children)
|
|
1607
|
+
@can_change_copy_requires_writer_permission_restriction = args[:can_change_copy_requires_writer_permission_restriction] if args.key?(:can_change_copy_requires_writer_permission_restriction)
|
|
1608
|
+
@can_change_domain_users_only_restriction = args[:can_change_domain_users_only_restriction] if args.key?(:can_change_domain_users_only_restriction)
|
|
1609
|
+
@can_change_drive_background = args[:can_change_drive_background] if args.key?(:can_change_drive_background)
|
|
1610
|
+
@can_change_drive_members_only_restriction = args[:can_change_drive_members_only_restriction] if args.key?(:can_change_drive_members_only_restriction)
|
|
1611
|
+
@can_comment = args[:can_comment] if args.key?(:can_comment)
|
|
1612
|
+
@can_copy = args[:can_copy] if args.key?(:can_copy)
|
|
1613
|
+
@can_delete_children = args[:can_delete_children] if args.key?(:can_delete_children)
|
|
1614
|
+
@can_delete_drive = args[:can_delete_drive] if args.key?(:can_delete_drive)
|
|
1615
|
+
@can_download = args[:can_download] if args.key?(:can_download)
|
|
1616
|
+
@can_edit = args[:can_edit] if args.key?(:can_edit)
|
|
1617
|
+
@can_list_children = args[:can_list_children] if args.key?(:can_list_children)
|
|
1618
|
+
@can_manage_members = args[:can_manage_members] if args.key?(:can_manage_members)
|
|
1619
|
+
@can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
|
|
1620
|
+
@can_rename = args[:can_rename] if args.key?(:can_rename)
|
|
1621
|
+
@can_rename_drive = args[:can_rename_drive] if args.key?(:can_rename_drive)
|
|
1622
|
+
@can_share = args[:can_share] if args.key?(:can_share)
|
|
1623
|
+
@can_trash_children = args[:can_trash_children] if args.key?(:can_trash_children)
|
|
1624
|
+
end
|
|
1625
|
+
end
|
|
1626
|
+
|
|
1627
|
+
# A set of restrictions that apply to this shared drive or items inside this
|
|
1628
|
+
# shared drive.
|
|
1629
|
+
class Restrictions
|
|
1630
|
+
include Google::Apis::Core::Hashable
|
|
1631
|
+
|
|
1632
|
+
# Whether administrative privileges on this shared drive are required to modify
|
|
1633
|
+
# restrictions.
|
|
1634
|
+
# Corresponds to the JSON property `adminManagedRestrictions`
|
|
1635
|
+
# @return [Boolean]
|
|
1636
|
+
attr_accessor :admin_managed_restrictions
|
|
1637
|
+
alias_method :admin_managed_restrictions?, :admin_managed_restrictions
|
|
1638
|
+
|
|
1639
|
+
# Whether the options to copy, print, or download files inside this shared drive,
|
|
1640
|
+
# should be disabled for readers and commenters. When this restriction is set
|
|
1641
|
+
# to true, it will override the similarly named field to true for any file
|
|
1642
|
+
# inside this shared drive.
|
|
1643
|
+
# Corresponds to the JSON property `copyRequiresWriterPermission`
|
|
1644
|
+
# @return [Boolean]
|
|
1645
|
+
attr_accessor :copy_requires_writer_permission
|
|
1646
|
+
alias_method :copy_requires_writer_permission?, :copy_requires_writer_permission
|
|
1647
|
+
|
|
1648
|
+
# Whether access to this shared drive and items inside this shared drive is
|
|
1649
|
+
# restricted to users of the domain to which this shared drive belongs. This
|
|
1650
|
+
# restriction may be overridden by other sharing policies controlled outside of
|
|
1651
|
+
# this shared drive.
|
|
1652
|
+
# Corresponds to the JSON property `domainUsersOnly`
|
|
1653
|
+
# @return [Boolean]
|
|
1654
|
+
attr_accessor :domain_users_only
|
|
1655
|
+
alias_method :domain_users_only?, :domain_users_only
|
|
1656
|
+
|
|
1657
|
+
# Whether access to items inside this shared drive is restricted to its members.
|
|
1658
|
+
# Corresponds to the JSON property `driveMembersOnly`
|
|
1659
|
+
# @return [Boolean]
|
|
1660
|
+
attr_accessor :drive_members_only
|
|
1661
|
+
alias_method :drive_members_only?, :drive_members_only
|
|
1662
|
+
|
|
1663
|
+
def initialize(**args)
|
|
1664
|
+
update!(**args)
|
|
1665
|
+
end
|
|
1666
|
+
|
|
1667
|
+
# Update properties of this object
|
|
1668
|
+
def update!(**args)
|
|
1669
|
+
@admin_managed_restrictions = args[:admin_managed_restrictions] if args.key?(:admin_managed_restrictions)
|
|
1670
|
+
@copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
|
|
1671
|
+
@domain_users_only = args[:domain_users_only] if args.key?(:domain_users_only)
|
|
1672
|
+
@drive_members_only = args[:drive_members_only] if args.key?(:drive_members_only)
|
|
1673
|
+
end
|
|
1674
|
+
end
|
|
1675
|
+
end
|
|
1676
|
+
|
|
1677
|
+
# A list of shared drives.
|
|
1678
|
+
class DriveList
|
|
1679
|
+
include Google::Apis::Core::Hashable
|
|
1680
|
+
|
|
1681
|
+
# The list of shared drives. If nextPageToken is populated, then this list may
|
|
1682
|
+
# be incomplete and an additional page of results should be fetched.
|
|
1683
|
+
# Corresponds to the JSON property `items`
|
|
1684
|
+
# @return [Array<Google::Apis::DriveV2::Drive>]
|
|
1685
|
+
attr_accessor :items
|
|
1686
|
+
|
|
1687
|
+
# This is always drive#driveList
|
|
1688
|
+
# Corresponds to the JSON property `kind`
|
|
1689
|
+
# @return [String]
|
|
1690
|
+
attr_accessor :kind
|
|
1691
|
+
|
|
1692
|
+
# The page token for the next page of shared drives. This will be absent if the
|
|
1693
|
+
# end of the list has been reached. If the token is rejected for any reason, it
|
|
1694
|
+
# should be discarded, and pagination should be restarted from the first page of
|
|
1695
|
+
# results.
|
|
1696
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
1697
|
+
# @return [String]
|
|
1698
|
+
attr_accessor :next_page_token
|
|
1699
|
+
|
|
1700
|
+
def initialize(**args)
|
|
1701
|
+
update!(**args)
|
|
1702
|
+
end
|
|
1703
|
+
|
|
1704
|
+
# Update properties of this object
|
|
1705
|
+
def update!(**args)
|
|
1706
|
+
@items = args[:items] if args.key?(:items)
|
|
1707
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
1708
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1709
|
+
end
|
|
1710
|
+
end
|
|
1711
|
+
|
|
1280
1712
|
# The metadata for a file.
|
|
1281
1713
|
class File
|
|
1282
1714
|
include Google::Apis::Core::Hashable
|
|
@@ -1340,12 +1772,18 @@ module Google
|
|
|
1340
1772
|
attr_accessor :description
|
|
1341
1773
|
|
|
1342
1774
|
# Short lived download URL for the file. This field is only populated for files
|
|
1343
|
-
# with content stored in Drive; it is not populated for Google Docs or
|
|
1344
|
-
# files.
|
|
1775
|
+
# with content stored in Google Drive; it is not populated for Google Docs or
|
|
1776
|
+
# shortcut files.
|
|
1345
1777
|
# Corresponds to the JSON property `downloadUrl`
|
|
1346
1778
|
# @return [String]
|
|
1347
1779
|
attr_accessor :download_url
|
|
1348
1780
|
|
|
1781
|
+
# ID of the shared drive the file resides in. Only populated for items in shared
|
|
1782
|
+
# drives.
|
|
1783
|
+
# Corresponds to the JSON property `driveId`
|
|
1784
|
+
# @return [String]
|
|
1785
|
+
attr_accessor :drive_id
|
|
1786
|
+
|
|
1349
1787
|
# Deprecated: use capabilities/canEdit.
|
|
1350
1788
|
# Corresponds to the JSON property `editable`
|
|
1351
1789
|
# @return [Boolean]
|
|
@@ -1376,14 +1814,15 @@ module Google
|
|
|
1376
1814
|
|
|
1377
1815
|
# The final component of fullFileExtension with trailing text that does not
|
|
1378
1816
|
# appear to be part of the extension removed. This field is only populated for
|
|
1379
|
-
# files with content stored in Drive; it is not populated for Google Docs
|
|
1380
|
-
# shortcut files.
|
|
1817
|
+
# files with content stored in Google Drive; it is not populated for Google Docs
|
|
1818
|
+
# or shortcut files.
|
|
1381
1819
|
# Corresponds to the JSON property `fileExtension`
|
|
1382
1820
|
# @return [String]
|
|
1383
1821
|
attr_accessor :file_extension
|
|
1384
1822
|
|
|
1385
1823
|
# The size of the file in bytes. This field is only populated for files with
|
|
1386
|
-
# content stored in Drive; it is not populated for Google Docs or
|
|
1824
|
+
# content stored in Google Drive; it is not populated for Google Docs or
|
|
1825
|
+
# shortcut files.
|
|
1387
1826
|
# Corresponds to the JSON property `fileSize`
|
|
1388
1827
|
# @return [Fixnum]
|
|
1389
1828
|
attr_accessor :file_size
|
|
@@ -1391,7 +1830,7 @@ module Google
|
|
|
1391
1830
|
# Folder color as an RGB hex string if the file is a folder. The list of
|
|
1392
1831
|
# supported colors is available in the folderColorPalette field of the About
|
|
1393
1832
|
# resource. If an unsupported color is specified, it will be changed to the
|
|
1394
|
-
# closest color in the palette. Not populated for
|
|
1833
|
+
# closest color in the palette. Not populated for items in shared drives.
|
|
1395
1834
|
# Corresponds to the JSON property `folderColorRgb`
|
|
1396
1835
|
# @return [String]
|
|
1397
1836
|
attr_accessor :folder_color_rgb
|
|
@@ -1400,13 +1839,13 @@ module Google
|
|
|
1400
1839
|
# concatenated extensions, such as "tar.gz". Removing an extension from the
|
|
1401
1840
|
# title does not clear this field; however, changing the extension on the title
|
|
1402
1841
|
# does update this field. This field is only populated for files with content
|
|
1403
|
-
# stored in Drive; it is not populated for Google Docs or shortcut files.
|
|
1842
|
+
# stored in Google Drive; it is not populated for Google Docs or shortcut files.
|
|
1404
1843
|
# Corresponds to the JSON property `fullFileExtension`
|
|
1405
1844
|
# @return [String]
|
|
1406
1845
|
attr_accessor :full_file_extension
|
|
1407
1846
|
|
|
1408
1847
|
# Whether any users are granted file access directly on this file. This field is
|
|
1409
|
-
# only populated for
|
|
1848
|
+
# only populated for items in shared drives.
|
|
1410
1849
|
# Corresponds to the JSON property `hasAugmentedPermissions`
|
|
1411
1850
|
# @return [Boolean]
|
|
1412
1851
|
attr_accessor :has_augmented_permissions
|
|
@@ -1421,8 +1860,8 @@ module Google
|
|
|
1421
1860
|
alias_method :has_thumbnail?, :has_thumbnail
|
|
1422
1861
|
|
|
1423
1862
|
# The ID of the file's head revision. This field is only populated for files
|
|
1424
|
-
# with content stored in Drive; it is not populated for Google Docs or
|
|
1425
|
-
# files.
|
|
1863
|
+
# with content stored in Google Drive; it is not populated for Google Docs or
|
|
1864
|
+
# shortcut files.
|
|
1426
1865
|
# Corresponds to the JSON property `headRevisionId`
|
|
1427
1866
|
# @return [String]
|
|
1428
1867
|
attr_accessor :head_revision_id
|
|
@@ -1485,8 +1924,8 @@ module Google
|
|
|
1485
1924
|
attr_accessor :marked_viewed_by_me_date
|
|
1486
1925
|
|
|
1487
1926
|
# An MD5 checksum for the content of this file. This field is only populated for
|
|
1488
|
-
# files with content stored in Drive; it is not populated for Google Docs
|
|
1489
|
-
# shortcut files.
|
|
1927
|
+
# files with content stored in Google Drive; it is not populated for Google Docs
|
|
1928
|
+
# or shortcut files.
|
|
1490
1929
|
# Corresponds to the JSON property `md5Checksum`
|
|
1491
1930
|
# @return [String]
|
|
1492
1931
|
attr_accessor :md5_checksum
|
|
@@ -1519,24 +1958,24 @@ module Google
|
|
|
1519
1958
|
|
|
1520
1959
|
# The original filename of the uploaded content if available, or else the
|
|
1521
1960
|
# original value of the title field. This is only available for files with
|
|
1522
|
-
# binary content in Drive.
|
|
1961
|
+
# binary content in Google Drive.
|
|
1523
1962
|
# Corresponds to the JSON property `originalFilename`
|
|
1524
1963
|
# @return [String]
|
|
1525
1964
|
attr_accessor :original_filename
|
|
1526
1965
|
|
|
1527
|
-
# Whether the file is owned by the current user. Not populated for
|
|
1528
|
-
#
|
|
1966
|
+
# Whether the file is owned by the current user. Not populated for items in
|
|
1967
|
+
# shared drives.
|
|
1529
1968
|
# Corresponds to the JSON property `ownedByMe`
|
|
1530
1969
|
# @return [Boolean]
|
|
1531
1970
|
attr_accessor :owned_by_me
|
|
1532
1971
|
alias_method :owned_by_me?, :owned_by_me
|
|
1533
1972
|
|
|
1534
|
-
# Name(s) of the owner(s) of this file. Not populated for
|
|
1973
|
+
# Name(s) of the owner(s) of this file. Not populated for items in shared drives.
|
|
1535
1974
|
# Corresponds to the JSON property `ownerNames`
|
|
1536
1975
|
# @return [Array<String>]
|
|
1537
1976
|
attr_accessor :owner_names
|
|
1538
1977
|
|
|
1539
|
-
# The owner(s) of this file. Not populated for
|
|
1978
|
+
# The owner(s) of this file. Not populated for items in shared drives.
|
|
1540
1979
|
# Corresponds to the JSON property `owners`
|
|
1541
1980
|
# @return [Array<Google::Apis::DriveV2::User>]
|
|
1542
1981
|
attr_accessor :owners
|
|
@@ -1557,7 +1996,7 @@ module Google
|
|
|
1557
1996
|
attr_accessor :permission_ids
|
|
1558
1997
|
|
|
1559
1998
|
# The list of permissions for users with access to this file. Not populated for
|
|
1560
|
-
#
|
|
1999
|
+
# items in shared drives.
|
|
1561
2000
|
# Corresponds to the JSON property `permissions`
|
|
1562
2001
|
# @return [Array<Google::Apis::DriveV2::Permission>]
|
|
1563
2002
|
attr_accessor :permissions
|
|
@@ -1583,7 +2022,7 @@ module Google
|
|
|
1583
2022
|
attr_accessor :shareable
|
|
1584
2023
|
alias_method :shareable?, :shareable
|
|
1585
2024
|
|
|
1586
|
-
# Whether the file has been shared. Not populated for
|
|
2025
|
+
# Whether the file has been shared. Not populated for items in shared drives.
|
|
1587
2026
|
# Corresponds to the JSON property `shared`
|
|
1588
2027
|
# @return [Boolean]
|
|
1589
2028
|
attr_accessor :shared
|
|
@@ -1606,13 +2045,13 @@ module Google
|
|
|
1606
2045
|
# @return [Array<String>]
|
|
1607
2046
|
attr_accessor :spaces
|
|
1608
2047
|
|
|
1609
|
-
#
|
|
2048
|
+
# Deprecated - use driveId instead.
|
|
1610
2049
|
# Corresponds to the JSON property `teamDriveId`
|
|
1611
2050
|
# @return [String]
|
|
1612
2051
|
attr_accessor :team_drive_id
|
|
1613
2052
|
|
|
1614
|
-
# A thumbnail for the file. This will only be used if
|
|
1615
|
-
#
|
|
2053
|
+
# A thumbnail for the file. This will only be used if a standard thumbnail
|
|
2054
|
+
# cannot be generated.
|
|
1616
2055
|
# Corresponds to the JSON property `thumbnail`
|
|
1617
2056
|
# @return [Google::Apis::DriveV2::File::Thumbnail]
|
|
1618
2057
|
attr_accessor :thumbnail
|
|
@@ -1629,14 +2068,14 @@ module Google
|
|
|
1629
2068
|
attr_accessor :thumbnail_version
|
|
1630
2069
|
|
|
1631
2070
|
# The title of this file. Note that for immutable items such as the top level
|
|
1632
|
-
# folders of
|
|
1633
|
-
# title is constant.
|
|
2071
|
+
# folders of shared drives, My Drive root folder, and Application Data folder
|
|
2072
|
+
# the title is constant.
|
|
1634
2073
|
# Corresponds to the JSON property `title`
|
|
1635
2074
|
# @return [String]
|
|
1636
2075
|
attr_accessor :title
|
|
1637
2076
|
|
|
1638
2077
|
# The time that the item was trashed (formatted RFC 3339 timestamp). Only
|
|
1639
|
-
# populated for
|
|
2078
|
+
# populated for items in shared drives.
|
|
1640
2079
|
# Corresponds to the JSON property `trashedDate`
|
|
1641
2080
|
# @return [DateTime]
|
|
1642
2081
|
attr_accessor :trashed_date
|
|
@@ -1677,7 +2116,7 @@ module Google
|
|
|
1677
2116
|
attr_accessor :web_view_link
|
|
1678
2117
|
|
|
1679
2118
|
# Whether writers can share the document with other users. Not populated for
|
|
1680
|
-
#
|
|
2119
|
+
# items in shared drives.
|
|
1681
2120
|
# Corresponds to the JSON property `writersCanShare`
|
|
1682
2121
|
# @return [Boolean]
|
|
1683
2122
|
attr_accessor :writers_can_share
|
|
@@ -1700,6 +2139,7 @@ module Google
|
|
|
1700
2139
|
@default_open_with_link = args[:default_open_with_link] if args.key?(:default_open_with_link)
|
|
1701
2140
|
@description = args[:description] if args.key?(:description)
|
|
1702
2141
|
@download_url = args[:download_url] if args.key?(:download_url)
|
|
2142
|
+
@drive_id = args[:drive_id] if args.key?(:drive_id)
|
|
1703
2143
|
@editable = args[:editable] if args.key?(:editable)
|
|
1704
2144
|
@embed_link = args[:embed_link] if args.key?(:embed_link)
|
|
1705
2145
|
@etag = args[:etag] if args.key?(:etag)
|
|
@@ -1789,9 +2229,9 @@ module Google
|
|
|
1789
2229
|
attr_accessor :can_comment
|
|
1790
2230
|
alias_method :can_comment?, :can_comment
|
|
1791
2231
|
|
|
1792
|
-
# Whether the current user can copy this file. For a
|
|
1793
|
-
# the current user can copy non-folder descendants of this item, or this
|
|
1794
|
-
# itself if it is not a folder.
|
|
2232
|
+
# Whether the current user can copy this file. For an item in a shared drive,
|
|
2233
|
+
# whether the current user can copy non-folder descendants of this item, or this
|
|
2234
|
+
# item itself if it is not a folder.
|
|
1795
2235
|
# Corresponds to the JSON property `canCopy`
|
|
1796
2236
|
# @return [Boolean]
|
|
1797
2237
|
attr_accessor :can_copy
|
|
@@ -1804,7 +2244,7 @@ module Google
|
|
|
1804
2244
|
alias_method :can_delete?, :can_delete
|
|
1805
2245
|
|
|
1806
2246
|
# Whether the current user can delete children of this folder. This is false
|
|
1807
|
-
# when the item is not a folder. Only populated for
|
|
2247
|
+
# when the item is not a folder. Only populated for items in shared drives.
|
|
1808
2248
|
# Corresponds to the JSON property `canDeleteChildren`
|
|
1809
2249
|
# @return [Boolean]
|
|
1810
2250
|
attr_accessor :can_delete_children
|
|
@@ -1829,70 +2269,97 @@ module Google
|
|
|
1829
2269
|
attr_accessor :can_list_children
|
|
1830
2270
|
alias_method :can_list_children?, :can_list_children
|
|
1831
2271
|
|
|
1832
|
-
# Whether the current user can move children of this folder outside of the
|
|
1833
|
-
#
|
|
1834
|
-
#
|
|
2272
|
+
# Whether the current user can move children of this folder outside of the
|
|
2273
|
+
# shared drive. This is false when the item is not a folder. Only populated for
|
|
2274
|
+
# items in shared drives.
|
|
2275
|
+
# Corresponds to the JSON property `canMoveChildrenOutOfDrive`
|
|
2276
|
+
# @return [Boolean]
|
|
2277
|
+
attr_accessor :can_move_children_out_of_drive
|
|
2278
|
+
alias_method :can_move_children_out_of_drive?, :can_move_children_out_of_drive
|
|
2279
|
+
|
|
2280
|
+
# Deprecated - use canMoveChildrenOutOfDrive instead.
|
|
1835
2281
|
# Corresponds to the JSON property `canMoveChildrenOutOfTeamDrive`
|
|
1836
2282
|
# @return [Boolean]
|
|
1837
2283
|
attr_accessor :can_move_children_out_of_team_drive
|
|
1838
2284
|
alias_method :can_move_children_out_of_team_drive?, :can_move_children_out_of_team_drive
|
|
1839
2285
|
|
|
1840
|
-
# Whether the current user can move children of this folder within the
|
|
1841
|
-
#
|
|
1842
|
-
#
|
|
2286
|
+
# Whether the current user can move children of this folder within the shared
|
|
2287
|
+
# drive. This is false when the item is not a folder. Only populated for items
|
|
2288
|
+
# in shared drives.
|
|
2289
|
+
# Corresponds to the JSON property `canMoveChildrenWithinDrive`
|
|
2290
|
+
# @return [Boolean]
|
|
2291
|
+
attr_accessor :can_move_children_within_drive
|
|
2292
|
+
alias_method :can_move_children_within_drive?, :can_move_children_within_drive
|
|
2293
|
+
|
|
2294
|
+
# Deprecated - use canMoveChildrenWithinDrive instead.
|
|
1843
2295
|
# Corresponds to the JSON property `canMoveChildrenWithinTeamDrive`
|
|
1844
2296
|
# @return [Boolean]
|
|
1845
2297
|
attr_accessor :can_move_children_within_team_drive
|
|
1846
2298
|
alias_method :can_move_children_within_team_drive?, :can_move_children_within_team_drive
|
|
1847
2299
|
|
|
1848
|
-
#
|
|
1849
|
-
# in a Team Drive, this field is equivalent to canMoveTeamDriveItem.
|
|
2300
|
+
# Deprecated - use canMoveItemOutOfDrive instead.
|
|
1850
2301
|
# Corresponds to the JSON property `canMoveItemIntoTeamDrive`
|
|
1851
2302
|
# @return [Boolean]
|
|
1852
2303
|
attr_accessor :can_move_item_into_team_drive
|
|
1853
2304
|
alias_method :can_move_item_into_team_drive?, :can_move_item_into_team_drive
|
|
1854
2305
|
|
|
1855
|
-
# Whether the current user can move this
|
|
1856
|
-
#
|
|
1857
|
-
#
|
|
1858
|
-
#
|
|
2306
|
+
# Whether the current user can move this item outside of this drive by changing
|
|
2307
|
+
# its parent. Note that a request to change the parent of the item may still
|
|
2308
|
+
# fail depending on the new parent that is being added.
|
|
2309
|
+
# Corresponds to the JSON property `canMoveItemOutOfDrive`
|
|
2310
|
+
# @return [Boolean]
|
|
2311
|
+
attr_accessor :can_move_item_out_of_drive
|
|
2312
|
+
alias_method :can_move_item_out_of_drive?, :can_move_item_out_of_drive
|
|
2313
|
+
|
|
2314
|
+
# Deprecated - use canMoveItemOutOfDrive instead.
|
|
1859
2315
|
# Corresponds to the JSON property `canMoveItemOutOfTeamDrive`
|
|
1860
2316
|
# @return [Boolean]
|
|
1861
2317
|
attr_accessor :can_move_item_out_of_team_drive
|
|
1862
2318
|
alias_method :can_move_item_out_of_team_drive?, :can_move_item_out_of_team_drive
|
|
1863
2319
|
|
|
1864
|
-
# Whether the current user can move this
|
|
1865
|
-
#
|
|
1866
|
-
#
|
|
2320
|
+
# Whether the current user can move this item within this shared drive. Note
|
|
2321
|
+
# that a request to change the parent of the item may still fail depending on
|
|
2322
|
+
# the new parent that is being added. Only populated for items in shared drives.
|
|
2323
|
+
# Corresponds to the JSON property `canMoveItemWithinDrive`
|
|
2324
|
+
# @return [Boolean]
|
|
2325
|
+
attr_accessor :can_move_item_within_drive
|
|
2326
|
+
alias_method :can_move_item_within_drive?, :can_move_item_within_drive
|
|
2327
|
+
|
|
2328
|
+
# Deprecated - use canMoveItemWithinDrive instead.
|
|
1867
2329
|
# Corresponds to the JSON property `canMoveItemWithinTeamDrive`
|
|
1868
2330
|
# @return [Boolean]
|
|
1869
2331
|
attr_accessor :can_move_item_within_team_drive
|
|
1870
2332
|
alias_method :can_move_item_within_team_drive?, :can_move_item_within_team_drive
|
|
1871
2333
|
|
|
1872
|
-
# Deprecated - use
|
|
1873
|
-
# instead.
|
|
2334
|
+
# Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
|
|
1874
2335
|
# Corresponds to the JSON property `canMoveTeamDriveItem`
|
|
1875
2336
|
# @return [Boolean]
|
|
1876
2337
|
attr_accessor :can_move_team_drive_item
|
|
1877
2338
|
alias_method :can_move_team_drive_item?, :can_move_team_drive_item
|
|
1878
2339
|
|
|
2340
|
+
# Whether the current user can read the shared drive to which this file belongs.
|
|
2341
|
+
# Only populated for items in shared drives.
|
|
2342
|
+
# Corresponds to the JSON property `canReadDrive`
|
|
2343
|
+
# @return [Boolean]
|
|
2344
|
+
attr_accessor :can_read_drive
|
|
2345
|
+
alias_method :can_read_drive?, :can_read_drive
|
|
2346
|
+
|
|
1879
2347
|
# Whether the current user can read the revisions resource of this file. For a
|
|
1880
|
-
#
|
|
1881
|
-
# this item itself if it is not a folder, can be read.
|
|
2348
|
+
# shared drive item, whether revisions of non-folder descendants of this item,
|
|
2349
|
+
# or this item itself if it is not a folder, can be read.
|
|
1882
2350
|
# Corresponds to the JSON property `canReadRevisions`
|
|
1883
2351
|
# @return [Boolean]
|
|
1884
2352
|
attr_accessor :can_read_revisions
|
|
1885
2353
|
alias_method :can_read_revisions?, :can_read_revisions
|
|
1886
2354
|
|
|
1887
|
-
#
|
|
1888
|
-
# Only populated for Team Drive files.
|
|
2355
|
+
# Deprecated - use canReadDrive instead.
|
|
1889
2356
|
# Corresponds to the JSON property `canReadTeamDrive`
|
|
1890
2357
|
# @return [Boolean]
|
|
1891
2358
|
attr_accessor :can_read_team_drive
|
|
1892
2359
|
alias_method :can_read_team_drive?, :can_read_team_drive
|
|
1893
2360
|
|
|
1894
2361
|
# Whether the current user can remove children from this folder. This is always
|
|
1895
|
-
# false when the item is not a folder. For
|
|
2362
|
+
# false when the item is not a folder. For a folder in a shared drive, use
|
|
1896
2363
|
# canDeleteChildren or canTrashChildren instead.
|
|
1897
2364
|
# Corresponds to the JSON property `canRemoveChildren`
|
|
1898
2365
|
# @return [Boolean]
|
|
@@ -1918,7 +2385,7 @@ module Google
|
|
|
1918
2385
|
alias_method :can_trash?, :can_trash
|
|
1919
2386
|
|
|
1920
2387
|
# Whether the current user can trash children of this folder. This is false when
|
|
1921
|
-
# the item is not a folder. Only populated for
|
|
2388
|
+
# the item is not a folder. Only populated for items in shared drives.
|
|
1922
2389
|
# Corresponds to the JSON property `canTrashChildren`
|
|
1923
2390
|
# @return [Boolean]
|
|
1924
2391
|
attr_accessor :can_trash_children
|
|
@@ -1946,12 +2413,17 @@ module Google
|
|
|
1946
2413
|
@can_download = args[:can_download] if args.key?(:can_download)
|
|
1947
2414
|
@can_edit = args[:can_edit] if args.key?(:can_edit)
|
|
1948
2415
|
@can_list_children = args[:can_list_children] if args.key?(:can_list_children)
|
|
2416
|
+
@can_move_children_out_of_drive = args[:can_move_children_out_of_drive] if args.key?(:can_move_children_out_of_drive)
|
|
1949
2417
|
@can_move_children_out_of_team_drive = args[:can_move_children_out_of_team_drive] if args.key?(:can_move_children_out_of_team_drive)
|
|
2418
|
+
@can_move_children_within_drive = args[:can_move_children_within_drive] if args.key?(:can_move_children_within_drive)
|
|
1950
2419
|
@can_move_children_within_team_drive = args[:can_move_children_within_team_drive] if args.key?(:can_move_children_within_team_drive)
|
|
1951
2420
|
@can_move_item_into_team_drive = args[:can_move_item_into_team_drive] if args.key?(:can_move_item_into_team_drive)
|
|
2421
|
+
@can_move_item_out_of_drive = args[:can_move_item_out_of_drive] if args.key?(:can_move_item_out_of_drive)
|
|
1952
2422
|
@can_move_item_out_of_team_drive = args[:can_move_item_out_of_team_drive] if args.key?(:can_move_item_out_of_team_drive)
|
|
2423
|
+
@can_move_item_within_drive = args[:can_move_item_within_drive] if args.key?(:can_move_item_within_drive)
|
|
1953
2424
|
@can_move_item_within_team_drive = args[:can_move_item_within_team_drive] if args.key?(:can_move_item_within_team_drive)
|
|
1954
2425
|
@can_move_team_drive_item = args[:can_move_team_drive_item] if args.key?(:can_move_team_drive_item)
|
|
2426
|
+
@can_read_drive = args[:can_read_drive] if args.key?(:can_read_drive)
|
|
1955
2427
|
@can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
|
|
1956
2428
|
@can_read_team_drive = args[:can_read_team_drive] if args.key?(:can_read_team_drive)
|
|
1957
2429
|
@can_remove_children = args[:can_remove_children] if args.key?(:can_remove_children)
|
|
@@ -2211,8 +2683,8 @@ module Google
|
|
|
2211
2683
|
end
|
|
2212
2684
|
end
|
|
2213
2685
|
|
|
2214
|
-
# A thumbnail for the file. This will only be used if
|
|
2215
|
-
#
|
|
2686
|
+
# A thumbnail for the file. This will only be used if a standard thumbnail
|
|
2687
|
+
# cannot be generated.
|
|
2216
2688
|
class Thumbnail
|
|
2217
2689
|
include Google::Apis::Core::Hashable
|
|
2218
2690
|
|
|
@@ -2282,10 +2754,9 @@ module Google
|
|
|
2282
2754
|
|
|
2283
2755
|
# Whether the search process was incomplete. If true, then some search results
|
|
2284
2756
|
# may be missing, since all documents were not searched. This may occur when
|
|
2285
|
-
# searching multiple
|
|
2286
|
-
#
|
|
2287
|
-
#
|
|
2288
|
-
# "teamDrive".
|
|
2757
|
+
# searching multiple drives with the "allDrives" corpora, but all corpora could
|
|
2758
|
+
# not be searched. When this happens, it is suggested that clients narrow their
|
|
2759
|
+
# query by choosing a different corpus such as "default" or "drive".
|
|
2289
2760
|
# Corresponds to the JSON property `incompleteSearch`
|
|
2290
2761
|
# @return [Boolean]
|
|
2291
2762
|
attr_accessor :incomplete_search
|
|
@@ -2516,6 +2987,13 @@ module Google
|
|
|
2516
2987
|
# @return [String]
|
|
2517
2988
|
attr_accessor :name
|
|
2518
2989
|
|
|
2990
|
+
# Details of whether the permissions on this shared drive item are inherited or
|
|
2991
|
+
# directly on this item. This is an output-only field which is present only for
|
|
2992
|
+
# shared drive items.
|
|
2993
|
+
# Corresponds to the JSON property `permissionDetails`
|
|
2994
|
+
# @return [Array<Google::Apis::DriveV2::Permission::PermissionDetail>]
|
|
2995
|
+
attr_accessor :permission_details
|
|
2996
|
+
|
|
2519
2997
|
# A link to the profile photo, if available.
|
|
2520
2998
|
# Corresponds to the JSON property `photoLink`
|
|
2521
2999
|
# @return [String]
|
|
@@ -2537,9 +3015,7 @@ module Google
|
|
|
2537
3015
|
# @return [String]
|
|
2538
3016
|
attr_accessor :self_link
|
|
2539
3017
|
|
|
2540
|
-
#
|
|
2541
|
-
# directly on this item. This is an output-only field which is present only for
|
|
2542
|
-
# Team Drive items.
|
|
3018
|
+
# Deprecated - use permissionDetails instead.
|
|
2543
3019
|
# Corresponds to the JSON property `teamDrivePermissionDetails`
|
|
2544
3020
|
# @return [Array<Google::Apis::DriveV2::Permission::TeamDrivePermissionDetail>]
|
|
2545
3021
|
attr_accessor :team_drive_permission_details
|
|
@@ -2583,6 +3059,7 @@ module Google
|
|
|
2583
3059
|
@id = args[:id] if args.key?(:id)
|
|
2584
3060
|
@kind = args[:kind] if args.key?(:kind)
|
|
2585
3061
|
@name = args[:name] if args.key?(:name)
|
|
3062
|
+
@permission_details = args[:permission_details] if args.key?(:permission_details)
|
|
2586
3063
|
@photo_link = args[:photo_link] if args.key?(:photo_link)
|
|
2587
3064
|
@role = args[:role] if args.key?(:role)
|
|
2588
3065
|
@self_link = args[:self_link] if args.key?(:self_link)
|
|
@@ -2592,6 +3069,61 @@ module Google
|
|
|
2592
3069
|
@with_link = args[:with_link] if args.key?(:with_link)
|
|
2593
3070
|
end
|
|
2594
3071
|
|
|
3072
|
+
#
|
|
3073
|
+
class PermissionDetail
|
|
3074
|
+
include Google::Apis::Core::Hashable
|
|
3075
|
+
|
|
3076
|
+
# Additional roles for this user. Only commenter is currently possible, though
|
|
3077
|
+
# more may be supported in the future.
|
|
3078
|
+
# Corresponds to the JSON property `additionalRoles`
|
|
3079
|
+
# @return [Array<String>]
|
|
3080
|
+
attr_accessor :additional_roles
|
|
3081
|
+
|
|
3082
|
+
# Whether this permission is inherited. This field is always populated. This is
|
|
3083
|
+
# an output-only field.
|
|
3084
|
+
# Corresponds to the JSON property `inherited`
|
|
3085
|
+
# @return [Boolean]
|
|
3086
|
+
attr_accessor :inherited
|
|
3087
|
+
alias_method :inherited?, :inherited
|
|
3088
|
+
|
|
3089
|
+
# The ID of the item from which this permission is inherited. This is an output-
|
|
3090
|
+
# only field and is only populated for members of the shared drive.
|
|
3091
|
+
# Corresponds to the JSON property `inheritedFrom`
|
|
3092
|
+
# @return [String]
|
|
3093
|
+
attr_accessor :inherited_from
|
|
3094
|
+
|
|
3095
|
+
# The permission type for this user. While new values may be added in future,
|
|
3096
|
+
# the following are currently possible:
|
|
3097
|
+
# - file
|
|
3098
|
+
# - member
|
|
3099
|
+
# Corresponds to the JSON property `permissionType`
|
|
3100
|
+
# @return [String]
|
|
3101
|
+
attr_accessor :permission_type
|
|
3102
|
+
|
|
3103
|
+
# The primary role for this user. While new values may be added in the future,
|
|
3104
|
+
# the following are currently possible:
|
|
3105
|
+
# - organizer
|
|
3106
|
+
# - fileOrganizer
|
|
3107
|
+
# - writer
|
|
3108
|
+
# - reader
|
|
3109
|
+
# Corresponds to the JSON property `role`
|
|
3110
|
+
# @return [String]
|
|
3111
|
+
attr_accessor :role
|
|
3112
|
+
|
|
3113
|
+
def initialize(**args)
|
|
3114
|
+
update!(**args)
|
|
3115
|
+
end
|
|
3116
|
+
|
|
3117
|
+
# Update properties of this object
|
|
3118
|
+
def update!(**args)
|
|
3119
|
+
@additional_roles = args[:additional_roles] if args.key?(:additional_roles)
|
|
3120
|
+
@inherited = args[:inherited] if args.key?(:inherited)
|
|
3121
|
+
@inherited_from = args[:inherited_from] if args.key?(:inherited_from)
|
|
3122
|
+
@permission_type = args[:permission_type] if args.key?(:permission_type)
|
|
3123
|
+
@role = args[:role] if args.key?(:role)
|
|
3124
|
+
end
|
|
3125
|
+
end
|
|
3126
|
+
|
|
2595
3127
|
#
|
|
2596
3128
|
class TeamDrivePermissionDetail
|
|
2597
3129
|
include Google::Apis::Core::Hashable
|