google-api-client 0.28.7 → 0.29.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.kokoro/build.bat +9 -6
- data/.kokoro/build.sh +2 -32
- data/.kokoro/continuous/common.cfg +6 -1
- data/.kokoro/continuous/windows.cfg +17 -1
- data/.kokoro/osx.sh +2 -33
- data/.kokoro/presubmit/common.cfg +6 -1
- data/.kokoro/presubmit/windows.cfg +17 -1
- data/.kokoro/trampoline.bat +10 -0
- data/.kokoro/trampoline.sh +3 -23
- data/CHANGELOG.md +138 -0
- data/Rakefile +31 -0
- data/generated/google/apis/accessapproval_v1beta1.rb +34 -0
- data/generated/google/apis/accessapproval_v1beta1/classes.rb +306 -0
- data/generated/google/apis/accessapproval_v1beta1/representations.rb +159 -0
- data/generated/google/apis/accessapproval_v1beta1/service.rb +728 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +96 -131
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +2 -42
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +98 -0
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +25 -0
- data/generated/google/apis/alertcenter_v1beta1/service.rb +2 -1
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +40 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +6 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +0 -26
- data/generated/google/apis/androidenterprise_v1/representations.rb +0 -14
- data/generated/google/apis/androidenterprise_v1/service.rb +0 -36
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +188 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +82 -0
- data/generated/google/apis/androidmanagement_v1/service.rb +170 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/service.rb +6 -12
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/service.rb +6 -12
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/service.rb +7 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +2 -1
- data/generated/google/apis/appengine_v1beta/service.rb +7 -1
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +4 -3
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +28 -4
- data/generated/google/apis/bigquery_v2/representations.rb +13 -0
- data/generated/google/apis/bigtableadmin_v1.rb +2 -2
- data/generated/google/apis/bigtableadmin_v1/service.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2.rb +2 -2
- data/generated/google/apis/bigtableadmin_v2/classes.rb +10 -10
- data/generated/google/apis/bigtableadmin_v2/service.rb +111 -2
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +16 -16
- data/generated/google/apis/classroom_v1.rb +7 -1
- data/generated/google/apis/classroom_v1/classes.rb +77 -0
- data/generated/google/apis/classroom_v1/representations.rb +32 -0
- data/generated/google/apis/classroom_v1/service.rb +224 -0
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +15 -2
- data/generated/google/apis/cloudasset_v1/representations.rb +1 -0
- data/generated/google/apis/cloudasset_v1/service.rb +3 -2
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +13 -0
- data/generated/google/apis/cloudasset_v1beta1/representations.rb +1 -0
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/service.rb +2 -2
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +19 -16
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +6 -5
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -10
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -4
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +6 -5
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +30 -21
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +37 -26
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1.rb +34 -0
- data/generated/google/apis/cloudscheduler_v1/classes.rb +994 -0
- data/generated/google/apis/cloudscheduler_v1/representations.rb +297 -0
- data/generated/google/apis/cloudscheduler_v1/service.rb +448 -0
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -2
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +25 -11
- data/generated/google/apis/cloudsearch_v1/service.rb +36 -32
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/service.rb +13 -13
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +13 -13
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/service.rb +13 -13
- data/generated/google/apis/commentanalyzer_v1alpha1.rb +39 -0
- data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +484 -0
- data/generated/google/apis/commentanalyzer_v1alpha1/representations.rb +210 -0
- data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +124 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +328 -25
- data/generated/google/apis/compute_alpha/representations.rb +134 -0
- data/generated/google/apis/compute_alpha/service.rb +465 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +86 -20
- data/generated/google/apis/compute_beta/representations.rb +7 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +994 -103
- data/generated/google/apis/compute_v1/representations.rb +346 -0
- data/generated/google/apis/compute_v1/service.rb +533 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +167 -21
- data/generated/google/apis/container_v1/representations.rb +66 -0
- data/generated/google/apis/container_v1/service.rb +85 -36
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +86 -21
- data/generated/google/apis/container_v1beta1/representations.rb +32 -0
- data/generated/google/apis/container_v1beta1/service.rb +38 -38
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +95 -6
- data/generated/google/apis/containeranalysis_v1beta1/representations.rb +25 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +5 -5
- data/generated/google/apis/content_v2/service.rb +6 -6
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +18 -4
- data/generated/google/apis/content_v2_1/representations.rb +2 -0
- data/generated/google/apis/content_v2_1/service.rb +6 -6
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +56 -1
- data/generated/google/apis/dataflow_v1b3/representations.rb +39 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +251 -0
- data/generated/google/apis/datafusion_v1beta1.rb +43 -0
- data/generated/google/apis/datafusion_v1beta1/classes.rb +1304 -0
- data/generated/google/apis/datafusion_v1beta1/representations.rb +469 -0
- data/generated/google/apis/datafusion_v1beta1/service.rb +657 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +5 -5
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +37 -24
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +20 -16
- data/generated/google/apis/datastore_v1beta1.rb +1 -1
- data/generated/google/apis/datastore_v1beta1/classes.rb +10 -10
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +10 -6
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +236 -0
- data/generated/google/apis/dialogflow_v2/representations.rb +99 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +64 -2
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +31 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +19 -2
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +202 -93
- data/generated/google/apis/dns_v1/service.rb +110 -15
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +262 -122
- data/generated/google/apis/dns_v1beta2/service.rb +141 -21
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +202 -93
- data/generated/google/apis/dns_v2beta1/service.rb +110 -15
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +10 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +601 -69
- data/generated/google/apis/drive_v2/representations.rb +152 -0
- data/generated/google/apis/drive_v2/service.rb +452 -96
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +591 -64
- data/generated/google/apis/drive_v3/representations.rb +151 -0
- data/generated/google/apis/drive_v3/service.rb +407 -77
- data/generated/google/apis/driveactivity_v2.rb +1 -1
- data/generated/google/apis/driveactivity_v2/classes.rb +149 -17
- data/generated/google/apis/driveactivity_v2/representations.rb +69 -0
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +399 -8
- data/generated/google/apis/file_v1/representations.rb +121 -0
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +399 -8
- data/generated/google/apis/file_v1beta1/representations.rb +121 -0
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +28 -4
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +4 -0
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +13 -13
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +10 -2
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +15 -15
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +15 -15
- data/generated/google/apis/firestore_v1beta2.rb +1 -1
- data/generated/google/apis/firestore_v1beta2/classes.rb +10 -10
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +1 -1
- data/generated/google/apis/games_v1.rb +2 -2
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +29 -0
- data/generated/google/apis/gmail_v1/representations.rb +13 -0
- data/generated/google/apis/gmail_v1/service.rb +76 -0
- data/generated/google/apis/healthcare_v1beta1.rb +34 -0
- data/generated/google/apis/healthcare_v1beta1/classes.rb +2462 -0
- data/generated/google/apis/healthcare_v1beta1/representations.rb +1042 -0
- data/generated/google/apis/healthcare_v1beta1/service.rb +3403 -0
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +9 -8
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +13 -7
- data/generated/google/apis/jobs_v3/service.rb +1 -2
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +13 -7
- data/generated/google/apis/jobs_v3p1beta1/service.rb +1 -2
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +3 -2
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/language_v1beta2/classes.rb +3 -2
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +64 -16
- data/generated/google/apis/ml_v1/representations.rb +2 -0
- data/generated/google/apis/ml_v1/service.rb +5 -5
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +0 -10
- data/generated/google/apis/monitoring_v3/representations.rb +0 -1
- data/generated/google/apis/oauth2_v1.rb +1 -1
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oslogin_v1.rb +3 -2
- data/generated/google/apis/oslogin_v1/service.rb +2 -1
- data/generated/google/apis/oslogin_v1alpha.rb +3 -2
- data/generated/google/apis/oslogin_v1alpha/service.rb +2 -1
- data/generated/google/apis/oslogin_v1beta.rb +3 -2
- data/generated/google/apis/oslogin_v1beta/service.rb +2 -1
- data/generated/google/apis/people_v1.rb +1 -4
- data/generated/google/apis/people_v1/classes.rb +19 -11
- data/generated/google/apis/people_v1/representations.rb +1 -0
- data/generated/google/apis/people_v1/service.rb +1 -0
- data/generated/google/apis/plus_domains_v1.rb +2 -5
- data/generated/google/apis/plus_domains_v1/service.rb +8 -90
- data/generated/google/apis/plus_v1.rb +2 -2
- data/generated/google/apis/plus_v1/service.rb +7 -7
- data/generated/google/apis/poly_v1.rb +1 -1
- data/generated/google/apis/poly_v1/classes.rb +3 -2
- data/generated/google/apis/poly_v1/service.rb +11 -8
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +2 -1
- data/generated/google/apis/pubsub_v1/service.rb +8 -8
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +7 -6
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +5 -4
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +5 -4
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1.rb +35 -0
- data/generated/google/apis/securitycenter_v1/classes.rb +1627 -0
- data/generated/google/apis/securitycenter_v1/representations.rb +569 -0
- data/generated/google/apis/securitycenter_v1/service.rb +1110 -0
- data/generated/google/apis/securitycenter_v1beta1.rb +35 -0
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +1514 -0
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +548 -0
- data/generated/google/apis/securitycenter_v1beta1/service.rb +1035 -0
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +324 -13
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +174 -0
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +5 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +2 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +101 -20
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +16 -13
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +16 -13
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +110 -13
- data/generated/google/apis/serviceusage_v1/representations.rb +43 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +110 -13
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +43 -0
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +182 -0
- data/generated/google/apis/sourcerepo_v1/representations.rb +45 -0
- data/generated/google/apis/sourcerepo_v1/service.rb +35 -0
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +20 -19
- data/generated/google/apis/spanner_v1/service.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +9 -2
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +144 -0
- data/generated/google/apis/storage_v1/representations.rb +56 -0
- data/generated/google/apis/storage_v1/service.rb +441 -46
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +3 -3
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +6 -0
- data/generated/google/apis/testing_v1/representations.rb +1 -0
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +240 -0
- data/generated/google/apis/toolresults_v1beta3/representations.rb +43 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +116 -0
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +10 -4
- data/generated/google/apis/tpu_v1/representations.rb +1 -0
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +10 -4
- data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +37 -18
- data/generated/google/apis/vault_v1/representations.rb +3 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +84 -47
- data/generated/google/apis/vision_v1/service.rb +68 -4
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +84 -47
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +84 -47
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/webmasters_v3/classes.rb +0 -166
- data/generated/google/apis/webmasters_v3/representations.rb +0 -93
- data/generated/google/apis/webmasters_v3/service.rb +0 -171
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +15 -34
- data/generated/google/apis/youtube_partner_v1/representations.rb +4 -17
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +2 -2
- data/google-api-client.gemspec +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +31 -9
- data/.kokoro/common.cfg +0 -22
- data/.kokoro/windows.sh +0 -32
- data/generated/google/apis/logging_v2beta1.rb +0 -46
- data/generated/google/apis/logging_v2beta1/classes.rb +0 -1764
- data/generated/google/apis/logging_v2beta1/representations.rb +0 -537
- data/generated/google/apis/logging_v2beta1/service.rb +0 -570
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/youtube/partner/
|
26
26
|
module YoutubePartnerV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20190429'
|
29
29
|
|
30
30
|
# View and manage your assets and associated content on YouTube
|
31
31
|
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'
|
@@ -37,12 +37,6 @@ module Google
|
|
37
37
|
# @return [String]
|
38
38
|
attr_accessor :position
|
39
39
|
|
40
|
-
# A list of ad slots that occur in an ad break. Ad slots let you specify the
|
41
|
-
# number of ads that should run in each break.
|
42
|
-
# Corresponds to the JSON property `slot`
|
43
|
-
# @return [Array<Google::Apis::YoutubePartnerV1::AdSlot>]
|
44
|
-
attr_accessor :slot
|
45
|
-
|
46
40
|
def initialize(**args)
|
47
41
|
update!(**args)
|
48
42
|
end
|
@@ -51,33 +45,6 @@ module Google
|
|
51
45
|
def update!(**args)
|
52
46
|
@midroll_seconds = args[:midroll_seconds] if args.key?(:midroll_seconds)
|
53
47
|
@position = args[:position] if args.key?(:position)
|
54
|
-
@slot = args[:slot] if args.key?(:slot)
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
#
|
59
|
-
class AdSlot
|
60
|
-
include Google::Apis::Core::Hashable
|
61
|
-
|
62
|
-
# A value that identifies the ad slot to the ad server.
|
63
|
-
# Corresponds to the JSON property `id`
|
64
|
-
# @return [String]
|
65
|
-
attr_accessor :id
|
66
|
-
|
67
|
-
# The type of ad that runs in the slot. The value may affect YouTube's fallback
|
68
|
-
# behavior if the third-party platform does not return ads.
|
69
|
-
# Corresponds to the JSON property `type`
|
70
|
-
# @return [String]
|
71
|
-
attr_accessor :type
|
72
|
-
|
73
|
-
def initialize(**args)
|
74
|
-
update!(**args)
|
75
|
-
end
|
76
|
-
|
77
|
-
# Update properties of this object
|
78
|
-
def update!(**args)
|
79
|
-
@id = args[:id] if args.key?(:id)
|
80
|
-
@type = args[:type] if args.key?(:type)
|
81
48
|
end
|
82
49
|
end
|
83
50
|
|
@@ -1895,6 +1862,13 @@ module Google
|
|
1895
1862
|
# @return [String]
|
1896
1863
|
attr_accessor :channel
|
1897
1864
|
|
1865
|
+
# On insert operation of manual claims, the manual_segment object contains
|
1866
|
+
# information about the specific portion of the video that is claimed to be
|
1867
|
+
# matching.
|
1868
|
+
# Corresponds to the JSON property `manual_segment`
|
1869
|
+
# @return [Google::Apis::YoutubePartnerV1::Segment]
|
1870
|
+
attr_accessor :manual_segment
|
1871
|
+
|
1898
1872
|
# The reference_segment object contains information about the matched portion of
|
1899
1873
|
# the reference content.
|
1900
1874
|
# Corresponds to the JSON property `reference_segment`
|
@@ -1914,6 +1888,7 @@ module Google
|
|
1914
1888
|
# Update properties of this object
|
1915
1889
|
def update!(**args)
|
1916
1890
|
@channel = args[:channel] if args.key?(:channel)
|
1891
|
+
@manual_segment = args[:manual_segment] if args.key?(:manual_segment)
|
1917
1892
|
@reference_segment = args[:reference_segment] if args.key?(:reference_segment)
|
1918
1893
|
@video_segment = args[:video_segment] if args.key?(:video_segment)
|
1919
1894
|
end
|
@@ -3476,6 +3451,11 @@ module Google
|
|
3476
3451
|
# @return [Fixnum]
|
3477
3452
|
attr_accessor :duration
|
3478
3453
|
|
3454
|
+
# The finish time of the segment, measured in milliseconds from the beginning.
|
3455
|
+
# Corresponds to the JSON property `finish`
|
3456
|
+
# @return [String]
|
3457
|
+
attr_accessor :finish
|
3458
|
+
|
3479
3459
|
# The type of the API resource. For segment resources, the value is
|
3480
3460
|
# youtubePartner#segment.
|
3481
3461
|
# Corresponds to the JSON property `kind`
|
@@ -3484,7 +3464,7 @@ module Google
|
|
3484
3464
|
|
3485
3465
|
# The start time of the segment, measured in milliseconds from the beginning.
|
3486
3466
|
# Corresponds to the JSON property `start`
|
3487
|
-
# @return [
|
3467
|
+
# @return [String]
|
3488
3468
|
attr_accessor :start
|
3489
3469
|
|
3490
3470
|
def initialize(**args)
|
@@ -3494,6 +3474,7 @@ module Google
|
|
3494
3474
|
# Update properties of this object
|
3495
3475
|
def update!(**args)
|
3496
3476
|
@duration = args[:duration] if args.key?(:duration)
|
3477
|
+
@finish = args[:finish] if args.key?(:finish)
|
3497
3478
|
@kind = args[:kind] if args.key?(:kind)
|
3498
3479
|
@start = args[:start] if args.key?(:start)
|
3499
3480
|
end
|
@@ -28,12 +28,6 @@ module Google
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
-
class AdSlot
|
32
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
-
|
34
|
-
include Google::Apis::Core::JsonObjectSupport
|
35
|
-
end
|
36
|
-
|
37
31
|
class AllowedAdvertisingOptions
|
38
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
33
|
|
@@ -591,16 +585,6 @@ module Google
|
|
591
585
|
class Representation < Google::Apis::Core::JsonRepresentation
|
592
586
|
property :midroll_seconds, as: 'midrollSeconds'
|
593
587
|
property :position, as: 'position'
|
594
|
-
collection :slot, as: 'slot', class: Google::Apis::YoutubePartnerV1::AdSlot, decorator: Google::Apis::YoutubePartnerV1::AdSlot::Representation
|
595
|
-
|
596
|
-
end
|
597
|
-
end
|
598
|
-
|
599
|
-
class AdSlot
|
600
|
-
# @private
|
601
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
602
|
-
property :id, as: 'id'
|
603
|
-
property :type, as: 'type'
|
604
588
|
end
|
605
589
|
end
|
606
590
|
|
@@ -1112,6 +1096,8 @@ module Google
|
|
1112
1096
|
# @private
|
1113
1097
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1114
1098
|
property :channel, as: 'channel'
|
1099
|
+
property :manual_segment, as: 'manual_segment', class: Google::Apis::YoutubePartnerV1::Segment, decorator: Google::Apis::YoutubePartnerV1::Segment::Representation
|
1100
|
+
|
1115
1101
|
property :reference_segment, as: 'reference_segment', class: Google::Apis::YoutubePartnerV1::Segment, decorator: Google::Apis::YoutubePartnerV1::Segment::Representation
|
1116
1102
|
|
1117
1103
|
property :video_segment, as: 'video_segment', class: Google::Apis::YoutubePartnerV1::Segment, decorator: Google::Apis::YoutubePartnerV1::Segment::Representation
|
@@ -1497,8 +1483,9 @@ module Google
|
|
1497
1483
|
# @private
|
1498
1484
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1499
1485
|
property :duration, :numeric_string => true, as: 'duration'
|
1486
|
+
property :finish, as: 'finish'
|
1500
1487
|
property :kind, as: 'kind'
|
1501
|
-
property :start,
|
1488
|
+
property :start, as: 'start'
|
1502
1489
|
end
|
1503
1490
|
end
|
1504
1491
|
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/youtube/reporting/v1/reports/
|
27
27
|
module YoutubereportingV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20190406'
|
30
30
|
|
31
31
|
# View monetary and non-monetary YouTube Analytics reports for your YouTube content
|
32
32
|
AUTH_YT_ANALYTICS_MONETARY_READONLY = 'https://www.googleapis.com/auth/yt-analytics-monetary.readonly'
|
@@ -706,8 +706,8 @@ module Google
|
|
706
706
|
# A token to retrieve next page of results.
|
707
707
|
# Pass this value in the
|
708
708
|
# ListReportTypesRequest.page_token
|
709
|
-
# field in the subsequent call to `ListReportTypes` method to retrieve the
|
710
|
-
# page of results.
|
709
|
+
# field in the subsequent call to `ListReportTypes` method to retrieve the
|
710
|
+
# next page of results.
|
711
711
|
# Corresponds to the JSON property `nextPageToken`
|
712
712
|
# @return [String]
|
713
713
|
attr_accessor :next_page_token
|
data/google-api-client.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
.reject { |f| f.match(%r{^(spec|script)/|^api_names_out}) }
|
17
17
|
|
18
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
|
-
spec.require_paths = %w[lib generated
|
19
|
+
spec.require_paths = %w[lib generated]
|
20
20
|
|
21
21
|
spec.required_ruby_version = '~> 2.0'
|
22
22
|
|
data/lib/google/apis/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.29.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Bazyl
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2019-
|
14
|
+
date: 2019-05-02 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: representable
|
@@ -184,7 +184,6 @@ files:
|
|
184
184
|
- ".gitignore"
|
185
185
|
- ".kokoro/build.bat"
|
186
186
|
- ".kokoro/build.sh"
|
187
|
-
- ".kokoro/common.cfg"
|
188
187
|
- ".kokoro/continuous/common.cfg"
|
189
188
|
- ".kokoro/continuous/linux.cfg"
|
190
189
|
- ".kokoro/continuous/osx.cfg"
|
@@ -194,8 +193,8 @@ files:
|
|
194
193
|
- ".kokoro/presubmit/linux.cfg"
|
195
194
|
- ".kokoro/presubmit/osx.cfg"
|
196
195
|
- ".kokoro/presubmit/windows.cfg"
|
196
|
+
- ".kokoro/trampoline.bat"
|
197
197
|
- ".kokoro/trampoline.sh"
|
198
|
-
- ".kokoro/windows.sh"
|
199
198
|
- ".rspec"
|
200
199
|
- ".rubocop.yml"
|
201
200
|
- ".rubocop_todo.yml"
|
@@ -217,6 +216,10 @@ files:
|
|
217
216
|
- generated/google/apis/acceleratedmobilepageurl_v1/classes.rb
|
218
217
|
- generated/google/apis/acceleratedmobilepageurl_v1/representations.rb
|
219
218
|
- generated/google/apis/acceleratedmobilepageurl_v1/service.rb
|
219
|
+
- generated/google/apis/accessapproval_v1beta1.rb
|
220
|
+
- generated/google/apis/accessapproval_v1beta1/classes.rb
|
221
|
+
- generated/google/apis/accessapproval_v1beta1/representations.rb
|
222
|
+
- generated/google/apis/accessapproval_v1beta1/service.rb
|
220
223
|
- generated/google/apis/accesscontextmanager_v1.rb
|
221
224
|
- generated/google/apis/accesscontextmanager_v1/classes.rb
|
222
225
|
- generated/google/apis/accesscontextmanager_v1/representations.rb
|
@@ -469,6 +472,10 @@ files:
|
|
469
472
|
- generated/google/apis/cloudresourcemanager_v2beta1/classes.rb
|
470
473
|
- generated/google/apis/cloudresourcemanager_v2beta1/representations.rb
|
471
474
|
- generated/google/apis/cloudresourcemanager_v2beta1/service.rb
|
475
|
+
- generated/google/apis/cloudscheduler_v1.rb
|
476
|
+
- generated/google/apis/cloudscheduler_v1/classes.rb
|
477
|
+
- generated/google/apis/cloudscheduler_v1/representations.rb
|
478
|
+
- generated/google/apis/cloudscheduler_v1/service.rb
|
472
479
|
- generated/google/apis/cloudscheduler_v1beta1.rb
|
473
480
|
- generated/google/apis/cloudscheduler_v1beta1/classes.rb
|
474
481
|
- generated/google/apis/cloudscheduler_v1beta1/representations.rb
|
@@ -505,6 +512,10 @@ files:
|
|
505
512
|
- generated/google/apis/cloudtrace_v2/classes.rb
|
506
513
|
- generated/google/apis/cloudtrace_v2/representations.rb
|
507
514
|
- generated/google/apis/cloudtrace_v2/service.rb
|
515
|
+
- generated/google/apis/commentanalyzer_v1alpha1.rb
|
516
|
+
- generated/google/apis/commentanalyzer_v1alpha1/classes.rb
|
517
|
+
- generated/google/apis/commentanalyzer_v1alpha1/representations.rb
|
518
|
+
- generated/google/apis/commentanalyzer_v1alpha1/service.rb
|
508
519
|
- generated/google/apis/composer_v1.rb
|
509
520
|
- generated/google/apis/composer_v1/classes.rb
|
510
521
|
- generated/google/apis/composer_v1/representations.rb
|
@@ -557,6 +568,10 @@ files:
|
|
557
568
|
- generated/google/apis/dataflow_v1b3/classes.rb
|
558
569
|
- generated/google/apis/dataflow_v1b3/representations.rb
|
559
570
|
- generated/google/apis/dataflow_v1b3/service.rb
|
571
|
+
- generated/google/apis/datafusion_v1beta1.rb
|
572
|
+
- generated/google/apis/datafusion_v1beta1/classes.rb
|
573
|
+
- generated/google/apis/datafusion_v1beta1/representations.rb
|
574
|
+
- generated/google/apis/datafusion_v1beta1/service.rb
|
560
575
|
- generated/google/apis/dataproc_v1.rb
|
561
576
|
- generated/google/apis/dataproc_v1/classes.rb
|
562
577
|
- generated/google/apis/dataproc_v1/representations.rb
|
@@ -741,6 +756,10 @@ files:
|
|
741
756
|
- generated/google/apis/groupssettings_v1/classes.rb
|
742
757
|
- generated/google/apis/groupssettings_v1/representations.rb
|
743
758
|
- generated/google/apis/groupssettings_v1/service.rb
|
759
|
+
- generated/google/apis/healthcare_v1beta1.rb
|
760
|
+
- generated/google/apis/healthcare_v1beta1/classes.rb
|
761
|
+
- generated/google/apis/healthcare_v1beta1/representations.rb
|
762
|
+
- generated/google/apis/healthcare_v1beta1/service.rb
|
744
763
|
- generated/google/apis/iam_v1.rb
|
745
764
|
- generated/google/apis/iam_v1/classes.rb
|
746
765
|
- generated/google/apis/iam_v1/representations.rb
|
@@ -805,10 +824,6 @@ files:
|
|
805
824
|
- generated/google/apis/logging_v2/classes.rb
|
806
825
|
- generated/google/apis/logging_v2/representations.rb
|
807
826
|
- generated/google/apis/logging_v2/service.rb
|
808
|
-
- generated/google/apis/logging_v2beta1.rb
|
809
|
-
- generated/google/apis/logging_v2beta1/classes.rb
|
810
|
-
- generated/google/apis/logging_v2beta1/representations.rb
|
811
|
-
- generated/google/apis/logging_v2beta1/service.rb
|
812
827
|
- generated/google/apis/manufacturers_v1.rb
|
813
828
|
- generated/google/apis/manufacturers_v1/classes.rb
|
814
829
|
- generated/google/apis/manufacturers_v1/representations.rb
|
@@ -953,6 +968,14 @@ files:
|
|
953
968
|
- generated/google/apis/searchconsole_v1/classes.rb
|
954
969
|
- generated/google/apis/searchconsole_v1/representations.rb
|
955
970
|
- generated/google/apis/searchconsole_v1/service.rb
|
971
|
+
- generated/google/apis/securitycenter_v1.rb
|
972
|
+
- generated/google/apis/securitycenter_v1/classes.rb
|
973
|
+
- generated/google/apis/securitycenter_v1/representations.rb
|
974
|
+
- generated/google/apis/securitycenter_v1/service.rb
|
975
|
+
- generated/google/apis/securitycenter_v1beta1.rb
|
976
|
+
- generated/google/apis/securitycenter_v1beta1/classes.rb
|
977
|
+
- generated/google/apis/securitycenter_v1beta1/representations.rb
|
978
|
+
- generated/google/apis/securitycenter_v1beta1/service.rb
|
956
979
|
- generated/google/apis/servicebroker_v1.rb
|
957
980
|
- generated/google/apis/servicebroker_v1/classes.rb
|
958
981
|
- generated/google/apis/servicebroker_v1/representations.rb
|
@@ -1244,7 +1267,6 @@ rdoc_options: []
|
|
1244
1267
|
require_paths:
|
1245
1268
|
- lib
|
1246
1269
|
- generated
|
1247
|
-
- third_party
|
1248
1270
|
required_ruby_version: !ruby/object:Gem::Requirement
|
1249
1271
|
requirements:
|
1250
1272
|
- - "~>"
|
data/.kokoro/common.cfg
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
# Format: //devtools/kokoro/config/proto/build.proto
|
2
|
-
|
3
|
-
# Download trampoline resources. These will be in ${KOKORO_GFILE_DIR}
|
4
|
-
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
|
5
|
-
|
6
|
-
# All builds use the trampoline script to run in docker.
|
7
|
-
build_file: "google-api-ruby-client/.kokoro/trampoline.sh"
|
8
|
-
|
9
|
-
# Download secrets from Cloud Storage.
|
10
|
-
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-api-ruby-client"
|
11
|
-
|
12
|
-
# Tell the trampoline which build file to use.
|
13
|
-
env_vars: {
|
14
|
-
key: "TRAMPOLINE_BUILD_FILE"
|
15
|
-
value: "github/google-api-ruby-client/.kokoro/build.sh"
|
16
|
-
}
|
17
|
-
|
18
|
-
action {
|
19
|
-
define_artifacts {
|
20
|
-
regex: "**/*sponge_log.xml"
|
21
|
-
}
|
22
|
-
}
|
data/.kokoro/windows.sh
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
# This file runs tests for merges, PRs, and nightlies.
|
4
|
-
# There are a few rules for what tests are run:
|
5
|
-
# * PRs run all non-acceptance tests for every library.
|
6
|
-
# * Merges run all non-acceptance tests for every library, and acceptance tests for all altered libraries.
|
7
|
-
# * Nightlies run all acceptance tests for every library.
|
8
|
-
# * Currently only runs tests on 2.5.1
|
9
|
-
|
10
|
-
set -eo pipefail
|
11
|
-
|
12
|
-
# Debug: show build environment
|
13
|
-
env | grep KOKORO
|
14
|
-
|
15
|
-
cd github/google-api-ruby-client/
|
16
|
-
|
17
|
-
# Print out Ruby version
|
18
|
-
ruby --version
|
19
|
-
|
20
|
-
# Temporary workaround for a known bundler+docker issue:
|
21
|
-
# https://github.com/bundler/bundler/issues/6154
|
22
|
-
export BUNDLE_GEMFILE=
|
23
|
-
|
24
|
-
# Capture failures
|
25
|
-
EXIT_STATUS=0 # everything passed
|
26
|
-
function set_failed_status {
|
27
|
-
EXIT_STATUS=1
|
28
|
-
}
|
29
|
-
|
30
|
-
(bundle update && bundle exec rake) || set_failed_status
|
31
|
-
|
32
|
-
exit $EXIT_STATUS
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'google/apis/logging_v2beta1/service.rb'
|
16
|
-
require 'google/apis/logging_v2beta1/classes.rb'
|
17
|
-
require 'google/apis/logging_v2beta1/representations.rb'
|
18
|
-
|
19
|
-
module Google
|
20
|
-
module Apis
|
21
|
-
# Stackdriver Logging API
|
22
|
-
#
|
23
|
-
# Writes log entries and manages your Logging configuration.
|
24
|
-
#
|
25
|
-
# @see https://cloud.google.com/logging/docs/
|
26
|
-
module LoggingV2beta1
|
27
|
-
VERSION = 'V2beta1'
|
28
|
-
REVISION = '20190316'
|
29
|
-
|
30
|
-
# View and manage your data across Google Cloud Platform services
|
31
|
-
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
32
|
-
|
33
|
-
# View your data across Google Cloud Platform services
|
34
|
-
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
35
|
-
|
36
|
-
# Administrate log data for your projects
|
37
|
-
AUTH_LOGGING_ADMIN = 'https://www.googleapis.com/auth/logging.admin'
|
38
|
-
|
39
|
-
# View log data for your projects
|
40
|
-
AUTH_LOGGING_READ = 'https://www.googleapis.com/auth/logging.read'
|
41
|
-
|
42
|
-
# Submit log data for your projects
|
43
|
-
AUTH_LOGGING_WRITE = 'https://www.googleapis.com/auth/logging.write'
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
@@ -1,1764 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'date'
|
16
|
-
require 'google/apis/core/base_service'
|
17
|
-
require 'google/apis/core/json_representation'
|
18
|
-
require 'google/apis/core/hashable'
|
19
|
-
require 'google/apis/errors'
|
20
|
-
|
21
|
-
module Google
|
22
|
-
module Apis
|
23
|
-
module LoggingV2beta1
|
24
|
-
|
25
|
-
# BucketOptions describes the bucket boundaries used to create a histogram for
|
26
|
-
# the distribution. The buckets can be in a linear sequence, an exponential
|
27
|
-
# sequence, or each bucket can be specified explicitly. BucketOptions does not
|
28
|
-
# include the number of values in each bucket.A bucket has an inclusive lower
|
29
|
-
# bound and exclusive upper bound for the values that are counted for that
|
30
|
-
# bucket. The upper bound of a bucket must be strictly greater than the lower
|
31
|
-
# bound. The sequence of N buckets for a distribution consists of an underflow
|
32
|
-
# bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an
|
33
|
-
# overflow bucket (number N - 1). The buckets are contiguous: the lower bound of
|
34
|
-
# bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets
|
35
|
-
# span the whole range of finite values: lower bound of the underflow bucket is -
|
36
|
-
# infinity and the upper bound of the overflow bucket is +infinity. The finite
|
37
|
-
# buckets are so-called because both bounds are finite.
|
38
|
-
class BucketOptions
|
39
|
-
include Google::Apis::Core::Hashable
|
40
|
-
|
41
|
-
# Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (=
|
42
|
-
# N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1):
|
43
|
-
# boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at
|
44
|
-
# least one element. If bounds has only one element, then there are no finite
|
45
|
-
# buckets, and that single element is the common boundary of the overflow and
|
46
|
-
# underflow buckets.
|
47
|
-
# Corresponds to the JSON property `explicitBuckets`
|
48
|
-
# @return [Google::Apis::LoggingV2beta1::Explicit]
|
49
|
-
attr_accessor :explicit_buckets
|
50
|
-
|
51
|
-
# Specifies an exponential sequence of buckets that have a width that is
|
52
|
-
# proportional to the value of the lower bound. Each bucket represents a
|
53
|
-
# constant relative uncertainty on a specific value in the bucket.There are
|
54
|
-
# num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:
|
55
|
-
# Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i <
|
56
|
-
# N): scale * (growth_factor ^ (i - 1)).
|
57
|
-
# Corresponds to the JSON property `exponentialBuckets`
|
58
|
-
# @return [Google::Apis::LoggingV2beta1::Exponential]
|
59
|
-
attr_accessor :exponential_buckets
|
60
|
-
|
61
|
-
# Specifies a linear sequence of buckets that all have the same width (except
|
62
|
-
# overflow and underflow). Each bucket represents a constant absolute
|
63
|
-
# uncertainty on the specific value in the bucket.There are num_finite_buckets +
|
64
|
-
# 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-
|
65
|
-
# 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1))
|
66
|
-
# .
|
67
|
-
# Corresponds to the JSON property `linearBuckets`
|
68
|
-
# @return [Google::Apis::LoggingV2beta1::Linear]
|
69
|
-
attr_accessor :linear_buckets
|
70
|
-
|
71
|
-
def initialize(**args)
|
72
|
-
update!(**args)
|
73
|
-
end
|
74
|
-
|
75
|
-
# Update properties of this object
|
76
|
-
def update!(**args)
|
77
|
-
@explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets)
|
78
|
-
@exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets)
|
79
|
-
@linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets)
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
# A generic empty message that you can re-use to avoid defining duplicated empty
|
84
|
-
# messages in your APIs. A typical example is to use it as the request or the
|
85
|
-
# response type of an API method. For instance:
|
86
|
-
# service Foo `
|
87
|
-
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
88
|
-
# `
|
89
|
-
# The JSON representation for Empty is empty JSON object ``.
|
90
|
-
class Empty
|
91
|
-
include Google::Apis::Core::Hashable
|
92
|
-
|
93
|
-
def initialize(**args)
|
94
|
-
update!(**args)
|
95
|
-
end
|
96
|
-
|
97
|
-
# Update properties of this object
|
98
|
-
def update!(**args)
|
99
|
-
end
|
100
|
-
end
|
101
|
-
|
102
|
-
# Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (=
|
103
|
-
# N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1):
|
104
|
-
# boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at
|
105
|
-
# least one element. If bounds has only one element, then there are no finite
|
106
|
-
# buckets, and that single element is the common boundary of the overflow and
|
107
|
-
# underflow buckets.
|
108
|
-
class Explicit
|
109
|
-
include Google::Apis::Core::Hashable
|
110
|
-
|
111
|
-
# The values must be monotonically increasing.
|
112
|
-
# Corresponds to the JSON property `bounds`
|
113
|
-
# @return [Array<Float>]
|
114
|
-
attr_accessor :bounds
|
115
|
-
|
116
|
-
def initialize(**args)
|
117
|
-
update!(**args)
|
118
|
-
end
|
119
|
-
|
120
|
-
# Update properties of this object
|
121
|
-
def update!(**args)
|
122
|
-
@bounds = args[:bounds] if args.key?(:bounds)
|
123
|
-
end
|
124
|
-
end
|
125
|
-
|
126
|
-
# Specifies an exponential sequence of buckets that have a width that is
|
127
|
-
# proportional to the value of the lower bound. Each bucket represents a
|
128
|
-
# constant relative uncertainty on a specific value in the bucket.There are
|
129
|
-
# num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:
|
130
|
-
# Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i <
|
131
|
-
# N): scale * (growth_factor ^ (i - 1)).
|
132
|
-
class Exponential
|
133
|
-
include Google::Apis::Core::Hashable
|
134
|
-
|
135
|
-
# Must be greater than 1.
|
136
|
-
# Corresponds to the JSON property `growthFactor`
|
137
|
-
# @return [Float]
|
138
|
-
attr_accessor :growth_factor
|
139
|
-
|
140
|
-
# Must be greater than 0.
|
141
|
-
# Corresponds to the JSON property `numFiniteBuckets`
|
142
|
-
# @return [Fixnum]
|
143
|
-
attr_accessor :num_finite_buckets
|
144
|
-
|
145
|
-
# Must be greater than 0.
|
146
|
-
# Corresponds to the JSON property `scale`
|
147
|
-
# @return [Float]
|
148
|
-
attr_accessor :scale
|
149
|
-
|
150
|
-
def initialize(**args)
|
151
|
-
update!(**args)
|
152
|
-
end
|
153
|
-
|
154
|
-
# Update properties of this object
|
155
|
-
def update!(**args)
|
156
|
-
@growth_factor = args[:growth_factor] if args.key?(:growth_factor)
|
157
|
-
@num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
|
158
|
-
@scale = args[:scale] if args.key?(:scale)
|
159
|
-
end
|
160
|
-
end
|
161
|
-
|
162
|
-
# A common proto for logging HTTP requests. Only contains semantics defined by
|
163
|
-
# the HTTP specification. Product-specific logging information MUST be defined
|
164
|
-
# in a separate message.
|
165
|
-
class HttpRequest
|
166
|
-
include Google::Apis::Core::Hashable
|
167
|
-
|
168
|
-
# The number of HTTP response bytes inserted into cache. Set only when a cache
|
169
|
-
# fill was attempted.
|
170
|
-
# Corresponds to the JSON property `cacheFillBytes`
|
171
|
-
# @return [Fixnum]
|
172
|
-
attr_accessor :cache_fill_bytes
|
173
|
-
|
174
|
-
# Whether or not an entity was served from cache (with or without validation).
|
175
|
-
# Corresponds to the JSON property `cacheHit`
|
176
|
-
# @return [Boolean]
|
177
|
-
attr_accessor :cache_hit
|
178
|
-
alias_method :cache_hit?, :cache_hit
|
179
|
-
|
180
|
-
# Whether or not a cache lookup was attempted.
|
181
|
-
# Corresponds to the JSON property `cacheLookup`
|
182
|
-
# @return [Boolean]
|
183
|
-
attr_accessor :cache_lookup
|
184
|
-
alias_method :cache_lookup?, :cache_lookup
|
185
|
-
|
186
|
-
# Whether or not the response was validated with the origin server before being
|
187
|
-
# served from cache. This field is only meaningful if cache_hit is True.
|
188
|
-
# Corresponds to the JSON property `cacheValidatedWithOriginServer`
|
189
|
-
# @return [Boolean]
|
190
|
-
attr_accessor :cache_validated_with_origin_server
|
191
|
-
alias_method :cache_validated_with_origin_server?, :cache_validated_with_origin_server
|
192
|
-
|
193
|
-
# The request processing latency on the server, from the time the request was
|
194
|
-
# received until the response was sent.
|
195
|
-
# Corresponds to the JSON property `latency`
|
196
|
-
# @return [String]
|
197
|
-
attr_accessor :latency
|
198
|
-
|
199
|
-
# Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
|
200
|
-
# Corresponds to the JSON property `protocol`
|
201
|
-
# @return [String]
|
202
|
-
attr_accessor :protocol
|
203
|
-
|
204
|
-
# The referer URL of the request, as defined in HTTP/1.1 Header Field
|
205
|
-
# Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
|
206
|
-
# Corresponds to the JSON property `referer`
|
207
|
-
# @return [String]
|
208
|
-
attr_accessor :referer
|
209
|
-
|
210
|
-
# The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
|
211
|
-
# Examples: "192.168.1.1", "FE80::0202:B3FF:FE1E:8329".
|
212
|
-
# Corresponds to the JSON property `remoteIp`
|
213
|
-
# @return [String]
|
214
|
-
attr_accessor :remote_ip
|
215
|
-
|
216
|
-
# The request method. Examples: "GET", "HEAD", "PUT", "POST".
|
217
|
-
# Corresponds to the JSON property `requestMethod`
|
218
|
-
# @return [String]
|
219
|
-
attr_accessor :request_method
|
220
|
-
|
221
|
-
# The size of the HTTP request message in bytes, including the request headers
|
222
|
-
# and the request body.
|
223
|
-
# Corresponds to the JSON property `requestSize`
|
224
|
-
# @return [Fixnum]
|
225
|
-
attr_accessor :request_size
|
226
|
-
|
227
|
-
# The scheme (http, https), the host name, the path and the query portion of the
|
228
|
-
# URL that was requested. Example: "http://example.com/some/info?color=red".
|
229
|
-
# Corresponds to the JSON property `requestUrl`
|
230
|
-
# @return [String]
|
231
|
-
attr_accessor :request_url
|
232
|
-
|
233
|
-
# The size of the HTTP response message sent back to the client, in bytes,
|
234
|
-
# including the response headers and the response body.
|
235
|
-
# Corresponds to the JSON property `responseSize`
|
236
|
-
# @return [Fixnum]
|
237
|
-
attr_accessor :response_size
|
238
|
-
|
239
|
-
# The IP address (IPv4 or IPv6) of the origin server that the request was sent
|
240
|
-
# to.
|
241
|
-
# Corresponds to the JSON property `serverIp`
|
242
|
-
# @return [String]
|
243
|
-
attr_accessor :server_ip
|
244
|
-
|
245
|
-
# The response code indicating the status of response. Examples: 200, 404.
|
246
|
-
# Corresponds to the JSON property `status`
|
247
|
-
# @return [Fixnum]
|
248
|
-
attr_accessor :status
|
249
|
-
|
250
|
-
# The user agent sent by the client. Example: "Mozilla/4.0 (compatible; MSIE 6.0;
|
251
|
-
# Windows 98; Q312461; .NET
|
252
|
-
# CLR 1.0.3705)".
|
253
|
-
# Corresponds to the JSON property `userAgent`
|
254
|
-
# @return [String]
|
255
|
-
attr_accessor :user_agent
|
256
|
-
|
257
|
-
def initialize(**args)
|
258
|
-
update!(**args)
|
259
|
-
end
|
260
|
-
|
261
|
-
# Update properties of this object
|
262
|
-
def update!(**args)
|
263
|
-
@cache_fill_bytes = args[:cache_fill_bytes] if args.key?(:cache_fill_bytes)
|
264
|
-
@cache_hit = args[:cache_hit] if args.key?(:cache_hit)
|
265
|
-
@cache_lookup = args[:cache_lookup] if args.key?(:cache_lookup)
|
266
|
-
@cache_validated_with_origin_server = args[:cache_validated_with_origin_server] if args.key?(:cache_validated_with_origin_server)
|
267
|
-
@latency = args[:latency] if args.key?(:latency)
|
268
|
-
@protocol = args[:protocol] if args.key?(:protocol)
|
269
|
-
@referer = args[:referer] if args.key?(:referer)
|
270
|
-
@remote_ip = args[:remote_ip] if args.key?(:remote_ip)
|
271
|
-
@request_method = args[:request_method] if args.key?(:request_method)
|
272
|
-
@request_size = args[:request_size] if args.key?(:request_size)
|
273
|
-
@request_url = args[:request_url] if args.key?(:request_url)
|
274
|
-
@response_size = args[:response_size] if args.key?(:response_size)
|
275
|
-
@server_ip = args[:server_ip] if args.key?(:server_ip)
|
276
|
-
@status = args[:status] if args.key?(:status)
|
277
|
-
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
278
|
-
end
|
279
|
-
end
|
280
|
-
|
281
|
-
# A description of a label.
|
282
|
-
class LabelDescriptor
|
283
|
-
include Google::Apis::Core::Hashable
|
284
|
-
|
285
|
-
# A human-readable description for the label.
|
286
|
-
# Corresponds to the JSON property `description`
|
287
|
-
# @return [String]
|
288
|
-
attr_accessor :description
|
289
|
-
|
290
|
-
# The label key.
|
291
|
-
# Corresponds to the JSON property `key`
|
292
|
-
# @return [String]
|
293
|
-
attr_accessor :key
|
294
|
-
|
295
|
-
# The type of data that can be assigned to the label.
|
296
|
-
# Corresponds to the JSON property `valueType`
|
297
|
-
# @return [String]
|
298
|
-
attr_accessor :value_type
|
299
|
-
|
300
|
-
def initialize(**args)
|
301
|
-
update!(**args)
|
302
|
-
end
|
303
|
-
|
304
|
-
# Update properties of this object
|
305
|
-
def update!(**args)
|
306
|
-
@description = args[:description] if args.key?(:description)
|
307
|
-
@key = args[:key] if args.key?(:key)
|
308
|
-
@value_type = args[:value_type] if args.key?(:value_type)
|
309
|
-
end
|
310
|
-
end
|
311
|
-
|
312
|
-
# Specifies a linear sequence of buckets that all have the same width (except
|
313
|
-
# overflow and underflow). Each bucket represents a constant absolute
|
314
|
-
# uncertainty on the specific value in the bucket.There are num_finite_buckets +
|
315
|
-
# 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-
|
316
|
-
# 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1))
|
317
|
-
# .
|
318
|
-
class Linear
|
319
|
-
include Google::Apis::Core::Hashable
|
320
|
-
|
321
|
-
# Must be greater than 0.
|
322
|
-
# Corresponds to the JSON property `numFiniteBuckets`
|
323
|
-
# @return [Fixnum]
|
324
|
-
attr_accessor :num_finite_buckets
|
325
|
-
|
326
|
-
# Lower bound of the first bucket.
|
327
|
-
# Corresponds to the JSON property `offset`
|
328
|
-
# @return [Float]
|
329
|
-
attr_accessor :offset
|
330
|
-
|
331
|
-
# Must be greater than 0.
|
332
|
-
# Corresponds to the JSON property `width`
|
333
|
-
# @return [Float]
|
334
|
-
attr_accessor :width
|
335
|
-
|
336
|
-
def initialize(**args)
|
337
|
-
update!(**args)
|
338
|
-
end
|
339
|
-
|
340
|
-
# Update properties of this object
|
341
|
-
def update!(**args)
|
342
|
-
@num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
|
343
|
-
@offset = args[:offset] if args.key?(:offset)
|
344
|
-
@width = args[:width] if args.key?(:width)
|
345
|
-
end
|
346
|
-
end
|
347
|
-
|
348
|
-
# The parameters to ListLogEntries.
|
349
|
-
class ListLogEntriesRequest
|
350
|
-
include Google::Apis::Core::Hashable
|
351
|
-
|
352
|
-
# Optional. A filter that chooses which log entries to return. See Advanced Logs
|
353
|
-
# Filters. Only log entries that match the filter are returned. An empty filter
|
354
|
-
# matches all log entries in the resources listed in resource_names. Referencing
|
355
|
-
# a parent resource that is not listed in resource_names will cause the filter
|
356
|
-
# to return no results. The maximum length of the filter is 20000 characters.
|
357
|
-
# Corresponds to the JSON property `filter`
|
358
|
-
# @return [String]
|
359
|
-
attr_accessor :filter
|
360
|
-
|
361
|
-
# Optional. How the results should be sorted. Presently, the only permitted
|
362
|
-
# values are "timestamp asc" (default) and "timestamp desc". The first option
|
363
|
-
# returns entries in order of increasing values of LogEntry.timestamp (oldest
|
364
|
-
# first), and the second option returns entries in order of decreasing
|
365
|
-
# timestamps (newest first). Entries with equal timestamps are returned in order
|
366
|
-
# of their insert_id values.
|
367
|
-
# Corresponds to the JSON property `orderBy`
|
368
|
-
# @return [String]
|
369
|
-
attr_accessor :order_by
|
370
|
-
|
371
|
-
# Optional. The maximum number of results to return from this request. Non-
|
372
|
-
# positive values are ignored. The presence of next_page_token in the response
|
373
|
-
# indicates that more results might be available.
|
374
|
-
# Corresponds to the JSON property `pageSize`
|
375
|
-
# @return [Fixnum]
|
376
|
-
attr_accessor :page_size
|
377
|
-
|
378
|
-
# Optional. If present, then retrieve the next batch of results from the
|
379
|
-
# preceding call to this method. page_token must be the value of next_page_token
|
380
|
-
# from the previous response. The values of other method parameters should be
|
381
|
-
# identical to those in the previous call.
|
382
|
-
# Corresponds to the JSON property `pageToken`
|
383
|
-
# @return [String]
|
384
|
-
attr_accessor :page_token
|
385
|
-
|
386
|
-
# Deprecated. Use resource_names instead. One or more project identifiers or
|
387
|
-
# project numbers from which to retrieve log entries. Example: "my-project-1A".
|
388
|
-
# Corresponds to the JSON property `projectIds`
|
389
|
-
# @return [Array<String>]
|
390
|
-
attr_accessor :project_ids
|
391
|
-
|
392
|
-
# Required. Names of one or more parent resources from which to retrieve log
|
393
|
-
# entries:
|
394
|
-
# "projects/[PROJECT_ID]"
|
395
|
-
# "organizations/[ORGANIZATION_ID]"
|
396
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
397
|
-
# "folders/[FOLDER_ID]"
|
398
|
-
# Projects listed in the project_ids field are added to this list.
|
399
|
-
# Corresponds to the JSON property `resourceNames`
|
400
|
-
# @return [Array<String>]
|
401
|
-
attr_accessor :resource_names
|
402
|
-
|
403
|
-
def initialize(**args)
|
404
|
-
update!(**args)
|
405
|
-
end
|
406
|
-
|
407
|
-
# Update properties of this object
|
408
|
-
def update!(**args)
|
409
|
-
@filter = args[:filter] if args.key?(:filter)
|
410
|
-
@order_by = args[:order_by] if args.key?(:order_by)
|
411
|
-
@page_size = args[:page_size] if args.key?(:page_size)
|
412
|
-
@page_token = args[:page_token] if args.key?(:page_token)
|
413
|
-
@project_ids = args[:project_ids] if args.key?(:project_ids)
|
414
|
-
@resource_names = args[:resource_names] if args.key?(:resource_names)
|
415
|
-
end
|
416
|
-
end
|
417
|
-
|
418
|
-
# Result returned from ListLogEntries.
|
419
|
-
class ListLogEntriesResponse
|
420
|
-
include Google::Apis::Core::Hashable
|
421
|
-
|
422
|
-
# A list of log entries. If entries is empty, nextPageToken may still be
|
423
|
-
# returned, indicating that more entries may exist. See nextPageToken for more
|
424
|
-
# information.
|
425
|
-
# Corresponds to the JSON property `entries`
|
426
|
-
# @return [Array<Google::Apis::LoggingV2beta1::LogEntry>]
|
427
|
-
attr_accessor :entries
|
428
|
-
|
429
|
-
# If there might be more results than those appearing in this response, then
|
430
|
-
# nextPageToken is included. To get the next set of results, call this method
|
431
|
-
# again using the value of nextPageToken as pageToken.If a value for
|
432
|
-
# next_page_token appears and the entries field is empty, it means that the
|
433
|
-
# search found no log entries so far but it did not have time to search all the
|
434
|
-
# possible log entries. Retry the method with this value for page_token to
|
435
|
-
# continue the search. Alternatively, consider speeding up the search by
|
436
|
-
# changing your filter to specify a single log name or resource type, or to
|
437
|
-
# narrow the time range of the search.
|
438
|
-
# Corresponds to the JSON property `nextPageToken`
|
439
|
-
# @return [String]
|
440
|
-
attr_accessor :next_page_token
|
441
|
-
|
442
|
-
def initialize(**args)
|
443
|
-
update!(**args)
|
444
|
-
end
|
445
|
-
|
446
|
-
# Update properties of this object
|
447
|
-
def update!(**args)
|
448
|
-
@entries = args[:entries] if args.key?(:entries)
|
449
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
450
|
-
end
|
451
|
-
end
|
452
|
-
|
453
|
-
# Result returned from ListLogMetrics.
|
454
|
-
class ListLogMetricsResponse
|
455
|
-
include Google::Apis::Core::Hashable
|
456
|
-
|
457
|
-
# A list of logs-based metrics.
|
458
|
-
# Corresponds to the JSON property `metrics`
|
459
|
-
# @return [Array<Google::Apis::LoggingV2beta1::LogMetric>]
|
460
|
-
attr_accessor :metrics
|
461
|
-
|
462
|
-
# If there might be more results than appear in this response, then
|
463
|
-
# nextPageToken is included. To get the next set of results, call this method
|
464
|
-
# again using the value of nextPageToken as pageToken.
|
465
|
-
# Corresponds to the JSON property `nextPageToken`
|
466
|
-
# @return [String]
|
467
|
-
attr_accessor :next_page_token
|
468
|
-
|
469
|
-
def initialize(**args)
|
470
|
-
update!(**args)
|
471
|
-
end
|
472
|
-
|
473
|
-
# Update properties of this object
|
474
|
-
def update!(**args)
|
475
|
-
@metrics = args[:metrics] if args.key?(:metrics)
|
476
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
477
|
-
end
|
478
|
-
end
|
479
|
-
|
480
|
-
# Result returned from ListMonitoredResourceDescriptors.
|
481
|
-
class ListMonitoredResourceDescriptorsResponse
|
482
|
-
include Google::Apis::Core::Hashable
|
483
|
-
|
484
|
-
# If there might be more results than those appearing in this response, then
|
485
|
-
# nextPageToken is included. To get the next set of results, call this method
|
486
|
-
# again using the value of nextPageToken as pageToken.
|
487
|
-
# Corresponds to the JSON property `nextPageToken`
|
488
|
-
# @return [String]
|
489
|
-
attr_accessor :next_page_token
|
490
|
-
|
491
|
-
# A list of resource descriptors.
|
492
|
-
# Corresponds to the JSON property `resourceDescriptors`
|
493
|
-
# @return [Array<Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor>]
|
494
|
-
attr_accessor :resource_descriptors
|
495
|
-
|
496
|
-
def initialize(**args)
|
497
|
-
update!(**args)
|
498
|
-
end
|
499
|
-
|
500
|
-
# Update properties of this object
|
501
|
-
def update!(**args)
|
502
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
503
|
-
@resource_descriptors = args[:resource_descriptors] if args.key?(:resource_descriptors)
|
504
|
-
end
|
505
|
-
end
|
506
|
-
|
507
|
-
# Result returned from ListSinks.
|
508
|
-
class ListSinksResponse
|
509
|
-
include Google::Apis::Core::Hashable
|
510
|
-
|
511
|
-
# If there might be more results than appear in this response, then
|
512
|
-
# nextPageToken is included. To get the next set of results, call the same
|
513
|
-
# method again using the value of nextPageToken as pageToken.
|
514
|
-
# Corresponds to the JSON property `nextPageToken`
|
515
|
-
# @return [String]
|
516
|
-
attr_accessor :next_page_token
|
517
|
-
|
518
|
-
# A list of sinks.
|
519
|
-
# Corresponds to the JSON property `sinks`
|
520
|
-
# @return [Array<Google::Apis::LoggingV2beta1::LogSink>]
|
521
|
-
attr_accessor :sinks
|
522
|
-
|
523
|
-
def initialize(**args)
|
524
|
-
update!(**args)
|
525
|
-
end
|
526
|
-
|
527
|
-
# Update properties of this object
|
528
|
-
def update!(**args)
|
529
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
530
|
-
@sinks = args[:sinks] if args.key?(:sinks)
|
531
|
-
end
|
532
|
-
end
|
533
|
-
|
534
|
-
# An individual entry in a log.
|
535
|
-
class LogEntry
|
536
|
-
include Google::Apis::Core::Hashable
|
537
|
-
|
538
|
-
# A common proto for logging HTTP requests. Only contains semantics defined by
|
539
|
-
# the HTTP specification. Product-specific logging information MUST be defined
|
540
|
-
# in a separate message.
|
541
|
-
# Corresponds to the JSON property `httpRequest`
|
542
|
-
# @return [Google::Apis::LoggingV2beta1::HttpRequest]
|
543
|
-
attr_accessor :http_request
|
544
|
-
|
545
|
-
# Optional. A unique identifier for the log entry. If you provide a value, then
|
546
|
-
# Logging considers other log entries in the same project, with the same
|
547
|
-
# timestamp, and with the same insert_id to be duplicates which can be removed.
|
548
|
-
# If omitted in new log entries, then Logging assigns its own unique identifier.
|
549
|
-
# The insert_id is also used to order log entries that have the same timestamp
|
550
|
-
# value.
|
551
|
-
# Corresponds to the JSON property `insertId`
|
552
|
-
# @return [String]
|
553
|
-
attr_accessor :insert_id
|
554
|
-
|
555
|
-
# The log entry payload, represented as a structure that is expressed as a JSON
|
556
|
-
# object.
|
557
|
-
# Corresponds to the JSON property `jsonPayload`
|
558
|
-
# @return [Hash<String,Object>]
|
559
|
-
attr_accessor :json_payload
|
560
|
-
|
561
|
-
# Optional. A set of user-defined (key, value) data that provides additional
|
562
|
-
# information about the log entry.
|
563
|
-
# Corresponds to the JSON property `labels`
|
564
|
-
# @return [Hash<String,String>]
|
565
|
-
attr_accessor :labels
|
566
|
-
|
567
|
-
# Required. The resource name of the log to which this log entry belongs:
|
568
|
-
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
569
|
-
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
570
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
571
|
-
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
572
|
-
# A project number may optionally be used in place of PROJECT_ID. The project
|
573
|
-
# number is translated to its corresponding PROJECT_ID internally and the
|
574
|
-
# log_name field will contain PROJECT_ID in queries and exports.[LOG_ID] must be
|
575
|
-
# URL-encoded within log_name. Example: "organizations/1234567890/logs/
|
576
|
-
# cloudresourcemanager.googleapis.com%2Factivity". [LOG_ID] must be less than
|
577
|
-
# 512 characters long and can only include the following characters: upper and
|
578
|
-
# lower case alphanumeric characters, forward-slash, underscore, hyphen, and
|
579
|
-
# period.For backward compatibility, if log_name begins with a forward-slash,
|
580
|
-
# such as /projects/..., then the log entry is ingested as usual but the forward-
|
581
|
-
# slash is removed. Listing the log entry will not show the leading slash and
|
582
|
-
# filtering for a log name with a leading slash will never return any results.
|
583
|
-
# Corresponds to the JSON property `logName`
|
584
|
-
# @return [String]
|
585
|
-
attr_accessor :log_name
|
586
|
-
|
587
|
-
# Auxiliary metadata for a MonitoredResource object. MonitoredResource objects
|
588
|
-
# contain the minimum set of information to uniquely identify a monitored
|
589
|
-
# resource instance. There is some other useful auxiliary metadata. Monitoring
|
590
|
-
# and Logging use an ingestion pipeline to extract metadata for cloud resources
|
591
|
-
# of all types, and store the metadata in this message.
|
592
|
-
# Corresponds to the JSON property `metadata`
|
593
|
-
# @return [Google::Apis::LoggingV2beta1::MonitoredResourceMetadata]
|
594
|
-
attr_accessor :metadata
|
595
|
-
|
596
|
-
# Additional information about a potentially long-running operation with which a
|
597
|
-
# log entry is associated.
|
598
|
-
# Corresponds to the JSON property `operation`
|
599
|
-
# @return [Google::Apis::LoggingV2beta1::LogEntryOperation]
|
600
|
-
attr_accessor :operation
|
601
|
-
|
602
|
-
# The log entry payload, represented as a protocol buffer. Some Google Cloud
|
603
|
-
# Platform services use this field for their log entry payloads.
|
604
|
-
# Corresponds to the JSON property `protoPayload`
|
605
|
-
# @return [Hash<String,Object>]
|
606
|
-
attr_accessor :proto_payload
|
607
|
-
|
608
|
-
# Output only. The time the log entry was received by Logging.
|
609
|
-
# Corresponds to the JSON property `receiveTimestamp`
|
610
|
-
# @return [String]
|
611
|
-
attr_accessor :receive_timestamp
|
612
|
-
|
613
|
-
# An object representing a resource that can be used for monitoring, logging,
|
614
|
-
# billing, or other purposes. Examples include virtual machine instances,
|
615
|
-
# databases, and storage devices such as disks. The type field identifies a
|
616
|
-
# MonitoredResourceDescriptor object that describes the resource's schema.
|
617
|
-
# Information in the labels field identifies the actual resource and its
|
618
|
-
# attributes according to the schema. For example, a particular Compute Engine
|
619
|
-
# VM instance could be represented by the following object, because the
|
620
|
-
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
|
621
|
-
# zone":
|
622
|
-
# ` "type": "gce_instance",
|
623
|
-
# "labels": ` "instance_id": "12345678901234",
|
624
|
-
# "zone": "us-central1-a" ``
|
625
|
-
# Corresponds to the JSON property `resource`
|
626
|
-
# @return [Google::Apis::LoggingV2beta1::MonitoredResource]
|
627
|
-
attr_accessor :resource
|
628
|
-
|
629
|
-
# Optional. The severity of the log entry. The default value is LogSeverity.
|
630
|
-
# DEFAULT.
|
631
|
-
# Corresponds to the JSON property `severity`
|
632
|
-
# @return [String]
|
633
|
-
attr_accessor :severity
|
634
|
-
|
635
|
-
# Additional information about the source code location that produced the log
|
636
|
-
# entry.
|
637
|
-
# Corresponds to the JSON property `sourceLocation`
|
638
|
-
# @return [Google::Apis::LoggingV2beta1::LogEntrySourceLocation]
|
639
|
-
attr_accessor :source_location
|
640
|
-
|
641
|
-
# Optional. The span ID within the trace associated with the log entry.For Trace
|
642
|
-
# spans, this is the same format that the Trace API v2 uses: a 16-character
|
643
|
-
# hexadecimal encoding of an 8-byte array, such as <code>"000000000000004a"</
|
644
|
-
# code>.
|
645
|
-
# Corresponds to the JSON property `spanId`
|
646
|
-
# @return [String]
|
647
|
-
attr_accessor :span_id
|
648
|
-
|
649
|
-
# The log entry payload, represented as a Unicode string (UTF-8).
|
650
|
-
# Corresponds to the JSON property `textPayload`
|
651
|
-
# @return [String]
|
652
|
-
attr_accessor :text_payload
|
653
|
-
|
654
|
-
# Optional. The time the event described by the log entry occurred. This time is
|
655
|
-
# used to compute the log entry's age and to enforce the logs retention period.
|
656
|
-
# If this field is omitted in a new log entry, then Logging assigns it the
|
657
|
-
# current time. Timestamps have nanosecond accuracy, but trailing zeros in the
|
658
|
-
# fractional seconds might be omitted when the timestamp is displayed.Incoming
|
659
|
-
# log entries should have timestamps that are no more than the logs retention
|
660
|
-
# period in the past, and no more than 24 hours in the future. Log entries
|
661
|
-
# outside those time boundaries will not be available when calling entries.list,
|
662
|
-
# but those log entries can still be exported with LogSinks.
|
663
|
-
# Corresponds to the JSON property `timestamp`
|
664
|
-
# @return [String]
|
665
|
-
attr_accessor :timestamp
|
666
|
-
|
667
|
-
# Optional. Resource name of the trace associated with the log entry, if any. If
|
668
|
-
# it contains a relative resource name, the name is assumed to be relative to //
|
669
|
-
# tracing.googleapis.com. Example: projects/my-projectid/traces/
|
670
|
-
# 06796866738c859f2f19b7cfb3214824
|
671
|
-
# Corresponds to the JSON property `trace`
|
672
|
-
# @return [String]
|
673
|
-
attr_accessor :trace
|
674
|
-
|
675
|
-
# Optional. The sampling decision of the trace associated with the log entry.
|
676
|
-
# True means that the trace resource name in the trace field was sampled for
|
677
|
-
# storage in a trace backend. False means that the trace was not sampled for
|
678
|
-
# storage when this log entry was written, or the sampling decision was unknown
|
679
|
-
# at the time. A non-sampled trace value is still useful as a request
|
680
|
-
# correlation identifier. The default is False.
|
681
|
-
# Corresponds to the JSON property `traceSampled`
|
682
|
-
# @return [Boolean]
|
683
|
-
attr_accessor :trace_sampled
|
684
|
-
alias_method :trace_sampled?, :trace_sampled
|
685
|
-
|
686
|
-
def initialize(**args)
|
687
|
-
update!(**args)
|
688
|
-
end
|
689
|
-
|
690
|
-
# Update properties of this object
|
691
|
-
def update!(**args)
|
692
|
-
@http_request = args[:http_request] if args.key?(:http_request)
|
693
|
-
@insert_id = args[:insert_id] if args.key?(:insert_id)
|
694
|
-
@json_payload = args[:json_payload] if args.key?(:json_payload)
|
695
|
-
@labels = args[:labels] if args.key?(:labels)
|
696
|
-
@log_name = args[:log_name] if args.key?(:log_name)
|
697
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
698
|
-
@operation = args[:operation] if args.key?(:operation)
|
699
|
-
@proto_payload = args[:proto_payload] if args.key?(:proto_payload)
|
700
|
-
@receive_timestamp = args[:receive_timestamp] if args.key?(:receive_timestamp)
|
701
|
-
@resource = args[:resource] if args.key?(:resource)
|
702
|
-
@severity = args[:severity] if args.key?(:severity)
|
703
|
-
@source_location = args[:source_location] if args.key?(:source_location)
|
704
|
-
@span_id = args[:span_id] if args.key?(:span_id)
|
705
|
-
@text_payload = args[:text_payload] if args.key?(:text_payload)
|
706
|
-
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
707
|
-
@trace = args[:trace] if args.key?(:trace)
|
708
|
-
@trace_sampled = args[:trace_sampled] if args.key?(:trace_sampled)
|
709
|
-
end
|
710
|
-
end
|
711
|
-
|
712
|
-
# Additional information about a potentially long-running operation with which a
|
713
|
-
# log entry is associated.
|
714
|
-
class LogEntryOperation
|
715
|
-
include Google::Apis::Core::Hashable
|
716
|
-
|
717
|
-
# Optional. Set this to True if this is the first log entry in the operation.
|
718
|
-
# Corresponds to the JSON property `first`
|
719
|
-
# @return [Boolean]
|
720
|
-
attr_accessor :first
|
721
|
-
alias_method :first?, :first
|
722
|
-
|
723
|
-
# Optional. An arbitrary operation identifier. Log entries with the same
|
724
|
-
# identifier are assumed to be part of the same operation.
|
725
|
-
# Corresponds to the JSON property `id`
|
726
|
-
# @return [String]
|
727
|
-
attr_accessor :id
|
728
|
-
|
729
|
-
# Optional. Set this to True if this is the last log entry in the operation.
|
730
|
-
# Corresponds to the JSON property `last`
|
731
|
-
# @return [Boolean]
|
732
|
-
attr_accessor :last
|
733
|
-
alias_method :last?, :last
|
734
|
-
|
735
|
-
# Optional. An arbitrary producer identifier. The combination of id and producer
|
736
|
-
# must be globally unique. Examples for producer: "MyDivision.MyBigCompany.com",
|
737
|
-
# "github.com/MyProject/MyApplication".
|
738
|
-
# Corresponds to the JSON property `producer`
|
739
|
-
# @return [String]
|
740
|
-
attr_accessor :producer
|
741
|
-
|
742
|
-
def initialize(**args)
|
743
|
-
update!(**args)
|
744
|
-
end
|
745
|
-
|
746
|
-
# Update properties of this object
|
747
|
-
def update!(**args)
|
748
|
-
@first = args[:first] if args.key?(:first)
|
749
|
-
@id = args[:id] if args.key?(:id)
|
750
|
-
@last = args[:last] if args.key?(:last)
|
751
|
-
@producer = args[:producer] if args.key?(:producer)
|
752
|
-
end
|
753
|
-
end
|
754
|
-
|
755
|
-
# Additional information about the source code location that produced the log
|
756
|
-
# entry.
|
757
|
-
class LogEntrySourceLocation
|
758
|
-
include Google::Apis::Core::Hashable
|
759
|
-
|
760
|
-
# Optional. Source file name. Depending on the runtime environment, this might
|
761
|
-
# be a simple name or a fully-qualified name.
|
762
|
-
# Corresponds to the JSON property `file`
|
763
|
-
# @return [String]
|
764
|
-
attr_accessor :file
|
765
|
-
|
766
|
-
# Optional. Human-readable name of the function or method being invoked, with
|
767
|
-
# optional context such as the class or package name. This information may be
|
768
|
-
# used in contexts such as the logs viewer, where a file and line number are
|
769
|
-
# less meaningful. The format can vary by language. For example: qual.if.ied.
|
770
|
-
# Class.method (Java), dir/package.func (Go), function (Python).
|
771
|
-
# Corresponds to the JSON property `function`
|
772
|
-
# @return [String]
|
773
|
-
attr_accessor :function
|
774
|
-
|
775
|
-
# Optional. Line within the source file. 1-based; 0 indicates no line number
|
776
|
-
# available.
|
777
|
-
# Corresponds to the JSON property `line`
|
778
|
-
# @return [Fixnum]
|
779
|
-
attr_accessor :line
|
780
|
-
|
781
|
-
def initialize(**args)
|
782
|
-
update!(**args)
|
783
|
-
end
|
784
|
-
|
785
|
-
# Update properties of this object
|
786
|
-
def update!(**args)
|
787
|
-
@file = args[:file] if args.key?(:file)
|
788
|
-
@function = args[:function] if args.key?(:function)
|
789
|
-
@line = args[:line] if args.key?(:line)
|
790
|
-
end
|
791
|
-
end
|
792
|
-
|
793
|
-
# Application log line emitted while processing a request.
|
794
|
-
class LogLine
|
795
|
-
include Google::Apis::Core::Hashable
|
796
|
-
|
797
|
-
# App-provided log message.
|
798
|
-
# Corresponds to the JSON property `logMessage`
|
799
|
-
# @return [String]
|
800
|
-
attr_accessor :log_message
|
801
|
-
|
802
|
-
# Severity of this log entry.
|
803
|
-
# Corresponds to the JSON property `severity`
|
804
|
-
# @return [String]
|
805
|
-
attr_accessor :severity
|
806
|
-
|
807
|
-
# Specifies a location in a source code file.
|
808
|
-
# Corresponds to the JSON property `sourceLocation`
|
809
|
-
# @return [Google::Apis::LoggingV2beta1::SourceLocation]
|
810
|
-
attr_accessor :source_location
|
811
|
-
|
812
|
-
# Approximate time when this log entry was made.
|
813
|
-
# Corresponds to the JSON property `time`
|
814
|
-
# @return [String]
|
815
|
-
attr_accessor :time
|
816
|
-
|
817
|
-
def initialize(**args)
|
818
|
-
update!(**args)
|
819
|
-
end
|
820
|
-
|
821
|
-
# Update properties of this object
|
822
|
-
def update!(**args)
|
823
|
-
@log_message = args[:log_message] if args.key?(:log_message)
|
824
|
-
@severity = args[:severity] if args.key?(:severity)
|
825
|
-
@source_location = args[:source_location] if args.key?(:source_location)
|
826
|
-
@time = args[:time] if args.key?(:time)
|
827
|
-
end
|
828
|
-
end
|
829
|
-
|
830
|
-
# Describes a logs-based metric. The value of the metric is the number of log
|
831
|
-
# entries that match a logs filter in a given time interval.Logs-based metric
|
832
|
-
# can also be used to extract values from logs and create a a distribution of
|
833
|
-
# the values. The distribution records the statistics of the extracted values
|
834
|
-
# along with an optional histogram of the values as specified by the bucket
|
835
|
-
# options.
|
836
|
-
class LogMetric
|
837
|
-
include Google::Apis::Core::Hashable
|
838
|
-
|
839
|
-
# BucketOptions describes the bucket boundaries used to create a histogram for
|
840
|
-
# the distribution. The buckets can be in a linear sequence, an exponential
|
841
|
-
# sequence, or each bucket can be specified explicitly. BucketOptions does not
|
842
|
-
# include the number of values in each bucket.A bucket has an inclusive lower
|
843
|
-
# bound and exclusive upper bound for the values that are counted for that
|
844
|
-
# bucket. The upper bound of a bucket must be strictly greater than the lower
|
845
|
-
# bound. The sequence of N buckets for a distribution consists of an underflow
|
846
|
-
# bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an
|
847
|
-
# overflow bucket (number N - 1). The buckets are contiguous: the lower bound of
|
848
|
-
# bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets
|
849
|
-
# span the whole range of finite values: lower bound of the underflow bucket is -
|
850
|
-
# infinity and the upper bound of the overflow bucket is +infinity. The finite
|
851
|
-
# buckets are so-called because both bounds are finite.
|
852
|
-
# Corresponds to the JSON property `bucketOptions`
|
853
|
-
# @return [Google::Apis::LoggingV2beta1::BucketOptions]
|
854
|
-
attr_accessor :bucket_options
|
855
|
-
|
856
|
-
# Output only. The creation timestamp of the metric.This field may not be
|
857
|
-
# present for older metrics.
|
858
|
-
# Corresponds to the JSON property `createTime`
|
859
|
-
# @return [String]
|
860
|
-
attr_accessor :create_time
|
861
|
-
|
862
|
-
# Optional. A description of this metric, which is used in documentation. The
|
863
|
-
# maximum length of the description is 8000 characters.
|
864
|
-
# Corresponds to the JSON property `description`
|
865
|
-
# @return [String]
|
866
|
-
attr_accessor :description
|
867
|
-
|
868
|
-
# Required. An advanced logs filter which is used to match log entries. Example:
|
869
|
-
# "resource.type=gae_app AND severity>=ERROR"
|
870
|
-
# The maximum length of the filter is 20000 characters.
|
871
|
-
# Corresponds to the JSON property `filter`
|
872
|
-
# @return [String]
|
873
|
-
attr_accessor :filter
|
874
|
-
|
875
|
-
# Optional. A map from a label key string to an extractor expression which is
|
876
|
-
# used to extract data from a log entry field and assign as the label value.
|
877
|
-
# Each label key specified in the LabelDescriptor must have an associated
|
878
|
-
# extractor expression in this map. The syntax of the extractor expression is
|
879
|
-
# the same as for the value_extractor field.The extracted value is converted to
|
880
|
-
# the type defined in the label descriptor. If the either the extraction or the
|
881
|
-
# type conversion fails, the label will have a default value. The default value
|
882
|
-
# for a string label is an empty string, for an integer label its 0, and for a
|
883
|
-
# boolean label its false.Note that there are upper bounds on the maximum number
|
884
|
-
# of labels and the number of active time series that are allowed in a project.
|
885
|
-
# Corresponds to the JSON property `labelExtractors`
|
886
|
-
# @return [Hash<String,String>]
|
887
|
-
attr_accessor :label_extractors
|
888
|
-
|
889
|
-
# Defines a metric type and its schema. Once a metric descriptor is created,
|
890
|
-
# deleting or altering it stops data collection and makes the metric type's
|
891
|
-
# existing data unusable.
|
892
|
-
# Corresponds to the JSON property `metricDescriptor`
|
893
|
-
# @return [Google::Apis::LoggingV2beta1::MetricDescriptor]
|
894
|
-
attr_accessor :metric_descriptor
|
895
|
-
|
896
|
-
# Required. The client-assigned metric identifier. Examples: "error_count", "
|
897
|
-
# nginx/requests".Metric identifiers are limited to 100 characters and can
|
898
|
-
# include only the following characters: A-Z, a-z, 0-9, and the special
|
899
|
-
# characters _-.,+!*',()%/. The forward-slash character (/) denotes a hierarchy
|
900
|
-
# of name pieces, and it cannot be the first character of the name.The metric
|
901
|
-
# identifier in this field must not be URL-encoded (https://en.wikipedia.org/
|
902
|
-
# wiki/Percent-encoding). However, when the metric identifier appears as the [
|
903
|
-
# METRIC_ID] part of a metric_name API parameter, then the metric identifier
|
904
|
-
# must be URL-encoded. Example: "projects/my-project/metrics/nginx%2Frequests".
|
905
|
-
# Corresponds to the JSON property `name`
|
906
|
-
# @return [String]
|
907
|
-
attr_accessor :name
|
908
|
-
|
909
|
-
# Output only. The last update timestamp of the metric.This field may not be
|
910
|
-
# present for older metrics.
|
911
|
-
# Corresponds to the JSON property `updateTime`
|
912
|
-
# @return [String]
|
913
|
-
attr_accessor :update_time
|
914
|
-
|
915
|
-
# Optional. A value_extractor is required when using a distribution logs-based
|
916
|
-
# metric to extract the values to record from a log entry. Two functions are
|
917
|
-
# supported for value extraction: EXTRACT(field) or REGEXP_EXTRACT(field, regex).
|
918
|
-
# The argument are: 1. field: The name of the log entry field from which the
|
919
|
-
# value is to be extracted. 2. regex: A regular expression using the Google
|
920
|
-
# RE2 syntax (https://github.com/google/re2/wiki/Syntax) with a single capture
|
921
|
-
# group to extract data from the specified log entry field. The value of the
|
922
|
-
# field is converted to a string before applying the regex. It is an error to
|
923
|
-
# specify a regex that does not include exactly one capture group.The result of
|
924
|
-
# the extraction must be convertible to a double type, as the distribution
|
925
|
-
# always records double values. If either the extraction or the conversion to
|
926
|
-
# double fails, then those values are not recorded in the distribution.Example:
|
927
|
-
# REGEXP_EXTRACT(jsonPayload.request, ".*quantity=(\d+).*")
|
928
|
-
# Corresponds to the JSON property `valueExtractor`
|
929
|
-
# @return [String]
|
930
|
-
attr_accessor :value_extractor
|
931
|
-
|
932
|
-
# Deprecated. The API version that created or updated this metric. The v2 format
|
933
|
-
# is used by default and cannot be changed.
|
934
|
-
# Corresponds to the JSON property `version`
|
935
|
-
# @return [String]
|
936
|
-
attr_accessor :version
|
937
|
-
|
938
|
-
def initialize(**args)
|
939
|
-
update!(**args)
|
940
|
-
end
|
941
|
-
|
942
|
-
# Update properties of this object
|
943
|
-
def update!(**args)
|
944
|
-
@bucket_options = args[:bucket_options] if args.key?(:bucket_options)
|
945
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
946
|
-
@description = args[:description] if args.key?(:description)
|
947
|
-
@filter = args[:filter] if args.key?(:filter)
|
948
|
-
@label_extractors = args[:label_extractors] if args.key?(:label_extractors)
|
949
|
-
@metric_descriptor = args[:metric_descriptor] if args.key?(:metric_descriptor)
|
950
|
-
@name = args[:name] if args.key?(:name)
|
951
|
-
@update_time = args[:update_time] if args.key?(:update_time)
|
952
|
-
@value_extractor = args[:value_extractor] if args.key?(:value_extractor)
|
953
|
-
@version = args[:version] if args.key?(:version)
|
954
|
-
end
|
955
|
-
end
|
956
|
-
|
957
|
-
# Describes a sink used to export log entries to one of the following
|
958
|
-
# destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a
|
959
|
-
# Cloud Pub/Sub topic. A logs filter controls which log entries are exported.
|
960
|
-
# The sink must be created within a project, organization, billing account, or
|
961
|
-
# folder.
|
962
|
-
class LogSink
|
963
|
-
include Google::Apis::Core::Hashable
|
964
|
-
|
965
|
-
# Output only. The creation timestamp of the sink.This field may not be present
|
966
|
-
# for older sinks.
|
967
|
-
# Corresponds to the JSON property `createTime`
|
968
|
-
# @return [String]
|
969
|
-
attr_accessor :create_time
|
970
|
-
|
971
|
-
# Required. The export destination:
|
972
|
-
# "storage.googleapis.com/[GCS_BUCKET]"
|
973
|
-
# "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
|
974
|
-
# "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
|
975
|
-
# The sink's writer_identity, set when the sink is created, must have permission
|
976
|
-
# to write to the destination or else the log entries are not exported. For more
|
977
|
-
# information, see Exporting Logs with Sinks.
|
978
|
-
# Corresponds to the JSON property `destination`
|
979
|
-
# @return [String]
|
980
|
-
attr_accessor :destination
|
981
|
-
|
982
|
-
# Optional. An advanced logs filter. The only exported log entries are those
|
983
|
-
# that are in the resource owning the sink and that match the filter. For
|
984
|
-
# example:
|
985
|
-
# logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
|
986
|
-
# Corresponds to the JSON property `filter`
|
987
|
-
# @return [String]
|
988
|
-
attr_accessor :filter
|
989
|
-
|
990
|
-
# Optional. This field applies only to sinks owned by organizations and folders.
|
991
|
-
# If the field is false, the default, only the logs owned by the sink's parent
|
992
|
-
# resource are available for export. If the field is true, then logs from all
|
993
|
-
# the projects, folders, and billing accounts contained in the sink's parent
|
994
|
-
# resource are also available for export. Whether a particular log entry from
|
995
|
-
# the children is exported depends on the sink's filter expression. For example,
|
996
|
-
# if this field is true, then the filter resource.type=gce_instance would export
|
997
|
-
# all Compute Engine VM instance log entries from all projects in the sink's
|
998
|
-
# parent. To only export entries from certain child projects, filter on the
|
999
|
-
# project part of the log name:
|
1000
|
-
# logName:("projects/test-project1/" OR "projects/test-project2/") AND
|
1001
|
-
# resource.type=gce_instance
|
1002
|
-
# Corresponds to the JSON property `includeChildren`
|
1003
|
-
# @return [Boolean]
|
1004
|
-
attr_accessor :include_children
|
1005
|
-
alias_method :include_children?, :include_children
|
1006
|
-
|
1007
|
-
# Required. The client-assigned sink identifier, unique within the project.
|
1008
|
-
# Example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100
|
1009
|
-
# characters and can include only the following characters: upper and lower-case
|
1010
|
-
# alphanumeric characters, underscores, hyphens, and periods.
|
1011
|
-
# Corresponds to the JSON property `name`
|
1012
|
-
# @return [String]
|
1013
|
-
attr_accessor :name
|
1014
|
-
|
1015
|
-
# Deprecated. The log entry format to use for this sink's exported log entries.
|
1016
|
-
# The v2 format is used by default and cannot be changed.
|
1017
|
-
# Corresponds to the JSON property `outputVersionFormat`
|
1018
|
-
# @return [String]
|
1019
|
-
attr_accessor :output_version_format
|
1020
|
-
|
1021
|
-
# Output only. The last update timestamp of the sink.This field may not be
|
1022
|
-
# present for older sinks.
|
1023
|
-
# Corresponds to the JSON property `updateTime`
|
1024
|
-
# @return [String]
|
1025
|
-
attr_accessor :update_time
|
1026
|
-
|
1027
|
-
# Output only. An IAM identity—a service account or group—under
|
1028
|
-
# which Logging writes the exported log entries to the sink's destination. This
|
1029
|
-
# field is set by sinks.create and sinks.update based on the value of
|
1030
|
-
# unique_writer_identity in those methods.Until you grant this identity write-
|
1031
|
-
# access to the destination, log entry exports from this sink will fail. For
|
1032
|
-
# more information, see Granting Access for a Resource. Consult the destination
|
1033
|
-
# service's documentation to determine the appropriate IAM roles to assign to
|
1034
|
-
# the identity.
|
1035
|
-
# Corresponds to the JSON property `writerIdentity`
|
1036
|
-
# @return [String]
|
1037
|
-
attr_accessor :writer_identity
|
1038
|
-
|
1039
|
-
def initialize(**args)
|
1040
|
-
update!(**args)
|
1041
|
-
end
|
1042
|
-
|
1043
|
-
# Update properties of this object
|
1044
|
-
def update!(**args)
|
1045
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
1046
|
-
@destination = args[:destination] if args.key?(:destination)
|
1047
|
-
@filter = args[:filter] if args.key?(:filter)
|
1048
|
-
@include_children = args[:include_children] if args.key?(:include_children)
|
1049
|
-
@name = args[:name] if args.key?(:name)
|
1050
|
-
@output_version_format = args[:output_version_format] if args.key?(:output_version_format)
|
1051
|
-
@update_time = args[:update_time] if args.key?(:update_time)
|
1052
|
-
@writer_identity = args[:writer_identity] if args.key?(:writer_identity)
|
1053
|
-
end
|
1054
|
-
end
|
1055
|
-
|
1056
|
-
# Defines a metric type and its schema. Once a metric descriptor is created,
|
1057
|
-
# deleting or altering it stops data collection and makes the metric type's
|
1058
|
-
# existing data unusable.
|
1059
|
-
class MetricDescriptor
|
1060
|
-
include Google::Apis::Core::Hashable
|
1061
|
-
|
1062
|
-
# A detailed description of the metric, which can be used in documentation.
|
1063
|
-
# Corresponds to the JSON property `description`
|
1064
|
-
# @return [String]
|
1065
|
-
attr_accessor :description
|
1066
|
-
|
1067
|
-
# A concise name for the metric, which can be displayed in user interfaces. Use
|
1068
|
-
# sentence case without an ending period, for example "Request count". This
|
1069
|
-
# field is optional but it is recommended to be set for any metrics associated
|
1070
|
-
# with user-visible concepts, such as Quota.
|
1071
|
-
# Corresponds to the JSON property `displayName`
|
1072
|
-
# @return [String]
|
1073
|
-
attr_accessor :display_name
|
1074
|
-
|
1075
|
-
# The set of labels that can be used to describe a specific instance of this
|
1076
|
-
# metric type. For example, the appengine.googleapis.com/http/server/
|
1077
|
-
# response_latencies metric type has a label for the HTTP response code,
|
1078
|
-
# response_code, so you can look at latencies for successful responses or just
|
1079
|
-
# for responses that failed.
|
1080
|
-
# Corresponds to the JSON property `labels`
|
1081
|
-
# @return [Array<Google::Apis::LoggingV2beta1::LabelDescriptor>]
|
1082
|
-
attr_accessor :labels
|
1083
|
-
|
1084
|
-
# Additional annotations that can be used to guide the usage of a metric.
|
1085
|
-
# Corresponds to the JSON property `metadata`
|
1086
|
-
# @return [Google::Apis::LoggingV2beta1::MetricDescriptorMetadata]
|
1087
|
-
attr_accessor :metadata
|
1088
|
-
|
1089
|
-
# Whether the metric records instantaneous values, changes to a value, etc. Some
|
1090
|
-
# combinations of metric_kind and value_type might not be supported.
|
1091
|
-
# Corresponds to the JSON property `metricKind`
|
1092
|
-
# @return [String]
|
1093
|
-
attr_accessor :metric_kind
|
1094
|
-
|
1095
|
-
# The resource name of the metric descriptor.
|
1096
|
-
# Corresponds to the JSON property `name`
|
1097
|
-
# @return [String]
|
1098
|
-
attr_accessor :name
|
1099
|
-
|
1100
|
-
# The metric type, including its DNS name prefix. The type is not URL-encoded.
|
1101
|
-
# All user-defined metric types have the DNS name custom.googleapis.com or
|
1102
|
-
# external.googleapis.com. Metric types should use a natural hierarchical
|
1103
|
-
# grouping. For example:
|
1104
|
-
# "custom.googleapis.com/invoice/paid/amount"
|
1105
|
-
# "external.googleapis.com/prometheus/up"
|
1106
|
-
# "appengine.googleapis.com/http/server/response_latencies"
|
1107
|
-
# Corresponds to the JSON property `type`
|
1108
|
-
# @return [String]
|
1109
|
-
attr_accessor :type
|
1110
|
-
|
1111
|
-
# The unit in which the metric value is reported. It is only applicable if the
|
1112
|
-
# value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are a subset
|
1113
|
-
# of The Unified Code for Units of Measure (http://unitsofmeasure.org/ucum.html)
|
1114
|
-
# standard:Basic units (UNIT)
|
1115
|
-
# bit bit
|
1116
|
-
# By byte
|
1117
|
-
# s second
|
1118
|
-
# min minute
|
1119
|
-
# h hour
|
1120
|
-
# d dayPrefixes (PREFIX)
|
1121
|
-
# k kilo (10**3)
|
1122
|
-
# M mega (10**6)
|
1123
|
-
# G giga (10**9)
|
1124
|
-
# T tera (10**12)
|
1125
|
-
# P peta (10**15)
|
1126
|
-
# E exa (10**18)
|
1127
|
-
# Z zetta (10**21)
|
1128
|
-
# Y yotta (10**24)
|
1129
|
-
# m milli (10**-3)
|
1130
|
-
# u micro (10**-6)
|
1131
|
-
# n nano (10**-9)
|
1132
|
-
# p pico (10**-12)
|
1133
|
-
# f femto (10**-15)
|
1134
|
-
# a atto (10**-18)
|
1135
|
-
# z zepto (10**-21)
|
1136
|
-
# y yocto (10**-24)
|
1137
|
-
# Ki kibi (2**10)
|
1138
|
-
# Mi mebi (2**20)
|
1139
|
-
# Gi gibi (2**30)
|
1140
|
-
# Ti tebi (2**40)GrammarThe grammar also includes these connectors:
|
1141
|
-
# / division (as an infix operator, e.g. 1/s).
|
1142
|
-
# . multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit is
|
1143
|
-
# as follows:
|
1144
|
-
# Expression = Component ` "." Component ` ` "/" Component ` ;
|
1145
|
-
# Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
|
1146
|
-
# | Annotation
|
1147
|
-
# | "1"
|
1148
|
-
# ;
|
1149
|
-
# Annotation = "`" NAME "`" ;
|
1150
|
-
# Notes:
|
1151
|
-
# Annotation is just a comment if it follows a UNIT and is equivalent to 1 if
|
1152
|
-
# it is used alone. For examples, `requests`/s == 1/s, By`transmitted`/s == By/
|
1153
|
-
# s.
|
1154
|
-
# NAME is a sequence of non-blank printable ASCII characters not containing '`'
|
1155
|
-
# or '`'.
|
1156
|
-
# 1 represents dimensionless value 1, such as in 1/s.
|
1157
|
-
# % represents dimensionless value 1/100, and annotates values giving a
|
1158
|
-
# percentage.
|
1159
|
-
# Corresponds to the JSON property `unit`
|
1160
|
-
# @return [String]
|
1161
|
-
attr_accessor :unit
|
1162
|
-
|
1163
|
-
# Whether the measurement is an integer, a floating-point number, etc. Some
|
1164
|
-
# combinations of metric_kind and value_type might not be supported.
|
1165
|
-
# Corresponds to the JSON property `valueType`
|
1166
|
-
# @return [String]
|
1167
|
-
attr_accessor :value_type
|
1168
|
-
|
1169
|
-
def initialize(**args)
|
1170
|
-
update!(**args)
|
1171
|
-
end
|
1172
|
-
|
1173
|
-
# Update properties of this object
|
1174
|
-
def update!(**args)
|
1175
|
-
@description = args[:description] if args.key?(:description)
|
1176
|
-
@display_name = args[:display_name] if args.key?(:display_name)
|
1177
|
-
@labels = args[:labels] if args.key?(:labels)
|
1178
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
1179
|
-
@metric_kind = args[:metric_kind] if args.key?(:metric_kind)
|
1180
|
-
@name = args[:name] if args.key?(:name)
|
1181
|
-
@type = args[:type] if args.key?(:type)
|
1182
|
-
@unit = args[:unit] if args.key?(:unit)
|
1183
|
-
@value_type = args[:value_type] if args.key?(:value_type)
|
1184
|
-
end
|
1185
|
-
end
|
1186
|
-
|
1187
|
-
# Additional annotations that can be used to guide the usage of a metric.
|
1188
|
-
class MetricDescriptorMetadata
|
1189
|
-
include Google::Apis::Core::Hashable
|
1190
|
-
|
1191
|
-
# The delay of data points caused by ingestion. Data points older than this age
|
1192
|
-
# are guaranteed to be ingested and available to be read, excluding data loss
|
1193
|
-
# due to errors.
|
1194
|
-
# Corresponds to the JSON property `ingestDelay`
|
1195
|
-
# @return [String]
|
1196
|
-
attr_accessor :ingest_delay
|
1197
|
-
|
1198
|
-
# The launch stage of the metric definition.
|
1199
|
-
# Corresponds to the JSON property `launchStage`
|
1200
|
-
# @return [String]
|
1201
|
-
attr_accessor :launch_stage
|
1202
|
-
|
1203
|
-
# The sampling period of metric data points. For metrics which are written
|
1204
|
-
# periodically, consecutive data points are stored at this time interval,
|
1205
|
-
# excluding data loss due to errors. Metrics with a higher granularity have a
|
1206
|
-
# smaller sampling period.
|
1207
|
-
# Corresponds to the JSON property `samplePeriod`
|
1208
|
-
# @return [String]
|
1209
|
-
attr_accessor :sample_period
|
1210
|
-
|
1211
|
-
def initialize(**args)
|
1212
|
-
update!(**args)
|
1213
|
-
end
|
1214
|
-
|
1215
|
-
# Update properties of this object
|
1216
|
-
def update!(**args)
|
1217
|
-
@ingest_delay = args[:ingest_delay] if args.key?(:ingest_delay)
|
1218
|
-
@launch_stage = args[:launch_stage] if args.key?(:launch_stage)
|
1219
|
-
@sample_period = args[:sample_period] if args.key?(:sample_period)
|
1220
|
-
end
|
1221
|
-
end
|
1222
|
-
|
1223
|
-
# An object representing a resource that can be used for monitoring, logging,
|
1224
|
-
# billing, or other purposes. Examples include virtual machine instances,
|
1225
|
-
# databases, and storage devices such as disks. The type field identifies a
|
1226
|
-
# MonitoredResourceDescriptor object that describes the resource's schema.
|
1227
|
-
# Information in the labels field identifies the actual resource and its
|
1228
|
-
# attributes according to the schema. For example, a particular Compute Engine
|
1229
|
-
# VM instance could be represented by the following object, because the
|
1230
|
-
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
|
1231
|
-
# zone":
|
1232
|
-
# ` "type": "gce_instance",
|
1233
|
-
# "labels": ` "instance_id": "12345678901234",
|
1234
|
-
# "zone": "us-central1-a" ``
|
1235
|
-
class MonitoredResource
|
1236
|
-
include Google::Apis::Core::Hashable
|
1237
|
-
|
1238
|
-
# Required. Values for all of the labels listed in the associated monitored
|
1239
|
-
# resource descriptor. For example, Compute Engine VM instances use the labels "
|
1240
|
-
# project_id", "instance_id", and "zone".
|
1241
|
-
# Corresponds to the JSON property `labels`
|
1242
|
-
# @return [Hash<String,String>]
|
1243
|
-
attr_accessor :labels
|
1244
|
-
|
1245
|
-
# Required. The monitored resource type. This field must match the type field of
|
1246
|
-
# a MonitoredResourceDescriptor object. For example, the type of a Compute
|
1247
|
-
# Engine VM instance is gce_instance.
|
1248
|
-
# Corresponds to the JSON property `type`
|
1249
|
-
# @return [String]
|
1250
|
-
attr_accessor :type
|
1251
|
-
|
1252
|
-
def initialize(**args)
|
1253
|
-
update!(**args)
|
1254
|
-
end
|
1255
|
-
|
1256
|
-
# Update properties of this object
|
1257
|
-
def update!(**args)
|
1258
|
-
@labels = args[:labels] if args.key?(:labels)
|
1259
|
-
@type = args[:type] if args.key?(:type)
|
1260
|
-
end
|
1261
|
-
end
|
1262
|
-
|
1263
|
-
# An object that describes the schema of a MonitoredResource object using a type
|
1264
|
-
# name and a set of labels. For example, the monitored resource descriptor for
|
1265
|
-
# Google Compute Engine VM instances has a type of "gce_instance" and specifies
|
1266
|
-
# the use of the labels "instance_id" and "zone" to identify particular VM
|
1267
|
-
# instances.Different APIs can support different monitored resource types. APIs
|
1268
|
-
# generally provide a list method that returns the monitored resource
|
1269
|
-
# descriptors used by the API.
|
1270
|
-
class MonitoredResourceDescriptor
|
1271
|
-
include Google::Apis::Core::Hashable
|
1272
|
-
|
1273
|
-
# Optional. A detailed description of the monitored resource type that might be
|
1274
|
-
# used in documentation.
|
1275
|
-
# Corresponds to the JSON property `description`
|
1276
|
-
# @return [String]
|
1277
|
-
attr_accessor :description
|
1278
|
-
|
1279
|
-
# Optional. A concise name for the monitored resource type that might be
|
1280
|
-
# displayed in user interfaces. It should be a Title Cased Noun Phrase, without
|
1281
|
-
# any article or other determiners. For example, "Google Cloud SQL Database".
|
1282
|
-
# Corresponds to the JSON property `displayName`
|
1283
|
-
# @return [String]
|
1284
|
-
attr_accessor :display_name
|
1285
|
-
|
1286
|
-
# Required. A set of labels used to describe instances of this monitored
|
1287
|
-
# resource type. For example, an individual Google Cloud SQL database is
|
1288
|
-
# identified by values for the labels "database_id" and "zone".
|
1289
|
-
# Corresponds to the JSON property `labels`
|
1290
|
-
# @return [Array<Google::Apis::LoggingV2beta1::LabelDescriptor>]
|
1291
|
-
attr_accessor :labels
|
1292
|
-
|
1293
|
-
# Optional. The resource name of the monitored resource descriptor: "projects/`
|
1294
|
-
# project_id`/monitoredResourceDescriptors/`type`" where `type` is the value of
|
1295
|
-
# the type field in this object and `project_id` is a project ID that provides
|
1296
|
-
# API-specific context for accessing the type. APIs that do not use project
|
1297
|
-
# information can use the resource name format "monitoredResourceDescriptors/`
|
1298
|
-
# type`".
|
1299
|
-
# Corresponds to the JSON property `name`
|
1300
|
-
# @return [String]
|
1301
|
-
attr_accessor :name
|
1302
|
-
|
1303
|
-
# Required. The monitored resource type. For example, the type "
|
1304
|
-
# cloudsql_database" represents databases in Google Cloud SQL. The maximum
|
1305
|
-
# length of this value is 256 characters.
|
1306
|
-
# Corresponds to the JSON property `type`
|
1307
|
-
# @return [String]
|
1308
|
-
attr_accessor :type
|
1309
|
-
|
1310
|
-
def initialize(**args)
|
1311
|
-
update!(**args)
|
1312
|
-
end
|
1313
|
-
|
1314
|
-
# Update properties of this object
|
1315
|
-
def update!(**args)
|
1316
|
-
@description = args[:description] if args.key?(:description)
|
1317
|
-
@display_name = args[:display_name] if args.key?(:display_name)
|
1318
|
-
@labels = args[:labels] if args.key?(:labels)
|
1319
|
-
@name = args[:name] if args.key?(:name)
|
1320
|
-
@type = args[:type] if args.key?(:type)
|
1321
|
-
end
|
1322
|
-
end
|
1323
|
-
|
1324
|
-
# Auxiliary metadata for a MonitoredResource object. MonitoredResource objects
|
1325
|
-
# contain the minimum set of information to uniquely identify a monitored
|
1326
|
-
# resource instance. There is some other useful auxiliary metadata. Monitoring
|
1327
|
-
# and Logging use an ingestion pipeline to extract metadata for cloud resources
|
1328
|
-
# of all types, and store the metadata in this message.
|
1329
|
-
class MonitoredResourceMetadata
|
1330
|
-
include Google::Apis::Core::Hashable
|
1331
|
-
|
1332
|
-
# Output only. Values for predefined system metadata labels. System labels are a
|
1333
|
-
# kind of metadata extracted by Google, including "machine_image", "vpc", "
|
1334
|
-
# subnet_id", "security_group", "name", etc. System label values can be only
|
1335
|
-
# strings, Boolean values, or a list of strings. For example:
|
1336
|
-
# ` "name": "my-test-instance",
|
1337
|
-
# "security_group": ["a", "b", "c"],
|
1338
|
-
# "spot_instance": false `
|
1339
|
-
# Corresponds to the JSON property `systemLabels`
|
1340
|
-
# @return [Hash<String,Object>]
|
1341
|
-
attr_accessor :system_labels
|
1342
|
-
|
1343
|
-
# Output only. A map of user-defined metadata labels.
|
1344
|
-
# Corresponds to the JSON property `userLabels`
|
1345
|
-
# @return [Hash<String,String>]
|
1346
|
-
attr_accessor :user_labels
|
1347
|
-
|
1348
|
-
def initialize(**args)
|
1349
|
-
update!(**args)
|
1350
|
-
end
|
1351
|
-
|
1352
|
-
# Update properties of this object
|
1353
|
-
def update!(**args)
|
1354
|
-
@system_labels = args[:system_labels] if args.key?(:system_labels)
|
1355
|
-
@user_labels = args[:user_labels] if args.key?(:user_labels)
|
1356
|
-
end
|
1357
|
-
end
|
1358
|
-
|
1359
|
-
# Complete log information about a single HTTP request to an App Engine
|
1360
|
-
# application.
|
1361
|
-
class RequestLog
|
1362
|
-
include Google::Apis::Core::Hashable
|
1363
|
-
|
1364
|
-
# App Engine release version.
|
1365
|
-
# Corresponds to the JSON property `appEngineRelease`
|
1366
|
-
# @return [String]
|
1367
|
-
attr_accessor :app_engine_release
|
1368
|
-
|
1369
|
-
# Application that handled this request.
|
1370
|
-
# Corresponds to the JSON property `appId`
|
1371
|
-
# @return [String]
|
1372
|
-
attr_accessor :app_id
|
1373
|
-
|
1374
|
-
# An indication of the relative cost of serving this request.
|
1375
|
-
# Corresponds to the JSON property `cost`
|
1376
|
-
# @return [Float]
|
1377
|
-
attr_accessor :cost
|
1378
|
-
|
1379
|
-
# Time when the request finished.
|
1380
|
-
# Corresponds to the JSON property `endTime`
|
1381
|
-
# @return [String]
|
1382
|
-
attr_accessor :end_time
|
1383
|
-
|
1384
|
-
# Whether this request is finished or active.
|
1385
|
-
# Corresponds to the JSON property `finished`
|
1386
|
-
# @return [Boolean]
|
1387
|
-
attr_accessor :finished
|
1388
|
-
alias_method :finished?, :finished
|
1389
|
-
|
1390
|
-
# Whether this is the first RequestLog entry for this request. If an active
|
1391
|
-
# request has several RequestLog entries written to Stackdriver Logging, then
|
1392
|
-
# this field will be set for one of them.
|
1393
|
-
# Corresponds to the JSON property `first`
|
1394
|
-
# @return [Boolean]
|
1395
|
-
attr_accessor :first
|
1396
|
-
alias_method :first?, :first
|
1397
|
-
|
1398
|
-
# Internet host and port number of the resource being requested.
|
1399
|
-
# Corresponds to the JSON property `host`
|
1400
|
-
# @return [String]
|
1401
|
-
attr_accessor :host
|
1402
|
-
|
1403
|
-
# HTTP version of request. Example: "HTTP/1.1".
|
1404
|
-
# Corresponds to the JSON property `httpVersion`
|
1405
|
-
# @return [String]
|
1406
|
-
attr_accessor :http_version
|
1407
|
-
|
1408
|
-
# An identifier for the instance that handled the request.
|
1409
|
-
# Corresponds to the JSON property `instanceId`
|
1410
|
-
# @return [String]
|
1411
|
-
attr_accessor :instance_id
|
1412
|
-
|
1413
|
-
# If the instance processing this request belongs to a manually scaled module,
|
1414
|
-
# then this is the 0-based index of the instance. Otherwise, this value is -1.
|
1415
|
-
# Corresponds to the JSON property `instanceIndex`
|
1416
|
-
# @return [Fixnum]
|
1417
|
-
attr_accessor :instance_index
|
1418
|
-
|
1419
|
-
# Origin IP address.
|
1420
|
-
# Corresponds to the JSON property `ip`
|
1421
|
-
# @return [String]
|
1422
|
-
attr_accessor :ip
|
1423
|
-
|
1424
|
-
# Latency of the request.
|
1425
|
-
# Corresponds to the JSON property `latency`
|
1426
|
-
# @return [String]
|
1427
|
-
attr_accessor :latency
|
1428
|
-
|
1429
|
-
# A list of log lines emitted by the application while serving this request.
|
1430
|
-
# Corresponds to the JSON property `line`
|
1431
|
-
# @return [Array<Google::Apis::LoggingV2beta1::LogLine>]
|
1432
|
-
attr_accessor :line
|
1433
|
-
|
1434
|
-
# Number of CPU megacycles used to process request.
|
1435
|
-
# Corresponds to the JSON property `megaCycles`
|
1436
|
-
# @return [Fixnum]
|
1437
|
-
attr_accessor :mega_cycles
|
1438
|
-
|
1439
|
-
# Request method. Example: "GET", "HEAD", "PUT", "POST", "DELETE".
|
1440
|
-
# Corresponds to the JSON property `method`
|
1441
|
-
# @return [String]
|
1442
|
-
attr_accessor :method_prop
|
1443
|
-
|
1444
|
-
# Module of the application that handled this request.
|
1445
|
-
# Corresponds to the JSON property `moduleId`
|
1446
|
-
# @return [String]
|
1447
|
-
attr_accessor :module_id
|
1448
|
-
|
1449
|
-
# The logged-in user who made the request.Most likely, this is the part of the
|
1450
|
-
# user's email before the @ sign. The field value is the same for different
|
1451
|
-
# requests from the same user, but different users can have similar names. This
|
1452
|
-
# information is also available to the application via the App Engine Users API.
|
1453
|
-
# This field will be populated starting with App Engine 1.9.21.
|
1454
|
-
# Corresponds to the JSON property `nickname`
|
1455
|
-
# @return [String]
|
1456
|
-
attr_accessor :nickname
|
1457
|
-
|
1458
|
-
# Time this request spent in the pending request queue.
|
1459
|
-
# Corresponds to the JSON property `pendingTime`
|
1460
|
-
# @return [String]
|
1461
|
-
attr_accessor :pending_time
|
1462
|
-
|
1463
|
-
# Referrer URL of request.
|
1464
|
-
# Corresponds to the JSON property `referrer`
|
1465
|
-
# @return [String]
|
1466
|
-
attr_accessor :referrer
|
1467
|
-
|
1468
|
-
# Globally unique identifier for a request, which is based on the request start
|
1469
|
-
# time. Request IDs for requests which started later will compare greater as
|
1470
|
-
# strings than those for requests which started earlier.
|
1471
|
-
# Corresponds to the JSON property `requestId`
|
1472
|
-
# @return [String]
|
1473
|
-
attr_accessor :request_id
|
1474
|
-
|
1475
|
-
# Contains the path and query portion of the URL that was requested. For example,
|
1476
|
-
# if the URL was "http://example.com/app?name=val", the resource would be "/app?
|
1477
|
-
# name=val". The fragment identifier, which is identified by the # character, is
|
1478
|
-
# not included.
|
1479
|
-
# Corresponds to the JSON property `resource`
|
1480
|
-
# @return [String]
|
1481
|
-
attr_accessor :resource
|
1482
|
-
|
1483
|
-
# Size in bytes sent back to client by request.
|
1484
|
-
# Corresponds to the JSON property `responseSize`
|
1485
|
-
# @return [Fixnum]
|
1486
|
-
attr_accessor :response_size
|
1487
|
-
|
1488
|
-
# Source code for the application that handled this request. There can be more
|
1489
|
-
# than one source reference per deployed application if source code is
|
1490
|
-
# distributed among multiple repositories.
|
1491
|
-
# Corresponds to the JSON property `sourceReference`
|
1492
|
-
# @return [Array<Google::Apis::LoggingV2beta1::SourceReference>]
|
1493
|
-
attr_accessor :source_reference
|
1494
|
-
|
1495
|
-
# Time when the request started.
|
1496
|
-
# Corresponds to the JSON property `startTime`
|
1497
|
-
# @return [String]
|
1498
|
-
attr_accessor :start_time
|
1499
|
-
|
1500
|
-
# HTTP response status code. Example: 200, 404.
|
1501
|
-
# Corresponds to the JSON property `status`
|
1502
|
-
# @return [Fixnum]
|
1503
|
-
attr_accessor :status
|
1504
|
-
|
1505
|
-
# Task name of the request, in the case of an offline request.
|
1506
|
-
# Corresponds to the JSON property `taskName`
|
1507
|
-
# @return [String]
|
1508
|
-
attr_accessor :task_name
|
1509
|
-
|
1510
|
-
# Queue name of the request, in the case of an offline request.
|
1511
|
-
# Corresponds to the JSON property `taskQueueName`
|
1512
|
-
# @return [String]
|
1513
|
-
attr_accessor :task_queue_name
|
1514
|
-
|
1515
|
-
# Stackdriver Trace identifier for this request.
|
1516
|
-
# Corresponds to the JSON property `traceId`
|
1517
|
-
# @return [String]
|
1518
|
-
attr_accessor :trace_id
|
1519
|
-
|
1520
|
-
# If true, the value in the 'trace_id' field was sampled for storage in a trace
|
1521
|
-
# backend.
|
1522
|
-
# Corresponds to the JSON property `traceSampled`
|
1523
|
-
# @return [Boolean]
|
1524
|
-
attr_accessor :trace_sampled
|
1525
|
-
alias_method :trace_sampled?, :trace_sampled
|
1526
|
-
|
1527
|
-
# File or class that handled the request.
|
1528
|
-
# Corresponds to the JSON property `urlMapEntry`
|
1529
|
-
# @return [String]
|
1530
|
-
attr_accessor :url_map_entry
|
1531
|
-
|
1532
|
-
# User agent that made the request.
|
1533
|
-
# Corresponds to the JSON property `userAgent`
|
1534
|
-
# @return [String]
|
1535
|
-
attr_accessor :user_agent
|
1536
|
-
|
1537
|
-
# Version of the application that handled this request.
|
1538
|
-
# Corresponds to the JSON property `versionId`
|
1539
|
-
# @return [String]
|
1540
|
-
attr_accessor :version_id
|
1541
|
-
|
1542
|
-
# Whether this was a loading request for the instance.
|
1543
|
-
# Corresponds to the JSON property `wasLoadingRequest`
|
1544
|
-
# @return [Boolean]
|
1545
|
-
attr_accessor :was_loading_request
|
1546
|
-
alias_method :was_loading_request?, :was_loading_request
|
1547
|
-
|
1548
|
-
def initialize(**args)
|
1549
|
-
update!(**args)
|
1550
|
-
end
|
1551
|
-
|
1552
|
-
# Update properties of this object
|
1553
|
-
def update!(**args)
|
1554
|
-
@app_engine_release = args[:app_engine_release] if args.key?(:app_engine_release)
|
1555
|
-
@app_id = args[:app_id] if args.key?(:app_id)
|
1556
|
-
@cost = args[:cost] if args.key?(:cost)
|
1557
|
-
@end_time = args[:end_time] if args.key?(:end_time)
|
1558
|
-
@finished = args[:finished] if args.key?(:finished)
|
1559
|
-
@first = args[:first] if args.key?(:first)
|
1560
|
-
@host = args[:host] if args.key?(:host)
|
1561
|
-
@http_version = args[:http_version] if args.key?(:http_version)
|
1562
|
-
@instance_id = args[:instance_id] if args.key?(:instance_id)
|
1563
|
-
@instance_index = args[:instance_index] if args.key?(:instance_index)
|
1564
|
-
@ip = args[:ip] if args.key?(:ip)
|
1565
|
-
@latency = args[:latency] if args.key?(:latency)
|
1566
|
-
@line = args[:line] if args.key?(:line)
|
1567
|
-
@mega_cycles = args[:mega_cycles] if args.key?(:mega_cycles)
|
1568
|
-
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
1569
|
-
@module_id = args[:module_id] if args.key?(:module_id)
|
1570
|
-
@nickname = args[:nickname] if args.key?(:nickname)
|
1571
|
-
@pending_time = args[:pending_time] if args.key?(:pending_time)
|
1572
|
-
@referrer = args[:referrer] if args.key?(:referrer)
|
1573
|
-
@request_id = args[:request_id] if args.key?(:request_id)
|
1574
|
-
@resource = args[:resource] if args.key?(:resource)
|
1575
|
-
@response_size = args[:response_size] if args.key?(:response_size)
|
1576
|
-
@source_reference = args[:source_reference] if args.key?(:source_reference)
|
1577
|
-
@start_time = args[:start_time] if args.key?(:start_time)
|
1578
|
-
@status = args[:status] if args.key?(:status)
|
1579
|
-
@task_name = args[:task_name] if args.key?(:task_name)
|
1580
|
-
@task_queue_name = args[:task_queue_name] if args.key?(:task_queue_name)
|
1581
|
-
@trace_id = args[:trace_id] if args.key?(:trace_id)
|
1582
|
-
@trace_sampled = args[:trace_sampled] if args.key?(:trace_sampled)
|
1583
|
-
@url_map_entry = args[:url_map_entry] if args.key?(:url_map_entry)
|
1584
|
-
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
1585
|
-
@version_id = args[:version_id] if args.key?(:version_id)
|
1586
|
-
@was_loading_request = args[:was_loading_request] if args.key?(:was_loading_request)
|
1587
|
-
end
|
1588
|
-
end
|
1589
|
-
|
1590
|
-
# Specifies a location in a source code file.
|
1591
|
-
class SourceLocation
|
1592
|
-
include Google::Apis::Core::Hashable
|
1593
|
-
|
1594
|
-
# Source file name. Depending on the runtime environment, this might be a simple
|
1595
|
-
# name or a fully-qualified name.
|
1596
|
-
# Corresponds to the JSON property `file`
|
1597
|
-
# @return [String]
|
1598
|
-
attr_accessor :file
|
1599
|
-
|
1600
|
-
# Human-readable name of the function or method being invoked, with optional
|
1601
|
-
# context such as the class or package name. This information is used in
|
1602
|
-
# contexts such as the logs viewer, where a file and line number are less
|
1603
|
-
# meaningful. The format can vary by language. For example: qual.if.ied.Class.
|
1604
|
-
# method (Java), dir/package.func (Go), function (Python).
|
1605
|
-
# Corresponds to the JSON property `functionName`
|
1606
|
-
# @return [String]
|
1607
|
-
attr_accessor :function_name
|
1608
|
-
|
1609
|
-
# Line within the source file.
|
1610
|
-
# Corresponds to the JSON property `line`
|
1611
|
-
# @return [Fixnum]
|
1612
|
-
attr_accessor :line
|
1613
|
-
|
1614
|
-
def initialize(**args)
|
1615
|
-
update!(**args)
|
1616
|
-
end
|
1617
|
-
|
1618
|
-
# Update properties of this object
|
1619
|
-
def update!(**args)
|
1620
|
-
@file = args[:file] if args.key?(:file)
|
1621
|
-
@function_name = args[:function_name] if args.key?(:function_name)
|
1622
|
-
@line = args[:line] if args.key?(:line)
|
1623
|
-
end
|
1624
|
-
end
|
1625
|
-
|
1626
|
-
# A reference to a particular snapshot of the source tree used to build and
|
1627
|
-
# deploy an application.
|
1628
|
-
class SourceReference
|
1629
|
-
include Google::Apis::Core::Hashable
|
1630
|
-
|
1631
|
-
# Optional. A URI string identifying the repository. Example: "https://github.
|
1632
|
-
# com/GoogleCloudPlatform/kubernetes.git"
|
1633
|
-
# Corresponds to the JSON property `repository`
|
1634
|
-
# @return [String]
|
1635
|
-
attr_accessor :repository
|
1636
|
-
|
1637
|
-
# The canonical and persistent identifier of the deployed revision. Example (git)
|
1638
|
-
# : "0035781c50ec7aa23385dc841529ce8a4b70db1b"
|
1639
|
-
# Corresponds to the JSON property `revisionId`
|
1640
|
-
# @return [String]
|
1641
|
-
attr_accessor :revision_id
|
1642
|
-
|
1643
|
-
def initialize(**args)
|
1644
|
-
update!(**args)
|
1645
|
-
end
|
1646
|
-
|
1647
|
-
# Update properties of this object
|
1648
|
-
def update!(**args)
|
1649
|
-
@repository = args[:repository] if args.key?(:repository)
|
1650
|
-
@revision_id = args[:revision_id] if args.key?(:revision_id)
|
1651
|
-
end
|
1652
|
-
end
|
1653
|
-
|
1654
|
-
# The parameters to WriteLogEntries.
|
1655
|
-
class WriteLogEntriesRequest
|
1656
|
-
include Google::Apis::Core::Hashable
|
1657
|
-
|
1658
|
-
# Optional. If true, the request should expect normal response, but the entries
|
1659
|
-
# won't be persisted nor exported. Useful for checking whether the logging API
|
1660
|
-
# endpoints are working properly before sending valuable data.
|
1661
|
-
# Corresponds to the JSON property `dryRun`
|
1662
|
-
# @return [Boolean]
|
1663
|
-
attr_accessor :dry_run
|
1664
|
-
alias_method :dry_run?, :dry_run
|
1665
|
-
|
1666
|
-
# Required. The log entries to send to Logging. The order of log entries in this
|
1667
|
-
# list does not matter. Values supplied in this method's log_name, resource, and
|
1668
|
-
# labels fields are copied into those log entries in this list that do not
|
1669
|
-
# include values for their corresponding fields. For more information, see the
|
1670
|
-
# LogEntry type.If the timestamp or insert_id fields are missing in log entries,
|
1671
|
-
# then this method supplies the current time or a unique identifier,
|
1672
|
-
# respectively. The supplied values are chosen so that, among the log entries
|
1673
|
-
# that did not supply their own values, the entries earlier in the list will
|
1674
|
-
# sort before the entries later in the list. See the entries.list method.Log
|
1675
|
-
# entries with timestamps that are more than the logs retention period in the
|
1676
|
-
# past or more than 24 hours in the future will not be available when calling
|
1677
|
-
# entries.list. However, those log entries can still be exported with LogSinks.
|
1678
|
-
# To improve throughput and to avoid exceeding the quota limit for calls to
|
1679
|
-
# entries.write, you should try to include several log entries in this list,
|
1680
|
-
# rather than calling this method for each individual log entry.
|
1681
|
-
# Corresponds to the JSON property `entries`
|
1682
|
-
# @return [Array<Google::Apis::LoggingV2beta1::LogEntry>]
|
1683
|
-
attr_accessor :entries
|
1684
|
-
|
1685
|
-
# Optional. Default labels that are added to the labels field of all log entries
|
1686
|
-
# in entries. If a log entry already has a label with the same key as a label in
|
1687
|
-
# this parameter, then the log entry's label is not changed. See LogEntry.
|
1688
|
-
# Corresponds to the JSON property `labels`
|
1689
|
-
# @return [Hash<String,String>]
|
1690
|
-
attr_accessor :labels
|
1691
|
-
|
1692
|
-
# Optional. A default log resource name that is assigned to all log entries in
|
1693
|
-
# entries that do not specify a value for log_name:
|
1694
|
-
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
1695
|
-
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
1696
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
1697
|
-
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
1698
|
-
# [LOG_ID] must be URL-encoded. For example:
|
1699
|
-
# "projects/my-project-id/logs/syslog"
|
1700
|
-
# "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
|
1701
|
-
# The permission <code>logging.logEntries.create</code> is needed on each
|
1702
|
-
# project, organization, billing account, or folder that is receiving new log
|
1703
|
-
# entries, whether the resource is specified in <code>logName</code> or in an
|
1704
|
-
# individual log entry.
|
1705
|
-
# Corresponds to the JSON property `logName`
|
1706
|
-
# @return [String]
|
1707
|
-
attr_accessor :log_name
|
1708
|
-
|
1709
|
-
# Optional. Whether valid entries should be written even if some other entries
|
1710
|
-
# fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any entry is not
|
1711
|
-
# written, then the response status is the error associated with one of the
|
1712
|
-
# failed entries and the response includes error details keyed by the entries'
|
1713
|
-
# zero-based index in the entries.write method.
|
1714
|
-
# Corresponds to the JSON property `partialSuccess`
|
1715
|
-
# @return [Boolean]
|
1716
|
-
attr_accessor :partial_success
|
1717
|
-
alias_method :partial_success?, :partial_success
|
1718
|
-
|
1719
|
-
# An object representing a resource that can be used for monitoring, logging,
|
1720
|
-
# billing, or other purposes. Examples include virtual machine instances,
|
1721
|
-
# databases, and storage devices such as disks. The type field identifies a
|
1722
|
-
# MonitoredResourceDescriptor object that describes the resource's schema.
|
1723
|
-
# Information in the labels field identifies the actual resource and its
|
1724
|
-
# attributes according to the schema. For example, a particular Compute Engine
|
1725
|
-
# VM instance could be represented by the following object, because the
|
1726
|
-
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
|
1727
|
-
# zone":
|
1728
|
-
# ` "type": "gce_instance",
|
1729
|
-
# "labels": ` "instance_id": "12345678901234",
|
1730
|
-
# "zone": "us-central1-a" ``
|
1731
|
-
# Corresponds to the JSON property `resource`
|
1732
|
-
# @return [Google::Apis::LoggingV2beta1::MonitoredResource]
|
1733
|
-
attr_accessor :resource
|
1734
|
-
|
1735
|
-
def initialize(**args)
|
1736
|
-
update!(**args)
|
1737
|
-
end
|
1738
|
-
|
1739
|
-
# Update properties of this object
|
1740
|
-
def update!(**args)
|
1741
|
-
@dry_run = args[:dry_run] if args.key?(:dry_run)
|
1742
|
-
@entries = args[:entries] if args.key?(:entries)
|
1743
|
-
@labels = args[:labels] if args.key?(:labels)
|
1744
|
-
@log_name = args[:log_name] if args.key?(:log_name)
|
1745
|
-
@partial_success = args[:partial_success] if args.key?(:partial_success)
|
1746
|
-
@resource = args[:resource] if args.key?(:resource)
|
1747
|
-
end
|
1748
|
-
end
|
1749
|
-
|
1750
|
-
# Result returned from WriteLogEntries. empty
|
1751
|
-
class WriteLogEntriesResponse
|
1752
|
-
include Google::Apis::Core::Hashable
|
1753
|
-
|
1754
|
-
def initialize(**args)
|
1755
|
-
update!(**args)
|
1756
|
-
end
|
1757
|
-
|
1758
|
-
# Update properties of this object
|
1759
|
-
def update!(**args)
|
1760
|
-
end
|
1761
|
-
end
|
1762
|
-
end
|
1763
|
-
end
|
1764
|
-
end
|