google-api-client 0.42.2 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +535 -0
- data/api_names.yaml +1 -0
- data/docs/oauth-server.md +4 -6
- data/generated/google/apis/abusiveexperiencereport_v1.rb +1 -1
- data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +8 -13
- data/generated/google/apis/abusiveexperiencereport_v1/service.rb +2 -3
- data/generated/google/apis/accessapproval_v1.rb +1 -1
- data/generated/google/apis/accessapproval_v1/classes.rb +59 -83
- data/generated/google/apis/accessapproval_v1/representations.rb +1 -0
- data/generated/google/apis/accessapproval_v1/service.rb +93 -132
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +198 -236
- data/generated/google/apis/accesscontextmanager_v1/service.rb +128 -171
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +153 -184
- data/generated/google/apis/accesscontextmanager_v1beta/service.rb +82 -111
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +532 -651
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +467 -631
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +47 -2
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +18 -0
- data/generated/google/apis/adexperiencereport_v1.rb +1 -1
- data/generated/google/apis/adexperiencereport_v1/classes.rb +11 -18
- data/generated/google/apis/adexperiencereport_v1/service.rb +2 -3
- data/generated/google/apis/admin_datatransfer_v1.rb +6 -4
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +16 -4
- data/generated/google/apis/admin_datatransfer_v1/service.rb +30 -48
- data/generated/google/apis/admin_directory_v1.rb +6 -8
- data/generated/google/apis/admin_directory_v1/classes.rb +209 -242
- data/generated/google/apis/admin_directory_v1/representations.rb +0 -39
- data/generated/google/apis/admin_directory_v1/service.rb +535 -998
- data/generated/google/apis/admin_reports_v1.rb +6 -5
- data/generated/google/apis/admin_reports_v1/classes.rb +31 -33
- data/generated/google/apis/admin_reports_v1/service.rb +131 -187
- data/generated/google/apis/admob_v1.rb +4 -1
- data/generated/google/apis/admob_v1/classes.rb +139 -270
- data/generated/google/apis/admob_v1/service.rb +11 -13
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +107 -138
- data/generated/google/apis/alertcenter_v1beta1/service.rb +50 -55
- data/generated/google/apis/analyticsdata_v1alpha.rb +37 -0
- data/generated/google/apis/analyticsdata_v1alpha/classes.rb +1610 -0
- data/generated/google/apis/analyticsdata_v1alpha/representations.rb +789 -0
- data/generated/google/apis/analyticsdata_v1alpha/service.rb +220 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +315 -399
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +193 -220
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +55 -61
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +452 -557
- data/generated/google/apis/androidenterprise_v1/service.rb +183 -242
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +98 -61
- data/generated/google/apis/androidmanagement_v1/representations.rb +17 -0
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +281 -342
- data/generated/google/apis/androidpublisher_v3/service.rb +127 -155
- data/generated/google/apis/apigateway_v1alpha1.rb +34 -0
- data/generated/google/apis/apigateway_v1alpha1/classes.rb +633 -0
- data/generated/google/apis/apigateway_v1alpha1/representations.rb +250 -0
- data/generated/google/apis/apigateway_v1alpha1/service.rb +623 -0
- data/generated/google/apis/apigateway_v1beta.rb +34 -0
- data/generated/google/apis/apigateway_v1beta/classes.rb +1162 -0
- data/generated/google/apis/apigateway_v1beta/representations.rb +470 -0
- data/generated/google/apis/apigateway_v1beta/service.rb +1172 -0
- data/generated/google/apis/apigee_v1.rb +6 -8
- data/generated/google/apis/apigee_v1/classes.rb +1123 -1214
- data/generated/google/apis/apigee_v1/representations.rb +139 -0
- data/generated/google/apis/apigee_v1/service.rb +1018 -1151
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +96 -59
- data/generated/google/apis/appengine_v1/representations.rb +17 -0
- data/generated/google/apis/appengine_v1/service.rb +38 -47
- data/generated/google/apis/appengine_v1alpha.rb +1 -1
- data/generated/google/apis/appengine_v1alpha/classes.rb +9 -11
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +103 -59
- data/generated/google/apis/appengine_v1beta/representations.rb +18 -0
- data/generated/google/apis/appengine_v1beta/service.rb +37 -47
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/appsmarket_v2/classes.rb +14 -16
- data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta1/classes.rb +242 -337
- data/generated/google/apis/artifactregistry_v1beta1/representations.rb +1 -0
- data/generated/google/apis/artifactregistry_v1beta1/service.rb +44 -57
- data/generated/google/apis/{accessapproval_v1beta1.rb → assuredworkloads_v1beta1.rb} +8 -8
- data/generated/google/apis/assuredworkloads_v1beta1/classes.rb +458 -0
- data/generated/google/apis/assuredworkloads_v1beta1/representations.rb +230 -0
- data/generated/google/apis/assuredworkloads_v1beta1/service.rb +328 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +381 -553
- data/generated/google/apis/bigquery_v2/representations.rb +16 -0
- data/generated/google/apis/bigquery_v2/service.rb +32 -40
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +192 -337
- data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +29 -32
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +132 -158
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +232 -282
- data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1/classes.rb +116 -123
- data/generated/google/apis/bigqueryreservation_v1/representations.rb +2 -0
- data/generated/google/apis/bigqueryreservation_v1/service.rb +137 -183
- data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +88 -100
- data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +77 -100
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +93 -98
- data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +2 -0
- data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +114 -151
- data/generated/google/apis/bigtableadmin_v1.rb +1 -1
- data/generated/google/apis/bigtableadmin_v1/classes.rb +137 -119
- data/generated/google/apis/bigtableadmin_v1/representations.rb +29 -0
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +455 -607
- data/generated/google/apis/bigtableadmin_v2/representations.rb +29 -0
- data/generated/google/apis/bigtableadmin_v2/service.rb +194 -247
- data/generated/google/apis/billingbudgets_v1beta1.rb +4 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +107 -118
- data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
- data/generated/google/apis/billingbudgets_v1beta1/service.rb +30 -33
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1/classes.rb +246 -354
- data/generated/google/apis/binaryauthorization_v1/representations.rb +1 -0
- data/generated/google/apis/binaryauthorization_v1/service.rb +74 -89
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +246 -354
- data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +1 -0
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +74 -89
- data/generated/google/apis/blogger_v2.rb +2 -3
- data/generated/google/apis/blogger_v2/classes.rb +1 -2
- data/generated/google/apis/blogger_v2/service.rb +1 -2
- data/generated/google/apis/blogger_v3.rb +2 -3
- data/generated/google/apis/blogger_v3/classes.rb +1 -2
- data/generated/google/apis/blogger_v3/service.rb +1 -2
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +11 -9
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +91 -116
- data/generated/google/apis/chat_v1/service.rb +30 -42
- data/generated/google/apis/chromeuxreport_v1.rb +1 -1
- data/generated/google/apis/chromeuxreport_v1/classes.rb +55 -66
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +18 -8
- data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
- data/generated/google/apis/classroom_v1.rb +7 -1
- data/generated/google/apis/classroom_v1/classes.rb +382 -365
- data/generated/google/apis/classroom_v1/representations.rb +43 -0
- data/generated/google/apis/classroom_v1/service.rb +883 -902
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +765 -1036
- data/generated/google/apis/cloudasset_v1/representations.rb +16 -0
- data/generated/google/apis/cloudasset_v1/service.rb +131 -156
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +531 -775
- data/generated/google/apis/cloudasset_v1beta1/service.rb +59 -75
- data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +204 -349
- data/generated/google/apis/cloudasset_v1p1beta1/service.rb +35 -47
- data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +222 -276
- data/generated/google/apis/cloudasset_v1p4beta1/service.rb +75 -93
- data/generated/google/apis/cloudasset_v1p5beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p5beta1/classes.rb +481 -718
- data/generated/google/apis/cloudasset_v1p5beta1/service.rb +25 -28
- data/generated/google/apis/cloudbilling_v1.rb +7 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +284 -445
- data/generated/google/apis/cloudbilling_v1/service.rb +104 -124
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +371 -343
- data/generated/google/apis/cloudbuild_v1/representations.rb +23 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +265 -66
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +291 -329
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +2 -0
- data/generated/google/apis/cloudbuild_v1alpha1/service.rb +15 -18
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +277 -313
- data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +2 -0
- data/generated/google/apis/cloudbuild_v1alpha2/service.rb +22 -28
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +185 -252
- data/generated/google/apis/clouddebugger_v2/service.rb +53 -59
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +132 -154
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +1 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +53 -69
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +323 -493
- data/generated/google/apis/cloudfunctions_v1/service.rb +79 -93
- data/generated/google/apis/cloudidentity_v1.rb +4 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +977 -75
- data/generated/google/apis/cloudidentity_v1/representations.rb +388 -0
- data/generated/google/apis/cloudidentity_v1/service.rb +841 -62
- data/generated/google/apis/cloudidentity_v1beta1.rb +4 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +1059 -318
- data/generated/google/apis/cloudidentity_v1beta1/representations.rb +331 -22
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +742 -96
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +270 -373
- data/generated/google/apis/cloudiot_v1/representations.rb +1 -0
- data/generated/google/apis/cloudiot_v1/service.rb +147 -154
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +509 -692
- data/generated/google/apis/cloudkms_v1/representations.rb +18 -0
- data/generated/google/apis/cloudkms_v1/service.rb +170 -216
- data/generated/google/apis/cloudprofiler_v2.rb +1 -1
- data/generated/google/apis/cloudprofiler_v2/classes.rb +28 -33
- data/generated/google/apis/cloudprofiler_v2/service.rb +17 -19
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +14 -7
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +1 -0
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +60 -58
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +11 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +1 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +24 -23
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +7 -0
- data/generated/google/apis/cloudresourcemanager_v2/representations.rb +1 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +7 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +1 -0
- data/generated/google/apis/cloudscheduler_v1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1/classes.rb +272 -383
- data/generated/google/apis/cloudscheduler_v1/service.rb +45 -62
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +273 -384
- data/generated/google/apis/cloudscheduler_v1beta1/service.rb +45 -62
- data/generated/google/apis/cloudsearch_v1.rb +2 -2
- data/generated/google/apis/cloudsearch_v1/classes.rb +650 -782
- data/generated/google/apis/cloudsearch_v1/representations.rb +15 -0
- data/generated/google/apis/cloudsearch_v1/service.rb +286 -326
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1/classes.rb +36 -227
- data/generated/google/apis/cloudshell_v1/representations.rb +0 -67
- data/generated/google/apis/cloudshell_v1/service.rb +21 -25
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +69 -78
- data/generated/google/apis/cloudshell_v1alpha1/service.rb +20 -24
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +612 -933
- data/generated/google/apis/cloudtasks_v2/representations.rb +1 -0
- data/generated/google/apis/cloudtasks_v2/service.rb +146 -217
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +608 -964
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -0
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +178 -270
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +616 -938
- data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
- data/generated/google/apis/cloudtasks_v2beta3/service.rb +146 -217
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +39 -61
- data/generated/google/apis/cloudtrace_v1/service.rb +37 -51
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +92 -107
- data/generated/google/apis/cloudtrace_v2/service.rb +8 -11
- data/generated/google/apis/cloudtrace_v2beta1.rb +1 -1
- data/generated/google/apis/cloudtrace_v2beta1/classes.rb +23 -33
- data/generated/google/apis/cloudtrace_v2beta1/service.rb +30 -37
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +190 -242
- data/generated/google/apis/composer_v1/service.rb +79 -150
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +203 -262
- data/generated/google/apis/composer_v1beta1/service.rb +92 -179
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +1021 -137
- data/generated/google/apis/compute_alpha/representations.rb +208 -4
- data/generated/google/apis/compute_alpha/service.rb +710 -699
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +607 -82
- data/generated/google/apis/compute_beta/representations.rb +114 -1
- data/generated/google/apis/compute_beta/service.rb +623 -612
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1014 -99
- data/generated/google/apis/compute_v1/representations.rb +390 -15
- data/generated/google/apis/compute_v1/service.rb +809 -33
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +996 -965
- data/generated/google/apis/container_v1/representations.rb +75 -0
- data/generated/google/apis/container_v1/service.rb +435 -502
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +1094 -1044
- data/generated/google/apis/container_v1beta1/representations.rb +91 -0
- data/generated/google/apis/container_v1beta1/service.rb +403 -466
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +463 -596
- data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/containeranalysis_v1alpha1/service.rb +149 -169
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +461 -613
- data/generated/google/apis/containeranalysis_v1beta1/representations.rb +1 -0
- data/generated/google/apis/containeranalysis_v1beta1/service.rb +75 -90
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +14 -2
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +116 -5
- data/generated/google/apis/content_v2_1/representations.rb +35 -0
- data/generated/google/apis/content_v2_1/service.rb +53 -2
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/customsearch_v1/classes.rb +303 -492
- data/generated/google/apis/customsearch_v1/service.rb +186 -343
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +9 -1
- data/generated/google/apis/datacatalog_v1beta1/representations.rb +1 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +1150 -973
- data/generated/google/apis/dataflow_v1b3/representations.rb +145 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +308 -257
- data/generated/google/apis/datafusion_v1.rb +40 -0
- data/generated/google/apis/datafusion_v1/classes.rb +1040 -0
- data/generated/google/apis/datafusion_v1/representations.rb +395 -0
- data/generated/google/apis/datafusion_v1/service.rb +667 -0
- data/generated/google/apis/datafusion_v1beta1.rb +5 -8
- data/generated/google/apis/datafusion_v1beta1/classes.rb +283 -397
- data/generated/google/apis/datafusion_v1beta1/representations.rb +5 -0
- data/generated/google/apis/datafusion_v1beta1/service.rb +81 -95
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +250 -328
- data/generated/google/apis/dataproc_v1/representations.rb +18 -0
- data/generated/google/apis/dataproc_v1/service.rb +134 -168
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +274 -323
- data/generated/google/apis/dataproc_v1beta2/representations.rb +33 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +137 -192
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +330 -472
- data/generated/google/apis/datastore_v1/service.rb +52 -63
- data/generated/google/apis/datastore_v1beta1.rb +1 -1
- data/generated/google/apis/datastore_v1beta1/classes.rb +150 -217
- data/generated/google/apis/datastore_v1beta1/service.rb +11 -12
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +255 -371
- data/generated/google/apis/datastore_v1beta3/service.rb +1 -2
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/dfareporting_v3_3.rb +2 -2
- data/generated/google/apis/dfareporting_v3_3/classes.rb +326 -339
- data/generated/google/apis/dfareporting_v3_3/representations.rb +42 -0
- data/generated/google/apis/dfareporting_v3_3/service.rb +646 -1262
- data/generated/google/apis/dfareporting_v3_4.rb +2 -2
- data/generated/google/apis/dfareporting_v3_4/classes.rb +348 -350
- data/generated/google/apis/dfareporting_v3_4/representations.rb +43 -0
- data/generated/google/apis/dfareporting_v3_4/service.rb +681 -1261
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +1318 -1613
- data/generated/google/apis/dialogflow_v2/representations.rb +53 -15
- data/generated/google/apis/dialogflow_v2/service.rb +324 -448
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +1396 -1705
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +53 -15
- data/generated/google/apis/dialogflow_v2beta1/service.rb +915 -996
- data/generated/google/apis/dialogflow_v3beta1.rb +38 -0
- data/generated/google/apis/dialogflow_v3beta1/classes.rb +8210 -0
- data/generated/google/apis/dialogflow_v3beta1/representations.rb +3461 -0
- data/generated/google/apis/dialogflow_v3beta1/service.rb +2812 -0
- data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
- data/generated/google/apis/digitalassetlinks_v1/classes.rb +66 -92
- data/generated/google/apis/digitalassetlinks_v1/service.rb +131 -188
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +158 -7
- data/generated/google/apis/displayvideo_v1/representations.rb +41 -0
- data/generated/google/apis/displayvideo_v1/service.rb +147 -31
- data/generated/google/apis/displayvideo_v1beta.rb +38 -0
- data/generated/google/apis/displayvideo_v1beta/classes.rb +146 -0
- data/generated/google/apis/displayvideo_v1beta/representations.rb +72 -0
- data/generated/google/apis/displayvideo_v1beta/service.rb +161 -0
- data/generated/google/apis/displayvideo_v1beta2.rb +38 -0
- data/generated/google/apis/displayvideo_v1beta2/classes.rb +146 -0
- data/generated/google/apis/displayvideo_v1beta2/representations.rb +72 -0
- data/generated/google/apis/displayvideo_v1beta2/service.rb +130 -0
- data/generated/google/apis/displayvideo_v1dev.rb +38 -0
- data/generated/google/apis/displayvideo_v1dev/classes.rb +146 -0
- data/generated/google/apis/displayvideo_v1dev/representations.rb +72 -0
- data/generated/google/apis/displayvideo_v1dev/service.rb +130 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +1076 -1301
- data/generated/google/apis/dlp_v2/service.rb +962 -905
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +175 -198
- data/generated/google/apis/dns_v1/service.rb +82 -97
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +180 -205
- data/generated/google/apis/dns_v1beta2/service.rb +82 -97
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +894 -1229
- data/generated/google/apis/docs_v1/service.rb +17 -22
- data/generated/google/apis/documentai_v1beta2.rb +1 -1
- data/generated/google/apis/documentai_v1beta2/classes.rb +2253 -824
- data/generated/google/apis/documentai_v1beta2/representations.rb +701 -0
- data/generated/google/apis/documentai_v1beta2/service.rb +22 -24
- data/generated/google/apis/domainsrdap_v1.rb +1 -1
- data/generated/google/apis/domainsrdap_v1/classes.rb +42 -69
- data/generated/google/apis/domainsrdap_v1/service.rb +16 -16
- data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -2
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +8 -15
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +37 -66
- data/generated/google/apis/doubleclickbidmanager_v1_1.rb +3 -2
- data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +202 -15
- data/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb +107 -0
- data/generated/google/apis/doubleclickbidmanager_v1_1/service.rb +37 -66
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/service.rb +2 -2
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +17 -7
- data/generated/google/apis/drive_v2/representations.rb +1 -0
- data/generated/google/apis/drive_v2/service.rb +79 -15
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +23 -7
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/drive_v3/service.rb +59 -11
- data/generated/google/apis/driveactivity_v2.rb +1 -1
- data/generated/google/apis/driveactivity_v2/classes.rb +55 -68
- data/generated/google/apis/factchecktools_v1alpha1.rb +1 -1
- data/generated/google/apis/factchecktools_v1alpha1/classes.rb +46 -56
- data/generated/google/apis/factchecktools_v1alpha1/service.rb +30 -33
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +154 -173
- data/generated/google/apis/file_v1/service.rb +43 -52
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +334 -193
- data/generated/google/apis/file_v1beta1/representations.rb +55 -0
- data/generated/google/apis/file_v1beta1/service.rb +267 -55
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/classes.rb +325 -375
- data/generated/google/apis/firebase_v1beta1/representations.rb +3 -16
- data/generated/google/apis/firebase_v1beta1/service.rb +364 -421
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +89 -112
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +18 -21
- data/generated/google/apis/firebasehosting_v1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1/classes.rb +36 -40
- data/generated/google/apis/firebasehosting_v1/service.rb +19 -22
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +334 -177
- data/generated/google/apis/firebasehosting_v1beta1/representations.rb +83 -0
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +530 -149
- data/generated/google/apis/firebaseml_v1.rb +1 -1
- data/generated/google/apis/firebaseml_v1/classes.rb +39 -44
- data/generated/google/apis/firebaseml_v1/service.rb +19 -22
- data/generated/google/apis/firebaseml_v1beta2.rb +1 -1
- data/generated/google/apis/firebaseml_v1beta2/classes.rb +67 -77
- data/generated/google/apis/firebaseml_v1beta2/representations.rb +1 -1
- data/generated/google/apis/firebaseml_v1beta2/service.rb +16 -18
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +102 -137
- data/generated/google/apis/firebaserules_v1/service.rb +87 -110
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +402 -498
- data/generated/google/apis/firestore_v1/service.rb +165 -201
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +334 -409
- data/generated/google/apis/firestore_v1beta1/service.rb +106 -122
- data/generated/google/apis/firestore_v1beta2.rb +1 -1
- data/generated/google/apis/firestore_v1beta2/classes.rb +135 -165
- data/generated/google/apis/firestore_v1beta2/service.rb +65 -86
- data/generated/google/apis/fitness_v1.rb +3 -3
- data/generated/google/apis/fitness_v1/classes.rb +172 -210
- data/generated/google/apis/fitness_v1/service.rb +125 -146
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -3
- data/generated/google/apis/games_configuration_v1configuration/service.rb +6 -6
- data/generated/google/apis/games_management_v1management.rb +2 -3
- data/generated/google/apis/games_management_v1management/classes.rb +14 -20
- data/generated/google/apis/games_management_v1management/service.rb +35 -36
- data/generated/google/apis/games_v1.rb +2 -3
- data/generated/google/apis/games_v1/classes.rb +76 -83
- data/generated/google/apis/games_v1/representations.rb +2 -0
- data/generated/google/apis/games_v1/service.rb +84 -90
- data/generated/google/apis/gameservices_v1.rb +1 -1
- data/generated/google/apis/gameservices_v1/classes.rb +351 -523
- data/generated/google/apis/gameservices_v1/representations.rb +1 -0
- data/generated/google/apis/gameservices_v1/service.rb +167 -207
- data/generated/google/apis/gameservices_v1beta.rb +1 -1
- data/generated/google/apis/gameservices_v1beta/classes.rb +351 -523
- data/generated/google/apis/gameservices_v1beta/representations.rb +1 -0
- data/generated/google/apis/gameservices_v1beta/service.rb +167 -207
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +70 -76
- data/generated/google/apis/genomics_v1/service.rb +28 -43
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +223 -290
- data/generated/google/apis/genomics_v1alpha2/service.rb +54 -76
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +252 -347
- data/generated/google/apis/genomics_v2alpha1/representations.rb +1 -27
- data/generated/google/apis/genomics_v2alpha1/service.rb +47 -100
- data/generated/google/apis/gmail_v1.rb +3 -3
- data/generated/google/apis/gmail_v1/classes.rb +207 -266
- data/generated/google/apis/gmail_v1/service.rb +260 -288
- data/generated/google/apis/gmailpostmastertools_v1beta1.rb +2 -2
- data/generated/google/apis/gmailpostmastertools_v1beta1/classes.rb +37 -42
- data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +35 -41
- data/generated/google/apis/groupsmigration_v1.rb +35 -0
- data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
- data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
- data/generated/google/apis/groupsmigration_v1/service.rb +100 -0
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/classes.rb +635 -826
- data/generated/google/apis/healthcare_v1/representations.rb +32 -0
- data/generated/google/apis/healthcare_v1/service.rb +842 -844
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +887 -1086
- data/generated/google/apis/healthcare_v1beta1/representations.rb +60 -0
- data/generated/google/apis/healthcare_v1beta1/service.rb +1149 -1109
- data/generated/google/apis/homegraph_v1.rb +4 -1
- data/generated/google/apis/homegraph_v1/classes.rb +76 -164
- data/generated/google/apis/homegraph_v1/service.rb +23 -35
- data/generated/google/apis/iam_v1.rb +5 -2
- data/generated/google/apis/iam_v1/classes.rb +395 -592
- data/generated/google/apis/iam_v1/representations.rb +1 -0
- data/generated/google/apis/iam_v1/service.rb +431 -556
- data/generated/google/apis/iamcredentials_v1.rb +4 -2
- data/generated/google/apis/iamcredentials_v1/classes.rb +75 -85
- data/generated/google/apis/iamcredentials_v1/service.rb +15 -13
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +253 -355
- data/generated/google/apis/iap_v1/representations.rb +1 -0
- data/generated/google/apis/iap_v1/service.rb +61 -71
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +164 -254
- data/generated/google/apis/iap_v1beta1/representations.rb +1 -0
- data/generated/google/apis/iap_v1beta1/service.rb +17 -19
- data/generated/google/apis/indexing_v3.rb +1 -1
- data/generated/google/apis/indexing_v3/classes.rb +11 -11
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +786 -1086
- data/generated/google/apis/jobs_v2/service.rb +85 -126
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +637 -856
- data/generated/google/apis/jobs_v3/service.rb +101 -139
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +762 -1023
- data/generated/google/apis/jobs_v3p1beta1/service.rb +103 -142
- data/generated/google/apis/kgsearch_v1.rb +1 -1
- data/generated/google/apis/kgsearch_v1/classes.rb +4 -4
- data/generated/google/apis/kgsearch_v1/service.rb +11 -11
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +93 -111
- data/generated/google/apis/language_v1/service.rb +4 -4
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +78 -90
- data/generated/google/apis/language_v1beta1/service.rb +2 -2
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/language_v1beta2/classes.rb +95 -112
- data/generated/google/apis/language_v1beta2/service.rb +4 -4
- data/generated/google/apis/libraryagent_v1.rb +1 -1
- data/generated/google/apis/libraryagent_v1/classes.rb +10 -16
- data/generated/google/apis/libraryagent_v1/service.rb +13 -16
- data/generated/google/apis/licensing_v1.rb +4 -3
- data/generated/google/apis/licensing_v1/classes.rb +1 -1
- data/generated/google/apis/licensing_v1/service.rb +55 -85
- data/generated/google/apis/lifesciences_v2beta.rb +1 -1
- data/generated/google/apis/lifesciences_v2beta/classes.rb +262 -290
- data/generated/google/apis/lifesciences_v2beta/service.rb +30 -42
- data/generated/google/apis/localservices_v1.rb +31 -0
- data/generated/google/apis/localservices_v1/classes.rb +419 -0
- data/generated/google/apis/localservices_v1/representations.rb +172 -0
- data/generated/google/apis/localservices_v1/service.rb +199 -0
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +174 -214
- data/generated/google/apis/logging_v2/representations.rb +15 -0
- data/generated/google/apis/logging_v2/service.rb +1017 -584
- data/generated/google/apis/managedidentities_v1.rb +1 -1
- data/generated/google/apis/managedidentities_v1/classes.rb +326 -452
- data/generated/google/apis/managedidentities_v1/service.rb +78 -99
- data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
- data/generated/google/apis/managedidentities_v1alpha1/classes.rb +344 -457
- data/generated/google/apis/managedidentities_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/managedidentities_v1alpha1/service.rb +88 -112
- data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
- data/generated/google/apis/managedidentities_v1beta1/classes.rb +340 -456
- data/generated/google/apis/managedidentities_v1beta1/representations.rb +1 -0
- data/generated/google/apis/managedidentities_v1beta1/service.rb +76 -96
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +99 -109
- data/generated/google/apis/manufacturers_v1/service.rb +44 -55
- data/generated/google/apis/memcache_v1beta2.rb +1 -1
- data/generated/google/apis/memcache_v1beta2/classes.rb +170 -710
- data/generated/google/apis/memcache_v1beta2/representations.rb +0 -120
- data/generated/google/apis/memcache_v1beta2/service.rb +58 -190
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +956 -1144
- data/generated/google/apis/ml_v1/representations.rb +65 -0
- data/generated/google/apis/ml_v1/service.rb +194 -253
- data/generated/google/apis/monitoring_v1.rb +1 -1
- data/generated/google/apis/monitoring_v1/classes.rb +119 -37
- data/generated/google/apis/monitoring_v1/representations.rb +35 -0
- data/generated/google/apis/monitoring_v1/service.rb +10 -11
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +260 -339
- data/generated/google/apis/monitoring_v3/representations.rb +2 -0
- data/generated/google/apis/monitoring_v3/service.rb +121 -140
- data/generated/google/apis/networkmanagement_v1.rb +1 -1
- data/generated/google/apis/networkmanagement_v1/classes.rb +273 -429
- data/generated/google/apis/networkmanagement_v1/service.rb +97 -120
- data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
- data/generated/google/apis/networkmanagement_v1beta1/classes.rb +456 -429
- data/generated/google/apis/networkmanagement_v1beta1/representations.rb +63 -0
- data/generated/google/apis/networkmanagement_v1beta1/service.rb +97 -120
- data/generated/google/apis/osconfig_v1.rb +1 -1
- data/generated/google/apis/osconfig_v1/classes.rb +154 -181
- data/generated/google/apis/osconfig_v1/service.rb +22 -27
- data/generated/google/apis/osconfig_v1beta.rb +1 -1
- data/generated/google/apis/osconfig_v1beta/classes.rb +327 -411
- data/generated/google/apis/osconfig_v1beta/service.rb +39 -52
- data/generated/google/apis/oslogin_v1.rb +1 -1
- data/generated/google/apis/oslogin_v1/classes.rb +14 -12
- data/generated/google/apis/oslogin_v1/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1/service.rb +12 -16
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha/classes.rb +14 -12
- data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +14 -14
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/classes.rb +14 -12
- data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1beta/service.rb +12 -16
- data/generated/google/apis/pagespeedonline_v5.rb +2 -2
- data/generated/google/apis/pagespeedonline_v5/classes.rb +18 -24
- data/generated/google/apis/pagespeedonline_v5/service.rb +3 -4
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +258 -14
- data/generated/google/apis/people_v1/representations.rb +98 -0
- data/generated/google/apis/people_v1/service.rb +59 -47
- data/generated/google/apis/playablelocations_v3.rb +1 -1
- data/generated/google/apis/playablelocations_v3/classes.rb +108 -155
- data/generated/google/apis/playablelocations_v3/service.rb +10 -10
- data/generated/google/apis/playcustomapp_v1.rb +1 -1
- data/generated/google/apis/playcustomapp_v1/classes.rb +2 -2
- data/generated/google/apis/playcustomapp_v1/service.rb +2 -2
- data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1/classes.rb +232 -394
- data/generated/google/apis/policytroubleshooter_v1/service.rb +2 -2
- data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +232 -393
- data/generated/google/apis/policytroubleshooter_v1beta/service.rb +2 -2
- data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +148 -146
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +14 -0
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +517 -49
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +399 -518
- data/generated/google/apis/pubsub_v1/representations.rb +2 -0
- data/generated/google/apis/pubsub_v1/service.rb +220 -246
- data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
- data/generated/google/apis/pubsub_v1beta1a/classes.rb +71 -86
- data/generated/google/apis/pubsub_v1beta1a/service.rb +31 -38
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +251 -354
- data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -0
- data/generated/google/apis/pubsub_v1beta2/service.rb +96 -108
- data/generated/google/apis/pubsublite_v1.rb +34 -0
- data/generated/google/apis/pubsublite_v1/classes.rb +461 -0
- data/generated/google/apis/pubsublite_v1/representations.rb +261 -0
- data/generated/google/apis/pubsublite_v1/service.rb +558 -0
- data/generated/google/apis/realtimebidding_v1.rb +1 -4
- data/generated/google/apis/realtimebidding_v1/classes.rb +198 -291
- data/generated/google/apis/realtimebidding_v1/service.rb +98 -135
- data/generated/google/apis/recommendationengine_v1beta1.rb +2 -2
- data/generated/google/apis/recommendationengine_v1beta1/classes.rb +337 -456
- data/generated/google/apis/recommendationengine_v1beta1/representations.rb +0 -16
- data/generated/google/apis/recommendationengine_v1beta1/service.rb +141 -207
- data/generated/google/apis/recommender_v1.rb +1 -1
- data/generated/google/apis/recommender_v1/classes.rb +76 -100
- data/generated/google/apis/recommender_v1/service.rb +43 -58
- data/generated/google/apis/recommender_v1beta1.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/classes.rb +75 -99
- data/generated/google/apis/recommender_v1beta1/service.rb +43 -58
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +91 -513
- data/generated/google/apis/redis_v1/representations.rb +0 -139
- data/generated/google/apis/redis_v1/service.rb +93 -110
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +95 -517
- data/generated/google/apis/redis_v1beta1/representations.rb +0 -139
- data/generated/google/apis/redis_v1beta1/service.rb +93 -110
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +951 -1078
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +61 -0
- data/generated/google/apis/remotebuildexecution_v1/service.rb +26 -33
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +946 -1071
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +61 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/service.rb +103 -65
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +1099 -1250
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +61 -0
- data/generated/google/apis/remotebuildexecution_v2/service.rb +147 -206
- data/generated/google/apis/reseller_v1.rb +2 -2
- data/generated/google/apis/reseller_v1/classes.rb +151 -219
- data/generated/google/apis/reseller_v1/service.rb +122 -173
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +14 -13
- data/generated/google/apis/run_v1/representations.rb +1 -1
- data/generated/google/apis/run_v1/service.rb +38 -2
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +1 -1
- data/generated/google/apis/run_v1alpha1/representations.rb +1 -1
- data/generated/google/apis/run_v1beta1.rb +1 -1
- data/generated/google/apis/run_v1beta1/classes.rb +3 -2
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +36 -40
- data/generated/google/apis/runtimeconfig_v1/service.rb +19 -22
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +302 -412
- data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +1 -0
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +135 -159
- data/generated/google/apis/safebrowsing_v4.rb +1 -1
- data/generated/google/apis/safebrowsing_v4/classes.rb +55 -64
- data/generated/google/apis/safebrowsing_v4/service.rb +4 -4
- data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1/classes.rb +148 -146
- data/generated/google/apis/sasportal_v1alpha1/representations.rb +14 -0
- data/generated/google/apis/sasportal_v1alpha1/service.rb +517 -49
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +88 -111
- data/generated/google/apis/script_v1/service.rb +63 -69
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +2 -2
- data/generated/google/apis/secretmanager_v1.rb +1 -1
- data/generated/google/apis/secretmanager_v1/classes.rb +379 -365
- data/generated/google/apis/secretmanager_v1/representations.rb +92 -0
- data/generated/google/apis/secretmanager_v1/service.rb +66 -82
- data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
- data/generated/google/apis/secretmanager_v1beta1/classes.rb +218 -363
- data/generated/google/apis/secretmanager_v1beta1/representations.rb +1 -0
- data/generated/google/apis/secretmanager_v1beta1/service.rb +66 -82
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +584 -826
- data/generated/google/apis/securitycenter_v1/representations.rb +1 -0
- data/generated/google/apis/securitycenter_v1/service.rb +250 -332
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +533 -746
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +1 -0
- data/generated/google/apis/securitycenter_v1beta1/service.rb +160 -202
- data/generated/google/apis/{securitycenter_v1p1beta1.rb → securitycenter_v1beta2.rb} +6 -6
- data/generated/google/apis/{securitycenter_v1p1alpha1 → securitycenter_v1beta2}/classes.rb +415 -269
- data/generated/google/apis/{securitycenter_v1p1alpha1 → securitycenter_v1beta2}/representations.rb +101 -30
- data/generated/google/apis/securitycenter_v1beta2/service.rb +1494 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1124 -1788
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +116 -141
- data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +1107 -1774
- data/generated/google/apis/serviceconsumermanagement_v1beta1/service.rb +52 -66
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +526 -641
- data/generated/google/apis/servicecontrol_v1/service.rb +36 -46
- data/generated/google/apis/servicecontrol_v2.rb +38 -0
- data/generated/google/apis/servicecontrol_v2/classes.rb +1078 -0
- data/generated/google/apis/servicecontrol_v2/representations.rb +405 -0
- data/generated/google/apis/servicecontrol_v2/service.rb +155 -0
- data/generated/google/apis/servicedirectory_v1beta1.rb +1 -1
- data/generated/google/apis/servicedirectory_v1beta1/classes.rb +221 -333
- data/generated/google/apis/servicedirectory_v1beta1/representations.rb +1 -0
- data/generated/google/apis/servicedirectory_v1beta1/service.rb +94 -129
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +1288 -2090
- data/generated/google/apis/servicemanagement_v1/representations.rb +14 -0
- data/generated/google/apis/servicemanagement_v1/service.rb +144 -195
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +1160 -1763
- data/generated/google/apis/servicenetworking_v1/representations.rb +52 -1
- data/generated/google/apis/servicenetworking_v1/service.rb +210 -114
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +1091 -1684
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +38 -0
- data/generated/google/apis/servicenetworking_v1beta/service.rb +52 -63
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +1144 -1823
- data/generated/google/apis/serviceusage_v1/representations.rb +4 -0
- data/generated/google/apis/serviceusage_v1/service.rb +67 -80
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +1273 -1986
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +8 -0
- data/generated/google/apis/serviceusage_v1beta1/service.rb +130 -162
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +3933 -5008
- data/generated/google/apis/sheets_v4/representations.rb +625 -0
- data/generated/google/apis/sheets_v4/service.rb +113 -149
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +841 -1114
- data/generated/google/apis/slides_v1/service.rb +23 -30
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +6 -6
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +1553 -2156
- data/generated/google/apis/spanner_v1/representations.rb +1 -0
- data/generated/google/apis/spanner_v1/service.rb +443 -618
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +174 -220
- data/generated/google/apis/speech_v1/service.rb +27 -32
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +253 -306
- data/generated/google/apis/speech_v1p1beta1/service.rb +27 -32
- data/generated/google/apis/speech_v2beta1.rb +1 -1
- data/generated/google/apis/speech_v2beta1/classes.rb +66 -76
- data/generated/google/apis/speech_v2beta1/service.rb +10 -12
- data/generated/google/apis/{sql_v1beta4.rb → sqladmin_v1beta4.rb} +5 -5
- data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/classes.rb +438 -452
- data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/representations.rb +106 -87
- data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/service.rb +295 -300
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +8 -7
- data/generated/google/apis/storage_v1/representations.rb +2 -2
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +263 -343
- data/generated/google/apis/storagetransfer_v1/service.rb +43 -40
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +106 -148
- data/generated/google/apis/streetviewpublish_v1/service.rb +94 -177
- data/generated/google/apis/sts_v1.rb +32 -0
- data/generated/google/apis/sts_v1/classes.rb +120 -0
- data/generated/google/apis/sts_v1/representations.rb +59 -0
- data/generated/google/apis/sts_v1/service.rb +90 -0
- data/generated/google/apis/sts_v1beta.rb +32 -0
- data/generated/google/apis/sts_v1beta/classes.rb +191 -0
- data/generated/google/apis/{oauth2_v2 → sts_v1beta}/representations.rb +14 -21
- data/generated/google/apis/sts_v1beta/service.rb +92 -0
- data/generated/google/apis/tagmanager_v1.rb +2 -3
- data/generated/google/apis/tagmanager_v1/classes.rb +225 -288
- data/generated/google/apis/tagmanager_v1/service.rb +22 -23
- data/generated/google/apis/tagmanager_v2.rb +2 -3
- data/generated/google/apis/tagmanager_v2/classes.rb +240 -280
- data/generated/google/apis/tagmanager_v2/representations.rb +1 -0
- data/generated/google/apis/tagmanager_v2/service.rb +189 -285
- data/generated/google/apis/tasks_v1.rb +1 -1
- data/generated/google/apis/tasks_v1/classes.rb +21 -22
- data/generated/google/apis/tasks_v1/service.rb +19 -19
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +317 -382
- data/generated/google/apis/testing_v1/representations.rb +2 -0
- data/generated/google/apis/testing_v1/service.rb +22 -28
- data/generated/google/apis/texttospeech_v1.rb +1 -1
- data/generated/google/apis/texttospeech_v1/classes.rb +51 -57
- data/generated/google/apis/texttospeech_v1/service.rb +9 -10
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1/classes.rb +96 -57
- data/generated/google/apis/texttospeech_v1beta1/representations.rb +19 -0
- data/generated/google/apis/texttospeech_v1beta1/service.rb +9 -10
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +672 -931
- data/generated/google/apis/toolresults_v1beta3/representations.rb +1 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +231 -349
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +122 -78
- data/generated/google/apis/tpu_v1/representations.rb +19 -0
- data/generated/google/apis/tpu_v1/service.rb +21 -25
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +122 -78
- data/generated/google/apis/tpu_v1alpha1/representations.rb +19 -0
- data/generated/google/apis/tpu_v1alpha1/service.rb +21 -25
- data/generated/google/apis/trafficdirector_v2.rb +34 -0
- data/generated/google/apis/trafficdirector_v2/classes.rb +1347 -0
- data/generated/google/apis/trafficdirector_v2/representations.rb +620 -0
- data/generated/google/apis/trafficdirector_v2/service.rb +89 -0
- data/generated/google/apis/translate_v3.rb +1 -1
- data/generated/google/apis/translate_v3/classes.rb +148 -175
- data/generated/google/apis/translate_v3/service.rb +122 -138
- data/generated/google/apis/translate_v3beta1.rb +1 -1
- data/generated/google/apis/translate_v3beta1/classes.rb +149 -170
- data/generated/google/apis/translate_v3beta1/service.rb +122 -138
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +80 -103
- data/generated/google/apis/vault_v1/service.rb +31 -37
- data/generated/google/apis/vectortile_v1.rb +1 -1
- data/generated/google/apis/vectortile_v1/classes.rb +185 -267
- data/generated/google/apis/vectortile_v1/service.rb +75 -88
- data/generated/google/apis/verifiedaccess_v1.rb +1 -1
- data/generated/google/apis/verifiedaccess_v1/classes.rb +20 -27
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +753 -918
- data/generated/google/apis/videointelligence_v1/service.rb +71 -48
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +748 -911
- data/generated/google/apis/videointelligence_v1beta2/service.rb +4 -4
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +748 -911
- data/generated/google/apis/videointelligence_v1p1beta1/service.rb +4 -4
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +748 -911
- data/generated/google/apis/videointelligence_v1p2beta1/service.rb +4 -4
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +754 -920
- data/generated/google/apis/videointelligence_v1p3beta1/service.rb +4 -4
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1304 -1870
- data/generated/google/apis/vision_v1/service.rb +254 -340
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +1246 -1790
- data/generated/google/apis/vision_v1p1beta1/service.rb +91 -121
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +1246 -1790
- data/generated/google/apis/vision_v1p2beta1/service.rb +91 -121
- data/generated/google/apis/webfonts_v1.rb +2 -3
- data/generated/google/apis/webfonts_v1/classes.rb +1 -2
- data/generated/google/apis/webfonts_v1/service.rb +2 -4
- data/generated/google/apis/websecurityscanner_v1.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1/classes.rb +71 -95
- data/generated/google/apis/websecurityscanner_v1/service.rb +46 -65
- data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +55 -63
- data/generated/google/apis/websecurityscanner_v1alpha/service.rb +46 -65
- data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1beta/classes.rb +77 -92
- data/generated/google/apis/websecurityscanner_v1beta/service.rb +46 -65
- data/generated/google/apis/{securitycenter_v1p1alpha1.rb → workflowexecutions_v1beta.rb} +9 -10
- data/generated/google/apis/workflowexecutions_v1beta/classes.rb +155 -0
- data/generated/google/apis/workflowexecutions_v1beta/representations.rb +88 -0
- data/generated/google/apis/{securitycenter_v1p1alpha1 → workflowexecutions_v1beta}/service.rb +73 -73
- data/generated/google/apis/workflows_v1beta.rb +34 -0
- data/generated/google/apis/workflows_v1beta/classes.rb +406 -0
- data/generated/google/apis/workflows_v1beta/representations.rb +173 -0
- data/generated/google/apis/workflows_v1beta/service.rb +437 -0
- data/generated/google/apis/youtube_analytics_v2.rb +1 -1
- data/generated/google/apis/youtube_analytics_v2/classes.rb +77 -104
- data/generated/google/apis/youtube_analytics_v2/service.rb +106 -126
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/service.rb +19 -19
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +904 -1594
- data/generated/google/apis/youtube_v3/representations.rb +0 -214
- data/generated/google/apis/youtube_v3/service.rb +971 -1397
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +20 -29
- data/generated/google/apis/youtubereporting_v1/service.rb +40 -43
- data/google-api-client.gemspec +2 -1
- data/lib/google/apis/core/base_service.rb +7 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +98 -36
- data/generated/google/apis/accessapproval_v1beta1/classes.rb +0 -417
- data/generated/google/apis/accessapproval_v1beta1/representations.rb +0 -203
- data/generated/google/apis/accessapproval_v1beta1/service.rb +0 -857
- data/generated/google/apis/dns_v2beta1.rb +0 -43
- data/generated/google/apis/dns_v2beta1/classes.rb +0 -1447
- data/generated/google/apis/dns_v2beta1/representations.rb +0 -588
- data/generated/google/apis/dns_v2beta1/service.rb +0 -928
- data/generated/google/apis/oauth2_v2.rb +0 -40
- data/generated/google/apis/oauth2_v2/classes.rb +0 -165
- data/generated/google/apis/oauth2_v2/service.rb +0 -158
- data/generated/google/apis/plus_v1.rb +0 -43
- data/generated/google/apis/plus_v1/classes.rb +0 -2094
- data/generated/google/apis/plus_v1/representations.rb +0 -907
- data/generated/google/apis/plus_v1/service.rb +0 -451
- data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +0 -2305
- data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +0 -789
- data/generated/google/apis/securitycenter_v1p1beta1/service.rb +0 -1326
- data/generated/google/apis/storage_v1beta2.rb +0 -40
- data/generated/google/apis/storage_v1beta2/classes.rb +0 -1047
- data/generated/google/apis/storage_v1beta2/representations.rb +0 -425
- data/generated/google/apis/storage_v1beta2/service.rb +0 -1667
|
@@ -1,451 +0,0 @@
|
|
|
1
|
-
# Copyright 2015 Google Inc.
|
|
2
|
-
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
#
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
#
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
|
-
require 'google/apis/core/base_service'
|
|
16
|
-
require 'google/apis/core/json_representation'
|
|
17
|
-
require 'google/apis/core/hashable'
|
|
18
|
-
require 'google/apis/errors'
|
|
19
|
-
|
|
20
|
-
module Google
|
|
21
|
-
module Apis
|
|
22
|
-
module PlusV1
|
|
23
|
-
# Google+ API
|
|
24
|
-
#
|
|
25
|
-
# Builds on top of the Google+ platform.
|
|
26
|
-
#
|
|
27
|
-
# @example
|
|
28
|
-
# require 'google/apis/plus_v1'
|
|
29
|
-
#
|
|
30
|
-
# Plus = Google::Apis::PlusV1 # Alias the module
|
|
31
|
-
# service = Plus::PlusService.new
|
|
32
|
-
#
|
|
33
|
-
# @see https://developers.google.com/+/api/
|
|
34
|
-
class PlusService < Google::Apis::Core::BaseService
|
|
35
|
-
# @return [String]
|
|
36
|
-
# API key. Your API key identifies your project and provides you with API access,
|
|
37
|
-
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
38
|
-
attr_accessor :key
|
|
39
|
-
|
|
40
|
-
# @return [String]
|
|
41
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
42
|
-
# characters.
|
|
43
|
-
attr_accessor :quota_user
|
|
44
|
-
|
|
45
|
-
# @return [String]
|
|
46
|
-
# Deprecated. Please use quotaUser instead.
|
|
47
|
-
attr_accessor :user_ip
|
|
48
|
-
|
|
49
|
-
def initialize
|
|
50
|
-
super('https://www.googleapis.com/', 'plus/v1/')
|
|
51
|
-
@batch_path = 'batch/plus/v1'
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
# Shut down. See https://developers.google.com/+/api-shutdown for more details.
|
|
55
|
-
# @param [String] activity_id
|
|
56
|
-
# The ID of the activity to get.
|
|
57
|
-
# @param [String] fields
|
|
58
|
-
# Selector specifying which fields to include in a partial response.
|
|
59
|
-
# @param [String] quota_user
|
|
60
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
61
|
-
# characters.
|
|
62
|
-
# @param [String] user_ip
|
|
63
|
-
# Deprecated. Please use quotaUser instead.
|
|
64
|
-
# @param [Google::Apis::RequestOptions] options
|
|
65
|
-
# Request-specific options
|
|
66
|
-
#
|
|
67
|
-
# @yield [result, err] Result & error if block supplied
|
|
68
|
-
# @yieldparam result [Google::Apis::PlusV1::Activity] parsed result object
|
|
69
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
70
|
-
#
|
|
71
|
-
# @return [Google::Apis::PlusV1::Activity]
|
|
72
|
-
#
|
|
73
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
74
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
75
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
76
|
-
def get_activity(activity_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
77
|
-
command = make_simple_command(:get, 'activities/{activityId}', options)
|
|
78
|
-
command.response_representation = Google::Apis::PlusV1::Activity::Representation
|
|
79
|
-
command.response_class = Google::Apis::PlusV1::Activity
|
|
80
|
-
command.params['activityId'] = activity_id unless activity_id.nil?
|
|
81
|
-
command.query['fields'] = fields unless fields.nil?
|
|
82
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
83
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
84
|
-
execute_or_queue_command(command, &block)
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
# Shut down. See https://developers.google.com/+/api-shutdown for more details.
|
|
88
|
-
# @param [String] user_id
|
|
89
|
-
# The ID of the user to get activities for. The special value "me" can be used
|
|
90
|
-
# to indicate the authenticated user.
|
|
91
|
-
# @param [String] collection
|
|
92
|
-
# The collection of activities to list.
|
|
93
|
-
# @param [Fixnum] max_results
|
|
94
|
-
# The maximum number of activities to include in the response, which is used for
|
|
95
|
-
# paging. For any response, the actual number returned might be less than the
|
|
96
|
-
# specified maxResults.
|
|
97
|
-
# @param [String] page_token
|
|
98
|
-
# The continuation token, which is used to page through large result sets. To
|
|
99
|
-
# get the next page of results, set this parameter to the value of "
|
|
100
|
-
# nextPageToken" from the previous response.
|
|
101
|
-
# @param [String] fields
|
|
102
|
-
# Selector specifying which fields to include in a partial response.
|
|
103
|
-
# @param [String] quota_user
|
|
104
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
105
|
-
# characters.
|
|
106
|
-
# @param [String] user_ip
|
|
107
|
-
# Deprecated. Please use quotaUser instead.
|
|
108
|
-
# @param [Google::Apis::RequestOptions] options
|
|
109
|
-
# Request-specific options
|
|
110
|
-
#
|
|
111
|
-
# @yield [result, err] Result & error if block supplied
|
|
112
|
-
# @yieldparam result [Google::Apis::PlusV1::ActivityFeed] parsed result object
|
|
113
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
114
|
-
#
|
|
115
|
-
# @return [Google::Apis::PlusV1::ActivityFeed]
|
|
116
|
-
#
|
|
117
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
118
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
119
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
120
|
-
def list_activities(user_id, collection, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
121
|
-
command = make_simple_command(:get, 'people/{userId}/activities/{collection}', options)
|
|
122
|
-
command.response_representation = Google::Apis::PlusV1::ActivityFeed::Representation
|
|
123
|
-
command.response_class = Google::Apis::PlusV1::ActivityFeed
|
|
124
|
-
command.params['userId'] = user_id unless user_id.nil?
|
|
125
|
-
command.params['collection'] = collection unless collection.nil?
|
|
126
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
|
127
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
128
|
-
command.query['fields'] = fields unless fields.nil?
|
|
129
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
130
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
131
|
-
execute_or_queue_command(command, &block)
|
|
132
|
-
end
|
|
133
|
-
|
|
134
|
-
# Shut down. See https://developers.google.com/+/api-shutdown for more details.
|
|
135
|
-
# @param [String] query
|
|
136
|
-
# Full-text search query string.
|
|
137
|
-
# @param [String] language
|
|
138
|
-
# Specify the preferred language to search with. See search language codes for
|
|
139
|
-
# available values.
|
|
140
|
-
# @param [Fixnum] max_results
|
|
141
|
-
# The maximum number of activities to include in the response, which is used for
|
|
142
|
-
# paging. For any response, the actual number returned might be less than the
|
|
143
|
-
# specified maxResults.
|
|
144
|
-
# @param [String] order_by
|
|
145
|
-
# Specifies how to order search results.
|
|
146
|
-
# @param [String] page_token
|
|
147
|
-
# The continuation token, which is used to page through large result sets. To
|
|
148
|
-
# get the next page of results, set this parameter to the value of "
|
|
149
|
-
# nextPageToken" from the previous response. This token can be of any length.
|
|
150
|
-
# @param [String] fields
|
|
151
|
-
# Selector specifying which fields to include in a partial response.
|
|
152
|
-
# @param [String] quota_user
|
|
153
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
154
|
-
# characters.
|
|
155
|
-
# @param [String] user_ip
|
|
156
|
-
# Deprecated. Please use quotaUser instead.
|
|
157
|
-
# @param [Google::Apis::RequestOptions] options
|
|
158
|
-
# Request-specific options
|
|
159
|
-
#
|
|
160
|
-
# @yield [result, err] Result & error if block supplied
|
|
161
|
-
# @yieldparam result [Google::Apis::PlusV1::ActivityFeed] parsed result object
|
|
162
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
163
|
-
#
|
|
164
|
-
# @return [Google::Apis::PlusV1::ActivityFeed]
|
|
165
|
-
#
|
|
166
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
167
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
168
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
169
|
-
def search_activities(query, language: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
170
|
-
command = make_simple_command(:get, 'activities', options)
|
|
171
|
-
command.response_representation = Google::Apis::PlusV1::ActivityFeed::Representation
|
|
172
|
-
command.response_class = Google::Apis::PlusV1::ActivityFeed
|
|
173
|
-
command.query['language'] = language unless language.nil?
|
|
174
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
|
175
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
|
176
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
177
|
-
command.query['query'] = query unless query.nil?
|
|
178
|
-
command.query['fields'] = fields unless fields.nil?
|
|
179
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
180
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
181
|
-
execute_or_queue_command(command, &block)
|
|
182
|
-
end
|
|
183
|
-
|
|
184
|
-
# Shut down. See https://developers.google.com/+/api-shutdown for more details.
|
|
185
|
-
# @param [String] comment_id
|
|
186
|
-
# The ID of the comment to get.
|
|
187
|
-
# @param [String] fields
|
|
188
|
-
# Selector specifying which fields to include in a partial response.
|
|
189
|
-
# @param [String] quota_user
|
|
190
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
191
|
-
# characters.
|
|
192
|
-
# @param [String] user_ip
|
|
193
|
-
# Deprecated. Please use quotaUser instead.
|
|
194
|
-
# @param [Google::Apis::RequestOptions] options
|
|
195
|
-
# Request-specific options
|
|
196
|
-
#
|
|
197
|
-
# @yield [result, err] Result & error if block supplied
|
|
198
|
-
# @yieldparam result [Google::Apis::PlusV1::Comment] parsed result object
|
|
199
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
200
|
-
#
|
|
201
|
-
# @return [Google::Apis::PlusV1::Comment]
|
|
202
|
-
#
|
|
203
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
204
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
205
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
206
|
-
def get_comment(comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
207
|
-
command = make_simple_command(:get, 'comments/{commentId}', options)
|
|
208
|
-
command.response_representation = Google::Apis::PlusV1::Comment::Representation
|
|
209
|
-
command.response_class = Google::Apis::PlusV1::Comment
|
|
210
|
-
command.params['commentId'] = comment_id unless comment_id.nil?
|
|
211
|
-
command.query['fields'] = fields unless fields.nil?
|
|
212
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
213
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
214
|
-
execute_or_queue_command(command, &block)
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
# Shut down. See https://developers.google.com/+/api-shutdown for more details.
|
|
218
|
-
# @param [String] activity_id
|
|
219
|
-
# The ID of the activity to get comments for.
|
|
220
|
-
# @param [Fixnum] max_results
|
|
221
|
-
# The maximum number of comments to include in the response, which is used for
|
|
222
|
-
# paging. For any response, the actual number returned might be less than the
|
|
223
|
-
# specified maxResults.
|
|
224
|
-
# @param [String] page_token
|
|
225
|
-
# The continuation token, which is used to page through large result sets. To
|
|
226
|
-
# get the next page of results, set this parameter to the value of "
|
|
227
|
-
# nextPageToken" from the previous response.
|
|
228
|
-
# @param [String] sort_order
|
|
229
|
-
# The order in which to sort the list of comments.
|
|
230
|
-
# @param [String] fields
|
|
231
|
-
# Selector specifying which fields to include in a partial response.
|
|
232
|
-
# @param [String] quota_user
|
|
233
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
234
|
-
# characters.
|
|
235
|
-
# @param [String] user_ip
|
|
236
|
-
# Deprecated. Please use quotaUser instead.
|
|
237
|
-
# @param [Google::Apis::RequestOptions] options
|
|
238
|
-
# Request-specific options
|
|
239
|
-
#
|
|
240
|
-
# @yield [result, err] Result & error if block supplied
|
|
241
|
-
# @yieldparam result [Google::Apis::PlusV1::CommentFeed] parsed result object
|
|
242
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
243
|
-
#
|
|
244
|
-
# @return [Google::Apis::PlusV1::CommentFeed]
|
|
245
|
-
#
|
|
246
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
247
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
248
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
249
|
-
def list_comments(activity_id, max_results: nil, page_token: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
250
|
-
command = make_simple_command(:get, 'activities/{activityId}/comments', options)
|
|
251
|
-
command.response_representation = Google::Apis::PlusV1::CommentFeed::Representation
|
|
252
|
-
command.response_class = Google::Apis::PlusV1::CommentFeed
|
|
253
|
-
command.params['activityId'] = activity_id unless activity_id.nil?
|
|
254
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
|
255
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
256
|
-
command.query['sortOrder'] = sort_order unless sort_order.nil?
|
|
257
|
-
command.query['fields'] = fields unless fields.nil?
|
|
258
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
259
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
260
|
-
execute_or_queue_command(command, &block)
|
|
261
|
-
end
|
|
262
|
-
|
|
263
|
-
# Get a person's profile. If your app uses scope https://www.googleapis.com/auth/
|
|
264
|
-
# plus.login, this method is guaranteed to return ageRange and language.
|
|
265
|
-
# @param [String] user_id
|
|
266
|
-
# The ID of the person to get the profile for. The special value "me" can be
|
|
267
|
-
# used to indicate the authenticated user.
|
|
268
|
-
# @param [String] fields
|
|
269
|
-
# Selector specifying which fields to include in a partial response.
|
|
270
|
-
# @param [String] quota_user
|
|
271
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
272
|
-
# characters.
|
|
273
|
-
# @param [String] user_ip
|
|
274
|
-
# Deprecated. Please use quotaUser instead.
|
|
275
|
-
# @param [Google::Apis::RequestOptions] options
|
|
276
|
-
# Request-specific options
|
|
277
|
-
#
|
|
278
|
-
# @yield [result, err] Result & error if block supplied
|
|
279
|
-
# @yieldparam result [Google::Apis::PlusV1::Person] parsed result object
|
|
280
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
281
|
-
#
|
|
282
|
-
# @return [Google::Apis::PlusV1::Person]
|
|
283
|
-
#
|
|
284
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
285
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
286
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
287
|
-
def get_person(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
288
|
-
command = make_simple_command(:get, 'people/{userId}', options)
|
|
289
|
-
command.response_representation = Google::Apis::PlusV1::Person::Representation
|
|
290
|
-
command.response_class = Google::Apis::PlusV1::Person
|
|
291
|
-
command.params['userId'] = user_id unless user_id.nil?
|
|
292
|
-
command.query['fields'] = fields unless fields.nil?
|
|
293
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
294
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
295
|
-
execute_or_queue_command(command, &block)
|
|
296
|
-
end
|
|
297
|
-
|
|
298
|
-
# List all of the people in the specified collection.
|
|
299
|
-
# @param [String] user_id
|
|
300
|
-
# Get the collection of people for the person identified. Use "me" to indicate
|
|
301
|
-
# the authenticated user.
|
|
302
|
-
# @param [String] collection
|
|
303
|
-
# The collection of people to list.
|
|
304
|
-
# @param [Fixnum] max_results
|
|
305
|
-
# The maximum number of people to include in the response, which is used for
|
|
306
|
-
# paging. For any response, the actual number returned might be less than the
|
|
307
|
-
# specified maxResults.
|
|
308
|
-
# @param [String] order_by
|
|
309
|
-
# The order to return people in.
|
|
310
|
-
# @param [String] page_token
|
|
311
|
-
# The continuation token, which is used to page through large result sets. To
|
|
312
|
-
# get the next page of results, set this parameter to the value of "
|
|
313
|
-
# nextPageToken" from the previous response.
|
|
314
|
-
# @param [String] fields
|
|
315
|
-
# Selector specifying which fields to include in a partial response.
|
|
316
|
-
# @param [String] quota_user
|
|
317
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
318
|
-
# characters.
|
|
319
|
-
# @param [String] user_ip
|
|
320
|
-
# Deprecated. Please use quotaUser instead.
|
|
321
|
-
# @param [Google::Apis::RequestOptions] options
|
|
322
|
-
# Request-specific options
|
|
323
|
-
#
|
|
324
|
-
# @yield [result, err] Result & error if block supplied
|
|
325
|
-
# @yieldparam result [Google::Apis::PlusV1::PeopleFeed] parsed result object
|
|
326
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
327
|
-
#
|
|
328
|
-
# @return [Google::Apis::PlusV1::PeopleFeed]
|
|
329
|
-
#
|
|
330
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
331
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
332
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
333
|
-
def list_people(user_id, collection, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
334
|
-
command = make_simple_command(:get, 'people/{userId}/people/{collection}', options)
|
|
335
|
-
command.response_representation = Google::Apis::PlusV1::PeopleFeed::Representation
|
|
336
|
-
command.response_class = Google::Apis::PlusV1::PeopleFeed
|
|
337
|
-
command.params['userId'] = user_id unless user_id.nil?
|
|
338
|
-
command.params['collection'] = collection unless collection.nil?
|
|
339
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
|
340
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
|
341
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
342
|
-
command.query['fields'] = fields unless fields.nil?
|
|
343
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
344
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
345
|
-
execute_or_queue_command(command, &block)
|
|
346
|
-
end
|
|
347
|
-
|
|
348
|
-
# Shut down. See https://developers.google.com/+/api-shutdown for more details.
|
|
349
|
-
# @param [String] activity_id
|
|
350
|
-
# The ID of the activity to get the list of people for.
|
|
351
|
-
# @param [String] collection
|
|
352
|
-
# The collection of people to list.
|
|
353
|
-
# @param [Fixnum] max_results
|
|
354
|
-
# The maximum number of people to include in the response, which is used for
|
|
355
|
-
# paging. For any response, the actual number returned might be less than the
|
|
356
|
-
# specified maxResults.
|
|
357
|
-
# @param [String] page_token
|
|
358
|
-
# The continuation token, which is used to page through large result sets. To
|
|
359
|
-
# get the next page of results, set this parameter to the value of "
|
|
360
|
-
# nextPageToken" from the previous response.
|
|
361
|
-
# @param [String] fields
|
|
362
|
-
# Selector specifying which fields to include in a partial response.
|
|
363
|
-
# @param [String] quota_user
|
|
364
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
365
|
-
# characters.
|
|
366
|
-
# @param [String] user_ip
|
|
367
|
-
# Deprecated. Please use quotaUser instead.
|
|
368
|
-
# @param [Google::Apis::RequestOptions] options
|
|
369
|
-
# Request-specific options
|
|
370
|
-
#
|
|
371
|
-
# @yield [result, err] Result & error if block supplied
|
|
372
|
-
# @yieldparam result [Google::Apis::PlusV1::PeopleFeed] parsed result object
|
|
373
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
374
|
-
#
|
|
375
|
-
# @return [Google::Apis::PlusV1::PeopleFeed]
|
|
376
|
-
#
|
|
377
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
378
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
379
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
380
|
-
def list_people_by_activity(activity_id, collection, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
381
|
-
command = make_simple_command(:get, 'activities/{activityId}/people/{collection}', options)
|
|
382
|
-
command.response_representation = Google::Apis::PlusV1::PeopleFeed::Representation
|
|
383
|
-
command.response_class = Google::Apis::PlusV1::PeopleFeed
|
|
384
|
-
command.params['activityId'] = activity_id unless activity_id.nil?
|
|
385
|
-
command.params['collection'] = collection unless collection.nil?
|
|
386
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
|
387
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
388
|
-
command.query['fields'] = fields unless fields.nil?
|
|
389
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
390
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
391
|
-
execute_or_queue_command(command, &block)
|
|
392
|
-
end
|
|
393
|
-
|
|
394
|
-
# Shut down. See https://developers.google.com/+/api-shutdown for more details.
|
|
395
|
-
# @param [String] query
|
|
396
|
-
# Specify a query string for full text search of public text in all profiles.
|
|
397
|
-
# @param [String] language
|
|
398
|
-
# Specify the preferred language to search with. See search language codes for
|
|
399
|
-
# available values.
|
|
400
|
-
# @param [Fixnum] max_results
|
|
401
|
-
# The maximum number of people to include in the response, which is used for
|
|
402
|
-
# paging. For any response, the actual number returned might be less than the
|
|
403
|
-
# specified maxResults.
|
|
404
|
-
# @param [String] page_token
|
|
405
|
-
# The continuation token, which is used to page through large result sets. To
|
|
406
|
-
# get the next page of results, set this parameter to the value of "
|
|
407
|
-
# nextPageToken" from the previous response. This token can be of any length.
|
|
408
|
-
# @param [String] fields
|
|
409
|
-
# Selector specifying which fields to include in a partial response.
|
|
410
|
-
# @param [String] quota_user
|
|
411
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
412
|
-
# characters.
|
|
413
|
-
# @param [String] user_ip
|
|
414
|
-
# Deprecated. Please use quotaUser instead.
|
|
415
|
-
# @param [Google::Apis::RequestOptions] options
|
|
416
|
-
# Request-specific options
|
|
417
|
-
#
|
|
418
|
-
# @yield [result, err] Result & error if block supplied
|
|
419
|
-
# @yieldparam result [Google::Apis::PlusV1::PeopleFeed] parsed result object
|
|
420
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
421
|
-
#
|
|
422
|
-
# @return [Google::Apis::PlusV1::PeopleFeed]
|
|
423
|
-
#
|
|
424
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
425
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
426
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
427
|
-
def search_people(query, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
428
|
-
command = make_simple_command(:get, 'people', options)
|
|
429
|
-
command.response_representation = Google::Apis::PlusV1::PeopleFeed::Representation
|
|
430
|
-
command.response_class = Google::Apis::PlusV1::PeopleFeed
|
|
431
|
-
command.query['language'] = language unless language.nil?
|
|
432
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
|
433
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
434
|
-
command.query['query'] = query unless query.nil?
|
|
435
|
-
command.query['fields'] = fields unless fields.nil?
|
|
436
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
437
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
438
|
-
execute_or_queue_command(command, &block)
|
|
439
|
-
end
|
|
440
|
-
|
|
441
|
-
protected
|
|
442
|
-
|
|
443
|
-
def apply_command_defaults(command)
|
|
444
|
-
command.query['key'] = key unless key.nil?
|
|
445
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
446
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
447
|
-
end
|
|
448
|
-
end
|
|
449
|
-
end
|
|
450
|
-
end
|
|
451
|
-
end
|
|
@@ -1,2305 +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 SecuritycenterV1p1beta1
|
|
24
|
-
|
|
25
|
-
# The configuration used for Asset Discovery runs.
|
|
26
|
-
class AssetDiscoveryConfig
|
|
27
|
-
include Google::Apis::Core::Hashable
|
|
28
|
-
|
|
29
|
-
# The mode to use for filtering asset discovery.
|
|
30
|
-
# Corresponds to the JSON property `inclusionMode`
|
|
31
|
-
# @return [String]
|
|
32
|
-
attr_accessor :inclusion_mode
|
|
33
|
-
|
|
34
|
-
# The project ids to use for filtering asset discovery.
|
|
35
|
-
# Corresponds to the JSON property `projectIds`
|
|
36
|
-
# @return [Array<String>]
|
|
37
|
-
attr_accessor :project_ids
|
|
38
|
-
|
|
39
|
-
def initialize(**args)
|
|
40
|
-
update!(**args)
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
# Update properties of this object
|
|
44
|
-
def update!(**args)
|
|
45
|
-
@inclusion_mode = args[:inclusion_mode] if args.key?(:inclusion_mode)
|
|
46
|
-
@project_ids = args[:project_ids] if args.key?(:project_ids)
|
|
47
|
-
end
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
# Specifies the audit configuration for a service.
|
|
51
|
-
# The configuration determines which permission types are logged, and what
|
|
52
|
-
# identities, if any, are exempted from logging.
|
|
53
|
-
# An AuditConfig must have one or more AuditLogConfigs.
|
|
54
|
-
# If there are AuditConfigs for both `allServices` and a specific service,
|
|
55
|
-
# the union of the two AuditConfigs is used for that service: the log_types
|
|
56
|
-
# specified in each AuditConfig are enabled, and the exempted_members in each
|
|
57
|
-
# AuditLogConfig are exempted.
|
|
58
|
-
# Example Policy with multiple AuditConfigs:
|
|
59
|
-
# `
|
|
60
|
-
# "audit_configs": [
|
|
61
|
-
# `
|
|
62
|
-
# "service": "allServices",
|
|
63
|
-
# "audit_log_configs": [
|
|
64
|
-
# `
|
|
65
|
-
# "log_type": "DATA_READ",
|
|
66
|
-
# "exempted_members": [
|
|
67
|
-
# "user:jose@example.com"
|
|
68
|
-
# ]
|
|
69
|
-
# `,
|
|
70
|
-
# `
|
|
71
|
-
# "log_type": "DATA_WRITE"
|
|
72
|
-
# `,
|
|
73
|
-
# `
|
|
74
|
-
# "log_type": "ADMIN_READ"
|
|
75
|
-
# `
|
|
76
|
-
# ]
|
|
77
|
-
# `,
|
|
78
|
-
# `
|
|
79
|
-
# "service": "sampleservice.googleapis.com",
|
|
80
|
-
# "audit_log_configs": [
|
|
81
|
-
# `
|
|
82
|
-
# "log_type": "DATA_READ"
|
|
83
|
-
# `,
|
|
84
|
-
# `
|
|
85
|
-
# "log_type": "DATA_WRITE",
|
|
86
|
-
# "exempted_members": [
|
|
87
|
-
# "user:aliya@example.com"
|
|
88
|
-
# ]
|
|
89
|
-
# `
|
|
90
|
-
# ]
|
|
91
|
-
# `
|
|
92
|
-
# ]
|
|
93
|
-
# `
|
|
94
|
-
# For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
|
95
|
-
# logging. It also exempts jose@example.com from DATA_READ logging, and
|
|
96
|
-
# aliya@example.com from DATA_WRITE logging.
|
|
97
|
-
class AuditConfig
|
|
98
|
-
include Google::Apis::Core::Hashable
|
|
99
|
-
|
|
100
|
-
# The configuration for logging of each type of permission.
|
|
101
|
-
# Corresponds to the JSON property `auditLogConfigs`
|
|
102
|
-
# @return [Array<Google::Apis::SecuritycenterV1p1beta1::AuditLogConfig>]
|
|
103
|
-
attr_accessor :audit_log_configs
|
|
104
|
-
|
|
105
|
-
# Specifies a service that will be enabled for audit logging.
|
|
106
|
-
# For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
|
|
107
|
-
# `allServices` is a special value that covers all services.
|
|
108
|
-
# Corresponds to the JSON property `service`
|
|
109
|
-
# @return [String]
|
|
110
|
-
attr_accessor :service
|
|
111
|
-
|
|
112
|
-
def initialize(**args)
|
|
113
|
-
update!(**args)
|
|
114
|
-
end
|
|
115
|
-
|
|
116
|
-
# Update properties of this object
|
|
117
|
-
def update!(**args)
|
|
118
|
-
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
|
|
119
|
-
@service = args[:service] if args.key?(:service)
|
|
120
|
-
end
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
# Provides the configuration for logging a type of permissions.
|
|
124
|
-
# Example:
|
|
125
|
-
# `
|
|
126
|
-
# "audit_log_configs": [
|
|
127
|
-
# `
|
|
128
|
-
# "log_type": "DATA_READ",
|
|
129
|
-
# "exempted_members": [
|
|
130
|
-
# "user:jose@example.com"
|
|
131
|
-
# ]
|
|
132
|
-
# `,
|
|
133
|
-
# `
|
|
134
|
-
# "log_type": "DATA_WRITE"
|
|
135
|
-
# `
|
|
136
|
-
# ]
|
|
137
|
-
# `
|
|
138
|
-
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
|
|
139
|
-
# jose@example.com from DATA_READ logging.
|
|
140
|
-
class AuditLogConfig
|
|
141
|
-
include Google::Apis::Core::Hashable
|
|
142
|
-
|
|
143
|
-
# Specifies the identities that do not cause logging for this type of
|
|
144
|
-
# permission.
|
|
145
|
-
# Follows the same format of Binding.members.
|
|
146
|
-
# Corresponds to the JSON property `exemptedMembers`
|
|
147
|
-
# @return [Array<String>]
|
|
148
|
-
attr_accessor :exempted_members
|
|
149
|
-
|
|
150
|
-
# The log type that this config enables.
|
|
151
|
-
# Corresponds to the JSON property `logType`
|
|
152
|
-
# @return [String]
|
|
153
|
-
attr_accessor :log_type
|
|
154
|
-
|
|
155
|
-
def initialize(**args)
|
|
156
|
-
update!(**args)
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
# Update properties of this object
|
|
160
|
-
def update!(**args)
|
|
161
|
-
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
|
|
162
|
-
@log_type = args[:log_type] if args.key?(:log_type)
|
|
163
|
-
end
|
|
164
|
-
end
|
|
165
|
-
|
|
166
|
-
# Associates `members` with a `role`.
|
|
167
|
-
class Binding
|
|
168
|
-
include Google::Apis::Core::Hashable
|
|
169
|
-
|
|
170
|
-
# Represents a textual expression in the Common Expression Language (CEL)
|
|
171
|
-
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL
|
|
172
|
-
# are documented at https://github.com/google/cel-spec.
|
|
173
|
-
# Example (Comparison):
|
|
174
|
-
# title: "Summary size limit"
|
|
175
|
-
# description: "Determines if a summary is less than 100 chars"
|
|
176
|
-
# expression: "document.summary.size() < 100"
|
|
177
|
-
# Example (Equality):
|
|
178
|
-
# title: "Requestor is owner"
|
|
179
|
-
# description: "Determines if requestor is the document owner"
|
|
180
|
-
# expression: "document.owner == request.auth.claims.email"
|
|
181
|
-
# Example (Logic):
|
|
182
|
-
# title: "Public documents"
|
|
183
|
-
# description: "Determine whether the document should be publicly visible"
|
|
184
|
-
# expression: "document.type != 'private' && document.type != 'internal'"
|
|
185
|
-
# Example (Data Manipulation):
|
|
186
|
-
# title: "Notification string"
|
|
187
|
-
# description: "Create a notification string with a timestamp."
|
|
188
|
-
# expression: "'New message received at ' + string(document.create_time)"
|
|
189
|
-
# The exact variables and functions that may be referenced within an expression
|
|
190
|
-
# are determined by the service that evaluates it. See the service
|
|
191
|
-
# documentation for additional information.
|
|
192
|
-
# Corresponds to the JSON property `condition`
|
|
193
|
-
# @return [Google::Apis::SecuritycenterV1p1beta1::Expr]
|
|
194
|
-
attr_accessor :condition
|
|
195
|
-
|
|
196
|
-
# Specifies the identities requesting access for a Cloud Platform resource.
|
|
197
|
-
# `members` can have the following values:
|
|
198
|
-
# * `allUsers`: A special identifier that represents anyone who is
|
|
199
|
-
# on the internet; with or without a Google account.
|
|
200
|
-
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
|
201
|
-
# who is authenticated with a Google account or a service account.
|
|
202
|
-
# * `user:`emailid``: An email address that represents a specific Google
|
|
203
|
-
# account. For example, `alice@example.com` .
|
|
204
|
-
# * `serviceAccount:`emailid``: An email address that represents a service
|
|
205
|
-
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
|
206
|
-
# * `group:`emailid``: An email address that represents a Google group.
|
|
207
|
-
# For example, `admins@example.com`.
|
|
208
|
-
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
|
|
209
|
-
# identifier) representing a user that has been recently deleted. For
|
|
210
|
-
# example, `alice@example.com?uid=123456789012345678901`. If the user is
|
|
211
|
-
# recovered, this value reverts to `user:`emailid`` and the recovered user
|
|
212
|
-
# retains the role in the binding.
|
|
213
|
-
# * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus
|
|
214
|
-
# unique identifier) representing a service account that has been recently
|
|
215
|
-
# deleted. For example,
|
|
216
|
-
# `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
|
|
217
|
-
# If the service account is undeleted, this value reverts to
|
|
218
|
-
# `serviceAccount:`emailid`` and the undeleted service account retains the
|
|
219
|
-
# role in the binding.
|
|
220
|
-
# * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
|
|
221
|
-
# identifier) representing a Google group that has been recently
|
|
222
|
-
# deleted. For example, `admins@example.com?uid=123456789012345678901`. If
|
|
223
|
-
# the group is recovered, this value reverts to `group:`emailid`` and the
|
|
224
|
-
# recovered group retains the role in the binding.
|
|
225
|
-
# * `domain:`domain``: The G Suite domain (primary) that represents all the
|
|
226
|
-
# users of that domain. For example, `google.com` or `example.com`.
|
|
227
|
-
# Corresponds to the JSON property `members`
|
|
228
|
-
# @return [Array<String>]
|
|
229
|
-
attr_accessor :members
|
|
230
|
-
|
|
231
|
-
# Role that is assigned to `members`.
|
|
232
|
-
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
|
233
|
-
# Corresponds to the JSON property `role`
|
|
234
|
-
# @return [String]
|
|
235
|
-
attr_accessor :role
|
|
236
|
-
|
|
237
|
-
def initialize(**args)
|
|
238
|
-
update!(**args)
|
|
239
|
-
end
|
|
240
|
-
|
|
241
|
-
# Update properties of this object
|
|
242
|
-
def update!(**args)
|
|
243
|
-
@condition = args[:condition] if args.key?(:condition)
|
|
244
|
-
@members = args[:members] if args.key?(:members)
|
|
245
|
-
@role = args[:role] if args.key?(:role)
|
|
246
|
-
end
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
# A generic empty message that you can re-use to avoid defining duplicated
|
|
250
|
-
# empty messages in your APIs. A typical example is to use it as the request
|
|
251
|
-
# or the response type of an API method. For instance:
|
|
252
|
-
# service Foo `
|
|
253
|
-
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
254
|
-
# `
|
|
255
|
-
# The JSON representation for `Empty` is empty JSON object ````.
|
|
256
|
-
class Empty
|
|
257
|
-
include Google::Apis::Core::Hashable
|
|
258
|
-
|
|
259
|
-
def initialize(**args)
|
|
260
|
-
update!(**args)
|
|
261
|
-
end
|
|
262
|
-
|
|
263
|
-
# Update properties of this object
|
|
264
|
-
def update!(**args)
|
|
265
|
-
end
|
|
266
|
-
end
|
|
267
|
-
|
|
268
|
-
# Represents a textual expression in the Common Expression Language (CEL)
|
|
269
|
-
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL
|
|
270
|
-
# are documented at https://github.com/google/cel-spec.
|
|
271
|
-
# Example (Comparison):
|
|
272
|
-
# title: "Summary size limit"
|
|
273
|
-
# description: "Determines if a summary is less than 100 chars"
|
|
274
|
-
# expression: "document.summary.size() < 100"
|
|
275
|
-
# Example (Equality):
|
|
276
|
-
# title: "Requestor is owner"
|
|
277
|
-
# description: "Determines if requestor is the document owner"
|
|
278
|
-
# expression: "document.owner == request.auth.claims.email"
|
|
279
|
-
# Example (Logic):
|
|
280
|
-
# title: "Public documents"
|
|
281
|
-
# description: "Determine whether the document should be publicly visible"
|
|
282
|
-
# expression: "document.type != 'private' && document.type != 'internal'"
|
|
283
|
-
# Example (Data Manipulation):
|
|
284
|
-
# title: "Notification string"
|
|
285
|
-
# description: "Create a notification string with a timestamp."
|
|
286
|
-
# expression: "'New message received at ' + string(document.create_time)"
|
|
287
|
-
# The exact variables and functions that may be referenced within an expression
|
|
288
|
-
# are determined by the service that evaluates it. See the service
|
|
289
|
-
# documentation for additional information.
|
|
290
|
-
class Expr
|
|
291
|
-
include Google::Apis::Core::Hashable
|
|
292
|
-
|
|
293
|
-
# Optional. Description of the expression. This is a longer text which
|
|
294
|
-
# describes the expression, e.g. when hovered over it in a UI.
|
|
295
|
-
# Corresponds to the JSON property `description`
|
|
296
|
-
# @return [String]
|
|
297
|
-
attr_accessor :description
|
|
298
|
-
|
|
299
|
-
# Textual representation of an expression in Common Expression Language
|
|
300
|
-
# syntax.
|
|
301
|
-
# Corresponds to the JSON property `expression`
|
|
302
|
-
# @return [String]
|
|
303
|
-
attr_accessor :expression
|
|
304
|
-
|
|
305
|
-
# Optional. String indicating the location of the expression for error
|
|
306
|
-
# reporting, e.g. a file name and a position in the file.
|
|
307
|
-
# Corresponds to the JSON property `location`
|
|
308
|
-
# @return [String]
|
|
309
|
-
attr_accessor :location
|
|
310
|
-
|
|
311
|
-
# Optional. Title for the expression, i.e. a short string describing
|
|
312
|
-
# its purpose. This can be used e.g. in UIs which allow to enter the
|
|
313
|
-
# expression.
|
|
314
|
-
# Corresponds to the JSON property `title`
|
|
315
|
-
# @return [String]
|
|
316
|
-
attr_accessor :title
|
|
317
|
-
|
|
318
|
-
def initialize(**args)
|
|
319
|
-
update!(**args)
|
|
320
|
-
end
|
|
321
|
-
|
|
322
|
-
# Update properties of this object
|
|
323
|
-
def update!(**args)
|
|
324
|
-
@description = args[:description] if args.key?(:description)
|
|
325
|
-
@expression = args[:expression] if args.key?(:expression)
|
|
326
|
-
@location = args[:location] if args.key?(:location)
|
|
327
|
-
@title = args[:title] if args.key?(:title)
|
|
328
|
-
end
|
|
329
|
-
end
|
|
330
|
-
|
|
331
|
-
# Security Command Center finding.
|
|
332
|
-
# A finding is a record of assessment data like security, risk, health, or
|
|
333
|
-
# privacy, that is ingested into Security Command Center for presentation,
|
|
334
|
-
# notification, analysis, policy testing, and enforcement. For example, a
|
|
335
|
-
# cross-site scripting (XSS) vulnerability in an App Engine application is a
|
|
336
|
-
# finding.
|
|
337
|
-
class Finding
|
|
338
|
-
include Google::Apis::Core::Hashable
|
|
339
|
-
|
|
340
|
-
# The additional taxonomy group within findings from a given source.
|
|
341
|
-
# This field is immutable after creation time.
|
|
342
|
-
# Example: "XSS_FLASH_INJECTION"
|
|
343
|
-
# Corresponds to the JSON property `category`
|
|
344
|
-
# @return [String]
|
|
345
|
-
attr_accessor :category
|
|
346
|
-
|
|
347
|
-
# The time at which the finding was created in Security Command Center.
|
|
348
|
-
# Corresponds to the JSON property `createTime`
|
|
349
|
-
# @return [String]
|
|
350
|
-
attr_accessor :create_time
|
|
351
|
-
|
|
352
|
-
# The time at which the event took place. For example, if the finding
|
|
353
|
-
# represents an open firewall it would capture the time the detector believes
|
|
354
|
-
# the firewall became open. The accuracy is determined by the detector.
|
|
355
|
-
# Corresponds to the JSON property `eventTime`
|
|
356
|
-
# @return [String]
|
|
357
|
-
attr_accessor :event_time
|
|
358
|
-
|
|
359
|
-
# The URI that, if available, points to a web page outside of Security
|
|
360
|
-
# Command Center where additional information about the finding can be found.
|
|
361
|
-
# This field is guaranteed to be either empty or a well formed URL.
|
|
362
|
-
# Corresponds to the JSON property `externalUri`
|
|
363
|
-
# @return [String]
|
|
364
|
-
attr_accessor :external_uri
|
|
365
|
-
|
|
366
|
-
# The relative resource name of this finding. See:
|
|
367
|
-
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
|
|
368
|
-
# Example:
|
|
369
|
-
# "organizations/`organization_id`/sources/`source_id`/findings/`finding_id`"
|
|
370
|
-
# Corresponds to the JSON property `name`
|
|
371
|
-
# @return [String]
|
|
372
|
-
attr_accessor :name
|
|
373
|
-
|
|
374
|
-
# The relative resource name of the source the finding belongs to. See:
|
|
375
|
-
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
|
|
376
|
-
# This field is immutable after creation time.
|
|
377
|
-
# For example:
|
|
378
|
-
# "organizations/`organization_id`/sources/`source_id`"
|
|
379
|
-
# Corresponds to the JSON property `parent`
|
|
380
|
-
# @return [String]
|
|
381
|
-
attr_accessor :parent
|
|
382
|
-
|
|
383
|
-
# For findings on Google Cloud resources, the full resource
|
|
384
|
-
# name of the Google Cloud resource this finding is for. See:
|
|
385
|
-
# https://cloud.google.com/apis/design/resource_names#full_resource_name
|
|
386
|
-
# When the finding is for a non-Google Cloud resource, the resourceName can
|
|
387
|
-
# be a customer or partner defined string. This field is immutable after
|
|
388
|
-
# creation time.
|
|
389
|
-
# Corresponds to the JSON property `resourceName`
|
|
390
|
-
# @return [String]
|
|
391
|
-
attr_accessor :resource_name
|
|
392
|
-
|
|
393
|
-
# User specified security marks that are attached to the parent Security
|
|
394
|
-
# Command Center resource. Security marks are scoped within a Security Command
|
|
395
|
-
# Center organization -- they can be modified and viewed by all users who have
|
|
396
|
-
# proper permissions on the organization.
|
|
397
|
-
# Corresponds to the JSON property `securityMarks`
|
|
398
|
-
# @return [Google::Apis::SecuritycenterV1p1beta1::SecurityMarks]
|
|
399
|
-
attr_accessor :security_marks
|
|
400
|
-
|
|
401
|
-
# Source specific properties. These properties are managed by the source
|
|
402
|
-
# that writes the finding. The key names in the source_properties map must be
|
|
403
|
-
# between 1 and 255 characters, and must start with a letter and contain
|
|
404
|
-
# alphanumeric characters or underscores only.
|
|
405
|
-
# Corresponds to the JSON property `sourceProperties`
|
|
406
|
-
# @return [Hash<String,Object>]
|
|
407
|
-
attr_accessor :source_properties
|
|
408
|
-
|
|
409
|
-
# The state of the finding.
|
|
410
|
-
# Corresponds to the JSON property `state`
|
|
411
|
-
# @return [String]
|
|
412
|
-
attr_accessor :state
|
|
413
|
-
|
|
414
|
-
def initialize(**args)
|
|
415
|
-
update!(**args)
|
|
416
|
-
end
|
|
417
|
-
|
|
418
|
-
# Update properties of this object
|
|
419
|
-
def update!(**args)
|
|
420
|
-
@category = args[:category] if args.key?(:category)
|
|
421
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
|
422
|
-
@event_time = args[:event_time] if args.key?(:event_time)
|
|
423
|
-
@external_uri = args[:external_uri] if args.key?(:external_uri)
|
|
424
|
-
@name = args[:name] if args.key?(:name)
|
|
425
|
-
@parent = args[:parent] if args.key?(:parent)
|
|
426
|
-
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
|
427
|
-
@security_marks = args[:security_marks] if args.key?(:security_marks)
|
|
428
|
-
@source_properties = args[:source_properties] if args.key?(:source_properties)
|
|
429
|
-
@state = args[:state] if args.key?(:state)
|
|
430
|
-
end
|
|
431
|
-
end
|
|
432
|
-
|
|
433
|
-
# Request message for `GetIamPolicy` method.
|
|
434
|
-
class GetIamPolicyRequest
|
|
435
|
-
include Google::Apis::Core::Hashable
|
|
436
|
-
|
|
437
|
-
# Encapsulates settings provided to GetIamPolicy.
|
|
438
|
-
# Corresponds to the JSON property `options`
|
|
439
|
-
# @return [Google::Apis::SecuritycenterV1p1beta1::GetPolicyOptions]
|
|
440
|
-
attr_accessor :options
|
|
441
|
-
|
|
442
|
-
def initialize(**args)
|
|
443
|
-
update!(**args)
|
|
444
|
-
end
|
|
445
|
-
|
|
446
|
-
# Update properties of this object
|
|
447
|
-
def update!(**args)
|
|
448
|
-
@options = args[:options] if args.key?(:options)
|
|
449
|
-
end
|
|
450
|
-
end
|
|
451
|
-
|
|
452
|
-
# Encapsulates settings provided to GetIamPolicy.
|
|
453
|
-
class GetPolicyOptions
|
|
454
|
-
include Google::Apis::Core::Hashable
|
|
455
|
-
|
|
456
|
-
# Optional. The policy format version to be returned.
|
|
457
|
-
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
|
458
|
-
# rejected.
|
|
459
|
-
# Requests for policies with any conditional bindings must specify version 3.
|
|
460
|
-
# Policies without any conditional bindings may specify any valid value or
|
|
461
|
-
# leave the field unset.
|
|
462
|
-
# To learn which resources support conditions in their IAM policies, see the
|
|
463
|
-
# [IAM
|
|
464
|
-
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
465
|
-
# Corresponds to the JSON property `requestedPolicyVersion`
|
|
466
|
-
# @return [Fixnum]
|
|
467
|
-
attr_accessor :requested_policy_version
|
|
468
|
-
|
|
469
|
-
def initialize(**args)
|
|
470
|
-
update!(**args)
|
|
471
|
-
end
|
|
472
|
-
|
|
473
|
-
# Update properties of this object
|
|
474
|
-
def update!(**args)
|
|
475
|
-
@requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version)
|
|
476
|
-
end
|
|
477
|
-
end
|
|
478
|
-
|
|
479
|
-
# Cloud SCC's Notification
|
|
480
|
-
class GoogleCloudSecuritycenterV1NotificationMessage
|
|
481
|
-
include Google::Apis::Core::Hashable
|
|
482
|
-
|
|
483
|
-
# Security Command Center finding.
|
|
484
|
-
# A finding is a record of assessment data like security, risk, health, or
|
|
485
|
-
# privacy, that is ingested into Security Command Center for presentation,
|
|
486
|
-
# notification, analysis, policy testing, and enforcement. For example, a
|
|
487
|
-
# cross-site scripting (XSS) vulnerability in an App Engine application is a
|
|
488
|
-
# finding.
|
|
489
|
-
# Corresponds to the JSON property `finding`
|
|
490
|
-
# @return [Google::Apis::SecuritycenterV1p1beta1::Finding]
|
|
491
|
-
attr_accessor :finding
|
|
492
|
-
|
|
493
|
-
# Name of the notification config that generated current notification.
|
|
494
|
-
# Corresponds to the JSON property `notificationConfigName`
|
|
495
|
-
# @return [String]
|
|
496
|
-
attr_accessor :notification_config_name
|
|
497
|
-
|
|
498
|
-
# Information related to the Google Cloud resource.
|
|
499
|
-
# Corresponds to the JSON property `resource`
|
|
500
|
-
# @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1Resource]
|
|
501
|
-
attr_accessor :resource
|
|
502
|
-
|
|
503
|
-
def initialize(**args)
|
|
504
|
-
update!(**args)
|
|
505
|
-
end
|
|
506
|
-
|
|
507
|
-
# Update properties of this object
|
|
508
|
-
def update!(**args)
|
|
509
|
-
@finding = args[:finding] if args.key?(:finding)
|
|
510
|
-
@notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name)
|
|
511
|
-
@resource = args[:resource] if args.key?(:resource)
|
|
512
|
-
end
|
|
513
|
-
end
|
|
514
|
-
|
|
515
|
-
# Information related to the Google Cloud resource.
|
|
516
|
-
class GoogleCloudSecuritycenterV1Resource
|
|
517
|
-
include Google::Apis::Core::Hashable
|
|
518
|
-
|
|
519
|
-
# The full resource name of the resource. See:
|
|
520
|
-
# https://cloud.google.com/apis/design/resource_names#full_resource_name
|
|
521
|
-
# Corresponds to the JSON property `name`
|
|
522
|
-
# @return [String]
|
|
523
|
-
attr_accessor :name
|
|
524
|
-
|
|
525
|
-
# The full resource name of resource's parent.
|
|
526
|
-
# Corresponds to the JSON property `parent`
|
|
527
|
-
# @return [String]
|
|
528
|
-
attr_accessor :parent
|
|
529
|
-
|
|
530
|
-
# The human readable name of resource's parent.
|
|
531
|
-
# Corresponds to the JSON property `parentDisplayName`
|
|
532
|
-
# @return [String]
|
|
533
|
-
attr_accessor :parent_display_name
|
|
534
|
-
|
|
535
|
-
# The full resource name of project that the resource belongs to.
|
|
536
|
-
# Corresponds to the JSON property `project`
|
|
537
|
-
# @return [String]
|
|
538
|
-
attr_accessor :project
|
|
539
|
-
|
|
540
|
-
# The human readable name of project that the resource belongs to.
|
|
541
|
-
# Corresponds to the JSON property `projectDisplayName`
|
|
542
|
-
# @return [String]
|
|
543
|
-
attr_accessor :project_display_name
|
|
544
|
-
|
|
545
|
-
def initialize(**args)
|
|
546
|
-
update!(**args)
|
|
547
|
-
end
|
|
548
|
-
|
|
549
|
-
# Update properties of this object
|
|
550
|
-
def update!(**args)
|
|
551
|
-
@name = args[:name] if args.key?(:name)
|
|
552
|
-
@parent = args[:parent] if args.key?(:parent)
|
|
553
|
-
@parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
|
|
554
|
-
@project = args[:project] if args.key?(:project)
|
|
555
|
-
@project_display_name = args[:project_display_name] if args.key?(:project_display_name)
|
|
556
|
-
end
|
|
557
|
-
end
|
|
558
|
-
|
|
559
|
-
# Response of asset discovery run
|
|
560
|
-
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
|
|
561
|
-
include Google::Apis::Core::Hashable
|
|
562
|
-
|
|
563
|
-
# The duration between asset discovery run start and end
|
|
564
|
-
# Corresponds to the JSON property `duration`
|
|
565
|
-
# @return [String]
|
|
566
|
-
attr_accessor :duration
|
|
567
|
-
|
|
568
|
-
# The state of an asset discovery run.
|
|
569
|
-
# Corresponds to the JSON property `state`
|
|
570
|
-
# @return [String]
|
|
571
|
-
attr_accessor :state
|
|
572
|
-
|
|
573
|
-
def initialize(**args)
|
|
574
|
-
update!(**args)
|
|
575
|
-
end
|
|
576
|
-
|
|
577
|
-
# Update properties of this object
|
|
578
|
-
def update!(**args)
|
|
579
|
-
@duration = args[:duration] if args.key?(:duration)
|
|
580
|
-
@state = args[:state] if args.key?(:state)
|
|
581
|
-
end
|
|
582
|
-
end
|
|
583
|
-
|
|
584
|
-
# Response of asset discovery run
|
|
585
|
-
class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
|
|
586
|
-
include Google::Apis::Core::Hashable
|
|
587
|
-
|
|
588
|
-
# The duration between asset discovery run start and end
|
|
589
|
-
# Corresponds to the JSON property `duration`
|
|
590
|
-
# @return [String]
|
|
591
|
-
attr_accessor :duration
|
|
592
|
-
|
|
593
|
-
# The state of an asset discovery run.
|
|
594
|
-
# Corresponds to the JSON property `state`
|
|
595
|
-
# @return [String]
|
|
596
|
-
attr_accessor :state
|
|
597
|
-
|
|
598
|
-
def initialize(**args)
|
|
599
|
-
update!(**args)
|
|
600
|
-
end
|
|
601
|
-
|
|
602
|
-
# Update properties of this object
|
|
603
|
-
def update!(**args)
|
|
604
|
-
@duration = args[:duration] if args.key?(:duration)
|
|
605
|
-
@state = args[:state] if args.key?(:state)
|
|
606
|
-
end
|
|
607
|
-
end
|
|
608
|
-
|
|
609
|
-
# Security Command Center representation of a Google Cloud
|
|
610
|
-
# resource.
|
|
611
|
-
# The Asset is a Security Command Center resource that captures information
|
|
612
|
-
# about a single Google Cloud resource. All modifications to an Asset are only
|
|
613
|
-
# within the context of Security Command Center and don't affect the referenced
|
|
614
|
-
# Google Cloud resource.
|
|
615
|
-
class GoogleCloudSecuritycenterV1p1beta1Asset
|
|
616
|
-
include Google::Apis::Core::Hashable
|
|
617
|
-
|
|
618
|
-
# The time at which the asset was created in Security Command Center.
|
|
619
|
-
# Corresponds to the JSON property `createTime`
|
|
620
|
-
# @return [String]
|
|
621
|
-
attr_accessor :create_time
|
|
622
|
-
|
|
623
|
-
# Cloud IAM Policy information associated with the Google Cloud resource
|
|
624
|
-
# described by the Security Command Center asset. This information is managed
|
|
625
|
-
# and defined by the Google Cloud resource and cannot be modified by the
|
|
626
|
-
# user.
|
|
627
|
-
# Corresponds to the JSON property `iamPolicy`
|
|
628
|
-
# @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1IamPolicy]
|
|
629
|
-
attr_accessor :iam_policy
|
|
630
|
-
|
|
631
|
-
# The relative resource name of this asset. See:
|
|
632
|
-
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
|
|
633
|
-
# Example:
|
|
634
|
-
# "organizations/`organization_id`/assets/`asset_id`".
|
|
635
|
-
# Corresponds to the JSON property `name`
|
|
636
|
-
# @return [String]
|
|
637
|
-
attr_accessor :name
|
|
638
|
-
|
|
639
|
-
# Resource managed properties. These properties are managed and defined by
|
|
640
|
-
# the Google Cloud resource and cannot be modified by the user.
|
|
641
|
-
# Corresponds to the JSON property `resourceProperties`
|
|
642
|
-
# @return [Hash<String,Object>]
|
|
643
|
-
attr_accessor :resource_properties
|
|
644
|
-
|
|
645
|
-
# Security Command Center managed properties. These properties are managed by
|
|
646
|
-
# Security Command Center and cannot be modified by the user.
|
|
647
|
-
# Corresponds to the JSON property `securityCenterProperties`
|
|
648
|
-
# @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties]
|
|
649
|
-
attr_accessor :security_center_properties
|
|
650
|
-
|
|
651
|
-
# User specified security marks that are attached to the parent Security
|
|
652
|
-
# Command Center resource. Security marks are scoped within a Security Command
|
|
653
|
-
# Center organization -- they can be modified and viewed by all users who have
|
|
654
|
-
# proper permissions on the organization.
|
|
655
|
-
# Corresponds to the JSON property `securityMarks`
|
|
656
|
-
# @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
|
|
657
|
-
attr_accessor :security_marks
|
|
658
|
-
|
|
659
|
-
# The time at which the asset was last updated, added, or deleted in Cloud
|
|
660
|
-
# SCC.
|
|
661
|
-
# Corresponds to the JSON property `updateTime`
|
|
662
|
-
# @return [String]
|
|
663
|
-
attr_accessor :update_time
|
|
664
|
-
|
|
665
|
-
def initialize(**args)
|
|
666
|
-
update!(**args)
|
|
667
|
-
end
|
|
668
|
-
|
|
669
|
-
# Update properties of this object
|
|
670
|
-
def update!(**args)
|
|
671
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
|
672
|
-
@iam_policy = args[:iam_policy] if args.key?(:iam_policy)
|
|
673
|
-
@name = args[:name] if args.key?(:name)
|
|
674
|
-
@resource_properties = args[:resource_properties] if args.key?(:resource_properties)
|
|
675
|
-
@security_center_properties = args[:security_center_properties] if args.key?(:security_center_properties)
|
|
676
|
-
@security_marks = args[:security_marks] if args.key?(:security_marks)
|
|
677
|
-
@update_time = args[:update_time] if args.key?(:update_time)
|
|
678
|
-
end
|
|
679
|
-
end
|
|
680
|
-
|
|
681
|
-
# Security Command Center finding.
|
|
682
|
-
# A finding is a record of assessment data (security, risk, health or privacy)
|
|
683
|
-
# ingested into Security Command Center for presentation, notification,
|
|
684
|
-
# analysis, policy testing, and enforcement. For example, an XSS vulnerability
|
|
685
|
-
# in an App Engine application is a finding.
|
|
686
|
-
class GoogleCloudSecuritycenterV1p1beta1Finding
|
|
687
|
-
include Google::Apis::Core::Hashable
|
|
688
|
-
|
|
689
|
-
# The additional taxonomy group within findings from a given source.
|
|
690
|
-
# This field is immutable after creation time.
|
|
691
|
-
# Example: "XSS_FLASH_INJECTION"
|
|
692
|
-
# Corresponds to the JSON property `category`
|
|
693
|
-
# @return [String]
|
|
694
|
-
attr_accessor :category
|
|
695
|
-
|
|
696
|
-
# The time at which the finding was created in Security Command Center.
|
|
697
|
-
# Corresponds to the JSON property `createTime`
|
|
698
|
-
# @return [String]
|
|
699
|
-
attr_accessor :create_time
|
|
700
|
-
|
|
701
|
-
# The time at which the event took place. For example, if the finding
|
|
702
|
-
# represents an open firewall it would capture the time the detector believes
|
|
703
|
-
# the firewall became open. The accuracy is determined by the detector.
|
|
704
|
-
# Corresponds to the JSON property `eventTime`
|
|
705
|
-
# @return [String]
|
|
706
|
-
attr_accessor :event_time
|
|
707
|
-
|
|
708
|
-
# The URI that, if available, points to a web page outside of Security
|
|
709
|
-
# Command Center where additional information about the finding can be found.
|
|
710
|
-
# This field is guaranteed to be either empty or a well formed URL.
|
|
711
|
-
# Corresponds to the JSON property `externalUri`
|
|
712
|
-
# @return [String]
|
|
713
|
-
attr_accessor :external_uri
|
|
714
|
-
|
|
715
|
-
# The relative resource name of this finding. See:
|
|
716
|
-
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
|
|
717
|
-
# Example:
|
|
718
|
-
# "organizations/`organization_id`/sources/`source_id`/findings/`finding_id`"
|
|
719
|
-
# Corresponds to the JSON property `name`
|
|
720
|
-
# @return [String]
|
|
721
|
-
attr_accessor :name
|
|
722
|
-
|
|
723
|
-
# The relative resource name of the source the finding belongs to. See:
|
|
724
|
-
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
|
|
725
|
-
# This field is immutable after creation time.
|
|
726
|
-
# For example:
|
|
727
|
-
# "organizations/`organization_id`/sources/`source_id`"
|
|
728
|
-
# Corresponds to the JSON property `parent`
|
|
729
|
-
# @return [String]
|
|
730
|
-
attr_accessor :parent
|
|
731
|
-
|
|
732
|
-
# For findings on Google Cloud resources, the full resource
|
|
733
|
-
# name of the Google Cloud resource this finding is for. See:
|
|
734
|
-
# https://cloud.google.com/apis/design/resource_names#full_resource_name
|
|
735
|
-
# When the finding is for a non-Google Cloud resource, the resourceName can
|
|
736
|
-
# be a customer or partner defined string. This field is immutable after
|
|
737
|
-
# creation time.
|
|
738
|
-
# Corresponds to the JSON property `resourceName`
|
|
739
|
-
# @return [String]
|
|
740
|
-
attr_accessor :resource_name
|
|
741
|
-
|
|
742
|
-
# User specified security marks that are attached to the parent Security
|
|
743
|
-
# Command Center resource. Security marks are scoped within a Security Command
|
|
744
|
-
# Center organization -- they can be modified and viewed by all users who have
|
|
745
|
-
# proper permissions on the organization.
|
|
746
|
-
# Corresponds to the JSON property `securityMarks`
|
|
747
|
-
# @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
|
|
748
|
-
attr_accessor :security_marks
|
|
749
|
-
|
|
750
|
-
# Source specific properties. These properties are managed by the source
|
|
751
|
-
# that writes the finding. The key names in the source_properties map must be
|
|
752
|
-
# between 1 and 255 characters, and must start with a letter and contain
|
|
753
|
-
# alphanumeric characters or underscores only.
|
|
754
|
-
# Corresponds to the JSON property `sourceProperties`
|
|
755
|
-
# @return [Hash<String,Object>]
|
|
756
|
-
attr_accessor :source_properties
|
|
757
|
-
|
|
758
|
-
# The state of the finding.
|
|
759
|
-
# Corresponds to the JSON property `state`
|
|
760
|
-
# @return [String]
|
|
761
|
-
attr_accessor :state
|
|
762
|
-
|
|
763
|
-
def initialize(**args)
|
|
764
|
-
update!(**args)
|
|
765
|
-
end
|
|
766
|
-
|
|
767
|
-
# Update properties of this object
|
|
768
|
-
def update!(**args)
|
|
769
|
-
@category = args[:category] if args.key?(:category)
|
|
770
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
|
771
|
-
@event_time = args[:event_time] if args.key?(:event_time)
|
|
772
|
-
@external_uri = args[:external_uri] if args.key?(:external_uri)
|
|
773
|
-
@name = args[:name] if args.key?(:name)
|
|
774
|
-
@parent = args[:parent] if args.key?(:parent)
|
|
775
|
-
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
|
776
|
-
@security_marks = args[:security_marks] if args.key?(:security_marks)
|
|
777
|
-
@source_properties = args[:source_properties] if args.key?(:source_properties)
|
|
778
|
-
@state = args[:state] if args.key?(:state)
|
|
779
|
-
end
|
|
780
|
-
end
|
|
781
|
-
|
|
782
|
-
# Cloud IAM Policy information associated with the Google Cloud resource
|
|
783
|
-
# described by the Security Command Center asset. This information is managed
|
|
784
|
-
# and defined by the Google Cloud resource and cannot be modified by the
|
|
785
|
-
# user.
|
|
786
|
-
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
|
|
787
|
-
include Google::Apis::Core::Hashable
|
|
788
|
-
|
|
789
|
-
# The JSON representation of the Policy associated with the asset.
|
|
790
|
-
# See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
|
|
791
|
-
# format details.
|
|
792
|
-
# Corresponds to the JSON property `policyBlob`
|
|
793
|
-
# @return [String]
|
|
794
|
-
attr_accessor :policy_blob
|
|
795
|
-
|
|
796
|
-
def initialize(**args)
|
|
797
|
-
update!(**args)
|
|
798
|
-
end
|
|
799
|
-
|
|
800
|
-
# Update properties of this object
|
|
801
|
-
def update!(**args)
|
|
802
|
-
@policy_blob = args[:policy_blob] if args.key?(:policy_blob)
|
|
803
|
-
end
|
|
804
|
-
end
|
|
805
|
-
|
|
806
|
-
# Security Command Center's Notification
|
|
807
|
-
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
|
|
808
|
-
include Google::Apis::Core::Hashable
|
|
809
|
-
|
|
810
|
-
# Security Command Center finding.
|
|
811
|
-
# A finding is a record of assessment data (security, risk, health or privacy)
|
|
812
|
-
# ingested into Security Command Center for presentation, notification,
|
|
813
|
-
# analysis, policy testing, and enforcement. For example, an XSS vulnerability
|
|
814
|
-
# in an App Engine application is a finding.
|
|
815
|
-
# Corresponds to the JSON property `finding`
|
|
816
|
-
# @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding]
|
|
817
|
-
attr_accessor :finding
|
|
818
|
-
|
|
819
|
-
# Name of the notification config that generated current notification.
|
|
820
|
-
# Corresponds to the JSON property `notificationConfigName`
|
|
821
|
-
# @return [String]
|
|
822
|
-
attr_accessor :notification_config_name
|
|
823
|
-
|
|
824
|
-
# Information related to the Google Cloud resource.
|
|
825
|
-
# Corresponds to the JSON property `resource`
|
|
826
|
-
# @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Resource]
|
|
827
|
-
attr_accessor :resource
|
|
828
|
-
|
|
829
|
-
# Wrapper over asset object that also captures the state change for the asset
|
|
830
|
-
# e.g. if it was a newly created asset vs updated or deleted asset.
|
|
831
|
-
# Corresponds to the JSON property `temporalAsset`
|
|
832
|
-
# @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset]
|
|
833
|
-
attr_accessor :temporal_asset
|
|
834
|
-
|
|
835
|
-
def initialize(**args)
|
|
836
|
-
update!(**args)
|
|
837
|
-
end
|
|
838
|
-
|
|
839
|
-
# Update properties of this object
|
|
840
|
-
def update!(**args)
|
|
841
|
-
@finding = args[:finding] if args.key?(:finding)
|
|
842
|
-
@notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name)
|
|
843
|
-
@resource = args[:resource] if args.key?(:resource)
|
|
844
|
-
@temporal_asset = args[:temporal_asset] if args.key?(:temporal_asset)
|
|
845
|
-
end
|
|
846
|
-
end
|
|
847
|
-
|
|
848
|
-
# Information related to the Google Cloud resource.
|
|
849
|
-
class GoogleCloudSecuritycenterV1p1beta1Resource
|
|
850
|
-
include Google::Apis::Core::Hashable
|
|
851
|
-
|
|
852
|
-
# The full resource name of the resource. See:
|
|
853
|
-
# https://cloud.google.com/apis/design/resource_names#full_resource_name
|
|
854
|
-
# Corresponds to the JSON property `name`
|
|
855
|
-
# @return [String]
|
|
856
|
-
attr_accessor :name
|
|
857
|
-
|
|
858
|
-
# The full resource name of resource's parent.
|
|
859
|
-
# Corresponds to the JSON property `parent`
|
|
860
|
-
# @return [String]
|
|
861
|
-
attr_accessor :parent
|
|
862
|
-
|
|
863
|
-
# The human readable name of resource's parent.
|
|
864
|
-
# Corresponds to the JSON property `parentDisplayName`
|
|
865
|
-
# @return [String]
|
|
866
|
-
attr_accessor :parent_display_name
|
|
867
|
-
|
|
868
|
-
# The full resource name of project that the resource belongs to.
|
|
869
|
-
# Corresponds to the JSON property `project`
|
|
870
|
-
# @return [String]
|
|
871
|
-
attr_accessor :project
|
|
872
|
-
|
|
873
|
-
# The human readable name of project that the resource belongs to.
|
|
874
|
-
# Corresponds to the JSON property `projectDisplayName`
|
|
875
|
-
# @return [String]
|
|
876
|
-
attr_accessor :project_display_name
|
|
877
|
-
|
|
878
|
-
def initialize(**args)
|
|
879
|
-
update!(**args)
|
|
880
|
-
end
|
|
881
|
-
|
|
882
|
-
# Update properties of this object
|
|
883
|
-
def update!(**args)
|
|
884
|
-
@name = args[:name] if args.key?(:name)
|
|
885
|
-
@parent = args[:parent] if args.key?(:parent)
|
|
886
|
-
@parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
|
|
887
|
-
@project = args[:project] if args.key?(:project)
|
|
888
|
-
@project_display_name = args[:project_display_name] if args.key?(:project_display_name)
|
|
889
|
-
end
|
|
890
|
-
end
|
|
891
|
-
|
|
892
|
-
# Response of asset discovery run
|
|
893
|
-
class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
|
|
894
|
-
include Google::Apis::Core::Hashable
|
|
895
|
-
|
|
896
|
-
# The duration between asset discovery run start and end
|
|
897
|
-
# Corresponds to the JSON property `duration`
|
|
898
|
-
# @return [String]
|
|
899
|
-
attr_accessor :duration
|
|
900
|
-
|
|
901
|
-
# The state of an asset discovery run.
|
|
902
|
-
# Corresponds to the JSON property `state`
|
|
903
|
-
# @return [String]
|
|
904
|
-
attr_accessor :state
|
|
905
|
-
|
|
906
|
-
def initialize(**args)
|
|
907
|
-
update!(**args)
|
|
908
|
-
end
|
|
909
|
-
|
|
910
|
-
# Update properties of this object
|
|
911
|
-
def update!(**args)
|
|
912
|
-
@duration = args[:duration] if args.key?(:duration)
|
|
913
|
-
@state = args[:state] if args.key?(:state)
|
|
914
|
-
end
|
|
915
|
-
end
|
|
916
|
-
|
|
917
|
-
# Security Command Center managed properties. These properties are managed by
|
|
918
|
-
# Security Command Center and cannot be modified by the user.
|
|
919
|
-
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
|
|
920
|
-
include Google::Apis::Core::Hashable
|
|
921
|
-
|
|
922
|
-
# The user defined display name for this resource.
|
|
923
|
-
# Corresponds to the JSON property `resourceDisplayName`
|
|
924
|
-
# @return [String]
|
|
925
|
-
attr_accessor :resource_display_name
|
|
926
|
-
|
|
927
|
-
# The full resource name of the Google Cloud resource this asset
|
|
928
|
-
# represents. This field is immutable after create time. See:
|
|
929
|
-
# https://cloud.google.com/apis/design/resource_names#full_resource_name
|
|
930
|
-
# Corresponds to the JSON property `resourceName`
|
|
931
|
-
# @return [String]
|
|
932
|
-
attr_accessor :resource_name
|
|
933
|
-
|
|
934
|
-
# Owners of the Google Cloud resource.
|
|
935
|
-
# Corresponds to the JSON property `resourceOwners`
|
|
936
|
-
# @return [Array<String>]
|
|
937
|
-
attr_accessor :resource_owners
|
|
938
|
-
|
|
939
|
-
# The full resource name of the immediate parent of the resource. See:
|
|
940
|
-
# https://cloud.google.com/apis/design/resource_names#full_resource_name
|
|
941
|
-
# Corresponds to the JSON property `resourceParent`
|
|
942
|
-
# @return [String]
|
|
943
|
-
attr_accessor :resource_parent
|
|
944
|
-
|
|
945
|
-
# The user defined display name for the parent of this resource.
|
|
946
|
-
# Corresponds to the JSON property `resourceParentDisplayName`
|
|
947
|
-
# @return [String]
|
|
948
|
-
attr_accessor :resource_parent_display_name
|
|
949
|
-
|
|
950
|
-
# The full resource name of the project the resource belongs to. See:
|
|
951
|
-
# https://cloud.google.com/apis/design/resource_names#full_resource_name
|
|
952
|
-
# Corresponds to the JSON property `resourceProject`
|
|
953
|
-
# @return [String]
|
|
954
|
-
attr_accessor :resource_project
|
|
955
|
-
|
|
956
|
-
# The user defined display name for the project of this resource.
|
|
957
|
-
# Corresponds to the JSON property `resourceProjectDisplayName`
|
|
958
|
-
# @return [String]
|
|
959
|
-
attr_accessor :resource_project_display_name
|
|
960
|
-
|
|
961
|
-
# The type of the Google Cloud resource. Examples include: APPLICATION,
|
|
962
|
-
# PROJECT, and ORGANIZATION. This is a case insensitive field defined by
|
|
963
|
-
# Security Command Center and/or the producer of the resource and is
|
|
964
|
-
# immutable after create time.
|
|
965
|
-
# Corresponds to the JSON property `resourceType`
|
|
966
|
-
# @return [String]
|
|
967
|
-
attr_accessor :resource_type
|
|
968
|
-
|
|
969
|
-
def initialize(**args)
|
|
970
|
-
update!(**args)
|
|
971
|
-
end
|
|
972
|
-
|
|
973
|
-
# Update properties of this object
|
|
974
|
-
def update!(**args)
|
|
975
|
-
@resource_display_name = args[:resource_display_name] if args.key?(:resource_display_name)
|
|
976
|
-
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
|
977
|
-
@resource_owners = args[:resource_owners] if args.key?(:resource_owners)
|
|
978
|
-
@resource_parent = args[:resource_parent] if args.key?(:resource_parent)
|
|
979
|
-
@resource_parent_display_name = args[:resource_parent_display_name] if args.key?(:resource_parent_display_name)
|
|
980
|
-
@resource_project = args[:resource_project] if args.key?(:resource_project)
|
|
981
|
-
@resource_project_display_name = args[:resource_project_display_name] if args.key?(:resource_project_display_name)
|
|
982
|
-
@resource_type = args[:resource_type] if args.key?(:resource_type)
|
|
983
|
-
end
|
|
984
|
-
end
|
|
985
|
-
|
|
986
|
-
# User specified security marks that are attached to the parent Security
|
|
987
|
-
# Command Center resource. Security marks are scoped within a Security Command
|
|
988
|
-
# Center organization -- they can be modified and viewed by all users who have
|
|
989
|
-
# proper permissions on the organization.
|
|
990
|
-
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
|
|
991
|
-
include Google::Apis::Core::Hashable
|
|
992
|
-
|
|
993
|
-
# Mutable user specified security marks belonging to the parent resource.
|
|
994
|
-
# Constraints are as follows:
|
|
995
|
-
# * Keys and values are treated as case insensitive
|
|
996
|
-
# * Keys must be between 1 - 256 characters (inclusive)
|
|
997
|
-
# * Keys must be letters, numbers, underscores, or dashes
|
|
998
|
-
# * Values have leading and trailing whitespace trimmed, remaining
|
|
999
|
-
# characters must be between 1 - 4096 characters (inclusive)
|
|
1000
|
-
# Corresponds to the JSON property `marks`
|
|
1001
|
-
# @return [Hash<String,String>]
|
|
1002
|
-
attr_accessor :marks
|
|
1003
|
-
|
|
1004
|
-
# The relative resource name of the SecurityMarks. See:
|
|
1005
|
-
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
|
|
1006
|
-
# Examples:
|
|
1007
|
-
# "organizations/`organization_id`/assets/`asset_id`/securityMarks"
|
|
1008
|
-
# "organizations/`organization_id`/sources/`source_id`/findings/`finding_id`/
|
|
1009
|
-
# securityMarks".
|
|
1010
|
-
# Corresponds to the JSON property `name`
|
|
1011
|
-
# @return [String]
|
|
1012
|
-
attr_accessor :name
|
|
1013
|
-
|
|
1014
|
-
def initialize(**args)
|
|
1015
|
-
update!(**args)
|
|
1016
|
-
end
|
|
1017
|
-
|
|
1018
|
-
# Update properties of this object
|
|
1019
|
-
def update!(**args)
|
|
1020
|
-
@marks = args[:marks] if args.key?(:marks)
|
|
1021
|
-
@name = args[:name] if args.key?(:name)
|
|
1022
|
-
end
|
|
1023
|
-
end
|
|
1024
|
-
|
|
1025
|
-
# Wrapper over asset object that also captures the state change for the asset
|
|
1026
|
-
# e.g. if it was a newly created asset vs updated or deleted asset.
|
|
1027
|
-
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
|
|
1028
|
-
include Google::Apis::Core::Hashable
|
|
1029
|
-
|
|
1030
|
-
# Security Command Center representation of a Google Cloud
|
|
1031
|
-
# resource.
|
|
1032
|
-
# The Asset is a Security Command Center resource that captures information
|
|
1033
|
-
# about a single Google Cloud resource. All modifications to an Asset are only
|
|
1034
|
-
# within the context of Security Command Center and don't affect the referenced
|
|
1035
|
-
# Google Cloud resource.
|
|
1036
|
-
# Corresponds to the JSON property `asset`
|
|
1037
|
-
# @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Asset]
|
|
1038
|
-
attr_accessor :asset
|
|
1039
|
-
|
|
1040
|
-
# Represents if the asset was created/updated/deleted.
|
|
1041
|
-
# Corresponds to the JSON property `changeType`
|
|
1042
|
-
# @return [String]
|
|
1043
|
-
attr_accessor :change_type
|
|
1044
|
-
|
|
1045
|
-
def initialize(**args)
|
|
1046
|
-
update!(**args)
|
|
1047
|
-
end
|
|
1048
|
-
|
|
1049
|
-
# Update properties of this object
|
|
1050
|
-
def update!(**args)
|
|
1051
|
-
@asset = args[:asset] if args.key?(:asset)
|
|
1052
|
-
@change_type = args[:change_type] if args.key?(:change_type)
|
|
1053
|
-
end
|
|
1054
|
-
end
|
|
1055
|
-
|
|
1056
|
-
# Request message for grouping by assets.
|
|
1057
|
-
class GroupAssetsRequest
|
|
1058
|
-
include Google::Apis::Core::Hashable
|
|
1059
|
-
|
|
1060
|
-
# When compare_duration is set, the GroupResult's "state_change" property is
|
|
1061
|
-
# updated to indicate whether the asset was added, removed, or remained
|
|
1062
|
-
# present during the compare_duration period of time that precedes the
|
|
1063
|
-
# read_time. This is the time between (read_time - compare_duration) and
|
|
1064
|
-
# read_time.
|
|
1065
|
-
# The state change value is derived based on the presence of the asset at the
|
|
1066
|
-
# two points in time. Intermediate state changes between the two times don't
|
|
1067
|
-
# affect the result. For example, the results aren't affected if the asset is
|
|
1068
|
-
# removed and re-created again.
|
|
1069
|
-
# Possible "state_change" values when compare_duration is specified:
|
|
1070
|
-
# * "ADDED": indicates that the asset was not present at the start of
|
|
1071
|
-
# compare_duration, but present at reference_time.
|
|
1072
|
-
# * "REMOVED": indicates that the asset was present at the start of
|
|
1073
|
-
# compare_duration, but not present at reference_time.
|
|
1074
|
-
# * "ACTIVE": indicates that the asset was present at both the
|
|
1075
|
-
# start and the end of the time period defined by
|
|
1076
|
-
# compare_duration and reference_time.
|
|
1077
|
-
# If compare_duration is not specified, then the only possible state_change
|
|
1078
|
-
# is "UNUSED", which will be the state_change set for all assets present at
|
|
1079
|
-
# read_time.
|
|
1080
|
-
# If this field is set then `state_change` must be a specified field in
|
|
1081
|
-
# `group_by`.
|
|
1082
|
-
# Corresponds to the JSON property `compareDuration`
|
|
1083
|
-
# @return [String]
|
|
1084
|
-
attr_accessor :compare_duration
|
|
1085
|
-
|
|
1086
|
-
# Expression that defines the filter to apply across assets.
|
|
1087
|
-
# The expression is a list of zero or more restrictions combined via logical
|
|
1088
|
-
# operators `AND` and `OR`.
|
|
1089
|
-
# Parentheses are supported, and `OR` has higher precedence than `AND`.
|
|
1090
|
-
# Restrictions have the form `<field> <operator> <value>` and may have a `-`
|
|
1091
|
-
# character in front of them to indicate negation. The fields map to those
|
|
1092
|
-
# defined in the Asset resource. Examples include:
|
|
1093
|
-
# * name
|
|
1094
|
-
# * security_center_properties.resource_name
|
|
1095
|
-
# * resource_properties.a_property
|
|
1096
|
-
# * security_marks.marks.marka
|
|
1097
|
-
# The supported operators are:
|
|
1098
|
-
# * `=` for all value types.
|
|
1099
|
-
# * `>`, `<`, `>=`, `<=` for integer values.
|
|
1100
|
-
# * `:`, meaning substring matching, for strings.
|
|
1101
|
-
# The supported value types are:
|
|
1102
|
-
# * string literals in quotes.
|
|
1103
|
-
# * integer literals without quotes.
|
|
1104
|
-
# * boolean literals `true` and `false` without quotes.
|
|
1105
|
-
# The following field and operator combinations are supported:
|
|
1106
|
-
# * name: `=`
|
|
1107
|
-
# * update_time: `=`, `>`, `<`, `>=`, `<=`
|
|
1108
|
-
# Usage: This should be milliseconds since epoch or an RFC3339 string.
|
|
1109
|
-
# Examples:
|
|
1110
|
-
# `update_time = "2019-06-10T16:07:18-07:00"`
|
|
1111
|
-
# `update_time = 1560208038000`
|
|
1112
|
-
# * create_time: `=`, `>`, `<`, `>=`, `<=`
|
|
1113
|
-
# Usage: This should be milliseconds since epoch or an RFC3339 string.
|
|
1114
|
-
# Examples:
|
|
1115
|
-
# `create_time = "2019-06-10T16:07:18-07:00"`
|
|
1116
|
-
# `create_time = 1560208038000`
|
|
1117
|
-
# * iam_policy.policy_blob: `=`, `:`
|
|
1118
|
-
# * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
|
|
1119
|
-
# * security_marks.marks: `=`, `:`
|
|
1120
|
-
# * security_center_properties.resource_name: `=`, `:`
|
|
1121
|
-
# * security_center_properties.resource_name_display_name: `=`, `:`
|
|
1122
|
-
# * security_center_properties.resource_type: `=`, `:`
|
|
1123
|
-
# * security_center_properties.resource_parent: `=`, `:`
|
|
1124
|
-
# * security_center_properties.resource_parent_display_name: `=`, `:`
|
|
1125
|
-
# * security_center_properties.resource_project: `=`, `:`
|
|
1126
|
-
# * security_center_properties.resource_project_display_name: `=`, `:`
|
|
1127
|
-
# * security_center_properties.resource_owners: `=`, `:`
|
|
1128
|
-
# For example, `resource_properties.size = 100` is a valid filter string.
|
|
1129
|
-
# Use a partial match on the empty string to filter based on a property
|
|
1130
|
-
# existing: `resource_properties.my_property : ""`
|
|
1131
|
-
# Use a negated partial match on the empty string to filter based on a
|
|
1132
|
-
# property not existing: `-resource_properties.my_property : ""`
|
|
1133
|
-
# Corresponds to the JSON property `filter`
|
|
1134
|
-
# @return [String]
|
|
1135
|
-
attr_accessor :filter
|
|
1136
|
-
|
|
1137
|
-
# Required. Expression that defines what assets fields to use for grouping. The
|
|
1138
|
-
# string
|
|
1139
|
-
# value should follow SQL syntax: comma separated list of fields. For
|
|
1140
|
-
# example:
|
|
1141
|
-
# "security_center_properties.resource_project,security_center_properties.
|
|
1142
|
-
# project".
|
|
1143
|
-
# The following fields are supported when compare_duration is not set:
|
|
1144
|
-
# * security_center_properties.resource_project
|
|
1145
|
-
# * security_center_properties.resource_project_display_name
|
|
1146
|
-
# * security_center_properties.resource_type
|
|
1147
|
-
# * security_center_properties.resource_parent
|
|
1148
|
-
# * security_center_properties.resource_parent_display_name
|
|
1149
|
-
# The following fields are supported when compare_duration is set:
|
|
1150
|
-
# * security_center_properties.resource_type
|
|
1151
|
-
# * security_center_properties.resource_project_display_name
|
|
1152
|
-
# * security_center_properties.resource_parent_display_name
|
|
1153
|
-
# Corresponds to the JSON property `groupBy`
|
|
1154
|
-
# @return [String]
|
|
1155
|
-
attr_accessor :group_by
|
|
1156
|
-
|
|
1157
|
-
# The maximum number of results to return in a single response. Default is
|
|
1158
|
-
# 10, minimum is 1, maximum is 1000.
|
|
1159
|
-
# Corresponds to the JSON property `pageSize`
|
|
1160
|
-
# @return [Fixnum]
|
|
1161
|
-
attr_accessor :page_size
|
|
1162
|
-
|
|
1163
|
-
# The value returned by the last `GroupAssetsResponse`; indicates
|
|
1164
|
-
# that this is a continuation of a prior `GroupAssets` call, and that the
|
|
1165
|
-
# system should return the next page of data.
|
|
1166
|
-
# Corresponds to the JSON property `pageToken`
|
|
1167
|
-
# @return [String]
|
|
1168
|
-
attr_accessor :page_token
|
|
1169
|
-
|
|
1170
|
-
# Time used as a reference point when filtering assets. The filter is limited
|
|
1171
|
-
# to assets existing at the supplied time and their values are those at that
|
|
1172
|
-
# specific time. Absence of this field will default to the API's version of
|
|
1173
|
-
# NOW.
|
|
1174
|
-
# Corresponds to the JSON property `readTime`
|
|
1175
|
-
# @return [String]
|
|
1176
|
-
attr_accessor :read_time
|
|
1177
|
-
|
|
1178
|
-
def initialize(**args)
|
|
1179
|
-
update!(**args)
|
|
1180
|
-
end
|
|
1181
|
-
|
|
1182
|
-
# Update properties of this object
|
|
1183
|
-
def update!(**args)
|
|
1184
|
-
@compare_duration = args[:compare_duration] if args.key?(:compare_duration)
|
|
1185
|
-
@filter = args[:filter] if args.key?(:filter)
|
|
1186
|
-
@group_by = args[:group_by] if args.key?(:group_by)
|
|
1187
|
-
@page_size = args[:page_size] if args.key?(:page_size)
|
|
1188
|
-
@page_token = args[:page_token] if args.key?(:page_token)
|
|
1189
|
-
@read_time = args[:read_time] if args.key?(:read_time)
|
|
1190
|
-
end
|
|
1191
|
-
end
|
|
1192
|
-
|
|
1193
|
-
# Response message for grouping by assets.
|
|
1194
|
-
class GroupAssetsResponse
|
|
1195
|
-
include Google::Apis::Core::Hashable
|
|
1196
|
-
|
|
1197
|
-
# Group results. There exists an element for each existing unique
|
|
1198
|
-
# combination of property/values. The element contains a count for the number
|
|
1199
|
-
# of times those specific property/values appear.
|
|
1200
|
-
# Corresponds to the JSON property `groupByResults`
|
|
1201
|
-
# @return [Array<Google::Apis::SecuritycenterV1p1beta1::GroupResult>]
|
|
1202
|
-
attr_accessor :group_by_results
|
|
1203
|
-
|
|
1204
|
-
# Token to retrieve the next page of results, or empty if there are no more
|
|
1205
|
-
# results.
|
|
1206
|
-
# Corresponds to the JSON property `nextPageToken`
|
|
1207
|
-
# @return [String]
|
|
1208
|
-
attr_accessor :next_page_token
|
|
1209
|
-
|
|
1210
|
-
# Time used for executing the groupBy request.
|
|
1211
|
-
# Corresponds to the JSON property `readTime`
|
|
1212
|
-
# @return [String]
|
|
1213
|
-
attr_accessor :read_time
|
|
1214
|
-
|
|
1215
|
-
# The total number of results matching the query.
|
|
1216
|
-
# Corresponds to the JSON property `totalSize`
|
|
1217
|
-
# @return [Fixnum]
|
|
1218
|
-
attr_accessor :total_size
|
|
1219
|
-
|
|
1220
|
-
def initialize(**args)
|
|
1221
|
-
update!(**args)
|
|
1222
|
-
end
|
|
1223
|
-
|
|
1224
|
-
# Update properties of this object
|
|
1225
|
-
def update!(**args)
|
|
1226
|
-
@group_by_results = args[:group_by_results] if args.key?(:group_by_results)
|
|
1227
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1228
|
-
@read_time = args[:read_time] if args.key?(:read_time)
|
|
1229
|
-
@total_size = args[:total_size] if args.key?(:total_size)
|
|
1230
|
-
end
|
|
1231
|
-
end
|
|
1232
|
-
|
|
1233
|
-
# Request message for grouping by findings.
|
|
1234
|
-
class GroupFindingsRequest
|
|
1235
|
-
include Google::Apis::Core::Hashable
|
|
1236
|
-
|
|
1237
|
-
# When compare_duration is set, the GroupResult's "state_change" attribute is
|
|
1238
|
-
# updated to indicate whether the finding had its state changed, the
|
|
1239
|
-
# finding's state remained unchanged, or if the finding was added during the
|
|
1240
|
-
# compare_duration period of time that precedes the read_time. This is the
|
|
1241
|
-
# time between (read_time - compare_duration) and read_time.
|
|
1242
|
-
# The state_change value is derived based on the presence and state of the
|
|
1243
|
-
# finding at the two points in time. Intermediate state changes between the
|
|
1244
|
-
# two times don't affect the result. For example, the results aren't affected
|
|
1245
|
-
# if the finding is made inactive and then active again.
|
|
1246
|
-
# Possible "state_change" values when compare_duration is specified:
|
|
1247
|
-
# * "CHANGED": indicates that the finding was present and matched the given
|
|
1248
|
-
# filter at the start of compare_duration, but changed its
|
|
1249
|
-
# state at read_time.
|
|
1250
|
-
# * "UNCHANGED": indicates that the finding was present and matched the given
|
|
1251
|
-
# filter at the start of compare_duration and did not change
|
|
1252
|
-
# state at read_time.
|
|
1253
|
-
# * "ADDED": indicates that the finding did not match the given filter or
|
|
1254
|
-
# was not present at the start of compare_duration, but was
|
|
1255
|
-
# present at read_time.
|
|
1256
|
-
# * "REMOVED": indicates that the finding was present and matched the
|
|
1257
|
-
# filter at the start of compare_duration, but did not match
|
|
1258
|
-
# the filter at read_time.
|
|
1259
|
-
# If compare_duration is not specified, then the only possible state_change
|
|
1260
|
-
# is "UNUSED", which will be the state_change set for all findings present
|
|
1261
|
-
# at read_time.
|
|
1262
|
-
# If this field is set then `state_change` must be a specified field in
|
|
1263
|
-
# `group_by`.
|
|
1264
|
-
# Corresponds to the JSON property `compareDuration`
|
|
1265
|
-
# @return [String]
|
|
1266
|
-
attr_accessor :compare_duration
|
|
1267
|
-
|
|
1268
|
-
# Expression that defines the filter to apply across findings.
|
|
1269
|
-
# The expression is a list of one or more restrictions combined via logical
|
|
1270
|
-
# operators `AND` and `OR`.
|
|
1271
|
-
# Parentheses are supported, and `OR` has higher precedence than `AND`.
|
|
1272
|
-
# Restrictions have the form `<field> <operator> <value>` and may have a `-`
|
|
1273
|
-
# character in front of them to indicate negation. Examples include:
|
|
1274
|
-
# * name
|
|
1275
|
-
# * source_properties.a_property
|
|
1276
|
-
# * security_marks.marks.marka
|
|
1277
|
-
# The supported operators are:
|
|
1278
|
-
# * `=` for all value types.
|
|
1279
|
-
# * `>`, `<`, `>=`, `<=` for integer values.
|
|
1280
|
-
# * `:`, meaning substring matching, for strings.
|
|
1281
|
-
# The supported value types are:
|
|
1282
|
-
# * string literals in quotes.
|
|
1283
|
-
# * integer literals without quotes.
|
|
1284
|
-
# * boolean literals `true` and `false` without quotes.
|
|
1285
|
-
# The following field and operator combinations are supported:
|
|
1286
|
-
# * name: `=`
|
|
1287
|
-
# * parent: `=`, `:`
|
|
1288
|
-
# * resource_name: `=`, `:`
|
|
1289
|
-
# * state: `=`, `:`
|
|
1290
|
-
# * category: `=`, `:`
|
|
1291
|
-
# * external_uri: `=`, `:`
|
|
1292
|
-
# * event_time: `=`, `>`, `<`, `>=`, `<=`
|
|
1293
|
-
# Usage: This should be milliseconds since epoch or an RFC3339 string.
|
|
1294
|
-
# Examples:
|
|
1295
|
-
# `event_time = "2019-06-10T16:07:18-07:00"`
|
|
1296
|
-
# `event_time = 1560208038000`
|
|
1297
|
-
# * security_marks.marks: `=`, `:`
|
|
1298
|
-
# * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
|
|
1299
|
-
# For example, `source_properties.size = 100` is a valid filter string.
|
|
1300
|
-
# Use a partial match on the empty string to filter based on a property
|
|
1301
|
-
# existing: `source_properties.my_property : ""`
|
|
1302
|
-
# Use a negated partial match on the empty string to filter based on a
|
|
1303
|
-
# property not existing: `-source_properties.my_property : ""`
|
|
1304
|
-
# Corresponds to the JSON property `filter`
|
|
1305
|
-
# @return [String]
|
|
1306
|
-
attr_accessor :filter
|
|
1307
|
-
|
|
1308
|
-
# Required. Expression that defines what assets fields to use for grouping (
|
|
1309
|
-
# including
|
|
1310
|
-
# `state_change`). The string value should follow SQL syntax: comma separated
|
|
1311
|
-
# list of fields. For example: "parent,resource_name".
|
|
1312
|
-
# The following fields are supported:
|
|
1313
|
-
# * resource_name
|
|
1314
|
-
# * category
|
|
1315
|
-
# * state
|
|
1316
|
-
# * parent
|
|
1317
|
-
# The following fields are supported when compare_duration is set:
|
|
1318
|
-
# * state_change
|
|
1319
|
-
# Corresponds to the JSON property `groupBy`
|
|
1320
|
-
# @return [String]
|
|
1321
|
-
attr_accessor :group_by
|
|
1322
|
-
|
|
1323
|
-
# The maximum number of results to return in a single response. Default is
|
|
1324
|
-
# 10, minimum is 1, maximum is 1000.
|
|
1325
|
-
# Corresponds to the JSON property `pageSize`
|
|
1326
|
-
# @return [Fixnum]
|
|
1327
|
-
attr_accessor :page_size
|
|
1328
|
-
|
|
1329
|
-
# The value returned by the last `GroupFindingsResponse`; indicates
|
|
1330
|
-
# that this is a continuation of a prior `GroupFindings` call, and
|
|
1331
|
-
# that the system should return the next page of data.
|
|
1332
|
-
# Corresponds to the JSON property `pageToken`
|
|
1333
|
-
# @return [String]
|
|
1334
|
-
attr_accessor :page_token
|
|
1335
|
-
|
|
1336
|
-
# Time used as a reference point when filtering findings. The filter is
|
|
1337
|
-
# limited to findings existing at the supplied time and their values are
|
|
1338
|
-
# those at that specific time. Absence of this field will default to the
|
|
1339
|
-
# API's version of NOW.
|
|
1340
|
-
# Corresponds to the JSON property `readTime`
|
|
1341
|
-
# @return [String]
|
|
1342
|
-
attr_accessor :read_time
|
|
1343
|
-
|
|
1344
|
-
def initialize(**args)
|
|
1345
|
-
update!(**args)
|
|
1346
|
-
end
|
|
1347
|
-
|
|
1348
|
-
# Update properties of this object
|
|
1349
|
-
def update!(**args)
|
|
1350
|
-
@compare_duration = args[:compare_duration] if args.key?(:compare_duration)
|
|
1351
|
-
@filter = args[:filter] if args.key?(:filter)
|
|
1352
|
-
@group_by = args[:group_by] if args.key?(:group_by)
|
|
1353
|
-
@page_size = args[:page_size] if args.key?(:page_size)
|
|
1354
|
-
@page_token = args[:page_token] if args.key?(:page_token)
|
|
1355
|
-
@read_time = args[:read_time] if args.key?(:read_time)
|
|
1356
|
-
end
|
|
1357
|
-
end
|
|
1358
|
-
|
|
1359
|
-
# Response message for group by findings.
|
|
1360
|
-
class GroupFindingsResponse
|
|
1361
|
-
include Google::Apis::Core::Hashable
|
|
1362
|
-
|
|
1363
|
-
# Group results. There exists an element for each existing unique
|
|
1364
|
-
# combination of property/values. The element contains a count for the number
|
|
1365
|
-
# of times those specific property/values appear.
|
|
1366
|
-
# Corresponds to the JSON property `groupByResults`
|
|
1367
|
-
# @return [Array<Google::Apis::SecuritycenterV1p1beta1::GroupResult>]
|
|
1368
|
-
attr_accessor :group_by_results
|
|
1369
|
-
|
|
1370
|
-
# Token to retrieve the next page of results, or empty if there are no more
|
|
1371
|
-
# results.
|
|
1372
|
-
# Corresponds to the JSON property `nextPageToken`
|
|
1373
|
-
# @return [String]
|
|
1374
|
-
attr_accessor :next_page_token
|
|
1375
|
-
|
|
1376
|
-
# Time used for executing the groupBy request.
|
|
1377
|
-
# Corresponds to the JSON property `readTime`
|
|
1378
|
-
# @return [String]
|
|
1379
|
-
attr_accessor :read_time
|
|
1380
|
-
|
|
1381
|
-
# The total number of results matching the query.
|
|
1382
|
-
# Corresponds to the JSON property `totalSize`
|
|
1383
|
-
# @return [Fixnum]
|
|
1384
|
-
attr_accessor :total_size
|
|
1385
|
-
|
|
1386
|
-
def initialize(**args)
|
|
1387
|
-
update!(**args)
|
|
1388
|
-
end
|
|
1389
|
-
|
|
1390
|
-
# Update properties of this object
|
|
1391
|
-
def update!(**args)
|
|
1392
|
-
@group_by_results = args[:group_by_results] if args.key?(:group_by_results)
|
|
1393
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1394
|
-
@read_time = args[:read_time] if args.key?(:read_time)
|
|
1395
|
-
@total_size = args[:total_size] if args.key?(:total_size)
|
|
1396
|
-
end
|
|
1397
|
-
end
|
|
1398
|
-
|
|
1399
|
-
# Result containing the properties and count of a groupBy request.
|
|
1400
|
-
class GroupResult
|
|
1401
|
-
include Google::Apis::Core::Hashable
|
|
1402
|
-
|
|
1403
|
-
# Total count of resources for the given properties.
|
|
1404
|
-
# Corresponds to the JSON property `count`
|
|
1405
|
-
# @return [Fixnum]
|
|
1406
|
-
attr_accessor :count
|
|
1407
|
-
|
|
1408
|
-
# Properties matching the groupBy fields in the request.
|
|
1409
|
-
# Corresponds to the JSON property `properties`
|
|
1410
|
-
# @return [Hash<String,Object>]
|
|
1411
|
-
attr_accessor :properties
|
|
1412
|
-
|
|
1413
|
-
def initialize(**args)
|
|
1414
|
-
update!(**args)
|
|
1415
|
-
end
|
|
1416
|
-
|
|
1417
|
-
# Update properties of this object
|
|
1418
|
-
def update!(**args)
|
|
1419
|
-
@count = args[:count] if args.key?(:count)
|
|
1420
|
-
@properties = args[:properties] if args.key?(:properties)
|
|
1421
|
-
end
|
|
1422
|
-
end
|
|
1423
|
-
|
|
1424
|
-
# Response message for listing assets.
|
|
1425
|
-
class ListAssetsResponse
|
|
1426
|
-
include Google::Apis::Core::Hashable
|
|
1427
|
-
|
|
1428
|
-
# Assets matching the list request.
|
|
1429
|
-
# Corresponds to the JSON property `listAssetsResults`
|
|
1430
|
-
# @return [Array<Google::Apis::SecuritycenterV1p1beta1::ListAssetsResult>]
|
|
1431
|
-
attr_accessor :list_assets_results
|
|
1432
|
-
|
|
1433
|
-
# Token to retrieve the next page of results, or empty if there are no more
|
|
1434
|
-
# results.
|
|
1435
|
-
# Corresponds to the JSON property `nextPageToken`
|
|
1436
|
-
# @return [String]
|
|
1437
|
-
attr_accessor :next_page_token
|
|
1438
|
-
|
|
1439
|
-
# Time used for executing the list request.
|
|
1440
|
-
# Corresponds to the JSON property `readTime`
|
|
1441
|
-
# @return [String]
|
|
1442
|
-
attr_accessor :read_time
|
|
1443
|
-
|
|
1444
|
-
# The total number of assets matching the query.
|
|
1445
|
-
# Corresponds to the JSON property `totalSize`
|
|
1446
|
-
# @return [Fixnum]
|
|
1447
|
-
attr_accessor :total_size
|
|
1448
|
-
|
|
1449
|
-
def initialize(**args)
|
|
1450
|
-
update!(**args)
|
|
1451
|
-
end
|
|
1452
|
-
|
|
1453
|
-
# Update properties of this object
|
|
1454
|
-
def update!(**args)
|
|
1455
|
-
@list_assets_results = args[:list_assets_results] if args.key?(:list_assets_results)
|
|
1456
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1457
|
-
@read_time = args[:read_time] if args.key?(:read_time)
|
|
1458
|
-
@total_size = args[:total_size] if args.key?(:total_size)
|
|
1459
|
-
end
|
|
1460
|
-
end
|
|
1461
|
-
|
|
1462
|
-
# Result containing the Asset and its State.
|
|
1463
|
-
class ListAssetsResult
|
|
1464
|
-
include Google::Apis::Core::Hashable
|
|
1465
|
-
|
|
1466
|
-
# Security Command Center representation of a Google Cloud
|
|
1467
|
-
# resource.
|
|
1468
|
-
# The Asset is a Security Command Center resource that captures information
|
|
1469
|
-
# about a single Google Cloud resource. All modifications to an Asset are only
|
|
1470
|
-
# within the context of Security Command Center and don't affect the referenced
|
|
1471
|
-
# Google Cloud resource.
|
|
1472
|
-
# Corresponds to the JSON property `asset`
|
|
1473
|
-
# @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Asset]
|
|
1474
|
-
attr_accessor :asset
|
|
1475
|
-
|
|
1476
|
-
# State change of the asset between the points in time.
|
|
1477
|
-
# Corresponds to the JSON property `stateChange`
|
|
1478
|
-
# @return [String]
|
|
1479
|
-
attr_accessor :state_change
|
|
1480
|
-
|
|
1481
|
-
def initialize(**args)
|
|
1482
|
-
update!(**args)
|
|
1483
|
-
end
|
|
1484
|
-
|
|
1485
|
-
# Update properties of this object
|
|
1486
|
-
def update!(**args)
|
|
1487
|
-
@asset = args[:asset] if args.key?(:asset)
|
|
1488
|
-
@state_change = args[:state_change] if args.key?(:state_change)
|
|
1489
|
-
end
|
|
1490
|
-
end
|
|
1491
|
-
|
|
1492
|
-
# Response message for listing findings.
|
|
1493
|
-
class ListFindingsResponse
|
|
1494
|
-
include Google::Apis::Core::Hashable
|
|
1495
|
-
|
|
1496
|
-
# Findings matching the list request.
|
|
1497
|
-
# Corresponds to the JSON property `listFindingsResults`
|
|
1498
|
-
# @return [Array<Google::Apis::SecuritycenterV1p1beta1::ListFindingsResult>]
|
|
1499
|
-
attr_accessor :list_findings_results
|
|
1500
|
-
|
|
1501
|
-
# Token to retrieve the next page of results, or empty if there are no more
|
|
1502
|
-
# results.
|
|
1503
|
-
# Corresponds to the JSON property `nextPageToken`
|
|
1504
|
-
# @return [String]
|
|
1505
|
-
attr_accessor :next_page_token
|
|
1506
|
-
|
|
1507
|
-
# Time used for executing the list request.
|
|
1508
|
-
# Corresponds to the JSON property `readTime`
|
|
1509
|
-
# @return [String]
|
|
1510
|
-
attr_accessor :read_time
|
|
1511
|
-
|
|
1512
|
-
# The total number of findings matching the query.
|
|
1513
|
-
# Corresponds to the JSON property `totalSize`
|
|
1514
|
-
# @return [Fixnum]
|
|
1515
|
-
attr_accessor :total_size
|
|
1516
|
-
|
|
1517
|
-
def initialize(**args)
|
|
1518
|
-
update!(**args)
|
|
1519
|
-
end
|
|
1520
|
-
|
|
1521
|
-
# Update properties of this object
|
|
1522
|
-
def update!(**args)
|
|
1523
|
-
@list_findings_results = args[:list_findings_results] if args.key?(:list_findings_results)
|
|
1524
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1525
|
-
@read_time = args[:read_time] if args.key?(:read_time)
|
|
1526
|
-
@total_size = args[:total_size] if args.key?(:total_size)
|
|
1527
|
-
end
|
|
1528
|
-
end
|
|
1529
|
-
|
|
1530
|
-
# Result containing the Finding and its StateChange.
|
|
1531
|
-
class ListFindingsResult
|
|
1532
|
-
include Google::Apis::Core::Hashable
|
|
1533
|
-
|
|
1534
|
-
# Security Command Center finding.
|
|
1535
|
-
# A finding is a record of assessment data (security, risk, health or privacy)
|
|
1536
|
-
# ingested into Security Command Center for presentation, notification,
|
|
1537
|
-
# analysis, policy testing, and enforcement. For example, an XSS vulnerability
|
|
1538
|
-
# in an App Engine application is a finding.
|
|
1539
|
-
# Corresponds to the JSON property `finding`
|
|
1540
|
-
# @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding]
|
|
1541
|
-
attr_accessor :finding
|
|
1542
|
-
|
|
1543
|
-
# Information related to the Google Cloud resource that is
|
|
1544
|
-
# associated with this finding.
|
|
1545
|
-
# Corresponds to the JSON property `resource`
|
|
1546
|
-
# @return [Google::Apis::SecuritycenterV1p1beta1::Resource]
|
|
1547
|
-
attr_accessor :resource
|
|
1548
|
-
|
|
1549
|
-
# State change of the finding between the points in time.
|
|
1550
|
-
# Corresponds to the JSON property `stateChange`
|
|
1551
|
-
# @return [String]
|
|
1552
|
-
attr_accessor :state_change
|
|
1553
|
-
|
|
1554
|
-
def initialize(**args)
|
|
1555
|
-
update!(**args)
|
|
1556
|
-
end
|
|
1557
|
-
|
|
1558
|
-
# Update properties of this object
|
|
1559
|
-
def update!(**args)
|
|
1560
|
-
@finding = args[:finding] if args.key?(:finding)
|
|
1561
|
-
@resource = args[:resource] if args.key?(:resource)
|
|
1562
|
-
@state_change = args[:state_change] if args.key?(:state_change)
|
|
1563
|
-
end
|
|
1564
|
-
end
|
|
1565
|
-
|
|
1566
|
-
# Response message for listing notification configs.
|
|
1567
|
-
class ListNotificationConfigsResponse
|
|
1568
|
-
include Google::Apis::Core::Hashable
|
|
1569
|
-
|
|
1570
|
-
# Token to retrieve the next page of results, or empty if there are no more
|
|
1571
|
-
# results.
|
|
1572
|
-
# Corresponds to the JSON property `nextPageToken`
|
|
1573
|
-
# @return [String]
|
|
1574
|
-
attr_accessor :next_page_token
|
|
1575
|
-
|
|
1576
|
-
# Notification configs belonging to the requested parent.
|
|
1577
|
-
# Corresponds to the JSON property `notificationConfigs`
|
|
1578
|
-
# @return [Array<Google::Apis::SecuritycenterV1p1beta1::NotificationConfig>]
|
|
1579
|
-
attr_accessor :notification_configs
|
|
1580
|
-
|
|
1581
|
-
def initialize(**args)
|
|
1582
|
-
update!(**args)
|
|
1583
|
-
end
|
|
1584
|
-
|
|
1585
|
-
# Update properties of this object
|
|
1586
|
-
def update!(**args)
|
|
1587
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1588
|
-
@notification_configs = args[:notification_configs] if args.key?(:notification_configs)
|
|
1589
|
-
end
|
|
1590
|
-
end
|
|
1591
|
-
|
|
1592
|
-
# The response message for Operations.ListOperations.
|
|
1593
|
-
class ListOperationsResponse
|
|
1594
|
-
include Google::Apis::Core::Hashable
|
|
1595
|
-
|
|
1596
|
-
# The standard List next-page token.
|
|
1597
|
-
# Corresponds to the JSON property `nextPageToken`
|
|
1598
|
-
# @return [String]
|
|
1599
|
-
attr_accessor :next_page_token
|
|
1600
|
-
|
|
1601
|
-
# A list of operations that matches the specified filter in the request.
|
|
1602
|
-
# Corresponds to the JSON property `operations`
|
|
1603
|
-
# @return [Array<Google::Apis::SecuritycenterV1p1beta1::Operation>]
|
|
1604
|
-
attr_accessor :operations
|
|
1605
|
-
|
|
1606
|
-
def initialize(**args)
|
|
1607
|
-
update!(**args)
|
|
1608
|
-
end
|
|
1609
|
-
|
|
1610
|
-
# Update properties of this object
|
|
1611
|
-
def update!(**args)
|
|
1612
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1613
|
-
@operations = args[:operations] if args.key?(:operations)
|
|
1614
|
-
end
|
|
1615
|
-
end
|
|
1616
|
-
|
|
1617
|
-
# Response message for listing sources.
|
|
1618
|
-
class ListSourcesResponse
|
|
1619
|
-
include Google::Apis::Core::Hashable
|
|
1620
|
-
|
|
1621
|
-
# Token to retrieve the next page of results, or empty if there are no more
|
|
1622
|
-
# results.
|
|
1623
|
-
# Corresponds to the JSON property `nextPageToken`
|
|
1624
|
-
# @return [String]
|
|
1625
|
-
attr_accessor :next_page_token
|
|
1626
|
-
|
|
1627
|
-
# Sources belonging to the requested parent.
|
|
1628
|
-
# Corresponds to the JSON property `sources`
|
|
1629
|
-
# @return [Array<Google::Apis::SecuritycenterV1p1beta1::Source>]
|
|
1630
|
-
attr_accessor :sources
|
|
1631
|
-
|
|
1632
|
-
def initialize(**args)
|
|
1633
|
-
update!(**args)
|
|
1634
|
-
end
|
|
1635
|
-
|
|
1636
|
-
# Update properties of this object
|
|
1637
|
-
def update!(**args)
|
|
1638
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1639
|
-
@sources = args[:sources] if args.key?(:sources)
|
|
1640
|
-
end
|
|
1641
|
-
end
|
|
1642
|
-
|
|
1643
|
-
# Security Command Center notification configs.
|
|
1644
|
-
# A notification config is a Security Command Center resource that contains the
|
|
1645
|
-
# configuration to send notifications for create/update events of findings,
|
|
1646
|
-
# assets and etc.
|
|
1647
|
-
class NotificationConfig
|
|
1648
|
-
include Google::Apis::Core::Hashable
|
|
1649
|
-
|
|
1650
|
-
# The description of the notification config (max of 1024 characters).
|
|
1651
|
-
# Corresponds to the JSON property `description`
|
|
1652
|
-
# @return [String]
|
|
1653
|
-
attr_accessor :description
|
|
1654
|
-
|
|
1655
|
-
# The type of events the config is for, e.g. FINDING.
|
|
1656
|
-
# Corresponds to the JSON property `eventType`
|
|
1657
|
-
# @return [String]
|
|
1658
|
-
attr_accessor :event_type
|
|
1659
|
-
|
|
1660
|
-
# The relative resource name of this notification config. See:
|
|
1661
|
-
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
|
|
1662
|
-
# Example:
|
|
1663
|
-
# "organizations/`organization_id`/notificationConfigs/notify_public_bucket".
|
|
1664
|
-
# Corresponds to the JSON property `name`
|
|
1665
|
-
# @return [String]
|
|
1666
|
-
attr_accessor :name
|
|
1667
|
-
|
|
1668
|
-
# The Pub/Sub topic to send notifications to. Its format is
|
|
1669
|
-
# "projects/[project_id]/topics/[topic]".
|
|
1670
|
-
# Corresponds to the JSON property `pubsubTopic`
|
|
1671
|
-
# @return [String]
|
|
1672
|
-
attr_accessor :pubsub_topic
|
|
1673
|
-
|
|
1674
|
-
# Output only. The service account that needs "pubsub.topics.publish"
|
|
1675
|
-
# permission to publish to the Pub/Sub topic.
|
|
1676
|
-
# Corresponds to the JSON property `serviceAccount`
|
|
1677
|
-
# @return [String]
|
|
1678
|
-
attr_accessor :service_account
|
|
1679
|
-
|
|
1680
|
-
# The config for streaming-based notifications, which send each event as soon
|
|
1681
|
-
# as it is detected.
|
|
1682
|
-
# Corresponds to the JSON property `streamingConfig`
|
|
1683
|
-
# @return [Google::Apis::SecuritycenterV1p1beta1::StreamingConfig]
|
|
1684
|
-
attr_accessor :streaming_config
|
|
1685
|
-
|
|
1686
|
-
def initialize(**args)
|
|
1687
|
-
update!(**args)
|
|
1688
|
-
end
|
|
1689
|
-
|
|
1690
|
-
# Update properties of this object
|
|
1691
|
-
def update!(**args)
|
|
1692
|
-
@description = args[:description] if args.key?(:description)
|
|
1693
|
-
@event_type = args[:event_type] if args.key?(:event_type)
|
|
1694
|
-
@name = args[:name] if args.key?(:name)
|
|
1695
|
-
@pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
|
|
1696
|
-
@service_account = args[:service_account] if args.key?(:service_account)
|
|
1697
|
-
@streaming_config = args[:streaming_config] if args.key?(:streaming_config)
|
|
1698
|
-
end
|
|
1699
|
-
end
|
|
1700
|
-
|
|
1701
|
-
# This resource represents a long-running operation that is the result of a
|
|
1702
|
-
# network API call.
|
|
1703
|
-
class Operation
|
|
1704
|
-
include Google::Apis::Core::Hashable
|
|
1705
|
-
|
|
1706
|
-
# If the value is `false`, it means the operation is still in progress.
|
|
1707
|
-
# If `true`, the operation is completed, and either `error` or `response` is
|
|
1708
|
-
# available.
|
|
1709
|
-
# Corresponds to the JSON property `done`
|
|
1710
|
-
# @return [Boolean]
|
|
1711
|
-
attr_accessor :done
|
|
1712
|
-
alias_method :done?, :done
|
|
1713
|
-
|
|
1714
|
-
# The `Status` type defines a logical error model that is suitable for
|
|
1715
|
-
# different programming environments, including REST APIs and RPC APIs. It is
|
|
1716
|
-
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
|
1717
|
-
# three pieces of data: error code, error message, and error details.
|
|
1718
|
-
# You can find out more about this error model and how to work with it in the
|
|
1719
|
-
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
|
1720
|
-
# Corresponds to the JSON property `error`
|
|
1721
|
-
# @return [Google::Apis::SecuritycenterV1p1beta1::Status]
|
|
1722
|
-
attr_accessor :error
|
|
1723
|
-
|
|
1724
|
-
# Service-specific metadata associated with the operation. It typically
|
|
1725
|
-
# contains progress information and common metadata such as create time.
|
|
1726
|
-
# Some services might not provide such metadata. Any method that returns a
|
|
1727
|
-
# long-running operation should document the metadata type, if any.
|
|
1728
|
-
# Corresponds to the JSON property `metadata`
|
|
1729
|
-
# @return [Hash<String,Object>]
|
|
1730
|
-
attr_accessor :metadata
|
|
1731
|
-
|
|
1732
|
-
# The server-assigned name, which is only unique within the same service that
|
|
1733
|
-
# originally returns it. If you use the default HTTP mapping, the
|
|
1734
|
-
# `name` should be a resource name ending with `operations/`unique_id``.
|
|
1735
|
-
# Corresponds to the JSON property `name`
|
|
1736
|
-
# @return [String]
|
|
1737
|
-
attr_accessor :name
|
|
1738
|
-
|
|
1739
|
-
# The normal response of the operation in case of success. If the original
|
|
1740
|
-
# method returns no data on success, such as `Delete`, the response is
|
|
1741
|
-
# `google.protobuf.Empty`. If the original method is standard
|
|
1742
|
-
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
|
1743
|
-
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
|
1744
|
-
# is the original method name. For example, if the original method name
|
|
1745
|
-
# is `TakeSnapshot()`, the inferred response type is
|
|
1746
|
-
# `TakeSnapshotResponse`.
|
|
1747
|
-
# Corresponds to the JSON property `response`
|
|
1748
|
-
# @return [Hash<String,Object>]
|
|
1749
|
-
attr_accessor :response
|
|
1750
|
-
|
|
1751
|
-
def initialize(**args)
|
|
1752
|
-
update!(**args)
|
|
1753
|
-
end
|
|
1754
|
-
|
|
1755
|
-
# Update properties of this object
|
|
1756
|
-
def update!(**args)
|
|
1757
|
-
@done = args[:done] if args.key?(:done)
|
|
1758
|
-
@error = args[:error] if args.key?(:error)
|
|
1759
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
|
1760
|
-
@name = args[:name] if args.key?(:name)
|
|
1761
|
-
@response = args[:response] if args.key?(:response)
|
|
1762
|
-
end
|
|
1763
|
-
end
|
|
1764
|
-
|
|
1765
|
-
# User specified settings that are attached to the Security Command
|
|
1766
|
-
# Center organization.
|
|
1767
|
-
class OrganizationSettings
|
|
1768
|
-
include Google::Apis::Core::Hashable
|
|
1769
|
-
|
|
1770
|
-
# The configuration used for Asset Discovery runs.
|
|
1771
|
-
# Corresponds to the JSON property `assetDiscoveryConfig`
|
|
1772
|
-
# @return [Google::Apis::SecuritycenterV1p1beta1::AssetDiscoveryConfig]
|
|
1773
|
-
attr_accessor :asset_discovery_config
|
|
1774
|
-
|
|
1775
|
-
# A flag that indicates if Asset Discovery should be enabled. If the flag is
|
|
1776
|
-
# set to `true`, then discovery of assets will occur. If it is set to `false,
|
|
1777
|
-
# all historical assets will remain, but discovery of future assets will not
|
|
1778
|
-
# occur.
|
|
1779
|
-
# Corresponds to the JSON property `enableAssetDiscovery`
|
|
1780
|
-
# @return [Boolean]
|
|
1781
|
-
attr_accessor :enable_asset_discovery
|
|
1782
|
-
alias_method :enable_asset_discovery?, :enable_asset_discovery
|
|
1783
|
-
|
|
1784
|
-
# The relative resource name of the settings. See:
|
|
1785
|
-
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
|
|
1786
|
-
# Example:
|
|
1787
|
-
# "organizations/`organization_id`/organizationSettings".
|
|
1788
|
-
# Corresponds to the JSON property `name`
|
|
1789
|
-
# @return [String]
|
|
1790
|
-
attr_accessor :name
|
|
1791
|
-
|
|
1792
|
-
def initialize(**args)
|
|
1793
|
-
update!(**args)
|
|
1794
|
-
end
|
|
1795
|
-
|
|
1796
|
-
# Update properties of this object
|
|
1797
|
-
def update!(**args)
|
|
1798
|
-
@asset_discovery_config = args[:asset_discovery_config] if args.key?(:asset_discovery_config)
|
|
1799
|
-
@enable_asset_discovery = args[:enable_asset_discovery] if args.key?(:enable_asset_discovery)
|
|
1800
|
-
@name = args[:name] if args.key?(:name)
|
|
1801
|
-
end
|
|
1802
|
-
end
|
|
1803
|
-
|
|
1804
|
-
# An Identity and Access Management (IAM) policy, which specifies access
|
|
1805
|
-
# controls for Google Cloud resources.
|
|
1806
|
-
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
|
|
1807
|
-
# `members` to a single `role`. Members can be user accounts, service accounts,
|
|
1808
|
-
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
|
1809
|
-
# permissions; each `role` can be an IAM predefined role or a user-created
|
|
1810
|
-
# custom role.
|
|
1811
|
-
# For some types of Google Cloud resources, a `binding` can also specify a
|
|
1812
|
-
# `condition`, which is a logical expression that allows access to a resource
|
|
1813
|
-
# only if the expression evaluates to `true`. A condition can add constraints
|
|
1814
|
-
# based on attributes of the request, the resource, or both. To learn which
|
|
1815
|
-
# resources support conditions in their IAM policies, see the
|
|
1816
|
-
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
|
1817
|
-
# policies).
|
|
1818
|
-
# **JSON example:**
|
|
1819
|
-
# `
|
|
1820
|
-
# "bindings": [
|
|
1821
|
-
# `
|
|
1822
|
-
# "role": "roles/resourcemanager.organizationAdmin",
|
|
1823
|
-
# "members": [
|
|
1824
|
-
# "user:mike@example.com",
|
|
1825
|
-
# "group:admins@example.com",
|
|
1826
|
-
# "domain:google.com",
|
|
1827
|
-
# "serviceAccount:my-project-id@appspot.gserviceaccount.com"
|
|
1828
|
-
# ]
|
|
1829
|
-
# `,
|
|
1830
|
-
# `
|
|
1831
|
-
# "role": "roles/resourcemanager.organizationViewer",
|
|
1832
|
-
# "members": [
|
|
1833
|
-
# "user:eve@example.com"
|
|
1834
|
-
# ],
|
|
1835
|
-
# "condition": `
|
|
1836
|
-
# "title": "expirable access",
|
|
1837
|
-
# "description": "Does not grant access after Sep 2020",
|
|
1838
|
-
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
1839
|
-
# ",
|
|
1840
|
-
# `
|
|
1841
|
-
# `
|
|
1842
|
-
# ],
|
|
1843
|
-
# "etag": "BwWWja0YfJA=",
|
|
1844
|
-
# "version": 3
|
|
1845
|
-
# `
|
|
1846
|
-
# **YAML example:**
|
|
1847
|
-
# bindings:
|
|
1848
|
-
# - members:
|
|
1849
|
-
# - user:mike@example.com
|
|
1850
|
-
# - group:admins@example.com
|
|
1851
|
-
# - domain:google.com
|
|
1852
|
-
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
|
1853
|
-
# role: roles/resourcemanager.organizationAdmin
|
|
1854
|
-
# - members:
|
|
1855
|
-
# - user:eve@example.com
|
|
1856
|
-
# role: roles/resourcemanager.organizationViewer
|
|
1857
|
-
# condition:
|
|
1858
|
-
# title: expirable access
|
|
1859
|
-
# description: Does not grant access after Sep 2020
|
|
1860
|
-
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
1861
|
-
# - etag: BwWWja0YfJA=
|
|
1862
|
-
# - version: 3
|
|
1863
|
-
# For a description of IAM and its features, see the
|
|
1864
|
-
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
|
1865
|
-
class Policy
|
|
1866
|
-
include Google::Apis::Core::Hashable
|
|
1867
|
-
|
|
1868
|
-
# Specifies cloud audit logging configuration for this policy.
|
|
1869
|
-
# Corresponds to the JSON property `auditConfigs`
|
|
1870
|
-
# @return [Array<Google::Apis::SecuritycenterV1p1beta1::AuditConfig>]
|
|
1871
|
-
attr_accessor :audit_configs
|
|
1872
|
-
|
|
1873
|
-
# Associates a list of `members` to a `role`. Optionally, may specify a
|
|
1874
|
-
# `condition` that determines how and when the `bindings` are applied. Each
|
|
1875
|
-
# of the `bindings` must contain at least one member.
|
|
1876
|
-
# Corresponds to the JSON property `bindings`
|
|
1877
|
-
# @return [Array<Google::Apis::SecuritycenterV1p1beta1::Binding>]
|
|
1878
|
-
attr_accessor :bindings
|
|
1879
|
-
|
|
1880
|
-
# `etag` is used for optimistic concurrency control as a way to help
|
|
1881
|
-
# prevent simultaneous updates of a policy from overwriting each other.
|
|
1882
|
-
# It is strongly suggested that systems make use of the `etag` in the
|
|
1883
|
-
# read-modify-write cycle to perform policy updates in order to avoid race
|
|
1884
|
-
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
|
|
1885
|
-
# systems are expected to put that etag in the request to `setIamPolicy` to
|
|
1886
|
-
# ensure that their change will be applied to the same version of the policy.
|
|
1887
|
-
# **Important:** If you use IAM Conditions, you must include the `etag` field
|
|
1888
|
-
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows
|
|
1889
|
-
# you to overwrite a version `3` policy with a version `1` policy, and all of
|
|
1890
|
-
# the conditions in the version `3` policy are lost.
|
|
1891
|
-
# Corresponds to the JSON property `etag`
|
|
1892
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
1893
|
-
# @return [String]
|
|
1894
|
-
attr_accessor :etag
|
|
1895
|
-
|
|
1896
|
-
# Specifies the format of the policy.
|
|
1897
|
-
# Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
|
|
1898
|
-
# are rejected.
|
|
1899
|
-
# Any operation that affects conditional role bindings must specify version
|
|
1900
|
-
# `3`. This requirement applies to the following operations:
|
|
1901
|
-
# * Getting a policy that includes a conditional role binding
|
|
1902
|
-
# * Adding a conditional role binding to a policy
|
|
1903
|
-
# * Changing a conditional role binding in a policy
|
|
1904
|
-
# * Removing any role binding, with or without a condition, from a policy
|
|
1905
|
-
# that includes conditions
|
|
1906
|
-
# **Important:** If you use IAM Conditions, you must include the `etag` field
|
|
1907
|
-
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows
|
|
1908
|
-
# you to overwrite a version `3` policy with a version `1` policy, and all of
|
|
1909
|
-
# the conditions in the version `3` policy are lost.
|
|
1910
|
-
# If a policy does not include any conditions, operations on that policy may
|
|
1911
|
-
# specify any valid version or leave the field unset.
|
|
1912
|
-
# To learn which resources support conditions in their IAM policies, see the
|
|
1913
|
-
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
|
1914
|
-
# policies).
|
|
1915
|
-
# Corresponds to the JSON property `version`
|
|
1916
|
-
# @return [Fixnum]
|
|
1917
|
-
attr_accessor :version
|
|
1918
|
-
|
|
1919
|
-
def initialize(**args)
|
|
1920
|
-
update!(**args)
|
|
1921
|
-
end
|
|
1922
|
-
|
|
1923
|
-
# Update properties of this object
|
|
1924
|
-
def update!(**args)
|
|
1925
|
-
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
|
|
1926
|
-
@bindings = args[:bindings] if args.key?(:bindings)
|
|
1927
|
-
@etag = args[:etag] if args.key?(:etag)
|
|
1928
|
-
@version = args[:version] if args.key?(:version)
|
|
1929
|
-
end
|
|
1930
|
-
end
|
|
1931
|
-
|
|
1932
|
-
# Information related to the Google Cloud resource that is
|
|
1933
|
-
# associated with this finding.
|
|
1934
|
-
class Resource
|
|
1935
|
-
include Google::Apis::Core::Hashable
|
|
1936
|
-
|
|
1937
|
-
# The full resource name of the resource. See:
|
|
1938
|
-
# https://cloud.google.com/apis/design/resource_names#full_resource_name
|
|
1939
|
-
# Corresponds to the JSON property `name`
|
|
1940
|
-
# @return [String]
|
|
1941
|
-
attr_accessor :name
|
|
1942
|
-
|
|
1943
|
-
# The human readable name of resource's parent.
|
|
1944
|
-
# Corresponds to the JSON property `parentDisplayName`
|
|
1945
|
-
# @return [String]
|
|
1946
|
-
attr_accessor :parent_display_name
|
|
1947
|
-
|
|
1948
|
-
# The full resource name of resource's parent.
|
|
1949
|
-
# Corresponds to the JSON property `parentName`
|
|
1950
|
-
# @return [String]
|
|
1951
|
-
attr_accessor :parent_name
|
|
1952
|
-
|
|
1953
|
-
# The human readable name of project that the resource belongs to.
|
|
1954
|
-
# Corresponds to the JSON property `projectDisplayName`
|
|
1955
|
-
# @return [String]
|
|
1956
|
-
attr_accessor :project_display_name
|
|
1957
|
-
|
|
1958
|
-
# The full resource name of project that the resource belongs to.
|
|
1959
|
-
# Corresponds to the JSON property `projectName`
|
|
1960
|
-
# @return [String]
|
|
1961
|
-
attr_accessor :project_name
|
|
1962
|
-
|
|
1963
|
-
def initialize(**args)
|
|
1964
|
-
update!(**args)
|
|
1965
|
-
end
|
|
1966
|
-
|
|
1967
|
-
# Update properties of this object
|
|
1968
|
-
def update!(**args)
|
|
1969
|
-
@name = args[:name] if args.key?(:name)
|
|
1970
|
-
@parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
|
|
1971
|
-
@parent_name = args[:parent_name] if args.key?(:parent_name)
|
|
1972
|
-
@project_display_name = args[:project_display_name] if args.key?(:project_display_name)
|
|
1973
|
-
@project_name = args[:project_name] if args.key?(:project_name)
|
|
1974
|
-
end
|
|
1975
|
-
end
|
|
1976
|
-
|
|
1977
|
-
# Request message for running asset discovery for an organization.
|
|
1978
|
-
class RunAssetDiscoveryRequest
|
|
1979
|
-
include Google::Apis::Core::Hashable
|
|
1980
|
-
|
|
1981
|
-
def initialize(**args)
|
|
1982
|
-
update!(**args)
|
|
1983
|
-
end
|
|
1984
|
-
|
|
1985
|
-
# Update properties of this object
|
|
1986
|
-
def update!(**args)
|
|
1987
|
-
end
|
|
1988
|
-
end
|
|
1989
|
-
|
|
1990
|
-
# User specified security marks that are attached to the parent Security
|
|
1991
|
-
# Command Center resource. Security marks are scoped within a Security Command
|
|
1992
|
-
# Center organization -- they can be modified and viewed by all users who have
|
|
1993
|
-
# proper permissions on the organization.
|
|
1994
|
-
class SecurityMarks
|
|
1995
|
-
include Google::Apis::Core::Hashable
|
|
1996
|
-
|
|
1997
|
-
# Mutable user specified security marks belonging to the parent resource.
|
|
1998
|
-
# Constraints are as follows:
|
|
1999
|
-
# * Keys and values are treated as case insensitive
|
|
2000
|
-
# * Keys must be between 1 - 256 characters (inclusive)
|
|
2001
|
-
# * Keys must be letters, numbers, underscores, or dashes
|
|
2002
|
-
# * Values have leading and trailing whitespace trimmed, remaining
|
|
2003
|
-
# characters must be between 1 - 4096 characters (inclusive)
|
|
2004
|
-
# Corresponds to the JSON property `marks`
|
|
2005
|
-
# @return [Hash<String,String>]
|
|
2006
|
-
attr_accessor :marks
|
|
2007
|
-
|
|
2008
|
-
# The relative resource name of the SecurityMarks. See:
|
|
2009
|
-
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
|
|
2010
|
-
# Examples:
|
|
2011
|
-
# "organizations/`organization_id`/assets/`asset_id`/securityMarks"
|
|
2012
|
-
# "organizations/`organization_id`/sources/`source_id`/findings/`finding_id`/
|
|
2013
|
-
# securityMarks".
|
|
2014
|
-
# Corresponds to the JSON property `name`
|
|
2015
|
-
# @return [String]
|
|
2016
|
-
attr_accessor :name
|
|
2017
|
-
|
|
2018
|
-
def initialize(**args)
|
|
2019
|
-
update!(**args)
|
|
2020
|
-
end
|
|
2021
|
-
|
|
2022
|
-
# Update properties of this object
|
|
2023
|
-
def update!(**args)
|
|
2024
|
-
@marks = args[:marks] if args.key?(:marks)
|
|
2025
|
-
@name = args[:name] if args.key?(:name)
|
|
2026
|
-
end
|
|
2027
|
-
end
|
|
2028
|
-
|
|
2029
|
-
# Request message for updating a finding's state.
|
|
2030
|
-
class SetFindingStateRequest
|
|
2031
|
-
include Google::Apis::Core::Hashable
|
|
2032
|
-
|
|
2033
|
-
# Required. The time at which the updated state takes effect.
|
|
2034
|
-
# Corresponds to the JSON property `startTime`
|
|
2035
|
-
# @return [String]
|
|
2036
|
-
attr_accessor :start_time
|
|
2037
|
-
|
|
2038
|
-
# Required. The desired State of the finding.
|
|
2039
|
-
# Corresponds to the JSON property `state`
|
|
2040
|
-
# @return [String]
|
|
2041
|
-
attr_accessor :state
|
|
2042
|
-
|
|
2043
|
-
def initialize(**args)
|
|
2044
|
-
update!(**args)
|
|
2045
|
-
end
|
|
2046
|
-
|
|
2047
|
-
# Update properties of this object
|
|
2048
|
-
def update!(**args)
|
|
2049
|
-
@start_time = args[:start_time] if args.key?(:start_time)
|
|
2050
|
-
@state = args[:state] if args.key?(:state)
|
|
2051
|
-
end
|
|
2052
|
-
end
|
|
2053
|
-
|
|
2054
|
-
# Request message for `SetIamPolicy` method.
|
|
2055
|
-
class SetIamPolicyRequest
|
|
2056
|
-
include Google::Apis::Core::Hashable
|
|
2057
|
-
|
|
2058
|
-
# An Identity and Access Management (IAM) policy, which specifies access
|
|
2059
|
-
# controls for Google Cloud resources.
|
|
2060
|
-
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
|
|
2061
|
-
# `members` to a single `role`. Members can be user accounts, service accounts,
|
|
2062
|
-
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
|
2063
|
-
# permissions; each `role` can be an IAM predefined role or a user-created
|
|
2064
|
-
# custom role.
|
|
2065
|
-
# For some types of Google Cloud resources, a `binding` can also specify a
|
|
2066
|
-
# `condition`, which is a logical expression that allows access to a resource
|
|
2067
|
-
# only if the expression evaluates to `true`. A condition can add constraints
|
|
2068
|
-
# based on attributes of the request, the resource, or both. To learn which
|
|
2069
|
-
# resources support conditions in their IAM policies, see the
|
|
2070
|
-
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
|
2071
|
-
# policies).
|
|
2072
|
-
# **JSON example:**
|
|
2073
|
-
# `
|
|
2074
|
-
# "bindings": [
|
|
2075
|
-
# `
|
|
2076
|
-
# "role": "roles/resourcemanager.organizationAdmin",
|
|
2077
|
-
# "members": [
|
|
2078
|
-
# "user:mike@example.com",
|
|
2079
|
-
# "group:admins@example.com",
|
|
2080
|
-
# "domain:google.com",
|
|
2081
|
-
# "serviceAccount:my-project-id@appspot.gserviceaccount.com"
|
|
2082
|
-
# ]
|
|
2083
|
-
# `,
|
|
2084
|
-
# `
|
|
2085
|
-
# "role": "roles/resourcemanager.organizationViewer",
|
|
2086
|
-
# "members": [
|
|
2087
|
-
# "user:eve@example.com"
|
|
2088
|
-
# ],
|
|
2089
|
-
# "condition": `
|
|
2090
|
-
# "title": "expirable access",
|
|
2091
|
-
# "description": "Does not grant access after Sep 2020",
|
|
2092
|
-
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
2093
|
-
# ",
|
|
2094
|
-
# `
|
|
2095
|
-
# `
|
|
2096
|
-
# ],
|
|
2097
|
-
# "etag": "BwWWja0YfJA=",
|
|
2098
|
-
# "version": 3
|
|
2099
|
-
# `
|
|
2100
|
-
# **YAML example:**
|
|
2101
|
-
# bindings:
|
|
2102
|
-
# - members:
|
|
2103
|
-
# - user:mike@example.com
|
|
2104
|
-
# - group:admins@example.com
|
|
2105
|
-
# - domain:google.com
|
|
2106
|
-
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
|
2107
|
-
# role: roles/resourcemanager.organizationAdmin
|
|
2108
|
-
# - members:
|
|
2109
|
-
# - user:eve@example.com
|
|
2110
|
-
# role: roles/resourcemanager.organizationViewer
|
|
2111
|
-
# condition:
|
|
2112
|
-
# title: expirable access
|
|
2113
|
-
# description: Does not grant access after Sep 2020
|
|
2114
|
-
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
2115
|
-
# - etag: BwWWja0YfJA=
|
|
2116
|
-
# - version: 3
|
|
2117
|
-
# For a description of IAM and its features, see the
|
|
2118
|
-
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
|
2119
|
-
# Corresponds to the JSON property `policy`
|
|
2120
|
-
# @return [Google::Apis::SecuritycenterV1p1beta1::Policy]
|
|
2121
|
-
attr_accessor :policy
|
|
2122
|
-
|
|
2123
|
-
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
|
2124
|
-
# the fields in the mask will be modified. If no mask is provided, the
|
|
2125
|
-
# following default mask is used:
|
|
2126
|
-
# `paths: "bindings, etag"`
|
|
2127
|
-
# Corresponds to the JSON property `updateMask`
|
|
2128
|
-
# @return [String]
|
|
2129
|
-
attr_accessor :update_mask
|
|
2130
|
-
|
|
2131
|
-
def initialize(**args)
|
|
2132
|
-
update!(**args)
|
|
2133
|
-
end
|
|
2134
|
-
|
|
2135
|
-
# Update properties of this object
|
|
2136
|
-
def update!(**args)
|
|
2137
|
-
@policy = args[:policy] if args.key?(:policy)
|
|
2138
|
-
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
|
2139
|
-
end
|
|
2140
|
-
end
|
|
2141
|
-
|
|
2142
|
-
# Security Command Center finding source. A finding source
|
|
2143
|
-
# is an entity or a mechanism that can produce a finding. A source is like a
|
|
2144
|
-
# container of findings that come from the same scanner, logger, monitor, etc.
|
|
2145
|
-
class Source
|
|
2146
|
-
include Google::Apis::Core::Hashable
|
|
2147
|
-
|
|
2148
|
-
# The description of the source (max of 1024 characters).
|
|
2149
|
-
# Example:
|
|
2150
|
-
# "Web Security Scanner is a web security scanner for common
|
|
2151
|
-
# vulnerabilities in App Engine applications. It can automatically
|
|
2152
|
-
# scan and detect four common vulnerabilities, including cross-site-scripting
|
|
2153
|
-
# (XSS), Flash injection, mixed content (HTTP in HTTPS), and
|
|
2154
|
-
# outdated/insecure libraries."
|
|
2155
|
-
# Corresponds to the JSON property `description`
|
|
2156
|
-
# @return [String]
|
|
2157
|
-
attr_accessor :description
|
|
2158
|
-
|
|
2159
|
-
# The source's display name.
|
|
2160
|
-
# A source's display name must be unique amongst its siblings, for example,
|
|
2161
|
-
# two sources with the same parent can't share the same display name.
|
|
2162
|
-
# The display name must have a length between 1 and 64 characters
|
|
2163
|
-
# (inclusive).
|
|
2164
|
-
# Corresponds to the JSON property `displayName`
|
|
2165
|
-
# @return [String]
|
|
2166
|
-
attr_accessor :display_name
|
|
2167
|
-
|
|
2168
|
-
# The relative resource name of this source. See:
|
|
2169
|
-
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
|
|
2170
|
-
# Example:
|
|
2171
|
-
# "organizations/`organization_id`/sources/`source_id`"
|
|
2172
|
-
# Corresponds to the JSON property `name`
|
|
2173
|
-
# @return [String]
|
|
2174
|
-
attr_accessor :name
|
|
2175
|
-
|
|
2176
|
-
def initialize(**args)
|
|
2177
|
-
update!(**args)
|
|
2178
|
-
end
|
|
2179
|
-
|
|
2180
|
-
# Update properties of this object
|
|
2181
|
-
def update!(**args)
|
|
2182
|
-
@description = args[:description] if args.key?(:description)
|
|
2183
|
-
@display_name = args[:display_name] if args.key?(:display_name)
|
|
2184
|
-
@name = args[:name] if args.key?(:name)
|
|
2185
|
-
end
|
|
2186
|
-
end
|
|
2187
|
-
|
|
2188
|
-
# The `Status` type defines a logical error model that is suitable for
|
|
2189
|
-
# different programming environments, including REST APIs and RPC APIs. It is
|
|
2190
|
-
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
|
2191
|
-
# three pieces of data: error code, error message, and error details.
|
|
2192
|
-
# You can find out more about this error model and how to work with it in the
|
|
2193
|
-
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
|
2194
|
-
class Status
|
|
2195
|
-
include Google::Apis::Core::Hashable
|
|
2196
|
-
|
|
2197
|
-
# The status code, which should be an enum value of google.rpc.Code.
|
|
2198
|
-
# Corresponds to the JSON property `code`
|
|
2199
|
-
# @return [Fixnum]
|
|
2200
|
-
attr_accessor :code
|
|
2201
|
-
|
|
2202
|
-
# A list of messages that carry the error details. There is a common set of
|
|
2203
|
-
# message types for APIs to use.
|
|
2204
|
-
# Corresponds to the JSON property `details`
|
|
2205
|
-
# @return [Array<Hash<String,Object>>]
|
|
2206
|
-
attr_accessor :details
|
|
2207
|
-
|
|
2208
|
-
# A developer-facing error message, which should be in English. Any
|
|
2209
|
-
# user-facing error message should be localized and sent in the
|
|
2210
|
-
# google.rpc.Status.details field, or localized by the client.
|
|
2211
|
-
# Corresponds to the JSON property `message`
|
|
2212
|
-
# @return [String]
|
|
2213
|
-
attr_accessor :message
|
|
2214
|
-
|
|
2215
|
-
def initialize(**args)
|
|
2216
|
-
update!(**args)
|
|
2217
|
-
end
|
|
2218
|
-
|
|
2219
|
-
# Update properties of this object
|
|
2220
|
-
def update!(**args)
|
|
2221
|
-
@code = args[:code] if args.key?(:code)
|
|
2222
|
-
@details = args[:details] if args.key?(:details)
|
|
2223
|
-
@message = args[:message] if args.key?(:message)
|
|
2224
|
-
end
|
|
2225
|
-
end
|
|
2226
|
-
|
|
2227
|
-
# The config for streaming-based notifications, which send each event as soon
|
|
2228
|
-
# as it is detected.
|
|
2229
|
-
class StreamingConfig
|
|
2230
|
-
include Google::Apis::Core::Hashable
|
|
2231
|
-
|
|
2232
|
-
# Expression that defines the filter to apply across create/update events
|
|
2233
|
-
# of assets or findings as specified by the event type. The expression is a
|
|
2234
|
-
# list of zero or more restrictions combined via logical operators `AND`
|
|
2235
|
-
# and `OR`. Parentheses are supported, and `OR` has higher precedence than
|
|
2236
|
-
# `AND`.
|
|
2237
|
-
# Restrictions have the form `<field> <operator> <value>` and may have a
|
|
2238
|
-
# `-` character in front of them to indicate negation. The fields map to
|
|
2239
|
-
# those defined in the corresponding resource.
|
|
2240
|
-
# The supported operators are:
|
|
2241
|
-
# * `=` for all value types.
|
|
2242
|
-
# * `>`, `<`, `>=`, `<=` for integer values.
|
|
2243
|
-
# * `:`, meaning substring matching, for strings.
|
|
2244
|
-
# The supported value types are:
|
|
2245
|
-
# * string literals in quotes.
|
|
2246
|
-
# * integer literals without quotes.
|
|
2247
|
-
# * boolean literals `true` and `false` without quotes.
|
|
2248
|
-
# Corresponds to the JSON property `filter`
|
|
2249
|
-
# @return [String]
|
|
2250
|
-
attr_accessor :filter
|
|
2251
|
-
|
|
2252
|
-
def initialize(**args)
|
|
2253
|
-
update!(**args)
|
|
2254
|
-
end
|
|
2255
|
-
|
|
2256
|
-
# Update properties of this object
|
|
2257
|
-
def update!(**args)
|
|
2258
|
-
@filter = args[:filter] if args.key?(:filter)
|
|
2259
|
-
end
|
|
2260
|
-
end
|
|
2261
|
-
|
|
2262
|
-
# Request message for `TestIamPermissions` method.
|
|
2263
|
-
class TestIamPermissionsRequest
|
|
2264
|
-
include Google::Apis::Core::Hashable
|
|
2265
|
-
|
|
2266
|
-
# The set of permissions to check for the `resource`. Permissions with
|
|
2267
|
-
# wildcards (such as '*' or 'storage.*') are not allowed. For more
|
|
2268
|
-
# information see
|
|
2269
|
-
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
2270
|
-
# Corresponds to the JSON property `permissions`
|
|
2271
|
-
# @return [Array<String>]
|
|
2272
|
-
attr_accessor :permissions
|
|
2273
|
-
|
|
2274
|
-
def initialize(**args)
|
|
2275
|
-
update!(**args)
|
|
2276
|
-
end
|
|
2277
|
-
|
|
2278
|
-
# Update properties of this object
|
|
2279
|
-
def update!(**args)
|
|
2280
|
-
@permissions = args[:permissions] if args.key?(:permissions)
|
|
2281
|
-
end
|
|
2282
|
-
end
|
|
2283
|
-
|
|
2284
|
-
# Response message for `TestIamPermissions` method.
|
|
2285
|
-
class TestIamPermissionsResponse
|
|
2286
|
-
include Google::Apis::Core::Hashable
|
|
2287
|
-
|
|
2288
|
-
# A subset of `TestPermissionsRequest.permissions` that the caller is
|
|
2289
|
-
# allowed.
|
|
2290
|
-
# Corresponds to the JSON property `permissions`
|
|
2291
|
-
# @return [Array<String>]
|
|
2292
|
-
attr_accessor :permissions
|
|
2293
|
-
|
|
2294
|
-
def initialize(**args)
|
|
2295
|
-
update!(**args)
|
|
2296
|
-
end
|
|
2297
|
-
|
|
2298
|
-
# Update properties of this object
|
|
2299
|
-
def update!(**args)
|
|
2300
|
-
@permissions = args[:permissions] if args.key?(:permissions)
|
|
2301
|
-
end
|
|
2302
|
-
end
|
|
2303
|
-
end
|
|
2304
|
-
end
|
|
2305
|
-
end
|