google-api-client 0.46.2 → 0.51.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release-please.yml +79 -0
- data/.kokoro/trampoline.sh +0 -0
- data/CHANGELOG.md +736 -192
- data/Gemfile +1 -0
- data/Rakefile +31 -3
- data/generated/google/apis/accessapproval_v1.rb +1 -1
- data/generated/google/apis/accessapproval_v1/classes.rb +13 -15
- data/generated/google/apis/accessapproval_v1/service.rb +12 -9
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +50 -6
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +18 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +3 -1
- data/generated/google/apis/admob_v1.rb +4 -1
- data/generated/google/apis/admob_v1/service.rb +4 -0
- data/generated/google/apis/admob_v1beta.rb +38 -0
- data/generated/google/apis/admob_v1beta/classes.rb +1035 -0
- data/generated/google/apis/admob_v1beta/representations.rb +472 -0
- data/generated/google/apis/admob_v1beta/service.rb +279 -0
- data/generated/google/apis/analyticsadmin_v1alpha.rb +1 -1
- data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +13 -12
- data/generated/google/apis/analyticsadmin_v1alpha/service.rb +28 -12
- data/generated/google/apis/analyticsdata_v1alpha.rb +2 -2
- data/generated/google/apis/analyticsdata_v1alpha/classes.rb +263 -69
- data/generated/google/apis/analyticsdata_v1alpha/representations.rb +52 -14
- data/generated/google/apis/analyticsdata_v1alpha/service.rb +44 -33
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +6 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +4 -1
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +98 -30
- data/generated/google/apis/androidmanagement_v1/representations.rb +19 -0
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +2 -1
- data/generated/google/apis/androidpublisher_v3/service.rb +4 -4
- data/generated/google/apis/apigateway_v1beta.rb +1 -1
- data/generated/google/apis/apigateway_v1beta/classes.rb +8 -5
- data/generated/google/apis/apigateway_v1beta/representations.rb +1 -0
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +378 -138
- data/generated/google/apis/apigee_v1/representations.rb +109 -18
- data/generated/google/apis/apigee_v1/service.rb +674 -56
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +8 -0
- data/generated/google/apis/appengine_v1beta/representations.rb +1 -0
- data/generated/google/apis/area120tables_v1alpha1.rb +49 -0
- data/generated/google/apis/area120tables_v1alpha1/classes.rb +481 -0
- data/generated/google/apis/area120tables_v1alpha1/representations.rb +279 -0
- data/generated/google/apis/area120tables_v1alpha1/service.rb +448 -0
- data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta1/classes.rb +0 -7
- data/generated/google/apis/artifactregistry_v1beta1/representations.rb +0 -1
- data/generated/google/apis/artifactregistry_v1beta2.rb +38 -0
- data/generated/google/apis/artifactregistry_v1beta2/classes.rb +1037 -0
- data/generated/google/apis/artifactregistry_v1beta2/representations.rb +443 -0
- data/generated/google/apis/artifactregistry_v1beta2/service.rb +944 -0
- data/generated/google/apis/{assuredworkloads_v1beta1.rb → assuredworkloads_v1.rb} +6 -6
- data/generated/google/apis/{assuredworkloads_v1beta1 → assuredworkloads_v1}/classes.rb +69 -137
- data/generated/google/apis/{assuredworkloads_v1beta1 → assuredworkloads_v1}/representations.rb +29 -87
- data/generated/google/apis/{assuredworkloads_v1beta1 → assuredworkloads_v1}/service.rb +46 -46
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +78 -0
- data/generated/google/apis/bigquery_v2/representations.rb +34 -0
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +6 -0
- data/generated/google/apis/bigqueryconnection_v1beta1/representations.rb +1 -0
- data/generated/google/apis/billingbudgets_v1.rb +1 -1
- data/generated/google/apis/billingbudgets_v1/classes.rb +11 -0
- data/generated/google/apis/billingbudgets_v1/representations.rb +1 -0
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +11 -0
- data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1/classes.rb +2 -9
- data/generated/google/apis/binaryauthorization_v1/representations.rb +0 -1
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +4 -10
- data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +0 -1
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/service.rb +52 -52
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +2 -2
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +7 -0
- data/generated/google/apis/chat_v1/representations.rb +1 -0
- data/generated/google/apis/chat_v1/service.rb +176 -0
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +1125 -0
- data/generated/google/apis/cloudasset_v1/representations.rb +474 -0
- data/generated/google/apis/cloudasset_v1/service.rb +171 -0
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p5beta1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +3 -2
- data/generated/google/apis/cloudbuild_v1/service.rb +11 -3
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/service.rb +15 -7
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +37 -21
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +0 -7
- data/generated/google/apis/cloudiot_v1/representations.rb +0 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +1 -2
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +401 -7
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +280 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +401 -7
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +280 -1
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +405 -11
- data/generated/google/apis/cloudresourcemanager_v2/representations.rb +280 -1
- data/generated/google/apis/cloudresourcemanager_v2/service.rb +13 -13
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +405 -11
- data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +280 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +13 -13
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +10 -5
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +0 -7
- data/generated/google/apis/cloudtasks_v2/representations.rb +0 -1
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +0 -7
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +0 -1
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +12 -2
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +0 -7
- data/generated/google/apis/cloudtasks_v2beta3/representations.rb +0 -1
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +123 -0
- data/generated/google/apis/composer_v1/representations.rb +49 -0
- data/generated/google/apis/composer_v1/service.rb +19 -15
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +109 -0
- data/generated/google/apis/composer_v1beta1/representations.rb +46 -0
- data/generated/google/apis/composer_v1beta1/service.rb +39 -1
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +289 -31
- data/generated/google/apis/compute_v1/representations.rb +44 -0
- data/generated/google/apis/compute_v1/service.rb +695 -545
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +29 -0
- data/generated/google/apis/container_v1beta1/representations.rb +15 -0
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +0 -7
- data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +0 -1
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +2 -8
- data/generated/google/apis/containeranalysis_v1beta1/representations.rb +0 -1
- data/generated/google/apis/content_v2.rb +3 -4
- data/generated/google/apis/content_v2/classes.rb +514 -1222
- data/generated/google/apis/content_v2/service.rb +380 -651
- data/generated/google/apis/content_v2_1.rb +3 -4
- data/generated/google/apis/content_v2_1/classes.rb +1522 -1062
- data/generated/google/apis/content_v2_1/representations.rb +420 -0
- data/generated/google/apis/content_v2_1/service.rb +1127 -809
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +25 -17
- data/generated/google/apis/datacatalog_v1beta1/representations.rb +5 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +29 -1
- data/generated/google/apis/dataflow_v1b3/representations.rb +5 -0
- data/generated/google/apis/datalabeling_v1beta1.rb +34 -0
- data/generated/google/apis/datalabeling_v1beta1/classes.rb +6207 -0
- data/generated/google/apis/datalabeling_v1beta1/representations.rb +3156 -0
- data/generated/google/apis/datalabeling_v1beta1/service.rb +1762 -0
- data/generated/google/apis/datamigration_v1beta1.rb +34 -0
- data/generated/google/apis/datamigration_v1beta1/classes.rb +1670 -0
- data/generated/google/apis/datamigration_v1beta1/representations.rb +678 -0
- data/generated/google/apis/datamigration_v1beta1/service.rb +1172 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +95 -12
- data/generated/google/apis/dataproc_v1/representations.rb +23 -1
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +63 -12
- data/generated/google/apis/dataproc_v1beta2/representations.rb +19 -1
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +4 -4
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +4 -4
- data/generated/google/apis/deploymentmanager_v2.rb +6 -4
- data/generated/google/apis/deploymentmanager_v2/classes.rb +203 -558
- data/generated/google/apis/deploymentmanager_v2/representations.rb +0 -132
- data/generated/google/apis/deploymentmanager_v2/service.rb +169 -213
- data/generated/google/apis/deploymentmanager_v2beta.rb +6 -5
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +247 -609
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +0 -132
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +278 -359
- data/generated/google/apis/dfareporting_v3_3.rb +2 -2
- data/generated/google/apis/dfareporting_v3_3/classes.rb +6 -6
- data/generated/google/apis/dfareporting_v3_3/service.rb +12 -12
- data/generated/google/apis/dfareporting_v3_4.rb +2 -2
- data/generated/google/apis/dfareporting_v3_4/classes.rb +6 -6
- data/generated/google/apis/dfareporting_v3_4/service.rb +12 -12
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +19 -387
- data/generated/google/apis/dialogflow_v2/representations.rb +1 -212
- data/generated/google/apis/dialogflow_v2/service.rb +12 -4
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +17 -390
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +1 -212
- data/generated/google/apis/dialogflow_v2beta1/service.rb +510 -40
- data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v3beta1/classes.rb +76 -387
- data/generated/google/apis/dialogflow_v3beta1/representations.rb +20 -212
- data/generated/google/apis/dialogflow_v3beta1/service.rb +11 -3
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +306 -34
- data/generated/google/apis/displayvideo_v1/representations.rb +122 -0
- data/generated/google/apis/displayvideo_v1/service.rb +342 -38
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +35 -29
- data/generated/google/apis/dlp_v2/representations.rb +1 -0
- data/generated/google/apis/dns_v1.rb +2 -2
- data/generated/google/apis/dns_v1/classes.rb +6 -0
- data/generated/google/apis/dns_v1/representations.rb +1 -0
- data/generated/google/apis/dns_v1/service.rb +1 -1
- data/generated/google/apis/dns_v1beta2.rb +2 -2
- data/generated/google/apis/dns_v1beta2/classes.rb +20 -1
- data/generated/google/apis/dns_v1beta2/representations.rb +13 -0
- data/generated/google/apis/dns_v1beta2/service.rb +177 -1
- data/generated/google/apis/domains_v1alpha2.rb +1 -1
- data/generated/google/apis/domains_v1beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +3 -2
- data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +3 -2
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +24 -21
- data/generated/google/apis/drive_v2/service.rb +26 -58
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +12 -8
- data/generated/google/apis/drive_v3/service.rb +14 -30
- data/generated/google/apis/eventarc_v1beta1.rb +34 -0
- data/generated/google/apis/eventarc_v1beta1/classes.rb +931 -0
- data/generated/google/apis/eventarc_v1beta1/representations.rb +379 -0
- data/generated/google/apis/eventarc_v1beta1/service.rb +579 -0
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +505 -4
- data/generated/google/apis/file_v1/representations.rb +203 -0
- data/generated/google/apis/file_v1/service.rb +229 -1
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +346 -6
- data/generated/google/apis/file_v1beta1/representations.rb +149 -0
- data/generated/google/apis/file_v1beta1/service.rb +6 -2
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/service.rb +17 -4
- data/generated/google/apis/firebasedatabase_v1beta.rb +44 -0
- data/generated/google/apis/firebasedatabase_v1beta/classes.rb +130 -0
- data/generated/google/apis/{displayvideo_v1dev → firebasedatabase_v1beta}/representations.rb +26 -16
- data/generated/google/apis/firebasedatabase_v1beta/service.rb +292 -0
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +2 -0
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +4 -4
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +4 -4
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +353 -0
- data/generated/google/apis/games_v1/representations.rb +145 -0
- data/generated/google/apis/games_v1/service.rb +67 -0
- data/generated/google/apis/gameservices_v1.rb +1 -1
- data/generated/google/apis/gameservices_v1/classes.rb +1 -2
- data/generated/google/apis/gameservices_v1beta.rb +1 -1
- data/generated/google/apis/gameservices_v1beta/classes.rb +1 -2
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +25 -0
- data/generated/google/apis/genomics_v2alpha1/representations.rb +15 -0
- data/generated/google/apis/gmailpostmastertools_v1beta1.rb +1 -1
- data/generated/google/apis/gmailpostmastertools_v1beta1/classes.rb +9 -0
- data/generated/google/apis/gmailpostmastertools_v1beta1/representations.rb +1 -0
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/classes.rb +24 -17
- data/generated/google/apis/healthcare_v1/representations.rb +1 -0
- data/generated/google/apis/healthcare_v1/service.rb +2 -1
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +361 -57
- data/generated/google/apis/healthcare_v1beta1/representations.rb +150 -18
- data/generated/google/apis/healthcare_v1beta1/service.rb +91 -13
- data/generated/google/apis/iam_v1.rb +2 -5
- data/generated/google/apis/iam_v1/classes.rb +109 -11
- data/generated/google/apis/iam_v1/representations.rb +33 -1
- data/generated/google/apis/iam_v1/service.rb +63 -4
- data/generated/google/apis/iamcredentials_v1.rb +3 -4
- data/generated/google/apis/iamcredentials_v1/service.rb +2 -3
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +1 -13
- data/generated/google/apis/iap_v1/representations.rb +0 -1
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +1 -2
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +9 -807
- data/generated/google/apis/jobs_v3/representations.rb +0 -272
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +9 -768
- data/generated/google/apis/jobs_v3p1beta1/representations.rb +0 -257
- data/generated/google/apis/{jobs_v2.rb → jobs_v4.rb} +6 -6
- data/generated/google/apis/jobs_v4/classes.rb +2699 -0
- data/generated/google/apis/jobs_v4/representations.rb +934 -0
- data/generated/google/apis/jobs_v4/service.rb +903 -0
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/licensing_v1/classes.rb +26 -8
- data/generated/google/apis/licensing_v1/representations.rb +12 -0
- data/generated/google/apis/licensing_v1/service.rb +34 -31
- data/generated/google/apis/lifesciences_v2beta.rb +1 -1
- data/generated/google/apis/lifesciences_v2beta/classes.rb +25 -0
- data/generated/google/apis/lifesciences_v2beta/representations.rb +15 -0
- data/generated/google/apis/localservices_v1.rb +1 -1
- data/generated/google/apis/localservices_v1/classes.rb +7 -0
- data/generated/google/apis/localservices_v1/representations.rb +2 -0
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +191 -14
- data/generated/google/apis/logging_v2/representations.rb +77 -0
- data/generated/google/apis/logging_v2/service.rb +446 -25
- data/generated/google/apis/managedidentities_v1.rb +1 -1
- data/generated/google/apis/managedidentities_v1/classes.rb +361 -16
- data/generated/google/apis/managedidentities_v1/representations.rb +149 -1
- data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
- data/generated/google/apis/managedidentities_v1alpha1/classes.rb +363 -17
- data/generated/google/apis/managedidentities_v1alpha1/representations.rb +149 -1
- data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
- data/generated/google/apis/managedidentities_v1beta1/classes.rb +349 -12
- data/generated/google/apis/managedidentities_v1beta1/representations.rb +149 -1
- data/generated/google/apis/memcache_v1beta2.rb +1 -1
- data/generated/google/apis/memcache_v1beta2/classes.rb +345 -4
- data/generated/google/apis/memcache_v1beta2/representations.rb +149 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +272 -84
- data/generated/google/apis/ml_v1/representations.rb +43 -1
- data/generated/google/apis/ml_v1/service.rb +35 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +16 -9
- data/generated/google/apis/monitoring_v3/service.rb +55 -5
- data/generated/google/apis/networkmanagement_v1.rb +1 -1
- data/generated/google/apis/networkmanagement_v1/classes.rb +6 -0
- data/generated/google/apis/networkmanagement_v1/representations.rb +1 -0
- data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
- data/generated/google/apis/networkmanagement_v1beta1/classes.rb +57 -0
- data/generated/google/apis/networkmanagement_v1beta1/representations.rb +31 -0
- data/generated/google/apis/notebooks_v1.rb +34 -0
- data/generated/google/apis/notebooks_v1/classes.rb +1455 -0
- data/generated/google/apis/notebooks_v1/representations.rb +580 -0
- data/generated/google/apis/notebooks_v1/service.rb +1042 -0
- data/generated/google/apis/osconfig_v1.rb +1 -1
- data/generated/google/apis/osconfig_v1/classes.rb +419 -0
- data/generated/google/apis/osconfig_v1/representations.rb +168 -0
- data/generated/google/apis/osconfig_v1beta.rb +1 -1
- data/generated/google/apis/osconfig_v1beta/classes.rb +419 -0
- data/generated/google/apis/osconfig_v1beta/representations.rb +168 -0
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/pagespeedonline_v5/service.rb +3 -3
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +10 -6
- data/generated/google/apis/people_v1/service.rb +21 -18
- data/generated/google/apis/playcustomapp_v1.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
- data/generated/google/apis/privateca_v1beta1.rb +36 -0
- data/generated/google/apis/privateca_v1beta1/classes.rb +2466 -0
- data/generated/google/apis/privateca_v1beta1/representations.rb +996 -0
- data/generated/google/apis/privateca_v1beta1/service.rb +1437 -0
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +0 -7
- data/generated/google/apis/pubsub_v1/representations.rb +0 -1
- data/generated/google/apis/pubsub_v1/service.rb +2 -2
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +0 -7
- data/generated/google/apis/pubsub_v1beta2/representations.rb +0 -1
- data/generated/google/apis/realtimebidding_v1.rb +1 -1
- data/generated/google/apis/realtimebidding_v1/classes.rb +545 -0
- data/generated/google/apis/realtimebidding_v1/representations.rb +232 -0
- data/generated/google/apis/realtimebidding_v1/service.rb +450 -0
- data/generated/google/apis/recommendationengine_v1beta1.rb +1 -1
- data/generated/google/apis/recommendationengine_v1beta1/classes.rb +32 -0
- data/generated/google/apis/recommendationengine_v1beta1/representations.rb +25 -0
- data/generated/google/apis/recommender_v1.rb +1 -1
- data/generated/google/apis/recommender_v1/classes.rb +3 -3
- data/generated/google/apis/recommender_v1beta1.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/classes.rb +3 -3
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +86 -0
- data/generated/google/apis/redis_v1/representations.rb +34 -0
- data/generated/google/apis/redis_v1/service.rb +34 -0
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +58 -0
- data/generated/google/apis/redis_v1beta1/representations.rb +20 -0
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +5 -30
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -16
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +5 -30
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -16
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +5 -30
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -16
- data/generated/google/apis/reseller_v1.rb +4 -4
- data/generated/google/apis/reseller_v1/service.rb +5 -5
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +2 -1
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +2 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +0 -7
- data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +0 -1
- data/generated/google/apis/safebrowsing_v4.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1/service.rb +109 -0
- data/generated/google/apis/secretmanager_v1.rb +1 -1
- data/generated/google/apis/secretmanager_v1/classes.rb +0 -7
- data/generated/google/apis/secretmanager_v1/representations.rb +0 -1
- data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
- data/generated/google/apis/secretmanager_v1beta1/classes.rb +0 -7
- data/generated/google/apis/secretmanager_v1beta1/representations.rb +0 -1
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +91 -0
- data/generated/google/apis/securitycenter_v1/representations.rb +37 -0
- data/generated/google/apis/securitycenter_v1/service.rb +1448 -414
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +68 -0
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +32 -0
- data/generated/google/apis/securitycenter_v1beta2.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta2/classes.rb +68 -0
- data/generated/google/apis/securitycenter_v1beta2/representations.rb +32 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +6 -64
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -18
- data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +6 -64
- data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +0 -18
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +77 -2
- data/generated/google/apis/servicecontrol_v1/representations.rb +10 -0
- data/generated/google/apis/servicecontrol_v2.rb +1 -1
- data/generated/google/apis/servicecontrol_v2/classes.rb +62 -0
- data/generated/google/apis/servicecontrol_v2/representations.rb +8 -0
- data/generated/google/apis/servicedirectory_v1beta1.rb +1 -1
- data/generated/google/apis/servicedirectory_v1beta1/classes.rb +26 -13
- data/generated/google/apis/servicedirectory_v1beta1/representations.rb +0 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +6 -64
- data/generated/google/apis/servicemanagement_v1/representations.rb +0 -18
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +156 -64
- data/generated/google/apis/servicenetworking_v1/representations.rb +62 -15
- data/generated/google/apis/servicenetworking_v1/service.rb +80 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +69 -64
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +29 -15
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +6 -64
- data/generated/google/apis/serviceusage_v1/representations.rb +0 -18
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +36 -64
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +15 -18
- data/generated/google/apis/serviceusage_v1beta1/service.rb +36 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +332 -7
- data/generated/google/apis/sheets_v4/representations.rb +102 -0
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/smartdevicemanagement_v1.rb +1 -1
- data/generated/google/apis/smartdevicemanagement_v1/classes.rb +0 -34
- data/generated/google/apis/smartdevicemanagement_v1/representations.rb +0 -16
- data/generated/google/apis/smartdevicemanagement_v1/service.rb +3 -8
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +10 -8
- data/generated/google/apis/spanner_v1/representations.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +22 -0
- data/generated/google/apis/speech_v1p1beta1/representations.rb +2 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +118 -11
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +37 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +7 -0
- data/generated/google/apis/storage_v1/representations.rb +1 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +72 -50
- data/generated/google/apis/storagetransfer_v1/representations.rb +3 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +3 -3
- data/generated/google/apis/tagmanager_v2.rb +1 -1
- data/generated/google/apis/tagmanager_v2/classes.rb +12 -0
- data/generated/google/apis/tagmanager_v2/representations.rb +3 -0
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +45 -33
- data/generated/google/apis/testing_v1/representations.rb +1 -0
- data/generated/google/apis/testing_v1/service.rb +4 -4
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +13 -0
- data/generated/google/apis/toolresults_v1beta3/representations.rb +12 -0
- data/generated/google/apis/transcoder_v1beta1.rb +34 -0
- data/generated/google/apis/transcoder_v1beta1/classes.rb +1684 -0
- data/generated/google/apis/transcoder_v1beta1/representations.rb +756 -0
- data/generated/google/apis/transcoder_v1beta1/service.rb +329 -0
- data/generated/google/apis/translate_v3.rb +1 -1
- data/generated/google/apis/translate_v3/classes.rb +2 -1
- data/generated/google/apis/translate_v3beta1.rb +1 -1
- data/generated/google/apis/translate_v3beta1/classes.rb +2 -1
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +76 -0
- data/generated/google/apis/vault_v1/representations.rb +45 -0
- data/generated/google/apis/vectortile_v1.rb +1 -1
- data/generated/google/apis/vectortile_v1/classes.rb +59 -4
- data/generated/google/apis/vectortile_v1/representations.rb +19 -0
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +65 -0
- data/generated/google/apis/videointelligence_v1/representations.rb +15 -0
- data/generated/google/apis/videointelligence_v1/service.rb +0 -62
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +65 -0
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +15 -0
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +65 -0
- data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +15 -0
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +65 -0
- data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +15 -0
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +65 -0
- data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +15 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +16 -16
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +16 -16
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +16 -16
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +2 -2
- data/generated/google/apis/youtube_v3/service.rb +6 -6
- data/google-api-client.gemspec +25 -25
- data/lib/google/apis/core/http_command.rb +2 -1
- data/lib/google/apis/options.rb +8 -5
- data/lib/google/apis/version.rb +1 -1
- metadata +53 -24
- data/generated/google/apis/displayvideo_v1beta.rb +0 -38
- data/generated/google/apis/displayvideo_v1beta/classes.rb +0 -146
- data/generated/google/apis/displayvideo_v1beta/representations.rb +0 -72
- data/generated/google/apis/displayvideo_v1beta/service.rb +0 -161
- data/generated/google/apis/displayvideo_v1beta2.rb +0 -38
- data/generated/google/apis/displayvideo_v1beta2/classes.rb +0 -146
- data/generated/google/apis/displayvideo_v1beta2/representations.rb +0 -72
- data/generated/google/apis/displayvideo_v1beta2/service.rb +0 -130
- data/generated/google/apis/displayvideo_v1dev.rb +0 -38
- data/generated/google/apis/displayvideo_v1dev/classes.rb +0 -146
- data/generated/google/apis/displayvideo_v1dev/service.rb +0 -130
- data/generated/google/apis/jobs_v2/classes.rb +0 -4012
- data/generated/google/apis/jobs_v2/representations.rb +0 -1396
- data/generated/google/apis/jobs_v2/service.rb +0 -693
@@ -0,0 +1,1042 @@
|
|
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 NotebooksV1
|
23
|
+
# Notebooks API
|
24
|
+
#
|
25
|
+
# AI Platform Notebooks API is used to manage notebook resources in Google Cloud.
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/notebooks_v1'
|
29
|
+
#
|
30
|
+
# Notebooks = Google::Apis::NotebooksV1 # Alias the module
|
31
|
+
# service = Notebooks::AIPlatformNotebooksService.new
|
32
|
+
#
|
33
|
+
# @see https://cloud.google.com/ai-platform/notebooks/docs/
|
34
|
+
class AIPlatformNotebooksService < 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
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
attr_accessor :quota_user
|
44
|
+
|
45
|
+
def initialize
|
46
|
+
super('https://notebooks.googleapis.com/', '')
|
47
|
+
@batch_path = 'batch'
|
48
|
+
end
|
49
|
+
|
50
|
+
# Gets information about a location.
|
51
|
+
# @param [String] name
|
52
|
+
# Resource name for the location.
|
53
|
+
# @param [String] fields
|
54
|
+
# Selector specifying which fields to include in a partial response.
|
55
|
+
# @param [String] quota_user
|
56
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
57
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
58
|
+
# @param [Google::Apis::RequestOptions] options
|
59
|
+
# Request-specific options
|
60
|
+
#
|
61
|
+
# @yield [result, err] Result & error if block supplied
|
62
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Location] parsed result object
|
63
|
+
# @yieldparam err [StandardError] error object if request failed
|
64
|
+
#
|
65
|
+
# @return [Google::Apis::NotebooksV1::Location]
|
66
|
+
#
|
67
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
68
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
69
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
70
|
+
def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
71
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
72
|
+
command.response_representation = Google::Apis::NotebooksV1::Location::Representation
|
73
|
+
command.response_class = Google::Apis::NotebooksV1::Location
|
74
|
+
command.params['name'] = name unless name.nil?
|
75
|
+
command.query['fields'] = fields unless fields.nil?
|
76
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
77
|
+
execute_or_queue_command(command, &block)
|
78
|
+
end
|
79
|
+
|
80
|
+
# Lists information about the supported locations for this service.
|
81
|
+
# @param [String] name
|
82
|
+
# The resource that owns the locations collection, if applicable.
|
83
|
+
# @param [String] filter
|
84
|
+
# The standard list filter.
|
85
|
+
# @param [Fixnum] page_size
|
86
|
+
# The standard list page size.
|
87
|
+
# @param [String] page_token
|
88
|
+
# The standard list page token.
|
89
|
+
# @param [String] fields
|
90
|
+
# Selector specifying which fields to include in a partial response.
|
91
|
+
# @param [String] quota_user
|
92
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
93
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
94
|
+
# @param [Google::Apis::RequestOptions] options
|
95
|
+
# Request-specific options
|
96
|
+
#
|
97
|
+
# @yield [result, err] Result & error if block supplied
|
98
|
+
# @yieldparam result [Google::Apis::NotebooksV1::ListLocationsResponse] parsed result object
|
99
|
+
# @yieldparam err [StandardError] error object if request failed
|
100
|
+
#
|
101
|
+
# @return [Google::Apis::NotebooksV1::ListLocationsResponse]
|
102
|
+
#
|
103
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
104
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
105
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
106
|
+
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
107
|
+
command = make_simple_command(:get, 'v1/{+name}/locations', options)
|
108
|
+
command.response_representation = Google::Apis::NotebooksV1::ListLocationsResponse::Representation
|
109
|
+
command.response_class = Google::Apis::NotebooksV1::ListLocationsResponse
|
110
|
+
command.params['name'] = name unless name.nil?
|
111
|
+
command.query['filter'] = filter unless filter.nil?
|
112
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
113
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
114
|
+
command.query['fields'] = fields unless fields.nil?
|
115
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
116
|
+
execute_or_queue_command(command, &block)
|
117
|
+
end
|
118
|
+
|
119
|
+
# Creates a new Environment.
|
120
|
+
# @param [String] parent
|
121
|
+
# Required. Format: `projects/`project_id`/locations/`location``
|
122
|
+
# @param [Google::Apis::NotebooksV1::Environment] environment_object
|
123
|
+
# @param [String] environment_id
|
124
|
+
# Required. User-defined unique ID of this environment. The `environment_id`
|
125
|
+
# must be 1 to 63 characters long and contain only lowercase letters, numeric
|
126
|
+
# characters, and dashes. The first character must be a lowercase letter and the
|
127
|
+
# last character cannot be a dash.
|
128
|
+
# @param [String] fields
|
129
|
+
# Selector specifying which fields to include in a partial response.
|
130
|
+
# @param [String] quota_user
|
131
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
132
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
133
|
+
# @param [Google::Apis::RequestOptions] options
|
134
|
+
# Request-specific options
|
135
|
+
#
|
136
|
+
# @yield [result, err] Result & error if block supplied
|
137
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
138
|
+
# @yieldparam err [StandardError] error object if request failed
|
139
|
+
#
|
140
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
141
|
+
#
|
142
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
143
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
144
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
145
|
+
def create_project_location_environment(parent, environment_object = nil, environment_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
146
|
+
command = make_simple_command(:post, 'v1/{+parent}/environments', options)
|
147
|
+
command.request_representation = Google::Apis::NotebooksV1::Environment::Representation
|
148
|
+
command.request_object = environment_object
|
149
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
150
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
151
|
+
command.params['parent'] = parent unless parent.nil?
|
152
|
+
command.query['environmentId'] = environment_id unless environment_id.nil?
|
153
|
+
command.query['fields'] = fields unless fields.nil?
|
154
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
155
|
+
execute_or_queue_command(command, &block)
|
156
|
+
end
|
157
|
+
|
158
|
+
# Deletes a single Environment.
|
159
|
+
# @param [String] name
|
160
|
+
# Required. Format: `projects/`project_id`/locations/`location`/environments/`
|
161
|
+
# environment_id``
|
162
|
+
# @param [String] fields
|
163
|
+
# Selector specifying which fields to include in a partial response.
|
164
|
+
# @param [String] quota_user
|
165
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
166
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
167
|
+
# @param [Google::Apis::RequestOptions] options
|
168
|
+
# Request-specific options
|
169
|
+
#
|
170
|
+
# @yield [result, err] Result & error if block supplied
|
171
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
172
|
+
# @yieldparam err [StandardError] error object if request failed
|
173
|
+
#
|
174
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
175
|
+
#
|
176
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
177
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
178
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
179
|
+
def delete_project_location_environment(name, fields: nil, quota_user: nil, options: nil, &block)
|
180
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
181
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
182
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
183
|
+
command.params['name'] = name unless name.nil?
|
184
|
+
command.query['fields'] = fields unless fields.nil?
|
185
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
186
|
+
execute_or_queue_command(command, &block)
|
187
|
+
end
|
188
|
+
|
189
|
+
# Gets details of a single Environment.
|
190
|
+
# @param [String] name
|
191
|
+
# Required. Format: `projects/`project_id`/locations/`location`/environments/`
|
192
|
+
# environment_id``
|
193
|
+
# @param [String] fields
|
194
|
+
# Selector specifying which fields to include in a partial response.
|
195
|
+
# @param [String] quota_user
|
196
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
197
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
198
|
+
# @param [Google::Apis::RequestOptions] options
|
199
|
+
# Request-specific options
|
200
|
+
#
|
201
|
+
# @yield [result, err] Result & error if block supplied
|
202
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Environment] parsed result object
|
203
|
+
# @yieldparam err [StandardError] error object if request failed
|
204
|
+
#
|
205
|
+
# @return [Google::Apis::NotebooksV1::Environment]
|
206
|
+
#
|
207
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
208
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
209
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
210
|
+
def get_project_location_environment(name, fields: nil, quota_user: nil, options: nil, &block)
|
211
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
212
|
+
command.response_representation = Google::Apis::NotebooksV1::Environment::Representation
|
213
|
+
command.response_class = Google::Apis::NotebooksV1::Environment
|
214
|
+
command.params['name'] = name unless name.nil?
|
215
|
+
command.query['fields'] = fields unless fields.nil?
|
216
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
217
|
+
execute_or_queue_command(command, &block)
|
218
|
+
end
|
219
|
+
|
220
|
+
# Lists environments in a project.
|
221
|
+
# @param [String] parent
|
222
|
+
# Required. Format: `projects/`project_id`/locations/`location``
|
223
|
+
# @param [Fixnum] page_size
|
224
|
+
# Maximum return size of the list call.
|
225
|
+
# @param [String] page_token
|
226
|
+
# A previous returned page token that can be used to continue listing from the
|
227
|
+
# last result.
|
228
|
+
# @param [String] fields
|
229
|
+
# Selector specifying which fields to include in a partial response.
|
230
|
+
# @param [String] quota_user
|
231
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
232
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
233
|
+
# @param [Google::Apis::RequestOptions] options
|
234
|
+
# Request-specific options
|
235
|
+
#
|
236
|
+
# @yield [result, err] Result & error if block supplied
|
237
|
+
# @yieldparam result [Google::Apis::NotebooksV1::ListEnvironmentsResponse] parsed result object
|
238
|
+
# @yieldparam err [StandardError] error object if request failed
|
239
|
+
#
|
240
|
+
# @return [Google::Apis::NotebooksV1::ListEnvironmentsResponse]
|
241
|
+
#
|
242
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
243
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
244
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
245
|
+
def list_project_location_environments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
246
|
+
command = make_simple_command(:get, 'v1/{+parent}/environments', options)
|
247
|
+
command.response_representation = Google::Apis::NotebooksV1::ListEnvironmentsResponse::Representation
|
248
|
+
command.response_class = Google::Apis::NotebooksV1::ListEnvironmentsResponse
|
249
|
+
command.params['parent'] = parent unless parent.nil?
|
250
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
251
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
252
|
+
command.query['fields'] = fields unless fields.nil?
|
253
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
254
|
+
execute_or_queue_command(command, &block)
|
255
|
+
end
|
256
|
+
|
257
|
+
# Creates a new Instance in a given project and location.
|
258
|
+
# @param [String] parent
|
259
|
+
# Required. Format: `parent=projects/`project_id`/locations/`location``
|
260
|
+
# @param [Google::Apis::NotebooksV1::Instance] instance_object
|
261
|
+
# @param [String] instance_id
|
262
|
+
# Required. User-defined unique ID of this instance.
|
263
|
+
# @param [String] fields
|
264
|
+
# Selector specifying which fields to include in a partial response.
|
265
|
+
# @param [String] quota_user
|
266
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
267
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
268
|
+
# @param [Google::Apis::RequestOptions] options
|
269
|
+
# Request-specific options
|
270
|
+
#
|
271
|
+
# @yield [result, err] Result & error if block supplied
|
272
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
273
|
+
# @yieldparam err [StandardError] error object if request failed
|
274
|
+
#
|
275
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
276
|
+
#
|
277
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
278
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
279
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
280
|
+
def create_project_location_instance(parent, instance_object = nil, instance_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
281
|
+
command = make_simple_command(:post, 'v1/{+parent}/instances', options)
|
282
|
+
command.request_representation = Google::Apis::NotebooksV1::Instance::Representation
|
283
|
+
command.request_object = instance_object
|
284
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
285
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
286
|
+
command.params['parent'] = parent unless parent.nil?
|
287
|
+
command.query['instanceId'] = instance_id unless instance_id.nil?
|
288
|
+
command.query['fields'] = fields unless fields.nil?
|
289
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
290
|
+
execute_or_queue_command(command, &block)
|
291
|
+
end
|
292
|
+
|
293
|
+
# Deletes a single Instance.
|
294
|
+
# @param [String] name
|
295
|
+
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
296
|
+
# instance_id``
|
297
|
+
# @param [String] fields
|
298
|
+
# Selector specifying which fields to include in a partial response.
|
299
|
+
# @param [String] quota_user
|
300
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
301
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
302
|
+
# @param [Google::Apis::RequestOptions] options
|
303
|
+
# Request-specific options
|
304
|
+
#
|
305
|
+
# @yield [result, err] Result & error if block supplied
|
306
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
307
|
+
# @yieldparam err [StandardError] error object if request failed
|
308
|
+
#
|
309
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
310
|
+
#
|
311
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
312
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
313
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
314
|
+
def delete_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
|
315
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
316
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
317
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
318
|
+
command.params['name'] = name unless name.nil?
|
319
|
+
command.query['fields'] = fields unless fields.nil?
|
320
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
321
|
+
execute_or_queue_command(command, &block)
|
322
|
+
end
|
323
|
+
|
324
|
+
# Gets details of a single Instance.
|
325
|
+
# @param [String] name
|
326
|
+
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
327
|
+
# instance_id``
|
328
|
+
# @param [String] fields
|
329
|
+
# Selector specifying which fields to include in a partial response.
|
330
|
+
# @param [String] quota_user
|
331
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
332
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
333
|
+
# @param [Google::Apis::RequestOptions] options
|
334
|
+
# Request-specific options
|
335
|
+
#
|
336
|
+
# @yield [result, err] Result & error if block supplied
|
337
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Instance] parsed result object
|
338
|
+
# @yieldparam err [StandardError] error object if request failed
|
339
|
+
#
|
340
|
+
# @return [Google::Apis::NotebooksV1::Instance]
|
341
|
+
#
|
342
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
343
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
344
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
345
|
+
def get_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
|
346
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
347
|
+
command.response_representation = Google::Apis::NotebooksV1::Instance::Representation
|
348
|
+
command.response_class = Google::Apis::NotebooksV1::Instance
|
349
|
+
command.params['name'] = name unless name.nil?
|
350
|
+
command.query['fields'] = fields unless fields.nil?
|
351
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
352
|
+
execute_or_queue_command(command, &block)
|
353
|
+
end
|
354
|
+
|
355
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
356
|
+
# resource exists and does not have a policy set.
|
357
|
+
# @param [String] resource
|
358
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
359
|
+
# operation documentation for the appropriate value for this field.
|
360
|
+
# @param [Fixnum] options_requested_policy_version
|
361
|
+
# Optional. The policy format version to be returned. Valid values are 0, 1, and
|
362
|
+
# 3. Requests specifying an invalid value will be rejected. Requests for
|
363
|
+
# policies with any conditional bindings must specify version 3. Policies
|
364
|
+
# without any conditional bindings may specify any valid value or leave the
|
365
|
+
# field unset. To learn which resources support conditions in their IAM policies,
|
366
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
367
|
+
# resource-policies).
|
368
|
+
# @param [String] fields
|
369
|
+
# Selector specifying which fields to include in a partial response.
|
370
|
+
# @param [String] quota_user
|
371
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
372
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
373
|
+
# @param [Google::Apis::RequestOptions] options
|
374
|
+
# Request-specific options
|
375
|
+
#
|
376
|
+
# @yield [result, err] Result & error if block supplied
|
377
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Policy] parsed result object
|
378
|
+
# @yieldparam err [StandardError] error object if request failed
|
379
|
+
#
|
380
|
+
# @return [Google::Apis::NotebooksV1::Policy]
|
381
|
+
#
|
382
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
383
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
384
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
385
|
+
def get_project_location_instance_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
386
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
387
|
+
command.response_representation = Google::Apis::NotebooksV1::Policy::Representation
|
388
|
+
command.response_class = Google::Apis::NotebooksV1::Policy
|
389
|
+
command.params['resource'] = resource unless resource.nil?
|
390
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
391
|
+
command.query['fields'] = fields unless fields.nil?
|
392
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
393
|
+
execute_or_queue_command(command, &block)
|
394
|
+
end
|
395
|
+
|
396
|
+
# Check if a notebook instance is upgradable.
|
397
|
+
# @param [String] notebook_instance
|
398
|
+
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
399
|
+
# instance_id``
|
400
|
+
# @param [String] fields
|
401
|
+
# Selector specifying which fields to include in a partial response.
|
402
|
+
# @param [String] quota_user
|
403
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
404
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
405
|
+
# @param [Google::Apis::RequestOptions] options
|
406
|
+
# Request-specific options
|
407
|
+
#
|
408
|
+
# @yield [result, err] Result & error if block supplied
|
409
|
+
# @yieldparam result [Google::Apis::NotebooksV1::IsInstanceUpgradeableResponse] parsed result object
|
410
|
+
# @yieldparam err [StandardError] error object if request failed
|
411
|
+
#
|
412
|
+
# @return [Google::Apis::NotebooksV1::IsInstanceUpgradeableResponse]
|
413
|
+
#
|
414
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
415
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
416
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
417
|
+
def is_project_location_instance_upgradeable(notebook_instance, fields: nil, quota_user: nil, options: nil, &block)
|
418
|
+
command = make_simple_command(:get, 'v1/{+notebookInstance}:isUpgradeable', options)
|
419
|
+
command.response_representation = Google::Apis::NotebooksV1::IsInstanceUpgradeableResponse::Representation
|
420
|
+
command.response_class = Google::Apis::NotebooksV1::IsInstanceUpgradeableResponse
|
421
|
+
command.params['notebookInstance'] = notebook_instance unless notebook_instance.nil?
|
422
|
+
command.query['fields'] = fields unless fields.nil?
|
423
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
424
|
+
execute_or_queue_command(command, &block)
|
425
|
+
end
|
426
|
+
|
427
|
+
# Lists instances in a given project and location.
|
428
|
+
# @param [String] parent
|
429
|
+
# Required. Format: `parent=projects/`project_id`/locations/`location``
|
430
|
+
# @param [Fixnum] page_size
|
431
|
+
# Maximum return size of the list call.
|
432
|
+
# @param [String] page_token
|
433
|
+
# A previous returned page token that can be used to continue listing from the
|
434
|
+
# last result.
|
435
|
+
# @param [String] fields
|
436
|
+
# Selector specifying which fields to include in a partial response.
|
437
|
+
# @param [String] quota_user
|
438
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
439
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
440
|
+
# @param [Google::Apis::RequestOptions] options
|
441
|
+
# Request-specific options
|
442
|
+
#
|
443
|
+
# @yield [result, err] Result & error if block supplied
|
444
|
+
# @yieldparam result [Google::Apis::NotebooksV1::ListInstancesResponse] parsed result object
|
445
|
+
# @yieldparam err [StandardError] error object if request failed
|
446
|
+
#
|
447
|
+
# @return [Google::Apis::NotebooksV1::ListInstancesResponse]
|
448
|
+
#
|
449
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
450
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
451
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
452
|
+
def list_project_location_instances(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
453
|
+
command = make_simple_command(:get, 'v1/{+parent}/instances', options)
|
454
|
+
command.response_representation = Google::Apis::NotebooksV1::ListInstancesResponse::Representation
|
455
|
+
command.response_class = Google::Apis::NotebooksV1::ListInstancesResponse
|
456
|
+
command.params['parent'] = parent unless parent.nil?
|
457
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
458
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
459
|
+
command.query['fields'] = fields unless fields.nil?
|
460
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
461
|
+
execute_or_queue_command(command, &block)
|
462
|
+
end
|
463
|
+
|
464
|
+
# Registers an existing legacy notebook instance to the Notebooks API server.
|
465
|
+
# Legacy instances are instances created with the legacy Compute Engine calls.
|
466
|
+
# They are not manageable by the Notebooks API out of the box. This call makes
|
467
|
+
# these instances manageable by the Notebooks API.
|
468
|
+
# @param [String] parent
|
469
|
+
# Required. Format: `parent=projects/`project_id`/locations/`location``
|
470
|
+
# @param [Google::Apis::NotebooksV1::RegisterInstanceRequest] register_instance_request_object
|
471
|
+
# @param [String] fields
|
472
|
+
# Selector specifying which fields to include in a partial response.
|
473
|
+
# @param [String] quota_user
|
474
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
475
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
476
|
+
# @param [Google::Apis::RequestOptions] options
|
477
|
+
# Request-specific options
|
478
|
+
#
|
479
|
+
# @yield [result, err] Result & error if block supplied
|
480
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
481
|
+
# @yieldparam err [StandardError] error object if request failed
|
482
|
+
#
|
483
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
484
|
+
#
|
485
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
486
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
487
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
488
|
+
def register_instance(parent, register_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
489
|
+
command = make_simple_command(:post, 'v1/{+parent}/instances:register', options)
|
490
|
+
command.request_representation = Google::Apis::NotebooksV1::RegisterInstanceRequest::Representation
|
491
|
+
command.request_object = register_instance_request_object
|
492
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
493
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
494
|
+
command.params['parent'] = parent unless parent.nil?
|
495
|
+
command.query['fields'] = fields unless fields.nil?
|
496
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
497
|
+
execute_or_queue_command(command, &block)
|
498
|
+
end
|
499
|
+
|
500
|
+
# Allows notebook instances to report their latest instance information to the
|
501
|
+
# Notebooks API server. The server will merge the reported information to the
|
502
|
+
# instance metadata store. Do not use this method directly.
|
503
|
+
# @param [String] name
|
504
|
+
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
505
|
+
# instance_id``
|
506
|
+
# @param [Google::Apis::NotebooksV1::ReportInstanceInfoRequest] report_instance_info_request_object
|
507
|
+
# @param [String] fields
|
508
|
+
# Selector specifying which fields to include in a partial response.
|
509
|
+
# @param [String] quota_user
|
510
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
511
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
512
|
+
# @param [Google::Apis::RequestOptions] options
|
513
|
+
# Request-specific options
|
514
|
+
#
|
515
|
+
# @yield [result, err] Result & error if block supplied
|
516
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
517
|
+
# @yieldparam err [StandardError] error object if request failed
|
518
|
+
#
|
519
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
520
|
+
#
|
521
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
522
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
523
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
524
|
+
def report_instance_info(name, report_instance_info_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
525
|
+
command = make_simple_command(:post, 'v1/{+name}:report', options)
|
526
|
+
command.request_representation = Google::Apis::NotebooksV1::ReportInstanceInfoRequest::Representation
|
527
|
+
command.request_object = report_instance_info_request_object
|
528
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
529
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
530
|
+
command.params['name'] = name unless name.nil?
|
531
|
+
command.query['fields'] = fields unless fields.nil?
|
532
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
533
|
+
execute_or_queue_command(command, &block)
|
534
|
+
end
|
535
|
+
|
536
|
+
# Resets a notebook instance.
|
537
|
+
# @param [String] name
|
538
|
+
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
539
|
+
# instance_id``
|
540
|
+
# @param [Google::Apis::NotebooksV1::ResetInstanceRequest] reset_instance_request_object
|
541
|
+
# @param [String] fields
|
542
|
+
# Selector specifying which fields to include in a partial response.
|
543
|
+
# @param [String] quota_user
|
544
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
545
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
546
|
+
# @param [Google::Apis::RequestOptions] options
|
547
|
+
# Request-specific options
|
548
|
+
#
|
549
|
+
# @yield [result, err] Result & error if block supplied
|
550
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
551
|
+
# @yieldparam err [StandardError] error object if request failed
|
552
|
+
#
|
553
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
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 reset_instance(name, reset_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
559
|
+
command = make_simple_command(:post, 'v1/{+name}:reset', options)
|
560
|
+
command.request_representation = Google::Apis::NotebooksV1::ResetInstanceRequest::Representation
|
561
|
+
command.request_object = reset_instance_request_object
|
562
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
563
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
564
|
+
command.params['name'] = name unless name.nil?
|
565
|
+
command.query['fields'] = fields unless fields.nil?
|
566
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
567
|
+
execute_or_queue_command(command, &block)
|
568
|
+
end
|
569
|
+
|
570
|
+
# Updates the guest accelerators of a single Instance.
|
571
|
+
# @param [String] name
|
572
|
+
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
573
|
+
# instance_id``
|
574
|
+
# @param [Google::Apis::NotebooksV1::SetInstanceAcceleratorRequest] set_instance_accelerator_request_object
|
575
|
+
# @param [String] fields
|
576
|
+
# Selector specifying which fields to include in a partial response.
|
577
|
+
# @param [String] quota_user
|
578
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
579
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
580
|
+
# @param [Google::Apis::RequestOptions] options
|
581
|
+
# Request-specific options
|
582
|
+
#
|
583
|
+
# @yield [result, err] Result & error if block supplied
|
584
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
585
|
+
# @yieldparam err [StandardError] error object if request failed
|
586
|
+
#
|
587
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
588
|
+
#
|
589
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
590
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
591
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
592
|
+
def set_project_location_instance_accelerator(name, set_instance_accelerator_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
593
|
+
command = make_simple_command(:patch, 'v1/{+name}:setAccelerator', options)
|
594
|
+
command.request_representation = Google::Apis::NotebooksV1::SetInstanceAcceleratorRequest::Representation
|
595
|
+
command.request_object = set_instance_accelerator_request_object
|
596
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
597
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
598
|
+
command.params['name'] = name unless name.nil?
|
599
|
+
command.query['fields'] = fields unless fields.nil?
|
600
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
601
|
+
execute_or_queue_command(command, &block)
|
602
|
+
end
|
603
|
+
|
604
|
+
# Sets the access control policy on the specified resource. Replaces any
|
605
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
606
|
+
# PERMISSION_DENIED` errors.
|
607
|
+
# @param [String] resource
|
608
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
609
|
+
# operation documentation for the appropriate value for this field.
|
610
|
+
# @param [Google::Apis::NotebooksV1::SetIamPolicyRequest] set_iam_policy_request_object
|
611
|
+
# @param [String] fields
|
612
|
+
# Selector specifying which fields to include in a partial response.
|
613
|
+
# @param [String] quota_user
|
614
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
615
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
616
|
+
# @param [Google::Apis::RequestOptions] options
|
617
|
+
# Request-specific options
|
618
|
+
#
|
619
|
+
# @yield [result, err] Result & error if block supplied
|
620
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Policy] parsed result object
|
621
|
+
# @yieldparam err [StandardError] error object if request failed
|
622
|
+
#
|
623
|
+
# @return [Google::Apis::NotebooksV1::Policy]
|
624
|
+
#
|
625
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
626
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
627
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
628
|
+
def set_instance_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
629
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
630
|
+
command.request_representation = Google::Apis::NotebooksV1::SetIamPolicyRequest::Representation
|
631
|
+
command.request_object = set_iam_policy_request_object
|
632
|
+
command.response_representation = Google::Apis::NotebooksV1::Policy::Representation
|
633
|
+
command.response_class = Google::Apis::NotebooksV1::Policy
|
634
|
+
command.params['resource'] = resource unless resource.nil?
|
635
|
+
command.query['fields'] = fields unless fields.nil?
|
636
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
637
|
+
execute_or_queue_command(command, &block)
|
638
|
+
end
|
639
|
+
|
640
|
+
# Replaces all the labels of an Instance.
|
641
|
+
# @param [String] name
|
642
|
+
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
643
|
+
# instance_id``
|
644
|
+
# @param [Google::Apis::NotebooksV1::SetInstanceLabelsRequest] set_instance_labels_request_object
|
645
|
+
# @param [String] fields
|
646
|
+
# Selector specifying which fields to include in a partial response.
|
647
|
+
# @param [String] quota_user
|
648
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
649
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
650
|
+
# @param [Google::Apis::RequestOptions] options
|
651
|
+
# Request-specific options
|
652
|
+
#
|
653
|
+
# @yield [result, err] Result & error if block supplied
|
654
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
655
|
+
# @yieldparam err [StandardError] error object if request failed
|
656
|
+
#
|
657
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
658
|
+
#
|
659
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
660
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
661
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
662
|
+
def set_project_location_instance_labels(name, set_instance_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
663
|
+
command = make_simple_command(:patch, 'v1/{+name}:setLabels', options)
|
664
|
+
command.request_representation = Google::Apis::NotebooksV1::SetInstanceLabelsRequest::Representation
|
665
|
+
command.request_object = set_instance_labels_request_object
|
666
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
667
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
668
|
+
command.params['name'] = name unless name.nil?
|
669
|
+
command.query['fields'] = fields unless fields.nil?
|
670
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
671
|
+
execute_or_queue_command(command, &block)
|
672
|
+
end
|
673
|
+
|
674
|
+
# Updates the machine type of a single Instance.
|
675
|
+
# @param [String] name
|
676
|
+
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
677
|
+
# instance_id``
|
678
|
+
# @param [Google::Apis::NotebooksV1::SetInstanceMachineTypeRequest] set_instance_machine_type_request_object
|
679
|
+
# @param [String] fields
|
680
|
+
# Selector specifying which fields to include in a partial response.
|
681
|
+
# @param [String] quota_user
|
682
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
683
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
684
|
+
# @param [Google::Apis::RequestOptions] options
|
685
|
+
# Request-specific options
|
686
|
+
#
|
687
|
+
# @yield [result, err] Result & error if block supplied
|
688
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
689
|
+
# @yieldparam err [StandardError] error object if request failed
|
690
|
+
#
|
691
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
692
|
+
#
|
693
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
694
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
695
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
696
|
+
def set_project_location_instance_machine_type(name, set_instance_machine_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
697
|
+
command = make_simple_command(:patch, 'v1/{+name}:setMachineType', options)
|
698
|
+
command.request_representation = Google::Apis::NotebooksV1::SetInstanceMachineTypeRequest::Representation
|
699
|
+
command.request_object = set_instance_machine_type_request_object
|
700
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
701
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
702
|
+
command.params['name'] = name unless name.nil?
|
703
|
+
command.query['fields'] = fields unless fields.nil?
|
704
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
705
|
+
execute_or_queue_command(command, &block)
|
706
|
+
end
|
707
|
+
|
708
|
+
# Starts a notebook instance.
|
709
|
+
# @param [String] name
|
710
|
+
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
711
|
+
# instance_id``
|
712
|
+
# @param [Google::Apis::NotebooksV1::StartInstanceRequest] start_instance_request_object
|
713
|
+
# @param [String] fields
|
714
|
+
# Selector specifying which fields to include in a partial response.
|
715
|
+
# @param [String] quota_user
|
716
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
717
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
718
|
+
# @param [Google::Apis::RequestOptions] options
|
719
|
+
# Request-specific options
|
720
|
+
#
|
721
|
+
# @yield [result, err] Result & error if block supplied
|
722
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
723
|
+
# @yieldparam err [StandardError] error object if request failed
|
724
|
+
#
|
725
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
726
|
+
#
|
727
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
728
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
729
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
730
|
+
def start_instance(name, start_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
731
|
+
command = make_simple_command(:post, 'v1/{+name}:start', options)
|
732
|
+
command.request_representation = Google::Apis::NotebooksV1::StartInstanceRequest::Representation
|
733
|
+
command.request_object = start_instance_request_object
|
734
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
735
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
736
|
+
command.params['name'] = name unless name.nil?
|
737
|
+
command.query['fields'] = fields unless fields.nil?
|
738
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
739
|
+
execute_or_queue_command(command, &block)
|
740
|
+
end
|
741
|
+
|
742
|
+
# Stops a notebook instance.
|
743
|
+
# @param [String] name
|
744
|
+
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
745
|
+
# instance_id``
|
746
|
+
# @param [Google::Apis::NotebooksV1::StopInstanceRequest] stop_instance_request_object
|
747
|
+
# @param [String] fields
|
748
|
+
# Selector specifying which fields to include in a partial response.
|
749
|
+
# @param [String] quota_user
|
750
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
751
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
752
|
+
# @param [Google::Apis::RequestOptions] options
|
753
|
+
# Request-specific options
|
754
|
+
#
|
755
|
+
# @yield [result, err] Result & error if block supplied
|
756
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
757
|
+
# @yieldparam err [StandardError] error object if request failed
|
758
|
+
#
|
759
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
760
|
+
#
|
761
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
762
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
763
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
764
|
+
def stop_instance(name, stop_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
765
|
+
command = make_simple_command(:post, 'v1/{+name}:stop', options)
|
766
|
+
command.request_representation = Google::Apis::NotebooksV1::StopInstanceRequest::Representation
|
767
|
+
command.request_object = stop_instance_request_object
|
768
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
769
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
770
|
+
command.params['name'] = name unless name.nil?
|
771
|
+
command.query['fields'] = fields unless fields.nil?
|
772
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
773
|
+
execute_or_queue_command(command, &block)
|
774
|
+
end
|
775
|
+
|
776
|
+
# Returns permissions that a caller has on the specified resource. If the
|
777
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
778
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
779
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
780
|
+
# This operation may "fail open" without warning.
|
781
|
+
# @param [String] resource
|
782
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
783
|
+
# operation documentation for the appropriate value for this field.
|
784
|
+
# @param [Google::Apis::NotebooksV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
785
|
+
# @param [String] fields
|
786
|
+
# Selector specifying which fields to include in a partial response.
|
787
|
+
# @param [String] quota_user
|
788
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
789
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
790
|
+
# @param [Google::Apis::RequestOptions] options
|
791
|
+
# Request-specific options
|
792
|
+
#
|
793
|
+
# @yield [result, err] Result & error if block supplied
|
794
|
+
# @yieldparam result [Google::Apis::NotebooksV1::TestIamPermissionsResponse] parsed result object
|
795
|
+
# @yieldparam err [StandardError] error object if request failed
|
796
|
+
#
|
797
|
+
# @return [Google::Apis::NotebooksV1::TestIamPermissionsResponse]
|
798
|
+
#
|
799
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
800
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
801
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
802
|
+
def test_instance_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
803
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
804
|
+
command.request_representation = Google::Apis::NotebooksV1::TestIamPermissionsRequest::Representation
|
805
|
+
command.request_object = test_iam_permissions_request_object
|
806
|
+
command.response_representation = Google::Apis::NotebooksV1::TestIamPermissionsResponse::Representation
|
807
|
+
command.response_class = Google::Apis::NotebooksV1::TestIamPermissionsResponse
|
808
|
+
command.params['resource'] = resource unless resource.nil?
|
809
|
+
command.query['fields'] = fields unless fields.nil?
|
810
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
811
|
+
execute_or_queue_command(command, &block)
|
812
|
+
end
|
813
|
+
|
814
|
+
# Upgrades a notebook instance to the latest version.
|
815
|
+
# @param [String] name
|
816
|
+
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
817
|
+
# instance_id``
|
818
|
+
# @param [Google::Apis::NotebooksV1::UpgradeInstanceRequest] upgrade_instance_request_object
|
819
|
+
# @param [String] fields
|
820
|
+
# Selector specifying which fields to include in a partial response.
|
821
|
+
# @param [String] quota_user
|
822
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
823
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
824
|
+
# @param [Google::Apis::RequestOptions] options
|
825
|
+
# Request-specific options
|
826
|
+
#
|
827
|
+
# @yield [result, err] Result & error if block supplied
|
828
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
829
|
+
# @yieldparam err [StandardError] error object if request failed
|
830
|
+
#
|
831
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
832
|
+
#
|
833
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
834
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
835
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
836
|
+
def upgrade_instance(name, upgrade_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
837
|
+
command = make_simple_command(:post, 'v1/{+name}:upgrade', options)
|
838
|
+
command.request_representation = Google::Apis::NotebooksV1::UpgradeInstanceRequest::Representation
|
839
|
+
command.request_object = upgrade_instance_request_object
|
840
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
841
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
842
|
+
command.params['name'] = name unless name.nil?
|
843
|
+
command.query['fields'] = fields unless fields.nil?
|
844
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
845
|
+
execute_or_queue_command(command, &block)
|
846
|
+
end
|
847
|
+
|
848
|
+
# Allows notebook instances to call this endpoint to upgrade themselves. Do not
|
849
|
+
# use this method directly.
|
850
|
+
# @param [String] name
|
851
|
+
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
852
|
+
# instance_id``
|
853
|
+
# @param [Google::Apis::NotebooksV1::UpgradeInstanceInternalRequest] upgrade_instance_internal_request_object
|
854
|
+
# @param [String] fields
|
855
|
+
# Selector specifying which fields to include in a partial response.
|
856
|
+
# @param [String] quota_user
|
857
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
858
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
859
|
+
# @param [Google::Apis::RequestOptions] options
|
860
|
+
# Request-specific options
|
861
|
+
#
|
862
|
+
# @yield [result, err] Result & error if block supplied
|
863
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
864
|
+
# @yieldparam err [StandardError] error object if request failed
|
865
|
+
#
|
866
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
867
|
+
#
|
868
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
869
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
870
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
871
|
+
def upgrade_project_location_instance_internal(name, upgrade_instance_internal_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
872
|
+
command = make_simple_command(:post, 'v1/{+name}:upgradeInternal', options)
|
873
|
+
command.request_representation = Google::Apis::NotebooksV1::UpgradeInstanceInternalRequest::Representation
|
874
|
+
command.request_object = upgrade_instance_internal_request_object
|
875
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
876
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
877
|
+
command.params['name'] = name unless name.nil?
|
878
|
+
command.query['fields'] = fields unless fields.nil?
|
879
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
880
|
+
execute_or_queue_command(command, &block)
|
881
|
+
end
|
882
|
+
|
883
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
884
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
885
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
886
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
887
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
888
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
889
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
890
|
+
# corresponding to `Code.CANCELLED`.
|
891
|
+
# @param [String] name
|
892
|
+
# The name of the operation resource to be cancelled.
|
893
|
+
# @param [Google::Apis::NotebooksV1::CancelOperationRequest] cancel_operation_request_object
|
894
|
+
# @param [String] fields
|
895
|
+
# Selector specifying which fields to include in a partial response.
|
896
|
+
# @param [String] quota_user
|
897
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
898
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
899
|
+
# @param [Google::Apis::RequestOptions] options
|
900
|
+
# Request-specific options
|
901
|
+
#
|
902
|
+
# @yield [result, err] Result & error if block supplied
|
903
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Empty] parsed result object
|
904
|
+
# @yieldparam err [StandardError] error object if request failed
|
905
|
+
#
|
906
|
+
# @return [Google::Apis::NotebooksV1::Empty]
|
907
|
+
#
|
908
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
909
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
910
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
911
|
+
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
912
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
913
|
+
command.request_representation = Google::Apis::NotebooksV1::CancelOperationRequest::Representation
|
914
|
+
command.request_object = cancel_operation_request_object
|
915
|
+
command.response_representation = Google::Apis::NotebooksV1::Empty::Representation
|
916
|
+
command.response_class = Google::Apis::NotebooksV1::Empty
|
917
|
+
command.params['name'] = name unless name.nil?
|
918
|
+
command.query['fields'] = fields unless fields.nil?
|
919
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
920
|
+
execute_or_queue_command(command, &block)
|
921
|
+
end
|
922
|
+
|
923
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
924
|
+
# longer interested in the operation result. It does not cancel the operation.
|
925
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
926
|
+
# UNIMPLEMENTED`.
|
927
|
+
# @param [String] name
|
928
|
+
# The name of the operation resource to be deleted.
|
929
|
+
# @param [String] fields
|
930
|
+
# Selector specifying which fields to include in a partial response.
|
931
|
+
# @param [String] quota_user
|
932
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
933
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
934
|
+
# @param [Google::Apis::RequestOptions] options
|
935
|
+
# Request-specific options
|
936
|
+
#
|
937
|
+
# @yield [result, err] Result & error if block supplied
|
938
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Empty] parsed result object
|
939
|
+
# @yieldparam err [StandardError] error object if request failed
|
940
|
+
#
|
941
|
+
# @return [Google::Apis::NotebooksV1::Empty]
|
942
|
+
#
|
943
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
944
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
945
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
946
|
+
def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
947
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
948
|
+
command.response_representation = Google::Apis::NotebooksV1::Empty::Representation
|
949
|
+
command.response_class = Google::Apis::NotebooksV1::Empty
|
950
|
+
command.params['name'] = name unless name.nil?
|
951
|
+
command.query['fields'] = fields unless fields.nil?
|
952
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
953
|
+
execute_or_queue_command(command, &block)
|
954
|
+
end
|
955
|
+
|
956
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
957
|
+
# to poll the operation result at intervals as recommended by the API service.
|
958
|
+
# @param [String] name
|
959
|
+
# The name of the operation resource.
|
960
|
+
# @param [String] fields
|
961
|
+
# Selector specifying which fields to include in a partial response.
|
962
|
+
# @param [String] quota_user
|
963
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
964
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
965
|
+
# @param [Google::Apis::RequestOptions] options
|
966
|
+
# Request-specific options
|
967
|
+
#
|
968
|
+
# @yield [result, err] Result & error if block supplied
|
969
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
970
|
+
# @yieldparam err [StandardError] error object if request failed
|
971
|
+
#
|
972
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
973
|
+
#
|
974
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
975
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
976
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
977
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
978
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
979
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
980
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
981
|
+
command.params['name'] = name unless name.nil?
|
982
|
+
command.query['fields'] = fields unless fields.nil?
|
983
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
984
|
+
execute_or_queue_command(command, &block)
|
985
|
+
end
|
986
|
+
|
987
|
+
# Lists operations that match the specified filter in the request. If the server
|
988
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
989
|
+
# binding allows API services to override the binding to use different resource
|
990
|
+
# name schemes, such as `users/*/operations`. To override the binding, API
|
991
|
+
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
992
|
+
# service configuration. For backwards compatibility, the default name includes
|
993
|
+
# the operations collection id, however overriding users must ensure the name
|
994
|
+
# binding is the parent resource, without the operations collection id.
|
995
|
+
# @param [String] name
|
996
|
+
# The name of the operation's parent resource.
|
997
|
+
# @param [String] filter
|
998
|
+
# The standard list filter.
|
999
|
+
# @param [Fixnum] page_size
|
1000
|
+
# The standard list page size.
|
1001
|
+
# @param [String] page_token
|
1002
|
+
# The standard list page token.
|
1003
|
+
# @param [String] fields
|
1004
|
+
# Selector specifying which fields to include in a partial response.
|
1005
|
+
# @param [String] quota_user
|
1006
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1007
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1008
|
+
# @param [Google::Apis::RequestOptions] options
|
1009
|
+
# Request-specific options
|
1010
|
+
#
|
1011
|
+
# @yield [result, err] Result & error if block supplied
|
1012
|
+
# @yieldparam result [Google::Apis::NotebooksV1::ListOperationsResponse] parsed result object
|
1013
|
+
# @yieldparam err [StandardError] error object if request failed
|
1014
|
+
#
|
1015
|
+
# @return [Google::Apis::NotebooksV1::ListOperationsResponse]
|
1016
|
+
#
|
1017
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1018
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1019
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1020
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1021
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
1022
|
+
command.response_representation = Google::Apis::NotebooksV1::ListOperationsResponse::Representation
|
1023
|
+
command.response_class = Google::Apis::NotebooksV1::ListOperationsResponse
|
1024
|
+
command.params['name'] = name unless name.nil?
|
1025
|
+
command.query['filter'] = filter unless filter.nil?
|
1026
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1027
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1028
|
+
command.query['fields'] = fields unless fields.nil?
|
1029
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1030
|
+
execute_or_queue_command(command, &block)
|
1031
|
+
end
|
1032
|
+
|
1033
|
+
protected
|
1034
|
+
|
1035
|
+
def apply_command_defaults(command)
|
1036
|
+
command.query['key'] = key unless key.nil?
|
1037
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1038
|
+
end
|
1039
|
+
end
|
1040
|
+
end
|
1041
|
+
end
|
1042
|
+
end
|