google-api-client 0.29.0 → 0.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +122 -0
- data/README.md +1 -1
- data/bin/generate-api +4 -2
- data/generated/google/apis/abusiveexperiencereport_v1/service.rb +2 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -1
- data/generated/google/apis/accessapproval_v1beta1/classes.rb +27 -0
- data/generated/google/apis/accessapproval_v1beta1/representations.rb +15 -0
- data/generated/google/apis/accessapproval_v1beta1/service.rb +18 -18
- data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/service.rb +19 -19
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/service.rb +16 -16
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +0 -69
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +0 -32
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +62 -62
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_2/service.rb +7 -7
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -21
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +38 -38
- data/generated/google/apis/adexperiencereport_v1/service.rb +2 -2
- data/generated/google/apis/admin_datatransfer_v1/service.rb +5 -5
- data/generated/google/apis/admin_directory_v1/service.rb +113 -113
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4/service.rb +39 -39
- data/generated/google/apis/adsensehost_v4_1/service.rb +26 -26
- data/generated/google/apis/alertcenter_v1beta1/service.rb +8 -8
- data/generated/google/apis/analytics_v2_4/service.rb +6 -6
- data/generated/google/apis/analytics_v3/service.rb +88 -88
- data/generated/google/apis/analyticsreporting_v4/service.rb +2 -2
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +26 -26
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/service.rb +85 -85
- data/generated/google/apis/androidmanagement_v1/classes.rb +111 -2
- data/generated/google/apis/androidmanagement_v1/representations.rb +48 -0
- data/generated/google/apis/androidmanagement_v1/service.rb +26 -26
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v1/service.rb +2 -2
- data/generated/google/apis/androidpublisher_v1_1/service.rb +3 -3
- data/generated/google/apis/androidpublisher_v2/service.rb +58 -58
- data/generated/google/apis/androidpublisher_v3/classes.rb +81 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +42 -0
- data/generated/google/apis/androidpublisher_v3/service.rb +228 -52
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +2 -2
- data/generated/google/apis/appengine_v1/service.rb +38 -38
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1alpha/classes.rb +2 -2
- data/generated/google/apis/appengine_v1alpha/service.rb +15 -15
- data/generated/google/apis/appengine_v1alpha.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +2 -2
- data/generated/google/apis/appengine_v1beta/service.rb +38 -38
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta4/service.rb +20 -20
- data/generated/google/apis/appengine_v1beta5/service.rb +20 -20
- data/generated/google/apis/appsactivity_v1/service.rb +1 -1
- data/generated/google/apis/appsmarket_v2/service.rb +3 -3
- data/generated/google/apis/appstate_v1/service.rb +5 -5
- data/generated/google/apis/bigquery_v2/classes.rb +53 -33
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/bigquery_v2/service.rb +26 -26
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +30 -30
- data/generated/google/apis/bigtableadmin_v1/service.rb +2 -2
- data/generated/google/apis/bigtableadmin_v2/service.rb +34 -34
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +17 -13
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/blogger_v2/service.rb +9 -9
- data/generated/google/apis/blogger_v3/service.rb +33 -33
- data/generated/google/apis/books_v1/service.rb +51 -51
- data/generated/google/apis/calendar_v3/classes.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +45 -45
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/chat_v1/service.rb +8 -8
- data/generated/google/apis/civicinfo_v2/service.rb +5 -5
- data/generated/google/apis/classroom_v1/service.rb +57 -56
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/service.rb +3 -3
- data/generated/google/apis/cloudasset_v1beta1/service.rb +8 -8
- data/generated/google/apis/cloudbilling_v1/service.rb +12 -12
- data/generated/google/apis/cloudbuild_v1/classes.rb +7 -1
- data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +14 -14
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/service.rb +5 -5
- data/generated/google/apis/clouddebugger_v2/service.rb +8 -8
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +6 -6
- data/generated/google/apis/cloudfunctions_v1/classes.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +14 -14
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +11 -11
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/service.rb +12 -12
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +11 -11
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/service.rb +23 -330
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/service.rb +30 -30
- data/generated/google/apis/cloudprivatecatalog_v1beta1/service.rb +10 -10
- data/generated/google/apis/cloudprivatecatalog_v1beta1.rb +2 -2
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +1 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +30 -30
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +2 -2
- data/generated/google/apis/cloudprofiler_v2/service.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +38 -38
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +16 -16
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/service.rb +12 -12
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +12 -12
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1/service.rb +10 -10
- data/generated/google/apis/cloudscheduler_v1beta1/service.rb +10 -10
- data/generated/google/apis/cloudsearch_v1/classes.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/service.rb +35 -35
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1/classes.rb +1 -1
- data/generated/google/apis/cloudshell_v1/service.rb +4 -4
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/service.rb +6 -6
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +22 -18
- data/generated/google/apis/cloudtasks_v2/service.rb +24 -24
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +22 -14
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +28 -28
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +266 -18
- data/generated/google/apis/cloudtasks_v2beta3/representations.rb +65 -0
- data/generated/google/apis/cloudtasks_v2beta3/service.rb +24 -24
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/service.rb +3 -3
- data/generated/google/apis/cloudtrace_v2/service.rb +2 -2
- data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +2 -2
- data/generated/google/apis/composer_v1/service.rb +9 -9
- data/generated/google/apis/composer_v1beta1/service.rb +9 -9
- data/generated/google/apis/compute_alpha/classes.rb +29 -0
- data/generated/google/apis/compute_alpha/representations.rb +15 -0
- data/generated/google/apis/compute_alpha/service.rb +625 -623
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_beta/service.rb +504 -503
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_v1/service.rb +411 -410
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +2 -1
- data/generated/google/apis/container_v1/service.rb +63 -63
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +52 -4
- data/generated/google/apis/container_v1beta1/representations.rb +20 -0
- data/generated/google/apis/container_v1beta1/service.rb +64 -64
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/service.rb +33 -33
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/service.rb +24 -24
- data/generated/google/apis/content_v2/classes.rb +9 -3
- data/generated/google/apis/content_v2/service.rb +101 -105
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +9 -3
- data/generated/google/apis/content_v2_1/service.rb +89 -93
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/customsearch_v1/service.rb +2 -2
- data/generated/google/apis/dataflow_v1b3/classes.rb +22 -1
- data/generated/google/apis/dataflow_v1b3/representations.rb +3 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +38 -38
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/datafusion_v1beta1/classes.rb +1 -1
- data/generated/google/apis/datafusion_v1beta1/service.rb +16 -16
- data/generated/google/apis/datafusion_v1beta1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +2 -2
- data/generated/google/apis/dataproc_v1/service.rb +261 -45
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +2 -2
- data/generated/google/apis/dataproc_v1beta2/service.rb +62 -65
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/datastore_v1/service.rb +15 -15
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1beta1/service.rb +2 -2
- data/generated/google/apis/datastore_v1beta3/service.rb +7 -7
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/service.rb +37 -37
- data/generated/google/apis/deploymentmanager_v2/service.rb +18 -18
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +32 -32
- data/generated/google/apis/dfareporting_v3_1/service.rb +206 -206
- data/generated/google/apis/dfareporting_v3_2/service.rb +206 -206
- data/generated/google/apis/dfareporting_v3_3/service.rb +204 -204
- data/generated/google/apis/dialogflow_v2/classes.rb +8 -8
- data/generated/google/apis/dialogflow_v2/service.rb +36 -36
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +9 -9
- data/generated/google/apis/dialogflow_v2beta1/service.rb +114 -70
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/digitalassetlinks_v1/service.rb +7 -6
- data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
- data/generated/google/apis/discovery_v1/service.rb +2 -2
- data/generated/google/apis/dlp_v2/classes.rb +8 -2
- data/generated/google/apis/dlp_v2/service.rb +51 -46
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dns_v1/service.rb +15 -15
- data/generated/google/apis/dns_v1beta2/service.rb +21 -21
- data/generated/google/apis/dns_v2beta1/service.rb +16 -16
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +137 -0
- data/generated/google/apis/docs_v1/representations.rb +57 -0
- data/generated/google/apis/docs_v1/service.rb +3 -3
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +9 -9
- data/generated/google/apis/doubleclicksearch_v2/service.rb +10 -10
- data/generated/google/apis/drive_v2/classes.rb +10 -21
- data/generated/google/apis/drive_v2/service.rb +152 -100
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +9 -20
- data/generated/google/apis/drive_v3/service.rb +100 -64
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/driveactivity_v2/service.rb +1 -1
- data/generated/google/apis/factchecktools_v1alpha1/service.rb +6 -6
- data/generated/google/apis/fcm_v1/classes.rb +424 -0
- data/generated/google/apis/fcm_v1/representations.rb +167 -0
- data/generated/google/apis/fcm_v1/service.rb +97 -0
- data/generated/google/apis/fcm_v1.rb +35 -0
- data/generated/google/apis/file_v1/classes.rb +52 -1
- data/generated/google/apis/file_v1/representations.rb +16 -0
- data/generated/google/apis/file_v1/service.rb +11 -11
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +52 -1
- data/generated/google/apis/file_v1beta1/representations.rb +16 -0
- data/generated/google/apis/file_v1beta1/service.rb +11 -11
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +5 -5
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +14 -14
- data/generated/google/apis/firebaserules_v1/service.rb +11 -11
- data/generated/google/apis/firestore_v1/service.rb +28 -28
- data/generated/google/apis/firestore_v1beta1/service.rb +19 -19
- data/generated/google/apis/firestore_v1beta2/service.rb +9 -9
- data/generated/google/apis/fitness_v1/service.rb +13 -13
- data/generated/google/apis/fusiontables_v1/service.rb +32 -32
- data/generated/google/apis/fusiontables_v2/service.rb +34 -34
- data/generated/google/apis/games_configuration_v1configuration/service.rb +13 -13
- data/generated/google/apis/games_management_v1management/service.rb +27 -27
- data/generated/google/apis/games_v1/service.rb +53 -53
- data/generated/google/apis/genomics_v1/service.rb +3 -3
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +2 -2
- data/generated/google/apis/genomics_v1alpha2/service.rb +10 -10
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +7 -0
- data/generated/google/apis/genomics_v2alpha1/representations.rb +1 -0
- data/generated/google/apis/genomics_v2alpha1/service.rb +5 -5
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/gmail_v1/service.rb +68 -68
- data/generated/google/apis/groupsmigration_v1/service.rb +1 -1
- data/generated/google/apis/groupssettings_v1/service.rb +3 -3
- data/generated/google/apis/healthcare_v1alpha2/classes.rb +2849 -0
- data/generated/google/apis/healthcare_v1alpha2/representations.rb +1260 -0
- data/generated/google/apis/healthcare_v1alpha2/service.rb +4011 -0
- data/generated/google/apis/healthcare_v1alpha2.rb +34 -0
- data/generated/google/apis/healthcare_v1beta1/classes.rb +4 -2
- data/generated/google/apis/healthcare_v1beta1/service.rb +97 -87
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +48 -0
- data/generated/google/apis/iam_v1/representations.rb +28 -0
- data/generated/google/apis/iam_v1/service.rb +59 -42
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iamcredentials_v1/service.rb +5 -5
- data/generated/google/apis/iap_v1/service.rb +3 -3
- data/generated/google/apis/iap_v1beta1/service.rb +3 -3
- data/generated/google/apis/identitytoolkit_v3/service.rb +20 -20
- data/generated/google/apis/indexing_v3/service.rb +2 -2
- data/generated/google/apis/jobs_v2/service.rb +17 -17
- data/generated/google/apis/jobs_v3/service.rb +15 -15
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +2 -2
- data/generated/google/apis/jobs_v3p1beta1/service.rb +16 -16
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +1 -1
- data/generated/google/apis/language_v1/service.rb +6 -6
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1beta1/service.rb +4 -4
- data/generated/google/apis/language_v1beta2/service.rb +6 -6
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/libraryagent_v1/service.rb +6 -6
- data/generated/google/apis/licensing_v1/service.rb +7 -7
- data/generated/google/apis/logging_v2/classes.rb +6 -0
- data/generated/google/apis/logging_v2/representations.rb +1 -0
- data/generated/google/apis/logging_v2/service.rb +72 -72
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/manufacturers_v1/service.rb +4 -4
- data/generated/google/apis/mirror_v1/service.rb +24 -24
- data/generated/google/apis/ml_v1/classes.rb +73 -55
- data/generated/google/apis/ml_v1/service.rb +31 -31
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +14 -1
- data/generated/google/apis/monitoring_v3/representations.rb +2 -0
- data/generated/google/apis/monitoring_v3/service.rb +36 -36
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/oauth2_v1/service.rb +3 -3
- data/generated/google/apis/oauth2_v2/service.rb +4 -4
- data/generated/google/apis/oslogin_v1/service.rb +6 -6
- data/generated/google/apis/oslogin_v1alpha/service.rb +6 -6
- data/generated/google/apis/oslogin_v1beta/service.rb +6 -6
- data/generated/google/apis/pagespeedonline_v1/service.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
- data/generated/google/apis/pagespeedonline_v4/service.rb +1 -1
- data/generated/google/apis/pagespeedonline_v5/classes.rb +43 -0
- data/generated/google/apis/pagespeedonline_v5/representations.rb +18 -0
- data/generated/google/apis/pagespeedonline_v5/service.rb +1 -1
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/people_v1/service.rb +13 -13
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/playcustomapp_v1/service.rb +1 -1
- data/generated/google/apis/plus_domains_v1/service.rb +10 -10
- data/generated/google/apis/plus_v1/service.rb +9 -9
- data/generated/google/apis/poly_v1/service.rb +4 -4
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +17 -17
- data/generated/google/apis/pubsub_v1/service.rb +32 -32
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1beta1a/service.rb +15 -15
- data/generated/google/apis/pubsub_v1beta2/service.rb +20 -20
- data/generated/google/apis/redis_v1/service.rb +19 -19
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +1 -1
- data/generated/google/apis/redis_v1beta1/service.rb +15 -15
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/service.rb +7 -7
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/service.rb +10 -10
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/service.rb +9 -9
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/replicapool_v1beta1/service.rb +10 -10
- data/generated/google/apis/reseller_v1/service.rb +17 -17
- data/generated/google/apis/run_v1/service.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +427 -0
- data/generated/google/apis/run_v1alpha1/representations.rb +162 -0
- data/generated/google/apis/run_v1alpha1/service.rb +446 -38
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/service.rb +3 -3
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +22 -22
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/safebrowsing_v4/service.rb +7 -7
- data/generated/google/apis/script_v1/classes.rb +167 -0
- data/generated/google/apis/script_v1/representations.rb +79 -0
- data/generated/google/apis/script_v1/service.rb +16 -16
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/service.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +1 -1
- data/generated/google/apis/securitycenter_v1/service.rb +23 -23
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/service.rb +23 -23
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1/service.rb +3 -3
- data/generated/google/apis/servicebroker_v1alpha1/service.rb +16 -16
- data/generated/google/apis/servicebroker_v1beta1/service.rb +21 -21
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +14 -60
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +2 -29
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +14 -14
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +12 -0
- data/generated/google/apis/servicecontrol_v1/representations.rb +2 -0
- data/generated/google/apis/servicecontrol_v1/service.rb +3 -3
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +40 -60
- data/generated/google/apis/servicemanagement_v1/representations.rb +13 -26
- data/generated/google/apis/servicemanagement_v1/service.rb +24 -24
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +14 -60
- data/generated/google/apis/servicenetworking_v1/representations.rb +2 -29
- data/generated/google/apis/servicenetworking_v1/service.rb +9 -9
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +14 -60
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +2 -29
- data/generated/google/apis/servicenetworking_v1beta/service.rb +6 -6
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +14 -60
- data/generated/google/apis/serviceusage_v1/representations.rb +2 -29
- data/generated/google/apis/serviceusage_v1/service.rb +17 -19
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +14 -60
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +2 -29
- data/generated/google/apis/serviceusage_v1beta1/service.rb +7 -7
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/sheets_v4/service.rb +17 -17
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/site_verification_v1/service.rb +7 -7
- data/generated/google/apis/slides_v1/service.rb +5 -5
- data/generated/google/apis/sourcerepo_v1/service.rb +11 -11
- data/generated/google/apis/spanner_v1/classes.rb +51 -9
- data/generated/google/apis/spanner_v1/representations.rb +17 -0
- data/generated/google/apis/spanner_v1/service.rb +41 -41
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +2 -2
- data/generated/google/apis/speech_v1/service.rb +7 -7
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +2 -2
- data/generated/google/apis/speech_v1p1beta1/service.rb +7 -7
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +12 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +44 -44
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +2 -2
- data/generated/google/apis/storage_v1/representations.rb +2 -1
- data/generated/google/apis/storage_v1/service.rb +52 -52
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1beta1/service.rb +24 -24
- data/generated/google/apis/storage_v1beta2/service.rb +34 -34
- data/generated/google/apis/storagetransfer_v1/classes.rb +13 -20
- data/generated/google/apis/storagetransfer_v1/service.rb +31 -32
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/service.rb +9 -9
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/surveys_v2/service.rb +8 -8
- data/generated/google/apis/tagmanager_v1/service.rb +49 -49
- data/generated/google/apis/tagmanager_v2/service.rb +74 -74
- data/generated/google/apis/tasks_v1/service.rb +14 -14
- data/generated/google/apis/testing_v1/classes.rb +25 -12
- data/generated/google/apis/testing_v1/representations.rb +2 -0
- data/generated/google/apis/testing_v1/service.rb +5 -5
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/texttospeech_v1/service.rb +2 -2
- data/generated/google/apis/texttospeech_v1beta1/service.rb +2 -2
- data/generated/google/apis/toolresults_v1beta3/classes.rb +8 -17
- data/generated/google/apis/toolresults_v1beta3/service.rb +26 -26
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +1 -1
- data/generated/google/apis/tpu_v1/service.rb +17 -17
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/service.rb +17 -17
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/translate_v2/service.rb +5 -5
- data/generated/google/apis/urlshortener_v1/service.rb +3 -3
- data/generated/google/apis/vault_v1/service.rb +28 -28
- data/generated/google/apis/videointelligence_v1/service.rb +5 -5
- data/generated/google/apis/videointelligence_v1beta2/service.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/service.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/service.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/service.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +2372 -73
- data/generated/google/apis/vision_v1/representations.rb +1643 -651
- data/generated/google/apis/vision_v1/service.rb +98 -35
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +2371 -52
- data/generated/google/apis/vision_v1p1beta1/representations.rb +1733 -727
- data/generated/google/apis/vision_v1p1beta1/service.rb +73 -2
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +2371 -52
- data/generated/google/apis/vision_v1p2beta1/representations.rb +1733 -727
- data/generated/google/apis/vision_v1p2beta1/service.rb +73 -2
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/webfonts_v1/service.rb +1 -1
- data/generated/google/apis/webmasters_v3/service.rb +9 -9
- data/generated/google/apis/websecurityscanner_v1alpha/service.rb +13 -13
- data/generated/google/apis/websecurityscanner_v1beta/service.rb +13 -13
- data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
- data/generated/google/apis/youtube_analytics_v1beta1/service.rb +8 -8
- data/generated/google/apis/youtube_analytics_v2/service.rb +8 -8
- data/generated/google/apis/youtube_partner_v1/service.rb +74 -74
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3/service.rb +71 -71
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/service.rb +8 -8
- data/google-api-client.gemspec +1 -1
- data/lib/google/apis/core/json_representation.rb +4 -0
- data/lib/google/apis/core/upload.rb +3 -3
- data/lib/google/apis/generator/templates/_method.tmpl +3 -3
- data/lib/google/apis/version.rb +1 -1
- metadata +13 -6
- data/samples/web/.env +0 -2
|
@@ -83,7 +83,7 @@ module Google
|
|
|
83
83
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
84
84
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
85
85
|
def get_about(include_subscribed: nil, max_change_id_count: nil, start_change_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
86
|
-
command =
|
|
86
|
+
command = make_simple_command(:get, 'about', options)
|
|
87
87
|
command.response_representation = Google::Apis::DriveV2::About::Representation
|
|
88
88
|
command.response_class = Google::Apis::DriveV2::About
|
|
89
89
|
command.query['includeSubscribed'] = include_subscribed unless include_subscribed.nil?
|
|
@@ -118,7 +118,7 @@ module Google
|
|
|
118
118
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
119
119
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
120
120
|
def get_app(app_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
121
|
-
command =
|
|
121
|
+
command = make_simple_command(:get, 'apps/{appId}', options)
|
|
122
122
|
command.response_representation = Google::Apis::DriveV2::App::Representation
|
|
123
123
|
command.response_class = Google::Apis::DriveV2::App
|
|
124
124
|
command.params['appId'] = app_id unless app_id.nil?
|
|
@@ -162,7 +162,7 @@ module Google
|
|
|
162
162
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
163
163
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
164
164
|
def list_apps(app_filter_extensions: nil, app_filter_mime_types: nil, language_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
165
|
-
command =
|
|
165
|
+
command = make_simple_command(:get, 'apps', options)
|
|
166
166
|
command.response_representation = Google::Apis::DriveV2::AppList::Representation
|
|
167
167
|
command.response_class = Google::Apis::DriveV2::AppList
|
|
168
168
|
command.query['appFilterExtensions'] = app_filter_extensions unless app_filter_extensions.nil?
|
|
@@ -181,7 +181,9 @@ module Google
|
|
|
181
181
|
# @param [String] drive_id
|
|
182
182
|
# The shared drive from which the change will be returned.
|
|
183
183
|
# @param [Boolean] supports_all_drives
|
|
184
|
-
# Whether the requesting application supports both My Drives and
|
|
184
|
+
# Deprecated - Whether the requesting application supports both My Drives and
|
|
185
|
+
# shared drives. This parameter will only be effective until June 1, 2020.
|
|
186
|
+
# Afterwards all applications are assumed to support shared drives.
|
|
185
187
|
# @param [Boolean] supports_team_drives
|
|
186
188
|
# Deprecated use supportsAllDrives instead.
|
|
187
189
|
# @param [String] team_drive_id
|
|
@@ -206,7 +208,7 @@ module Google
|
|
|
206
208
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
207
209
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
208
210
|
def get_change(change_id, drive_id: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
209
|
-
command =
|
|
211
|
+
command = make_simple_command(:get, 'changes/{changeId}', options)
|
|
210
212
|
command.response_representation = Google::Apis::DriveV2::Change::Representation
|
|
211
213
|
command.response_class = Google::Apis::DriveV2::Change
|
|
212
214
|
command.params['changeId'] = change_id unless change_id.nil?
|
|
@@ -225,7 +227,9 @@ module Google
|
|
|
225
227
|
# The ID of the shared drive for which the starting pageToken for listing future
|
|
226
228
|
# changes from that shared drive will be returned.
|
|
227
229
|
# @param [Boolean] supports_all_drives
|
|
228
|
-
# Whether the requesting application supports both My Drives and
|
|
230
|
+
# Deprecated - Whether the requesting application supports both My Drives and
|
|
231
|
+
# shared drives. This parameter will only be effective until June 1, 2020.
|
|
232
|
+
# Afterwards all applications are assumed to support shared drives.
|
|
229
233
|
# @param [Boolean] supports_team_drives
|
|
230
234
|
# Deprecated use supportsAllDrives instead.
|
|
231
235
|
# @param [String] team_drive_id
|
|
@@ -250,7 +254,7 @@ module Google
|
|
|
250
254
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
251
255
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
252
256
|
def get_change_start_page_token(drive_id: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
253
|
-
command =
|
|
257
|
+
command = make_simple_command(:get, 'changes/startPageToken', options)
|
|
254
258
|
command.response_representation = Google::Apis::DriveV2::StartPageToken::Representation
|
|
255
259
|
command.response_class = Google::Apis::DriveV2::StartPageToken
|
|
256
260
|
command.query['driveId'] = drive_id unless drive_id.nil?
|
|
@@ -277,7 +281,9 @@ module Google
|
|
|
277
281
|
# Whether to include changes indicating that items have been removed from the
|
|
278
282
|
# list of changes, for example by deletion or loss of access.
|
|
279
283
|
# @param [Boolean] include_items_from_all_drives
|
|
280
|
-
# Whether both My Drive and shared drive items should be included
|
|
284
|
+
# Deprecated - Whether both My Drive and shared drive items should be included
|
|
285
|
+
# in results. This parameter will only be effective until June 1, 2020.
|
|
286
|
+
# Afterwards shared drive items will be included in the results.
|
|
281
287
|
# @param [Boolean] include_subscribed
|
|
282
288
|
# Whether to include changes outside the My Drive hierarchy in the result. When
|
|
283
289
|
# set to false, changes to files such as those in the Application Data folder or
|
|
@@ -297,7 +303,9 @@ module Google
|
|
|
297
303
|
# @param [Fixnum] start_change_id
|
|
298
304
|
# Deprecated - use pageToken instead.
|
|
299
305
|
# @param [Boolean] supports_all_drives
|
|
300
|
-
# Whether the requesting application supports both My Drives and
|
|
306
|
+
# Deprecated - Whether the requesting application supports both My Drives and
|
|
307
|
+
# shared drives. This parameter will only be effective until June 1, 2020.
|
|
308
|
+
# Afterwards all applications are assumed to support shared drives.
|
|
301
309
|
# @param [Boolean] supports_team_drives
|
|
302
310
|
# Deprecated use supportsAllDrives instead.
|
|
303
311
|
# @param [String] team_drive_id
|
|
@@ -322,7 +330,7 @@ module Google
|
|
|
322
330
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
323
331
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
324
332
|
def list_changes(drive_id: nil, include_corpus_removals: nil, include_deleted: nil, include_items_from_all_drives: nil, include_subscribed: nil, include_team_drive_items: nil, max_results: nil, page_token: nil, spaces: nil, start_change_id: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
325
|
-
command =
|
|
333
|
+
command = make_simple_command(:get, 'changes', options)
|
|
326
334
|
command.response_representation = Google::Apis::DriveV2::ChangeList::Representation
|
|
327
335
|
command.response_class = Google::Apis::DriveV2::ChangeList
|
|
328
336
|
command.query['driveId'] = drive_id unless drive_id.nil?
|
|
@@ -359,7 +367,9 @@ module Google
|
|
|
359
367
|
# Whether to include changes indicating that items have been removed from the
|
|
360
368
|
# list of changes, for example by deletion or loss of access.
|
|
361
369
|
# @param [Boolean] include_items_from_all_drives
|
|
362
|
-
# Whether both My Drive and shared drive items should be included
|
|
370
|
+
# Deprecated - Whether both My Drive and shared drive items should be included
|
|
371
|
+
# in results. This parameter will only be effective until June 1, 2020.
|
|
372
|
+
# Afterwards shared drive items will be included in the results.
|
|
363
373
|
# @param [Boolean] include_subscribed
|
|
364
374
|
# Whether to include changes outside the My Drive hierarchy in the result. When
|
|
365
375
|
# set to false, changes to files such as those in the Application Data folder or
|
|
@@ -379,7 +389,9 @@ module Google
|
|
|
379
389
|
# @param [Fixnum] start_change_id
|
|
380
390
|
# Deprecated - use pageToken instead.
|
|
381
391
|
# @param [Boolean] supports_all_drives
|
|
382
|
-
# Whether the requesting application supports both My Drives and
|
|
392
|
+
# Deprecated - Whether the requesting application supports both My Drives and
|
|
393
|
+
# shared drives. This parameter will only be effective until June 1, 2020.
|
|
394
|
+
# Afterwards all applications are assumed to support shared drives.
|
|
383
395
|
# @param [Boolean] supports_team_drives
|
|
384
396
|
# Deprecated use supportsAllDrives instead.
|
|
385
397
|
# @param [String] team_drive_id
|
|
@@ -404,7 +416,7 @@ module Google
|
|
|
404
416
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
405
417
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
406
418
|
def watch_change(channel_object = nil, drive_id: nil, include_corpus_removals: nil, include_deleted: nil, include_items_from_all_drives: nil, include_subscribed: nil, include_team_drive_items: nil, max_results: nil, page_token: nil, spaces: nil, start_change_id: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
407
|
-
command =
|
|
419
|
+
command = make_simple_command(:post, 'changes/watch', options)
|
|
408
420
|
command.request_representation = Google::Apis::DriveV2::Channel::Representation
|
|
409
421
|
command.request_object = channel_object
|
|
410
422
|
command.response_representation = Google::Apis::DriveV2::Channel::Representation
|
|
@@ -450,7 +462,7 @@ module Google
|
|
|
450
462
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
451
463
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
452
464
|
def stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
453
|
-
command =
|
|
465
|
+
command = make_simple_command(:post, 'channels/stop', options)
|
|
454
466
|
command.request_representation = Google::Apis::DriveV2::Channel::Representation
|
|
455
467
|
command.request_object = channel_object
|
|
456
468
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -484,7 +496,7 @@ module Google
|
|
|
484
496
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
485
497
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
486
498
|
def delete_child(folder_id, child_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
487
|
-
command =
|
|
499
|
+
command = make_simple_command(:delete, 'files/{folderId}/children/{childId}', options)
|
|
488
500
|
command.params['folderId'] = folder_id unless folder_id.nil?
|
|
489
501
|
command.params['childId'] = child_id unless child_id.nil?
|
|
490
502
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -518,7 +530,7 @@ module Google
|
|
|
518
530
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
519
531
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
520
532
|
def get_child(folder_id, child_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
521
|
-
command =
|
|
533
|
+
command = make_simple_command(:get, 'files/{folderId}/children/{childId}', options)
|
|
522
534
|
command.response_representation = Google::Apis::DriveV2::ChildReference::Representation
|
|
523
535
|
command.response_class = Google::Apis::DriveV2::ChildReference
|
|
524
536
|
command.params['folderId'] = folder_id unless folder_id.nil?
|
|
@@ -534,7 +546,9 @@ module Google
|
|
|
534
546
|
# The ID of the folder.
|
|
535
547
|
# @param [Google::Apis::DriveV2::ChildReference] child_reference_object
|
|
536
548
|
# @param [Boolean] supports_all_drives
|
|
537
|
-
# Whether the requesting application supports both My Drives and
|
|
549
|
+
# Deprecated - Whether the requesting application supports both My Drives and
|
|
550
|
+
# shared drives. This parameter will only be effective until June 1, 2020.
|
|
551
|
+
# Afterwards all applications are assumed to support shared drives.
|
|
538
552
|
# @param [Boolean] supports_team_drives
|
|
539
553
|
# Deprecated use supportsAllDrives instead.
|
|
540
554
|
# @param [String] fields
|
|
@@ -557,7 +571,7 @@ module Google
|
|
|
557
571
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
558
572
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
559
573
|
def insert_child(folder_id, child_reference_object = nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
560
|
-
command =
|
|
574
|
+
command = make_simple_command(:post, 'files/{folderId}/children', options)
|
|
561
575
|
command.request_representation = Google::Apis::DriveV2::ChildReference::Representation
|
|
562
576
|
command.request_object = child_reference_object
|
|
563
577
|
command.response_representation = Google::Apis::DriveV2::ChildReference::Representation
|
|
@@ -608,7 +622,7 @@ module Google
|
|
|
608
622
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
609
623
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
610
624
|
def list_children(folder_id, max_results: nil, order_by: nil, page_token: nil, q: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
611
|
-
command =
|
|
625
|
+
command = make_simple_command(:get, 'files/{folderId}/children', options)
|
|
612
626
|
command.response_representation = Google::Apis::DriveV2::ChildList::Representation
|
|
613
627
|
command.response_class = Google::Apis::DriveV2::ChildList
|
|
614
628
|
command.params['folderId'] = folder_id unless folder_id.nil?
|
|
@@ -647,7 +661,7 @@ module Google
|
|
|
647
661
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
648
662
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
649
663
|
def delete_comment(file_id, comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
650
|
-
command =
|
|
664
|
+
command = make_simple_command(:delete, 'files/{fileId}/comments/{commentId}', options)
|
|
651
665
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
652
666
|
command.params['commentId'] = comment_id unless comment_id.nil?
|
|
653
667
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -684,7 +698,7 @@ module Google
|
|
|
684
698
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
685
699
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
686
700
|
def get_comment(file_id, comment_id, include_deleted: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
687
|
-
command =
|
|
701
|
+
command = make_simple_command(:get, 'files/{fileId}/comments/{commentId}', options)
|
|
688
702
|
command.response_representation = Google::Apis::DriveV2::Comment::Representation
|
|
689
703
|
command.response_class = Google::Apis::DriveV2::Comment
|
|
690
704
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
@@ -720,7 +734,7 @@ module Google
|
|
|
720
734
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
721
735
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
722
736
|
def insert_comment(file_id, comment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
723
|
-
command =
|
|
737
|
+
command = make_simple_command(:post, 'files/{fileId}/comments', options)
|
|
724
738
|
command.request_representation = Google::Apis::DriveV2::Comment::Representation
|
|
725
739
|
command.request_object = comment_object
|
|
726
740
|
command.response_representation = Google::Apis::DriveV2::Comment::Representation
|
|
@@ -767,7 +781,7 @@ module Google
|
|
|
767
781
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
768
782
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
769
783
|
def list_comments(file_id, include_deleted: nil, max_results: nil, page_token: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
770
|
-
command =
|
|
784
|
+
command = make_simple_command(:get, 'files/{fileId}/comments', options)
|
|
771
785
|
command.response_representation = Google::Apis::DriveV2::CommentList::Representation
|
|
772
786
|
command.response_class = Google::Apis::DriveV2::CommentList
|
|
773
787
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
@@ -807,7 +821,7 @@ module Google
|
|
|
807
821
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
808
822
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
809
823
|
def patch_comment(file_id, comment_id, comment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
810
|
-
command =
|
|
824
|
+
command = make_simple_command(:patch, 'files/{fileId}/comments/{commentId}', options)
|
|
811
825
|
command.request_representation = Google::Apis::DriveV2::Comment::Representation
|
|
812
826
|
command.request_object = comment_object
|
|
813
827
|
command.response_representation = Google::Apis::DriveV2::Comment::Representation
|
|
@@ -846,7 +860,7 @@ module Google
|
|
|
846
860
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
847
861
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
848
862
|
def update_comment(file_id, comment_id, comment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
849
|
-
command =
|
|
863
|
+
command = make_simple_command(:put, 'files/{fileId}/comments/{commentId}', options)
|
|
850
864
|
command.request_representation = Google::Apis::DriveV2::Comment::Representation
|
|
851
865
|
command.request_object = comment_object
|
|
852
866
|
command.response_representation = Google::Apis::DriveV2::Comment::Representation
|
|
@@ -883,7 +897,7 @@ module Google
|
|
|
883
897
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
884
898
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
885
899
|
def delete_drife(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
886
|
-
command =
|
|
900
|
+
command = make_simple_command(:delete, 'drives/{driveId}', options)
|
|
887
901
|
command.params['driveId'] = drive_id unless drive_id.nil?
|
|
888
902
|
command.query['fields'] = fields unless fields.nil?
|
|
889
903
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -918,7 +932,7 @@ module Google
|
|
|
918
932
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
919
933
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
920
934
|
def get_drife(drive_id, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
921
|
-
command =
|
|
935
|
+
command = make_simple_command(:get, 'drives/{driveId}', options)
|
|
922
936
|
command.response_representation = Google::Apis::DriveV2::Drive::Representation
|
|
923
937
|
command.response_class = Google::Apis::DriveV2::Drive
|
|
924
938
|
command.params['driveId'] = drive_id unless drive_id.nil?
|
|
@@ -952,7 +966,7 @@ module Google
|
|
|
952
966
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
953
967
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
954
968
|
def hide_drife(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
955
|
-
command =
|
|
969
|
+
command = make_simple_command(:post, 'drives/{driveId}/hide', options)
|
|
956
970
|
command.response_representation = Google::Apis::DriveV2::Drive::Representation
|
|
957
971
|
command.response_class = Google::Apis::DriveV2::Drive
|
|
958
972
|
command.params['driveId'] = drive_id unless drive_id.nil?
|
|
@@ -990,7 +1004,7 @@ module Google
|
|
|
990
1004
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
991
1005
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
992
1006
|
def insert_drife(request_id, drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
993
|
-
command =
|
|
1007
|
+
command = make_simple_command(:post, 'drives', options)
|
|
994
1008
|
command.request_representation = Google::Apis::DriveV2::Drive::Representation
|
|
995
1009
|
command.request_object = drive_object
|
|
996
1010
|
command.response_representation = Google::Apis::DriveV2::Drive::Representation
|
|
@@ -1032,7 +1046,7 @@ module Google
|
|
|
1032
1046
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1033
1047
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1034
1048
|
def list_drives(max_results: nil, page_token: nil, q: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1035
|
-
command =
|
|
1049
|
+
command = make_simple_command(:get, 'drives', options)
|
|
1036
1050
|
command.response_representation = Google::Apis::DriveV2::DriveList::Representation
|
|
1037
1051
|
command.response_class = Google::Apis::DriveV2::DriveList
|
|
1038
1052
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
@@ -1068,7 +1082,7 @@ module Google
|
|
|
1068
1082
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1069
1083
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1070
1084
|
def unhide_drife(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1071
|
-
command =
|
|
1085
|
+
command = make_simple_command(:post, 'drives/{driveId}/unhide', options)
|
|
1072
1086
|
command.response_representation = Google::Apis::DriveV2::Drive::Representation
|
|
1073
1087
|
command.response_class = Google::Apis::DriveV2::Drive
|
|
1074
1088
|
command.params['driveId'] = drive_id unless drive_id.nil?
|
|
@@ -1106,7 +1120,7 @@ module Google
|
|
|
1106
1120
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1107
1121
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1108
1122
|
def update_drife(drive_id, drive_object = nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1109
|
-
command =
|
|
1123
|
+
command = make_simple_command(:put, 'drives/{driveId}', options)
|
|
1110
1124
|
command.request_representation = Google::Apis::DriveV2::Drive::Representation
|
|
1111
1125
|
command.request_object = drive_object
|
|
1112
1126
|
command.response_representation = Google::Apis::DriveV2::Drive::Representation
|
|
@@ -1133,7 +1147,9 @@ module Google
|
|
|
1133
1147
|
# Whether to pin the head revision of the new copy. A file can have a maximum of
|
|
1134
1148
|
# 200 pinned revisions.
|
|
1135
1149
|
# @param [Boolean] supports_all_drives
|
|
1136
|
-
# Whether the requesting application supports both My Drives and
|
|
1150
|
+
# Deprecated - Whether the requesting application supports both My Drives and
|
|
1151
|
+
# shared drives. This parameter will only be effective until June 1, 2020.
|
|
1152
|
+
# Afterwards all applications are assumed to support shared drives.
|
|
1137
1153
|
# @param [Boolean] supports_team_drives
|
|
1138
1154
|
# Deprecated use supportsAllDrives instead.
|
|
1139
1155
|
# @param [String] timed_text_language
|
|
@@ -1163,7 +1179,7 @@ module Google
|
|
|
1163
1179
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1164
1180
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1165
1181
|
def copy_file(file_id, file_object = nil, convert: nil, ocr: nil, ocr_language: nil, pinned: nil, supports_all_drives: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1166
|
-
command =
|
|
1182
|
+
command = make_simple_command(:post, 'files/{fileId}/copy', options)
|
|
1167
1183
|
command.request_representation = Google::Apis::DriveV2::File::Representation
|
|
1168
1184
|
command.request_object = file_object
|
|
1169
1185
|
command.response_representation = Google::Apis::DriveV2::File::Representation
|
|
@@ -1189,7 +1205,9 @@ module Google
|
|
|
1189
1205
|
# @param [String] file_id
|
|
1190
1206
|
# The ID of the file to delete.
|
|
1191
1207
|
# @param [Boolean] supports_all_drives
|
|
1192
|
-
# Whether the requesting application supports both My Drives and
|
|
1208
|
+
# Deprecated - Whether the requesting application supports both My Drives and
|
|
1209
|
+
# shared drives. This parameter will only be effective until June 1, 2020.
|
|
1210
|
+
# Afterwards all applications are assumed to support shared drives.
|
|
1193
1211
|
# @param [Boolean] supports_team_drives
|
|
1194
1212
|
# Deprecated use supportsAllDrives instead.
|
|
1195
1213
|
# @param [String] fields
|
|
@@ -1212,7 +1230,7 @@ module Google
|
|
|
1212
1230
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1213
1231
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1214
1232
|
def delete_file(file_id, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1215
|
-
command =
|
|
1233
|
+
command = make_simple_command(:delete, 'files/{fileId}', options)
|
|
1216
1234
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1217
1235
|
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
1218
1236
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
|
@@ -1243,7 +1261,7 @@ module Google
|
|
|
1243
1261
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1244
1262
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1245
1263
|
def empty_trash(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1246
|
-
command =
|
|
1264
|
+
command = make_simple_command(:delete, 'files/trash', options)
|
|
1247
1265
|
command.query['fields'] = fields unless fields.nil?
|
|
1248
1266
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1249
1267
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -1279,7 +1297,7 @@ module Google
|
|
|
1279
1297
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1280
1298
|
def export_file(file_id, mime_type, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
|
1281
1299
|
if download_dest.nil?
|
|
1282
|
-
command =
|
|
1300
|
+
command = make_simple_command(:get, 'files/{fileId}/export', options)
|
|
1283
1301
|
else
|
|
1284
1302
|
command = make_download_command(:get, 'files/{fileId}/export', options)
|
|
1285
1303
|
command.download_dest = download_dest
|
|
@@ -1318,7 +1336,7 @@ module Google
|
|
|
1318
1336
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1319
1337
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1320
1338
|
def generate_file_ids(max_results: nil, space: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1321
|
-
command =
|
|
1339
|
+
command = make_simple_command(:get, 'files/generateIds', options)
|
|
1322
1340
|
command.response_representation = Google::Apis::DriveV2::GeneratedIds::Representation
|
|
1323
1341
|
command.response_class = Google::Apis::DriveV2::GeneratedIds
|
|
1324
1342
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
@@ -1341,7 +1359,9 @@ module Google
|
|
|
1341
1359
|
# Specifies the Revision ID that should be downloaded. Ignored unless alt=media
|
|
1342
1360
|
# is specified.
|
|
1343
1361
|
# @param [Boolean] supports_all_drives
|
|
1344
|
-
# Whether the requesting application supports both My Drives and
|
|
1362
|
+
# Deprecated - Whether the requesting application supports both My Drives and
|
|
1363
|
+
# shared drives. This parameter will only be effective until June 1, 2020.
|
|
1364
|
+
# Afterwards all applications are assumed to support shared drives.
|
|
1345
1365
|
# @param [Boolean] supports_team_drives
|
|
1346
1366
|
# Deprecated use supportsAllDrives instead.
|
|
1347
1367
|
# @param [Boolean] update_viewed_date
|
|
@@ -1370,7 +1390,7 @@ module Google
|
|
|
1370
1390
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1371
1391
|
def get_file(file_id, acknowledge_abuse: nil, projection: nil, revision_id: nil, supports_all_drives: nil, supports_team_drives: nil, update_viewed_date: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
|
1372
1392
|
if download_dest.nil?
|
|
1373
|
-
command =
|
|
1393
|
+
command = make_simple_command(:get, 'files/{fileId}', options)
|
|
1374
1394
|
else
|
|
1375
1395
|
command = make_download_command(:get, 'files/{fileId}', options)
|
|
1376
1396
|
command.download_dest = download_dest
|
|
@@ -1402,7 +1422,9 @@ module Google
|
|
|
1402
1422
|
# Whether to pin the head revision of the uploaded file. A file can have a
|
|
1403
1423
|
# maximum of 200 pinned revisions.
|
|
1404
1424
|
# @param [Boolean] supports_all_drives
|
|
1405
|
-
# Whether the requesting application supports both My Drives and
|
|
1425
|
+
# Deprecated - Whether the requesting application supports both My Drives and
|
|
1426
|
+
# shared drives. This parameter will only be effective until June 1, 2020.
|
|
1427
|
+
# Afterwards all applications are assumed to support shared drives.
|
|
1406
1428
|
# @param [Boolean] supports_team_drives
|
|
1407
1429
|
# Deprecated use supportsAllDrives instead.
|
|
1408
1430
|
# @param [String] timed_text_language
|
|
@@ -1439,7 +1461,7 @@ module Google
|
|
|
1439
1461
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1440
1462
|
def insert_file(file_object = nil, convert: nil, ocr: nil, ocr_language: nil, pinned: nil, supports_all_drives: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, use_content_as_indexable_text: nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
|
1441
1463
|
if upload_source.nil?
|
|
1442
|
-
command =
|
|
1464
|
+
command = make_simple_command(:post, 'files', options)
|
|
1443
1465
|
else
|
|
1444
1466
|
command = make_upload_command(:post, 'files', options)
|
|
1445
1467
|
command.upload_source = upload_source
|
|
@@ -1476,7 +1498,9 @@ module Google
|
|
|
1476
1498
|
# @param [String] drive_id
|
|
1477
1499
|
# ID of the shared drive to search.
|
|
1478
1500
|
# @param [Boolean] include_items_from_all_drives
|
|
1479
|
-
# Whether both My Drive and shared drive items should be included
|
|
1501
|
+
# Deprecated - Whether both My Drive and shared drive items should be included
|
|
1502
|
+
# in results. This parameter will only be effective until June 1, 2020.
|
|
1503
|
+
# Afterwards shared drive items will be included in the results.
|
|
1480
1504
|
# @param [Boolean] include_team_drive_items
|
|
1481
1505
|
# Deprecated use includeItemsFromAllDrives instead.
|
|
1482
1506
|
# @param [Fixnum] max_results
|
|
@@ -1500,7 +1524,9 @@ module Google
|
|
|
1500
1524
|
# A comma-separated list of spaces to query. Supported values are 'drive', '
|
|
1501
1525
|
# appDataFolder' and 'photos'.
|
|
1502
1526
|
# @param [Boolean] supports_all_drives
|
|
1503
|
-
# Whether the requesting application supports both My Drives and
|
|
1527
|
+
# Deprecated - Whether the requesting application supports both My Drives and
|
|
1528
|
+
# shared drives. This parameter will only be effective until June 1, 2020.
|
|
1529
|
+
# Afterwards all applications are assumed to support shared drives.
|
|
1504
1530
|
# @param [Boolean] supports_team_drives
|
|
1505
1531
|
# Deprecated use supportsAllDrives instead.
|
|
1506
1532
|
# @param [String] team_drive_id
|
|
@@ -1525,7 +1551,7 @@ module Google
|
|
|
1525
1551
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1526
1552
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1527
1553
|
def list_files(corpora: nil, corpus: nil, drive_id: nil, include_items_from_all_drives: nil, include_team_drive_items: nil, max_results: nil, order_by: nil, page_token: nil, projection: nil, q: nil, spaces: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1528
|
-
command =
|
|
1554
|
+
command = make_simple_command(:get, 'files', options)
|
|
1529
1555
|
command.response_representation = Google::Apis::DriveV2::FileList::Representation
|
|
1530
1556
|
command.response_class = Google::Apis::DriveV2::FileList
|
|
1531
1557
|
command.query['corpora'] = corpora unless corpora.nil?
|
|
@@ -1581,7 +1607,9 @@ module Google
|
|
|
1581
1607
|
# and false is equivalent to modifiedDateBehavior=now. To prevent any changes
|
|
1582
1608
|
# to the modified date set modifiedDateBehavior=noChange.
|
|
1583
1609
|
# @param [Boolean] supports_all_drives
|
|
1584
|
-
# Whether the requesting application supports both My Drives and
|
|
1610
|
+
# Deprecated - Whether the requesting application supports both My Drives and
|
|
1611
|
+
# shared drives. This parameter will only be effective until June 1, 2020.
|
|
1612
|
+
# Afterwards all applications are assumed to support shared drives.
|
|
1585
1613
|
# @param [Boolean] supports_team_drives
|
|
1586
1614
|
# Deprecated use supportsAllDrives instead.
|
|
1587
1615
|
# @param [String] timed_text_language
|
|
@@ -1612,7 +1640,7 @@ module Google
|
|
|
1612
1640
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1613
1641
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1614
1642
|
def patch_file(file_id, file_object = nil, add_parents: nil, convert: nil, modified_date_behavior: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, supports_all_drives: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1615
|
-
command =
|
|
1643
|
+
command = make_simple_command(:patch, 'files/{fileId}', options)
|
|
1616
1644
|
command.request_representation = Google::Apis::DriveV2::File::Representation
|
|
1617
1645
|
command.request_object = file_object
|
|
1618
1646
|
command.response_representation = Google::Apis::DriveV2::File::Representation
|
|
@@ -1643,7 +1671,9 @@ module Google
|
|
|
1643
1671
|
# @param [String] file_id
|
|
1644
1672
|
# The ID of the file to update.
|
|
1645
1673
|
# @param [Boolean] supports_all_drives
|
|
1646
|
-
# Whether the requesting application supports both My Drives and
|
|
1674
|
+
# Deprecated - Whether the requesting application supports both My Drives and
|
|
1675
|
+
# shared drives. This parameter will only be effective until June 1, 2020.
|
|
1676
|
+
# Afterwards all applications are assumed to support shared drives.
|
|
1647
1677
|
# @param [Boolean] supports_team_drives
|
|
1648
1678
|
# Deprecated use supportsAllDrives instead.
|
|
1649
1679
|
# @param [String] fields
|
|
@@ -1666,7 +1696,7 @@ module Google
|
|
|
1666
1696
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1667
1697
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1668
1698
|
def touch_file(file_id, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1669
|
-
command =
|
|
1699
|
+
command = make_simple_command(:post, 'files/{fileId}/touch', options)
|
|
1670
1700
|
command.response_representation = Google::Apis::DriveV2::File::Representation
|
|
1671
1701
|
command.response_class = Google::Apis::DriveV2::File
|
|
1672
1702
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
@@ -1683,7 +1713,9 @@ module Google
|
|
|
1683
1713
|
# @param [String] file_id
|
|
1684
1714
|
# The ID of the file to trash.
|
|
1685
1715
|
# @param [Boolean] supports_all_drives
|
|
1686
|
-
# Whether the requesting application supports both My Drives and
|
|
1716
|
+
# Deprecated - Whether the requesting application supports both My Drives and
|
|
1717
|
+
# shared drives. This parameter will only be effective until June 1, 2020.
|
|
1718
|
+
# Afterwards all applications are assumed to support shared drives.
|
|
1687
1719
|
# @param [Boolean] supports_team_drives
|
|
1688
1720
|
# Deprecated use supportsAllDrives instead.
|
|
1689
1721
|
# @param [String] fields
|
|
@@ -1706,7 +1738,7 @@ module Google
|
|
|
1706
1738
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1707
1739
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1708
1740
|
def trash_file(file_id, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1709
|
-
command =
|
|
1741
|
+
command = make_simple_command(:post, 'files/{fileId}/trash', options)
|
|
1710
1742
|
command.response_representation = Google::Apis::DriveV2::File::Representation
|
|
1711
1743
|
command.response_class = Google::Apis::DriveV2::File
|
|
1712
1744
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
@@ -1722,7 +1754,9 @@ module Google
|
|
|
1722
1754
|
# @param [String] file_id
|
|
1723
1755
|
# The ID of the file to untrash.
|
|
1724
1756
|
# @param [Boolean] supports_all_drives
|
|
1725
|
-
# Whether the requesting application supports both My Drives and
|
|
1757
|
+
# Deprecated - Whether the requesting application supports both My Drives and
|
|
1758
|
+
# shared drives. This parameter will only be effective until June 1, 2020.
|
|
1759
|
+
# Afterwards all applications are assumed to support shared drives.
|
|
1726
1760
|
# @param [Boolean] supports_team_drives
|
|
1727
1761
|
# Deprecated use supportsAllDrives instead.
|
|
1728
1762
|
# @param [String] fields
|
|
@@ -1745,7 +1779,7 @@ module Google
|
|
|
1745
1779
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1746
1780
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1747
1781
|
def untrash_file(file_id, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1748
|
-
command =
|
|
1782
|
+
command = make_simple_command(:post, 'files/{fileId}/untrash', options)
|
|
1749
1783
|
command.response_representation = Google::Apis::DriveV2::File::Representation
|
|
1750
1784
|
command.response_class = Google::Apis::DriveV2::File
|
|
1751
1785
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
@@ -1790,7 +1824,9 @@ module Google
|
|
|
1790
1824
|
# and false is equivalent to modifiedDateBehavior=now. To prevent any changes
|
|
1791
1825
|
# to the modified date set modifiedDateBehavior=noChange.
|
|
1792
1826
|
# @param [Boolean] supports_all_drives
|
|
1793
|
-
# Whether the requesting application supports both My Drives and
|
|
1827
|
+
# Deprecated - Whether the requesting application supports both My Drives and
|
|
1828
|
+
# shared drives. This parameter will only be effective until June 1, 2020.
|
|
1829
|
+
# Afterwards all applications are assumed to support shared drives.
|
|
1794
1830
|
# @param [Boolean] supports_team_drives
|
|
1795
1831
|
# Deprecated use supportsAllDrives instead.
|
|
1796
1832
|
# @param [String] timed_text_language
|
|
@@ -1826,7 +1862,7 @@ module Google
|
|
|
1826
1862
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1827
1863
|
def update_file(file_id, file_object = nil, add_parents: nil, convert: nil, modified_date_behavior: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, supports_all_drives: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
|
1828
1864
|
if upload_source.nil?
|
|
1829
|
-
command =
|
|
1865
|
+
command = make_simple_command(:put, 'files/{fileId}', options)
|
|
1830
1866
|
else
|
|
1831
1867
|
command = make_upload_command(:put, 'files/{fileId}', options)
|
|
1832
1868
|
command.upload_source = upload_source
|
|
@@ -1871,7 +1907,9 @@ module Google
|
|
|
1871
1907
|
# Specifies the Revision ID that should be downloaded. Ignored unless alt=media
|
|
1872
1908
|
# is specified.
|
|
1873
1909
|
# @param [Boolean] supports_all_drives
|
|
1874
|
-
# Whether the requesting application supports both My Drives and
|
|
1910
|
+
# Deprecated - Whether the requesting application supports both My Drives and
|
|
1911
|
+
# shared drives. This parameter will only be effective until June 1, 2020.
|
|
1912
|
+
# Afterwards all applications are assumed to support shared drives.
|
|
1875
1913
|
# @param [Boolean] supports_team_drives
|
|
1876
1914
|
# Deprecated use supportsAllDrives instead.
|
|
1877
1915
|
# @param [Boolean] update_viewed_date
|
|
@@ -1900,7 +1938,7 @@ module Google
|
|
|
1900
1938
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1901
1939
|
def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, projection: nil, revision_id: nil, supports_all_drives: nil, supports_team_drives: nil, update_viewed_date: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
|
1902
1940
|
if download_dest.nil?
|
|
1903
|
-
command =
|
|
1941
|
+
command = make_simple_command(:post, 'files/{fileId}/watch', options)
|
|
1904
1942
|
else
|
|
1905
1943
|
command = make_download_command(:post, 'files/{fileId}/watch', options)
|
|
1906
1944
|
command.download_dest = download_dest
|
|
@@ -1947,7 +1985,7 @@ module Google
|
|
|
1947
1985
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1948
1986
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1949
1987
|
def delete_parent(file_id, parent_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1950
|
-
command =
|
|
1988
|
+
command = make_simple_command(:delete, 'files/{fileId}/parents/{parentId}', options)
|
|
1951
1989
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
1952
1990
|
command.params['parentId'] = parent_id unless parent_id.nil?
|
|
1953
1991
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -1981,7 +2019,7 @@ module Google
|
|
|
1981
2019
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1982
2020
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1983
2021
|
def get_parent(file_id, parent_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1984
|
-
command =
|
|
2022
|
+
command = make_simple_command(:get, 'files/{fileId}/parents/{parentId}', options)
|
|
1985
2023
|
command.response_representation = Google::Apis::DriveV2::ParentReference::Representation
|
|
1986
2024
|
command.response_class = Google::Apis::DriveV2::ParentReference
|
|
1987
2025
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
@@ -1997,7 +2035,9 @@ module Google
|
|
|
1997
2035
|
# The ID of the file.
|
|
1998
2036
|
# @param [Google::Apis::DriveV2::ParentReference] parent_reference_object
|
|
1999
2037
|
# @param [Boolean] supports_all_drives
|
|
2000
|
-
# Whether the requesting application supports both My Drives and
|
|
2038
|
+
# Deprecated - Whether the requesting application supports both My Drives and
|
|
2039
|
+
# shared drives. This parameter will only be effective until June 1, 2020.
|
|
2040
|
+
# Afterwards all applications are assumed to support shared drives.
|
|
2001
2041
|
# @param [Boolean] supports_team_drives
|
|
2002
2042
|
# Deprecated use supportsAllDrives instead.
|
|
2003
2043
|
# @param [String] fields
|
|
@@ -2020,7 +2060,7 @@ module Google
|
|
|
2020
2060
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2021
2061
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2022
2062
|
def insert_parent(file_id, parent_reference_object = nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2023
|
-
command =
|
|
2063
|
+
command = make_simple_command(:post, 'files/{fileId}/parents', options)
|
|
2024
2064
|
command.request_representation = Google::Apis::DriveV2::ParentReference::Representation
|
|
2025
2065
|
command.request_object = parent_reference_object
|
|
2026
2066
|
command.response_representation = Google::Apis::DriveV2::ParentReference::Representation
|
|
@@ -2057,7 +2097,7 @@ module Google
|
|
|
2057
2097
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2058
2098
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2059
2099
|
def list_parents(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2060
|
-
command =
|
|
2100
|
+
command = make_simple_command(:get, 'files/{fileId}/parents', options)
|
|
2061
2101
|
command.response_representation = Google::Apis::DriveV2::ParentList::Representation
|
|
2062
2102
|
command.response_class = Google::Apis::DriveV2::ParentList
|
|
2063
2103
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
@@ -2073,7 +2113,9 @@ module Google
|
|
|
2073
2113
|
# @param [String] permission_id
|
|
2074
2114
|
# The ID for the permission.
|
|
2075
2115
|
# @param [Boolean] supports_all_drives
|
|
2076
|
-
# Whether the requesting application supports both My Drives and
|
|
2116
|
+
# Deprecated - Whether the requesting application supports both My Drives and
|
|
2117
|
+
# shared drives. This parameter will only be effective until June 1, 2020.
|
|
2118
|
+
# Afterwards all applications are assumed to support shared drives.
|
|
2077
2119
|
# @param [Boolean] supports_team_drives
|
|
2078
2120
|
# Deprecated use supportsAllDrives instead.
|
|
2079
2121
|
# @param [Boolean] use_domain_admin_access
|
|
@@ -2101,7 +2143,7 @@ module Google
|
|
|
2101
2143
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2102
2144
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2103
2145
|
def delete_permission(file_id, permission_id, supports_all_drives: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2104
|
-
command =
|
|
2146
|
+
command = make_simple_command(:delete, 'files/{fileId}/permissions/{permissionId}', options)
|
|
2105
2147
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
2106
2148
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
|
2107
2149
|
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
|
@@ -2119,7 +2161,9 @@ module Google
|
|
|
2119
2161
|
# @param [String] permission_id
|
|
2120
2162
|
# The ID for the permission.
|
|
2121
2163
|
# @param [Boolean] supports_all_drives
|
|
2122
|
-
# Whether the requesting application supports both My Drives and
|
|
2164
|
+
# Deprecated - Whether the requesting application supports both My Drives and
|
|
2165
|
+
# shared drives. This parameter will only be effective until June 1, 2020.
|
|
2166
|
+
# Afterwards all applications are assumed to support shared drives.
|
|
2123
2167
|
# @param [Boolean] supports_team_drives
|
|
2124
2168
|
# Deprecated use supportsAllDrives instead.
|
|
2125
2169
|
# @param [Boolean] use_domain_admin_access
|
|
@@ -2147,7 +2191,7 @@ module Google
|
|
|
2147
2191
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2148
2192
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2149
2193
|
def get_permission(file_id, permission_id, supports_all_drives: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2150
|
-
command =
|
|
2194
|
+
command = make_simple_command(:get, 'files/{fileId}/permissions/{permissionId}', options)
|
|
2151
2195
|
command.response_representation = Google::Apis::DriveV2::Permission::Representation
|
|
2152
2196
|
command.response_class = Google::Apis::DriveV2::Permission
|
|
2153
2197
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
@@ -2184,7 +2228,7 @@ module Google
|
|
|
2184
2228
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2185
2229
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2186
2230
|
def get_permission_id_for_email(email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2187
|
-
command =
|
|
2231
|
+
command = make_simple_command(:get, 'permissionIds/{email}', options)
|
|
2188
2232
|
command.response_representation = Google::Apis::DriveV2::PermissionId::Representation
|
|
2189
2233
|
command.response_class = Google::Apis::DriveV2::PermissionId
|
|
2190
2234
|
command.params['email'] = email unless email.nil?
|
|
@@ -2204,7 +2248,9 @@ module Google
|
|
|
2204
2248
|
# Whether to send notification emails when sharing to users or groups. This
|
|
2205
2249
|
# parameter is ignored and an email is sent if the role is owner.
|
|
2206
2250
|
# @param [Boolean] supports_all_drives
|
|
2207
|
-
# Whether the requesting application supports both My Drives and
|
|
2251
|
+
# Deprecated - Whether the requesting application supports both My Drives and
|
|
2252
|
+
# shared drives. This parameter will only be effective until June 1, 2020.
|
|
2253
|
+
# Afterwards all applications are assumed to support shared drives.
|
|
2208
2254
|
# @param [Boolean] supports_team_drives
|
|
2209
2255
|
# Deprecated use supportsAllDrives instead.
|
|
2210
2256
|
# @param [Boolean] use_domain_admin_access
|
|
@@ -2232,7 +2278,7 @@ module Google
|
|
|
2232
2278
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2233
2279
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2234
2280
|
def insert_permission(file_id, permission_object = nil, email_message: nil, send_notification_emails: nil, supports_all_drives: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2235
|
-
command =
|
|
2281
|
+
command = make_simple_command(:post, 'files/{fileId}/permissions', options)
|
|
2236
2282
|
command.request_representation = Google::Apis::DriveV2::Permission::Representation
|
|
2237
2283
|
command.request_object = permission_object
|
|
2238
2284
|
command.response_representation = Google::Apis::DriveV2::Permission::Representation
|
|
@@ -2260,7 +2306,9 @@ module Google
|
|
|
2260
2306
|
# The token for continuing a previous list request on the next page. This should
|
|
2261
2307
|
# be set to the value of 'nextPageToken' from the previous response.
|
|
2262
2308
|
# @param [Boolean] supports_all_drives
|
|
2263
|
-
# Whether the requesting application supports both My Drives and
|
|
2309
|
+
# Deprecated - Whether the requesting application supports both My Drives and
|
|
2310
|
+
# shared drives. This parameter will only be effective until June 1, 2020.
|
|
2311
|
+
# Afterwards all applications are assumed to support shared drives.
|
|
2264
2312
|
# @param [Boolean] supports_team_drives
|
|
2265
2313
|
# Deprecated use supportsAllDrives instead.
|
|
2266
2314
|
# @param [Boolean] use_domain_admin_access
|
|
@@ -2288,7 +2336,7 @@ module Google
|
|
|
2288
2336
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2289
2337
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2290
2338
|
def list_permissions(file_id, max_results: nil, page_token: nil, supports_all_drives: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2291
|
-
command =
|
|
2339
|
+
command = make_simple_command(:get, 'files/{fileId}/permissions', options)
|
|
2292
2340
|
command.response_representation = Google::Apis::DriveV2::PermissionList::Representation
|
|
2293
2341
|
command.response_class = Google::Apis::DriveV2::PermissionList
|
|
2294
2342
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
@@ -2312,7 +2360,9 @@ module Google
|
|
|
2312
2360
|
# @param [Boolean] remove_expiration
|
|
2313
2361
|
# Whether to remove the expiration date.
|
|
2314
2362
|
# @param [Boolean] supports_all_drives
|
|
2315
|
-
# Whether the requesting application supports both My Drives and
|
|
2363
|
+
# Deprecated - Whether the requesting application supports both My Drives and
|
|
2364
|
+
# shared drives. This parameter will only be effective until June 1, 2020.
|
|
2365
|
+
# Afterwards all applications are assumed to support shared drives.
|
|
2316
2366
|
# @param [Boolean] supports_team_drives
|
|
2317
2367
|
# Deprecated use supportsAllDrives instead.
|
|
2318
2368
|
# @param [Boolean] transfer_ownership
|
|
@@ -2343,7 +2393,7 @@ module Google
|
|
|
2343
2393
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2344
2394
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2345
2395
|
def patch_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_all_drives: nil, supports_team_drives: nil, transfer_ownership: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2346
|
-
command =
|
|
2396
|
+
command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options)
|
|
2347
2397
|
command.request_representation = Google::Apis::DriveV2::Permission::Representation
|
|
2348
2398
|
command.request_object = permission_object
|
|
2349
2399
|
command.response_representation = Google::Apis::DriveV2::Permission::Representation
|
|
@@ -2370,7 +2420,9 @@ module Google
|
|
|
2370
2420
|
# @param [Boolean] remove_expiration
|
|
2371
2421
|
# Whether to remove the expiration date.
|
|
2372
2422
|
# @param [Boolean] supports_all_drives
|
|
2373
|
-
# Whether the requesting application supports both My Drives and
|
|
2423
|
+
# Deprecated - Whether the requesting application supports both My Drives and
|
|
2424
|
+
# shared drives. This parameter will only be effective until June 1, 2020.
|
|
2425
|
+
# Afterwards all applications are assumed to support shared drives.
|
|
2374
2426
|
# @param [Boolean] supports_team_drives
|
|
2375
2427
|
# Deprecated use supportsAllDrives instead.
|
|
2376
2428
|
# @param [Boolean] transfer_ownership
|
|
@@ -2401,7 +2453,7 @@ module Google
|
|
|
2401
2453
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2402
2454
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2403
2455
|
def update_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_all_drives: nil, supports_team_drives: nil, transfer_ownership: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2404
|
-
command =
|
|
2456
|
+
command = make_simple_command(:put, 'files/{fileId}/permissions/{permissionId}', options)
|
|
2405
2457
|
command.request_representation = Google::Apis::DriveV2::Permission::Representation
|
|
2406
2458
|
command.request_object = permission_object
|
|
2407
2459
|
command.response_representation = Google::Apis::DriveV2::Permission::Representation
|
|
@@ -2446,7 +2498,7 @@ module Google
|
|
|
2446
2498
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2447
2499
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2448
2500
|
def delete_property(file_id, property_key, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2449
|
-
command =
|
|
2501
|
+
command = make_simple_command(:delete, 'files/{fileId}/properties/{propertyKey}', options)
|
|
2450
2502
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
2451
2503
|
command.params['propertyKey'] = property_key unless property_key.nil?
|
|
2452
2504
|
command.query['visibility'] = visibility unless visibility.nil?
|
|
@@ -2483,7 +2535,7 @@ module Google
|
|
|
2483
2535
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2484
2536
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2485
2537
|
def get_property(file_id, property_key, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2486
|
-
command =
|
|
2538
|
+
command = make_simple_command(:get, 'files/{fileId}/properties/{propertyKey}', options)
|
|
2487
2539
|
command.response_representation = Google::Apis::DriveV2::Property::Representation
|
|
2488
2540
|
command.response_class = Google::Apis::DriveV2::Property
|
|
2489
2541
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
@@ -2519,7 +2571,7 @@ module Google
|
|
|
2519
2571
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2520
2572
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2521
2573
|
def insert_property(file_id, property_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2522
|
-
command =
|
|
2574
|
+
command = make_simple_command(:post, 'files/{fileId}/properties', options)
|
|
2523
2575
|
command.request_representation = Google::Apis::DriveV2::Property::Representation
|
|
2524
2576
|
command.request_object = property_object
|
|
2525
2577
|
command.response_representation = Google::Apis::DriveV2::Property::Representation
|
|
@@ -2554,7 +2606,7 @@ module Google
|
|
|
2554
2606
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2555
2607
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2556
2608
|
def list_properties(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2557
|
-
command =
|
|
2609
|
+
command = make_simple_command(:get, 'files/{fileId}/properties', options)
|
|
2558
2610
|
command.response_representation = Google::Apis::DriveV2::PropertyList::Representation
|
|
2559
2611
|
command.response_class = Google::Apis::DriveV2::PropertyList
|
|
2560
2612
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
@@ -2593,7 +2645,7 @@ module Google
|
|
|
2593
2645
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2594
2646
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2595
2647
|
def patch_property(file_id, property_key, property_object = nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2596
|
-
command =
|
|
2648
|
+
command = make_simple_command(:patch, 'files/{fileId}/properties/{propertyKey}', options)
|
|
2597
2649
|
command.request_representation = Google::Apis::DriveV2::Property::Representation
|
|
2598
2650
|
command.request_object = property_object
|
|
2599
2651
|
command.response_representation = Google::Apis::DriveV2::Property::Representation
|
|
@@ -2636,7 +2688,7 @@ module Google
|
|
|
2636
2688
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2637
2689
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2638
2690
|
def update_property(file_id, property_key, property_object = nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2639
|
-
command =
|
|
2691
|
+
command = make_simple_command(:put, 'files/{fileId}/properties/{propertyKey}', options)
|
|
2640
2692
|
command.request_representation = Google::Apis::DriveV2::Property::Representation
|
|
2641
2693
|
command.request_object = property_object
|
|
2642
2694
|
command.response_representation = Google::Apis::DriveV2::Property::Representation
|
|
@@ -2681,7 +2733,7 @@ module Google
|
|
|
2681
2733
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2682
2734
|
def get_realtime(file_id, revision: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
|
2683
2735
|
if download_dest.nil?
|
|
2684
|
-
command =
|
|
2736
|
+
command = make_simple_command(:get, 'files/{fileId}/realtime', options)
|
|
2685
2737
|
else
|
|
2686
2738
|
command = make_download_command(:get, 'files/{fileId}/realtime', options)
|
|
2687
2739
|
command.download_dest = download_dest
|
|
@@ -2728,7 +2780,7 @@ module Google
|
|
|
2728
2780
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2729
2781
|
def update_realtime(file_id, base_revision: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
|
2730
2782
|
if upload_source.nil?
|
|
2731
|
-
command =
|
|
2783
|
+
command = make_simple_command(:put, 'files/{fileId}/realtime', options)
|
|
2732
2784
|
else
|
|
2733
2785
|
command = make_upload_command(:put, 'files/{fileId}/realtime', options)
|
|
2734
2786
|
command.upload_source = upload_source
|
|
@@ -2769,7 +2821,7 @@ module Google
|
|
|
2769
2821
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2770
2822
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2771
2823
|
def delete_reply(file_id, comment_id, reply_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2772
|
-
command =
|
|
2824
|
+
command = make_simple_command(:delete, 'files/{fileId}/comments/{commentId}/replies/{replyId}', options)
|
|
2773
2825
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
2774
2826
|
command.params['commentId'] = comment_id unless comment_id.nil?
|
|
2775
2827
|
command.params['replyId'] = reply_id unless reply_id.nil?
|
|
@@ -2808,7 +2860,7 @@ module Google
|
|
|
2808
2860
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2809
2861
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2810
2862
|
def get_reply(file_id, comment_id, reply_id, include_deleted: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2811
|
-
command =
|
|
2863
|
+
command = make_simple_command(:get, 'files/{fileId}/comments/{commentId}/replies/{replyId}', options)
|
|
2812
2864
|
command.response_representation = Google::Apis::DriveV2::CommentReply::Representation
|
|
2813
2865
|
command.response_class = Google::Apis::DriveV2::CommentReply
|
|
2814
2866
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
@@ -2847,7 +2899,7 @@ module Google
|
|
|
2847
2899
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2848
2900
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2849
2901
|
def insert_reply(file_id, comment_id, comment_reply_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2850
|
-
command =
|
|
2902
|
+
command = make_simple_command(:post, 'files/{fileId}/comments/{commentId}/replies', options)
|
|
2851
2903
|
command.request_representation = Google::Apis::DriveV2::CommentReply::Representation
|
|
2852
2904
|
command.request_object = comment_reply_object
|
|
2853
2905
|
command.response_representation = Google::Apis::DriveV2::CommentReply::Representation
|
|
@@ -2894,7 +2946,7 @@ module Google
|
|
|
2894
2946
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2895
2947
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2896
2948
|
def list_replies(file_id, comment_id, include_deleted: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2897
|
-
command =
|
|
2949
|
+
command = make_simple_command(:get, 'files/{fileId}/comments/{commentId}/replies', options)
|
|
2898
2950
|
command.response_representation = Google::Apis::DriveV2::CommentReplyList::Representation
|
|
2899
2951
|
command.response_class = Google::Apis::DriveV2::CommentReplyList
|
|
2900
2952
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
@@ -2936,7 +2988,7 @@ module Google
|
|
|
2936
2988
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2937
2989
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2938
2990
|
def patch_reply(file_id, comment_id, reply_id, comment_reply_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2939
|
-
command =
|
|
2991
|
+
command = make_simple_command(:patch, 'files/{fileId}/comments/{commentId}/replies/{replyId}', options)
|
|
2940
2992
|
command.request_representation = Google::Apis::DriveV2::CommentReply::Representation
|
|
2941
2993
|
command.request_object = comment_reply_object
|
|
2942
2994
|
command.response_representation = Google::Apis::DriveV2::CommentReply::Representation
|
|
@@ -2978,7 +3030,7 @@ module Google
|
|
|
2978
3030
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2979
3031
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2980
3032
|
def update_reply(file_id, comment_id, reply_id, comment_reply_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2981
|
-
command =
|
|
3033
|
+
command = make_simple_command(:put, 'files/{fileId}/comments/{commentId}/replies/{replyId}', options)
|
|
2982
3034
|
command.request_representation = Google::Apis::DriveV2::CommentReply::Representation
|
|
2983
3035
|
command.request_object = comment_reply_object
|
|
2984
3036
|
command.response_representation = Google::Apis::DriveV2::CommentReply::Representation
|
|
@@ -3019,7 +3071,7 @@ module Google
|
|
|
3019
3071
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3020
3072
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3021
3073
|
def delete_revision(file_id, revision_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3022
|
-
command =
|
|
3074
|
+
command = make_simple_command(:delete, 'files/{fileId}/revisions/{revisionId}', options)
|
|
3023
3075
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
3024
3076
|
command.params['revisionId'] = revision_id unless revision_id.nil?
|
|
3025
3077
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -3053,7 +3105,7 @@ module Google
|
|
|
3053
3105
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3054
3106
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3055
3107
|
def get_revision(file_id, revision_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3056
|
-
command =
|
|
3108
|
+
command = make_simple_command(:get, 'files/{fileId}/revisions/{revisionId}', options)
|
|
3057
3109
|
command.response_representation = Google::Apis::DriveV2::Revision::Representation
|
|
3058
3110
|
command.response_class = Google::Apis::DriveV2::Revision
|
|
3059
3111
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
@@ -3092,7 +3144,7 @@ module Google
|
|
|
3092
3144
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3093
3145
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3094
3146
|
def list_revisions(file_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3095
|
-
command =
|
|
3147
|
+
command = make_simple_command(:get, 'files/{fileId}/revisions', options)
|
|
3096
3148
|
command.response_representation = Google::Apis::DriveV2::RevisionList::Representation
|
|
3097
3149
|
command.response_class = Google::Apis::DriveV2::RevisionList
|
|
3098
3150
|
command.params['fileId'] = file_id unless file_id.nil?
|
|
@@ -3130,7 +3182,7 @@ module Google
|
|
|
3130
3182
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3131
3183
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3132
3184
|
def patch_revision(file_id, revision_id, revision_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3133
|
-
command =
|
|
3185
|
+
command = make_simple_command(:patch, 'files/{fileId}/revisions/{revisionId}', options)
|
|
3134
3186
|
command.request_representation = Google::Apis::DriveV2::Revision::Representation
|
|
3135
3187
|
command.request_object = revision_object
|
|
3136
3188
|
command.response_representation = Google::Apis::DriveV2::Revision::Representation
|
|
@@ -3169,7 +3221,7 @@ module Google
|
|
|
3169
3221
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3170
3222
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3171
3223
|
def update_revision(file_id, revision_id, revision_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3172
|
-
command =
|
|
3224
|
+
command = make_simple_command(:put, 'files/{fileId}/revisions/{revisionId}', options)
|
|
3173
3225
|
command.request_representation = Google::Apis::DriveV2::Revision::Representation
|
|
3174
3226
|
command.request_object = revision_object
|
|
3175
3227
|
command.response_representation = Google::Apis::DriveV2::Revision::Representation
|
|
@@ -3205,7 +3257,7 @@ module Google
|
|
|
3205
3257
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3206
3258
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3207
3259
|
def delete_teamdrive(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3208
|
-
command =
|
|
3260
|
+
command = make_simple_command(:delete, 'teamdrives/{teamDriveId}', options)
|
|
3209
3261
|
command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
|
3210
3262
|
command.query['fields'] = fields unless fields.nil?
|
|
3211
3263
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -3240,7 +3292,7 @@ module Google
|
|
|
3240
3292
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3241
3293
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3242
3294
|
def get_teamdrive(team_drive_id, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3243
|
-
command =
|
|
3295
|
+
command = make_simple_command(:get, 'teamdrives/{teamDriveId}', options)
|
|
3244
3296
|
command.response_representation = Google::Apis::DriveV2::TeamDrive::Representation
|
|
3245
3297
|
command.response_class = Google::Apis::DriveV2::TeamDrive
|
|
3246
3298
|
command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
|
@@ -3279,7 +3331,7 @@ module Google
|
|
|
3279
3331
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3280
3332
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3281
3333
|
def insert_teamdrive(request_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3282
|
-
command =
|
|
3334
|
+
command = make_simple_command(:post, 'teamdrives', options)
|
|
3283
3335
|
command.request_representation = Google::Apis::DriveV2::TeamDrive::Representation
|
|
3284
3336
|
command.request_object = team_drive_object
|
|
3285
3337
|
command.response_representation = Google::Apis::DriveV2::TeamDrive::Representation
|
|
@@ -3321,7 +3373,7 @@ module Google
|
|
|
3321
3373
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3322
3374
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3323
3375
|
def list_teamdrives(max_results: nil, page_token: nil, q: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3324
|
-
command =
|
|
3376
|
+
command = make_simple_command(:get, 'teamdrives', options)
|
|
3325
3377
|
command.response_representation = Google::Apis::DriveV2::TeamDriveList::Representation
|
|
3326
3378
|
command.response_class = Google::Apis::DriveV2::TeamDriveList
|
|
3327
3379
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
@@ -3362,7 +3414,7 @@ module Google
|
|
|
3362
3414
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3363
3415
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3364
3416
|
def update_teamdrive(team_drive_id, team_drive_object = nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3365
|
-
command =
|
|
3417
|
+
command = make_simple_command(:put, 'teamdrives/{teamDriveId}', options)
|
|
3366
3418
|
command.request_representation = Google::Apis::DriveV2::TeamDrive::Representation
|
|
3367
3419
|
command.request_object = team_drive_object
|
|
3368
3420
|
command.response_representation = Google::Apis::DriveV2::TeamDrive::Representation
|