google-api-client 0.44.2 → 0.46.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/autoapprove.yml +49 -0
- data/.gitignore +2 -0
- data/CHANGELOG.md +295 -0
- data/api_list_config.yaml +8 -0
- data/bin/generate-api +77 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +7 -9
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
- data/generated/google/apis/accessapproval_v1.rb +1 -1
- data/generated/google/apis/accessapproval_v1/classes.rb +25 -16
- data/generated/google/apis/accessapproval_v1/service.rb +27 -27
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +68 -0
- data/generated/google/apis/accesscontextmanager_v1/representations.rb +30 -0
- data/generated/google/apis/accesscontextmanager_v1/service.rb +180 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +30 -30
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +25 -0
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +15 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +135 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +62 -0
- data/generated/google/apis/admin_directory_v1/service.rb +72 -0
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/admob_v1.rb +6 -2
- data/generated/google/apis/admob_v1/classes.rb +31 -31
- data/generated/google/apis/admob_v1/service.rb +2 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/service.rb +4 -1
- data/generated/google/apis/analyticsadmin_v1alpha.rb +43 -0
- data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +1361 -0
- data/generated/google/apis/analyticsadmin_v1alpha/representations.rb +610 -0
- data/generated/google/apis/analyticsadmin_v1alpha/service.rb +2134 -0
- data/generated/google/apis/analyticsdata_v1alpha.rb +1 -1
- data/generated/google/apis/analyticsdata_v1alpha/classes.rb +32 -1
- data/generated/google/apis/analyticsdata_v1alpha/representations.rb +17 -0
- data/generated/google/apis/analyticsdata_v1alpha/service.rb +39 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/service.rb +2 -2
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +7 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +442 -14
- data/generated/google/apis/apigee_v1/representations.rb +161 -1
- data/generated/google/apis/apigee_v1/service.rb +264 -44
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta1/classes.rb +14 -0
- data/generated/google/apis/artifactregistry_v1beta1/representations.rb +2 -0
- data/generated/google/apis/{apigateway_v1alpha1.rb → assuredworkloads_v1beta1.rb} +8 -8
- data/generated/google/apis/assuredworkloads_v1beta1/classes.rb +722 -0
- data/generated/google/apis/assuredworkloads_v1beta1/representations.rb +359 -0
- data/generated/google/apis/assuredworkloads_v1beta1/service.rb +328 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +140 -23
- data/generated/google/apis/bigquery_v2/representations.rb +36 -0
- data/generated/google/apis/bigquery_v2/service.rb +46 -0
- data/generated/google/apis/billingbudgets_v1.rb +38 -0
- data/generated/google/apis/billingbudgets_v1/classes.rb +362 -0
- data/generated/google/apis/billingbudgets_v1/representations.rb +170 -0
- data/generated/google/apis/billingbudgets_v1/service.rb +249 -0
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +16 -6
- 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 +187 -0
- data/generated/google/apis/binaryauthorization_v1/representations.rb +74 -0
- data/generated/google/apis/binaryauthorization_v1/service.rb +35 -0
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +187 -0
- data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +74 -0
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +35 -0
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/service.rb +2 -2
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +2 -1
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +79 -5
- data/generated/google/apis/chat_v1/representations.rb +35 -0
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +0 -24
- data/generated/google/apis/civicinfo_v2/representations.rb +0 -3
- data/generated/google/apis/classroom_v1.rb +7 -1
- data/generated/google/apis/classroom_v1/classes.rb +153 -21
- data/generated/google/apis/classroom_v1/representations.rb +43 -0
- data/generated/google/apis/classroom_v1/service.rb +240 -0
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +52 -0
- data/generated/google/apis/cloudasset_v1/representations.rb +16 -0
- data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +7 -5
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +4 -4
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +0 -34
- data/generated/google/apis/cloudbuild_v1/representations.rb +0 -15
- data/generated/google/apis/cloudbuild_v1/service.rb +7 -4
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +12 -1
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +127 -63
- data/generated/google/apis/cloudidentity_v1/representations.rb +29 -0
- data/generated/google/apis/cloudidentity_v1/service.rb +124 -70
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +188 -0
- data/generated/google/apis/cloudidentity_v1beta1/representations.rb +94 -0
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +179 -0
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +7 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +1 -0
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +2 -1
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1/classes.rb +342 -0
- data/generated/google/apis/cloudshell_v1/representations.rb +200 -0
- data/generated/google/apis/cloudshell_v1/service.rb +177 -0
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +7 -0
- data/generated/google/apis/cloudtasks_v2/representations.rb +1 -0
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +25 -19
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -0
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +7 -0
- data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +2 -3
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +4 -4
- data/generated/google/apis/composer_v1beta1/service.rb +37 -35
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +633 -146
- data/generated/google/apis/compute_alpha/representations.rb +131 -8
- data/generated/google/apis/compute_alpha/service.rb +1995 -1013
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +566 -94
- data/generated/google/apis/compute_beta/representations.rb +100 -1
- data/generated/google/apis/compute_beta/service.rb +805 -136
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +336 -53
- data/generated/google/apis/compute_v1/representations.rb +57 -1
- data/generated/google/apis/compute_v1/service.rb +739 -133
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +22 -10
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +50 -10
- data/generated/google/apis/container_v1beta1/representations.rb +15 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +2 -1
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +108 -5
- data/generated/google/apis/content_v2_1/representations.rb +47 -0
- data/generated/google/apis/content_v2_1/service.rb +38 -1
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/customsearch_v1/service.rb +2 -2
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +152 -5
- data/generated/google/apis/dataflow_v1b3/representations.rb +30 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +10 -1
- data/generated/google/apis/datafusion_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +29 -3
- data/generated/google/apis/dataproc_v1/representations.rb +15 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +33 -6
- data/generated/google/apis/dataproc_v1beta2/representations.rb +15 -0
- data/generated/google/apis/dfareporting_v3_3.rb +1 -1
- data/generated/google/apis/dfareporting_v3_3/classes.rb +0 -164
- data/generated/google/apis/dfareporting_v3_3/representations.rb +0 -42
- data/generated/google/apis/dfareporting_v3_3/service.rb +51 -54
- data/generated/google/apis/dfareporting_v3_4.rb +1 -1
- data/generated/google/apis/dfareporting_v3_4/classes.rb +0 -164
- data/generated/google/apis/dfareporting_v3_4/representations.rb +0 -42
- data/generated/google/apis/dfareporting_v3_4/service.rb +51 -54
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +208 -30
- data/generated/google/apis/dialogflow_v2/representations.rb +118 -7
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +215 -38
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +118 -7
- data/generated/google/apis/dialogflow_v2beta1/service.rb +60 -10
- data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v3beta1/classes.rb +311 -33
- data/generated/google/apis/dialogflow_v3beta1/representations.rb +153 -7
- data/generated/google/apis/dialogflow_v3beta1/service.rb +22 -9
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +38 -30
- data/generated/google/apis/displayvideo_v1/representations.rb +1 -0
- data/generated/google/apis/displayvideo_v1/service.rb +21 -18
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +30 -3
- data/generated/google/apis/dlp_v2/representations.rb +16 -0
- data/generated/google/apis/dlp_v2/service.rb +328 -328
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +181 -0
- data/generated/google/apis/dns_v1/representations.rb +83 -0
- data/generated/google/apis/dns_v1/service.rb +10 -10
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +181 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +83 -0
- data/generated/google/apis/dns_v1beta2/service.rb +10 -10
- data/generated/google/apis/documentai_v1beta3.rb +36 -0
- data/generated/google/apis/documentai_v1beta3/classes.rb +6149 -0
- data/generated/google/apis/documentai_v1beta3/representations.rb +2666 -0
- data/generated/google/apis/documentai_v1beta3/service.rb +263 -0
- data/generated/google/apis/domains_v1alpha2.rb +34 -0
- data/generated/google/apis/domains_v1alpha2/classes.rb +1534 -0
- data/generated/google/apis/domains_v1alpha2/representations.rb +605 -0
- data/generated/google/apis/domains_v1alpha2/service.rb +805 -0
- data/generated/google/apis/{appsactivity_v1.rb → domains_v1beta1.rb} +11 -11
- data/generated/google/apis/domains_v1beta1/classes.rb +1534 -0
- data/generated/google/apis/domains_v1beta1/representations.rb +605 -0
- data/generated/google/apis/domains_v1beta1/service.rb +805 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +3 -3
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +4 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +4 -2
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +1 -1
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +4 -4
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/fitness_v1.rb +13 -1
- data/generated/google/apis/fitness_v1/service.rb +3 -1
- data/generated/google/apis/gameservices_v1.rb +1 -1
- data/generated/google/apis/gameservices_v1/classes.rb +15 -14
- data/generated/google/apis/gameservices_v1/service.rb +54 -51
- data/generated/google/apis/gameservices_v1beta.rb +1 -1
- data/generated/google/apis/gameservices_v1beta/classes.rb +15 -14
- data/generated/google/apis/gameservices_v1beta/service.rb +54 -51
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +104 -0
- data/generated/google/apis/genomics_v2alpha1/representations.rb +47 -0
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/service.rb +1 -1
- data/generated/google/apis/gmailpostmastertools_v1beta1.rb +1 -1
- data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +10 -10
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/classes.rb +7 -5
- data/generated/google/apis/healthcare_v1/service.rb +1 -3
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +1111 -278
- data/generated/google/apis/healthcare_v1beta1/representations.rb +486 -68
- data/generated/google/apis/healthcare_v1beta1/service.rb +1475 -247
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/service.rb +2 -1
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +798 -0
- data/generated/google/apis/jobs_v2/representations.rb +272 -0
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +798 -0
- data/generated/google/apis/jobs_v3/representations.rb +272 -0
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +759 -0
- data/generated/google/apis/jobs_v3p1beta1/representations.rb +257 -0
- data/generated/google/apis/licensing_v1.rb +4 -3
- data/generated/google/apis/licensing_v1/classes.rb +1 -1
- data/generated/google/apis/licensing_v1/service.rb +55 -85
- data/generated/google/apis/lifesciences_v2beta.rb +1 -1
- data/generated/google/apis/lifesciences_v2beta/classes.rb +104 -0
- data/generated/google/apis/lifesciences_v2beta/representations.rb +47 -0
- data/generated/google/apis/localservices_v1.rb +1 -1
- data/generated/google/apis/localservices_v1/service.rb +20 -20
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +98 -55
- data/generated/google/apis/logging_v2/representations.rb +32 -0
- data/generated/google/apis/logging_v2/service.rb +1214 -264
- data/generated/google/apis/managedidentities_v1.rb +1 -1
- data/generated/google/apis/managedidentities_v1/classes.rb +8 -1
- data/generated/google/apis/managedidentities_v1/representations.rb +1 -0
- data/generated/google/apis/managedidentities_v1/service.rb +1 -4
- data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
- data/generated/google/apis/managedidentities_v1alpha1/classes.rb +87 -9
- data/generated/google/apis/managedidentities_v1alpha1/representations.rb +34 -1
- data/generated/google/apis/managedidentities_v1alpha1/service.rb +83 -5
- data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
- data/generated/google/apis/managedidentities_v1beta1/classes.rb +88 -9
- data/generated/google/apis/managedidentities_v1beta1/representations.rb +34 -1
- data/generated/google/apis/managedidentities_v1beta1/service.rb +83 -5
- data/generated/google/apis/memcache_v1beta2.rb +1 -1
- data/generated/google/apis/memcache_v1beta2/classes.rb +1 -1
- data/generated/google/apis/memcache_v1beta2/service.rb +5 -5
- data/generated/google/apis/monitoring_v1.rb +1 -1
- data/generated/google/apis/monitoring_v1/classes.rb +10 -10
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +99 -45
- data/generated/google/apis/monitoring_v3/representations.rb +18 -0
- data/generated/google/apis/monitoring_v3/service.rb +5 -5
- data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
- data/generated/google/apis/networkmanagement_v1beta1/classes.rb +68 -0
- data/generated/google/apis/networkmanagement_v1beta1/representations.rb +23 -0
- data/generated/google/apis/{plus_v1.rb → oauth2_v2.rb} +12 -15
- data/generated/google/apis/oauth2_v2/classes.rb +165 -0
- data/generated/google/apis/oauth2_v2/representations.rb +68 -0
- data/generated/google/apis/oauth2_v2/service.rb +158 -0
- data/generated/google/apis/osconfig_v1.rb +3 -3
- data/generated/google/apis/osconfig_v1/service.rb +4 -4
- data/generated/google/apis/osconfig_v1beta.rb +3 -3
- data/generated/google/apis/osconfig_v1beta/service.rb +4 -4
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha/classes.rb +2 -2
- data/generated/google/apis/oslogin_v1alpha/service.rb +13 -13
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +48 -47
- data/generated/google/apis/people_v1/service.rb +12 -10
- data/generated/google/apis/playablelocations_v3.rb +1 -1
- data/generated/google/apis/playablelocations_v3/classes.rb +6 -6
- data/generated/google/apis/poly_v1.rb +3 -4
- data/generated/google/apis/poly_v1/classes.rb +65 -79
- data/generated/google/apis/poly_v1/service.rb +50 -63
- data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +109 -0
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +7 -0
- data/generated/google/apis/pubsub_v1/representations.rb +1 -0
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +7 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -0
- data/generated/google/apis/pubsublite_v1.rb +1 -1
- data/generated/google/apis/pubsublite_v1/classes.rb +72 -0
- data/generated/google/apis/pubsublite_v1/representations.rb +33 -0
- data/generated/google/apis/pubsublite_v1/service.rb +33 -0
- data/generated/google/apis/realtimebidding_v1.rb +1 -1
- data/generated/google/apis/realtimebidding_v1/classes.rb +84 -123
- data/generated/google/apis/realtimebidding_v1/representations.rb +18 -32
- data/generated/google/apis/realtimebidding_v1/service.rb +4 -1
- data/generated/google/apis/recommender_v1.rb +1 -1
- data/generated/google/apis/recommender_v1/service.rb +4 -2
- data/generated/google/apis/recommender_v1beta1.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/service.rb +4 -2
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +5 -391
- data/generated/google/apis/redis_v1/representations.rb +0 -139
- data/generated/google/apis/redis_v1/service.rb +2 -2
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +33 -391
- data/generated/google/apis/redis_v1beta1/representations.rb +12 -137
- data/generated/google/apis/redis_v1beta1/service.rb +36 -2
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +6 -0
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +6 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -0
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +6 -0
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -0
- data/generated/google/apis/reseller_v1.rb +2 -2
- data/generated/google/apis/reseller_v1/classes.rb +151 -219
- data/generated/google/apis/reseller_v1/service.rb +122 -173
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +15 -135
- data/generated/google/apis/run_v1/representations.rb +0 -61
- data/generated/google/apis/run_v1/service.rb +0 -342
- data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1/classes.rb +20 -0
- data/generated/google/apis/sasportal_v1alpha1/representations.rb +13 -0
- data/generated/google/apis/sasportal_v1alpha1/service.rb +479 -0
- data/generated/google/apis/searchconsole_v1.rb +7 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +388 -0
- data/generated/google/apis/searchconsole_v1/representations.rb +162 -0
- data/generated/google/apis/searchconsole_v1/service.rb +287 -0
- data/generated/google/apis/secretmanager_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +5 -199
- data/generated/google/apis/securitycenter_v1/representations.rb +0 -72
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +2 -196
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +0 -72
- data/generated/google/apis/securitycenter_v1beta2.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta2/classes.rb +2 -196
- data/generated/google/apis/securitycenter_v1beta2/representations.rb +0 -72
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +12 -12
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +32 -30
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +6 -4
- data/generated/google/apis/servicecontrol_v2.rb +1 -1
- data/generated/google/apis/servicecontrol_v2/classes.rb +5 -3
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +0 -22
- data/generated/google/apis/servicemanagement_v1/representations.rb +0 -13
- data/generated/google/apis/servicemanagement_v1/service.rb +0 -36
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +107 -4
- data/generated/google/apis/servicenetworking_v1/representations.rb +34 -0
- data/generated/google/apis/servicenetworking_v1/service.rb +2 -2
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +107 -4
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +34 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +175 -85
- data/generated/google/apis/smartdevicemanagement_v1.rb +35 -0
- data/generated/google/apis/smartdevicemanagement_v1/classes.rb +307 -0
- data/generated/google/apis/smartdevicemanagement_v1/representations.rb +173 -0
- data/generated/google/apis/smartdevicemanagement_v1/service.rb +309 -0
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +250 -400
- data/generated/google/apis/sourcerepo_v1/service.rb +40 -49
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +7 -0
- data/generated/google/apis/spanner_v1/representations.rb +1 -0
- data/generated/google/apis/{sql_v1beta4.rb → sqladmin_v1beta4.rb} +5 -5
- data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/classes.rb +229 -109
- data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/representations.rb +137 -87
- data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/service.rb +244 -244
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +2 -10
- data/generated/google/apis/storage_v1/representations.rb +0 -1
- data/generated/google/apis/storage_v1/service.rb +3 -2
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +21 -0
- data/generated/google/apis/storagetransfer_v1/representations.rb +13 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +22 -20
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +4 -4
- data/generated/google/apis/sts_v1.rb +1 -1
- data/generated/google/apis/sts_v1/classes.rb +10 -9
- data/generated/google/apis/sts_v1beta.rb +1 -1
- data/generated/google/apis/sts_v1beta/classes.rb +67 -67
- data/generated/google/apis/sts_v1beta/service.rb +2 -2
- data/generated/google/apis/tagmanager_v2.rb +1 -1
- data/generated/google/apis/tasks_v1.rb +1 -1
- data/generated/google/apis/tasks_v1/classes.rb +1 -1
- data/generated/google/apis/tasks_v1/service.rb +4 -3
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +49 -2
- data/generated/google/apis/testing_v1/representations.rb +20 -0
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +3 -3
- data/generated/google/apis/tpu_v1/service.rb +8 -8
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +3 -3
- data/generated/google/apis/tpu_v1alpha1/service.rb +8 -8
- data/generated/google/apis/translate_v3.rb +1 -1
- data/generated/google/apis/translate_v3/classes.rb +2 -2
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +333 -0
- data/generated/google/apis/vault_v1/representations.rb +162 -0
- data/generated/google/apis/vault_v1/service.rb +151 -0
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +751 -28
- data/generated/google/apis/videointelligence_v1/representations.rb +402 -2
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +751 -28
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +402 -2
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +749 -26
- data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +402 -2
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +734 -11
- data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +402 -2
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +667 -28
- data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +368 -2
- data/generated/google/apis/websecurityscanner_v1.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
- data/generated/google/apis/workflowexecutions_v1beta.rb +2 -2
- data/generated/google/apis/workflowexecutions_v1beta/service.rb +1 -1
- data/generated/google/apis/workflows_v1beta.rb +3 -2
- data/generated/google/apis/workflows_v1beta/service.rb +2 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +12 -945
- data/generated/google/apis/youtube_v3/representations.rb +0 -445
- data/generated/google/apis/youtube_v3/service.rb +3 -198
- data/google-api-client.gemspec +1 -1
- data/lib/google/apis/core/api_command.rb +1 -0
- data/lib/google/apis/version.rb +1 -1
- data/synth.py +40 -0
- metadata +41 -19
- data/generated/google/apis/apigateway_v1alpha1/classes.rb +0 -633
- data/generated/google/apis/apigateway_v1alpha1/representations.rb +0 -250
- data/generated/google/apis/apigateway_v1alpha1/service.rb +0 -623
- data/generated/google/apis/appsactivity_v1/classes.rb +0 -415
- data/generated/google/apis/appsactivity_v1/representations.rb +0 -209
- data/generated/google/apis/appsactivity_v1/service.rb +0 -126
- data/generated/google/apis/plus_v1/classes.rb +0 -2094
- data/generated/google/apis/plus_v1/representations.rb +0 -907
- data/generated/google/apis/plus_v1/service.rb +0 -451
|
@@ -124,6 +124,12 @@ module Google
|
|
|
124
124
|
include Google::Apis::Core::JsonObjectSupport
|
|
125
125
|
end
|
|
126
126
|
|
|
127
|
+
class ListViewsResponse
|
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
129
|
+
|
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
131
|
+
end
|
|
132
|
+
|
|
127
133
|
class LogBucket
|
|
128
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
129
135
|
|
|
@@ -172,6 +178,12 @@ module Google
|
|
|
172
178
|
include Google::Apis::Core::JsonObjectSupport
|
|
173
179
|
end
|
|
174
180
|
|
|
181
|
+
class LogView
|
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
183
|
+
|
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
185
|
+
end
|
|
186
|
+
|
|
175
187
|
class MetricDescriptor
|
|
176
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
177
189
|
|
|
@@ -402,6 +414,15 @@ module Google
|
|
|
402
414
|
end
|
|
403
415
|
end
|
|
404
416
|
|
|
417
|
+
class ListViewsResponse
|
|
418
|
+
# @private
|
|
419
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
420
|
+
property :next_page_token, as: 'nextPageToken'
|
|
421
|
+
collection :views, as: 'views', class: Google::Apis::LoggingV2::LogView, decorator: Google::Apis::LoggingV2::LogView::Representation
|
|
422
|
+
|
|
423
|
+
end
|
|
424
|
+
end
|
|
425
|
+
|
|
405
426
|
class LogBucket
|
|
406
427
|
# @private
|
|
407
428
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -523,6 +544,17 @@ module Google
|
|
|
523
544
|
end
|
|
524
545
|
end
|
|
525
546
|
|
|
547
|
+
class LogView
|
|
548
|
+
# @private
|
|
549
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
550
|
+
property :create_time, as: 'createTime'
|
|
551
|
+
property :description, as: 'description'
|
|
552
|
+
property :filter, as: 'filter'
|
|
553
|
+
property :name, as: 'name'
|
|
554
|
+
property :update_time, as: 'updateTime'
|
|
555
|
+
end
|
|
556
|
+
end
|
|
557
|
+
|
|
526
558
|
class MetricDescriptor
|
|
527
559
|
# @private
|
|
528
560
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -85,6 +85,38 @@ module Google
|
|
|
85
85
|
execute_or_queue_command(command, &block)
|
|
86
86
|
end
|
|
87
87
|
|
|
88
|
+
# Gets a view.
|
|
89
|
+
# @param [String] name
|
|
90
|
+
# Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[
|
|
91
|
+
# LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "projects/my-
|
|
92
|
+
# project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id".
|
|
93
|
+
# @param [String] fields
|
|
94
|
+
# Selector specifying which fields to include in a partial response.
|
|
95
|
+
# @param [String] quota_user
|
|
96
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
97
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
98
|
+
# @param [Google::Apis::RequestOptions] options
|
|
99
|
+
# Request-specific options
|
|
100
|
+
#
|
|
101
|
+
# @yield [result, err] Result & error if block supplied
|
|
102
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
|
|
103
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
104
|
+
#
|
|
105
|
+
# @return [Google::Apis::LoggingV2::LogView]
|
|
106
|
+
#
|
|
107
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
108
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
109
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
110
|
+
def get_billing_account_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
111
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
112
|
+
command.response_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
113
|
+
command.response_class = Google::Apis::LoggingV2::LogView
|
|
114
|
+
command.params['name'] = name unless name.nil?
|
|
115
|
+
command.query['fields'] = fields unless fields.nil?
|
|
116
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
117
|
+
execute_or_queue_command(command, &block)
|
|
118
|
+
end
|
|
119
|
+
|
|
88
120
|
# Creates a new exclusion in a specified parent resource. Only log entries
|
|
89
121
|
# belonging to that resource can be excluded. You can have up to 10 exclusions
|
|
90
122
|
# in a resource.
|
|
@@ -493,6 +525,164 @@ module Google
|
|
|
493
525
|
execute_or_queue_command(command, &block)
|
|
494
526
|
end
|
|
495
527
|
|
|
528
|
+
# Creates a view over logs in a bucket. A bucket may contain a maximum of 50
|
|
529
|
+
# views.
|
|
530
|
+
# @param [String] parent
|
|
531
|
+
# Required. The bucket in which to create the view "projects/[PROJECT_ID]/
|
|
532
|
+
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-logging-
|
|
533
|
+
# project/locations/my-location/buckets/my-bucket"
|
|
534
|
+
# @param [Google::Apis::LoggingV2::LogView] log_view_object
|
|
535
|
+
# @param [String] view_id
|
|
536
|
+
# Required. The id to use for this view.
|
|
537
|
+
# @param [String] fields
|
|
538
|
+
# Selector specifying which fields to include in a partial response.
|
|
539
|
+
# @param [String] quota_user
|
|
540
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
541
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
542
|
+
# @param [Google::Apis::RequestOptions] options
|
|
543
|
+
# Request-specific options
|
|
544
|
+
#
|
|
545
|
+
# @yield [result, err] Result & error if block supplied
|
|
546
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
|
|
547
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
548
|
+
#
|
|
549
|
+
# @return [Google::Apis::LoggingV2::LogView]
|
|
550
|
+
#
|
|
551
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
552
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
553
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
554
|
+
def create_billing_account_location_bucket_view(parent, log_view_object = nil, view_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
555
|
+
command = make_simple_command(:post, 'v2/{+parent}/views', options)
|
|
556
|
+
command.request_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
557
|
+
command.request_object = log_view_object
|
|
558
|
+
command.response_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
559
|
+
command.response_class = Google::Apis::LoggingV2::LogView
|
|
560
|
+
command.params['parent'] = parent unless parent.nil?
|
|
561
|
+
command.query['viewId'] = view_id unless view_id.nil?
|
|
562
|
+
command.query['fields'] = fields unless fields.nil?
|
|
563
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
564
|
+
execute_or_queue_command(command, &block)
|
|
565
|
+
end
|
|
566
|
+
|
|
567
|
+
# Deletes a view from a bucket.
|
|
568
|
+
# @param [String] name
|
|
569
|
+
# Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/
|
|
570
|
+
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
|
|
571
|
+
# projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
|
|
572
|
+
# view-id".
|
|
573
|
+
# @param [String] fields
|
|
574
|
+
# Selector specifying which fields to include in a partial response.
|
|
575
|
+
# @param [String] quota_user
|
|
576
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
577
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
578
|
+
# @param [Google::Apis::RequestOptions] options
|
|
579
|
+
# Request-specific options
|
|
580
|
+
#
|
|
581
|
+
# @yield [result, err] Result & error if block supplied
|
|
582
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
|
583
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
584
|
+
#
|
|
585
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
|
586
|
+
#
|
|
587
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
588
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
589
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
590
|
+
def delete_billing_account_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
591
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
592
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
593
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
|
594
|
+
command.params['name'] = name unless name.nil?
|
|
595
|
+
command.query['fields'] = fields unless fields.nil?
|
|
596
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
597
|
+
execute_or_queue_command(command, &block)
|
|
598
|
+
end
|
|
599
|
+
|
|
600
|
+
# Lists views on a bucket..
|
|
601
|
+
# @param [String] parent
|
|
602
|
+
# Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/
|
|
603
|
+
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
|
604
|
+
# @param [Fixnum] page_size
|
|
605
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
606
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
607
|
+
# indicates that more results might be available.
|
|
608
|
+
# @param [String] page_token
|
|
609
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
610
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
611
|
+
# from the previous response. The values of other method parameters should be
|
|
612
|
+
# identical to those in the previous call.
|
|
613
|
+
# @param [String] fields
|
|
614
|
+
# Selector specifying which fields to include in a partial response.
|
|
615
|
+
# @param [String] quota_user
|
|
616
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
617
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
618
|
+
# @param [Google::Apis::RequestOptions] options
|
|
619
|
+
# Request-specific options
|
|
620
|
+
#
|
|
621
|
+
# @yield [result, err] Result & error if block supplied
|
|
622
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListViewsResponse] parsed result object
|
|
623
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
624
|
+
#
|
|
625
|
+
# @return [Google::Apis::LoggingV2::ListViewsResponse]
|
|
626
|
+
#
|
|
627
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
628
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
629
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
630
|
+
def list_billing_account_location_bucket_views(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
631
|
+
command = make_simple_command(:get, 'v2/{+parent}/views', options)
|
|
632
|
+
command.response_representation = Google::Apis::LoggingV2::ListViewsResponse::Representation
|
|
633
|
+
command.response_class = Google::Apis::LoggingV2::ListViewsResponse
|
|
634
|
+
command.params['parent'] = parent unless parent.nil?
|
|
635
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
636
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
637
|
+
command.query['fields'] = fields unless fields.nil?
|
|
638
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
639
|
+
execute_or_queue_command(command, &block)
|
|
640
|
+
end
|
|
641
|
+
|
|
642
|
+
# Updates a view. This method replaces the following fields in the existing view
|
|
643
|
+
# with values from the new view: filter.
|
|
644
|
+
# @param [String] name
|
|
645
|
+
# Required. The full resource name of the view to update "projects/[PROJECT_ID]/
|
|
646
|
+
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
|
|
647
|
+
# projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
|
|
648
|
+
# view-id".
|
|
649
|
+
# @param [Google::Apis::LoggingV2::LogView] log_view_object
|
|
650
|
+
# @param [String] update_mask
|
|
651
|
+
# Optional. Field mask that specifies the fields in view that need an update. A
|
|
652
|
+
# field will be overwritten if, and only if, it is in the update mask. name and
|
|
653
|
+
# output only fields cannot be updated.For a detailed FieldMask definition, see
|
|
654
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
|
|
655
|
+
# google.protobuf.FieldMaskExample: updateMask=filter.
|
|
656
|
+
# @param [String] fields
|
|
657
|
+
# Selector specifying which fields to include in a partial response.
|
|
658
|
+
# @param [String] quota_user
|
|
659
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
660
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
661
|
+
# @param [Google::Apis::RequestOptions] options
|
|
662
|
+
# Request-specific options
|
|
663
|
+
#
|
|
664
|
+
# @yield [result, err] Result & error if block supplied
|
|
665
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
|
|
666
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
667
|
+
#
|
|
668
|
+
# @return [Google::Apis::LoggingV2::LogView]
|
|
669
|
+
#
|
|
670
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
671
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
672
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
673
|
+
def patch_billing_account_location_bucket_view(name, log_view_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
674
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
675
|
+
command.request_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
676
|
+
command.request_object = log_view_object
|
|
677
|
+
command.response_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
678
|
+
command.response_class = Google::Apis::LoggingV2::LogView
|
|
679
|
+
command.params['name'] = name unless name.nil?
|
|
680
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
681
|
+
command.query['fields'] = fields unless fields.nil?
|
|
682
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
683
|
+
execute_or_queue_command(command, &block)
|
|
684
|
+
end
|
|
685
|
+
|
|
496
686
|
# Deletes all the log entries in a log. The log reappears if it receives new
|
|
497
687
|
# entries. Log entries written shortly before the delete operation might not be
|
|
498
688
|
# deleted. Entries received after the delete operation with a timestamp before
|
|
@@ -1557,17 +1747,15 @@ module Google
|
|
|
1557
1747
|
execute_or_queue_command(command, &block)
|
|
1558
1748
|
end
|
|
1559
1749
|
|
|
1560
|
-
#
|
|
1561
|
-
#
|
|
1562
|
-
#
|
|
1563
|
-
#
|
|
1564
|
-
#
|
|
1565
|
-
#
|
|
1566
|
-
#
|
|
1567
|
-
#
|
|
1568
|
-
#
|
|
1569
|
-
# organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity".
|
|
1570
|
-
# For more information about log names, see LogEntry.
|
|
1750
|
+
# Creates a view over logs in a bucket. A bucket may contain a maximum of 50
|
|
1751
|
+
# views.
|
|
1752
|
+
# @param [String] parent
|
|
1753
|
+
# Required. The bucket in which to create the view "projects/[PROJECT_ID]/
|
|
1754
|
+
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-logging-
|
|
1755
|
+
# project/locations/my-location/buckets/my-bucket"
|
|
1756
|
+
# @param [Google::Apis::LoggingV2::LogView] log_view_object
|
|
1757
|
+
# @param [String] view_id
|
|
1758
|
+
# Required. The id to use for this view.
|
|
1571
1759
|
# @param [String] fields
|
|
1572
1760
|
# Selector specifying which fields to include in a partial response.
|
|
1573
1761
|
# @param [String] quota_user
|
|
@@ -1577,39 +1765,33 @@ module Google
|
|
|
1577
1765
|
# Request-specific options
|
|
1578
1766
|
#
|
|
1579
1767
|
# @yield [result, err] Result & error if block supplied
|
|
1580
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
1768
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
|
|
1581
1769
|
# @yieldparam err [StandardError] error object if request failed
|
|
1582
1770
|
#
|
|
1583
|
-
# @return [Google::Apis::LoggingV2::
|
|
1771
|
+
# @return [Google::Apis::LoggingV2::LogView]
|
|
1584
1772
|
#
|
|
1585
1773
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1586
1774
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1587
1775
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1588
|
-
def
|
|
1589
|
-
command = make_simple_command(:
|
|
1590
|
-
command.
|
|
1591
|
-
command.
|
|
1592
|
-
command.
|
|
1776
|
+
def create_folder_location_bucket_view(parent, log_view_object = nil, view_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1777
|
+
command = make_simple_command(:post, 'v2/{+parent}/views', options)
|
|
1778
|
+
command.request_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
1779
|
+
command.request_object = log_view_object
|
|
1780
|
+
command.response_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
1781
|
+
command.response_class = Google::Apis::LoggingV2::LogView
|
|
1782
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1783
|
+
command.query['viewId'] = view_id unless view_id.nil?
|
|
1593
1784
|
command.query['fields'] = fields unless fields.nil?
|
|
1594
1785
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1595
1786
|
execute_or_queue_command(command, &block)
|
|
1596
1787
|
end
|
|
1597
1788
|
|
|
1598
|
-
#
|
|
1599
|
-
#
|
|
1600
|
-
#
|
|
1601
|
-
#
|
|
1602
|
-
#
|
|
1603
|
-
#
|
|
1604
|
-
# @param [Fixnum] page_size
|
|
1605
|
-
# Optional. The maximum number of results to return from this request. Non-
|
|
1606
|
-
# positive values are ignored. The presence of nextPageToken in the response
|
|
1607
|
-
# indicates that more results might be available.
|
|
1608
|
-
# @param [String] page_token
|
|
1609
|
-
# Optional. If present, then retrieve the next batch of results from the
|
|
1610
|
-
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
1611
|
-
# from the previous response. The values of other method parameters should be
|
|
1612
|
-
# identical to those in the previous call.
|
|
1789
|
+
# Deletes a view from a bucket.
|
|
1790
|
+
# @param [String] name
|
|
1791
|
+
# Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/
|
|
1792
|
+
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
|
|
1793
|
+
# projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
|
|
1794
|
+
# view-id".
|
|
1613
1795
|
# @param [String] fields
|
|
1614
1796
|
# Selector specifying which fields to include in a partial response.
|
|
1615
1797
|
# @param [String] quota_user
|
|
@@ -1619,46 +1801,29 @@ module Google
|
|
|
1619
1801
|
# Request-specific options
|
|
1620
1802
|
#
|
|
1621
1803
|
# @yield [result, err] Result & error if block supplied
|
|
1622
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
1804
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
|
1623
1805
|
# @yieldparam err [StandardError] error object if request failed
|
|
1624
1806
|
#
|
|
1625
|
-
# @return [Google::Apis::LoggingV2::
|
|
1807
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
|
1626
1808
|
#
|
|
1627
1809
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1628
1810
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1629
1811
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1630
|
-
def
|
|
1631
|
-
command = make_simple_command(:
|
|
1632
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
1633
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
1634
|
-
command.params['
|
|
1635
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1636
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1812
|
+
def delete_folder_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1813
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
1814
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
1815
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
|
1816
|
+
command.params['name'] = name unless name.nil?
|
|
1637
1817
|
command.query['fields'] = fields unless fields.nil?
|
|
1638
1818
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1639
1819
|
execute_or_queue_command(command, &block)
|
|
1640
1820
|
end
|
|
1641
1821
|
|
|
1642
|
-
#
|
|
1643
|
-
#
|
|
1644
|
-
#
|
|
1645
|
-
#
|
|
1646
|
-
#
|
|
1647
|
-
# Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "
|
|
1648
|
-
# organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
|
|
1649
|
-
# folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/
|
|
1650
|
-
# 123456789".
|
|
1651
|
-
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
|
1652
|
-
# @param [Boolean] unique_writer_identity
|
|
1653
|
-
# Optional. Determines the kind of IAM identity returned as writer_identity in
|
|
1654
|
-
# the new sink. If this value is omitted or set to false, and if the sink's
|
|
1655
|
-
# parent is a project, then the value returned as writer_identity is the same
|
|
1656
|
-
# group or service account used by Logging before the addition of writer
|
|
1657
|
-
# identities to this API. The sink's destination must be in the same project as
|
|
1658
|
-
# the sink itself.If this field is set to true, or if the sink is owned by a non-
|
|
1659
|
-
# project resource such as an organization, then the value of writer_identity
|
|
1660
|
-
# will be a unique service account used only for exports from the new sink. For
|
|
1661
|
-
# more information, see writer_identity in LogSink.
|
|
1822
|
+
# Gets a view.
|
|
1823
|
+
# @param [String] name
|
|
1824
|
+
# Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[
|
|
1825
|
+
# LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "projects/my-
|
|
1826
|
+
# project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id".
|
|
1662
1827
|
# @param [String] fields
|
|
1663
1828
|
# Selector specifying which fields to include in a partial response.
|
|
1664
1829
|
# @param [String] quota_user
|
|
@@ -1668,35 +1833,37 @@ module Google
|
|
|
1668
1833
|
# Request-specific options
|
|
1669
1834
|
#
|
|
1670
1835
|
# @yield [result, err] Result & error if block supplied
|
|
1671
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
1836
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
|
|
1672
1837
|
# @yieldparam err [StandardError] error object if request failed
|
|
1673
1838
|
#
|
|
1674
|
-
# @return [Google::Apis::LoggingV2::
|
|
1839
|
+
# @return [Google::Apis::LoggingV2::LogView]
|
|
1675
1840
|
#
|
|
1676
1841
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1677
1842
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1678
1843
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1679
|
-
def
|
|
1680
|
-
command = make_simple_command(:
|
|
1681
|
-
command.
|
|
1682
|
-
command.
|
|
1683
|
-
command.
|
|
1684
|
-
command.response_class = Google::Apis::LoggingV2::LogSink
|
|
1685
|
-
command.params['parent'] = parent unless parent.nil?
|
|
1686
|
-
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
|
1844
|
+
def get_folder_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1845
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
1846
|
+
command.response_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
1847
|
+
command.response_class = Google::Apis::LoggingV2::LogView
|
|
1848
|
+
command.params['name'] = name unless name.nil?
|
|
1687
1849
|
command.query['fields'] = fields unless fields.nil?
|
|
1688
1850
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1689
1851
|
execute_or_queue_command(command, &block)
|
|
1690
1852
|
end
|
|
1691
1853
|
|
|
1692
|
-
#
|
|
1693
|
-
#
|
|
1694
|
-
#
|
|
1695
|
-
#
|
|
1696
|
-
#
|
|
1697
|
-
#
|
|
1698
|
-
#
|
|
1699
|
-
#
|
|
1854
|
+
# Lists views on a bucket..
|
|
1855
|
+
# @param [String] parent
|
|
1856
|
+
# Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/
|
|
1857
|
+
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
|
1858
|
+
# @param [Fixnum] page_size
|
|
1859
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
1860
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
1861
|
+
# indicates that more results might be available.
|
|
1862
|
+
# @param [String] page_token
|
|
1863
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
1864
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
1865
|
+
# from the previous response. The values of other method parameters should be
|
|
1866
|
+
# identical to those in the previous call.
|
|
1700
1867
|
# @param [String] fields
|
|
1701
1868
|
# Selector specifying which fields to include in a partial response.
|
|
1702
1869
|
# @param [String] quota_user
|
|
@@ -1706,30 +1873,40 @@ module Google
|
|
|
1706
1873
|
# Request-specific options
|
|
1707
1874
|
#
|
|
1708
1875
|
# @yield [result, err] Result & error if block supplied
|
|
1709
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
1876
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListViewsResponse] parsed result object
|
|
1710
1877
|
# @yieldparam err [StandardError] error object if request failed
|
|
1711
1878
|
#
|
|
1712
|
-
# @return [Google::Apis::LoggingV2::
|
|
1879
|
+
# @return [Google::Apis::LoggingV2::ListViewsResponse]
|
|
1713
1880
|
#
|
|
1714
1881
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1715
1882
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1716
1883
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1717
|
-
def
|
|
1718
|
-
command = make_simple_command(:
|
|
1719
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
1720
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
1721
|
-
command.params['
|
|
1884
|
+
def list_folder_location_bucket_views(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1885
|
+
command = make_simple_command(:get, 'v2/{+parent}/views', options)
|
|
1886
|
+
command.response_representation = Google::Apis::LoggingV2::ListViewsResponse::Representation
|
|
1887
|
+
command.response_class = Google::Apis::LoggingV2::ListViewsResponse
|
|
1888
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1889
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1890
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1722
1891
|
command.query['fields'] = fields unless fields.nil?
|
|
1723
1892
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1724
1893
|
execute_or_queue_command(command, &block)
|
|
1725
1894
|
end
|
|
1726
1895
|
|
|
1727
|
-
#
|
|
1728
|
-
#
|
|
1729
|
-
#
|
|
1730
|
-
#
|
|
1731
|
-
#
|
|
1732
|
-
#
|
|
1896
|
+
# Updates a view. This method replaces the following fields in the existing view
|
|
1897
|
+
# with values from the new view: filter.
|
|
1898
|
+
# @param [String] name
|
|
1899
|
+
# Required. The full resource name of the view to update "projects/[PROJECT_ID]/
|
|
1900
|
+
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
|
|
1901
|
+
# projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
|
|
1902
|
+
# view-id".
|
|
1903
|
+
# @param [Google::Apis::LoggingV2::LogView] log_view_object
|
|
1904
|
+
# @param [String] update_mask
|
|
1905
|
+
# Optional. Field mask that specifies the fields in view that need an update. A
|
|
1906
|
+
# field will be overwritten if, and only if, it is in the update mask. name and
|
|
1907
|
+
# output only fields cannot be updated.For a detailed FieldMask definition, see
|
|
1908
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
|
|
1909
|
+
# google.protobuf.FieldMaskExample: updateMask=filter.
|
|
1733
1910
|
# @param [String] fields
|
|
1734
1911
|
# Selector specifying which fields to include in a partial response.
|
|
1735
1912
|
# @param [String] quota_user
|
|
@@ -1739,18 +1916,221 @@ module Google
|
|
|
1739
1916
|
# Request-specific options
|
|
1740
1917
|
#
|
|
1741
1918
|
# @yield [result, err] Result & error if block supplied
|
|
1742
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
1919
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
|
|
1743
1920
|
# @yieldparam err [StandardError] error object if request failed
|
|
1744
1921
|
#
|
|
1745
|
-
# @return [Google::Apis::LoggingV2::
|
|
1922
|
+
# @return [Google::Apis::LoggingV2::LogView]
|
|
1746
1923
|
#
|
|
1747
1924
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1748
1925
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1749
1926
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1750
|
-
def
|
|
1751
|
-
command = make_simple_command(:
|
|
1752
|
-
command.
|
|
1753
|
-
command.
|
|
1927
|
+
def patch_folder_location_bucket_view(name, log_view_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1928
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
1929
|
+
command.request_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
1930
|
+
command.request_object = log_view_object
|
|
1931
|
+
command.response_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
1932
|
+
command.response_class = Google::Apis::LoggingV2::LogView
|
|
1933
|
+
command.params['name'] = name unless name.nil?
|
|
1934
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
1935
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1936
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1937
|
+
execute_or_queue_command(command, &block)
|
|
1938
|
+
end
|
|
1939
|
+
|
|
1940
|
+
# Deletes all the log entries in a log. The log reappears if it receives new
|
|
1941
|
+
# entries. Log entries written shortly before the delete operation might not be
|
|
1942
|
+
# deleted. Entries received after the delete operation with a timestamp before
|
|
1943
|
+
# the operation will be deleted.
|
|
1944
|
+
# @param [String] log_name
|
|
1945
|
+
# Required. The resource name of the log to delete: "projects/[PROJECT_ID]/logs/[
|
|
1946
|
+
# LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[
|
|
1947
|
+
# BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID]
|
|
1948
|
+
# must be URL-encoded. For example, "projects/my-project-id/logs/syslog", "
|
|
1949
|
+
# organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity".
|
|
1950
|
+
# For more information about log names, see LogEntry.
|
|
1951
|
+
# @param [String] fields
|
|
1952
|
+
# Selector specifying which fields to include in a partial response.
|
|
1953
|
+
# @param [String] quota_user
|
|
1954
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1955
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1956
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1957
|
+
# Request-specific options
|
|
1958
|
+
#
|
|
1959
|
+
# @yield [result, err] Result & error if block supplied
|
|
1960
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
|
1961
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1962
|
+
#
|
|
1963
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
|
1964
|
+
#
|
|
1965
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1966
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1967
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1968
|
+
def delete_folder_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1969
|
+
command = make_simple_command(:delete, 'v2/{+logName}', options)
|
|
1970
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
1971
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
|
1972
|
+
command.params['logName'] = log_name unless log_name.nil?
|
|
1973
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1974
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1975
|
+
execute_or_queue_command(command, &block)
|
|
1976
|
+
end
|
|
1977
|
+
|
|
1978
|
+
# Lists the logs in projects, organizations, folders, or billing accounts. Only
|
|
1979
|
+
# logs that have entries are listed.
|
|
1980
|
+
# @param [String] parent
|
|
1981
|
+
# Required. The resource name that owns the logs: "projects/[PROJECT_ID]" "
|
|
1982
|
+
# organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
|
|
1983
|
+
# folders/[FOLDER_ID]"
|
|
1984
|
+
# @param [Fixnum] page_size
|
|
1985
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
1986
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
1987
|
+
# indicates that more results might be available.
|
|
1988
|
+
# @param [String] page_token
|
|
1989
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
1990
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
1991
|
+
# from the previous response. The values of other method parameters should be
|
|
1992
|
+
# identical to those in the previous call.
|
|
1993
|
+
# @param [String] fields
|
|
1994
|
+
# Selector specifying which fields to include in a partial response.
|
|
1995
|
+
# @param [String] quota_user
|
|
1996
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1997
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1998
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1999
|
+
# Request-specific options
|
|
2000
|
+
#
|
|
2001
|
+
# @yield [result, err] Result & error if block supplied
|
|
2002
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListLogsResponse] parsed result object
|
|
2003
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2004
|
+
#
|
|
2005
|
+
# @return [Google::Apis::LoggingV2::ListLogsResponse]
|
|
2006
|
+
#
|
|
2007
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2008
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2009
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2010
|
+
def list_folder_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2011
|
+
command = make_simple_command(:get, 'v2/{+parent}/logs', options)
|
|
2012
|
+
command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
|
|
2013
|
+
command.response_class = Google::Apis::LoggingV2::ListLogsResponse
|
|
2014
|
+
command.params['parent'] = parent unless parent.nil?
|
|
2015
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
2016
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
2017
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2018
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2019
|
+
execute_or_queue_command(command, &block)
|
|
2020
|
+
end
|
|
2021
|
+
|
|
2022
|
+
# Creates a sink that exports specified log entries to a destination. The export
|
|
2023
|
+
# of newly-ingested log entries begins immediately, unless the sink's
|
|
2024
|
+
# writer_identity is not permitted to write to the destination. A sink can
|
|
2025
|
+
# export log entries only from the resource owning the sink.
|
|
2026
|
+
# @param [String] parent
|
|
2027
|
+
# Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "
|
|
2028
|
+
# organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
|
|
2029
|
+
# folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/
|
|
2030
|
+
# 123456789".
|
|
2031
|
+
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
|
2032
|
+
# @param [Boolean] unique_writer_identity
|
|
2033
|
+
# Optional. Determines the kind of IAM identity returned as writer_identity in
|
|
2034
|
+
# the new sink. If this value is omitted or set to false, and if the sink's
|
|
2035
|
+
# parent is a project, then the value returned as writer_identity is the same
|
|
2036
|
+
# group or service account used by Logging before the addition of writer
|
|
2037
|
+
# identities to this API. The sink's destination must be in the same project as
|
|
2038
|
+
# the sink itself.If this field is set to true, or if the sink is owned by a non-
|
|
2039
|
+
# project resource such as an organization, then the value of writer_identity
|
|
2040
|
+
# will be a unique service account used only for exports from the new sink. For
|
|
2041
|
+
# more information, see writer_identity in LogSink.
|
|
2042
|
+
# @param [String] fields
|
|
2043
|
+
# Selector specifying which fields to include in a partial response.
|
|
2044
|
+
# @param [String] quota_user
|
|
2045
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2046
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2047
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2048
|
+
# Request-specific options
|
|
2049
|
+
#
|
|
2050
|
+
# @yield [result, err] Result & error if block supplied
|
|
2051
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
|
|
2052
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2053
|
+
#
|
|
2054
|
+
# @return [Google::Apis::LoggingV2::LogSink]
|
|
2055
|
+
#
|
|
2056
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2057
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2058
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2059
|
+
def create_folder_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2060
|
+
command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
|
|
2061
|
+
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
2062
|
+
command.request_object = log_sink_object
|
|
2063
|
+
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
2064
|
+
command.response_class = Google::Apis::LoggingV2::LogSink
|
|
2065
|
+
command.params['parent'] = parent unless parent.nil?
|
|
2066
|
+
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
|
2067
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2068
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2069
|
+
execute_or_queue_command(command, &block)
|
|
2070
|
+
end
|
|
2071
|
+
|
|
2072
|
+
# Deletes a sink. If the sink has a unique writer_identity, then that service
|
|
2073
|
+
# account is also deleted.
|
|
2074
|
+
# @param [String] sink_name
|
|
2075
|
+
# Required. The full resource name of the sink to delete, including the parent
|
|
2076
|
+
# resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
|
|
2077
|
+
# organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
|
|
2078
|
+
# BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
2079
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
2080
|
+
# @param [String] fields
|
|
2081
|
+
# Selector specifying which fields to include in a partial response.
|
|
2082
|
+
# @param [String] quota_user
|
|
2083
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2084
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2085
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2086
|
+
# Request-specific options
|
|
2087
|
+
#
|
|
2088
|
+
# @yield [result, err] Result & error if block supplied
|
|
2089
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
|
2090
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2091
|
+
#
|
|
2092
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
|
2093
|
+
#
|
|
2094
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2095
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2096
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2097
|
+
def delete_folder_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
2098
|
+
command = make_simple_command(:delete, 'v2/{+sinkName}', options)
|
|
2099
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
2100
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
|
2101
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
|
2102
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2103
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2104
|
+
execute_or_queue_command(command, &block)
|
|
2105
|
+
end
|
|
2106
|
+
|
|
2107
|
+
# Gets a sink.
|
|
2108
|
+
# @param [String] sink_name
|
|
2109
|
+
# Required. The resource name of the sink: "projects/[PROJECT_ID]/sinks/[SINK_ID]
|
|
2110
|
+
# " "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
|
|
2111
|
+
# BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
2112
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
2113
|
+
# @param [String] fields
|
|
2114
|
+
# Selector specifying which fields to include in a partial response.
|
|
2115
|
+
# @param [String] quota_user
|
|
2116
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2117
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2118
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2119
|
+
# Request-specific options
|
|
2120
|
+
#
|
|
2121
|
+
# @yield [result, err] Result & error if block supplied
|
|
2122
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
|
|
2123
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2124
|
+
#
|
|
2125
|
+
# @return [Google::Apis::LoggingV2::LogSink]
|
|
2126
|
+
#
|
|
2127
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2128
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2129
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2130
|
+
def get_folder_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
2131
|
+
command = make_simple_command(:get, 'v2/{+sinkName}', options)
|
|
2132
|
+
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
2133
|
+
command.response_class = Google::Apis::LoggingV2::LogSink
|
|
1754
2134
|
command.params['sinkName'] = sink_name unless sink_name.nil?
|
|
1755
2135
|
command.query['fields'] = fields unless fields.nil?
|
|
1756
2136
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -2167,17 +2547,15 @@ module Google
|
|
|
2167
2547
|
execute_or_queue_command(command, &block)
|
|
2168
2548
|
end
|
|
2169
2549
|
|
|
2170
|
-
#
|
|
2171
|
-
#
|
|
2172
|
-
#
|
|
2173
|
-
#
|
|
2174
|
-
#
|
|
2175
|
-
#
|
|
2176
|
-
#
|
|
2177
|
-
#
|
|
2178
|
-
#
|
|
2179
|
-
# organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity".
|
|
2180
|
-
# For more information about log names, see LogEntry.
|
|
2550
|
+
# Creates a view over logs in a bucket. A bucket may contain a maximum of 50
|
|
2551
|
+
# views.
|
|
2552
|
+
# @param [String] parent
|
|
2553
|
+
# Required. The bucket in which to create the view "projects/[PROJECT_ID]/
|
|
2554
|
+
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-logging-
|
|
2555
|
+
# project/locations/my-location/buckets/my-bucket"
|
|
2556
|
+
# @param [Google::Apis::LoggingV2::LogView] log_view_object
|
|
2557
|
+
# @param [String] view_id
|
|
2558
|
+
# Required. The id to use for this view.
|
|
2181
2559
|
# @param [String] fields
|
|
2182
2560
|
# Selector specifying which fields to include in a partial response.
|
|
2183
2561
|
# @param [String] quota_user
|
|
@@ -2187,39 +2565,33 @@ module Google
|
|
|
2187
2565
|
# Request-specific options
|
|
2188
2566
|
#
|
|
2189
2567
|
# @yield [result, err] Result & error if block supplied
|
|
2190
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
2568
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
|
|
2191
2569
|
# @yieldparam err [StandardError] error object if request failed
|
|
2192
2570
|
#
|
|
2193
|
-
# @return [Google::Apis::LoggingV2::
|
|
2571
|
+
# @return [Google::Apis::LoggingV2::LogView]
|
|
2194
2572
|
#
|
|
2195
2573
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2196
2574
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2197
2575
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2198
|
-
def
|
|
2199
|
-
command = make_simple_command(:
|
|
2200
|
-
command.
|
|
2201
|
-
command.
|
|
2202
|
-
command.
|
|
2576
|
+
def create_location_bucket_view(parent, log_view_object = nil, view_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2577
|
+
command = make_simple_command(:post, 'v2/{+parent}/views', options)
|
|
2578
|
+
command.request_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
2579
|
+
command.request_object = log_view_object
|
|
2580
|
+
command.response_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
2581
|
+
command.response_class = Google::Apis::LoggingV2::LogView
|
|
2582
|
+
command.params['parent'] = parent unless parent.nil?
|
|
2583
|
+
command.query['viewId'] = view_id unless view_id.nil?
|
|
2203
2584
|
command.query['fields'] = fields unless fields.nil?
|
|
2204
2585
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2205
2586
|
execute_or_queue_command(command, &block)
|
|
2206
2587
|
end
|
|
2207
2588
|
|
|
2208
|
-
#
|
|
2209
|
-
#
|
|
2210
|
-
#
|
|
2211
|
-
#
|
|
2212
|
-
#
|
|
2213
|
-
#
|
|
2214
|
-
# @param [Fixnum] page_size
|
|
2215
|
-
# Optional. The maximum number of results to return from this request. Non-
|
|
2216
|
-
# positive values are ignored. The presence of nextPageToken in the response
|
|
2217
|
-
# indicates that more results might be available.
|
|
2218
|
-
# @param [String] page_token
|
|
2219
|
-
# Optional. If present, then retrieve the next batch of results from the
|
|
2220
|
-
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
2221
|
-
# from the previous response. The values of other method parameters should be
|
|
2222
|
-
# identical to those in the previous call.
|
|
2589
|
+
# Deletes a view from a bucket.
|
|
2590
|
+
# @param [String] name
|
|
2591
|
+
# Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/
|
|
2592
|
+
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
|
|
2593
|
+
# projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
|
|
2594
|
+
# view-id".
|
|
2223
2595
|
# @param [String] fields
|
|
2224
2596
|
# Selector specifying which fields to include in a partial response.
|
|
2225
2597
|
# @param [String] quota_user
|
|
@@ -2229,29 +2601,227 @@ module Google
|
|
|
2229
2601
|
# Request-specific options
|
|
2230
2602
|
#
|
|
2231
2603
|
# @yield [result, err] Result & error if block supplied
|
|
2232
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
2604
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
|
2233
2605
|
# @yieldparam err [StandardError] error object if request failed
|
|
2234
2606
|
#
|
|
2235
|
-
# @return [Google::Apis::LoggingV2::
|
|
2607
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
|
2236
2608
|
#
|
|
2237
2609
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2238
2610
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2239
2611
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2240
|
-
def
|
|
2241
|
-
command = make_simple_command(:
|
|
2242
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
2243
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
2244
|
-
command.params['
|
|
2245
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
2246
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
2612
|
+
def delete_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
2613
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
2614
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
2615
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
|
2616
|
+
command.params['name'] = name unless name.nil?
|
|
2247
2617
|
command.query['fields'] = fields unless fields.nil?
|
|
2248
2618
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2249
2619
|
execute_or_queue_command(command, &block)
|
|
2250
2620
|
end
|
|
2251
2621
|
|
|
2252
|
-
#
|
|
2253
|
-
# @param [
|
|
2254
|
-
#
|
|
2622
|
+
# Gets a view.
|
|
2623
|
+
# @param [String] name
|
|
2624
|
+
# Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[
|
|
2625
|
+
# LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "projects/my-
|
|
2626
|
+
# project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id".
|
|
2627
|
+
# @param [String] fields
|
|
2628
|
+
# Selector specifying which fields to include in a partial response.
|
|
2629
|
+
# @param [String] quota_user
|
|
2630
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2631
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2632
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2633
|
+
# Request-specific options
|
|
2634
|
+
#
|
|
2635
|
+
# @yield [result, err] Result & error if block supplied
|
|
2636
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
|
|
2637
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2638
|
+
#
|
|
2639
|
+
# @return [Google::Apis::LoggingV2::LogView]
|
|
2640
|
+
#
|
|
2641
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2642
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2643
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2644
|
+
def get_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
2645
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
2646
|
+
command.response_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
2647
|
+
command.response_class = Google::Apis::LoggingV2::LogView
|
|
2648
|
+
command.params['name'] = name unless name.nil?
|
|
2649
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2650
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2651
|
+
execute_or_queue_command(command, &block)
|
|
2652
|
+
end
|
|
2653
|
+
|
|
2654
|
+
# Lists views on a bucket..
|
|
2655
|
+
# @param [String] parent
|
|
2656
|
+
# Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/
|
|
2657
|
+
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
|
2658
|
+
# @param [Fixnum] page_size
|
|
2659
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
2660
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
2661
|
+
# indicates that more results might be available.
|
|
2662
|
+
# @param [String] page_token
|
|
2663
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
2664
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
2665
|
+
# from the previous response. The values of other method parameters should be
|
|
2666
|
+
# identical to those in the previous call.
|
|
2667
|
+
# @param [String] fields
|
|
2668
|
+
# Selector specifying which fields to include in a partial response.
|
|
2669
|
+
# @param [String] quota_user
|
|
2670
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2671
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2672
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2673
|
+
# Request-specific options
|
|
2674
|
+
#
|
|
2675
|
+
# @yield [result, err] Result & error if block supplied
|
|
2676
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListViewsResponse] parsed result object
|
|
2677
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2678
|
+
#
|
|
2679
|
+
# @return [Google::Apis::LoggingV2::ListViewsResponse]
|
|
2680
|
+
#
|
|
2681
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2682
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2683
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2684
|
+
def list_location_bucket_views(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2685
|
+
command = make_simple_command(:get, 'v2/{+parent}/views', options)
|
|
2686
|
+
command.response_representation = Google::Apis::LoggingV2::ListViewsResponse::Representation
|
|
2687
|
+
command.response_class = Google::Apis::LoggingV2::ListViewsResponse
|
|
2688
|
+
command.params['parent'] = parent unless parent.nil?
|
|
2689
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
2690
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
2691
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2692
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2693
|
+
execute_or_queue_command(command, &block)
|
|
2694
|
+
end
|
|
2695
|
+
|
|
2696
|
+
# Updates a view. This method replaces the following fields in the existing view
|
|
2697
|
+
# with values from the new view: filter.
|
|
2698
|
+
# @param [String] name
|
|
2699
|
+
# Required. The full resource name of the view to update "projects/[PROJECT_ID]/
|
|
2700
|
+
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
|
|
2701
|
+
# projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
|
|
2702
|
+
# view-id".
|
|
2703
|
+
# @param [Google::Apis::LoggingV2::LogView] log_view_object
|
|
2704
|
+
# @param [String] update_mask
|
|
2705
|
+
# Optional. Field mask that specifies the fields in view that need an update. A
|
|
2706
|
+
# field will be overwritten if, and only if, it is in the update mask. name and
|
|
2707
|
+
# output only fields cannot be updated.For a detailed FieldMask definition, see
|
|
2708
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
|
|
2709
|
+
# google.protobuf.FieldMaskExample: updateMask=filter.
|
|
2710
|
+
# @param [String] fields
|
|
2711
|
+
# Selector specifying which fields to include in a partial response.
|
|
2712
|
+
# @param [String] quota_user
|
|
2713
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2714
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2715
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2716
|
+
# Request-specific options
|
|
2717
|
+
#
|
|
2718
|
+
# @yield [result, err] Result & error if block supplied
|
|
2719
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
|
|
2720
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2721
|
+
#
|
|
2722
|
+
# @return [Google::Apis::LoggingV2::LogView]
|
|
2723
|
+
#
|
|
2724
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2725
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2726
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2727
|
+
def patch_location_bucket_view(name, log_view_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2728
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
2729
|
+
command.request_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
2730
|
+
command.request_object = log_view_object
|
|
2731
|
+
command.response_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
2732
|
+
command.response_class = Google::Apis::LoggingV2::LogView
|
|
2733
|
+
command.params['name'] = name unless name.nil?
|
|
2734
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
2735
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2736
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2737
|
+
execute_or_queue_command(command, &block)
|
|
2738
|
+
end
|
|
2739
|
+
|
|
2740
|
+
# Deletes all the log entries in a log. The log reappears if it receives new
|
|
2741
|
+
# entries. Log entries written shortly before the delete operation might not be
|
|
2742
|
+
# deleted. Entries received after the delete operation with a timestamp before
|
|
2743
|
+
# the operation will be deleted.
|
|
2744
|
+
# @param [String] log_name
|
|
2745
|
+
# Required. The resource name of the log to delete: "projects/[PROJECT_ID]/logs/[
|
|
2746
|
+
# LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[
|
|
2747
|
+
# BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID]
|
|
2748
|
+
# must be URL-encoded. For example, "projects/my-project-id/logs/syslog", "
|
|
2749
|
+
# organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity".
|
|
2750
|
+
# For more information about log names, see LogEntry.
|
|
2751
|
+
# @param [String] fields
|
|
2752
|
+
# Selector specifying which fields to include in a partial response.
|
|
2753
|
+
# @param [String] quota_user
|
|
2754
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2755
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2756
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2757
|
+
# Request-specific options
|
|
2758
|
+
#
|
|
2759
|
+
# @yield [result, err] Result & error if block supplied
|
|
2760
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
|
2761
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2762
|
+
#
|
|
2763
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
|
2764
|
+
#
|
|
2765
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2766
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2767
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2768
|
+
def delete_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
2769
|
+
command = make_simple_command(:delete, 'v2/{+logName}', options)
|
|
2770
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
2771
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
|
2772
|
+
command.params['logName'] = log_name unless log_name.nil?
|
|
2773
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2774
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2775
|
+
execute_or_queue_command(command, &block)
|
|
2776
|
+
end
|
|
2777
|
+
|
|
2778
|
+
# Lists the logs in projects, organizations, folders, or billing accounts. Only
|
|
2779
|
+
# logs that have entries are listed.
|
|
2780
|
+
# @param [String] parent
|
|
2781
|
+
# Required. The resource name that owns the logs: "projects/[PROJECT_ID]" "
|
|
2782
|
+
# organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
|
|
2783
|
+
# folders/[FOLDER_ID]"
|
|
2784
|
+
# @param [Fixnum] page_size
|
|
2785
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
2786
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
2787
|
+
# indicates that more results might be available.
|
|
2788
|
+
# @param [String] page_token
|
|
2789
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
2790
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
2791
|
+
# from the previous response. The values of other method parameters should be
|
|
2792
|
+
# identical to those in the previous call.
|
|
2793
|
+
# @param [String] fields
|
|
2794
|
+
# Selector specifying which fields to include in a partial response.
|
|
2795
|
+
# @param [String] quota_user
|
|
2796
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2797
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2798
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2799
|
+
# Request-specific options
|
|
2800
|
+
#
|
|
2801
|
+
# @yield [result, err] Result & error if block supplied
|
|
2802
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListLogsResponse] parsed result object
|
|
2803
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2804
|
+
#
|
|
2805
|
+
# @return [Google::Apis::LoggingV2::ListLogsResponse]
|
|
2806
|
+
#
|
|
2807
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2808
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2809
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2810
|
+
def list_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2811
|
+
command = make_simple_command(:get, 'v2/{+parent}/logs', options)
|
|
2812
|
+
command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
|
|
2813
|
+
command.response_class = Google::Apis::LoggingV2::ListLogsResponse
|
|
2814
|
+
command.params['parent'] = parent unless parent.nil?
|
|
2815
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
2816
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
2817
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2818
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2819
|
+
execute_or_queue_command(command, &block)
|
|
2820
|
+
end
|
|
2821
|
+
|
|
2822
|
+
# Lists the descriptors for monitored resource types used by Logging.
|
|
2823
|
+
# @param [Fixnum] page_size
|
|
2824
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
2255
2825
|
# positive values are ignored. The presence of nextPageToken in the response
|
|
2256
2826
|
# indicates that more results might be available.
|
|
2257
2827
|
# @param [String] page_token
|
|
@@ -2565,23 +3135,270 @@ module Google
|
|
|
2565
3135
|
command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
|
2566
3136
|
command.response_class = Google::Apis::LoggingV2::LogExclusion
|
|
2567
3137
|
command.params['name'] = name unless name.nil?
|
|
2568
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
3138
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
3139
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3140
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3141
|
+
execute_or_queue_command(command, &block)
|
|
3142
|
+
end
|
|
3143
|
+
|
|
3144
|
+
# Creates a bucket that can be used to store log entries. Once a bucket has been
|
|
3145
|
+
# created, the region cannot be changed.
|
|
3146
|
+
# @param [String] parent
|
|
3147
|
+
# Required. The resource in which to create the bucket: "projects/[PROJECT_ID]/
|
|
3148
|
+
# locations/[LOCATION_ID]" Example: "projects/my-logging-project/locations/
|
|
3149
|
+
# global"
|
|
3150
|
+
# @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
|
|
3151
|
+
# @param [String] bucket_id
|
|
3152
|
+
# Required. A client-assigned identifier such as "my-bucket". Identifiers are
|
|
3153
|
+
# limited to 100 characters and can include only letters, digits, underscores,
|
|
3154
|
+
# hyphens, and periods.
|
|
3155
|
+
# @param [String] fields
|
|
3156
|
+
# Selector specifying which fields to include in a partial response.
|
|
3157
|
+
# @param [String] quota_user
|
|
3158
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
3159
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
3160
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3161
|
+
# Request-specific options
|
|
3162
|
+
#
|
|
3163
|
+
# @yield [result, err] Result & error if block supplied
|
|
3164
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
|
|
3165
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3166
|
+
#
|
|
3167
|
+
# @return [Google::Apis::LoggingV2::LogBucket]
|
|
3168
|
+
#
|
|
3169
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3170
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3171
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3172
|
+
def create_organization_location_bucket(parent, log_bucket_object = nil, bucket_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
3173
|
+
command = make_simple_command(:post, 'v2/{+parent}/buckets', options)
|
|
3174
|
+
command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
|
3175
|
+
command.request_object = log_bucket_object
|
|
3176
|
+
command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
|
3177
|
+
command.response_class = Google::Apis::LoggingV2::LogBucket
|
|
3178
|
+
command.params['parent'] = parent unless parent.nil?
|
|
3179
|
+
command.query['bucketId'] = bucket_id unless bucket_id.nil?
|
|
3180
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3181
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3182
|
+
execute_or_queue_command(command, &block)
|
|
3183
|
+
end
|
|
3184
|
+
|
|
3185
|
+
# Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days,
|
|
3186
|
+
# the bucket will be purged and all logs in the bucket will be permanently
|
|
3187
|
+
# deleted.
|
|
3188
|
+
# @param [String] name
|
|
3189
|
+
# Required. The full resource name of the bucket to delete. "projects/[
|
|
3190
|
+
# PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
|
|
3191
|
+
# ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
|
|
3192
|
+
# [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
|
|
3193
|
+
# FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
|
|
3194
|
+
# project-id/locations/my-location/buckets/my-bucket-id".
|
|
3195
|
+
# @param [String] fields
|
|
3196
|
+
# Selector specifying which fields to include in a partial response.
|
|
3197
|
+
# @param [String] quota_user
|
|
3198
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
3199
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
3200
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3201
|
+
# Request-specific options
|
|
3202
|
+
#
|
|
3203
|
+
# @yield [result, err] Result & error if block supplied
|
|
3204
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
|
3205
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3206
|
+
#
|
|
3207
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
|
3208
|
+
#
|
|
3209
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3210
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3211
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3212
|
+
def delete_organization_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
3213
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
3214
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
3215
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
|
3216
|
+
command.params['name'] = name unless name.nil?
|
|
3217
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3218
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3219
|
+
execute_or_queue_command(command, &block)
|
|
3220
|
+
end
|
|
3221
|
+
|
|
3222
|
+
# Gets a bucket (Beta).
|
|
3223
|
+
# @param [String] name
|
|
3224
|
+
# Required. The resource name of the bucket: "projects/[PROJECT_ID]/locations/[
|
|
3225
|
+
# LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[
|
|
3226
|
+
# LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/
|
|
3227
|
+
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[
|
|
3228
|
+
# LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-project-id/locations/
|
|
3229
|
+
# my-location/buckets/my-bucket-id".
|
|
3230
|
+
# @param [String] fields
|
|
3231
|
+
# Selector specifying which fields to include in a partial response.
|
|
3232
|
+
# @param [String] quota_user
|
|
3233
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
3234
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
3235
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3236
|
+
# Request-specific options
|
|
3237
|
+
#
|
|
3238
|
+
# @yield [result, err] Result & error if block supplied
|
|
3239
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
|
|
3240
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3241
|
+
#
|
|
3242
|
+
# @return [Google::Apis::LoggingV2::LogBucket]
|
|
3243
|
+
#
|
|
3244
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3245
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3246
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3247
|
+
def get_organization_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
3248
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
3249
|
+
command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
|
3250
|
+
command.response_class = Google::Apis::LoggingV2::LogBucket
|
|
3251
|
+
command.params['name'] = name unless name.nil?
|
|
3252
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3253
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3254
|
+
execute_or_queue_command(command, &block)
|
|
3255
|
+
end
|
|
3256
|
+
|
|
3257
|
+
# Lists buckets (Beta).
|
|
3258
|
+
# @param [String] parent
|
|
3259
|
+
# Required. The parent resource whose buckets are to be listed: "projects/[
|
|
3260
|
+
# PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/
|
|
3261
|
+
# locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
|
|
3262
|
+
# LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" Note: The
|
|
3263
|
+
# locations portion of the resource must be specified, but supplying the
|
|
3264
|
+
# character - in place of LOCATION_ID will return all buckets.
|
|
3265
|
+
# @param [Fixnum] page_size
|
|
3266
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
3267
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
3268
|
+
# indicates that more results might be available.
|
|
3269
|
+
# @param [String] page_token
|
|
3270
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
3271
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
3272
|
+
# from the previous response. The values of other method parameters should be
|
|
3273
|
+
# identical to those in the previous call.
|
|
3274
|
+
# @param [String] fields
|
|
3275
|
+
# Selector specifying which fields to include in a partial response.
|
|
3276
|
+
# @param [String] quota_user
|
|
3277
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
3278
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
3279
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3280
|
+
# Request-specific options
|
|
3281
|
+
#
|
|
3282
|
+
# @yield [result, err] Result & error if block supplied
|
|
3283
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListBucketsResponse] parsed result object
|
|
3284
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3285
|
+
#
|
|
3286
|
+
# @return [Google::Apis::LoggingV2::ListBucketsResponse]
|
|
3287
|
+
#
|
|
3288
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3289
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3290
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3291
|
+
def list_organization_location_buckets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
3292
|
+
command = make_simple_command(:get, 'v2/{+parent}/buckets', options)
|
|
3293
|
+
command.response_representation = Google::Apis::LoggingV2::ListBucketsResponse::Representation
|
|
3294
|
+
command.response_class = Google::Apis::LoggingV2::ListBucketsResponse
|
|
3295
|
+
command.params['parent'] = parent unless parent.nil?
|
|
3296
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
3297
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
3298
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3299
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3300
|
+
execute_or_queue_command(command, &block)
|
|
3301
|
+
end
|
|
3302
|
+
|
|
3303
|
+
# Updates a bucket. This method replaces the following fields in the existing
|
|
3304
|
+
# bucket with values from the new bucket: retention_periodIf the retention
|
|
3305
|
+
# period is decreased and the bucket is locked, FAILED_PRECONDITION will be
|
|
3306
|
+
# returned.If the bucket has a LifecycleState of DELETE_REQUESTED,
|
|
3307
|
+
# FAILED_PRECONDITION will be returned.A buckets region may not be modified
|
|
3308
|
+
# after it is created. This method is in Beta.
|
|
3309
|
+
# @param [String] name
|
|
3310
|
+
# Required. The full resource name of the bucket to update. "projects/[
|
|
3311
|
+
# PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
|
|
3312
|
+
# ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
|
|
3313
|
+
# [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
|
|
3314
|
+
# FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
|
|
3315
|
+
# project-id/locations/my-location/buckets/my-bucket-id". Also requires
|
|
3316
|
+
# permission "resourcemanager.projects.updateLiens" to set the locked property
|
|
3317
|
+
# @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
|
|
3318
|
+
# @param [String] update_mask
|
|
3319
|
+
# Required. Field mask that specifies the fields in bucket that need an update.
|
|
3320
|
+
# A bucket field will be overwritten if, and only if, it is in the update mask.
|
|
3321
|
+
# name and output only fields cannot be updated.For a detailed FieldMask
|
|
3322
|
+
# definition, see https://developers.google.com/protocol-buffers/docs/reference/
|
|
3323
|
+
# google.protobuf#google.protobuf.FieldMaskExample: updateMask=retention_days.
|
|
3324
|
+
# @param [String] fields
|
|
3325
|
+
# Selector specifying which fields to include in a partial response.
|
|
3326
|
+
# @param [String] quota_user
|
|
3327
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
3328
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
3329
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3330
|
+
# Request-specific options
|
|
3331
|
+
#
|
|
3332
|
+
# @yield [result, err] Result & error if block supplied
|
|
3333
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
|
|
3334
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3335
|
+
#
|
|
3336
|
+
# @return [Google::Apis::LoggingV2::LogBucket]
|
|
3337
|
+
#
|
|
3338
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3339
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3340
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3341
|
+
def patch_organization_location_bucket(name, log_bucket_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
3342
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
3343
|
+
command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
|
3344
|
+
command.request_object = log_bucket_object
|
|
3345
|
+
command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
|
3346
|
+
command.response_class = Google::Apis::LoggingV2::LogBucket
|
|
3347
|
+
command.params['name'] = name unless name.nil?
|
|
3348
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
3349
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3350
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3351
|
+
execute_or_queue_command(command, &block)
|
|
3352
|
+
end
|
|
3353
|
+
|
|
3354
|
+
# Undeletes a bucket. A bucket that has been deleted may be undeleted within the
|
|
3355
|
+
# grace period of 7 days.
|
|
3356
|
+
# @param [String] name
|
|
3357
|
+
# Required. The full resource name of the bucket to undelete. "projects/[
|
|
3358
|
+
# PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
|
|
3359
|
+
# ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
|
|
3360
|
+
# [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
|
|
3361
|
+
# FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
|
|
3362
|
+
# project-id/locations/my-location/buckets/my-bucket-id".
|
|
3363
|
+
# @param [Google::Apis::LoggingV2::UndeleteBucketRequest] undelete_bucket_request_object
|
|
3364
|
+
# @param [String] fields
|
|
3365
|
+
# Selector specifying which fields to include in a partial response.
|
|
3366
|
+
# @param [String] quota_user
|
|
3367
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
3368
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
3369
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3370
|
+
# Request-specific options
|
|
3371
|
+
#
|
|
3372
|
+
# @yield [result, err] Result & error if block supplied
|
|
3373
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
|
3374
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3375
|
+
#
|
|
3376
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
|
3377
|
+
#
|
|
3378
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3379
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3380
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3381
|
+
def undelete_organization_location_bucket(name, undelete_bucket_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
3382
|
+
command = make_simple_command(:post, 'v2/{+name}:undelete', options)
|
|
3383
|
+
command.request_representation = Google::Apis::LoggingV2::UndeleteBucketRequest::Representation
|
|
3384
|
+
command.request_object = undelete_bucket_request_object
|
|
3385
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
3386
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
|
3387
|
+
command.params['name'] = name unless name.nil?
|
|
2569
3388
|
command.query['fields'] = fields unless fields.nil?
|
|
2570
3389
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2571
3390
|
execute_or_queue_command(command, &block)
|
|
2572
3391
|
end
|
|
2573
3392
|
|
|
2574
|
-
# Creates a
|
|
2575
|
-
#
|
|
3393
|
+
# Creates a view over logs in a bucket. A bucket may contain a maximum of 50
|
|
3394
|
+
# views.
|
|
2576
3395
|
# @param [String] parent
|
|
2577
|
-
# Required. The
|
|
2578
|
-
# locations/[LOCATION_ID]" Example: "projects/my-logging-
|
|
2579
|
-
#
|
|
2580
|
-
# @param [Google::Apis::LoggingV2::
|
|
2581
|
-
# @param [String]
|
|
2582
|
-
# Required.
|
|
2583
|
-
# limited to 100 characters and can include only letters, digits, underscores,
|
|
2584
|
-
# hyphens, and periods.
|
|
3396
|
+
# Required. The bucket in which to create the view "projects/[PROJECT_ID]/
|
|
3397
|
+
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-logging-
|
|
3398
|
+
# project/locations/my-location/buckets/my-bucket"
|
|
3399
|
+
# @param [Google::Apis::LoggingV2::LogView] log_view_object
|
|
3400
|
+
# @param [String] view_id
|
|
3401
|
+
# Required. The id to use for this view.
|
|
2585
3402
|
# @param [String] fields
|
|
2586
3403
|
# Selector specifying which fields to include in a partial response.
|
|
2587
3404
|
# @param [String] quota_user
|
|
@@ -2591,37 +3408,33 @@ module Google
|
|
|
2591
3408
|
# Request-specific options
|
|
2592
3409
|
#
|
|
2593
3410
|
# @yield [result, err] Result & error if block supplied
|
|
2594
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
3411
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
|
|
2595
3412
|
# @yieldparam err [StandardError] error object if request failed
|
|
2596
3413
|
#
|
|
2597
|
-
# @return [Google::Apis::LoggingV2::
|
|
3414
|
+
# @return [Google::Apis::LoggingV2::LogView]
|
|
2598
3415
|
#
|
|
2599
3416
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2600
3417
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2601
3418
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2602
|
-
def
|
|
2603
|
-
command = make_simple_command(:post, 'v2/{+parent}/
|
|
2604
|
-
command.request_representation = Google::Apis::LoggingV2::
|
|
2605
|
-
command.request_object =
|
|
2606
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
2607
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
3419
|
+
def create_organization_location_bucket_view(parent, log_view_object = nil, view_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
3420
|
+
command = make_simple_command(:post, 'v2/{+parent}/views', options)
|
|
3421
|
+
command.request_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
3422
|
+
command.request_object = log_view_object
|
|
3423
|
+
command.response_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
3424
|
+
command.response_class = Google::Apis::LoggingV2::LogView
|
|
2608
3425
|
command.params['parent'] = parent unless parent.nil?
|
|
2609
|
-
command.query['
|
|
3426
|
+
command.query['viewId'] = view_id unless view_id.nil?
|
|
2610
3427
|
command.query['fields'] = fields unless fields.nil?
|
|
2611
3428
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2612
3429
|
execute_or_queue_command(command, &block)
|
|
2613
3430
|
end
|
|
2614
3431
|
|
|
2615
|
-
# Deletes a
|
|
2616
|
-
# the bucket will be purged and all logs in the bucket will be permanently
|
|
2617
|
-
# deleted.
|
|
3432
|
+
# Deletes a view from a bucket.
|
|
2618
3433
|
# @param [String] name
|
|
2619
|
-
# Required. The full resource name of the
|
|
2620
|
-
#
|
|
2621
|
-
#
|
|
2622
|
-
#
|
|
2623
|
-
# FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
|
|
2624
|
-
# project-id/locations/my-location/buckets/my-bucket-id".
|
|
3434
|
+
# Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/
|
|
3435
|
+
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
|
|
3436
|
+
# projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
|
|
3437
|
+
# view-id".
|
|
2625
3438
|
# @param [String] fields
|
|
2626
3439
|
# Selector specifying which fields to include in a partial response.
|
|
2627
3440
|
# @param [String] quota_user
|
|
@@ -2639,7 +3452,7 @@ module Google
|
|
|
2639
3452
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2640
3453
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2641
3454
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2642
|
-
def
|
|
3455
|
+
def delete_organization_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
2643
3456
|
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
2644
3457
|
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
2645
3458
|
command.response_class = Google::Apis::LoggingV2::Empty
|
|
@@ -2649,14 +3462,11 @@ module Google
|
|
|
2649
3462
|
execute_or_queue_command(command, &block)
|
|
2650
3463
|
end
|
|
2651
3464
|
|
|
2652
|
-
# Gets a
|
|
3465
|
+
# Gets a view.
|
|
2653
3466
|
# @param [String] name
|
|
2654
|
-
# Required. The resource name of the
|
|
2655
|
-
# LOCATION_ID]/buckets/[BUCKET_ID]" "
|
|
2656
|
-
#
|
|
2657
|
-
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[
|
|
2658
|
-
# LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-project-id/locations/
|
|
2659
|
-
# my-location/buckets/my-bucket-id".
|
|
3467
|
+
# Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[
|
|
3468
|
+
# LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "projects/my-
|
|
3469
|
+
# project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id".
|
|
2660
3470
|
# @param [String] fields
|
|
2661
3471
|
# Selector specifying which fields to include in a partial response.
|
|
2662
3472
|
# @param [String] quota_user
|
|
@@ -2666,32 +3476,28 @@ module Google
|
|
|
2666
3476
|
# Request-specific options
|
|
2667
3477
|
#
|
|
2668
3478
|
# @yield [result, err] Result & error if block supplied
|
|
2669
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
3479
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
|
|
2670
3480
|
# @yieldparam err [StandardError] error object if request failed
|
|
2671
3481
|
#
|
|
2672
|
-
# @return [Google::Apis::LoggingV2::
|
|
3482
|
+
# @return [Google::Apis::LoggingV2::LogView]
|
|
2673
3483
|
#
|
|
2674
3484
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2675
3485
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2676
3486
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2677
|
-
def
|
|
3487
|
+
def get_organization_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
2678
3488
|
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
2679
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
2680
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
3489
|
+
command.response_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
3490
|
+
command.response_class = Google::Apis::LoggingV2::LogView
|
|
2681
3491
|
command.params['name'] = name unless name.nil?
|
|
2682
3492
|
command.query['fields'] = fields unless fields.nil?
|
|
2683
3493
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2684
3494
|
execute_or_queue_command(command, &block)
|
|
2685
3495
|
end
|
|
2686
3496
|
|
|
2687
|
-
# Lists
|
|
3497
|
+
# Lists views on a bucket..
|
|
2688
3498
|
# @param [String] parent
|
|
2689
|
-
# Required. The
|
|
2690
|
-
#
|
|
2691
|
-
# locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
|
|
2692
|
-
# LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" Note: The
|
|
2693
|
-
# locations portion of the resource must be specified, but supplying the
|
|
2694
|
-
# character - in place of LOCATION_ID will return all buckets.
|
|
3499
|
+
# Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/
|
|
3500
|
+
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
|
2695
3501
|
# @param [Fixnum] page_size
|
|
2696
3502
|
# Optional. The maximum number of results to return from this request. Non-
|
|
2697
3503
|
# positive values are ignored. The presence of nextPageToken in the response
|
|
@@ -2710,18 +3516,18 @@ module Google
|
|
|
2710
3516
|
# Request-specific options
|
|
2711
3517
|
#
|
|
2712
3518
|
# @yield [result, err] Result & error if block supplied
|
|
2713
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
3519
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListViewsResponse] parsed result object
|
|
2714
3520
|
# @yieldparam err [StandardError] error object if request failed
|
|
2715
3521
|
#
|
|
2716
|
-
# @return [Google::Apis::LoggingV2::
|
|
3522
|
+
# @return [Google::Apis::LoggingV2::ListViewsResponse]
|
|
2717
3523
|
#
|
|
2718
3524
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2719
3525
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2720
3526
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2721
|
-
def
|
|
2722
|
-
command = make_simple_command(:get, 'v2/{+parent}/
|
|
2723
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
2724
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
3527
|
+
def list_organization_location_bucket_views(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
3528
|
+
command = make_simple_command(:get, 'v2/{+parent}/views', options)
|
|
3529
|
+
command.response_representation = Google::Apis::LoggingV2::ListViewsResponse::Representation
|
|
3530
|
+
command.response_class = Google::Apis::LoggingV2::ListViewsResponse
|
|
2725
3531
|
command.params['parent'] = parent unless parent.nil?
|
|
2726
3532
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
2727
3533
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -2730,27 +3536,20 @@ module Google
|
|
|
2730
3536
|
execute_or_queue_command(command, &block)
|
|
2731
3537
|
end
|
|
2732
3538
|
|
|
2733
|
-
# Updates a
|
|
2734
|
-
#
|
|
2735
|
-
# period is decreased and the bucket is locked, FAILED_PRECONDITION will be
|
|
2736
|
-
# returned.If the bucket has a LifecycleState of DELETE_REQUESTED,
|
|
2737
|
-
# FAILED_PRECONDITION will be returned.A buckets region may not be modified
|
|
2738
|
-
# after it is created. This method is in Beta.
|
|
3539
|
+
# Updates a view. This method replaces the following fields in the existing view
|
|
3540
|
+
# with values from the new view: filter.
|
|
2739
3541
|
# @param [String] name
|
|
2740
|
-
# Required. The full resource name of the
|
|
2741
|
-
#
|
|
2742
|
-
#
|
|
2743
|
-
#
|
|
2744
|
-
#
|
|
2745
|
-
# project-id/locations/my-location/buckets/my-bucket-id". Also requires
|
|
2746
|
-
# permission "resourcemanager.projects.updateLiens" to set the locked property
|
|
2747
|
-
# @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
|
|
3542
|
+
# Required. The full resource name of the view to update "projects/[PROJECT_ID]/
|
|
3543
|
+
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
|
|
3544
|
+
# projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
|
|
3545
|
+
# view-id".
|
|
3546
|
+
# @param [Google::Apis::LoggingV2::LogView] log_view_object
|
|
2748
3547
|
# @param [String] update_mask
|
|
2749
|
-
#
|
|
2750
|
-
#
|
|
2751
|
-
#
|
|
2752
|
-
#
|
|
2753
|
-
# google.protobuf
|
|
3548
|
+
# Optional. Field mask that specifies the fields in view that need an update. A
|
|
3549
|
+
# field will be overwritten if, and only if, it is in the update mask. name and
|
|
3550
|
+
# output only fields cannot be updated.For a detailed FieldMask definition, see
|
|
3551
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
|
|
3552
|
+
# google.protobuf.FieldMaskExample: updateMask=filter.
|
|
2754
3553
|
# @param [String] fields
|
|
2755
3554
|
# Selector specifying which fields to include in a partial response.
|
|
2756
3555
|
# @param [String] quota_user
|
|
@@ -2760,20 +3559,20 @@ module Google
|
|
|
2760
3559
|
# Request-specific options
|
|
2761
3560
|
#
|
|
2762
3561
|
# @yield [result, err] Result & error if block supplied
|
|
2763
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
3562
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
|
|
2764
3563
|
# @yieldparam err [StandardError] error object if request failed
|
|
2765
3564
|
#
|
|
2766
|
-
# @return [Google::Apis::LoggingV2::
|
|
3565
|
+
# @return [Google::Apis::LoggingV2::LogView]
|
|
2767
3566
|
#
|
|
2768
3567
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2769
3568
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2770
3569
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2771
|
-
def
|
|
3570
|
+
def patch_organization_location_bucket_view(name, log_view_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2772
3571
|
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
2773
|
-
command.request_representation = Google::Apis::LoggingV2::
|
|
2774
|
-
command.request_object =
|
|
2775
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
2776
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
3572
|
+
command.request_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
3573
|
+
command.request_object = log_view_object
|
|
3574
|
+
command.response_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
3575
|
+
command.response_class = Google::Apis::LoggingV2::LogView
|
|
2777
3576
|
command.params['name'] = name unless name.nil?
|
|
2778
3577
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
2779
3578
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -2781,45 +3580,6 @@ module Google
|
|
|
2781
3580
|
execute_or_queue_command(command, &block)
|
|
2782
3581
|
end
|
|
2783
3582
|
|
|
2784
|
-
# Undeletes a bucket. A bucket that has been deleted may be undeleted within the
|
|
2785
|
-
# grace period of 7 days.
|
|
2786
|
-
# @param [String] name
|
|
2787
|
-
# Required. The full resource name of the bucket to undelete. "projects/[
|
|
2788
|
-
# PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
|
|
2789
|
-
# ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
|
|
2790
|
-
# [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
|
|
2791
|
-
# FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
|
|
2792
|
-
# project-id/locations/my-location/buckets/my-bucket-id".
|
|
2793
|
-
# @param [Google::Apis::LoggingV2::UndeleteBucketRequest] undelete_bucket_request_object
|
|
2794
|
-
# @param [String] fields
|
|
2795
|
-
# Selector specifying which fields to include in a partial response.
|
|
2796
|
-
# @param [String] quota_user
|
|
2797
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
2798
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2799
|
-
# @param [Google::Apis::RequestOptions] options
|
|
2800
|
-
# Request-specific options
|
|
2801
|
-
#
|
|
2802
|
-
# @yield [result, err] Result & error if block supplied
|
|
2803
|
-
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
|
2804
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
2805
|
-
#
|
|
2806
|
-
# @return [Google::Apis::LoggingV2::Empty]
|
|
2807
|
-
#
|
|
2808
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2809
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2810
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2811
|
-
def undelete_organization_location_bucket(name, undelete_bucket_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2812
|
-
command = make_simple_command(:post, 'v2/{+name}:undelete', options)
|
|
2813
|
-
command.request_representation = Google::Apis::LoggingV2::UndeleteBucketRequest::Representation
|
|
2814
|
-
command.request_object = undelete_bucket_request_object
|
|
2815
|
-
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
2816
|
-
command.response_class = Google::Apis::LoggingV2::Empty
|
|
2817
|
-
command.params['name'] = name unless name.nil?
|
|
2818
|
-
command.query['fields'] = fields unless fields.nil?
|
|
2819
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2820
|
-
execute_or_queue_command(command, &block)
|
|
2821
|
-
end
|
|
2822
|
-
|
|
2823
3583
|
# Deletes all the log entries in a log. The log reappears if it receives new
|
|
2824
3584
|
# entries. Log entries written shortly before the delete operation might not be
|
|
2825
3585
|
# deleted. Entries received after the delete operation with a timestamp before
|
|
@@ -3624,6 +4384,196 @@ module Google
|
|
|
3624
4384
|
execute_or_queue_command(command, &block)
|
|
3625
4385
|
end
|
|
3626
4386
|
|
|
4387
|
+
# Creates a view over logs in a bucket. A bucket may contain a maximum of 50
|
|
4388
|
+
# views.
|
|
4389
|
+
# @param [String] parent
|
|
4390
|
+
# Required. The bucket in which to create the view "projects/[PROJECT_ID]/
|
|
4391
|
+
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-logging-
|
|
4392
|
+
# project/locations/my-location/buckets/my-bucket"
|
|
4393
|
+
# @param [Google::Apis::LoggingV2::LogView] log_view_object
|
|
4394
|
+
# @param [String] view_id
|
|
4395
|
+
# Required. The id to use for this view.
|
|
4396
|
+
# @param [String] fields
|
|
4397
|
+
# Selector specifying which fields to include in a partial response.
|
|
4398
|
+
# @param [String] quota_user
|
|
4399
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
4400
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
4401
|
+
# @param [Google::Apis::RequestOptions] options
|
|
4402
|
+
# Request-specific options
|
|
4403
|
+
#
|
|
4404
|
+
# @yield [result, err] Result & error if block supplied
|
|
4405
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
|
|
4406
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
4407
|
+
#
|
|
4408
|
+
# @return [Google::Apis::LoggingV2::LogView]
|
|
4409
|
+
#
|
|
4410
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4411
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4412
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4413
|
+
def create_project_location_bucket_view(parent, log_view_object = nil, view_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
4414
|
+
command = make_simple_command(:post, 'v2/{+parent}/views', options)
|
|
4415
|
+
command.request_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
4416
|
+
command.request_object = log_view_object
|
|
4417
|
+
command.response_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
4418
|
+
command.response_class = Google::Apis::LoggingV2::LogView
|
|
4419
|
+
command.params['parent'] = parent unless parent.nil?
|
|
4420
|
+
command.query['viewId'] = view_id unless view_id.nil?
|
|
4421
|
+
command.query['fields'] = fields unless fields.nil?
|
|
4422
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4423
|
+
execute_or_queue_command(command, &block)
|
|
4424
|
+
end
|
|
4425
|
+
|
|
4426
|
+
# Deletes a view from a bucket.
|
|
4427
|
+
# @param [String] name
|
|
4428
|
+
# Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/
|
|
4429
|
+
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
|
|
4430
|
+
# projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
|
|
4431
|
+
# view-id".
|
|
4432
|
+
# @param [String] fields
|
|
4433
|
+
# Selector specifying which fields to include in a partial response.
|
|
4434
|
+
# @param [String] quota_user
|
|
4435
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
4436
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
4437
|
+
# @param [Google::Apis::RequestOptions] options
|
|
4438
|
+
# Request-specific options
|
|
4439
|
+
#
|
|
4440
|
+
# @yield [result, err] Result & error if block supplied
|
|
4441
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
|
4442
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
4443
|
+
#
|
|
4444
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
|
4445
|
+
#
|
|
4446
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4447
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4448
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4449
|
+
def delete_project_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
4450
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
4451
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
4452
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
|
4453
|
+
command.params['name'] = name unless name.nil?
|
|
4454
|
+
command.query['fields'] = fields unless fields.nil?
|
|
4455
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4456
|
+
execute_or_queue_command(command, &block)
|
|
4457
|
+
end
|
|
4458
|
+
|
|
4459
|
+
# Gets a view.
|
|
4460
|
+
# @param [String] name
|
|
4461
|
+
# Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[
|
|
4462
|
+
# LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "projects/my-
|
|
4463
|
+
# project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id".
|
|
4464
|
+
# @param [String] fields
|
|
4465
|
+
# Selector specifying which fields to include in a partial response.
|
|
4466
|
+
# @param [String] quota_user
|
|
4467
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
4468
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
4469
|
+
# @param [Google::Apis::RequestOptions] options
|
|
4470
|
+
# Request-specific options
|
|
4471
|
+
#
|
|
4472
|
+
# @yield [result, err] Result & error if block supplied
|
|
4473
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
|
|
4474
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
4475
|
+
#
|
|
4476
|
+
# @return [Google::Apis::LoggingV2::LogView]
|
|
4477
|
+
#
|
|
4478
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4479
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4480
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4481
|
+
def get_project_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
4482
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
4483
|
+
command.response_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
4484
|
+
command.response_class = Google::Apis::LoggingV2::LogView
|
|
4485
|
+
command.params['name'] = name unless name.nil?
|
|
4486
|
+
command.query['fields'] = fields unless fields.nil?
|
|
4487
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4488
|
+
execute_or_queue_command(command, &block)
|
|
4489
|
+
end
|
|
4490
|
+
|
|
4491
|
+
# Lists views on a bucket..
|
|
4492
|
+
# @param [String] parent
|
|
4493
|
+
# Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/
|
|
4494
|
+
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
|
4495
|
+
# @param [Fixnum] page_size
|
|
4496
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
4497
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
4498
|
+
# indicates that more results might be available.
|
|
4499
|
+
# @param [String] page_token
|
|
4500
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
4501
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
4502
|
+
# from the previous response. The values of other method parameters should be
|
|
4503
|
+
# identical to those in the previous call.
|
|
4504
|
+
# @param [String] fields
|
|
4505
|
+
# Selector specifying which fields to include in a partial response.
|
|
4506
|
+
# @param [String] quota_user
|
|
4507
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
4508
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
4509
|
+
# @param [Google::Apis::RequestOptions] options
|
|
4510
|
+
# Request-specific options
|
|
4511
|
+
#
|
|
4512
|
+
# @yield [result, err] Result & error if block supplied
|
|
4513
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListViewsResponse] parsed result object
|
|
4514
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
4515
|
+
#
|
|
4516
|
+
# @return [Google::Apis::LoggingV2::ListViewsResponse]
|
|
4517
|
+
#
|
|
4518
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4519
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4520
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4521
|
+
def list_project_location_bucket_views(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
4522
|
+
command = make_simple_command(:get, 'v2/{+parent}/views', options)
|
|
4523
|
+
command.response_representation = Google::Apis::LoggingV2::ListViewsResponse::Representation
|
|
4524
|
+
command.response_class = Google::Apis::LoggingV2::ListViewsResponse
|
|
4525
|
+
command.params['parent'] = parent unless parent.nil?
|
|
4526
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
4527
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
4528
|
+
command.query['fields'] = fields unless fields.nil?
|
|
4529
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4530
|
+
execute_or_queue_command(command, &block)
|
|
4531
|
+
end
|
|
4532
|
+
|
|
4533
|
+
# Updates a view. This method replaces the following fields in the existing view
|
|
4534
|
+
# with values from the new view: filter.
|
|
4535
|
+
# @param [String] name
|
|
4536
|
+
# Required. The full resource name of the view to update "projects/[PROJECT_ID]/
|
|
4537
|
+
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
|
|
4538
|
+
# projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
|
|
4539
|
+
# view-id".
|
|
4540
|
+
# @param [Google::Apis::LoggingV2::LogView] log_view_object
|
|
4541
|
+
# @param [String] update_mask
|
|
4542
|
+
# Optional. Field mask that specifies the fields in view that need an update. A
|
|
4543
|
+
# field will be overwritten if, and only if, it is in the update mask. name and
|
|
4544
|
+
# output only fields cannot be updated.For a detailed FieldMask definition, see
|
|
4545
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
|
|
4546
|
+
# google.protobuf.FieldMaskExample: updateMask=filter.
|
|
4547
|
+
# @param [String] fields
|
|
4548
|
+
# Selector specifying which fields to include in a partial response.
|
|
4549
|
+
# @param [String] quota_user
|
|
4550
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
4551
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
4552
|
+
# @param [Google::Apis::RequestOptions] options
|
|
4553
|
+
# Request-specific options
|
|
4554
|
+
#
|
|
4555
|
+
# @yield [result, err] Result & error if block supplied
|
|
4556
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
|
|
4557
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
4558
|
+
#
|
|
4559
|
+
# @return [Google::Apis::LoggingV2::LogView]
|
|
4560
|
+
#
|
|
4561
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4562
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4563
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4564
|
+
def patch_project_location_bucket_view(name, log_view_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
4565
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
4566
|
+
command.request_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
4567
|
+
command.request_object = log_view_object
|
|
4568
|
+
command.response_representation = Google::Apis::LoggingV2::LogView::Representation
|
|
4569
|
+
command.response_class = Google::Apis::LoggingV2::LogView
|
|
4570
|
+
command.params['name'] = name unless name.nil?
|
|
4571
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
4572
|
+
command.query['fields'] = fields unless fields.nil?
|
|
4573
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4574
|
+
execute_or_queue_command(command, &block)
|
|
4575
|
+
end
|
|
4576
|
+
|
|
3627
4577
|
# Deletes all the log entries in a log. The log reappears if it receives new
|
|
3628
4578
|
# entries. Log entries written shortly before the delete operation might not be
|
|
3629
4579
|
# deleted. Entries received after the delete operation with a timestamp before
|