google-api-client 0.43.0 → 0.44.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +218 -0
- data/docs/oauth-server.md +4 -6
- data/generated/google/apis/accessapproval_v1.rb +1 -1
- data/generated/google/apis/accessapproval_v1/classes.rb +51 -86
- data/generated/google/apis/accessapproval_v1/service.rb +93 -132
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +198 -236
- data/generated/google/apis/accesscontextmanager_v1/service.rb +128 -171
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +153 -184
- data/generated/google/apis/accesscontextmanager_v1beta/service.rb +82 -111
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +17 -6
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +47 -2
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +18 -0
- data/generated/google/apis/adexperiencereport_v1.rb +1 -1
- data/generated/google/apis/admin_datatransfer_v1.rb +6 -4
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +16 -4
- data/generated/google/apis/admin_datatransfer_v1/service.rb +30 -48
- data/generated/google/apis/admin_directory_v1.rb +6 -8
- data/generated/google/apis/admin_directory_v1/classes.rb +224 -243
- data/generated/google/apis/admin_directory_v1/representations.rb +14 -40
- data/generated/google/apis/admin_directory_v1/service.rb +475 -1026
- data/generated/google/apis/admin_reports_v1.rb +6 -5
- data/generated/google/apis/admin_reports_v1/classes.rb +31 -33
- data/generated/google/apis/admin_reports_v1/service.rb +131 -187
- data/generated/google/apis/admob_v1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +95 -59
- data/generated/google/apis/androidmanagement_v1/representations.rb +17 -0
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/service.rb +2 -2
- data/generated/google/apis/apigee_v1.rb +6 -7
- data/generated/google/apis/apigee_v1/classes.rb +205 -75
- data/generated/google/apis/apigee_v1/representations.rb +51 -0
- data/generated/google/apis/apigee_v1/service.rb +133 -34
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +45 -35
- data/generated/google/apis/appengine_v1/representations.rb +2 -0
- data/generated/google/apis/appengine_v1/service.rb +38 -47
- data/generated/google/apis/appengine_v1alpha.rb +1 -1
- data/generated/google/apis/appengine_v1alpha/classes.rb +9 -11
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +45 -35
- data/generated/google/apis/appengine_v1beta/representations.rb +2 -0
- data/generated/google/apis/appengine_v1beta/service.rb +37 -47
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/appsmarket_v2/classes.rb +14 -16
- data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta1/classes.rb +235 -337
- data/generated/google/apis/artifactregistry_v1beta1/service.rb +44 -57
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +355 -553
- data/generated/google/apis/bigquery_v2/representations.rb +1 -0
- data/generated/google/apis/bigquery_v2/service.rb +32 -40
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +192 -337
- data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +29 -32
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +132 -158
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +232 -282
- data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1/classes.rb +116 -123
- data/generated/google/apis/bigqueryreservation_v1/representations.rb +2 -0
- data/generated/google/apis/bigqueryreservation_v1/service.rb +137 -183
- data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +88 -100
- data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +77 -100
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +93 -98
- data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +2 -0
- data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +114 -151
- data/generated/google/apis/bigtableadmin_v1.rb +1 -1
- data/generated/google/apis/bigtableadmin_v1/classes.rb +50 -0
- data/generated/google/apis/bigtableadmin_v1/representations.rb +29 -0
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +50 -0
- data/generated/google/apis/bigtableadmin_v2/representations.rb +29 -0
- data/generated/google/apis/billingbudgets_v1beta1.rb +4 -1
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1/classes.rb +239 -354
- data/generated/google/apis/binaryauthorization_v1/service.rb +74 -89
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +239 -354
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +74 -89
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +90 -115
- data/generated/google/apis/chat_v1/service.rb +30 -42
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +712 -1039
- data/generated/google/apis/cloudasset_v1/service.rb +125 -167
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +531 -777
- data/generated/google/apis/cloudasset_v1beta1/service.rb +59 -75
- data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +204 -349
- data/generated/google/apis/cloudasset_v1p1beta1/service.rb +35 -47
- data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +220 -276
- data/generated/google/apis/cloudasset_v1p4beta1/service.rb +75 -93
- data/generated/google/apis/cloudasset_v1p5beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p5beta1/classes.rb +481 -720
- data/generated/google/apis/cloudasset_v1p5beta1/service.rb +25 -28
- data/generated/google/apis/cloudbilling_v1.rb +7 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +284 -445
- data/generated/google/apis/cloudbilling_v1/service.rb +104 -124
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +291 -343
- data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +48 -63
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +283 -329
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1alpha1/service.rb +15 -18
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +269 -313
- data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1alpha2/service.rb +22 -28
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +185 -252
- data/generated/google/apis/clouddebugger_v2/service.rb +53 -59
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +127 -156
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +53 -69
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +323 -493
- data/generated/google/apis/cloudfunctions_v1/service.rb +79 -93
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +625 -75
- data/generated/google/apis/cloudidentity_v1/representations.rb +203 -0
- data/generated/google/apis/cloudidentity_v1/service.rb +43 -61
- data/generated/google/apis/cloudidentity_v1beta1.rb +4 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +1045 -317
- data/generated/google/apis/cloudidentity_v1beta1/representations.rb +331 -22
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +742 -96
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +263 -373
- data/generated/google/apis/cloudiot_v1/service.rb +147 -154
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +502 -692
- data/generated/google/apis/cloudkms_v1/representations.rb +17 -0
- data/generated/google/apis/cloudkms_v1/service.rb +170 -216
- data/generated/google/apis/cloudprofiler_v2.rb +1 -1
- data/generated/google/apis/cloudprofiler_v2/classes.rb +28 -33
- data/generated/google/apis/cloudprofiler_v2/service.rb +17 -19
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1/classes.rb +272 -383
- data/generated/google/apis/cloudscheduler_v1/service.rb +45 -62
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +273 -384
- data/generated/google/apis/cloudscheduler_v1beta1/service.rb +45 -62
- data/generated/google/apis/cloudsearch_v1.rb +2 -2
- data/generated/google/apis/cloudsearch_v1/classes.rb +650 -781
- data/generated/google/apis/cloudsearch_v1/representations.rb +15 -0
- data/generated/google/apis/cloudsearch_v1/service.rb +286 -326
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1/classes.rb +36 -227
- data/generated/google/apis/cloudshell_v1/representations.rb +0 -67
- data/generated/google/apis/cloudshell_v1/service.rb +21 -25
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +69 -78
- data/generated/google/apis/cloudshell_v1alpha1/service.rb +20 -24
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +605 -933
- data/generated/google/apis/cloudtasks_v2/service.rb +146 -217
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +602 -964
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +178 -270
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +609 -938
- data/generated/google/apis/cloudtasks_v2beta3/service.rb +146 -217
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +39 -61
- data/generated/google/apis/cloudtrace_v1/service.rb +37 -51
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +92 -107
- data/generated/google/apis/cloudtrace_v2/service.rb +8 -11
- data/generated/google/apis/cloudtrace_v2beta1.rb +1 -1
- data/generated/google/apis/cloudtrace_v2beta1/classes.rb +23 -33
- data/generated/google/apis/cloudtrace_v2beta1/service.rb +30 -37
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +190 -242
- data/generated/google/apis/composer_v1/service.rb +79 -150
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +203 -262
- data/generated/google/apis/composer_v1beta1/service.rb +92 -179
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +681 -127
- data/generated/google/apis/compute_alpha/representations.rb +110 -6
- data/generated/google/apis/compute_alpha/service.rb +695 -692
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +570 -70
- data/generated/google/apis/compute_beta/representations.rb +112 -1
- data/generated/google/apis/compute_beta/service.rb +608 -605
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +977 -85
- data/generated/google/apis/compute_v1/representations.rb +372 -0
- data/generated/google/apis/compute_v1/service.rb +747 -15
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +915 -965
- data/generated/google/apis/container_v1/representations.rb +53 -0
- data/generated/google/apis/container_v1/service.rb +435 -502
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +1021 -1043
- data/generated/google/apis/container_v1beta1/representations.rb +70 -0
- data/generated/google/apis/container_v1beta1/service.rb +403 -466
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +456 -596
- data/generated/google/apis/containeranalysis_v1alpha1/service.rb +149 -169
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +454 -613
- data/generated/google/apis/containeranalysis_v1beta1/service.rb +75 -90
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +3 -1
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +93 -2
- data/generated/google/apis/content_v2_1/representations.rb +34 -0
- data/generated/google/apis/content_v2_1/service.rb +53 -2
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +382 -573
- data/generated/google/apis/datacatalog_v1beta1/service.rb +319 -440
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +1015 -973
- data/generated/google/apis/dataflow_v1b3/representations.rb +115 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +299 -257
- data/generated/google/apis/datafusion_v1.rb +5 -8
- data/generated/google/apis/datafusion_v1/classes.rb +268 -397
- data/generated/google/apis/datafusion_v1/representations.rb +3 -0
- data/generated/google/apis/datafusion_v1/service.rb +76 -89
- data/generated/google/apis/datafusion_v1beta1.rb +5 -8
- data/generated/google/apis/datafusion_v1beta1/classes.rb +268 -397
- data/generated/google/apis/datafusion_v1beta1/representations.rb +3 -0
- data/generated/google/apis/datafusion_v1beta1/service.rb +81 -95
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +37 -4
- data/generated/google/apis/dataproc_v1/representations.rb +16 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +56 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +31 -0
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +330 -472
- data/generated/google/apis/datastore_v1/service.rb +52 -63
- data/generated/google/apis/datastore_v1beta1.rb +1 -1
- data/generated/google/apis/datastore_v1beta1/classes.rb +150 -217
- data/generated/google/apis/datastore_v1beta1/service.rb +11 -12
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +255 -371
- data/generated/google/apis/datastore_v1beta3/service.rb +1 -2
- data/generated/google/apis/dfareporting_v3_3.rb +2 -2
- data/generated/google/apis/dfareporting_v3_3/classes.rb +326 -339
- data/generated/google/apis/dfareporting_v3_3/representations.rb +42 -0
- data/generated/google/apis/dfareporting_v3_3/service.rb +673 -1286
- data/generated/google/apis/dfareporting_v3_4.rb +2 -2
- data/generated/google/apis/dfareporting_v3_4/classes.rb +348 -350
- data/generated/google/apis/dfareporting_v3_4/representations.rb +43 -0
- data/generated/google/apis/dfareporting_v3_4/service.rb +708 -1285
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +84 -44
- data/generated/google/apis/dialogflow_v2/representations.rb +52 -15
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +84 -44
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +52 -15
- data/generated/google/apis/dialogflow_v2beta1/service.rb +37 -0
- data/generated/google/apis/{securitycenter_v1p1alpha1.rb → dialogflow_v3beta1.rb} +13 -10
- data/generated/google/apis/dialogflow_v3beta1/classes.rb +8183 -0
- data/generated/google/apis/dialogflow_v3beta1/representations.rb +3459 -0
- data/generated/google/apis/dialogflow_v3beta1/service.rb +2812 -0
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +55 -8
- data/generated/google/apis/displayvideo_v1/representations.rb +5 -0
- data/generated/google/apis/displayvideo_v1/service.rb +48 -36
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +1076 -1302
- data/generated/google/apis/dlp_v2/service.rb +962 -905
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +175 -198
- data/generated/google/apis/dns_v1/service.rb +82 -97
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +180 -205
- data/generated/google/apis/dns_v1beta2/service.rb +82 -97
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +894 -1229
- data/generated/google/apis/docs_v1/service.rb +17 -22
- data/generated/google/apis/documentai_v1beta2.rb +1 -1
- data/generated/google/apis/documentai_v1beta2/classes.rb +1186 -810
- data/generated/google/apis/documentai_v1beta2/representations.rb +303 -0
- data/generated/google/apis/documentai_v1beta2/service.rb +22 -24
- data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -2
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +6 -12
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +33 -64
- data/generated/google/apis/doubleclickbidmanager_v1_1.rb +3 -2
- data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +11 -18
- data/generated/google/apis/doubleclickbidmanager_v1_1/service.rb +33 -64
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/service.rb +2 -2
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +14 -6
- data/generated/google/apis/drive_v2/representations.rb +1 -0
- data/generated/google/apis/drive_v2/service.rb +79 -15
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +14 -6
- data/generated/google/apis/drive_v3/representations.rb +1 -0
- data/generated/google/apis/drive_v3/service.rb +59 -11
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +154 -173
- data/generated/google/apis/file_v1/service.rb +43 -52
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +334 -193
- data/generated/google/apis/file_v1beta1/representations.rb +55 -0
- data/generated/google/apis/file_v1beta1/service.rb +267 -55
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/classes.rb +25 -47
- data/generated/google/apis/firebase_v1beta1/representations.rb +2 -16
- data/generated/google/apis/firebase_v1beta1/service.rb +8 -1
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +26 -0
- data/generated/google/apis/firebasehosting_v1beta1/representations.rb +15 -0
- data/generated/google/apis/firebaseml_v1beta2.rb +1 -1
- data/generated/google/apis/firebaseml_v1beta2/classes.rb +0 -8
- data/generated/google/apis/firebaseml_v1beta2/representations.rb +0 -1
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +102 -137
- data/generated/google/apis/firebaserules_v1/service.rb +87 -110
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +402 -498
- data/generated/google/apis/firestore_v1/service.rb +165 -201
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +334 -409
- data/generated/google/apis/firestore_v1beta1/service.rb +106 -122
- data/generated/google/apis/firestore_v1beta2.rb +1 -1
- data/generated/google/apis/firestore_v1beta2/classes.rb +135 -165
- data/generated/google/apis/firestore_v1beta2/service.rb +65 -86
- data/generated/google/apis/fitness_v1.rb +85 -0
- data/generated/google/apis/fitness_v1/classes.rb +982 -0
- data/generated/google/apis/fitness_v1/representations.rb +398 -0
- data/generated/google/apis/fitness_v1/service.rb +626 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -3
- data/generated/google/apis/games_configuration_v1configuration/service.rb +6 -6
- data/generated/google/apis/games_management_v1management.rb +2 -3
- data/generated/google/apis/games_management_v1management/classes.rb +14 -20
- data/generated/google/apis/games_management_v1management/service.rb +35 -36
- data/generated/google/apis/games_v1.rb +2 -3
- data/generated/google/apis/games_v1/classes.rb +76 -83
- data/generated/google/apis/games_v1/representations.rb +2 -0
- data/generated/google/apis/games_v1/service.rb +84 -90
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +70 -76
- data/generated/google/apis/genomics_v1/service.rb +28 -43
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +223 -290
- data/generated/google/apis/genomics_v1alpha2/service.rb +54 -76
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +252 -275
- data/generated/google/apis/genomics_v2alpha1/representations.rb +1 -0
- data/generated/google/apis/genomics_v2alpha1/service.rb +47 -66
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +37 -43
- data/generated/google/apis/gmail_v1/service.rb +4 -3
- data/generated/google/apis/gmailpostmastertools_v1beta1.rb +2 -2
- data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +1 -1
- data/generated/google/apis/groupsmigration_v1.rb +35 -0
- data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
- data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
- data/generated/google/apis/groupsmigration_v1/service.rb +100 -0
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/classes.rb +563 -826
- data/generated/google/apis/healthcare_v1/service.rb +675 -853
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +828 -1102
- data/generated/google/apis/healthcare_v1beta1/representations.rb +20 -0
- data/generated/google/apis/healthcare_v1beta1/service.rb +895 -1139
- data/generated/google/apis/homegraph_v1.rb +1 -1
- data/generated/google/apis/homegraph_v1/classes.rb +76 -164
- data/generated/google/apis/homegraph_v1/service.rb +23 -35
- data/generated/google/apis/iam_v1.rb +5 -2
- data/generated/google/apis/iam_v1/classes.rb +388 -592
- data/generated/google/apis/iam_v1/service.rb +429 -555
- data/generated/google/apis/iamcredentials_v1.rb +4 -2
- data/generated/google/apis/iamcredentials_v1/classes.rb +75 -85
- data/generated/google/apis/iamcredentials_v1/service.rb +15 -13
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +246 -355
- data/generated/google/apis/iap_v1/service.rb +61 -71
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +157 -254
- data/generated/google/apis/iap_v1beta1/service.rb +17 -19
- data/generated/google/apis/indexing_v3.rb +1 -1
- data/generated/google/apis/indexing_v3/classes.rb +11 -11
- data/generated/google/apis/kgsearch_v1.rb +1 -1
- data/generated/google/apis/kgsearch_v1/classes.rb +4 -4
- data/generated/google/apis/kgsearch_v1/service.rb +11 -11
- data/generated/google/apis/lifesciences_v2beta.rb +1 -1
- data/generated/google/apis/lifesciences_v2beta/classes.rb +262 -290
- data/generated/google/apis/lifesciences_v2beta/service.rb +30 -42
- data/generated/google/apis/localservices_v1.rb +31 -0
- data/generated/google/apis/localservices_v1/classes.rb +419 -0
- data/generated/google/apis/localservices_v1/representations.rb +172 -0
- data/generated/google/apis/localservices_v1/service.rb +199 -0
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +174 -214
- data/generated/google/apis/logging_v2/representations.rb +15 -0
- data/generated/google/apis/logging_v2/service.rb +1017 -584
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +99 -109
- data/generated/google/apis/manufacturers_v1/service.rb +44 -55
- data/generated/google/apis/memcache_v1beta2.rb +1 -1
- data/generated/google/apis/memcache_v1beta2/classes.rb +170 -249
- data/generated/google/apis/memcache_v1beta2/representations.rb +0 -19
- data/generated/google/apis/memcache_v1beta2/service.rb +58 -71
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +949 -1144
- data/generated/google/apis/ml_v1/representations.rb +64 -0
- data/generated/google/apis/ml_v1/service.rb +194 -253
- data/generated/google/apis/monitoring_v1.rb +1 -1
- data/generated/google/apis/monitoring_v1/classes.rb +103 -26
- data/generated/google/apis/monitoring_v1/representations.rb +35 -0
- data/generated/google/apis/monitoring_v1/service.rb +10 -11
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +220 -322
- data/generated/google/apis/monitoring_v3/service.rb +121 -140
- data/generated/google/apis/networkmanagement_v1.rb +1 -1
- data/generated/google/apis/networkmanagement_v1/classes.rb +273 -429
- data/generated/google/apis/networkmanagement_v1/service.rb +97 -120
- data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
- data/generated/google/apis/networkmanagement_v1beta1/classes.rb +388 -429
- data/generated/google/apis/networkmanagement_v1beta1/representations.rb +40 -0
- data/generated/google/apis/networkmanagement_v1beta1/service.rb +97 -120
- data/generated/google/apis/osconfig_v1.rb +1 -1
- data/generated/google/apis/osconfig_v1/classes.rb +226 -270
- data/generated/google/apis/osconfig_v1/service.rb +22 -27
- data/generated/google/apis/osconfig_v1beta.rb +1 -1
- data/generated/google/apis/osconfig_v1beta/classes.rb +1031 -411
- data/generated/google/apis/osconfig_v1beta/representations.rb +337 -0
- data/generated/google/apis/osconfig_v1beta/service.rb +39 -52
- data/generated/google/apis/oslogin_v1.rb +1 -1
- data/generated/google/apis/oslogin_v1/classes.rb +14 -12
- data/generated/google/apis/oslogin_v1/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1/service.rb +12 -16
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha/classes.rb +14 -12
- data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +14 -14
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/classes.rb +14 -12
- data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1beta/service.rb +12 -16
- data/generated/google/apis/pagespeedonline_v5.rb +2 -2
- data/generated/google/apis/pagespeedonline_v5/classes.rb +18 -24
- data/generated/google/apis/pagespeedonline_v5/service.rb +3 -4
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +121 -12
- data/generated/google/apis/people_v1/representations.rb +41 -0
- data/generated/google/apis/people_v1/service.rb +39 -39
- data/generated/google/apis/playablelocations_v3.rb +1 -1
- data/generated/google/apis/playablelocations_v3/classes.rb +108 -155
- data/generated/google/apis/playablelocations_v3/service.rb +10 -10
- data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +6 -0
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +392 -518
- data/generated/google/apis/pubsub_v1/representations.rb +1 -0
- data/generated/google/apis/pubsub_v1/service.rb +220 -246
- data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
- data/generated/google/apis/pubsub_v1beta1a/classes.rb +71 -86
- data/generated/google/apis/pubsub_v1beta1a/service.rb +31 -38
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +244 -354
- data/generated/google/apis/pubsub_v1beta2/service.rb +96 -108
- data/generated/google/apis/{memcache_v1.rb → pubsublite_v1.rb} +8 -9
- data/generated/google/apis/pubsublite_v1/classes.rb +389 -0
- data/generated/google/apis/{accessapproval_v1beta1 → pubsublite_v1}/representations.rb +78 -53
- data/generated/google/apis/{memcache_v1 → pubsublite_v1}/service.rb +195 -228
- data/generated/google/apis/realtimebidding_v1.rb +1 -1
- data/generated/google/apis/recommendationengine_v1beta1.rb +1 -1
- data/generated/google/apis/recommendationengine_v1beta1/classes.rb +335 -456
- data/generated/google/apis/recommendationengine_v1beta1/representations.rb +0 -16
- data/generated/google/apis/recommendationengine_v1beta1/service.rb +140 -206
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +172 -208
- data/generated/google/apis/redis_v1/service.rb +93 -110
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +176 -212
- data/generated/google/apis/redis_v1beta1/service.rb +93 -110
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +951 -1078
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +61 -0
- data/generated/google/apis/remotebuildexecution_v1/service.rb +26 -33
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +946 -1071
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +61 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/service.rb +103 -65
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +1099 -1250
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +61 -0
- data/generated/google/apis/remotebuildexecution_v2/service.rb +147 -206
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +4 -3
- data/generated/google/apis/run_v1/representations.rb +1 -1
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +1 -1
- data/generated/google/apis/run_v1alpha1/representations.rb +1 -1
- data/generated/google/apis/run_v1beta1.rb +1 -1
- data/generated/google/apis/run_v1beta1/classes.rb +3 -2
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +295 -412
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +135 -159
- data/generated/google/apis/safebrowsing_v4.rb +1 -1
- data/generated/google/apis/safebrowsing_v4/classes.rb +55 -64
- data/generated/google/apis/safebrowsing_v4/service.rb +4 -4
- data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1/classes.rb +6 -0
- data/generated/google/apis/sasportal_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +88 -111
- data/generated/google/apis/script_v1/service.rb +63 -69
- data/generated/google/apis/secretmanager_v1.rb +1 -1
- data/generated/google/apis/secretmanager_v1/classes.rb +211 -363
- data/generated/google/apis/secretmanager_v1/service.rb +66 -82
- data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
- data/generated/google/apis/secretmanager_v1beta1/classes.rb +211 -363
- data/generated/google/apis/secretmanager_v1beta1/service.rb +66 -82
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +16 -6
- data/generated/google/apis/securitycenter_v1/representations.rb +1 -0
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +21 -9
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +1 -0
- data/generated/google/apis/{securitycenter_v1p1beta1.rb → securitycenter_v1beta2.rb} +6 -6
- data/generated/google/apis/{securitycenter_v1p1alpha1 → securitycenter_v1beta2}/classes.rb +281 -103
- data/generated/google/apis/{securitycenter_v1p1alpha1 → securitycenter_v1beta2}/representations.rb +101 -30
- data/generated/google/apis/securitycenter_v1beta2/service.rb +1494 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +18 -48
- data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +19 -49
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +523 -641
- data/generated/google/apis/servicecontrol_v1/service.rb +36 -46
- data/generated/google/apis/servicecontrol_v2.rb +1 -1
- data/generated/google/apis/servicecontrol_v2/classes.rb +279 -325
- data/generated/google/apis/servicecontrol_v2/service.rb +33 -43
- data/generated/google/apis/servicedirectory_v1beta1.rb +1 -1
- data/generated/google/apis/servicedirectory_v1beta1/classes.rb +214 -333
- data/generated/google/apis/servicedirectory_v1beta1/service.rb +94 -129
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +1266 -2116
- data/generated/google/apis/servicemanagement_v1/service.rb +144 -195
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +93 -48
- data/generated/google/apis/servicenetworking_v1/representations.rb +52 -0
- data/generated/google/apis/servicenetworking_v1/service.rb +116 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +74 -48
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +38 -0
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +52 -48
- data/generated/google/apis/serviceusage_v1/representations.rb +4 -0
- data/generated/google/apis/serviceusage_v1/service.rb +5 -1
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +87 -49
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +8 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +3932 -5007
- data/generated/google/apis/sheets_v4/representations.rb +625 -0
- data/generated/google/apis/sheets_v4/service.rb +113 -149
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +841 -1114
- data/generated/google/apis/slides_v1/service.rb +23 -30
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +6 -6
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +1546 -2157
- data/generated/google/apis/spanner_v1/service.rb +443 -618
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +174 -220
- data/generated/google/apis/speech_v1/service.rb +27 -32
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +253 -306
- data/generated/google/apis/speech_v1p1beta1/service.rb +27 -32
- data/generated/google/apis/speech_v2beta1.rb +1 -1
- data/generated/google/apis/speech_v2beta1/classes.rb +66 -76
- data/generated/google/apis/speech_v2beta1/service.rb +10 -12
- data/generated/google/apis/sql_v1beta4.rb +1 -1
- data/generated/google/apis/sql_v1beta4/classes.rb +311 -370
- data/generated/google/apis/sql_v1beta4/representations.rb +2 -0
- data/generated/google/apis/sql_v1beta4/service.rb +51 -56
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +8 -7
- data/generated/google/apis/storage_v1/representations.rb +2 -2
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +261 -339
- data/generated/google/apis/storagetransfer_v1/service.rb +43 -64
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +106 -148
- data/generated/google/apis/streetviewpublish_v1/service.rb +94 -177
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v1/service.rb +2 -2
- data/generated/google/apis/tagmanager_v2.rb +1 -1
- data/generated/google/apis/tagmanager_v2/service.rb +2 -2
- data/generated/google/apis/tasks_v1.rb +1 -1
- data/generated/google/apis/tasks_v1/classes.rb +20 -21
- data/generated/google/apis/tasks_v1/service.rb +16 -17
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +317 -382
- data/generated/google/apis/testing_v1/representations.rb +2 -0
- data/generated/google/apis/testing_v1/service.rb +22 -28
- data/generated/google/apis/texttospeech_v1.rb +1 -1
- data/generated/google/apis/texttospeech_v1/classes.rb +51 -57
- data/generated/google/apis/texttospeech_v1/service.rb +9 -10
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1/classes.rb +96 -57
- data/generated/google/apis/texttospeech_v1beta1/representations.rb +19 -0
- data/generated/google/apis/texttospeech_v1beta1/service.rb +9 -10
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -0
- data/generated/google/apis/toolresults_v1beta3/representations.rb +1 -0
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +11 -0
- data/generated/google/apis/tpu_v1/representations.rb +1 -0
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +11 -0
- data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/{accessapproval_v1beta1.rb → trafficdirector_v2.rb} +9 -9
- data/generated/google/apis/trafficdirector_v2/classes.rb +1347 -0
- data/generated/google/apis/trafficdirector_v2/representations.rb +620 -0
- data/generated/google/apis/trafficdirector_v2/service.rb +89 -0
- data/generated/google/apis/translate_v3.rb +1 -1
- data/generated/google/apis/translate_v3/classes.rb +148 -175
- data/generated/google/apis/translate_v3/service.rb +122 -151
- data/generated/google/apis/translate_v3beta1.rb +1 -1
- data/generated/google/apis/translate_v3beta1/classes.rb +149 -170
- data/generated/google/apis/translate_v3beta1/service.rb +122 -151
- data/generated/google/apis/vectortile_v1.rb +1 -1
- data/generated/google/apis/vectortile_v1/classes.rb +185 -267
- data/generated/google/apis/vectortile_v1/service.rb +75 -88
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +753 -918
- data/generated/google/apis/videointelligence_v1/service.rb +40 -48
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +748 -911
- data/generated/google/apis/videointelligence_v1beta2/service.rb +4 -4
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +748 -911
- data/generated/google/apis/videointelligence_v1p1beta1/service.rb +4 -4
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +748 -911
- data/generated/google/apis/videointelligence_v1p2beta1/service.rb +4 -4
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +754 -920
- data/generated/google/apis/videointelligence_v1p3beta1/service.rb +4 -4
- data/generated/google/apis/webfonts_v1.rb +2 -3
- data/generated/google/apis/webfonts_v1/classes.rb +1 -2
- data/generated/google/apis/webfonts_v1/service.rb +2 -4
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +347 -0
- data/generated/google/apis/youtube_v3/representations.rb +176 -0
- data/generated/google/apis/youtube_v3/service.rb +78 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +31 -31
- data/generated/google/apis/accessapproval_v1beta1/classes.rb +0 -417
- data/generated/google/apis/accessapproval_v1beta1/service.rb +0 -857
- data/generated/google/apis/dns_v2beta1.rb +0 -43
- data/generated/google/apis/dns_v2beta1/classes.rb +0 -1447
- data/generated/google/apis/dns_v2beta1/representations.rb +0 -588
- data/generated/google/apis/dns_v2beta1/service.rb +0 -928
- data/generated/google/apis/memcache_v1/classes.rb +0 -1157
- data/generated/google/apis/memcache_v1/representations.rb +0 -471
- data/generated/google/apis/oauth2_v2.rb +0 -40
- data/generated/google/apis/oauth2_v2/classes.rb +0 -165
- data/generated/google/apis/oauth2_v2/representations.rb +0 -68
- data/generated/google/apis/oauth2_v2/service.rb +0 -158
- data/generated/google/apis/securitycenter_v1p1alpha1/service.rb +0 -207
- data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +0 -2059
- data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +0 -789
- data/generated/google/apis/securitycenter_v1p1beta1/service.rb +0 -1243
- data/generated/google/apis/storage_v1beta2.rb +0 -40
- data/generated/google/apis/storage_v1beta2/classes.rb +0 -1047
- data/generated/google/apis/storage_v1beta2/representations.rb +0 -425
- data/generated/google/apis/storage_v1beta2/service.rb +0 -1667
@@ -1,425 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'date'
|
16
|
-
require 'google/apis/core/base_service'
|
17
|
-
require 'google/apis/core/json_representation'
|
18
|
-
require 'google/apis/core/hashable'
|
19
|
-
require 'google/apis/errors'
|
20
|
-
|
21
|
-
module Google
|
22
|
-
module Apis
|
23
|
-
module StorageV1beta2
|
24
|
-
|
25
|
-
class Bucket
|
26
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
-
|
28
|
-
class Cor
|
29
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
30
|
-
|
31
|
-
include Google::Apis::Core::JsonObjectSupport
|
32
|
-
end
|
33
|
-
|
34
|
-
class Lifecycle
|
35
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
36
|
-
|
37
|
-
class Rule
|
38
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
-
|
40
|
-
class Action
|
41
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
42
|
-
|
43
|
-
include Google::Apis::Core::JsonObjectSupport
|
44
|
-
end
|
45
|
-
|
46
|
-
class Condition
|
47
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
48
|
-
|
49
|
-
include Google::Apis::Core::JsonObjectSupport
|
50
|
-
end
|
51
|
-
|
52
|
-
include Google::Apis::Core::JsonObjectSupport
|
53
|
-
end
|
54
|
-
|
55
|
-
include Google::Apis::Core::JsonObjectSupport
|
56
|
-
end
|
57
|
-
|
58
|
-
class Logging
|
59
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
60
|
-
|
61
|
-
include Google::Apis::Core::JsonObjectSupport
|
62
|
-
end
|
63
|
-
|
64
|
-
class Owner
|
65
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
66
|
-
|
67
|
-
include Google::Apis::Core::JsonObjectSupport
|
68
|
-
end
|
69
|
-
|
70
|
-
class Versioning
|
71
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
72
|
-
|
73
|
-
include Google::Apis::Core::JsonObjectSupport
|
74
|
-
end
|
75
|
-
|
76
|
-
class Website
|
77
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
78
|
-
|
79
|
-
include Google::Apis::Core::JsonObjectSupport
|
80
|
-
end
|
81
|
-
|
82
|
-
include Google::Apis::Core::JsonObjectSupport
|
83
|
-
end
|
84
|
-
|
85
|
-
class BucketAccessControl
|
86
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
-
|
88
|
-
include Google::Apis::Core::JsonObjectSupport
|
89
|
-
end
|
90
|
-
|
91
|
-
class BucketAccessControls
|
92
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
-
|
94
|
-
include Google::Apis::Core::JsonObjectSupport
|
95
|
-
end
|
96
|
-
|
97
|
-
class Buckets
|
98
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
-
|
100
|
-
include Google::Apis::Core::JsonObjectSupport
|
101
|
-
end
|
102
|
-
|
103
|
-
class Channel
|
104
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
-
|
106
|
-
include Google::Apis::Core::JsonObjectSupport
|
107
|
-
end
|
108
|
-
|
109
|
-
class ComposeRequest
|
110
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
-
|
112
|
-
class SourceObject
|
113
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
114
|
-
|
115
|
-
class ObjectPreconditions
|
116
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
-
|
118
|
-
include Google::Apis::Core::JsonObjectSupport
|
119
|
-
end
|
120
|
-
|
121
|
-
include Google::Apis::Core::JsonObjectSupport
|
122
|
-
end
|
123
|
-
|
124
|
-
include Google::Apis::Core::JsonObjectSupport
|
125
|
-
end
|
126
|
-
|
127
|
-
class Object
|
128
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
-
|
130
|
-
class Owner
|
131
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
132
|
-
|
133
|
-
include Google::Apis::Core::JsonObjectSupport
|
134
|
-
end
|
135
|
-
|
136
|
-
include Google::Apis::Core::JsonObjectSupport
|
137
|
-
end
|
138
|
-
|
139
|
-
class ObjectAccessControl
|
140
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
-
|
142
|
-
include Google::Apis::Core::JsonObjectSupport
|
143
|
-
end
|
144
|
-
|
145
|
-
class ObjectAccessControls
|
146
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
-
|
148
|
-
include Google::Apis::Core::JsonObjectSupport
|
149
|
-
end
|
150
|
-
|
151
|
-
class Objects
|
152
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
-
|
154
|
-
include Google::Apis::Core::JsonObjectSupport
|
155
|
-
end
|
156
|
-
|
157
|
-
class Bucket
|
158
|
-
# @private
|
159
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
160
|
-
collection :acl, as: 'acl', class: Google::Apis::StorageV1beta2::BucketAccessControl, decorator: Google::Apis::StorageV1beta2::BucketAccessControl::Representation
|
161
|
-
|
162
|
-
collection :cors, as: 'cors', class: Google::Apis::StorageV1beta2::Bucket::Cor, decorator: Google::Apis::StorageV1beta2::Bucket::Cor::Representation
|
163
|
-
|
164
|
-
collection :default_object_acl, as: 'defaultObjectAcl', class: Google::Apis::StorageV1beta2::ObjectAccessControl, decorator: Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
|
165
|
-
|
166
|
-
property :etag, as: 'etag'
|
167
|
-
property :id, as: 'id'
|
168
|
-
property :kind, as: 'kind'
|
169
|
-
property :lifecycle, as: 'lifecycle', class: Google::Apis::StorageV1beta2::Bucket::Lifecycle, decorator: Google::Apis::StorageV1beta2::Bucket::Lifecycle::Representation
|
170
|
-
|
171
|
-
property :location, as: 'location'
|
172
|
-
property :logging, as: 'logging', class: Google::Apis::StorageV1beta2::Bucket::Logging, decorator: Google::Apis::StorageV1beta2::Bucket::Logging::Representation
|
173
|
-
|
174
|
-
property :metageneration, :numeric_string => true, as: 'metageneration'
|
175
|
-
property :name, as: 'name'
|
176
|
-
property :owner, as: 'owner', class: Google::Apis::StorageV1beta2::Bucket::Owner, decorator: Google::Apis::StorageV1beta2::Bucket::Owner::Representation
|
177
|
-
|
178
|
-
property :self_link, as: 'selfLink'
|
179
|
-
property :storage_class, as: 'storageClass'
|
180
|
-
property :time_created, as: 'timeCreated', type: DateTime
|
181
|
-
|
182
|
-
property :versioning, as: 'versioning', class: Google::Apis::StorageV1beta2::Bucket::Versioning, decorator: Google::Apis::StorageV1beta2::Bucket::Versioning::Representation
|
183
|
-
|
184
|
-
property :website, as: 'website', class: Google::Apis::StorageV1beta2::Bucket::Website, decorator: Google::Apis::StorageV1beta2::Bucket::Website::Representation
|
185
|
-
|
186
|
-
end
|
187
|
-
|
188
|
-
class Cor
|
189
|
-
# @private
|
190
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
191
|
-
property :max_age_seconds, as: 'maxAgeSeconds'
|
192
|
-
collection :method_prop, as: 'method'
|
193
|
-
collection :origin, as: 'origin'
|
194
|
-
collection :response_header, as: 'responseHeader'
|
195
|
-
end
|
196
|
-
end
|
197
|
-
|
198
|
-
class Lifecycle
|
199
|
-
# @private
|
200
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
201
|
-
collection :rule, as: 'rule', class: Google::Apis::StorageV1beta2::Bucket::Lifecycle::Rule, decorator: Google::Apis::StorageV1beta2::Bucket::Lifecycle::Rule::Representation
|
202
|
-
|
203
|
-
end
|
204
|
-
|
205
|
-
class Rule
|
206
|
-
# @private
|
207
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
208
|
-
property :action, as: 'action', class: Google::Apis::StorageV1beta2::Bucket::Lifecycle::Rule::Action, decorator: Google::Apis::StorageV1beta2::Bucket::Lifecycle::Rule::Action::Representation
|
209
|
-
|
210
|
-
property :condition, as: 'condition', class: Google::Apis::StorageV1beta2::Bucket::Lifecycle::Rule::Condition, decorator: Google::Apis::StorageV1beta2::Bucket::Lifecycle::Rule::Condition::Representation
|
211
|
-
|
212
|
-
end
|
213
|
-
|
214
|
-
class Action
|
215
|
-
# @private
|
216
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
217
|
-
property :type, as: 'type'
|
218
|
-
end
|
219
|
-
end
|
220
|
-
|
221
|
-
class Condition
|
222
|
-
# @private
|
223
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
224
|
-
property :age, as: 'age'
|
225
|
-
property :created_before, as: 'createdBefore', type: Date
|
226
|
-
|
227
|
-
property :is_live, as: 'isLive'
|
228
|
-
property :num_newer_versions, as: 'numNewerVersions'
|
229
|
-
end
|
230
|
-
end
|
231
|
-
end
|
232
|
-
end
|
233
|
-
|
234
|
-
class Logging
|
235
|
-
# @private
|
236
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
237
|
-
property :log_bucket, as: 'logBucket'
|
238
|
-
property :log_object_prefix, as: 'logObjectPrefix'
|
239
|
-
end
|
240
|
-
end
|
241
|
-
|
242
|
-
class Owner
|
243
|
-
# @private
|
244
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
245
|
-
property :entity, as: 'entity'
|
246
|
-
property :entity_id, as: 'entityId'
|
247
|
-
end
|
248
|
-
end
|
249
|
-
|
250
|
-
class Versioning
|
251
|
-
# @private
|
252
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
253
|
-
property :enabled, as: 'enabled'
|
254
|
-
end
|
255
|
-
end
|
256
|
-
|
257
|
-
class Website
|
258
|
-
# @private
|
259
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
260
|
-
property :main_page_suffix, as: 'mainPageSuffix'
|
261
|
-
property :not_found_page, as: 'notFoundPage'
|
262
|
-
end
|
263
|
-
end
|
264
|
-
end
|
265
|
-
|
266
|
-
class BucketAccessControl
|
267
|
-
# @private
|
268
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
269
|
-
property :bucket, as: 'bucket'
|
270
|
-
property :domain, as: 'domain'
|
271
|
-
property :email, as: 'email'
|
272
|
-
property :entity, as: 'entity'
|
273
|
-
property :entity_id, as: 'entityId'
|
274
|
-
property :etag, as: 'etag'
|
275
|
-
property :id, as: 'id'
|
276
|
-
property :kind, as: 'kind'
|
277
|
-
property :role, as: 'role'
|
278
|
-
property :self_link, as: 'selfLink'
|
279
|
-
end
|
280
|
-
end
|
281
|
-
|
282
|
-
class BucketAccessControls
|
283
|
-
# @private
|
284
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
285
|
-
collection :items, as: 'items', class: Google::Apis::StorageV1beta2::BucketAccessControl, decorator: Google::Apis::StorageV1beta2::BucketAccessControl::Representation
|
286
|
-
|
287
|
-
property :kind, as: 'kind'
|
288
|
-
end
|
289
|
-
end
|
290
|
-
|
291
|
-
class Buckets
|
292
|
-
# @private
|
293
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
294
|
-
collection :items, as: 'items', class: Google::Apis::StorageV1beta2::Bucket, decorator: Google::Apis::StorageV1beta2::Bucket::Representation
|
295
|
-
|
296
|
-
property :kind, as: 'kind'
|
297
|
-
property :next_page_token, as: 'nextPageToken'
|
298
|
-
end
|
299
|
-
end
|
300
|
-
|
301
|
-
class Channel
|
302
|
-
# @private
|
303
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
304
|
-
property :address, as: 'address'
|
305
|
-
property :expiration, :numeric_string => true, as: 'expiration'
|
306
|
-
property :id, as: 'id'
|
307
|
-
property :kind, as: 'kind'
|
308
|
-
hash :params, as: 'params'
|
309
|
-
property :payload, as: 'payload'
|
310
|
-
property :resource_id, as: 'resourceId'
|
311
|
-
property :resource_uri, as: 'resourceUri'
|
312
|
-
property :token, as: 'token'
|
313
|
-
property :type, as: 'type'
|
314
|
-
end
|
315
|
-
end
|
316
|
-
|
317
|
-
class ComposeRequest
|
318
|
-
# @private
|
319
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
320
|
-
property :destination, as: 'destination', class: Google::Apis::StorageV1beta2::Object, decorator: Google::Apis::StorageV1beta2::Object::Representation
|
321
|
-
|
322
|
-
property :kind, as: 'kind'
|
323
|
-
collection :source_objects, as: 'sourceObjects', class: Google::Apis::StorageV1beta2::ComposeRequest::SourceObject, decorator: Google::Apis::StorageV1beta2::ComposeRequest::SourceObject::Representation
|
324
|
-
|
325
|
-
end
|
326
|
-
|
327
|
-
class SourceObject
|
328
|
-
# @private
|
329
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
330
|
-
property :generation, :numeric_string => true, as: 'generation'
|
331
|
-
property :name, as: 'name'
|
332
|
-
property :object_preconditions, as: 'objectPreconditions', class: Google::Apis::StorageV1beta2::ComposeRequest::SourceObject::ObjectPreconditions, decorator: Google::Apis::StorageV1beta2::ComposeRequest::SourceObject::ObjectPreconditions::Representation
|
333
|
-
|
334
|
-
end
|
335
|
-
|
336
|
-
class ObjectPreconditions
|
337
|
-
# @private
|
338
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
339
|
-
property :if_generation_match, :numeric_string => true, as: 'ifGenerationMatch'
|
340
|
-
end
|
341
|
-
end
|
342
|
-
end
|
343
|
-
end
|
344
|
-
|
345
|
-
class Object
|
346
|
-
# @private
|
347
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
348
|
-
collection :acl, as: 'acl', class: Google::Apis::StorageV1beta2::ObjectAccessControl, decorator: Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
|
349
|
-
|
350
|
-
property :bucket, as: 'bucket'
|
351
|
-
property :cache_control, as: 'cacheControl'
|
352
|
-
property :component_count, as: 'componentCount'
|
353
|
-
property :content_disposition, as: 'contentDisposition'
|
354
|
-
property :content_encoding, as: 'contentEncoding'
|
355
|
-
property :content_language, as: 'contentLanguage'
|
356
|
-
property :content_type, as: 'contentType'
|
357
|
-
property :crc32c, as: 'crc32c'
|
358
|
-
property :etag, as: 'etag'
|
359
|
-
property :generation, :numeric_string => true, as: 'generation'
|
360
|
-
property :id, as: 'id'
|
361
|
-
property :kind, as: 'kind'
|
362
|
-
property :md5_hash, as: 'md5Hash'
|
363
|
-
property :media_link, as: 'mediaLink'
|
364
|
-
hash :metadata, as: 'metadata'
|
365
|
-
property :metageneration, :numeric_string => true, as: 'metageneration'
|
366
|
-
property :name, as: 'name'
|
367
|
-
property :owner, as: 'owner', class: Google::Apis::StorageV1beta2::Object::Owner, decorator: Google::Apis::StorageV1beta2::Object::Owner::Representation
|
368
|
-
|
369
|
-
property :self_link, as: 'selfLink'
|
370
|
-
property :size, :numeric_string => true, as: 'size'
|
371
|
-
property :storage_class, as: 'storageClass'
|
372
|
-
property :time_deleted, as: 'timeDeleted', type: DateTime
|
373
|
-
|
374
|
-
property :updated, as: 'updated', type: DateTime
|
375
|
-
|
376
|
-
end
|
377
|
-
|
378
|
-
class Owner
|
379
|
-
# @private
|
380
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
381
|
-
property :entity, as: 'entity'
|
382
|
-
property :entity_id, as: 'entityId'
|
383
|
-
end
|
384
|
-
end
|
385
|
-
end
|
386
|
-
|
387
|
-
class ObjectAccessControl
|
388
|
-
# @private
|
389
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
390
|
-
property :bucket, as: 'bucket'
|
391
|
-
property :domain, as: 'domain'
|
392
|
-
property :email, as: 'email'
|
393
|
-
property :entity, as: 'entity'
|
394
|
-
property :entity_id, as: 'entityId'
|
395
|
-
property :etag, as: 'etag'
|
396
|
-
property :generation, :numeric_string => true, as: 'generation'
|
397
|
-
property :id, as: 'id'
|
398
|
-
property :kind, as: 'kind'
|
399
|
-
property :object, as: 'object'
|
400
|
-
property :role, as: 'role'
|
401
|
-
property :self_link, as: 'selfLink'
|
402
|
-
end
|
403
|
-
end
|
404
|
-
|
405
|
-
class ObjectAccessControls
|
406
|
-
# @private
|
407
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
408
|
-
collection :items, as: 'items'
|
409
|
-
property :kind, as: 'kind'
|
410
|
-
end
|
411
|
-
end
|
412
|
-
|
413
|
-
class Objects
|
414
|
-
# @private
|
415
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
416
|
-
collection :items, as: 'items', class: Google::Apis::StorageV1beta2::Object, decorator: Google::Apis::StorageV1beta2::Object::Representation
|
417
|
-
|
418
|
-
property :kind, as: 'kind'
|
419
|
-
property :next_page_token, as: 'nextPageToken'
|
420
|
-
collection :prefixes, as: 'prefixes'
|
421
|
-
end
|
422
|
-
end
|
423
|
-
end
|
424
|
-
end
|
425
|
-
end
|
@@ -1,1667 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'google/apis/core/base_service'
|
16
|
-
require 'google/apis/core/json_representation'
|
17
|
-
require 'google/apis/core/hashable'
|
18
|
-
require 'google/apis/errors'
|
19
|
-
|
20
|
-
module Google
|
21
|
-
module Apis
|
22
|
-
module StorageV1beta2
|
23
|
-
# Cloud Storage JSON API
|
24
|
-
#
|
25
|
-
# Lets you store and retrieve potentially-large, immutable data objects.
|
26
|
-
#
|
27
|
-
# @example
|
28
|
-
# require 'google/apis/storage_v1beta2'
|
29
|
-
#
|
30
|
-
# Storage = Google::Apis::StorageV1beta2 # Alias the module
|
31
|
-
# service = Storage::StorageService.new
|
32
|
-
#
|
33
|
-
# @see https://developers.google.com/storage/docs/json_api/
|
34
|
-
class StorageService < Google::Apis::Core::BaseService
|
35
|
-
# @return [String]
|
36
|
-
# API key. Your API key identifies your project and provides you with API access,
|
37
|
-
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
-
attr_accessor :key
|
39
|
-
|
40
|
-
# @return [String]
|
41
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
42
|
-
# characters.
|
43
|
-
attr_accessor :quota_user
|
44
|
-
|
45
|
-
# @return [String]
|
46
|
-
# Deprecated. Please use quotaUser instead.
|
47
|
-
attr_accessor :user_ip
|
48
|
-
|
49
|
-
def initialize
|
50
|
-
super('https://storage.googleapis.com/', 'storage/v1beta2/')
|
51
|
-
@batch_path = 'batch/storage/v1beta2'
|
52
|
-
end
|
53
|
-
|
54
|
-
# Permanently deletes the ACL entry for the specified entity on the specified
|
55
|
-
# bucket.
|
56
|
-
# @param [String] bucket
|
57
|
-
# Name of a bucket.
|
58
|
-
# @param [String] entity
|
59
|
-
# The entity holding the permission. Can be user-userId, user-emailAddress,
|
60
|
-
# group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
|
61
|
-
# @param [String] fields
|
62
|
-
# Selector specifying which fields to include in a partial response.
|
63
|
-
# @param [String] quota_user
|
64
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
65
|
-
# characters.
|
66
|
-
# @param [String] user_ip
|
67
|
-
# Deprecated. Please use quotaUser instead.
|
68
|
-
# @param [Google::Apis::RequestOptions] options
|
69
|
-
# Request-specific options
|
70
|
-
#
|
71
|
-
# @yield [result, err] Result & error if block supplied
|
72
|
-
# @yieldparam result [NilClass] No result returned for this method
|
73
|
-
# @yieldparam err [StandardError] error object if request failed
|
74
|
-
#
|
75
|
-
# @return [void]
|
76
|
-
#
|
77
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
78
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
79
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
80
|
-
def delete_bucket_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
81
|
-
command = make_simple_command(:delete, 'b/{bucket}/acl/{entity}', options)
|
82
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
83
|
-
command.params['entity'] = entity unless entity.nil?
|
84
|
-
command.query['fields'] = fields unless fields.nil?
|
85
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
86
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
87
|
-
execute_or_queue_command(command, &block)
|
88
|
-
end
|
89
|
-
|
90
|
-
# Returns the ACL entry for the specified entity on the specified bucket.
|
91
|
-
# @param [String] bucket
|
92
|
-
# Name of a bucket.
|
93
|
-
# @param [String] entity
|
94
|
-
# The entity holding the permission. Can be user-userId, user-emailAddress,
|
95
|
-
# group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
|
96
|
-
# @param [String] fields
|
97
|
-
# Selector specifying which fields to include in a partial response.
|
98
|
-
# @param [String] quota_user
|
99
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
100
|
-
# characters.
|
101
|
-
# @param [String] user_ip
|
102
|
-
# Deprecated. Please use quotaUser instead.
|
103
|
-
# @param [Google::Apis::RequestOptions] options
|
104
|
-
# Request-specific options
|
105
|
-
#
|
106
|
-
# @yield [result, err] Result & error if block supplied
|
107
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::BucketAccessControl] parsed result object
|
108
|
-
# @yieldparam err [StandardError] error object if request failed
|
109
|
-
#
|
110
|
-
# @return [Google::Apis::StorageV1beta2::BucketAccessControl]
|
111
|
-
#
|
112
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
113
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
114
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
115
|
-
def get_bucket_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
116
|
-
command = make_simple_command(:get, 'b/{bucket}/acl/{entity}', options)
|
117
|
-
command.response_representation = Google::Apis::StorageV1beta2::BucketAccessControl::Representation
|
118
|
-
command.response_class = Google::Apis::StorageV1beta2::BucketAccessControl
|
119
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
120
|
-
command.params['entity'] = entity unless entity.nil?
|
121
|
-
command.query['fields'] = fields unless fields.nil?
|
122
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
123
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
124
|
-
execute_or_queue_command(command, &block)
|
125
|
-
end
|
126
|
-
|
127
|
-
# Creates a new ACL entry on the specified bucket.
|
128
|
-
# @param [String] bucket
|
129
|
-
# Name of a bucket.
|
130
|
-
# @param [Google::Apis::StorageV1beta2::BucketAccessControl] bucket_access_control_object
|
131
|
-
# @param [String] fields
|
132
|
-
# Selector specifying which fields to include in a partial response.
|
133
|
-
# @param [String] quota_user
|
134
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
135
|
-
# characters.
|
136
|
-
# @param [String] user_ip
|
137
|
-
# Deprecated. Please use quotaUser instead.
|
138
|
-
# @param [Google::Apis::RequestOptions] options
|
139
|
-
# Request-specific options
|
140
|
-
#
|
141
|
-
# @yield [result, err] Result & error if block supplied
|
142
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::BucketAccessControl] parsed result object
|
143
|
-
# @yieldparam err [StandardError] error object if request failed
|
144
|
-
#
|
145
|
-
# @return [Google::Apis::StorageV1beta2::BucketAccessControl]
|
146
|
-
#
|
147
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
148
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
149
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
150
|
-
def insert_bucket_access_control(bucket, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
151
|
-
command = make_simple_command(:post, 'b/{bucket}/acl', options)
|
152
|
-
command.request_representation = Google::Apis::StorageV1beta2::BucketAccessControl::Representation
|
153
|
-
command.request_object = bucket_access_control_object
|
154
|
-
command.response_representation = Google::Apis::StorageV1beta2::BucketAccessControl::Representation
|
155
|
-
command.response_class = Google::Apis::StorageV1beta2::BucketAccessControl
|
156
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
157
|
-
command.query['fields'] = fields unless fields.nil?
|
158
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
159
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
160
|
-
execute_or_queue_command(command, &block)
|
161
|
-
end
|
162
|
-
|
163
|
-
# Retrieves ACL entries on the specified bucket.
|
164
|
-
# @param [String] bucket
|
165
|
-
# Name of a bucket.
|
166
|
-
# @param [String] fields
|
167
|
-
# Selector specifying which fields to include in a partial response.
|
168
|
-
# @param [String] quota_user
|
169
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
170
|
-
# characters.
|
171
|
-
# @param [String] user_ip
|
172
|
-
# Deprecated. Please use quotaUser instead.
|
173
|
-
# @param [Google::Apis::RequestOptions] options
|
174
|
-
# Request-specific options
|
175
|
-
#
|
176
|
-
# @yield [result, err] Result & error if block supplied
|
177
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::BucketAccessControls] parsed result object
|
178
|
-
# @yieldparam err [StandardError] error object if request failed
|
179
|
-
#
|
180
|
-
# @return [Google::Apis::StorageV1beta2::BucketAccessControls]
|
181
|
-
#
|
182
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
183
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
184
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
185
|
-
def list_bucket_access_controls(bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
186
|
-
command = make_simple_command(:get, 'b/{bucket}/acl', options)
|
187
|
-
command.response_representation = Google::Apis::StorageV1beta2::BucketAccessControls::Representation
|
188
|
-
command.response_class = Google::Apis::StorageV1beta2::BucketAccessControls
|
189
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
190
|
-
command.query['fields'] = fields unless fields.nil?
|
191
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
192
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
193
|
-
execute_or_queue_command(command, &block)
|
194
|
-
end
|
195
|
-
|
196
|
-
# Updates an ACL entry on the specified bucket. This method supports patch
|
197
|
-
# semantics.
|
198
|
-
# @param [String] bucket
|
199
|
-
# Name of a bucket.
|
200
|
-
# @param [String] entity
|
201
|
-
# The entity holding the permission. Can be user-userId, user-emailAddress,
|
202
|
-
# group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
|
203
|
-
# @param [Google::Apis::StorageV1beta2::BucketAccessControl] bucket_access_control_object
|
204
|
-
# @param [String] fields
|
205
|
-
# Selector specifying which fields to include in a partial response.
|
206
|
-
# @param [String] quota_user
|
207
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
208
|
-
# characters.
|
209
|
-
# @param [String] user_ip
|
210
|
-
# Deprecated. Please use quotaUser instead.
|
211
|
-
# @param [Google::Apis::RequestOptions] options
|
212
|
-
# Request-specific options
|
213
|
-
#
|
214
|
-
# @yield [result, err] Result & error if block supplied
|
215
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::BucketAccessControl] parsed result object
|
216
|
-
# @yieldparam err [StandardError] error object if request failed
|
217
|
-
#
|
218
|
-
# @return [Google::Apis::StorageV1beta2::BucketAccessControl]
|
219
|
-
#
|
220
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
221
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
222
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
223
|
-
def patch_bucket_access_control(bucket, entity, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
224
|
-
command = make_simple_command(:patch, 'b/{bucket}/acl/{entity}', options)
|
225
|
-
command.request_representation = Google::Apis::StorageV1beta2::BucketAccessControl::Representation
|
226
|
-
command.request_object = bucket_access_control_object
|
227
|
-
command.response_representation = Google::Apis::StorageV1beta2::BucketAccessControl::Representation
|
228
|
-
command.response_class = Google::Apis::StorageV1beta2::BucketAccessControl
|
229
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
230
|
-
command.params['entity'] = entity unless entity.nil?
|
231
|
-
command.query['fields'] = fields unless fields.nil?
|
232
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
233
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
234
|
-
execute_or_queue_command(command, &block)
|
235
|
-
end
|
236
|
-
|
237
|
-
# Updates an ACL entry on the specified bucket.
|
238
|
-
# @param [String] bucket
|
239
|
-
# Name of a bucket.
|
240
|
-
# @param [String] entity
|
241
|
-
# The entity holding the permission. Can be user-userId, user-emailAddress,
|
242
|
-
# group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
|
243
|
-
# @param [Google::Apis::StorageV1beta2::BucketAccessControl] bucket_access_control_object
|
244
|
-
# @param [String] fields
|
245
|
-
# Selector specifying which fields to include in a partial response.
|
246
|
-
# @param [String] quota_user
|
247
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
248
|
-
# characters.
|
249
|
-
# @param [String] user_ip
|
250
|
-
# Deprecated. Please use quotaUser instead.
|
251
|
-
# @param [Google::Apis::RequestOptions] options
|
252
|
-
# Request-specific options
|
253
|
-
#
|
254
|
-
# @yield [result, err] Result & error if block supplied
|
255
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::BucketAccessControl] parsed result object
|
256
|
-
# @yieldparam err [StandardError] error object if request failed
|
257
|
-
#
|
258
|
-
# @return [Google::Apis::StorageV1beta2::BucketAccessControl]
|
259
|
-
#
|
260
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
261
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
262
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
263
|
-
def update_bucket_access_control(bucket, entity, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
264
|
-
command = make_simple_command(:put, 'b/{bucket}/acl/{entity}', options)
|
265
|
-
command.request_representation = Google::Apis::StorageV1beta2::BucketAccessControl::Representation
|
266
|
-
command.request_object = bucket_access_control_object
|
267
|
-
command.response_representation = Google::Apis::StorageV1beta2::BucketAccessControl::Representation
|
268
|
-
command.response_class = Google::Apis::StorageV1beta2::BucketAccessControl
|
269
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
270
|
-
command.params['entity'] = entity unless entity.nil?
|
271
|
-
command.query['fields'] = fields unless fields.nil?
|
272
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
273
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
274
|
-
execute_or_queue_command(command, &block)
|
275
|
-
end
|
276
|
-
|
277
|
-
# Permanently deletes an empty bucket.
|
278
|
-
# @param [String] bucket
|
279
|
-
# Name of a bucket.
|
280
|
-
# @param [Fixnum] if_metageneration_match
|
281
|
-
# Makes the return of the bucket metadata conditional on whether the bucket's
|
282
|
-
# current metageneration matches the given value.
|
283
|
-
# @param [Fixnum] if_metageneration_not_match
|
284
|
-
# Makes the return of the bucket metadata conditional on whether the bucket's
|
285
|
-
# current metageneration does not match the given value.
|
286
|
-
# @param [String] fields
|
287
|
-
# Selector specifying which fields to include in a partial response.
|
288
|
-
# @param [String] quota_user
|
289
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
290
|
-
# characters.
|
291
|
-
# @param [String] user_ip
|
292
|
-
# Deprecated. Please use quotaUser instead.
|
293
|
-
# @param [Google::Apis::RequestOptions] options
|
294
|
-
# Request-specific options
|
295
|
-
#
|
296
|
-
# @yield [result, err] Result & error if block supplied
|
297
|
-
# @yieldparam result [NilClass] No result returned for this method
|
298
|
-
# @yieldparam err [StandardError] error object if request failed
|
299
|
-
#
|
300
|
-
# @return [void]
|
301
|
-
#
|
302
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
303
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
304
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
305
|
-
def delete_bucket(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
306
|
-
command = make_simple_command(:delete, 'b/{bucket}', options)
|
307
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
308
|
-
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
309
|
-
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
310
|
-
command.query['fields'] = fields unless fields.nil?
|
311
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
312
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
313
|
-
execute_or_queue_command(command, &block)
|
314
|
-
end
|
315
|
-
|
316
|
-
# Returns metadata for the specified bucket.
|
317
|
-
# @param [String] bucket
|
318
|
-
# Name of a bucket.
|
319
|
-
# @param [Fixnum] if_metageneration_match
|
320
|
-
# Makes the return of the bucket metadata conditional on whether the bucket's
|
321
|
-
# current metageneration matches the given value.
|
322
|
-
# @param [Fixnum] if_metageneration_not_match
|
323
|
-
# Makes the return of the bucket metadata conditional on whether the bucket's
|
324
|
-
# current metageneration does not match the given value.
|
325
|
-
# @param [String] projection
|
326
|
-
# Set of properties to return. Defaults to noAcl.
|
327
|
-
# @param [String] fields
|
328
|
-
# Selector specifying which fields to include in a partial response.
|
329
|
-
# @param [String] quota_user
|
330
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
331
|
-
# characters.
|
332
|
-
# @param [String] user_ip
|
333
|
-
# Deprecated. Please use quotaUser instead.
|
334
|
-
# @param [Google::Apis::RequestOptions] options
|
335
|
-
# Request-specific options
|
336
|
-
#
|
337
|
-
# @yield [result, err] Result & error if block supplied
|
338
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::Bucket] parsed result object
|
339
|
-
# @yieldparam err [StandardError] error object if request failed
|
340
|
-
#
|
341
|
-
# @return [Google::Apis::StorageV1beta2::Bucket]
|
342
|
-
#
|
343
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
344
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
345
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
346
|
-
def get_bucket(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
347
|
-
command = make_simple_command(:get, 'b/{bucket}', options)
|
348
|
-
command.response_representation = Google::Apis::StorageV1beta2::Bucket::Representation
|
349
|
-
command.response_class = Google::Apis::StorageV1beta2::Bucket
|
350
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
351
|
-
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
352
|
-
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
353
|
-
command.query['projection'] = projection unless projection.nil?
|
354
|
-
command.query['fields'] = fields unless fields.nil?
|
355
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
356
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
357
|
-
execute_or_queue_command(command, &block)
|
358
|
-
end
|
359
|
-
|
360
|
-
# Creates a new bucket.
|
361
|
-
# @param [String] project
|
362
|
-
# A valid API project identifier.
|
363
|
-
# @param [Google::Apis::StorageV1beta2::Bucket] bucket_object
|
364
|
-
# @param [String] projection
|
365
|
-
# Set of properties to return. Defaults to noAcl, unless the bucket resource
|
366
|
-
# specifies acl or defaultObjectAcl properties, when it defaults to full.
|
367
|
-
# @param [String] fields
|
368
|
-
# Selector specifying which fields to include in a partial response.
|
369
|
-
# @param [String] quota_user
|
370
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
371
|
-
# characters.
|
372
|
-
# @param [String] user_ip
|
373
|
-
# Deprecated. Please use quotaUser instead.
|
374
|
-
# @param [Google::Apis::RequestOptions] options
|
375
|
-
# Request-specific options
|
376
|
-
#
|
377
|
-
# @yield [result, err] Result & error if block supplied
|
378
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::Bucket] parsed result object
|
379
|
-
# @yieldparam err [StandardError] error object if request failed
|
380
|
-
#
|
381
|
-
# @return [Google::Apis::StorageV1beta2::Bucket]
|
382
|
-
#
|
383
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
384
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
385
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
386
|
-
def insert_bucket(project, bucket_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
387
|
-
command = make_simple_command(:post, 'b', options)
|
388
|
-
command.request_representation = Google::Apis::StorageV1beta2::Bucket::Representation
|
389
|
-
command.request_object = bucket_object
|
390
|
-
command.response_representation = Google::Apis::StorageV1beta2::Bucket::Representation
|
391
|
-
command.response_class = Google::Apis::StorageV1beta2::Bucket
|
392
|
-
command.query['project'] = project unless project.nil?
|
393
|
-
command.query['projection'] = projection unless projection.nil?
|
394
|
-
command.query['fields'] = fields unless fields.nil?
|
395
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
396
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
397
|
-
execute_or_queue_command(command, &block)
|
398
|
-
end
|
399
|
-
|
400
|
-
# Retrieves a list of buckets for a given project.
|
401
|
-
# @param [String] project
|
402
|
-
# A valid API project identifier.
|
403
|
-
# @param [Fixnum] max_results
|
404
|
-
# Maximum number of buckets to return.
|
405
|
-
# @param [String] page_token
|
406
|
-
# A previously-returned page token representing part of the larger set of
|
407
|
-
# results to view.
|
408
|
-
# @param [String] projection
|
409
|
-
# Set of properties to return. Defaults to noAcl.
|
410
|
-
# @param [String] fields
|
411
|
-
# Selector specifying which fields to include in a partial response.
|
412
|
-
# @param [String] quota_user
|
413
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
414
|
-
# characters.
|
415
|
-
# @param [String] user_ip
|
416
|
-
# Deprecated. Please use quotaUser instead.
|
417
|
-
# @param [Google::Apis::RequestOptions] options
|
418
|
-
# Request-specific options
|
419
|
-
#
|
420
|
-
# @yield [result, err] Result & error if block supplied
|
421
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::Buckets] parsed result object
|
422
|
-
# @yieldparam err [StandardError] error object if request failed
|
423
|
-
#
|
424
|
-
# @return [Google::Apis::StorageV1beta2::Buckets]
|
425
|
-
#
|
426
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
427
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
428
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
429
|
-
def list_buckets(project, max_results: nil, page_token: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
430
|
-
command = make_simple_command(:get, 'b', options)
|
431
|
-
command.response_representation = Google::Apis::StorageV1beta2::Buckets::Representation
|
432
|
-
command.response_class = Google::Apis::StorageV1beta2::Buckets
|
433
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
434
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
435
|
-
command.query['project'] = project unless project.nil?
|
436
|
-
command.query['projection'] = projection unless projection.nil?
|
437
|
-
command.query['fields'] = fields unless fields.nil?
|
438
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
439
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
440
|
-
execute_or_queue_command(command, &block)
|
441
|
-
end
|
442
|
-
|
443
|
-
# Updates a bucket. This method supports patch semantics.
|
444
|
-
# @param [String] bucket
|
445
|
-
# Name of a bucket.
|
446
|
-
# @param [Google::Apis::StorageV1beta2::Bucket] bucket_object
|
447
|
-
# @param [Fixnum] if_metageneration_match
|
448
|
-
# Makes the return of the bucket metadata conditional on whether the bucket's
|
449
|
-
# current metageneration matches the given value.
|
450
|
-
# @param [Fixnum] if_metageneration_not_match
|
451
|
-
# Makes the return of the bucket metadata conditional on whether the bucket's
|
452
|
-
# current metageneration does not match the given value.
|
453
|
-
# @param [String] projection
|
454
|
-
# Set of properties to return. Defaults to full.
|
455
|
-
# @param [String] fields
|
456
|
-
# Selector specifying which fields to include in a partial response.
|
457
|
-
# @param [String] quota_user
|
458
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
459
|
-
# characters.
|
460
|
-
# @param [String] user_ip
|
461
|
-
# Deprecated. Please use quotaUser instead.
|
462
|
-
# @param [Google::Apis::RequestOptions] options
|
463
|
-
# Request-specific options
|
464
|
-
#
|
465
|
-
# @yield [result, err] Result & error if block supplied
|
466
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::Bucket] parsed result object
|
467
|
-
# @yieldparam err [StandardError] error object if request failed
|
468
|
-
#
|
469
|
-
# @return [Google::Apis::StorageV1beta2::Bucket]
|
470
|
-
#
|
471
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
472
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
473
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
474
|
-
def patch_bucket(bucket, bucket_object = nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
475
|
-
command = make_simple_command(:patch, 'b/{bucket}', options)
|
476
|
-
command.request_representation = Google::Apis::StorageV1beta2::Bucket::Representation
|
477
|
-
command.request_object = bucket_object
|
478
|
-
command.response_representation = Google::Apis::StorageV1beta2::Bucket::Representation
|
479
|
-
command.response_class = Google::Apis::StorageV1beta2::Bucket
|
480
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
481
|
-
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
482
|
-
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
483
|
-
command.query['projection'] = projection unless projection.nil?
|
484
|
-
command.query['fields'] = fields unless fields.nil?
|
485
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
486
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
487
|
-
execute_or_queue_command(command, &block)
|
488
|
-
end
|
489
|
-
|
490
|
-
# Updates a bucket.
|
491
|
-
# @param [String] bucket
|
492
|
-
# Name of a bucket.
|
493
|
-
# @param [Google::Apis::StorageV1beta2::Bucket] bucket_object
|
494
|
-
# @param [Fixnum] if_metageneration_match
|
495
|
-
# Makes the return of the bucket metadata conditional on whether the bucket's
|
496
|
-
# current metageneration matches the given value.
|
497
|
-
# @param [Fixnum] if_metageneration_not_match
|
498
|
-
# Makes the return of the bucket metadata conditional on whether the bucket's
|
499
|
-
# current metageneration does not match the given value.
|
500
|
-
# @param [String] projection
|
501
|
-
# Set of properties to return. Defaults to full.
|
502
|
-
# @param [String] fields
|
503
|
-
# Selector specifying which fields to include in a partial response.
|
504
|
-
# @param [String] quota_user
|
505
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
506
|
-
# characters.
|
507
|
-
# @param [String] user_ip
|
508
|
-
# Deprecated. Please use quotaUser instead.
|
509
|
-
# @param [Google::Apis::RequestOptions] options
|
510
|
-
# Request-specific options
|
511
|
-
#
|
512
|
-
# @yield [result, err] Result & error if block supplied
|
513
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::Bucket] parsed result object
|
514
|
-
# @yieldparam err [StandardError] error object if request failed
|
515
|
-
#
|
516
|
-
# @return [Google::Apis::StorageV1beta2::Bucket]
|
517
|
-
#
|
518
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
519
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
520
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
521
|
-
def update_bucket(bucket, bucket_object = nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
522
|
-
command = make_simple_command(:put, 'b/{bucket}', options)
|
523
|
-
command.request_representation = Google::Apis::StorageV1beta2::Bucket::Representation
|
524
|
-
command.request_object = bucket_object
|
525
|
-
command.response_representation = Google::Apis::StorageV1beta2::Bucket::Representation
|
526
|
-
command.response_class = Google::Apis::StorageV1beta2::Bucket
|
527
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
528
|
-
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
529
|
-
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
530
|
-
command.query['projection'] = projection unless projection.nil?
|
531
|
-
command.query['fields'] = fields unless fields.nil?
|
532
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
533
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
534
|
-
execute_or_queue_command(command, &block)
|
535
|
-
end
|
536
|
-
|
537
|
-
# Stop watching resources through this channel
|
538
|
-
# @param [Google::Apis::StorageV1beta2::Channel] channel_object
|
539
|
-
# @param [String] fields
|
540
|
-
# Selector specifying which fields to include in a partial response.
|
541
|
-
# @param [String] quota_user
|
542
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
543
|
-
# characters.
|
544
|
-
# @param [String] user_ip
|
545
|
-
# Deprecated. Please use quotaUser instead.
|
546
|
-
# @param [Google::Apis::RequestOptions] options
|
547
|
-
# Request-specific options
|
548
|
-
#
|
549
|
-
# @yield [result, err] Result & error if block supplied
|
550
|
-
# @yieldparam result [NilClass] No result returned for this method
|
551
|
-
# @yieldparam err [StandardError] error object if request failed
|
552
|
-
#
|
553
|
-
# @return [void]
|
554
|
-
#
|
555
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
556
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
557
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
558
|
-
def stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
559
|
-
command = make_simple_command(:post, 'channels/stop', options)
|
560
|
-
command.request_representation = Google::Apis::StorageV1beta2::Channel::Representation
|
561
|
-
command.request_object = channel_object
|
562
|
-
command.query['fields'] = fields unless fields.nil?
|
563
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
564
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
565
|
-
execute_or_queue_command(command, &block)
|
566
|
-
end
|
567
|
-
|
568
|
-
# Permanently deletes the default object ACL entry for the specified entity on
|
569
|
-
# the specified bucket.
|
570
|
-
# @param [String] bucket
|
571
|
-
# Name of a bucket.
|
572
|
-
# @param [String] entity
|
573
|
-
# The entity holding the permission. Can be user-userId, user-emailAddress,
|
574
|
-
# group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
|
575
|
-
# @param [String] fields
|
576
|
-
# Selector specifying which fields to include in a partial response.
|
577
|
-
# @param [String] quota_user
|
578
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
579
|
-
# characters.
|
580
|
-
# @param [String] user_ip
|
581
|
-
# Deprecated. Please use quotaUser instead.
|
582
|
-
# @param [Google::Apis::RequestOptions] options
|
583
|
-
# Request-specific options
|
584
|
-
#
|
585
|
-
# @yield [result, err] Result & error if block supplied
|
586
|
-
# @yieldparam result [NilClass] No result returned for this method
|
587
|
-
# @yieldparam err [StandardError] error object if request failed
|
588
|
-
#
|
589
|
-
# @return [void]
|
590
|
-
#
|
591
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
592
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
593
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
594
|
-
def delete_default_object_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
595
|
-
command = make_simple_command(:delete, 'b/{bucket}/defaultObjectAcl/{entity}', options)
|
596
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
597
|
-
command.params['entity'] = entity unless entity.nil?
|
598
|
-
command.query['fields'] = fields unless fields.nil?
|
599
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
600
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
601
|
-
execute_or_queue_command(command, &block)
|
602
|
-
end
|
603
|
-
|
604
|
-
# Returns the default object ACL entry for the specified entity on the specified
|
605
|
-
# bucket.
|
606
|
-
# @param [String] bucket
|
607
|
-
# Name of a bucket.
|
608
|
-
# @param [String] entity
|
609
|
-
# The entity holding the permission. Can be user-userId, user-emailAddress,
|
610
|
-
# group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
|
611
|
-
# @param [String] fields
|
612
|
-
# Selector specifying which fields to include in a partial response.
|
613
|
-
# @param [String] quota_user
|
614
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
615
|
-
# characters.
|
616
|
-
# @param [String] user_ip
|
617
|
-
# Deprecated. Please use quotaUser instead.
|
618
|
-
# @param [Google::Apis::RequestOptions] options
|
619
|
-
# Request-specific options
|
620
|
-
#
|
621
|
-
# @yield [result, err] Result & error if block supplied
|
622
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::ObjectAccessControl] parsed result object
|
623
|
-
# @yieldparam err [StandardError] error object if request failed
|
624
|
-
#
|
625
|
-
# @return [Google::Apis::StorageV1beta2::ObjectAccessControl]
|
626
|
-
#
|
627
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
628
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
629
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
630
|
-
def get_default_object_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
631
|
-
command = make_simple_command(:get, 'b/{bucket}/defaultObjectAcl/{entity}', options)
|
632
|
-
command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
|
633
|
-
command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControl
|
634
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
635
|
-
command.params['entity'] = entity unless entity.nil?
|
636
|
-
command.query['fields'] = fields unless fields.nil?
|
637
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
638
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
639
|
-
execute_or_queue_command(command, &block)
|
640
|
-
end
|
641
|
-
|
642
|
-
# Creates a new default object ACL entry on the specified bucket.
|
643
|
-
# @param [String] bucket
|
644
|
-
# Name of a bucket.
|
645
|
-
# @param [Google::Apis::StorageV1beta2::ObjectAccessControl] object_access_control_object
|
646
|
-
# @param [String] fields
|
647
|
-
# Selector specifying which fields to include in a partial response.
|
648
|
-
# @param [String] quota_user
|
649
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
650
|
-
# characters.
|
651
|
-
# @param [String] user_ip
|
652
|
-
# Deprecated. Please use quotaUser instead.
|
653
|
-
# @param [Google::Apis::RequestOptions] options
|
654
|
-
# Request-specific options
|
655
|
-
#
|
656
|
-
# @yield [result, err] Result & error if block supplied
|
657
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::ObjectAccessControl] parsed result object
|
658
|
-
# @yieldparam err [StandardError] error object if request failed
|
659
|
-
#
|
660
|
-
# @return [Google::Apis::StorageV1beta2::ObjectAccessControl]
|
661
|
-
#
|
662
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
663
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
664
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
665
|
-
def insert_default_object_access_control(bucket, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
666
|
-
command = make_simple_command(:post, 'b/{bucket}/defaultObjectAcl', options)
|
667
|
-
command.request_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
|
668
|
-
command.request_object = object_access_control_object
|
669
|
-
command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
|
670
|
-
command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControl
|
671
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
672
|
-
command.query['fields'] = fields unless fields.nil?
|
673
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
674
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
675
|
-
execute_or_queue_command(command, &block)
|
676
|
-
end
|
677
|
-
|
678
|
-
# Retrieves default object ACL entries on the specified bucket.
|
679
|
-
# @param [String] bucket
|
680
|
-
# Name of a bucket.
|
681
|
-
# @param [Fixnum] if_metageneration_match
|
682
|
-
# If present, only return default ACL listing if the bucket's current
|
683
|
-
# metageneration matches this value.
|
684
|
-
# @param [Fixnum] if_metageneration_not_match
|
685
|
-
# If present, only return default ACL listing if the bucket's current
|
686
|
-
# metageneration does not match the given value.
|
687
|
-
# @param [String] fields
|
688
|
-
# Selector specifying which fields to include in a partial response.
|
689
|
-
# @param [String] quota_user
|
690
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
691
|
-
# characters.
|
692
|
-
# @param [String] user_ip
|
693
|
-
# Deprecated. Please use quotaUser instead.
|
694
|
-
# @param [Google::Apis::RequestOptions] options
|
695
|
-
# Request-specific options
|
696
|
-
#
|
697
|
-
# @yield [result, err] Result & error if block supplied
|
698
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::ObjectAccessControls] parsed result object
|
699
|
-
# @yieldparam err [StandardError] error object if request failed
|
700
|
-
#
|
701
|
-
# @return [Google::Apis::StorageV1beta2::ObjectAccessControls]
|
702
|
-
#
|
703
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
704
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
705
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
706
|
-
def list_default_object_access_controls(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
707
|
-
command = make_simple_command(:get, 'b/{bucket}/defaultObjectAcl', options)
|
708
|
-
command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControls::Representation
|
709
|
-
command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControls
|
710
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
711
|
-
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
712
|
-
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
713
|
-
command.query['fields'] = fields unless fields.nil?
|
714
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
715
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
716
|
-
execute_or_queue_command(command, &block)
|
717
|
-
end
|
718
|
-
|
719
|
-
# Updates a default object ACL entry on the specified bucket. This method
|
720
|
-
# supports patch semantics.
|
721
|
-
# @param [String] bucket
|
722
|
-
# Name of a bucket.
|
723
|
-
# @param [String] entity
|
724
|
-
# The entity holding the permission. Can be user-userId, user-emailAddress,
|
725
|
-
# group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
|
726
|
-
# @param [Google::Apis::StorageV1beta2::ObjectAccessControl] object_access_control_object
|
727
|
-
# @param [String] fields
|
728
|
-
# Selector specifying which fields to include in a partial response.
|
729
|
-
# @param [String] quota_user
|
730
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
731
|
-
# characters.
|
732
|
-
# @param [String] user_ip
|
733
|
-
# Deprecated. Please use quotaUser instead.
|
734
|
-
# @param [Google::Apis::RequestOptions] options
|
735
|
-
# Request-specific options
|
736
|
-
#
|
737
|
-
# @yield [result, err] Result & error if block supplied
|
738
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::ObjectAccessControl] parsed result object
|
739
|
-
# @yieldparam err [StandardError] error object if request failed
|
740
|
-
#
|
741
|
-
# @return [Google::Apis::StorageV1beta2::ObjectAccessControl]
|
742
|
-
#
|
743
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
744
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
745
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
746
|
-
def patch_default_object_access_control(bucket, entity, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
747
|
-
command = make_simple_command(:patch, 'b/{bucket}/defaultObjectAcl/{entity}', options)
|
748
|
-
command.request_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
|
749
|
-
command.request_object = object_access_control_object
|
750
|
-
command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
|
751
|
-
command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControl
|
752
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
753
|
-
command.params['entity'] = entity unless entity.nil?
|
754
|
-
command.query['fields'] = fields unless fields.nil?
|
755
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
756
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
757
|
-
execute_or_queue_command(command, &block)
|
758
|
-
end
|
759
|
-
|
760
|
-
# Updates a default object ACL entry on the specified bucket.
|
761
|
-
# @param [String] bucket
|
762
|
-
# Name of a bucket.
|
763
|
-
# @param [String] entity
|
764
|
-
# The entity holding the permission. Can be user-userId, user-emailAddress,
|
765
|
-
# group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
|
766
|
-
# @param [Google::Apis::StorageV1beta2::ObjectAccessControl] object_access_control_object
|
767
|
-
# @param [String] fields
|
768
|
-
# Selector specifying which fields to include in a partial response.
|
769
|
-
# @param [String] quota_user
|
770
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
771
|
-
# characters.
|
772
|
-
# @param [String] user_ip
|
773
|
-
# Deprecated. Please use quotaUser instead.
|
774
|
-
# @param [Google::Apis::RequestOptions] options
|
775
|
-
# Request-specific options
|
776
|
-
#
|
777
|
-
# @yield [result, err] Result & error if block supplied
|
778
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::ObjectAccessControl] parsed result object
|
779
|
-
# @yieldparam err [StandardError] error object if request failed
|
780
|
-
#
|
781
|
-
# @return [Google::Apis::StorageV1beta2::ObjectAccessControl]
|
782
|
-
#
|
783
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
784
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
785
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
786
|
-
def update_default_object_access_control(bucket, entity, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
787
|
-
command = make_simple_command(:put, 'b/{bucket}/defaultObjectAcl/{entity}', options)
|
788
|
-
command.request_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
|
789
|
-
command.request_object = object_access_control_object
|
790
|
-
command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
|
791
|
-
command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControl
|
792
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
793
|
-
command.params['entity'] = entity unless entity.nil?
|
794
|
-
command.query['fields'] = fields unless fields.nil?
|
795
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
796
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
797
|
-
execute_or_queue_command(command, &block)
|
798
|
-
end
|
799
|
-
|
800
|
-
# Permanently deletes the ACL entry for the specified entity on the specified
|
801
|
-
# object.
|
802
|
-
# @param [String] bucket
|
803
|
-
# Name of a bucket.
|
804
|
-
# @param [String] object
|
805
|
-
# Name of the object.
|
806
|
-
# @param [String] entity
|
807
|
-
# The entity holding the permission. Can be user-userId, user-emailAddress,
|
808
|
-
# group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
|
809
|
-
# @param [Fixnum] generation
|
810
|
-
# If present, selects a specific revision of this object (as opposed to the
|
811
|
-
# latest version, the default).
|
812
|
-
# @param [String] fields
|
813
|
-
# Selector specifying which fields to include in a partial response.
|
814
|
-
# @param [String] quota_user
|
815
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
816
|
-
# characters.
|
817
|
-
# @param [String] user_ip
|
818
|
-
# Deprecated. Please use quotaUser instead.
|
819
|
-
# @param [Google::Apis::RequestOptions] options
|
820
|
-
# Request-specific options
|
821
|
-
#
|
822
|
-
# @yield [result, err] Result & error if block supplied
|
823
|
-
# @yieldparam result [NilClass] No result returned for this method
|
824
|
-
# @yieldparam err [StandardError] error object if request failed
|
825
|
-
#
|
826
|
-
# @return [void]
|
827
|
-
#
|
828
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
829
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
830
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
831
|
-
def delete_object_access_control(bucket, object, entity, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
832
|
-
command = make_simple_command(:delete, 'b/{bucket}/o/{object}/acl/{entity}', options)
|
833
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
834
|
-
command.params['object'] = object unless object.nil?
|
835
|
-
command.params['entity'] = entity unless entity.nil?
|
836
|
-
command.query['generation'] = generation unless generation.nil?
|
837
|
-
command.query['fields'] = fields unless fields.nil?
|
838
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
839
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
840
|
-
execute_or_queue_command(command, &block)
|
841
|
-
end
|
842
|
-
|
843
|
-
# Returns the ACL entry for the specified entity on the specified object.
|
844
|
-
# @param [String] bucket
|
845
|
-
# Name of a bucket.
|
846
|
-
# @param [String] object
|
847
|
-
# Name of the object.
|
848
|
-
# @param [String] entity
|
849
|
-
# The entity holding the permission. Can be user-userId, user-emailAddress,
|
850
|
-
# group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
|
851
|
-
# @param [Fixnum] generation
|
852
|
-
# If present, selects a specific revision of this object (as opposed to the
|
853
|
-
# latest version, the default).
|
854
|
-
# @param [String] fields
|
855
|
-
# Selector specifying which fields to include in a partial response.
|
856
|
-
# @param [String] quota_user
|
857
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
858
|
-
# characters.
|
859
|
-
# @param [String] user_ip
|
860
|
-
# Deprecated. Please use quotaUser instead.
|
861
|
-
# @param [Google::Apis::RequestOptions] options
|
862
|
-
# Request-specific options
|
863
|
-
#
|
864
|
-
# @yield [result, err] Result & error if block supplied
|
865
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::ObjectAccessControl] parsed result object
|
866
|
-
# @yieldparam err [StandardError] error object if request failed
|
867
|
-
#
|
868
|
-
# @return [Google::Apis::StorageV1beta2::ObjectAccessControl]
|
869
|
-
#
|
870
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
871
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
872
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
873
|
-
def get_object_access_control(bucket, object, entity, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
874
|
-
command = make_simple_command(:get, 'b/{bucket}/o/{object}/acl/{entity}', options)
|
875
|
-
command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
|
876
|
-
command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControl
|
877
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
878
|
-
command.params['object'] = object unless object.nil?
|
879
|
-
command.params['entity'] = entity unless entity.nil?
|
880
|
-
command.query['generation'] = generation unless generation.nil?
|
881
|
-
command.query['fields'] = fields unless fields.nil?
|
882
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
883
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
884
|
-
execute_or_queue_command(command, &block)
|
885
|
-
end
|
886
|
-
|
887
|
-
# Creates a new ACL entry on the specified object.
|
888
|
-
# @param [String] bucket
|
889
|
-
# Name of a bucket.
|
890
|
-
# @param [String] object
|
891
|
-
# Name of the object.
|
892
|
-
# @param [Google::Apis::StorageV1beta2::ObjectAccessControl] object_access_control_object
|
893
|
-
# @param [Fixnum] generation
|
894
|
-
# If present, selects a specific revision of this object (as opposed to the
|
895
|
-
# latest version, the default).
|
896
|
-
# @param [String] fields
|
897
|
-
# Selector specifying which fields to include in a partial response.
|
898
|
-
# @param [String] quota_user
|
899
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
900
|
-
# characters.
|
901
|
-
# @param [String] user_ip
|
902
|
-
# Deprecated. Please use quotaUser instead.
|
903
|
-
# @param [Google::Apis::RequestOptions] options
|
904
|
-
# Request-specific options
|
905
|
-
#
|
906
|
-
# @yield [result, err] Result & error if block supplied
|
907
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::ObjectAccessControl] parsed result object
|
908
|
-
# @yieldparam err [StandardError] error object if request failed
|
909
|
-
#
|
910
|
-
# @return [Google::Apis::StorageV1beta2::ObjectAccessControl]
|
911
|
-
#
|
912
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
913
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
914
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
915
|
-
def insert_object_access_control(bucket, object, object_access_control_object = nil, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
916
|
-
command = make_simple_command(:post, 'b/{bucket}/o/{object}/acl', options)
|
917
|
-
command.request_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
|
918
|
-
command.request_object = object_access_control_object
|
919
|
-
command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
|
920
|
-
command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControl
|
921
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
922
|
-
command.params['object'] = object unless object.nil?
|
923
|
-
command.query['generation'] = generation unless generation.nil?
|
924
|
-
command.query['fields'] = fields unless fields.nil?
|
925
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
926
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
927
|
-
execute_or_queue_command(command, &block)
|
928
|
-
end
|
929
|
-
|
930
|
-
# Retrieves ACL entries on the specified object.
|
931
|
-
# @param [String] bucket
|
932
|
-
# Name of a bucket.
|
933
|
-
# @param [String] object
|
934
|
-
# Name of the object.
|
935
|
-
# @param [Fixnum] generation
|
936
|
-
# If present, selects a specific revision of this object (as opposed to the
|
937
|
-
# latest version, the default).
|
938
|
-
# @param [String] fields
|
939
|
-
# Selector specifying which fields to include in a partial response.
|
940
|
-
# @param [String] quota_user
|
941
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
942
|
-
# characters.
|
943
|
-
# @param [String] user_ip
|
944
|
-
# Deprecated. Please use quotaUser instead.
|
945
|
-
# @param [Google::Apis::RequestOptions] options
|
946
|
-
# Request-specific options
|
947
|
-
#
|
948
|
-
# @yield [result, err] Result & error if block supplied
|
949
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::ObjectAccessControls] parsed result object
|
950
|
-
# @yieldparam err [StandardError] error object if request failed
|
951
|
-
#
|
952
|
-
# @return [Google::Apis::StorageV1beta2::ObjectAccessControls]
|
953
|
-
#
|
954
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
955
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
956
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
957
|
-
def list_object_access_controls(bucket, object, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
958
|
-
command = make_simple_command(:get, 'b/{bucket}/o/{object}/acl', options)
|
959
|
-
command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControls::Representation
|
960
|
-
command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControls
|
961
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
962
|
-
command.params['object'] = object unless object.nil?
|
963
|
-
command.query['generation'] = generation unless generation.nil?
|
964
|
-
command.query['fields'] = fields unless fields.nil?
|
965
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
966
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
967
|
-
execute_or_queue_command(command, &block)
|
968
|
-
end
|
969
|
-
|
970
|
-
# Updates an ACL entry on the specified object. This method supports patch
|
971
|
-
# semantics.
|
972
|
-
# @param [String] bucket
|
973
|
-
# Name of a bucket.
|
974
|
-
# @param [String] object
|
975
|
-
# Name of the object.
|
976
|
-
# @param [String] entity
|
977
|
-
# The entity holding the permission. Can be user-userId, user-emailAddress,
|
978
|
-
# group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
|
979
|
-
# @param [Google::Apis::StorageV1beta2::ObjectAccessControl] object_access_control_object
|
980
|
-
# @param [Fixnum] generation
|
981
|
-
# If present, selects a specific revision of this object (as opposed to the
|
982
|
-
# latest version, the default).
|
983
|
-
# @param [String] fields
|
984
|
-
# Selector specifying which fields to include in a partial response.
|
985
|
-
# @param [String] quota_user
|
986
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
987
|
-
# characters.
|
988
|
-
# @param [String] user_ip
|
989
|
-
# Deprecated. Please use quotaUser instead.
|
990
|
-
# @param [Google::Apis::RequestOptions] options
|
991
|
-
# Request-specific options
|
992
|
-
#
|
993
|
-
# @yield [result, err] Result & error if block supplied
|
994
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::ObjectAccessControl] parsed result object
|
995
|
-
# @yieldparam err [StandardError] error object if request failed
|
996
|
-
#
|
997
|
-
# @return [Google::Apis::StorageV1beta2::ObjectAccessControl]
|
998
|
-
#
|
999
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1000
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1001
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1002
|
-
def patch_object_access_control(bucket, object, entity, object_access_control_object = nil, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1003
|
-
command = make_simple_command(:patch, 'b/{bucket}/o/{object}/acl/{entity}', options)
|
1004
|
-
command.request_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
|
1005
|
-
command.request_object = object_access_control_object
|
1006
|
-
command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
|
1007
|
-
command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControl
|
1008
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
1009
|
-
command.params['object'] = object unless object.nil?
|
1010
|
-
command.params['entity'] = entity unless entity.nil?
|
1011
|
-
command.query['generation'] = generation unless generation.nil?
|
1012
|
-
command.query['fields'] = fields unless fields.nil?
|
1013
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1014
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1015
|
-
execute_or_queue_command(command, &block)
|
1016
|
-
end
|
1017
|
-
|
1018
|
-
# Updates an ACL entry on the specified object.
|
1019
|
-
# @param [String] bucket
|
1020
|
-
# Name of a bucket.
|
1021
|
-
# @param [String] object
|
1022
|
-
# Name of the object.
|
1023
|
-
# @param [String] entity
|
1024
|
-
# The entity holding the permission. Can be user-userId, user-emailAddress,
|
1025
|
-
# group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
|
1026
|
-
# @param [Google::Apis::StorageV1beta2::ObjectAccessControl] object_access_control_object
|
1027
|
-
# @param [Fixnum] generation
|
1028
|
-
# If present, selects a specific revision of this object (as opposed to the
|
1029
|
-
# latest version, the default).
|
1030
|
-
# @param [String] fields
|
1031
|
-
# Selector specifying which fields to include in a partial response.
|
1032
|
-
# @param [String] quota_user
|
1033
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1034
|
-
# characters.
|
1035
|
-
# @param [String] user_ip
|
1036
|
-
# Deprecated. Please use quotaUser instead.
|
1037
|
-
# @param [Google::Apis::RequestOptions] options
|
1038
|
-
# Request-specific options
|
1039
|
-
#
|
1040
|
-
# @yield [result, err] Result & error if block supplied
|
1041
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::ObjectAccessControl] parsed result object
|
1042
|
-
# @yieldparam err [StandardError] error object if request failed
|
1043
|
-
#
|
1044
|
-
# @return [Google::Apis::StorageV1beta2::ObjectAccessControl]
|
1045
|
-
#
|
1046
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1047
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1048
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1049
|
-
def update_object_access_control(bucket, object, entity, object_access_control_object = nil, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1050
|
-
command = make_simple_command(:put, 'b/{bucket}/o/{object}/acl/{entity}', options)
|
1051
|
-
command.request_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
|
1052
|
-
command.request_object = object_access_control_object
|
1053
|
-
command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
|
1054
|
-
command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControl
|
1055
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
1056
|
-
command.params['object'] = object unless object.nil?
|
1057
|
-
command.params['entity'] = entity unless entity.nil?
|
1058
|
-
command.query['generation'] = generation unless generation.nil?
|
1059
|
-
command.query['fields'] = fields unless fields.nil?
|
1060
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1061
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1062
|
-
execute_or_queue_command(command, &block)
|
1063
|
-
end
|
1064
|
-
|
1065
|
-
# Concatenates a list of existing objects into a new object in the same bucket.
|
1066
|
-
# @param [String] destination_bucket
|
1067
|
-
# Name of the bucket containing the source objects. The destination object is
|
1068
|
-
# stored in this bucket.
|
1069
|
-
# @param [String] destination_object
|
1070
|
-
# Name of the new object.
|
1071
|
-
# @param [Google::Apis::StorageV1beta2::ComposeRequest] compose_request_object
|
1072
|
-
# @param [Fixnum] if_generation_match
|
1073
|
-
# Makes the operation conditional on whether the object's current generation
|
1074
|
-
# matches the given value.
|
1075
|
-
# @param [Fixnum] if_metageneration_match
|
1076
|
-
# Makes the operation conditional on whether the object's current metageneration
|
1077
|
-
# matches the given value.
|
1078
|
-
# @param [String] fields
|
1079
|
-
# Selector specifying which fields to include in a partial response.
|
1080
|
-
# @param [String] quota_user
|
1081
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1082
|
-
# characters.
|
1083
|
-
# @param [String] user_ip
|
1084
|
-
# Deprecated. Please use quotaUser instead.
|
1085
|
-
# @param [IO, String] download_dest
|
1086
|
-
# IO stream or filename to receive content download
|
1087
|
-
# @param [Google::Apis::RequestOptions] options
|
1088
|
-
# Request-specific options
|
1089
|
-
#
|
1090
|
-
# @yield [result, err] Result & error if block supplied
|
1091
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::Object] parsed result object
|
1092
|
-
# @yieldparam err [StandardError] error object if request failed
|
1093
|
-
#
|
1094
|
-
# @return [Google::Apis::StorageV1beta2::Object]
|
1095
|
-
#
|
1096
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1097
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1098
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1099
|
-
def compose_object(destination_bucket, destination_object, compose_request_object = nil, if_generation_match: nil, if_metageneration_match: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
1100
|
-
if download_dest.nil?
|
1101
|
-
command = make_simple_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options)
|
1102
|
-
else
|
1103
|
-
command = make_download_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options)
|
1104
|
-
command.download_dest = download_dest
|
1105
|
-
end
|
1106
|
-
command.request_representation = Google::Apis::StorageV1beta2::ComposeRequest::Representation
|
1107
|
-
command.request_object = compose_request_object
|
1108
|
-
command.response_representation = Google::Apis::StorageV1beta2::Object::Representation
|
1109
|
-
command.response_class = Google::Apis::StorageV1beta2::Object
|
1110
|
-
command.params['destinationBucket'] = destination_bucket unless destination_bucket.nil?
|
1111
|
-
command.params['destinationObject'] = destination_object unless destination_object.nil?
|
1112
|
-
command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
|
1113
|
-
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
1114
|
-
command.query['fields'] = fields unless fields.nil?
|
1115
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1116
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1117
|
-
execute_or_queue_command(command, &block)
|
1118
|
-
end
|
1119
|
-
|
1120
|
-
# Copies an object to a destination in the same location. Optionally overrides
|
1121
|
-
# metadata.
|
1122
|
-
# @param [String] source_bucket
|
1123
|
-
# Name of the bucket in which to find the source object.
|
1124
|
-
# @param [String] source_object
|
1125
|
-
# Name of the source object.
|
1126
|
-
# @param [String] destination_bucket
|
1127
|
-
# Name of the bucket in which to store the new object. Overrides the provided
|
1128
|
-
# object metadata's bucket value, if any.
|
1129
|
-
# @param [String] destination_object
|
1130
|
-
# Name of the new object. Required when the object metadata is not otherwise
|
1131
|
-
# provided. Overrides the object metadata's name value, if any.
|
1132
|
-
# @param [Google::Apis::StorageV1beta2::Object] object_object
|
1133
|
-
# @param [Fixnum] if_generation_match
|
1134
|
-
# Makes the operation conditional on whether the destination object's current
|
1135
|
-
# generation matches the given value.
|
1136
|
-
# @param [Fixnum] if_generation_not_match
|
1137
|
-
# Makes the operation conditional on whether the destination object's current
|
1138
|
-
# generation does not match the given value.
|
1139
|
-
# @param [Fixnum] if_metageneration_match
|
1140
|
-
# Makes the operation conditional on whether the destination object's current
|
1141
|
-
# metageneration matches the given value.
|
1142
|
-
# @param [Fixnum] if_metageneration_not_match
|
1143
|
-
# Makes the operation conditional on whether the destination object's current
|
1144
|
-
# metageneration does not match the given value.
|
1145
|
-
# @param [Fixnum] if_source_generation_match
|
1146
|
-
# Makes the operation conditional on whether the source object's generation
|
1147
|
-
# matches the given value.
|
1148
|
-
# @param [Fixnum] if_source_generation_not_match
|
1149
|
-
# Makes the operation conditional on whether the source object's generation does
|
1150
|
-
# not match the given value.
|
1151
|
-
# @param [Fixnum] if_source_metageneration_match
|
1152
|
-
# Makes the operation conditional on whether the source object's current
|
1153
|
-
# metageneration matches the given value.
|
1154
|
-
# @param [Fixnum] if_source_metageneration_not_match
|
1155
|
-
# Makes the operation conditional on whether the source object's current
|
1156
|
-
# metageneration does not match the given value.
|
1157
|
-
# @param [String] projection
|
1158
|
-
# Set of properties to return. Defaults to noAcl, unless the object resource
|
1159
|
-
# specifies the acl property, when it defaults to full.
|
1160
|
-
# @param [Fixnum] source_generation
|
1161
|
-
# If present, selects a specific revision of the source object (as opposed to
|
1162
|
-
# the latest version, the default).
|
1163
|
-
# @param [String] fields
|
1164
|
-
# Selector specifying which fields to include in a partial response.
|
1165
|
-
# @param [String] quota_user
|
1166
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1167
|
-
# characters.
|
1168
|
-
# @param [String] user_ip
|
1169
|
-
# Deprecated. Please use quotaUser instead.
|
1170
|
-
# @param [IO, String] download_dest
|
1171
|
-
# IO stream or filename to receive content download
|
1172
|
-
# @param [Google::Apis::RequestOptions] options
|
1173
|
-
# Request-specific options
|
1174
|
-
#
|
1175
|
-
# @yield [result, err] Result & error if block supplied
|
1176
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::Object] parsed result object
|
1177
|
-
# @yieldparam err [StandardError] error object if request failed
|
1178
|
-
#
|
1179
|
-
# @return [Google::Apis::StorageV1beta2::Object]
|
1180
|
-
#
|
1181
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1182
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1183
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1184
|
-
def copy_object(source_bucket, source_object, destination_bucket, destination_object, object_object = nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, projection: nil, source_generation: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
1185
|
-
if download_dest.nil?
|
1186
|
-
command = make_simple_command(:post, 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', options)
|
1187
|
-
else
|
1188
|
-
command = make_download_command(:post, 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', options)
|
1189
|
-
command.download_dest = download_dest
|
1190
|
-
end
|
1191
|
-
command.request_representation = Google::Apis::StorageV1beta2::Object::Representation
|
1192
|
-
command.request_object = object_object
|
1193
|
-
command.response_representation = Google::Apis::StorageV1beta2::Object::Representation
|
1194
|
-
command.response_class = Google::Apis::StorageV1beta2::Object
|
1195
|
-
command.params['sourceBucket'] = source_bucket unless source_bucket.nil?
|
1196
|
-
command.params['sourceObject'] = source_object unless source_object.nil?
|
1197
|
-
command.params['destinationBucket'] = destination_bucket unless destination_bucket.nil?
|
1198
|
-
command.params['destinationObject'] = destination_object unless destination_object.nil?
|
1199
|
-
command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
|
1200
|
-
command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
|
1201
|
-
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
1202
|
-
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
1203
|
-
command.query['ifSourceGenerationMatch'] = if_source_generation_match unless if_source_generation_match.nil?
|
1204
|
-
command.query['ifSourceGenerationNotMatch'] = if_source_generation_not_match unless if_source_generation_not_match.nil?
|
1205
|
-
command.query['ifSourceMetagenerationMatch'] = if_source_metageneration_match unless if_source_metageneration_match.nil?
|
1206
|
-
command.query['ifSourceMetagenerationNotMatch'] = if_source_metageneration_not_match unless if_source_metageneration_not_match.nil?
|
1207
|
-
command.query['projection'] = projection unless projection.nil?
|
1208
|
-
command.query['sourceGeneration'] = source_generation unless source_generation.nil?
|
1209
|
-
command.query['fields'] = fields unless fields.nil?
|
1210
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1211
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1212
|
-
execute_or_queue_command(command, &block)
|
1213
|
-
end
|
1214
|
-
|
1215
|
-
# Deletes data blobs and associated metadata. Deletions are permanent if
|
1216
|
-
# versioning is not enabled for the bucket, or if the generation parameter is
|
1217
|
-
# used.
|
1218
|
-
# @param [String] bucket
|
1219
|
-
# Name of the bucket in which the object resides.
|
1220
|
-
# @param [String] object
|
1221
|
-
# Name of the object.
|
1222
|
-
# @param [Fixnum] generation
|
1223
|
-
# If present, permanently deletes a specific revision of this object (as opposed
|
1224
|
-
# to the latest version, the default).
|
1225
|
-
# @param [Fixnum] if_generation_match
|
1226
|
-
# Makes the operation conditional on whether the object's current generation
|
1227
|
-
# matches the given value.
|
1228
|
-
# @param [Fixnum] if_generation_not_match
|
1229
|
-
# Makes the operation conditional on whether the object's current generation
|
1230
|
-
# does not match the given value.
|
1231
|
-
# @param [Fixnum] if_metageneration_match
|
1232
|
-
# Makes the operation conditional on whether the object's current metageneration
|
1233
|
-
# matches the given value.
|
1234
|
-
# @param [Fixnum] if_metageneration_not_match
|
1235
|
-
# Makes the operation conditional on whether the object's current metageneration
|
1236
|
-
# does not match the given value.
|
1237
|
-
# @param [String] fields
|
1238
|
-
# Selector specifying which fields to include in a partial response.
|
1239
|
-
# @param [String] quota_user
|
1240
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1241
|
-
# characters.
|
1242
|
-
# @param [String] user_ip
|
1243
|
-
# Deprecated. Please use quotaUser instead.
|
1244
|
-
# @param [Google::Apis::RequestOptions] options
|
1245
|
-
# Request-specific options
|
1246
|
-
#
|
1247
|
-
# @yield [result, err] Result & error if block supplied
|
1248
|
-
# @yieldparam result [NilClass] No result returned for this method
|
1249
|
-
# @yieldparam err [StandardError] error object if request failed
|
1250
|
-
#
|
1251
|
-
# @return [void]
|
1252
|
-
#
|
1253
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1254
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1255
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1256
|
-
def delete_object(bucket, object, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1257
|
-
command = make_simple_command(:delete, 'b/{bucket}/o/{object}', options)
|
1258
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
1259
|
-
command.params['object'] = object unless object.nil?
|
1260
|
-
command.query['generation'] = generation unless generation.nil?
|
1261
|
-
command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
|
1262
|
-
command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
|
1263
|
-
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
1264
|
-
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
1265
|
-
command.query['fields'] = fields unless fields.nil?
|
1266
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1267
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1268
|
-
execute_or_queue_command(command, &block)
|
1269
|
-
end
|
1270
|
-
|
1271
|
-
# Retrieves objects or their associated metadata.
|
1272
|
-
# @param [String] bucket
|
1273
|
-
# Name of the bucket in which the object resides.
|
1274
|
-
# @param [String] object
|
1275
|
-
# Name of the object.
|
1276
|
-
# @param [Fixnum] generation
|
1277
|
-
# If present, selects a specific revision of this object (as opposed to the
|
1278
|
-
# latest version, the default).
|
1279
|
-
# @param [Fixnum] if_generation_match
|
1280
|
-
# Makes the operation conditional on whether the object's generation matches the
|
1281
|
-
# given value.
|
1282
|
-
# @param [Fixnum] if_generation_not_match
|
1283
|
-
# Makes the operation conditional on whether the object's generation does not
|
1284
|
-
# match the given value.
|
1285
|
-
# @param [Fixnum] if_metageneration_match
|
1286
|
-
# Makes the operation conditional on whether the object's current metageneration
|
1287
|
-
# matches the given value.
|
1288
|
-
# @param [Fixnum] if_metageneration_not_match
|
1289
|
-
# Makes the operation conditional on whether the object's current metageneration
|
1290
|
-
# does not match the given value.
|
1291
|
-
# @param [String] projection
|
1292
|
-
# Set of properties to return. Defaults to noAcl.
|
1293
|
-
# @param [String] fields
|
1294
|
-
# Selector specifying which fields to include in a partial response.
|
1295
|
-
# @param [String] quota_user
|
1296
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1297
|
-
# characters.
|
1298
|
-
# @param [String] user_ip
|
1299
|
-
# Deprecated. Please use quotaUser instead.
|
1300
|
-
# @param [IO, String] download_dest
|
1301
|
-
# IO stream or filename to receive content download
|
1302
|
-
# @param [Google::Apis::RequestOptions] options
|
1303
|
-
# Request-specific options
|
1304
|
-
#
|
1305
|
-
# @yield [result, err] Result & error if block supplied
|
1306
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::Object] parsed result object
|
1307
|
-
# @yieldparam err [StandardError] error object if request failed
|
1308
|
-
#
|
1309
|
-
# @return [Google::Apis::StorageV1beta2::Object]
|
1310
|
-
#
|
1311
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1312
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1313
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1314
|
-
def get_object(bucket, object, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
1315
|
-
if download_dest.nil?
|
1316
|
-
command = make_simple_command(:get, 'b/{bucket}/o/{object}', options)
|
1317
|
-
else
|
1318
|
-
command = make_download_command(:get, 'b/{bucket}/o/{object}', options)
|
1319
|
-
command.download_dest = download_dest
|
1320
|
-
end
|
1321
|
-
command.response_representation = Google::Apis::StorageV1beta2::Object::Representation
|
1322
|
-
command.response_class = Google::Apis::StorageV1beta2::Object
|
1323
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
1324
|
-
command.params['object'] = object unless object.nil?
|
1325
|
-
command.query['generation'] = generation unless generation.nil?
|
1326
|
-
command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
|
1327
|
-
command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
|
1328
|
-
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
1329
|
-
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
1330
|
-
command.query['projection'] = projection unless projection.nil?
|
1331
|
-
command.query['fields'] = fields unless fields.nil?
|
1332
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1333
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1334
|
-
execute_or_queue_command(command, &block)
|
1335
|
-
end
|
1336
|
-
|
1337
|
-
# Stores new data blobs and associated metadata.
|
1338
|
-
# @param [String] bucket
|
1339
|
-
# Name of the bucket in which to store the new object. Overrides the provided
|
1340
|
-
# object metadata's bucket value, if any.
|
1341
|
-
# @param [Google::Apis::StorageV1beta2::Object] object_object
|
1342
|
-
# @param [Fixnum] if_generation_match
|
1343
|
-
# Makes the operation conditional on whether the object's current generation
|
1344
|
-
# matches the given value.
|
1345
|
-
# @param [Fixnum] if_generation_not_match
|
1346
|
-
# Makes the operation conditional on whether the object's current generation
|
1347
|
-
# does not match the given value.
|
1348
|
-
# @param [Fixnum] if_metageneration_match
|
1349
|
-
# Makes the operation conditional on whether the object's current metageneration
|
1350
|
-
# matches the given value.
|
1351
|
-
# @param [Fixnum] if_metageneration_not_match
|
1352
|
-
# Makes the operation conditional on whether the object's current metageneration
|
1353
|
-
# does not match the given value.
|
1354
|
-
# @param [String] name
|
1355
|
-
# Name of the object. Required when the object metadata is not otherwise
|
1356
|
-
# provided. Overrides the object metadata's name value, if any.
|
1357
|
-
# @param [String] projection
|
1358
|
-
# Set of properties to return. Defaults to noAcl, unless the object resource
|
1359
|
-
# specifies the acl property, when it defaults to full.
|
1360
|
-
# @param [String] fields
|
1361
|
-
# Selector specifying which fields to include in a partial response.
|
1362
|
-
# @param [String] quota_user
|
1363
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1364
|
-
# characters.
|
1365
|
-
# @param [String] user_ip
|
1366
|
-
# Deprecated. Please use quotaUser instead.
|
1367
|
-
# @param [IO, String] upload_source
|
1368
|
-
# IO stream or filename containing content to upload
|
1369
|
-
# @param [String] content_type
|
1370
|
-
# Content type of the uploaded content.
|
1371
|
-
# @param [Google::Apis::RequestOptions] options
|
1372
|
-
# Request-specific options
|
1373
|
-
#
|
1374
|
-
# @yield [result, err] Result & error if block supplied
|
1375
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::Object] parsed result object
|
1376
|
-
# @yieldparam err [StandardError] error object if request failed
|
1377
|
-
#
|
1378
|
-
# @return [Google::Apis::StorageV1beta2::Object]
|
1379
|
-
#
|
1380
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1381
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1382
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1383
|
-
def insert_object(bucket, object_object = nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, name: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
1384
|
-
if upload_source.nil?
|
1385
|
-
command = make_simple_command(:post, 'b/{bucket}/o', options)
|
1386
|
-
else
|
1387
|
-
command = make_upload_command(:post, 'b/{bucket}/o', options)
|
1388
|
-
command.upload_source = upload_source
|
1389
|
-
command.upload_content_type = content_type
|
1390
|
-
end
|
1391
|
-
command.request_representation = Google::Apis::StorageV1beta2::Object::Representation
|
1392
|
-
command.request_object = object_object
|
1393
|
-
command.response_representation = Google::Apis::StorageV1beta2::Object::Representation
|
1394
|
-
command.response_class = Google::Apis::StorageV1beta2::Object
|
1395
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
1396
|
-
command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
|
1397
|
-
command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
|
1398
|
-
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
1399
|
-
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
1400
|
-
command.query['name'] = name unless name.nil?
|
1401
|
-
command.query['projection'] = projection unless projection.nil?
|
1402
|
-
command.query['fields'] = fields unless fields.nil?
|
1403
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1404
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1405
|
-
execute_or_queue_command(command, &block)
|
1406
|
-
end
|
1407
|
-
|
1408
|
-
# Retrieves a list of objects matching the criteria.
|
1409
|
-
# @param [String] bucket
|
1410
|
-
# Name of the bucket in which to look for objects.
|
1411
|
-
# @param [String] delimiter
|
1412
|
-
# Returns results in a directory-like mode. items will contain only objects
|
1413
|
-
# whose names, aside from the prefix, do not contain delimiter. Objects whose
|
1414
|
-
# names, aside from the prefix, contain delimiter will have their name,
|
1415
|
-
# truncated after the delimiter, returned in prefixes. Duplicate prefixes are
|
1416
|
-
# omitted.
|
1417
|
-
# @param [Fixnum] max_results
|
1418
|
-
# Maximum number of items plus prefixes to return. As duplicate prefixes are
|
1419
|
-
# omitted, fewer total results may be returned than requested.
|
1420
|
-
# @param [String] page_token
|
1421
|
-
# A previously-returned page token representing part of the larger set of
|
1422
|
-
# results to view.
|
1423
|
-
# @param [String] prefix
|
1424
|
-
# Filter results to objects whose names begin with this prefix.
|
1425
|
-
# @param [String] projection
|
1426
|
-
# Set of properties to return. Defaults to noAcl.
|
1427
|
-
# @param [Boolean] versions
|
1428
|
-
# If true, lists all versions of a file as distinct results.
|
1429
|
-
# @param [String] fields
|
1430
|
-
# Selector specifying which fields to include in a partial response.
|
1431
|
-
# @param [String] quota_user
|
1432
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1433
|
-
# characters.
|
1434
|
-
# @param [String] user_ip
|
1435
|
-
# Deprecated. Please use quotaUser instead.
|
1436
|
-
# @param [Google::Apis::RequestOptions] options
|
1437
|
-
# Request-specific options
|
1438
|
-
#
|
1439
|
-
# @yield [result, err] Result & error if block supplied
|
1440
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::Objects] parsed result object
|
1441
|
-
# @yieldparam err [StandardError] error object if request failed
|
1442
|
-
#
|
1443
|
-
# @return [Google::Apis::StorageV1beta2::Objects]
|
1444
|
-
#
|
1445
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1446
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1447
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1448
|
-
def list_objects(bucket, delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1449
|
-
command = make_simple_command(:get, 'b/{bucket}/o', options)
|
1450
|
-
command.response_representation = Google::Apis::StorageV1beta2::Objects::Representation
|
1451
|
-
command.response_class = Google::Apis::StorageV1beta2::Objects
|
1452
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
1453
|
-
command.query['delimiter'] = delimiter unless delimiter.nil?
|
1454
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
1455
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
1456
|
-
command.query['prefix'] = prefix unless prefix.nil?
|
1457
|
-
command.query['projection'] = projection unless projection.nil?
|
1458
|
-
command.query['versions'] = versions unless versions.nil?
|
1459
|
-
command.query['fields'] = fields unless fields.nil?
|
1460
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1461
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1462
|
-
execute_or_queue_command(command, &block)
|
1463
|
-
end
|
1464
|
-
|
1465
|
-
# Updates a data blob's associated metadata. This method supports patch
|
1466
|
-
# semantics.
|
1467
|
-
# @param [String] bucket
|
1468
|
-
# Name of the bucket in which the object resides.
|
1469
|
-
# @param [String] object
|
1470
|
-
# Name of the object.
|
1471
|
-
# @param [Google::Apis::StorageV1beta2::Object] object_object
|
1472
|
-
# @param [Fixnum] generation
|
1473
|
-
# If present, selects a specific revision of this object (as opposed to the
|
1474
|
-
# latest version, the default).
|
1475
|
-
# @param [Fixnum] if_generation_match
|
1476
|
-
# Makes the operation conditional on whether the object's current generation
|
1477
|
-
# matches the given value.
|
1478
|
-
# @param [Fixnum] if_generation_not_match
|
1479
|
-
# Makes the operation conditional on whether the object's current generation
|
1480
|
-
# does not match the given value.
|
1481
|
-
# @param [Fixnum] if_metageneration_match
|
1482
|
-
# Makes the operation conditional on whether the object's current metageneration
|
1483
|
-
# matches the given value.
|
1484
|
-
# @param [Fixnum] if_metageneration_not_match
|
1485
|
-
# Makes the operation conditional on whether the object's current metageneration
|
1486
|
-
# does not match the given value.
|
1487
|
-
# @param [String] projection
|
1488
|
-
# Set of properties to return. Defaults to full.
|
1489
|
-
# @param [String] fields
|
1490
|
-
# Selector specifying which fields to include in a partial response.
|
1491
|
-
# @param [String] quota_user
|
1492
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1493
|
-
# characters.
|
1494
|
-
# @param [String] user_ip
|
1495
|
-
# Deprecated. Please use quotaUser instead.
|
1496
|
-
# @param [Google::Apis::RequestOptions] options
|
1497
|
-
# Request-specific options
|
1498
|
-
#
|
1499
|
-
# @yield [result, err] Result & error if block supplied
|
1500
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::Object] parsed result object
|
1501
|
-
# @yieldparam err [StandardError] error object if request failed
|
1502
|
-
#
|
1503
|
-
# @return [Google::Apis::StorageV1beta2::Object]
|
1504
|
-
#
|
1505
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1506
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1507
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1508
|
-
def patch_object(bucket, object, object_object = nil, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1509
|
-
command = make_simple_command(:patch, 'b/{bucket}/o/{object}', options)
|
1510
|
-
command.request_representation = Google::Apis::StorageV1beta2::Object::Representation
|
1511
|
-
command.request_object = object_object
|
1512
|
-
command.response_representation = Google::Apis::StorageV1beta2::Object::Representation
|
1513
|
-
command.response_class = Google::Apis::StorageV1beta2::Object
|
1514
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
1515
|
-
command.params['object'] = object unless object.nil?
|
1516
|
-
command.query['generation'] = generation unless generation.nil?
|
1517
|
-
command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
|
1518
|
-
command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
|
1519
|
-
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
1520
|
-
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
1521
|
-
command.query['projection'] = projection unless projection.nil?
|
1522
|
-
command.query['fields'] = fields unless fields.nil?
|
1523
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1524
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1525
|
-
execute_or_queue_command(command, &block)
|
1526
|
-
end
|
1527
|
-
|
1528
|
-
# Updates a data blob's associated metadata.
|
1529
|
-
# @param [String] bucket
|
1530
|
-
# Name of the bucket in which the object resides.
|
1531
|
-
# @param [String] object
|
1532
|
-
# Name of the object.
|
1533
|
-
# @param [Google::Apis::StorageV1beta2::Object] object_object
|
1534
|
-
# @param [Fixnum] generation
|
1535
|
-
# If present, selects a specific revision of this object (as opposed to the
|
1536
|
-
# latest version, the default).
|
1537
|
-
# @param [Fixnum] if_generation_match
|
1538
|
-
# Makes the operation conditional on whether the object's current generation
|
1539
|
-
# matches the given value.
|
1540
|
-
# @param [Fixnum] if_generation_not_match
|
1541
|
-
# Makes the operation conditional on whether the object's current generation
|
1542
|
-
# does not match the given value.
|
1543
|
-
# @param [Fixnum] if_metageneration_match
|
1544
|
-
# Makes the operation conditional on whether the object's current metageneration
|
1545
|
-
# matches the given value.
|
1546
|
-
# @param [Fixnum] if_metageneration_not_match
|
1547
|
-
# Makes the operation conditional on whether the object's current metageneration
|
1548
|
-
# does not match the given value.
|
1549
|
-
# @param [String] projection
|
1550
|
-
# Set of properties to return. Defaults to full.
|
1551
|
-
# @param [String] fields
|
1552
|
-
# Selector specifying which fields to include in a partial response.
|
1553
|
-
# @param [String] quota_user
|
1554
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1555
|
-
# characters.
|
1556
|
-
# @param [String] user_ip
|
1557
|
-
# Deprecated. Please use quotaUser instead.
|
1558
|
-
# @param [IO, String] download_dest
|
1559
|
-
# IO stream or filename to receive content download
|
1560
|
-
# @param [Google::Apis::RequestOptions] options
|
1561
|
-
# Request-specific options
|
1562
|
-
#
|
1563
|
-
# @yield [result, err] Result & error if block supplied
|
1564
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::Object] parsed result object
|
1565
|
-
# @yieldparam err [StandardError] error object if request failed
|
1566
|
-
#
|
1567
|
-
# @return [Google::Apis::StorageV1beta2::Object]
|
1568
|
-
#
|
1569
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1570
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1571
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1572
|
-
def update_object(bucket, object, object_object = nil, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
1573
|
-
if download_dest.nil?
|
1574
|
-
command = make_simple_command(:put, 'b/{bucket}/o/{object}', options)
|
1575
|
-
else
|
1576
|
-
command = make_download_command(:put, 'b/{bucket}/o/{object}', options)
|
1577
|
-
command.download_dest = download_dest
|
1578
|
-
end
|
1579
|
-
command.request_representation = Google::Apis::StorageV1beta2::Object::Representation
|
1580
|
-
command.request_object = object_object
|
1581
|
-
command.response_representation = Google::Apis::StorageV1beta2::Object::Representation
|
1582
|
-
command.response_class = Google::Apis::StorageV1beta2::Object
|
1583
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
1584
|
-
command.params['object'] = object unless object.nil?
|
1585
|
-
command.query['generation'] = generation unless generation.nil?
|
1586
|
-
command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
|
1587
|
-
command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
|
1588
|
-
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
1589
|
-
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
1590
|
-
command.query['projection'] = projection unless projection.nil?
|
1591
|
-
command.query['fields'] = fields unless fields.nil?
|
1592
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1593
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1594
|
-
execute_or_queue_command(command, &block)
|
1595
|
-
end
|
1596
|
-
|
1597
|
-
# Watch for changes on all objects in a bucket.
|
1598
|
-
# @param [String] bucket
|
1599
|
-
# Name of the bucket in which to look for objects.
|
1600
|
-
# @param [Google::Apis::StorageV1beta2::Channel] channel_object
|
1601
|
-
# @param [String] delimiter
|
1602
|
-
# Returns results in a directory-like mode. items will contain only objects
|
1603
|
-
# whose names, aside from the prefix, do not contain delimiter. Objects whose
|
1604
|
-
# names, aside from the prefix, contain delimiter will have their name,
|
1605
|
-
# truncated after the delimiter, returned in prefixes. Duplicate prefixes are
|
1606
|
-
# omitted.
|
1607
|
-
# @param [Fixnum] max_results
|
1608
|
-
# Maximum number of items plus prefixes to return. As duplicate prefixes are
|
1609
|
-
# omitted, fewer total results may be returned than requested.
|
1610
|
-
# @param [String] page_token
|
1611
|
-
# A previously-returned page token representing part of the larger set of
|
1612
|
-
# results to view.
|
1613
|
-
# @param [String] prefix
|
1614
|
-
# Filter results to objects whose names begin with this prefix.
|
1615
|
-
# @param [String] projection
|
1616
|
-
# Set of properties to return. Defaults to noAcl.
|
1617
|
-
# @param [Boolean] versions
|
1618
|
-
# If true, lists all versions of a file as distinct results.
|
1619
|
-
# @param [String] fields
|
1620
|
-
# Selector specifying which fields to include in a partial response.
|
1621
|
-
# @param [String] quota_user
|
1622
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1623
|
-
# characters.
|
1624
|
-
# @param [String] user_ip
|
1625
|
-
# Deprecated. Please use quotaUser instead.
|
1626
|
-
# @param [Google::Apis::RequestOptions] options
|
1627
|
-
# Request-specific options
|
1628
|
-
#
|
1629
|
-
# @yield [result, err] Result & error if block supplied
|
1630
|
-
# @yieldparam result [Google::Apis::StorageV1beta2::Channel] parsed result object
|
1631
|
-
# @yieldparam err [StandardError] error object if request failed
|
1632
|
-
#
|
1633
|
-
# @return [Google::Apis::StorageV1beta2::Channel]
|
1634
|
-
#
|
1635
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1636
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1637
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1638
|
-
def watch_object_all(bucket, channel_object = nil, delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1639
|
-
command = make_simple_command(:post, 'b/{bucket}/o/watch', options)
|
1640
|
-
command.request_representation = Google::Apis::StorageV1beta2::Channel::Representation
|
1641
|
-
command.request_object = channel_object
|
1642
|
-
command.response_representation = Google::Apis::StorageV1beta2::Channel::Representation
|
1643
|
-
command.response_class = Google::Apis::StorageV1beta2::Channel
|
1644
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
1645
|
-
command.query['delimiter'] = delimiter unless delimiter.nil?
|
1646
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
1647
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
1648
|
-
command.query['prefix'] = prefix unless prefix.nil?
|
1649
|
-
command.query['projection'] = projection unless projection.nil?
|
1650
|
-
command.query['versions'] = versions unless versions.nil?
|
1651
|
-
command.query['fields'] = fields unless fields.nil?
|
1652
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1653
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1654
|
-
execute_or_queue_command(command, &block)
|
1655
|
-
end
|
1656
|
-
|
1657
|
-
protected
|
1658
|
-
|
1659
|
-
def apply_command_defaults(command)
|
1660
|
-
command.query['key'] = key unless key.nil?
|
1661
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1662
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1663
|
-
end
|
1664
|
-
end
|
1665
|
-
end
|
1666
|
-
end
|
1667
|
-
end
|