@googleapis/securitycenter 13.0.1 → 14.1.1
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.
- package/CHANGELOG.md +35 -0
- package/build/v1.d.ts +11016 -6
- package/build/v1.js.map +1 -1
- package/build/v1beta1.d.ts +1556 -2
- package/build/v1beta1.js.map +1 -1
- package/build/v1beta2.d.ts +3616 -7
- package/build/v1beta2.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +11016 -7
- package/v1beta1.ts +1555 -2
- package/v1beta2.ts +3616 -8
package/build/v1beta2.d.ts
CHANGED
|
@@ -173,6 +173,39 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
173
173
|
*/
|
|
174
174
|
count?: string | null;
|
|
175
175
|
}
|
|
176
|
+
/**
|
|
177
|
+
* Contains information about the AI model associated with the finding.
|
|
178
|
+
*/
|
|
179
|
+
export interface Schema$AiModel {
|
|
180
|
+
/**
|
|
181
|
+
* The platform on which the model is deployed.
|
|
182
|
+
*/
|
|
183
|
+
deploymentPlatform?: string | null;
|
|
184
|
+
/**
|
|
185
|
+
* The user defined display name of model. Ex. baseline-classification-model
|
|
186
|
+
*/
|
|
187
|
+
displayName?: string | null;
|
|
188
|
+
/**
|
|
189
|
+
* The domain of the model, for example, “image-classification”.
|
|
190
|
+
*/
|
|
191
|
+
domain?: string | null;
|
|
192
|
+
/**
|
|
193
|
+
* The name of the model library, for example, “transformers”.
|
|
194
|
+
*/
|
|
195
|
+
library?: string | null;
|
|
196
|
+
/**
|
|
197
|
+
* The region in which the model is used, for example, “us-central1”.
|
|
198
|
+
*/
|
|
199
|
+
location?: string | null;
|
|
200
|
+
/**
|
|
201
|
+
* The name of the AI model, for example, "gemini:1.0.0".
|
|
202
|
+
*/
|
|
203
|
+
name?: string | null;
|
|
204
|
+
/**
|
|
205
|
+
* The publisher of the model, for example, “google” or “nvidia”.
|
|
206
|
+
*/
|
|
207
|
+
publisher?: string | null;
|
|
208
|
+
}
|
|
176
209
|
/**
|
|
177
210
|
* Allowed IP rule.
|
|
178
211
|
*/
|
|
@@ -423,6 +456,15 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
423
456
|
*/
|
|
424
457
|
storagePool?: string | null;
|
|
425
458
|
}
|
|
459
|
+
/**
|
|
460
|
+
* The destination big query dataset to export findings to.
|
|
461
|
+
*/
|
|
462
|
+
export interface Schema$BigQueryDestination {
|
|
463
|
+
/**
|
|
464
|
+
* Required. The relative resource name of the destination dataset, in the form projects/{projectId\}/datasets/{datasetId\}.
|
|
465
|
+
*/
|
|
466
|
+
dataset?: string | null;
|
|
467
|
+
}
|
|
426
468
|
/**
|
|
427
469
|
* Contains details about a chokepoint, which is a resource or resource group where high-risk attack paths converge, based on [attack path simulations] (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations).
|
|
428
470
|
*/
|
|
@@ -838,6 +880,23 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
838
880
|
*/
|
|
839
881
|
maxRetentionAllowed?: string | null;
|
|
840
882
|
}
|
|
883
|
+
/**
|
|
884
|
+
* Vertex AI dataset associated with the finding.
|
|
885
|
+
*/
|
|
886
|
+
export interface Schema$Dataset {
|
|
887
|
+
/**
|
|
888
|
+
* The user defined display name of dataset, e.g. plants-dataset
|
|
889
|
+
*/
|
|
890
|
+
displayName?: string | null;
|
|
891
|
+
/**
|
|
892
|
+
* Resource name of the dataset, e.g. projects/{project\}/locations/{location\}/datasets/2094040236064505856
|
|
893
|
+
*/
|
|
894
|
+
name?: string | null;
|
|
895
|
+
/**
|
|
896
|
+
* Data source, such as BigQuery source URI, e.g. bq://scc-nexus-test.AIPPtest.gsod
|
|
897
|
+
*/
|
|
898
|
+
source?: string | null;
|
|
899
|
+
}
|
|
841
900
|
/**
|
|
842
901
|
* Denied IP rule.
|
|
843
902
|
*/
|
|
@@ -978,6 +1037,24 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
978
1037
|
*/
|
|
979
1038
|
totalExfiltratedBytes?: string | null;
|
|
980
1039
|
}
|
|
1040
|
+
/**
|
|
1041
|
+
* The LRO metadata for a ExportFindings request.
|
|
1042
|
+
*/
|
|
1043
|
+
export interface Schema$ExportFindingsMetadata {
|
|
1044
|
+
/**
|
|
1045
|
+
* Required. The destination big query dataset to export findings to.
|
|
1046
|
+
*/
|
|
1047
|
+
bigQueryDestination?: Schema$BigQueryDestination;
|
|
1048
|
+
/**
|
|
1049
|
+
* Optional. Timestamp at which export was started
|
|
1050
|
+
*/
|
|
1051
|
+
exportStartTime?: string | null;
|
|
1052
|
+
}
|
|
1053
|
+
/**
|
|
1054
|
+
* The response to a ExportFindings request. Contains the LRO information.
|
|
1055
|
+
*/
|
|
1056
|
+
export interface Schema$ExportFindingsResponse {
|
|
1057
|
+
}
|
|
981
1058
|
/**
|
|
982
1059
|
* Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
|
|
983
1060
|
*/
|
|
@@ -1015,6 +1092,10 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
1015
1092
|
* The length in bytes of the file prefix that was hashed. If hashed_size == size, any hashes reported represent the entire file.
|
|
1016
1093
|
*/
|
|
1017
1094
|
hashedSize?: string | null;
|
|
1095
|
+
/**
|
|
1096
|
+
* Operation(s) performed on a file.
|
|
1097
|
+
*/
|
|
1098
|
+
operations?: Schema$FileOperation[];
|
|
1018
1099
|
/**
|
|
1019
1100
|
* True when the hash covers only a prefix of the file.
|
|
1020
1101
|
*/
|
|
@@ -1032,6 +1113,15 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
1032
1113
|
*/
|
|
1033
1114
|
size?: string | null;
|
|
1034
1115
|
}
|
|
1116
|
+
/**
|
|
1117
|
+
* Operation(s) performed on a file.
|
|
1118
|
+
*/
|
|
1119
|
+
export interface Schema$FileOperation {
|
|
1120
|
+
/**
|
|
1121
|
+
* The type of the operation
|
|
1122
|
+
*/
|
|
1123
|
+
type?: string | null;
|
|
1124
|
+
}
|
|
1035
1125
|
/**
|
|
1036
1126
|
* Security Command Center finding. A finding is a record of assessment data like security, risk, health, or privacy, that is ingested into Security Command Center for presentation, notification, analysis, policy testing, and enforcement. For example, a cross-site scripting (XSS) vulnerability in an App Engine application is a finding.
|
|
1037
1127
|
*/
|
|
@@ -1044,6 +1134,10 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
1044
1134
|
* AffectedResources associated with the finding.
|
|
1045
1135
|
*/
|
|
1046
1136
|
affectedResources?: Schema$AffectedResources;
|
|
1137
|
+
/**
|
|
1138
|
+
* The AI model associated with the finding.
|
|
1139
|
+
*/
|
|
1140
|
+
aiModel?: Schema$AiModel;
|
|
1047
1141
|
/**
|
|
1048
1142
|
* Represents an application associated with the finding.
|
|
1049
1143
|
*/
|
|
@@ -1274,6 +1368,10 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
1274
1368
|
* Contains details about a group of security issues that, when the issues occur together, represent a greater risk than when the issues occur independently. A group of such issues is referred to as a toxic combination. This field cannot be updated. Its value is ignored in all update requests.
|
|
1275
1369
|
*/
|
|
1276
1370
|
toxicCombination?: Schema$ToxicCombination;
|
|
1371
|
+
/**
|
|
1372
|
+
* VertexAi associated with the finding.
|
|
1373
|
+
*/
|
|
1374
|
+
vertexAi?: Schema$VertexAi;
|
|
1277
1375
|
/**
|
|
1278
1376
|
* Represents vulnerability-specific fields like CVE and CVSS scores. CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)
|
|
1279
1377
|
*/
|
|
@@ -1293,7 +1391,7 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
1293
1391
|
resourceFolderDisplayName?: string | null;
|
|
1294
1392
|
}
|
|
1295
1393
|
/**
|
|
1296
|
-
*
|
|
1394
|
+
* Google Cloud metadata associated with the resource. Only applicable if the finding's cloud provider is Google Cloud.
|
|
1297
1395
|
*/
|
|
1298
1396
|
export interface Schema$GcpMetadata {
|
|
1299
1397
|
/**
|
|
@@ -2027,6 +2125,39 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
2027
2125
|
*/
|
|
2028
2126
|
count?: string | null;
|
|
2029
2127
|
}
|
|
2128
|
+
/**
|
|
2129
|
+
* Contains information about the AI model associated with the finding.
|
|
2130
|
+
*/
|
|
2131
|
+
export interface Schema$GoogleCloudSecuritycenterV2AiModel {
|
|
2132
|
+
/**
|
|
2133
|
+
* The platform on which the model is deployed.
|
|
2134
|
+
*/
|
|
2135
|
+
deploymentPlatform?: string | null;
|
|
2136
|
+
/**
|
|
2137
|
+
* The user defined display name of model. Ex. baseline-classification-model
|
|
2138
|
+
*/
|
|
2139
|
+
displayName?: string | null;
|
|
2140
|
+
/**
|
|
2141
|
+
* The domain of the model, for example, “image-classification”.
|
|
2142
|
+
*/
|
|
2143
|
+
domain?: string | null;
|
|
2144
|
+
/**
|
|
2145
|
+
* The name of the model library, for example, “transformers”.
|
|
2146
|
+
*/
|
|
2147
|
+
library?: string | null;
|
|
2148
|
+
/**
|
|
2149
|
+
* The region in which the model is used, for example, “us-central1”.
|
|
2150
|
+
*/
|
|
2151
|
+
location?: string | null;
|
|
2152
|
+
/**
|
|
2153
|
+
* The name of the AI model, for example, "gemini:1.0.0".
|
|
2154
|
+
*/
|
|
2155
|
+
name?: string | null;
|
|
2156
|
+
/**
|
|
2157
|
+
* The publisher of the model, for example, “google” or “nvidia”.
|
|
2158
|
+
*/
|
|
2159
|
+
publisher?: string | null;
|
|
2160
|
+
}
|
|
2030
2161
|
/**
|
|
2031
2162
|
* Allowed IP rule.
|
|
2032
2163
|
*/
|
|
@@ -2713,6 +2844,23 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
2713
2844
|
*/
|
|
2714
2845
|
maxRetentionAllowed?: string | null;
|
|
2715
2846
|
}
|
|
2847
|
+
/**
|
|
2848
|
+
* Vertex AI dataset associated with the finding.
|
|
2849
|
+
*/
|
|
2850
|
+
export interface Schema$GoogleCloudSecuritycenterV2Dataset {
|
|
2851
|
+
/**
|
|
2852
|
+
* The user defined display name of dataset, e.g. plants-dataset
|
|
2853
|
+
*/
|
|
2854
|
+
displayName?: string | null;
|
|
2855
|
+
/**
|
|
2856
|
+
* Resource name of the dataset, e.g. projects/{project\}/locations/{location\}/datasets/2094040236064505856
|
|
2857
|
+
*/
|
|
2858
|
+
name?: string | null;
|
|
2859
|
+
/**
|
|
2860
|
+
* Data source, such as a BigQuery source URI, e.g. bq://scc-nexus-test.AIPPtest.gsod
|
|
2861
|
+
*/
|
|
2862
|
+
source?: string | null;
|
|
2863
|
+
}
|
|
2716
2864
|
/**
|
|
2717
2865
|
* Denied IP rule.
|
|
2718
2866
|
*/
|
|
@@ -2878,6 +3026,10 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
2878
3026
|
* The length in bytes of the file prefix that was hashed. If hashed_size == size, any hashes reported represent the entire file.
|
|
2879
3027
|
*/
|
|
2880
3028
|
hashedSize?: string | null;
|
|
3029
|
+
/**
|
|
3030
|
+
* Operation(s) performed on a file.
|
|
3031
|
+
*/
|
|
3032
|
+
operations?: Schema$GoogleCloudSecuritycenterV2FileOperation[];
|
|
2881
3033
|
/**
|
|
2882
3034
|
* True when the hash covers only a prefix of the file.
|
|
2883
3035
|
*/
|
|
@@ -2895,6 +3047,15 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
2895
3047
|
*/
|
|
2896
3048
|
size?: string | null;
|
|
2897
3049
|
}
|
|
3050
|
+
/**
|
|
3051
|
+
* Operation(s) performed on a file.
|
|
3052
|
+
*/
|
|
3053
|
+
export interface Schema$GoogleCloudSecuritycenterV2FileOperation {
|
|
3054
|
+
/**
|
|
3055
|
+
* The type of the operation
|
|
3056
|
+
*/
|
|
3057
|
+
type?: string | null;
|
|
3058
|
+
}
|
|
2898
3059
|
/**
|
|
2899
3060
|
* Security Command Center finding. A finding is a record of assessment data like security, risk, health, or privacy, that is ingested into Security Command Center for presentation, notification, analysis, policy testing, and enforcement. For example, a cross-site scripting (XSS) vulnerability in an App Engine application is a finding.
|
|
2900
3061
|
*/
|
|
@@ -2907,6 +3068,10 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
2907
3068
|
* AffectedResources associated with the finding.
|
|
2908
3069
|
*/
|
|
2909
3070
|
affectedResources?: Schema$GoogleCloudSecuritycenterV2AffectedResources;
|
|
3071
|
+
/**
|
|
3072
|
+
* The AI model associated with the finding.
|
|
3073
|
+
*/
|
|
3074
|
+
aiModel?: Schema$GoogleCloudSecuritycenterV2AiModel;
|
|
2910
3075
|
/**
|
|
2911
3076
|
* Represents an application associated with the finding.
|
|
2912
3077
|
*/
|
|
@@ -3076,7 +3241,7 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
3076
3241
|
*/
|
|
3077
3242
|
muteUpdateTime?: string | null;
|
|
3078
3243
|
/**
|
|
3079
|
-
* The [relative resource name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) of the finding. The following list shows some examples: + `organizations/{organization_id\}/sources/{source_id\}/findings/{finding_id\}` + `organizations/{organization_id\}/sources/{source_id\}/locations/{location_id\}/findings/{finding_id\}` + `folders/{folder_id\}/sources/{source_id\}/findings/{finding_id\}` + `folders/{folder_id\}/sources/{source_id\}/locations/{location_id\}/findings/{finding_id\}` + `projects/{project_id\}/sources/{source_id\}/findings/{finding_id\}` + `projects/{project_id\}/sources/{source_id\}/locations/{location_id\}/findings/{finding_id\}`
|
|
3244
|
+
* Identifier. The [relative resource name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) of the finding. The following list shows some examples: + `organizations/{organization_id\}/sources/{source_id\}/findings/{finding_id\}` + `organizations/{organization_id\}/sources/{source_id\}/locations/{location_id\}/findings/{finding_id\}` + `folders/{folder_id\}/sources/{source_id\}/findings/{finding_id\}` + `folders/{folder_id\}/sources/{source_id\}/locations/{location_id\}/findings/{finding_id\}` + `projects/{project_id\}/sources/{source_id\}/findings/{finding_id\}` + `projects/{project_id\}/sources/{source_id\}/locations/{location_id\}/findings/{finding_id\}`
|
|
3080
3245
|
*/
|
|
3081
3246
|
name?: string | null;
|
|
3082
3247
|
/**
|
|
@@ -3137,6 +3302,10 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
3137
3302
|
* Contains details about a group of security issues that, when the issues occur together, represent a greater risk than when the issues occur independently. A group of such issues is referred to as a toxic combination. This field cannot be updated. Its value is ignored in all update requests.
|
|
3138
3303
|
*/
|
|
3139
3304
|
toxicCombination?: Schema$GoogleCloudSecuritycenterV2ToxicCombination;
|
|
3305
|
+
/**
|
|
3306
|
+
* VertexAi associated with the finding.
|
|
3307
|
+
*/
|
|
3308
|
+
vertexAi?: Schema$GoogleCloudSecuritycenterV2VertexAi;
|
|
3140
3309
|
/**
|
|
3141
3310
|
* Represents vulnerability-specific fields like CVE and CVSS scores. CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)
|
|
3142
3311
|
*/
|
|
@@ -3858,6 +4027,19 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
3858
4027
|
*/
|
|
3859
4028
|
packageVersion?: string | null;
|
|
3860
4029
|
}
|
|
4030
|
+
/**
|
|
4031
|
+
* Vertex AI training pipeline associated with the finding.
|
|
4032
|
+
*/
|
|
4033
|
+
export interface Schema$GoogleCloudSecuritycenterV2Pipeline {
|
|
4034
|
+
/**
|
|
4035
|
+
* The user-defined display name of pipeline, e.g. plants-classification
|
|
4036
|
+
*/
|
|
4037
|
+
displayName?: string | null;
|
|
4038
|
+
/**
|
|
4039
|
+
* Resource name of the pipeline, e.g. projects/{project\}/locations/{location\}/trainingPipelines/5253428229225578496
|
|
4040
|
+
*/
|
|
4041
|
+
name?: string | null;
|
|
4042
|
+
}
|
|
3861
4043
|
/**
|
|
3862
4044
|
* A Kubernetes Pod.
|
|
3863
4045
|
*/
|
|
@@ -3953,6 +4135,10 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
3953
4135
|
* When the process represents the invocation of a script, `binary` provides information about the interpreter, while `script` provides information about the script file provided to the interpreter.
|
|
3954
4136
|
*/
|
|
3955
4137
|
script?: Schema$GoogleCloudSecuritycenterV2File;
|
|
4138
|
+
/**
|
|
4139
|
+
* The ID of the user that executed the process. E.g. If this is the root user this will always be 0.
|
|
4140
|
+
*/
|
|
4141
|
+
userId?: string | null;
|
|
3956
4142
|
}
|
|
3957
4143
|
/**
|
|
3958
4144
|
* Indicates what signature matched this process.
|
|
@@ -4336,6 +4522,19 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
4336
4522
|
*/
|
|
4337
4523
|
relatedFindings?: string[] | null;
|
|
4338
4524
|
}
|
|
4525
|
+
/**
|
|
4526
|
+
* Vertex AI-related information associated with the finding.
|
|
4527
|
+
*/
|
|
4528
|
+
export interface Schema$GoogleCloudSecuritycenterV2VertexAi {
|
|
4529
|
+
/**
|
|
4530
|
+
* Datasets associated with the finding.
|
|
4531
|
+
*/
|
|
4532
|
+
datasets?: Schema$GoogleCloudSecuritycenterV2Dataset[];
|
|
4533
|
+
/**
|
|
4534
|
+
* Pipelines associated with the finding.
|
|
4535
|
+
*/
|
|
4536
|
+
pipelines?: Schema$GoogleCloudSecuritycenterV2Pipeline[];
|
|
4537
|
+
}
|
|
4339
4538
|
/**
|
|
4340
4539
|
* Refers to common vulnerability fields e.g. cve, cvss, cwe etc.
|
|
4341
4540
|
*/
|
|
@@ -4755,6 +4954,19 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
4755
4954
|
*/
|
|
4756
4955
|
packageVersion?: string | null;
|
|
4757
4956
|
}
|
|
4957
|
+
/**
|
|
4958
|
+
* Vertex AI training pipeline associated with the finding.
|
|
4959
|
+
*/
|
|
4960
|
+
export interface Schema$Pipeline {
|
|
4961
|
+
/**
|
|
4962
|
+
* The user defined display name of pipeline, e.g. plants-classification
|
|
4963
|
+
*/
|
|
4964
|
+
displayName?: string | null;
|
|
4965
|
+
/**
|
|
4966
|
+
* Resource name of the pipeline, e.g. projects/{project\}/locations/{location\}/trainingPipelines/5253428229225578496
|
|
4967
|
+
*/
|
|
4968
|
+
name?: string | null;
|
|
4969
|
+
}
|
|
4758
4970
|
/**
|
|
4759
4971
|
* A Kubernetes Pod.
|
|
4760
4972
|
*/
|
|
@@ -4850,6 +5062,10 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
4850
5062
|
* When the process represents the invocation of a script, `binary` provides information about the interpreter, while `script` provides information about the script file provided to the interpreter.
|
|
4851
5063
|
*/
|
|
4852
5064
|
script?: Schema$File;
|
|
5065
|
+
/**
|
|
5066
|
+
* The ID of the user that executed the process. E.g. If this is the root user this will always be 0.
|
|
5067
|
+
*/
|
|
5068
|
+
userId?: string | null;
|
|
4853
5069
|
}
|
|
4854
5070
|
/**
|
|
4855
5071
|
* Indicates what signature matched this process.
|
|
@@ -5208,6 +5424,19 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5208
5424
|
*/
|
|
5209
5425
|
relatedFindings?: string[] | null;
|
|
5210
5426
|
}
|
|
5427
|
+
/**
|
|
5428
|
+
* Vertex AI-related information associated with the finding.
|
|
5429
|
+
*/
|
|
5430
|
+
export interface Schema$VertexAi {
|
|
5431
|
+
/**
|
|
5432
|
+
* Datasets associated with the finding.
|
|
5433
|
+
*/
|
|
5434
|
+
datasets?: Schema$Dataset[];
|
|
5435
|
+
/**
|
|
5436
|
+
* Pipelines associated with the finding.
|
|
5437
|
+
*/
|
|
5438
|
+
pipelines?: Schema$Pipeline[];
|
|
5439
|
+
}
|
|
5211
5440
|
/**
|
|
5212
5441
|
* Resource capturing the settings for the Virtual Machine Threat Detection service.
|
|
5213
5442
|
*/
|
|
@@ -5343,6 +5572,56 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5343
5572
|
constructor(context: APIRequestContext);
|
|
5344
5573
|
/**
|
|
5345
5574
|
* Get the ContainerThreatDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetContainerThreatDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateContainerThreatDetectionSettings for this purpose.
|
|
5575
|
+
* @example
|
|
5576
|
+
* ```js
|
|
5577
|
+
* // Before running the sample:
|
|
5578
|
+
* // - Enable the API at:
|
|
5579
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
5580
|
+
* // - Login into gcloud by running:
|
|
5581
|
+
* // ```sh
|
|
5582
|
+
* // $ gcloud auth application-default login
|
|
5583
|
+
* // ```
|
|
5584
|
+
* // - Install the npm module by running:
|
|
5585
|
+
* // ```sh
|
|
5586
|
+
* // $ npm install googleapis
|
|
5587
|
+
* // ```
|
|
5588
|
+
*
|
|
5589
|
+
* const {google} = require('googleapis');
|
|
5590
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
5591
|
+
*
|
|
5592
|
+
* async function main() {
|
|
5593
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5594
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5595
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
5596
|
+
* });
|
|
5597
|
+
*
|
|
5598
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5599
|
+
* const authClient = await auth.getClient();
|
|
5600
|
+
* google.options({auth: authClient});
|
|
5601
|
+
*
|
|
5602
|
+
* // Do the magic
|
|
5603
|
+
* const res = await securitycenter.folders.getContainerThreatDetectionSettings({
|
|
5604
|
+
* // Required. The name of the ContainerThreatDetectionSettings to retrieve. Formats: * organizations/{organization\}/containerThreatDetectionSettings * folders/{folder\}/containerThreatDetectionSettings * projects/{project\}/containerThreatDetectionSettings * projects/{project\}/locations/{location\}/clusters/{cluster\}/containerThreatDetectionSettings
|
|
5605
|
+
* name: 'folders/my-folder/containerThreatDetectionSettings',
|
|
5606
|
+
* });
|
|
5607
|
+
* console.log(res.data);
|
|
5608
|
+
*
|
|
5609
|
+
* // Example response
|
|
5610
|
+
* // {
|
|
5611
|
+
* // "modules": {},
|
|
5612
|
+
* // "name": "my_name",
|
|
5613
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
5614
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
5615
|
+
* // "updateTime": "my_updateTime"
|
|
5616
|
+
* // }
|
|
5617
|
+
* }
|
|
5618
|
+
*
|
|
5619
|
+
* main().catch(e => {
|
|
5620
|
+
* console.error(e);
|
|
5621
|
+
* throw e;
|
|
5622
|
+
* });
|
|
5623
|
+
*
|
|
5624
|
+
* ```
|
|
5346
5625
|
*
|
|
5347
5626
|
* @param params - Parameters for request
|
|
5348
5627
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5357,6 +5636,55 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5357
5636
|
getContainerThreatDetectionSettings(callback: BodyResponseCallback<Schema$ContainerThreatDetectionSettings>): void;
|
|
5358
5637
|
/**
|
|
5359
5638
|
* Get the EventThreatDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetEventThreatDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateEventThreatDetectionSettings for this purpose.
|
|
5639
|
+
* @example
|
|
5640
|
+
* ```js
|
|
5641
|
+
* // Before running the sample:
|
|
5642
|
+
* // - Enable the API at:
|
|
5643
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
5644
|
+
* // - Login into gcloud by running:
|
|
5645
|
+
* // ```sh
|
|
5646
|
+
* // $ gcloud auth application-default login
|
|
5647
|
+
* // ```
|
|
5648
|
+
* // - Install the npm module by running:
|
|
5649
|
+
* // ```sh
|
|
5650
|
+
* // $ npm install googleapis
|
|
5651
|
+
* // ```
|
|
5652
|
+
*
|
|
5653
|
+
* const {google} = require('googleapis');
|
|
5654
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
5655
|
+
*
|
|
5656
|
+
* async function main() {
|
|
5657
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5658
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5659
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
5660
|
+
* });
|
|
5661
|
+
*
|
|
5662
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5663
|
+
* const authClient = await auth.getClient();
|
|
5664
|
+
* google.options({auth: authClient});
|
|
5665
|
+
*
|
|
5666
|
+
* // Do the magic
|
|
5667
|
+
* const res = await securitycenter.folders.getEventThreatDetectionSettings({
|
|
5668
|
+
* // Required. The name of the EventThreatDetectionSettings to retrieve. Formats: * organizations/{organization\}/eventThreatDetectionSettings * folders/{folder\}/eventThreatDetectionSettings * projects/{project\}/eventThreatDetectionSettings
|
|
5669
|
+
* name: 'folders/my-folder/eventThreatDetectionSettings',
|
|
5670
|
+
* });
|
|
5671
|
+
* console.log(res.data);
|
|
5672
|
+
*
|
|
5673
|
+
* // Example response
|
|
5674
|
+
* // {
|
|
5675
|
+
* // "modules": {},
|
|
5676
|
+
* // "name": "my_name",
|
|
5677
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
5678
|
+
* // "updateTime": "my_updateTime"
|
|
5679
|
+
* // }
|
|
5680
|
+
* }
|
|
5681
|
+
*
|
|
5682
|
+
* main().catch(e => {
|
|
5683
|
+
* console.error(e);
|
|
5684
|
+
* throw e;
|
|
5685
|
+
* });
|
|
5686
|
+
*
|
|
5687
|
+
* ```
|
|
5360
5688
|
*
|
|
5361
5689
|
* @param params - Parameters for request
|
|
5362
5690
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5371,6 +5699,56 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5371
5699
|
getEventThreatDetectionSettings(callback: BodyResponseCallback<Schema$EventThreatDetectionSettings>): void;
|
|
5372
5700
|
/**
|
|
5373
5701
|
* Get the RapidVulnerabilityDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetRapidVulnerabilityDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateRapidVulnerabilityDetectionSettings for this purpose.
|
|
5702
|
+
* @example
|
|
5703
|
+
* ```js
|
|
5704
|
+
* // Before running the sample:
|
|
5705
|
+
* // - Enable the API at:
|
|
5706
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
5707
|
+
* // - Login into gcloud by running:
|
|
5708
|
+
* // ```sh
|
|
5709
|
+
* // $ gcloud auth application-default login
|
|
5710
|
+
* // ```
|
|
5711
|
+
* // - Install the npm module by running:
|
|
5712
|
+
* // ```sh
|
|
5713
|
+
* // $ npm install googleapis
|
|
5714
|
+
* // ```
|
|
5715
|
+
*
|
|
5716
|
+
* const {google} = require('googleapis');
|
|
5717
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
5718
|
+
*
|
|
5719
|
+
* async function main() {
|
|
5720
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5721
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5722
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
5723
|
+
* });
|
|
5724
|
+
*
|
|
5725
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5726
|
+
* const authClient = await auth.getClient();
|
|
5727
|
+
* google.options({auth: authClient});
|
|
5728
|
+
*
|
|
5729
|
+
* // Do the magic
|
|
5730
|
+
* const res =
|
|
5731
|
+
* await securitycenter.folders.getRapidVulnerabilityDetectionSettings({
|
|
5732
|
+
* // Required. The name of the RapidVulnerabilityDetectionSettings to retrieve. Formats: * organizations/{organization\}/rapidVulnerabilityDetectionSettings * folders/{folder\}/rapidVulnerabilityDetectionSettings * projects/{project\}/rapidVulnerabilityDetectionSettings
|
|
5733
|
+
* name: 'folders/my-folder/rapidVulnerabilityDetectionSettings',
|
|
5734
|
+
* });
|
|
5735
|
+
* console.log(res.data);
|
|
5736
|
+
*
|
|
5737
|
+
* // Example response
|
|
5738
|
+
* // {
|
|
5739
|
+
* // "modules": {},
|
|
5740
|
+
* // "name": "my_name",
|
|
5741
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
5742
|
+
* // "updateTime": "my_updateTime"
|
|
5743
|
+
* // }
|
|
5744
|
+
* }
|
|
5745
|
+
*
|
|
5746
|
+
* main().catch(e => {
|
|
5747
|
+
* console.error(e);
|
|
5748
|
+
* throw e;
|
|
5749
|
+
* });
|
|
5750
|
+
*
|
|
5751
|
+
* ```
|
|
5374
5752
|
*
|
|
5375
5753
|
* @param params - Parameters for request
|
|
5376
5754
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5385,6 +5763,55 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5385
5763
|
getRapidVulnerabilityDetectionSettings(callback: BodyResponseCallback<Schema$RapidVulnerabilityDetectionSettings>): void;
|
|
5386
5764
|
/**
|
|
5387
5765
|
* Get the SecurityCenterSettings resource.
|
|
5766
|
+
* @example
|
|
5767
|
+
* ```js
|
|
5768
|
+
* // Before running the sample:
|
|
5769
|
+
* // - Enable the API at:
|
|
5770
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
5771
|
+
* // - Login into gcloud by running:
|
|
5772
|
+
* // ```sh
|
|
5773
|
+
* // $ gcloud auth application-default login
|
|
5774
|
+
* // ```
|
|
5775
|
+
* // - Install the npm module by running:
|
|
5776
|
+
* // ```sh
|
|
5777
|
+
* // $ npm install googleapis
|
|
5778
|
+
* // ```
|
|
5779
|
+
*
|
|
5780
|
+
* const {google} = require('googleapis');
|
|
5781
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
5782
|
+
*
|
|
5783
|
+
* async function main() {
|
|
5784
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5785
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5786
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
5787
|
+
* });
|
|
5788
|
+
*
|
|
5789
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5790
|
+
* const authClient = await auth.getClient();
|
|
5791
|
+
* google.options({auth: authClient});
|
|
5792
|
+
*
|
|
5793
|
+
* // Do the magic
|
|
5794
|
+
* const res = await securitycenter.folders.getSecurityCenterSettings({
|
|
5795
|
+
* // Required. The name of the SecurityCenterSettings to retrieve. Format: organizations/{organization\}/securityCenterSettings Format: folders/{folder\}/securityCenterSettings Format: projects/{project\}/securityCenterSettings
|
|
5796
|
+
* name: 'folders/my-folder/securityCenterSettings',
|
|
5797
|
+
* });
|
|
5798
|
+
* console.log(res.data);
|
|
5799
|
+
*
|
|
5800
|
+
* // Example response
|
|
5801
|
+
* // {
|
|
5802
|
+
* // "logSinkProject": "my_logSinkProject",
|
|
5803
|
+
* // "name": "my_name",
|
|
5804
|
+
* // "onboardingTime": "my_onboardingTime",
|
|
5805
|
+
* // "orgServiceAccount": "my_orgServiceAccount"
|
|
5806
|
+
* // }
|
|
5807
|
+
* }
|
|
5808
|
+
*
|
|
5809
|
+
* main().catch(e => {
|
|
5810
|
+
* console.error(e);
|
|
5811
|
+
* throw e;
|
|
5812
|
+
* });
|
|
5813
|
+
*
|
|
5814
|
+
* ```
|
|
5388
5815
|
*
|
|
5389
5816
|
* @param params - Parameters for request
|
|
5390
5817
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5399,6 +5826,56 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5399
5826
|
getSecurityCenterSettings(callback: BodyResponseCallback<Schema$SecurityCenterSettings>): void;
|
|
5400
5827
|
/**
|
|
5401
5828
|
* Get the SecurityHealthAnalyticsSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetSecurityHealthAnalyticsSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateSecurityHealthAnalyticsSettings for this purpose.
|
|
5829
|
+
* @example
|
|
5830
|
+
* ```js
|
|
5831
|
+
* // Before running the sample:
|
|
5832
|
+
* // - Enable the API at:
|
|
5833
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
5834
|
+
* // - Login into gcloud by running:
|
|
5835
|
+
* // ```sh
|
|
5836
|
+
* // $ gcloud auth application-default login
|
|
5837
|
+
* // ```
|
|
5838
|
+
* // - Install the npm module by running:
|
|
5839
|
+
* // ```sh
|
|
5840
|
+
* // $ npm install googleapis
|
|
5841
|
+
* // ```
|
|
5842
|
+
*
|
|
5843
|
+
* const {google} = require('googleapis');
|
|
5844
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
5845
|
+
*
|
|
5846
|
+
* async function main() {
|
|
5847
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5848
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5849
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
5850
|
+
* });
|
|
5851
|
+
*
|
|
5852
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5853
|
+
* const authClient = await auth.getClient();
|
|
5854
|
+
* google.options({auth: authClient});
|
|
5855
|
+
*
|
|
5856
|
+
* // Do the magic
|
|
5857
|
+
* const res = await securitycenter.folders.getSecurityHealthAnalyticsSettings({
|
|
5858
|
+
* // Required. The name of the SecurityHealthAnalyticsSettings to retrieve. Formats: * organizations/{organization\}/securityHealthAnalyticsSettings * folders/{folder\}/securityHealthAnalyticsSettings * projects/{project\}/securityHealthAnalyticsSettings
|
|
5859
|
+
* name: 'folders/my-folder/securityHealthAnalyticsSettings',
|
|
5860
|
+
* });
|
|
5861
|
+
* console.log(res.data);
|
|
5862
|
+
*
|
|
5863
|
+
* // Example response
|
|
5864
|
+
* // {
|
|
5865
|
+
* // "modules": {},
|
|
5866
|
+
* // "name": "my_name",
|
|
5867
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
5868
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
5869
|
+
* // "updateTime": "my_updateTime"
|
|
5870
|
+
* // }
|
|
5871
|
+
* }
|
|
5872
|
+
*
|
|
5873
|
+
* main().catch(e => {
|
|
5874
|
+
* console.error(e);
|
|
5875
|
+
* throw e;
|
|
5876
|
+
* });
|
|
5877
|
+
*
|
|
5878
|
+
* ```
|
|
5402
5879
|
*
|
|
5403
5880
|
* @param params - Parameters for request
|
|
5404
5881
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5413,6 +5890,57 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5413
5890
|
getSecurityHealthAnalyticsSettings(callback: BodyResponseCallback<Schema$SecurityHealthAnalyticsSettings>): void;
|
|
5414
5891
|
/**
|
|
5415
5892
|
* Get the VirtualMachineThreatDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetVirtualMachineThreatDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateVirtualMachineThreatDetectionSettings for this purpose.
|
|
5893
|
+
* @example
|
|
5894
|
+
* ```js
|
|
5895
|
+
* // Before running the sample:
|
|
5896
|
+
* // - Enable the API at:
|
|
5897
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
5898
|
+
* // - Login into gcloud by running:
|
|
5899
|
+
* // ```sh
|
|
5900
|
+
* // $ gcloud auth application-default login
|
|
5901
|
+
* // ```
|
|
5902
|
+
* // - Install the npm module by running:
|
|
5903
|
+
* // ```sh
|
|
5904
|
+
* // $ npm install googleapis
|
|
5905
|
+
* // ```
|
|
5906
|
+
*
|
|
5907
|
+
* const {google} = require('googleapis');
|
|
5908
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
5909
|
+
*
|
|
5910
|
+
* async function main() {
|
|
5911
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5912
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5913
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
5914
|
+
* });
|
|
5915
|
+
*
|
|
5916
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5917
|
+
* const authClient = await auth.getClient();
|
|
5918
|
+
* google.options({auth: authClient});
|
|
5919
|
+
*
|
|
5920
|
+
* // Do the magic
|
|
5921
|
+
* const res =
|
|
5922
|
+
* await securitycenter.folders.getVirtualMachineThreatDetectionSettings({
|
|
5923
|
+
* // Required. The name of the VirtualMachineThreatDetectionSettings to retrieve. Formats: * organizations/{organization\}/virtualMachineThreatDetectionSettings * folders/{folder\}/virtualMachineThreatDetectionSettings * projects/{project\}/virtualMachineThreatDetectionSettings
|
|
5924
|
+
* name: 'folders/my-folder/virtualMachineThreatDetectionSettings',
|
|
5925
|
+
* });
|
|
5926
|
+
* console.log(res.data);
|
|
5927
|
+
*
|
|
5928
|
+
* // Example response
|
|
5929
|
+
* // {
|
|
5930
|
+
* // "modules": {},
|
|
5931
|
+
* // "name": "my_name",
|
|
5932
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
5933
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
5934
|
+
* // "updateTime": "my_updateTime"
|
|
5935
|
+
* // }
|
|
5936
|
+
* }
|
|
5937
|
+
*
|
|
5938
|
+
* main().catch(e => {
|
|
5939
|
+
* console.error(e);
|
|
5940
|
+
* throw e;
|
|
5941
|
+
* });
|
|
5942
|
+
*
|
|
5943
|
+
* ```
|
|
5416
5944
|
*
|
|
5417
5945
|
* @param params - Parameters for request
|
|
5418
5946
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5427,6 +5955,55 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5427
5955
|
getVirtualMachineThreatDetectionSettings(callback: BodyResponseCallback<Schema$VirtualMachineThreatDetectionSettings>): void;
|
|
5428
5956
|
/**
|
|
5429
5957
|
* Get the WebSecurityScannerSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetWebSecurityScannerSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateWebSecurityScannerSettings for this purpose.
|
|
5958
|
+
* @example
|
|
5959
|
+
* ```js
|
|
5960
|
+
* // Before running the sample:
|
|
5961
|
+
* // - Enable the API at:
|
|
5962
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
5963
|
+
* // - Login into gcloud by running:
|
|
5964
|
+
* // ```sh
|
|
5965
|
+
* // $ gcloud auth application-default login
|
|
5966
|
+
* // ```
|
|
5967
|
+
* // - Install the npm module by running:
|
|
5968
|
+
* // ```sh
|
|
5969
|
+
* // $ npm install googleapis
|
|
5970
|
+
* // ```
|
|
5971
|
+
*
|
|
5972
|
+
* const {google} = require('googleapis');
|
|
5973
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
5974
|
+
*
|
|
5975
|
+
* async function main() {
|
|
5976
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5977
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5978
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
5979
|
+
* });
|
|
5980
|
+
*
|
|
5981
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5982
|
+
* const authClient = await auth.getClient();
|
|
5983
|
+
* google.options({auth: authClient});
|
|
5984
|
+
*
|
|
5985
|
+
* // Do the magic
|
|
5986
|
+
* const res = await securitycenter.folders.getWebSecurityScannerSettings({
|
|
5987
|
+
* // Required. The name of the WebSecurityScannerSettings to retrieve. Formats: * organizations/{organization\}/webSecurityScannerSettings * folders/{folder\}/webSecurityScannerSettings * projects/{project\}/webSecurityScannerSettings
|
|
5988
|
+
* name: 'folders/my-folder/webSecurityScannerSettings',
|
|
5989
|
+
* });
|
|
5990
|
+
* console.log(res.data);
|
|
5991
|
+
*
|
|
5992
|
+
* // Example response
|
|
5993
|
+
* // {
|
|
5994
|
+
* // "modules": {},
|
|
5995
|
+
* // "name": "my_name",
|
|
5996
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
5997
|
+
* // "updateTime": "my_updateTime"
|
|
5998
|
+
* // }
|
|
5999
|
+
* }
|
|
6000
|
+
*
|
|
6001
|
+
* main().catch(e => {
|
|
6002
|
+
* console.error(e);
|
|
6003
|
+
* throw e;
|
|
6004
|
+
* });
|
|
6005
|
+
*
|
|
6006
|
+
* ```
|
|
5430
6007
|
*
|
|
5431
6008
|
* @param params - Parameters for request
|
|
5432
6009
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5441,6 +6018,71 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5441
6018
|
getWebSecurityScannerSettings(callback: BodyResponseCallback<Schema$WebSecurityScannerSettings>): void;
|
|
5442
6019
|
/**
|
|
5443
6020
|
* Update the ContainerThreatDetectionSettings resource.
|
|
6021
|
+
* @example
|
|
6022
|
+
* ```js
|
|
6023
|
+
* // Before running the sample:
|
|
6024
|
+
* // - Enable the API at:
|
|
6025
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
6026
|
+
* // - Login into gcloud by running:
|
|
6027
|
+
* // ```sh
|
|
6028
|
+
* // $ gcloud auth application-default login
|
|
6029
|
+
* // ```
|
|
6030
|
+
* // - Install the npm module by running:
|
|
6031
|
+
* // ```sh
|
|
6032
|
+
* // $ npm install googleapis
|
|
6033
|
+
* // ```
|
|
6034
|
+
*
|
|
6035
|
+
* const {google} = require('googleapis');
|
|
6036
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
6037
|
+
*
|
|
6038
|
+
* async function main() {
|
|
6039
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6040
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6041
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
6042
|
+
* });
|
|
6043
|
+
*
|
|
6044
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6045
|
+
* const authClient = await auth.getClient();
|
|
6046
|
+
* google.options({auth: authClient});
|
|
6047
|
+
*
|
|
6048
|
+
* // Do the magic
|
|
6049
|
+
* const res =
|
|
6050
|
+
* await securitycenter.folders.updateContainerThreatDetectionSettings({
|
|
6051
|
+
* // Identifier. The resource name of the ContainerThreatDetectionSettings. Formats: * organizations/{organization\}/containerThreatDetectionSettings * folders/{folder\}/containerThreatDetectionSettings * projects/{project\}/containerThreatDetectionSettings * projects/{project\}/locations/{location\}/clusters/{cluster\}/containerThreatDetectionSettings
|
|
6052
|
+
* name: 'folders/my-folder/containerThreatDetectionSettings',
|
|
6053
|
+
* // The list of fields to be updated.
|
|
6054
|
+
* updateMask: 'placeholder-value',
|
|
6055
|
+
*
|
|
6056
|
+
* // Request body metadata
|
|
6057
|
+
* requestBody: {
|
|
6058
|
+
* // request body parameters
|
|
6059
|
+
* // {
|
|
6060
|
+
* // "modules": {},
|
|
6061
|
+
* // "name": "my_name",
|
|
6062
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
6063
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
6064
|
+
* // "updateTime": "my_updateTime"
|
|
6065
|
+
* // }
|
|
6066
|
+
* },
|
|
6067
|
+
* });
|
|
6068
|
+
* console.log(res.data);
|
|
6069
|
+
*
|
|
6070
|
+
* // Example response
|
|
6071
|
+
* // {
|
|
6072
|
+
* // "modules": {},
|
|
6073
|
+
* // "name": "my_name",
|
|
6074
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
6075
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
6076
|
+
* // "updateTime": "my_updateTime"
|
|
6077
|
+
* // }
|
|
6078
|
+
* }
|
|
6079
|
+
*
|
|
6080
|
+
* main().catch(e => {
|
|
6081
|
+
* console.error(e);
|
|
6082
|
+
* throw e;
|
|
6083
|
+
* });
|
|
6084
|
+
*
|
|
6085
|
+
* ```
|
|
5444
6086
|
*
|
|
5445
6087
|
* @param params - Parameters for request
|
|
5446
6088
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5455,6 +6097,68 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5455
6097
|
updateContainerThreatDetectionSettings(callback: BodyResponseCallback<Schema$ContainerThreatDetectionSettings>): void;
|
|
5456
6098
|
/**
|
|
5457
6099
|
* Update the EventThreatDetectionSettings resource.
|
|
6100
|
+
* @example
|
|
6101
|
+
* ```js
|
|
6102
|
+
* // Before running the sample:
|
|
6103
|
+
* // - Enable the API at:
|
|
6104
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
6105
|
+
* // - Login into gcloud by running:
|
|
6106
|
+
* // ```sh
|
|
6107
|
+
* // $ gcloud auth application-default login
|
|
6108
|
+
* // ```
|
|
6109
|
+
* // - Install the npm module by running:
|
|
6110
|
+
* // ```sh
|
|
6111
|
+
* // $ npm install googleapis
|
|
6112
|
+
* // ```
|
|
6113
|
+
*
|
|
6114
|
+
* const {google} = require('googleapis');
|
|
6115
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
6116
|
+
*
|
|
6117
|
+
* async function main() {
|
|
6118
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6119
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6120
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
6121
|
+
* });
|
|
6122
|
+
*
|
|
6123
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6124
|
+
* const authClient = await auth.getClient();
|
|
6125
|
+
* google.options({auth: authClient});
|
|
6126
|
+
*
|
|
6127
|
+
* // Do the magic
|
|
6128
|
+
* const res = await securitycenter.folders.updateEventThreatDetectionSettings({
|
|
6129
|
+
* // Identifier. The resource name of the EventThreatDetectionSettings. Formats: * organizations/{organization\}/eventThreatDetectionSettings * folders/{folder\}/eventThreatDetectionSettings * projects/{project\}/eventThreatDetectionSettings
|
|
6130
|
+
* name: 'folders/my-folder/eventThreatDetectionSettings',
|
|
6131
|
+
* // The list of fields to be updated.
|
|
6132
|
+
* updateMask: 'placeholder-value',
|
|
6133
|
+
*
|
|
6134
|
+
* // Request body metadata
|
|
6135
|
+
* requestBody: {
|
|
6136
|
+
* // request body parameters
|
|
6137
|
+
* // {
|
|
6138
|
+
* // "modules": {},
|
|
6139
|
+
* // "name": "my_name",
|
|
6140
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
6141
|
+
* // "updateTime": "my_updateTime"
|
|
6142
|
+
* // }
|
|
6143
|
+
* },
|
|
6144
|
+
* });
|
|
6145
|
+
* console.log(res.data);
|
|
6146
|
+
*
|
|
6147
|
+
* // Example response
|
|
6148
|
+
* // {
|
|
6149
|
+
* // "modules": {},
|
|
6150
|
+
* // "name": "my_name",
|
|
6151
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
6152
|
+
* // "updateTime": "my_updateTime"
|
|
6153
|
+
* // }
|
|
6154
|
+
* }
|
|
6155
|
+
*
|
|
6156
|
+
* main().catch(e => {
|
|
6157
|
+
* console.error(e);
|
|
6158
|
+
* throw e;
|
|
6159
|
+
* });
|
|
6160
|
+
*
|
|
6161
|
+
* ```
|
|
5458
6162
|
*
|
|
5459
6163
|
* @param params - Parameters for request
|
|
5460
6164
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5469,6 +6173,69 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5469
6173
|
updateEventThreatDetectionSettings(callback: BodyResponseCallback<Schema$EventThreatDetectionSettings>): void;
|
|
5470
6174
|
/**
|
|
5471
6175
|
* Update the RapidVulnerabilityDetectionSettings resource.
|
|
6176
|
+
* @example
|
|
6177
|
+
* ```js
|
|
6178
|
+
* // Before running the sample:
|
|
6179
|
+
* // - Enable the API at:
|
|
6180
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
6181
|
+
* // - Login into gcloud by running:
|
|
6182
|
+
* // ```sh
|
|
6183
|
+
* // $ gcloud auth application-default login
|
|
6184
|
+
* // ```
|
|
6185
|
+
* // - Install the npm module by running:
|
|
6186
|
+
* // ```sh
|
|
6187
|
+
* // $ npm install googleapis
|
|
6188
|
+
* // ```
|
|
6189
|
+
*
|
|
6190
|
+
* const {google} = require('googleapis');
|
|
6191
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
6192
|
+
*
|
|
6193
|
+
* async function main() {
|
|
6194
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6195
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6196
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
6197
|
+
* });
|
|
6198
|
+
*
|
|
6199
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6200
|
+
* const authClient = await auth.getClient();
|
|
6201
|
+
* google.options({auth: authClient});
|
|
6202
|
+
*
|
|
6203
|
+
* // Do the magic
|
|
6204
|
+
* const res =
|
|
6205
|
+
* await securitycenter.folders.updateRapidVulnerabilityDetectionSettings({
|
|
6206
|
+
* // The resource name of the RapidVulnerabilityDetectionSettings. Formats: * organizations/{organization\}/rapidVulnerabilityDetectionSettings * folders/{folder\}/rapidVulnerabilityDetectionSettings * projects/{project\}/rapidVulnerabilityDetectionSettings
|
|
6207
|
+
* name: 'folders/my-folder/rapidVulnerabilityDetectionSettings',
|
|
6208
|
+
* // The list of fields to be updated.
|
|
6209
|
+
* updateMask: 'placeholder-value',
|
|
6210
|
+
*
|
|
6211
|
+
* // Request body metadata
|
|
6212
|
+
* requestBody: {
|
|
6213
|
+
* // request body parameters
|
|
6214
|
+
* // {
|
|
6215
|
+
* // "modules": {},
|
|
6216
|
+
* // "name": "my_name",
|
|
6217
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
6218
|
+
* // "updateTime": "my_updateTime"
|
|
6219
|
+
* // }
|
|
6220
|
+
* },
|
|
6221
|
+
* });
|
|
6222
|
+
* console.log(res.data);
|
|
6223
|
+
*
|
|
6224
|
+
* // Example response
|
|
6225
|
+
* // {
|
|
6226
|
+
* // "modules": {},
|
|
6227
|
+
* // "name": "my_name",
|
|
6228
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
6229
|
+
* // "updateTime": "my_updateTime"
|
|
6230
|
+
* // }
|
|
6231
|
+
* }
|
|
6232
|
+
*
|
|
6233
|
+
* main().catch(e => {
|
|
6234
|
+
* console.error(e);
|
|
6235
|
+
* throw e;
|
|
6236
|
+
* });
|
|
6237
|
+
*
|
|
6238
|
+
* ```
|
|
5472
6239
|
*
|
|
5473
6240
|
* @param params - Parameters for request
|
|
5474
6241
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5483,6 +6250,71 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5483
6250
|
updateRapidVulnerabilityDetectionSettings(callback: BodyResponseCallback<Schema$RapidVulnerabilityDetectionSettings>): void;
|
|
5484
6251
|
/**
|
|
5485
6252
|
* Update the SecurityHealthAnalyticsSettings resource.
|
|
6253
|
+
* @example
|
|
6254
|
+
* ```js
|
|
6255
|
+
* // Before running the sample:
|
|
6256
|
+
* // - Enable the API at:
|
|
6257
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
6258
|
+
* // - Login into gcloud by running:
|
|
6259
|
+
* // ```sh
|
|
6260
|
+
* // $ gcloud auth application-default login
|
|
6261
|
+
* // ```
|
|
6262
|
+
* // - Install the npm module by running:
|
|
6263
|
+
* // ```sh
|
|
6264
|
+
* // $ npm install googleapis
|
|
6265
|
+
* // ```
|
|
6266
|
+
*
|
|
6267
|
+
* const {google} = require('googleapis');
|
|
6268
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
6269
|
+
*
|
|
6270
|
+
* async function main() {
|
|
6271
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6272
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6273
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
6274
|
+
* });
|
|
6275
|
+
*
|
|
6276
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6277
|
+
* const authClient = await auth.getClient();
|
|
6278
|
+
* google.options({auth: authClient});
|
|
6279
|
+
*
|
|
6280
|
+
* // Do the magic
|
|
6281
|
+
* const res =
|
|
6282
|
+
* await securitycenter.folders.updateSecurityHealthAnalyticsSettings({
|
|
6283
|
+
* // Identifier. The resource name of the SecurityHealthAnalyticsSettings. Formats: * organizations/{organization\}/securityHealthAnalyticsSettings * folders/{folder\}/securityHealthAnalyticsSettings * projects/{project\}/securityHealthAnalyticsSettings
|
|
6284
|
+
* name: 'folders/my-folder/securityHealthAnalyticsSettings',
|
|
6285
|
+
* // The list of fields to be updated.
|
|
6286
|
+
* updateMask: 'placeholder-value',
|
|
6287
|
+
*
|
|
6288
|
+
* // Request body metadata
|
|
6289
|
+
* requestBody: {
|
|
6290
|
+
* // request body parameters
|
|
6291
|
+
* // {
|
|
6292
|
+
* // "modules": {},
|
|
6293
|
+
* // "name": "my_name",
|
|
6294
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
6295
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
6296
|
+
* // "updateTime": "my_updateTime"
|
|
6297
|
+
* // }
|
|
6298
|
+
* },
|
|
6299
|
+
* });
|
|
6300
|
+
* console.log(res.data);
|
|
6301
|
+
*
|
|
6302
|
+
* // Example response
|
|
6303
|
+
* // {
|
|
6304
|
+
* // "modules": {},
|
|
6305
|
+
* // "name": "my_name",
|
|
6306
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
6307
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
6308
|
+
* // "updateTime": "my_updateTime"
|
|
6309
|
+
* // }
|
|
6310
|
+
* }
|
|
6311
|
+
*
|
|
6312
|
+
* main().catch(e => {
|
|
6313
|
+
* console.error(e);
|
|
6314
|
+
* throw e;
|
|
6315
|
+
* });
|
|
6316
|
+
*
|
|
6317
|
+
* ```
|
|
5486
6318
|
*
|
|
5487
6319
|
* @param params - Parameters for request
|
|
5488
6320
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5497,6 +6329,71 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5497
6329
|
updateSecurityHealthAnalyticsSettings(callback: BodyResponseCallback<Schema$SecurityHealthAnalyticsSettings>): void;
|
|
5498
6330
|
/**
|
|
5499
6331
|
* Update the VirtualMachineThreatDetectionSettings resource.
|
|
6332
|
+
* @example
|
|
6333
|
+
* ```js
|
|
6334
|
+
* // Before running the sample:
|
|
6335
|
+
* // - Enable the API at:
|
|
6336
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
6337
|
+
* // - Login into gcloud by running:
|
|
6338
|
+
* // ```sh
|
|
6339
|
+
* // $ gcloud auth application-default login
|
|
6340
|
+
* // ```
|
|
6341
|
+
* // - Install the npm module by running:
|
|
6342
|
+
* // ```sh
|
|
6343
|
+
* // $ npm install googleapis
|
|
6344
|
+
* // ```
|
|
6345
|
+
*
|
|
6346
|
+
* const {google} = require('googleapis');
|
|
6347
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
6348
|
+
*
|
|
6349
|
+
* async function main() {
|
|
6350
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6351
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6352
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
6353
|
+
* });
|
|
6354
|
+
*
|
|
6355
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6356
|
+
* const authClient = await auth.getClient();
|
|
6357
|
+
* google.options({auth: authClient});
|
|
6358
|
+
*
|
|
6359
|
+
* // Do the magic
|
|
6360
|
+
* const res =
|
|
6361
|
+
* await securitycenter.folders.updateVirtualMachineThreatDetectionSettings({
|
|
6362
|
+
* // Identifier. The resource name of the VirtualMachineThreatDetectionSettings. Formats: * organizations/{organization\}/virtualMachineThreatDetectionSettings * folders/{folder\}/virtualMachineThreatDetectionSettings * projects/{project\}/virtualMachineThreatDetectionSettings
|
|
6363
|
+
* name: 'folders/my-folder/virtualMachineThreatDetectionSettings',
|
|
6364
|
+
* // The list of fields to be updated.
|
|
6365
|
+
* updateMask: 'placeholder-value',
|
|
6366
|
+
*
|
|
6367
|
+
* // Request body metadata
|
|
6368
|
+
* requestBody: {
|
|
6369
|
+
* // request body parameters
|
|
6370
|
+
* // {
|
|
6371
|
+
* // "modules": {},
|
|
6372
|
+
* // "name": "my_name",
|
|
6373
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
6374
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
6375
|
+
* // "updateTime": "my_updateTime"
|
|
6376
|
+
* // }
|
|
6377
|
+
* },
|
|
6378
|
+
* });
|
|
6379
|
+
* console.log(res.data);
|
|
6380
|
+
*
|
|
6381
|
+
* // Example response
|
|
6382
|
+
* // {
|
|
6383
|
+
* // "modules": {},
|
|
6384
|
+
* // "name": "my_name",
|
|
6385
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
6386
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
6387
|
+
* // "updateTime": "my_updateTime"
|
|
6388
|
+
* // }
|
|
6389
|
+
* }
|
|
6390
|
+
*
|
|
6391
|
+
* main().catch(e => {
|
|
6392
|
+
* console.error(e);
|
|
6393
|
+
* throw e;
|
|
6394
|
+
* });
|
|
6395
|
+
*
|
|
6396
|
+
* ```
|
|
5500
6397
|
*
|
|
5501
6398
|
* @param params - Parameters for request
|
|
5502
6399
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5511,6 +6408,68 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5511
6408
|
updateVirtualMachineThreatDetectionSettings(callback: BodyResponseCallback<Schema$VirtualMachineThreatDetectionSettings>): void;
|
|
5512
6409
|
/**
|
|
5513
6410
|
* Update the WebSecurityScannerSettings resource.
|
|
6411
|
+
* @example
|
|
6412
|
+
* ```js
|
|
6413
|
+
* // Before running the sample:
|
|
6414
|
+
* // - Enable the API at:
|
|
6415
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
6416
|
+
* // - Login into gcloud by running:
|
|
6417
|
+
* // ```sh
|
|
6418
|
+
* // $ gcloud auth application-default login
|
|
6419
|
+
* // ```
|
|
6420
|
+
* // - Install the npm module by running:
|
|
6421
|
+
* // ```sh
|
|
6422
|
+
* // $ npm install googleapis
|
|
6423
|
+
* // ```
|
|
6424
|
+
*
|
|
6425
|
+
* const {google} = require('googleapis');
|
|
6426
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
6427
|
+
*
|
|
6428
|
+
* async function main() {
|
|
6429
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6430
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6431
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
6432
|
+
* });
|
|
6433
|
+
*
|
|
6434
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6435
|
+
* const authClient = await auth.getClient();
|
|
6436
|
+
* google.options({auth: authClient});
|
|
6437
|
+
*
|
|
6438
|
+
* // Do the magic
|
|
6439
|
+
* const res = await securitycenter.folders.updateWebSecurityScannerSettings({
|
|
6440
|
+
* // Identifier. The resource name of the WebSecurityScannerSettings. Formats: * organizations/{organization\}/webSecurityScannerSettings * folders/{folder\}/webSecurityScannerSettings * projects/{project\}/webSecurityScannerSettings
|
|
6441
|
+
* name: 'folders/my-folder/webSecurityScannerSettings',
|
|
6442
|
+
* // The list of fields to be updated.
|
|
6443
|
+
* updateMask: 'placeholder-value',
|
|
6444
|
+
*
|
|
6445
|
+
* // Request body metadata
|
|
6446
|
+
* requestBody: {
|
|
6447
|
+
* // request body parameters
|
|
6448
|
+
* // {
|
|
6449
|
+
* // "modules": {},
|
|
6450
|
+
* // "name": "my_name",
|
|
6451
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
6452
|
+
* // "updateTime": "my_updateTime"
|
|
6453
|
+
* // }
|
|
6454
|
+
* },
|
|
6455
|
+
* });
|
|
6456
|
+
* console.log(res.data);
|
|
6457
|
+
*
|
|
6458
|
+
* // Example response
|
|
6459
|
+
* // {
|
|
6460
|
+
* // "modules": {},
|
|
6461
|
+
* // "name": "my_name",
|
|
6462
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
6463
|
+
* // "updateTime": "my_updateTime"
|
|
6464
|
+
* // }
|
|
6465
|
+
* }
|
|
6466
|
+
*
|
|
6467
|
+
* main().catch(e => {
|
|
6468
|
+
* console.error(e);
|
|
6469
|
+
* throw e;
|
|
6470
|
+
* });
|
|
6471
|
+
*
|
|
6472
|
+
* ```
|
|
5514
6473
|
*
|
|
5515
6474
|
* @param params - Parameters for request
|
|
5516
6475
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5655,6 +6614,59 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5655
6614
|
constructor(context: APIRequestContext);
|
|
5656
6615
|
/**
|
|
5657
6616
|
* Calculates the effective ContainerThreatDetectionSettings based on its level in the resource hierarchy and its settings. Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings). The default SCC setting for the detector service defaults can be overridden at organization, folder and project levels. No assumptions should be made about the SCC defaults as it is considered an internal implementation detail.
|
|
6617
|
+
* @example
|
|
6618
|
+
* ```js
|
|
6619
|
+
* // Before running the sample:
|
|
6620
|
+
* // - Enable the API at:
|
|
6621
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
6622
|
+
* // - Login into gcloud by running:
|
|
6623
|
+
* // ```sh
|
|
6624
|
+
* // $ gcloud auth application-default login
|
|
6625
|
+
* // ```
|
|
6626
|
+
* // - Install the npm module by running:
|
|
6627
|
+
* // ```sh
|
|
6628
|
+
* // $ npm install googleapis
|
|
6629
|
+
* // ```
|
|
6630
|
+
*
|
|
6631
|
+
* const {google} = require('googleapis');
|
|
6632
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
6633
|
+
*
|
|
6634
|
+
* async function main() {
|
|
6635
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6636
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6637
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
6638
|
+
* });
|
|
6639
|
+
*
|
|
6640
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6641
|
+
* const authClient = await auth.getClient();
|
|
6642
|
+
* google.options({auth: authClient});
|
|
6643
|
+
*
|
|
6644
|
+
* // Do the magic
|
|
6645
|
+
* const res =
|
|
6646
|
+
* await securitycenter.folders.containerThreatDetectionSettings.calculate({
|
|
6647
|
+
* // Required. The name of the ContainerThreatDetectionSettings to calculate. Formats: * organizations/{organization\}/containerThreatDetectionSettings * folders/{folder\}/containerThreatDetectionSettings * projects/{project\}/containerThreatDetectionSettings * projects/{project\}/locations/{location\}/clusters/{cluster\}/containerThreatDetectionSettings
|
|
6648
|
+
* name: 'folders/my-folder/containerThreatDetectionSettings',
|
|
6649
|
+
* // Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.
|
|
6650
|
+
* showEligibleModulesOnly: 'placeholder-value',
|
|
6651
|
+
* });
|
|
6652
|
+
* console.log(res.data);
|
|
6653
|
+
*
|
|
6654
|
+
* // Example response
|
|
6655
|
+
* // {
|
|
6656
|
+
* // "modules": {},
|
|
6657
|
+
* // "name": "my_name",
|
|
6658
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
6659
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
6660
|
+
* // "updateTime": "my_updateTime"
|
|
6661
|
+
* // }
|
|
6662
|
+
* }
|
|
6663
|
+
*
|
|
6664
|
+
* main().catch(e => {
|
|
6665
|
+
* console.error(e);
|
|
6666
|
+
* throw e;
|
|
6667
|
+
* });
|
|
6668
|
+
*
|
|
6669
|
+
* ```
|
|
5658
6670
|
*
|
|
5659
6671
|
* @param params - Parameters for request
|
|
5660
6672
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5683,6 +6695,58 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5683
6695
|
constructor(context: APIRequestContext);
|
|
5684
6696
|
/**
|
|
5685
6697
|
* Calculates the effective EventThreatDetectionSettings based on its level in the resource hierarchy and its settings. Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings). The default SCC setting for the detector service defaults can be overridden at organization, folder and project levels. No assumptions should be made about the SCC defaults as it is considered an internal implementation detail.
|
|
6698
|
+
* @example
|
|
6699
|
+
* ```js
|
|
6700
|
+
* // Before running the sample:
|
|
6701
|
+
* // - Enable the API at:
|
|
6702
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
6703
|
+
* // - Login into gcloud by running:
|
|
6704
|
+
* // ```sh
|
|
6705
|
+
* // $ gcloud auth application-default login
|
|
6706
|
+
* // ```
|
|
6707
|
+
* // - Install the npm module by running:
|
|
6708
|
+
* // ```sh
|
|
6709
|
+
* // $ npm install googleapis
|
|
6710
|
+
* // ```
|
|
6711
|
+
*
|
|
6712
|
+
* const {google} = require('googleapis');
|
|
6713
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
6714
|
+
*
|
|
6715
|
+
* async function main() {
|
|
6716
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6717
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6718
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
6719
|
+
* });
|
|
6720
|
+
*
|
|
6721
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6722
|
+
* const authClient = await auth.getClient();
|
|
6723
|
+
* google.options({auth: authClient});
|
|
6724
|
+
*
|
|
6725
|
+
* // Do the magic
|
|
6726
|
+
* const res =
|
|
6727
|
+
* await securitycenter.folders.eventThreatDetectionSettings.calculate({
|
|
6728
|
+
* // Required. The name of the EventThreatDetectionSettings to calculate. Formats: * organizations/{organization\}/eventThreatDetectionSettings * folders/{folder\}/eventThreatDetectionSettings * projects/{project\}/eventThreatDetectionSettings
|
|
6729
|
+
* name: 'folders/my-folder/eventThreatDetectionSettings',
|
|
6730
|
+
* // Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.
|
|
6731
|
+
* showEligibleModulesOnly: 'placeholder-value',
|
|
6732
|
+
* });
|
|
6733
|
+
* console.log(res.data);
|
|
6734
|
+
*
|
|
6735
|
+
* // Example response
|
|
6736
|
+
* // {
|
|
6737
|
+
* // "modules": {},
|
|
6738
|
+
* // "name": "my_name",
|
|
6739
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
6740
|
+
* // "updateTime": "my_updateTime"
|
|
6741
|
+
* // }
|
|
6742
|
+
* }
|
|
6743
|
+
*
|
|
6744
|
+
* main().catch(e => {
|
|
6745
|
+
* console.error(e);
|
|
6746
|
+
* throw e;
|
|
6747
|
+
* });
|
|
6748
|
+
*
|
|
6749
|
+
* ```
|
|
5686
6750
|
*
|
|
5687
6751
|
* @param params - Parameters for request
|
|
5688
6752
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5711,12 +6775,62 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5711
6775
|
constructor(context: APIRequestContext);
|
|
5712
6776
|
/**
|
|
5713
6777
|
* Calculates the effective RapidVulnerabilityDetectionSettings based on its level in the resource hierarchy and its settings. Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings). The default SCC setting for the detector service defaults can be overridden at organization, folder and project levels. No assumptions should be made about the SCC defaults as it is considered an internal implementation detail.
|
|
6778
|
+
* @example
|
|
6779
|
+
* ```js
|
|
6780
|
+
* // Before running the sample:
|
|
6781
|
+
* // - Enable the API at:
|
|
6782
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
6783
|
+
* // - Login into gcloud by running:
|
|
6784
|
+
* // ```sh
|
|
6785
|
+
* // $ gcloud auth application-default login
|
|
6786
|
+
* // ```
|
|
6787
|
+
* // - Install the npm module by running:
|
|
6788
|
+
* // ```sh
|
|
6789
|
+
* // $ npm install googleapis
|
|
6790
|
+
* // ```
|
|
5714
6791
|
*
|
|
5715
|
-
*
|
|
5716
|
-
*
|
|
5717
|
-
*
|
|
5718
|
-
*
|
|
5719
|
-
|
|
6792
|
+
* const {google} = require('googleapis');
|
|
6793
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
6794
|
+
*
|
|
6795
|
+
* async function main() {
|
|
6796
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6797
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6798
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
6799
|
+
* });
|
|
6800
|
+
*
|
|
6801
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6802
|
+
* const authClient = await auth.getClient();
|
|
6803
|
+
* google.options({auth: authClient});
|
|
6804
|
+
*
|
|
6805
|
+
* // Do the magic
|
|
6806
|
+
* const res =
|
|
6807
|
+
* await securitycenter.folders.rapidVulnerabilityDetectionSettings.calculate({
|
|
6808
|
+
* // Required. The name of the RapidVulnerabilityDetectionSettings to calculate. Formats: * organizations/{organization\}/rapidVulnerabilityDetectionSettings * folders/{folder\}/rapidVulnerabilityDetectionSettings * projects/{project\}/rapidVulnerabilityDetectionSettings
|
|
6809
|
+
* name: 'folders/my-folder/rapidVulnerabilityDetectionSettings',
|
|
6810
|
+
* });
|
|
6811
|
+
* console.log(res.data);
|
|
6812
|
+
*
|
|
6813
|
+
* // Example response
|
|
6814
|
+
* // {
|
|
6815
|
+
* // "modules": {},
|
|
6816
|
+
* // "name": "my_name",
|
|
6817
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
6818
|
+
* // "updateTime": "my_updateTime"
|
|
6819
|
+
* // }
|
|
6820
|
+
* }
|
|
6821
|
+
*
|
|
6822
|
+
* main().catch(e => {
|
|
6823
|
+
* console.error(e);
|
|
6824
|
+
* throw e;
|
|
6825
|
+
* });
|
|
6826
|
+
*
|
|
6827
|
+
* ```
|
|
6828
|
+
*
|
|
6829
|
+
* @param params - Parameters for request
|
|
6830
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6831
|
+
* @param callback - Optional callback that handles the response.
|
|
6832
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6833
|
+
*/
|
|
5720
6834
|
calculate(params: Params$Resource$Folders$Rapidvulnerabilitydetectionsettings$Calculate, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5721
6835
|
calculate(params?: Params$Resource$Folders$Rapidvulnerabilitydetectionsettings$Calculate, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$RapidVulnerabilityDetectionSettings>>;
|
|
5722
6836
|
calculate(params: Params$Resource$Folders$Rapidvulnerabilitydetectionsettings$Calculate, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
@@ -5735,6 +6849,59 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5735
6849
|
constructor(context: APIRequestContext);
|
|
5736
6850
|
/**
|
|
5737
6851
|
* Calculates the effective SecurityHealthAnalyticsSettings based on its level in the resource hierarchy and its settings. Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings). The default SCC setting for the detector service defaults can be overridden at organization, folder and project levels. No assumptions should be made about the SCC defaults as it is considered an internal implementation detail.
|
|
6852
|
+
* @example
|
|
6853
|
+
* ```js
|
|
6854
|
+
* // Before running the sample:
|
|
6855
|
+
* // - Enable the API at:
|
|
6856
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
6857
|
+
* // - Login into gcloud by running:
|
|
6858
|
+
* // ```sh
|
|
6859
|
+
* // $ gcloud auth application-default login
|
|
6860
|
+
* // ```
|
|
6861
|
+
* // - Install the npm module by running:
|
|
6862
|
+
* // ```sh
|
|
6863
|
+
* // $ npm install googleapis
|
|
6864
|
+
* // ```
|
|
6865
|
+
*
|
|
6866
|
+
* const {google} = require('googleapis');
|
|
6867
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
6868
|
+
*
|
|
6869
|
+
* async function main() {
|
|
6870
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6871
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6872
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
6873
|
+
* });
|
|
6874
|
+
*
|
|
6875
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6876
|
+
* const authClient = await auth.getClient();
|
|
6877
|
+
* google.options({auth: authClient});
|
|
6878
|
+
*
|
|
6879
|
+
* // Do the magic
|
|
6880
|
+
* const res =
|
|
6881
|
+
* await securitycenter.folders.securityHealthAnalyticsSettings.calculate({
|
|
6882
|
+
* // Required. The name of the SecurityHealthAnalyticsSettings to calculate. Formats: * organizations/{organization\}/securityHealthAnalyticsSettings * folders/{folder\}/securityHealthAnalyticsSettings * projects/{project\}/securityHealthAnalyticsSettings
|
|
6883
|
+
* name: 'folders/my-folder/securityHealthAnalyticsSettings',
|
|
6884
|
+
* // Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.
|
|
6885
|
+
* showEligibleModulesOnly: 'placeholder-value',
|
|
6886
|
+
* });
|
|
6887
|
+
* console.log(res.data);
|
|
6888
|
+
*
|
|
6889
|
+
* // Example response
|
|
6890
|
+
* // {
|
|
6891
|
+
* // "modules": {},
|
|
6892
|
+
* // "name": "my_name",
|
|
6893
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
6894
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
6895
|
+
* // "updateTime": "my_updateTime"
|
|
6896
|
+
* // }
|
|
6897
|
+
* }
|
|
6898
|
+
*
|
|
6899
|
+
* main().catch(e => {
|
|
6900
|
+
* console.error(e);
|
|
6901
|
+
* throw e;
|
|
6902
|
+
* });
|
|
6903
|
+
*
|
|
6904
|
+
* ```
|
|
5738
6905
|
*
|
|
5739
6906
|
* @param params - Parameters for request
|
|
5740
6907
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5763,6 +6930,61 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5763
6930
|
constructor(context: APIRequestContext);
|
|
5764
6931
|
/**
|
|
5765
6932
|
* Calculates the effective VirtualMachineThreatDetectionSettings based on its level in the resource hierarchy and its settings. Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings). The default SCC setting for the detector service defaults can be overridden at organization, folder and project levels. No assumptions should be made about the SCC defaults as it is considered an internal implementation detail.
|
|
6933
|
+
* @example
|
|
6934
|
+
* ```js
|
|
6935
|
+
* // Before running the sample:
|
|
6936
|
+
* // - Enable the API at:
|
|
6937
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
6938
|
+
* // - Login into gcloud by running:
|
|
6939
|
+
* // ```sh
|
|
6940
|
+
* // $ gcloud auth application-default login
|
|
6941
|
+
* // ```
|
|
6942
|
+
* // - Install the npm module by running:
|
|
6943
|
+
* // ```sh
|
|
6944
|
+
* // $ npm install googleapis
|
|
6945
|
+
* // ```
|
|
6946
|
+
*
|
|
6947
|
+
* const {google} = require('googleapis');
|
|
6948
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
6949
|
+
*
|
|
6950
|
+
* async function main() {
|
|
6951
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6952
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6953
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
6954
|
+
* });
|
|
6955
|
+
*
|
|
6956
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6957
|
+
* const authClient = await auth.getClient();
|
|
6958
|
+
* google.options({auth: authClient});
|
|
6959
|
+
*
|
|
6960
|
+
* // Do the magic
|
|
6961
|
+
* const res =
|
|
6962
|
+
* await securitycenter.folders.virtualMachineThreatDetectionSettings.calculate(
|
|
6963
|
+
* {
|
|
6964
|
+
* // Required. The name of the VirtualMachineThreatDetectionSettings to calculate. Formats: * organizations/{organization\}/virtualMachineThreatDetectionSettings * folders/{folder\}/virtualMachineThreatDetectionSettings * projects/{project\}/virtualMachineThreatDetectionSettings
|
|
6965
|
+
* name: 'folders/my-folder/virtualMachineThreatDetectionSettings',
|
|
6966
|
+
* // Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.
|
|
6967
|
+
* showEligibleModulesOnly: 'placeholder-value',
|
|
6968
|
+
* },
|
|
6969
|
+
* );
|
|
6970
|
+
* console.log(res.data);
|
|
6971
|
+
*
|
|
6972
|
+
* // Example response
|
|
6973
|
+
* // {
|
|
6974
|
+
* // "modules": {},
|
|
6975
|
+
* // "name": "my_name",
|
|
6976
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
6977
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
6978
|
+
* // "updateTime": "my_updateTime"
|
|
6979
|
+
* // }
|
|
6980
|
+
* }
|
|
6981
|
+
*
|
|
6982
|
+
* main().catch(e => {
|
|
6983
|
+
* console.error(e);
|
|
6984
|
+
* throw e;
|
|
6985
|
+
* });
|
|
6986
|
+
*
|
|
6987
|
+
* ```
|
|
5766
6988
|
*
|
|
5767
6989
|
* @param params - Parameters for request
|
|
5768
6990
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5791,6 +7013,59 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5791
7013
|
constructor(context: APIRequestContext);
|
|
5792
7014
|
/**
|
|
5793
7015
|
* Calculates the effective WebSecurityScannerSettings based on its level in the resource hierarchy and its settings. Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings). The default SCC setting for the detector service defaults can be overridden at organization, folder and project levels. No assumptions should be made about the SCC defaults as it is considered an internal implementation detail.
|
|
7016
|
+
* @example
|
|
7017
|
+
* ```js
|
|
7018
|
+
* // Before running the sample:
|
|
7019
|
+
* // - Enable the API at:
|
|
7020
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
7021
|
+
* // - Login into gcloud by running:
|
|
7022
|
+
* // ```sh
|
|
7023
|
+
* // $ gcloud auth application-default login
|
|
7024
|
+
* // ```
|
|
7025
|
+
* // - Install the npm module by running:
|
|
7026
|
+
* // ```sh
|
|
7027
|
+
* // $ npm install googleapis
|
|
7028
|
+
* // ```
|
|
7029
|
+
*
|
|
7030
|
+
* const {google} = require('googleapis');
|
|
7031
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
7032
|
+
*
|
|
7033
|
+
* async function main() {
|
|
7034
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7035
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7036
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
7037
|
+
* });
|
|
7038
|
+
*
|
|
7039
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7040
|
+
* const authClient = await auth.getClient();
|
|
7041
|
+
* google.options({auth: authClient});
|
|
7042
|
+
*
|
|
7043
|
+
* // Do the magic
|
|
7044
|
+
* const res = await securitycenter.folders.webSecurityScannerSettings.calculate(
|
|
7045
|
+
* {
|
|
7046
|
+
* // Required. The name of the WebSecurityScannerSettings to calculate. Formats: * organizations/{organization\}/webSecurityScannerSettings * folders/{folder\}/webSecurityScannerSettings * projects/{project\}/webSecurityScannerSettings
|
|
7047
|
+
* name: 'folders/my-folder/webSecurityScannerSettings',
|
|
7048
|
+
* // Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.
|
|
7049
|
+
* showEligibleModulesOnly: 'placeholder-value',
|
|
7050
|
+
* },
|
|
7051
|
+
* );
|
|
7052
|
+
* console.log(res.data);
|
|
7053
|
+
*
|
|
7054
|
+
* // Example response
|
|
7055
|
+
* // {
|
|
7056
|
+
* // "modules": {},
|
|
7057
|
+
* // "name": "my_name",
|
|
7058
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
7059
|
+
* // "updateTime": "my_updateTime"
|
|
7060
|
+
* // }
|
|
7061
|
+
* }
|
|
7062
|
+
*
|
|
7063
|
+
* main().catch(e => {
|
|
7064
|
+
* console.error(e);
|
|
7065
|
+
* throw e;
|
|
7066
|
+
* });
|
|
7067
|
+
*
|
|
7068
|
+
* ```
|
|
5794
7069
|
*
|
|
5795
7070
|
* @param params - Parameters for request
|
|
5796
7071
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5825,6 +7100,57 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5825
7100
|
constructor(context: APIRequestContext);
|
|
5826
7101
|
/**
|
|
5827
7102
|
* Get the ContainerThreatDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetContainerThreatDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateContainerThreatDetectionSettings for this purpose.
|
|
7103
|
+
* @example
|
|
7104
|
+
* ```js
|
|
7105
|
+
* // Before running the sample:
|
|
7106
|
+
* // - Enable the API at:
|
|
7107
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
7108
|
+
* // - Login into gcloud by running:
|
|
7109
|
+
* // ```sh
|
|
7110
|
+
* // $ gcloud auth application-default login
|
|
7111
|
+
* // ```
|
|
7112
|
+
* // - Install the npm module by running:
|
|
7113
|
+
* // ```sh
|
|
7114
|
+
* // $ npm install googleapis
|
|
7115
|
+
* // ```
|
|
7116
|
+
*
|
|
7117
|
+
* const {google} = require('googleapis');
|
|
7118
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
7119
|
+
*
|
|
7120
|
+
* async function main() {
|
|
7121
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7122
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7123
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
7124
|
+
* });
|
|
7125
|
+
*
|
|
7126
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7127
|
+
* const authClient = await auth.getClient();
|
|
7128
|
+
* google.options({auth: authClient});
|
|
7129
|
+
*
|
|
7130
|
+
* // Do the magic
|
|
7131
|
+
* const res =
|
|
7132
|
+
* await securitycenter.organizations.getContainerThreatDetectionSettings({
|
|
7133
|
+
* // Required. The name of the ContainerThreatDetectionSettings to retrieve. Formats: * organizations/{organization\}/containerThreatDetectionSettings * folders/{folder\}/containerThreatDetectionSettings * projects/{project\}/containerThreatDetectionSettings * projects/{project\}/locations/{location\}/clusters/{cluster\}/containerThreatDetectionSettings
|
|
7134
|
+
* name: 'organizations/my-organization/containerThreatDetectionSettings',
|
|
7135
|
+
* });
|
|
7136
|
+
* console.log(res.data);
|
|
7137
|
+
*
|
|
7138
|
+
* // Example response
|
|
7139
|
+
* // {
|
|
7140
|
+
* // "modules": {},
|
|
7141
|
+
* // "name": "my_name",
|
|
7142
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
7143
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
7144
|
+
* // "updateTime": "my_updateTime"
|
|
7145
|
+
* // }
|
|
7146
|
+
* }
|
|
7147
|
+
*
|
|
7148
|
+
* main().catch(e => {
|
|
7149
|
+
* console.error(e);
|
|
7150
|
+
* throw e;
|
|
7151
|
+
* });
|
|
7152
|
+
*
|
|
7153
|
+
* ```
|
|
5828
7154
|
*
|
|
5829
7155
|
* @param params - Parameters for request
|
|
5830
7156
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5839,6 +7165,56 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5839
7165
|
getContainerThreatDetectionSettings(callback: BodyResponseCallback<Schema$ContainerThreatDetectionSettings>): void;
|
|
5840
7166
|
/**
|
|
5841
7167
|
* Get the EventThreatDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetEventThreatDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateEventThreatDetectionSettings for this purpose.
|
|
7168
|
+
* @example
|
|
7169
|
+
* ```js
|
|
7170
|
+
* // Before running the sample:
|
|
7171
|
+
* // - Enable the API at:
|
|
7172
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
7173
|
+
* // - Login into gcloud by running:
|
|
7174
|
+
* // ```sh
|
|
7175
|
+
* // $ gcloud auth application-default login
|
|
7176
|
+
* // ```
|
|
7177
|
+
* // - Install the npm module by running:
|
|
7178
|
+
* // ```sh
|
|
7179
|
+
* // $ npm install googleapis
|
|
7180
|
+
* // ```
|
|
7181
|
+
*
|
|
7182
|
+
* const {google} = require('googleapis');
|
|
7183
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
7184
|
+
*
|
|
7185
|
+
* async function main() {
|
|
7186
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7187
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7188
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
7189
|
+
* });
|
|
7190
|
+
*
|
|
7191
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7192
|
+
* const authClient = await auth.getClient();
|
|
7193
|
+
* google.options({auth: authClient});
|
|
7194
|
+
*
|
|
7195
|
+
* // Do the magic
|
|
7196
|
+
* const res =
|
|
7197
|
+
* await securitycenter.organizations.getEventThreatDetectionSettings({
|
|
7198
|
+
* // Required. The name of the EventThreatDetectionSettings to retrieve. Formats: * organizations/{organization\}/eventThreatDetectionSettings * folders/{folder\}/eventThreatDetectionSettings * projects/{project\}/eventThreatDetectionSettings
|
|
7199
|
+
* name: 'organizations/my-organization/eventThreatDetectionSettings',
|
|
7200
|
+
* });
|
|
7201
|
+
* console.log(res.data);
|
|
7202
|
+
*
|
|
7203
|
+
* // Example response
|
|
7204
|
+
* // {
|
|
7205
|
+
* // "modules": {},
|
|
7206
|
+
* // "name": "my_name",
|
|
7207
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
7208
|
+
* // "updateTime": "my_updateTime"
|
|
7209
|
+
* // }
|
|
7210
|
+
* }
|
|
7211
|
+
*
|
|
7212
|
+
* main().catch(e => {
|
|
7213
|
+
* console.error(e);
|
|
7214
|
+
* throw e;
|
|
7215
|
+
* });
|
|
7216
|
+
*
|
|
7217
|
+
* ```
|
|
5842
7218
|
*
|
|
5843
7219
|
* @param params - Parameters for request
|
|
5844
7220
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5853,6 +7229,56 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5853
7229
|
getEventThreatDetectionSettings(callback: BodyResponseCallback<Schema$EventThreatDetectionSettings>): void;
|
|
5854
7230
|
/**
|
|
5855
7231
|
* Get the RapidVulnerabilityDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetRapidVulnerabilityDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateRapidVulnerabilityDetectionSettings for this purpose.
|
|
7232
|
+
* @example
|
|
7233
|
+
* ```js
|
|
7234
|
+
* // Before running the sample:
|
|
7235
|
+
* // - Enable the API at:
|
|
7236
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
7237
|
+
* // - Login into gcloud by running:
|
|
7238
|
+
* // ```sh
|
|
7239
|
+
* // $ gcloud auth application-default login
|
|
7240
|
+
* // ```
|
|
7241
|
+
* // - Install the npm module by running:
|
|
7242
|
+
* // ```sh
|
|
7243
|
+
* // $ npm install googleapis
|
|
7244
|
+
* // ```
|
|
7245
|
+
*
|
|
7246
|
+
* const {google} = require('googleapis');
|
|
7247
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
7248
|
+
*
|
|
7249
|
+
* async function main() {
|
|
7250
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7251
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7252
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
7253
|
+
* });
|
|
7254
|
+
*
|
|
7255
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7256
|
+
* const authClient = await auth.getClient();
|
|
7257
|
+
* google.options({auth: authClient});
|
|
7258
|
+
*
|
|
7259
|
+
* // Do the magic
|
|
7260
|
+
* const res =
|
|
7261
|
+
* await securitycenter.organizations.getRapidVulnerabilityDetectionSettings({
|
|
7262
|
+
* // Required. The name of the RapidVulnerabilityDetectionSettings to retrieve. Formats: * organizations/{organization\}/rapidVulnerabilityDetectionSettings * folders/{folder\}/rapidVulnerabilityDetectionSettings * projects/{project\}/rapidVulnerabilityDetectionSettings
|
|
7263
|
+
* name: 'organizations/my-organization/rapidVulnerabilityDetectionSettings',
|
|
7264
|
+
* });
|
|
7265
|
+
* console.log(res.data);
|
|
7266
|
+
*
|
|
7267
|
+
* // Example response
|
|
7268
|
+
* // {
|
|
7269
|
+
* // "modules": {},
|
|
7270
|
+
* // "name": "my_name",
|
|
7271
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
7272
|
+
* // "updateTime": "my_updateTime"
|
|
7273
|
+
* // }
|
|
7274
|
+
* }
|
|
7275
|
+
*
|
|
7276
|
+
* main().catch(e => {
|
|
7277
|
+
* console.error(e);
|
|
7278
|
+
* throw e;
|
|
7279
|
+
* });
|
|
7280
|
+
*
|
|
7281
|
+
* ```
|
|
5856
7282
|
*
|
|
5857
7283
|
* @param params - Parameters for request
|
|
5858
7284
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5867,6 +7293,55 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5867
7293
|
getRapidVulnerabilityDetectionSettings(callback: BodyResponseCallback<Schema$RapidVulnerabilityDetectionSettings>): void;
|
|
5868
7294
|
/**
|
|
5869
7295
|
* Get the SecurityCenterSettings resource.
|
|
7296
|
+
* @example
|
|
7297
|
+
* ```js
|
|
7298
|
+
* // Before running the sample:
|
|
7299
|
+
* // - Enable the API at:
|
|
7300
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
7301
|
+
* // - Login into gcloud by running:
|
|
7302
|
+
* // ```sh
|
|
7303
|
+
* // $ gcloud auth application-default login
|
|
7304
|
+
* // ```
|
|
7305
|
+
* // - Install the npm module by running:
|
|
7306
|
+
* // ```sh
|
|
7307
|
+
* // $ npm install googleapis
|
|
7308
|
+
* // ```
|
|
7309
|
+
*
|
|
7310
|
+
* const {google} = require('googleapis');
|
|
7311
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
7312
|
+
*
|
|
7313
|
+
* async function main() {
|
|
7314
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7315
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7316
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
7317
|
+
* });
|
|
7318
|
+
*
|
|
7319
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7320
|
+
* const authClient = await auth.getClient();
|
|
7321
|
+
* google.options({auth: authClient});
|
|
7322
|
+
*
|
|
7323
|
+
* // Do the magic
|
|
7324
|
+
* const res = await securitycenter.organizations.getSecurityCenterSettings({
|
|
7325
|
+
* // Required. The name of the SecurityCenterSettings to retrieve. Format: organizations/{organization\}/securityCenterSettings Format: folders/{folder\}/securityCenterSettings Format: projects/{project\}/securityCenterSettings
|
|
7326
|
+
* name: 'organizations/my-organization/securityCenterSettings',
|
|
7327
|
+
* });
|
|
7328
|
+
* console.log(res.data);
|
|
7329
|
+
*
|
|
7330
|
+
* // Example response
|
|
7331
|
+
* // {
|
|
7332
|
+
* // "logSinkProject": "my_logSinkProject",
|
|
7333
|
+
* // "name": "my_name",
|
|
7334
|
+
* // "onboardingTime": "my_onboardingTime",
|
|
7335
|
+
* // "orgServiceAccount": "my_orgServiceAccount"
|
|
7336
|
+
* // }
|
|
7337
|
+
* }
|
|
7338
|
+
*
|
|
7339
|
+
* main().catch(e => {
|
|
7340
|
+
* console.error(e);
|
|
7341
|
+
* throw e;
|
|
7342
|
+
* });
|
|
7343
|
+
*
|
|
7344
|
+
* ```
|
|
5870
7345
|
*
|
|
5871
7346
|
* @param params - Parameters for request
|
|
5872
7347
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5881,6 +7356,57 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5881
7356
|
getSecurityCenterSettings(callback: BodyResponseCallback<Schema$SecurityCenterSettings>): void;
|
|
5882
7357
|
/**
|
|
5883
7358
|
* Get the SecurityHealthAnalyticsSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetSecurityHealthAnalyticsSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateSecurityHealthAnalyticsSettings for this purpose.
|
|
7359
|
+
* @example
|
|
7360
|
+
* ```js
|
|
7361
|
+
* // Before running the sample:
|
|
7362
|
+
* // - Enable the API at:
|
|
7363
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
7364
|
+
* // - Login into gcloud by running:
|
|
7365
|
+
* // ```sh
|
|
7366
|
+
* // $ gcloud auth application-default login
|
|
7367
|
+
* // ```
|
|
7368
|
+
* // - Install the npm module by running:
|
|
7369
|
+
* // ```sh
|
|
7370
|
+
* // $ npm install googleapis
|
|
7371
|
+
* // ```
|
|
7372
|
+
*
|
|
7373
|
+
* const {google} = require('googleapis');
|
|
7374
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
7375
|
+
*
|
|
7376
|
+
* async function main() {
|
|
7377
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7378
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7379
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
7380
|
+
* });
|
|
7381
|
+
*
|
|
7382
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7383
|
+
* const authClient = await auth.getClient();
|
|
7384
|
+
* google.options({auth: authClient});
|
|
7385
|
+
*
|
|
7386
|
+
* // Do the magic
|
|
7387
|
+
* const res =
|
|
7388
|
+
* await securitycenter.organizations.getSecurityHealthAnalyticsSettings({
|
|
7389
|
+
* // Required. The name of the SecurityHealthAnalyticsSettings to retrieve. Formats: * organizations/{organization\}/securityHealthAnalyticsSettings * folders/{folder\}/securityHealthAnalyticsSettings * projects/{project\}/securityHealthAnalyticsSettings
|
|
7390
|
+
* name: 'organizations/my-organization/securityHealthAnalyticsSettings',
|
|
7391
|
+
* });
|
|
7392
|
+
* console.log(res.data);
|
|
7393
|
+
*
|
|
7394
|
+
* // Example response
|
|
7395
|
+
* // {
|
|
7396
|
+
* // "modules": {},
|
|
7397
|
+
* // "name": "my_name",
|
|
7398
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
7399
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
7400
|
+
* // "updateTime": "my_updateTime"
|
|
7401
|
+
* // }
|
|
7402
|
+
* }
|
|
7403
|
+
*
|
|
7404
|
+
* main().catch(e => {
|
|
7405
|
+
* console.error(e);
|
|
7406
|
+
* throw e;
|
|
7407
|
+
* });
|
|
7408
|
+
*
|
|
7409
|
+
* ```
|
|
5884
7410
|
*
|
|
5885
7411
|
* @param params - Parameters for request
|
|
5886
7412
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5895,6 +7421,54 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5895
7421
|
getSecurityHealthAnalyticsSettings(callback: BodyResponseCallback<Schema$SecurityHealthAnalyticsSettings>): void;
|
|
5896
7422
|
/**
|
|
5897
7423
|
* Get the Subscription resource.
|
|
7424
|
+
* @example
|
|
7425
|
+
* ```js
|
|
7426
|
+
* // Before running the sample:
|
|
7427
|
+
* // - Enable the API at:
|
|
7428
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
7429
|
+
* // - Login into gcloud by running:
|
|
7430
|
+
* // ```sh
|
|
7431
|
+
* // $ gcloud auth application-default login
|
|
7432
|
+
* // ```
|
|
7433
|
+
* // - Install the npm module by running:
|
|
7434
|
+
* // ```sh
|
|
7435
|
+
* // $ npm install googleapis
|
|
7436
|
+
* // ```
|
|
7437
|
+
*
|
|
7438
|
+
* const {google} = require('googleapis');
|
|
7439
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
7440
|
+
*
|
|
7441
|
+
* async function main() {
|
|
7442
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7443
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7444
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
7445
|
+
* });
|
|
7446
|
+
*
|
|
7447
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7448
|
+
* const authClient = await auth.getClient();
|
|
7449
|
+
* google.options({auth: authClient});
|
|
7450
|
+
*
|
|
7451
|
+
* // Do the magic
|
|
7452
|
+
* const res = await securitycenter.organizations.getSubscription({
|
|
7453
|
+
* // Required. The name of the subscription to retrieve. Format: organizations/{organization\}/subscription
|
|
7454
|
+
* name: 'organizations/my-organization/subscription',
|
|
7455
|
+
* });
|
|
7456
|
+
* console.log(res.data);
|
|
7457
|
+
*
|
|
7458
|
+
* // Example response
|
|
7459
|
+
* // {
|
|
7460
|
+
* // "details": {},
|
|
7461
|
+
* // "name": "my_name",
|
|
7462
|
+
* // "tier": "my_tier"
|
|
7463
|
+
* // }
|
|
7464
|
+
* }
|
|
7465
|
+
*
|
|
7466
|
+
* main().catch(e => {
|
|
7467
|
+
* console.error(e);
|
|
7468
|
+
* throw e;
|
|
7469
|
+
* });
|
|
7470
|
+
*
|
|
7471
|
+
* ```
|
|
5898
7472
|
*
|
|
5899
7473
|
* @param params - Parameters for request
|
|
5900
7474
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5909,6 +7483,59 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5909
7483
|
getSubscription(callback: BodyResponseCallback<Schema$Subscription>): void;
|
|
5910
7484
|
/**
|
|
5911
7485
|
* Get the VirtualMachineThreatDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetVirtualMachineThreatDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateVirtualMachineThreatDetectionSettings for this purpose.
|
|
7486
|
+
* @example
|
|
7487
|
+
* ```js
|
|
7488
|
+
* // Before running the sample:
|
|
7489
|
+
* // - Enable the API at:
|
|
7490
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
7491
|
+
* // - Login into gcloud by running:
|
|
7492
|
+
* // ```sh
|
|
7493
|
+
* // $ gcloud auth application-default login
|
|
7494
|
+
* // ```
|
|
7495
|
+
* // - Install the npm module by running:
|
|
7496
|
+
* // ```sh
|
|
7497
|
+
* // $ npm install googleapis
|
|
7498
|
+
* // ```
|
|
7499
|
+
*
|
|
7500
|
+
* const {google} = require('googleapis');
|
|
7501
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
7502
|
+
*
|
|
7503
|
+
* async function main() {
|
|
7504
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7505
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7506
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
7507
|
+
* });
|
|
7508
|
+
*
|
|
7509
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7510
|
+
* const authClient = await auth.getClient();
|
|
7511
|
+
* google.options({auth: authClient});
|
|
7512
|
+
*
|
|
7513
|
+
* // Do the magic
|
|
7514
|
+
* const res =
|
|
7515
|
+
* await securitycenter.organizations.getVirtualMachineThreatDetectionSettings(
|
|
7516
|
+
* {
|
|
7517
|
+
* // Required. The name of the VirtualMachineThreatDetectionSettings to retrieve. Formats: * organizations/{organization\}/virtualMachineThreatDetectionSettings * folders/{folder\}/virtualMachineThreatDetectionSettings * projects/{project\}/virtualMachineThreatDetectionSettings
|
|
7518
|
+
* name: 'organizations/my-organization/virtualMachineThreatDetectionSettings',
|
|
7519
|
+
* },
|
|
7520
|
+
* );
|
|
7521
|
+
* console.log(res.data);
|
|
7522
|
+
*
|
|
7523
|
+
* // Example response
|
|
7524
|
+
* // {
|
|
7525
|
+
* // "modules": {},
|
|
7526
|
+
* // "name": "my_name",
|
|
7527
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
7528
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
7529
|
+
* // "updateTime": "my_updateTime"
|
|
7530
|
+
* // }
|
|
7531
|
+
* }
|
|
7532
|
+
*
|
|
7533
|
+
* main().catch(e => {
|
|
7534
|
+
* console.error(e);
|
|
7535
|
+
* throw e;
|
|
7536
|
+
* });
|
|
7537
|
+
*
|
|
7538
|
+
* ```
|
|
5912
7539
|
*
|
|
5913
7540
|
* @param params - Parameters for request
|
|
5914
7541
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5923,6 +7550,55 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5923
7550
|
getVirtualMachineThreatDetectionSettings(callback: BodyResponseCallback<Schema$VirtualMachineThreatDetectionSettings>): void;
|
|
5924
7551
|
/**
|
|
5925
7552
|
* Get the WebSecurityScannerSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetWebSecurityScannerSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateWebSecurityScannerSettings for this purpose.
|
|
7553
|
+
* @example
|
|
7554
|
+
* ```js
|
|
7555
|
+
* // Before running the sample:
|
|
7556
|
+
* // - Enable the API at:
|
|
7557
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
7558
|
+
* // - Login into gcloud by running:
|
|
7559
|
+
* // ```sh
|
|
7560
|
+
* // $ gcloud auth application-default login
|
|
7561
|
+
* // ```
|
|
7562
|
+
* // - Install the npm module by running:
|
|
7563
|
+
* // ```sh
|
|
7564
|
+
* // $ npm install googleapis
|
|
7565
|
+
* // ```
|
|
7566
|
+
*
|
|
7567
|
+
* const {google} = require('googleapis');
|
|
7568
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
7569
|
+
*
|
|
7570
|
+
* async function main() {
|
|
7571
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7572
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7573
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
7574
|
+
* });
|
|
7575
|
+
*
|
|
7576
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7577
|
+
* const authClient = await auth.getClient();
|
|
7578
|
+
* google.options({auth: authClient});
|
|
7579
|
+
*
|
|
7580
|
+
* // Do the magic
|
|
7581
|
+
* const res = await securitycenter.organizations.getWebSecurityScannerSettings({
|
|
7582
|
+
* // Required. The name of the WebSecurityScannerSettings to retrieve. Formats: * organizations/{organization\}/webSecurityScannerSettings * folders/{folder\}/webSecurityScannerSettings * projects/{project\}/webSecurityScannerSettings
|
|
7583
|
+
* name: 'organizations/my-organization/webSecurityScannerSettings',
|
|
7584
|
+
* });
|
|
7585
|
+
* console.log(res.data);
|
|
7586
|
+
*
|
|
7587
|
+
* // Example response
|
|
7588
|
+
* // {
|
|
7589
|
+
* // "modules": {},
|
|
7590
|
+
* // "name": "my_name",
|
|
7591
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
7592
|
+
* // "updateTime": "my_updateTime"
|
|
7593
|
+
* // }
|
|
7594
|
+
* }
|
|
7595
|
+
*
|
|
7596
|
+
* main().catch(e => {
|
|
7597
|
+
* console.error(e);
|
|
7598
|
+
* throw e;
|
|
7599
|
+
* });
|
|
7600
|
+
*
|
|
7601
|
+
* ```
|
|
5926
7602
|
*
|
|
5927
7603
|
* @param params - Parameters for request
|
|
5928
7604
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5937,6 +7613,71 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5937
7613
|
getWebSecurityScannerSettings(callback: BodyResponseCallback<Schema$WebSecurityScannerSettings>): void;
|
|
5938
7614
|
/**
|
|
5939
7615
|
* Update the ContainerThreatDetectionSettings resource.
|
|
7616
|
+
* @example
|
|
7617
|
+
* ```js
|
|
7618
|
+
* // Before running the sample:
|
|
7619
|
+
* // - Enable the API at:
|
|
7620
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
7621
|
+
* // - Login into gcloud by running:
|
|
7622
|
+
* // ```sh
|
|
7623
|
+
* // $ gcloud auth application-default login
|
|
7624
|
+
* // ```
|
|
7625
|
+
* // - Install the npm module by running:
|
|
7626
|
+
* // ```sh
|
|
7627
|
+
* // $ npm install googleapis
|
|
7628
|
+
* // ```
|
|
7629
|
+
*
|
|
7630
|
+
* const {google} = require('googleapis');
|
|
7631
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
7632
|
+
*
|
|
7633
|
+
* async function main() {
|
|
7634
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7635
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7636
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
7637
|
+
* });
|
|
7638
|
+
*
|
|
7639
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7640
|
+
* const authClient = await auth.getClient();
|
|
7641
|
+
* google.options({auth: authClient});
|
|
7642
|
+
*
|
|
7643
|
+
* // Do the magic
|
|
7644
|
+
* const res =
|
|
7645
|
+
* await securitycenter.organizations.updateContainerThreatDetectionSettings({
|
|
7646
|
+
* // Identifier. The resource name of the ContainerThreatDetectionSettings. Formats: * organizations/{organization\}/containerThreatDetectionSettings * folders/{folder\}/containerThreatDetectionSettings * projects/{project\}/containerThreatDetectionSettings * projects/{project\}/locations/{location\}/clusters/{cluster\}/containerThreatDetectionSettings
|
|
7647
|
+
* name: 'organizations/my-organization/containerThreatDetectionSettings',
|
|
7648
|
+
* // The list of fields to be updated.
|
|
7649
|
+
* updateMask: 'placeholder-value',
|
|
7650
|
+
*
|
|
7651
|
+
* // Request body metadata
|
|
7652
|
+
* requestBody: {
|
|
7653
|
+
* // request body parameters
|
|
7654
|
+
* // {
|
|
7655
|
+
* // "modules": {},
|
|
7656
|
+
* // "name": "my_name",
|
|
7657
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
7658
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
7659
|
+
* // "updateTime": "my_updateTime"
|
|
7660
|
+
* // }
|
|
7661
|
+
* },
|
|
7662
|
+
* });
|
|
7663
|
+
* console.log(res.data);
|
|
7664
|
+
*
|
|
7665
|
+
* // Example response
|
|
7666
|
+
* // {
|
|
7667
|
+
* // "modules": {},
|
|
7668
|
+
* // "name": "my_name",
|
|
7669
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
7670
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
7671
|
+
* // "updateTime": "my_updateTime"
|
|
7672
|
+
* // }
|
|
7673
|
+
* }
|
|
7674
|
+
*
|
|
7675
|
+
* main().catch(e => {
|
|
7676
|
+
* console.error(e);
|
|
7677
|
+
* throw e;
|
|
7678
|
+
* });
|
|
7679
|
+
*
|
|
7680
|
+
* ```
|
|
5940
7681
|
*
|
|
5941
7682
|
* @param params - Parameters for request
|
|
5942
7683
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5951,6 +7692,69 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5951
7692
|
updateContainerThreatDetectionSettings(callback: BodyResponseCallback<Schema$ContainerThreatDetectionSettings>): void;
|
|
5952
7693
|
/**
|
|
5953
7694
|
* Update the EventThreatDetectionSettings resource.
|
|
7695
|
+
* @example
|
|
7696
|
+
* ```js
|
|
7697
|
+
* // Before running the sample:
|
|
7698
|
+
* // - Enable the API at:
|
|
7699
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
7700
|
+
* // - Login into gcloud by running:
|
|
7701
|
+
* // ```sh
|
|
7702
|
+
* // $ gcloud auth application-default login
|
|
7703
|
+
* // ```
|
|
7704
|
+
* // - Install the npm module by running:
|
|
7705
|
+
* // ```sh
|
|
7706
|
+
* // $ npm install googleapis
|
|
7707
|
+
* // ```
|
|
7708
|
+
*
|
|
7709
|
+
* const {google} = require('googleapis');
|
|
7710
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
7711
|
+
*
|
|
7712
|
+
* async function main() {
|
|
7713
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7714
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7715
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
7716
|
+
* });
|
|
7717
|
+
*
|
|
7718
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7719
|
+
* const authClient = await auth.getClient();
|
|
7720
|
+
* google.options({auth: authClient});
|
|
7721
|
+
*
|
|
7722
|
+
* // Do the magic
|
|
7723
|
+
* const res =
|
|
7724
|
+
* await securitycenter.organizations.updateEventThreatDetectionSettings({
|
|
7725
|
+
* // Identifier. The resource name of the EventThreatDetectionSettings. Formats: * organizations/{organization\}/eventThreatDetectionSettings * folders/{folder\}/eventThreatDetectionSettings * projects/{project\}/eventThreatDetectionSettings
|
|
7726
|
+
* name: 'organizations/my-organization/eventThreatDetectionSettings',
|
|
7727
|
+
* // The list of fields to be updated.
|
|
7728
|
+
* updateMask: 'placeholder-value',
|
|
7729
|
+
*
|
|
7730
|
+
* // Request body metadata
|
|
7731
|
+
* requestBody: {
|
|
7732
|
+
* // request body parameters
|
|
7733
|
+
* // {
|
|
7734
|
+
* // "modules": {},
|
|
7735
|
+
* // "name": "my_name",
|
|
7736
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
7737
|
+
* // "updateTime": "my_updateTime"
|
|
7738
|
+
* // }
|
|
7739
|
+
* },
|
|
7740
|
+
* });
|
|
7741
|
+
* console.log(res.data);
|
|
7742
|
+
*
|
|
7743
|
+
* // Example response
|
|
7744
|
+
* // {
|
|
7745
|
+
* // "modules": {},
|
|
7746
|
+
* // "name": "my_name",
|
|
7747
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
7748
|
+
* // "updateTime": "my_updateTime"
|
|
7749
|
+
* // }
|
|
7750
|
+
* }
|
|
7751
|
+
*
|
|
7752
|
+
* main().catch(e => {
|
|
7753
|
+
* console.error(e);
|
|
7754
|
+
* throw e;
|
|
7755
|
+
* });
|
|
7756
|
+
*
|
|
7757
|
+
* ```
|
|
5954
7758
|
*
|
|
5955
7759
|
* @param params - Parameters for request
|
|
5956
7760
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5965,6 +7769,71 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5965
7769
|
updateEventThreatDetectionSettings(callback: BodyResponseCallback<Schema$EventThreatDetectionSettings>): void;
|
|
5966
7770
|
/**
|
|
5967
7771
|
* Update the RapidVulnerabilityDetectionSettings resource.
|
|
7772
|
+
* @example
|
|
7773
|
+
* ```js
|
|
7774
|
+
* // Before running the sample:
|
|
7775
|
+
* // - Enable the API at:
|
|
7776
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
7777
|
+
* // - Login into gcloud by running:
|
|
7778
|
+
* // ```sh
|
|
7779
|
+
* // $ gcloud auth application-default login
|
|
7780
|
+
* // ```
|
|
7781
|
+
* // - Install the npm module by running:
|
|
7782
|
+
* // ```sh
|
|
7783
|
+
* // $ npm install googleapis
|
|
7784
|
+
* // ```
|
|
7785
|
+
*
|
|
7786
|
+
* const {google} = require('googleapis');
|
|
7787
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
7788
|
+
*
|
|
7789
|
+
* async function main() {
|
|
7790
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7791
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7792
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
7793
|
+
* });
|
|
7794
|
+
*
|
|
7795
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7796
|
+
* const authClient = await auth.getClient();
|
|
7797
|
+
* google.options({auth: authClient});
|
|
7798
|
+
*
|
|
7799
|
+
* // Do the magic
|
|
7800
|
+
* const res =
|
|
7801
|
+
* await securitycenter.organizations.updateRapidVulnerabilityDetectionSettings(
|
|
7802
|
+
* {
|
|
7803
|
+
* // The resource name of the RapidVulnerabilityDetectionSettings. Formats: * organizations/{organization\}/rapidVulnerabilityDetectionSettings * folders/{folder\}/rapidVulnerabilityDetectionSettings * projects/{project\}/rapidVulnerabilityDetectionSettings
|
|
7804
|
+
* name: 'organizations/my-organization/rapidVulnerabilityDetectionSettings',
|
|
7805
|
+
* // The list of fields to be updated.
|
|
7806
|
+
* updateMask: 'placeholder-value',
|
|
7807
|
+
*
|
|
7808
|
+
* // Request body metadata
|
|
7809
|
+
* requestBody: {
|
|
7810
|
+
* // request body parameters
|
|
7811
|
+
* // {
|
|
7812
|
+
* // "modules": {},
|
|
7813
|
+
* // "name": "my_name",
|
|
7814
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
7815
|
+
* // "updateTime": "my_updateTime"
|
|
7816
|
+
* // }
|
|
7817
|
+
* },
|
|
7818
|
+
* },
|
|
7819
|
+
* );
|
|
7820
|
+
* console.log(res.data);
|
|
7821
|
+
*
|
|
7822
|
+
* // Example response
|
|
7823
|
+
* // {
|
|
7824
|
+
* // "modules": {},
|
|
7825
|
+
* // "name": "my_name",
|
|
7826
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
7827
|
+
* // "updateTime": "my_updateTime"
|
|
7828
|
+
* // }
|
|
7829
|
+
* }
|
|
7830
|
+
*
|
|
7831
|
+
* main().catch(e => {
|
|
7832
|
+
* console.error(e);
|
|
7833
|
+
* throw e;
|
|
7834
|
+
* });
|
|
7835
|
+
*
|
|
7836
|
+
* ```
|
|
5968
7837
|
*
|
|
5969
7838
|
* @param params - Parameters for request
|
|
5970
7839
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5979,6 +7848,71 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5979
7848
|
updateRapidVulnerabilityDetectionSettings(callback: BodyResponseCallback<Schema$RapidVulnerabilityDetectionSettings>): void;
|
|
5980
7849
|
/**
|
|
5981
7850
|
* Update the SecurityHealthAnalyticsSettings resource.
|
|
7851
|
+
* @example
|
|
7852
|
+
* ```js
|
|
7853
|
+
* // Before running the sample:
|
|
7854
|
+
* // - Enable the API at:
|
|
7855
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
7856
|
+
* // - Login into gcloud by running:
|
|
7857
|
+
* // ```sh
|
|
7858
|
+
* // $ gcloud auth application-default login
|
|
7859
|
+
* // ```
|
|
7860
|
+
* // - Install the npm module by running:
|
|
7861
|
+
* // ```sh
|
|
7862
|
+
* // $ npm install googleapis
|
|
7863
|
+
* // ```
|
|
7864
|
+
*
|
|
7865
|
+
* const {google} = require('googleapis');
|
|
7866
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
7867
|
+
*
|
|
7868
|
+
* async function main() {
|
|
7869
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7870
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7871
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
7872
|
+
* });
|
|
7873
|
+
*
|
|
7874
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7875
|
+
* const authClient = await auth.getClient();
|
|
7876
|
+
* google.options({auth: authClient});
|
|
7877
|
+
*
|
|
7878
|
+
* // Do the magic
|
|
7879
|
+
* const res =
|
|
7880
|
+
* await securitycenter.organizations.updateSecurityHealthAnalyticsSettings({
|
|
7881
|
+
* // Identifier. The resource name of the SecurityHealthAnalyticsSettings. Formats: * organizations/{organization\}/securityHealthAnalyticsSettings * folders/{folder\}/securityHealthAnalyticsSettings * projects/{project\}/securityHealthAnalyticsSettings
|
|
7882
|
+
* name: 'organizations/my-organization/securityHealthAnalyticsSettings',
|
|
7883
|
+
* // The list of fields to be updated.
|
|
7884
|
+
* updateMask: 'placeholder-value',
|
|
7885
|
+
*
|
|
7886
|
+
* // Request body metadata
|
|
7887
|
+
* requestBody: {
|
|
7888
|
+
* // request body parameters
|
|
7889
|
+
* // {
|
|
7890
|
+
* // "modules": {},
|
|
7891
|
+
* // "name": "my_name",
|
|
7892
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
7893
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
7894
|
+
* // "updateTime": "my_updateTime"
|
|
7895
|
+
* // }
|
|
7896
|
+
* },
|
|
7897
|
+
* });
|
|
7898
|
+
* console.log(res.data);
|
|
7899
|
+
*
|
|
7900
|
+
* // Example response
|
|
7901
|
+
* // {
|
|
7902
|
+
* // "modules": {},
|
|
7903
|
+
* // "name": "my_name",
|
|
7904
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
7905
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
7906
|
+
* // "updateTime": "my_updateTime"
|
|
7907
|
+
* // }
|
|
7908
|
+
* }
|
|
7909
|
+
*
|
|
7910
|
+
* main().catch(e => {
|
|
7911
|
+
* console.error(e);
|
|
7912
|
+
* throw e;
|
|
7913
|
+
* });
|
|
7914
|
+
*
|
|
7915
|
+
* ```
|
|
5982
7916
|
*
|
|
5983
7917
|
* @param params - Parameters for request
|
|
5984
7918
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5993,6 +7927,73 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
5993
7927
|
updateSecurityHealthAnalyticsSettings(callback: BodyResponseCallback<Schema$SecurityHealthAnalyticsSettings>): void;
|
|
5994
7928
|
/**
|
|
5995
7929
|
* Update the VirtualMachineThreatDetectionSettings resource.
|
|
7930
|
+
* @example
|
|
7931
|
+
* ```js
|
|
7932
|
+
* // Before running the sample:
|
|
7933
|
+
* // - Enable the API at:
|
|
7934
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
7935
|
+
* // - Login into gcloud by running:
|
|
7936
|
+
* // ```sh
|
|
7937
|
+
* // $ gcloud auth application-default login
|
|
7938
|
+
* // ```
|
|
7939
|
+
* // - Install the npm module by running:
|
|
7940
|
+
* // ```sh
|
|
7941
|
+
* // $ npm install googleapis
|
|
7942
|
+
* // ```
|
|
7943
|
+
*
|
|
7944
|
+
* const {google} = require('googleapis');
|
|
7945
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
7946
|
+
*
|
|
7947
|
+
* async function main() {
|
|
7948
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7949
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7950
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
7951
|
+
* });
|
|
7952
|
+
*
|
|
7953
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7954
|
+
* const authClient = await auth.getClient();
|
|
7955
|
+
* google.options({auth: authClient});
|
|
7956
|
+
*
|
|
7957
|
+
* // Do the magic
|
|
7958
|
+
* const res =
|
|
7959
|
+
* await securitycenter.organizations.updateVirtualMachineThreatDetectionSettings(
|
|
7960
|
+
* {
|
|
7961
|
+
* // Identifier. The resource name of the VirtualMachineThreatDetectionSettings. Formats: * organizations/{organization\}/virtualMachineThreatDetectionSettings * folders/{folder\}/virtualMachineThreatDetectionSettings * projects/{project\}/virtualMachineThreatDetectionSettings
|
|
7962
|
+
* name: 'organizations/my-organization/virtualMachineThreatDetectionSettings',
|
|
7963
|
+
* // The list of fields to be updated.
|
|
7964
|
+
* updateMask: 'placeholder-value',
|
|
7965
|
+
*
|
|
7966
|
+
* // Request body metadata
|
|
7967
|
+
* requestBody: {
|
|
7968
|
+
* // request body parameters
|
|
7969
|
+
* // {
|
|
7970
|
+
* // "modules": {},
|
|
7971
|
+
* // "name": "my_name",
|
|
7972
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
7973
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
7974
|
+
* // "updateTime": "my_updateTime"
|
|
7975
|
+
* // }
|
|
7976
|
+
* },
|
|
7977
|
+
* },
|
|
7978
|
+
* );
|
|
7979
|
+
* console.log(res.data);
|
|
7980
|
+
*
|
|
7981
|
+
* // Example response
|
|
7982
|
+
* // {
|
|
7983
|
+
* // "modules": {},
|
|
7984
|
+
* // "name": "my_name",
|
|
7985
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
7986
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
7987
|
+
* // "updateTime": "my_updateTime"
|
|
7988
|
+
* // }
|
|
7989
|
+
* }
|
|
7990
|
+
*
|
|
7991
|
+
* main().catch(e => {
|
|
7992
|
+
* console.error(e);
|
|
7993
|
+
* throw e;
|
|
7994
|
+
* });
|
|
7995
|
+
*
|
|
7996
|
+
* ```
|
|
5996
7997
|
*
|
|
5997
7998
|
* @param params - Parameters for request
|
|
5998
7999
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6007,6 +8008,69 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6007
8008
|
updateVirtualMachineThreatDetectionSettings(callback: BodyResponseCallback<Schema$VirtualMachineThreatDetectionSettings>): void;
|
|
6008
8009
|
/**
|
|
6009
8010
|
* Update the WebSecurityScannerSettings resource.
|
|
8011
|
+
* @example
|
|
8012
|
+
* ```js
|
|
8013
|
+
* // Before running the sample:
|
|
8014
|
+
* // - Enable the API at:
|
|
8015
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
8016
|
+
* // - Login into gcloud by running:
|
|
8017
|
+
* // ```sh
|
|
8018
|
+
* // $ gcloud auth application-default login
|
|
8019
|
+
* // ```
|
|
8020
|
+
* // - Install the npm module by running:
|
|
8021
|
+
* // ```sh
|
|
8022
|
+
* // $ npm install googleapis
|
|
8023
|
+
* // ```
|
|
8024
|
+
*
|
|
8025
|
+
* const {google} = require('googleapis');
|
|
8026
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
8027
|
+
*
|
|
8028
|
+
* async function main() {
|
|
8029
|
+
* const auth = new google.auth.GoogleAuth({
|
|
8030
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8031
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
8032
|
+
* });
|
|
8033
|
+
*
|
|
8034
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
8035
|
+
* const authClient = await auth.getClient();
|
|
8036
|
+
* google.options({auth: authClient});
|
|
8037
|
+
*
|
|
8038
|
+
* // Do the magic
|
|
8039
|
+
* const res =
|
|
8040
|
+
* await securitycenter.organizations.updateWebSecurityScannerSettings({
|
|
8041
|
+
* // Identifier. The resource name of the WebSecurityScannerSettings. Formats: * organizations/{organization\}/webSecurityScannerSettings * folders/{folder\}/webSecurityScannerSettings * projects/{project\}/webSecurityScannerSettings
|
|
8042
|
+
* name: 'organizations/my-organization/webSecurityScannerSettings',
|
|
8043
|
+
* // The list of fields to be updated.
|
|
8044
|
+
* updateMask: 'placeholder-value',
|
|
8045
|
+
*
|
|
8046
|
+
* // Request body metadata
|
|
8047
|
+
* requestBody: {
|
|
8048
|
+
* // request body parameters
|
|
8049
|
+
* // {
|
|
8050
|
+
* // "modules": {},
|
|
8051
|
+
* // "name": "my_name",
|
|
8052
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
8053
|
+
* // "updateTime": "my_updateTime"
|
|
8054
|
+
* // }
|
|
8055
|
+
* },
|
|
8056
|
+
* });
|
|
8057
|
+
* console.log(res.data);
|
|
8058
|
+
*
|
|
8059
|
+
* // Example response
|
|
8060
|
+
* // {
|
|
8061
|
+
* // "modules": {},
|
|
8062
|
+
* // "name": "my_name",
|
|
8063
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
8064
|
+
* // "updateTime": "my_updateTime"
|
|
8065
|
+
* // }
|
|
8066
|
+
* }
|
|
8067
|
+
*
|
|
8068
|
+
* main().catch(e => {
|
|
8069
|
+
* console.error(e);
|
|
8070
|
+
* throw e;
|
|
8071
|
+
* });
|
|
8072
|
+
*
|
|
8073
|
+
* ```
|
|
6010
8074
|
*
|
|
6011
8075
|
* @param params - Parameters for request
|
|
6012
8076
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6157,6 +8221,61 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6157
8221
|
constructor(context: APIRequestContext);
|
|
6158
8222
|
/**
|
|
6159
8223
|
* Calculates the effective ContainerThreatDetectionSettings based on its level in the resource hierarchy and its settings. Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings). The default SCC setting for the detector service defaults can be overridden at organization, folder and project levels. No assumptions should be made about the SCC defaults as it is considered an internal implementation detail.
|
|
8224
|
+
* @example
|
|
8225
|
+
* ```js
|
|
8226
|
+
* // Before running the sample:
|
|
8227
|
+
* // - Enable the API at:
|
|
8228
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
8229
|
+
* // - Login into gcloud by running:
|
|
8230
|
+
* // ```sh
|
|
8231
|
+
* // $ gcloud auth application-default login
|
|
8232
|
+
* // ```
|
|
8233
|
+
* // - Install the npm module by running:
|
|
8234
|
+
* // ```sh
|
|
8235
|
+
* // $ npm install googleapis
|
|
8236
|
+
* // ```
|
|
8237
|
+
*
|
|
8238
|
+
* const {google} = require('googleapis');
|
|
8239
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
8240
|
+
*
|
|
8241
|
+
* async function main() {
|
|
8242
|
+
* const auth = new google.auth.GoogleAuth({
|
|
8243
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8244
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
8245
|
+
* });
|
|
8246
|
+
*
|
|
8247
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
8248
|
+
* const authClient = await auth.getClient();
|
|
8249
|
+
* google.options({auth: authClient});
|
|
8250
|
+
*
|
|
8251
|
+
* // Do the magic
|
|
8252
|
+
* const res =
|
|
8253
|
+
* await securitycenter.organizations.containerThreatDetectionSettings.calculate(
|
|
8254
|
+
* {
|
|
8255
|
+
* // Required. The name of the ContainerThreatDetectionSettings to calculate. Formats: * organizations/{organization\}/containerThreatDetectionSettings * folders/{folder\}/containerThreatDetectionSettings * projects/{project\}/containerThreatDetectionSettings * projects/{project\}/locations/{location\}/clusters/{cluster\}/containerThreatDetectionSettings
|
|
8256
|
+
* name: 'organizations/my-organization/containerThreatDetectionSettings',
|
|
8257
|
+
* // Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.
|
|
8258
|
+
* showEligibleModulesOnly: 'placeholder-value',
|
|
8259
|
+
* },
|
|
8260
|
+
* );
|
|
8261
|
+
* console.log(res.data);
|
|
8262
|
+
*
|
|
8263
|
+
* // Example response
|
|
8264
|
+
* // {
|
|
8265
|
+
* // "modules": {},
|
|
8266
|
+
* // "name": "my_name",
|
|
8267
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
8268
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
8269
|
+
* // "updateTime": "my_updateTime"
|
|
8270
|
+
* // }
|
|
8271
|
+
* }
|
|
8272
|
+
*
|
|
8273
|
+
* main().catch(e => {
|
|
8274
|
+
* console.error(e);
|
|
8275
|
+
* throw e;
|
|
8276
|
+
* });
|
|
8277
|
+
*
|
|
8278
|
+
* ```
|
|
6160
8279
|
*
|
|
6161
8280
|
* @param params - Parameters for request
|
|
6162
8281
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6185,6 +8304,58 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6185
8304
|
constructor(context: APIRequestContext);
|
|
6186
8305
|
/**
|
|
6187
8306
|
* Calculates the effective EventThreatDetectionSettings based on its level in the resource hierarchy and its settings. Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings). The default SCC setting for the detector service defaults can be overridden at organization, folder and project levels. No assumptions should be made about the SCC defaults as it is considered an internal implementation detail.
|
|
8307
|
+
* @example
|
|
8308
|
+
* ```js
|
|
8309
|
+
* // Before running the sample:
|
|
8310
|
+
* // - Enable the API at:
|
|
8311
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
8312
|
+
* // - Login into gcloud by running:
|
|
8313
|
+
* // ```sh
|
|
8314
|
+
* // $ gcloud auth application-default login
|
|
8315
|
+
* // ```
|
|
8316
|
+
* // - Install the npm module by running:
|
|
8317
|
+
* // ```sh
|
|
8318
|
+
* // $ npm install googleapis
|
|
8319
|
+
* // ```
|
|
8320
|
+
*
|
|
8321
|
+
* const {google} = require('googleapis');
|
|
8322
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
8323
|
+
*
|
|
8324
|
+
* async function main() {
|
|
8325
|
+
* const auth = new google.auth.GoogleAuth({
|
|
8326
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8327
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
8328
|
+
* });
|
|
8329
|
+
*
|
|
8330
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
8331
|
+
* const authClient = await auth.getClient();
|
|
8332
|
+
* google.options({auth: authClient});
|
|
8333
|
+
*
|
|
8334
|
+
* // Do the magic
|
|
8335
|
+
* const res =
|
|
8336
|
+
* await securitycenter.organizations.eventThreatDetectionSettings.calculate({
|
|
8337
|
+
* // Required. The name of the EventThreatDetectionSettings to calculate. Formats: * organizations/{organization\}/eventThreatDetectionSettings * folders/{folder\}/eventThreatDetectionSettings * projects/{project\}/eventThreatDetectionSettings
|
|
8338
|
+
* name: 'organizations/my-organization/eventThreatDetectionSettings',
|
|
8339
|
+
* // Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.
|
|
8340
|
+
* showEligibleModulesOnly: 'placeholder-value',
|
|
8341
|
+
* });
|
|
8342
|
+
* console.log(res.data);
|
|
8343
|
+
*
|
|
8344
|
+
* // Example response
|
|
8345
|
+
* // {
|
|
8346
|
+
* // "modules": {},
|
|
8347
|
+
* // "name": "my_name",
|
|
8348
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
8349
|
+
* // "updateTime": "my_updateTime"
|
|
8350
|
+
* // }
|
|
8351
|
+
* }
|
|
8352
|
+
*
|
|
8353
|
+
* main().catch(e => {
|
|
8354
|
+
* console.error(e);
|
|
8355
|
+
* throw e;
|
|
8356
|
+
* });
|
|
8357
|
+
*
|
|
8358
|
+
* ```
|
|
6188
8359
|
*
|
|
6189
8360
|
* @param params - Parameters for request
|
|
6190
8361
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6213,6 +8384,58 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6213
8384
|
constructor(context: APIRequestContext);
|
|
6214
8385
|
/**
|
|
6215
8386
|
* Calculates the effective RapidVulnerabilityDetectionSettings based on its level in the resource hierarchy and its settings. Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings). The default SCC setting for the detector service defaults can be overridden at organization, folder and project levels. No assumptions should be made about the SCC defaults as it is considered an internal implementation detail.
|
|
8387
|
+
* @example
|
|
8388
|
+
* ```js
|
|
8389
|
+
* // Before running the sample:
|
|
8390
|
+
* // - Enable the API at:
|
|
8391
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
8392
|
+
* // - Login into gcloud by running:
|
|
8393
|
+
* // ```sh
|
|
8394
|
+
* // $ gcloud auth application-default login
|
|
8395
|
+
* // ```
|
|
8396
|
+
* // - Install the npm module by running:
|
|
8397
|
+
* // ```sh
|
|
8398
|
+
* // $ npm install googleapis
|
|
8399
|
+
* // ```
|
|
8400
|
+
*
|
|
8401
|
+
* const {google} = require('googleapis');
|
|
8402
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
8403
|
+
*
|
|
8404
|
+
* async function main() {
|
|
8405
|
+
* const auth = new google.auth.GoogleAuth({
|
|
8406
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8407
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
8408
|
+
* });
|
|
8409
|
+
*
|
|
8410
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
8411
|
+
* const authClient = await auth.getClient();
|
|
8412
|
+
* google.options({auth: authClient});
|
|
8413
|
+
*
|
|
8414
|
+
* // Do the magic
|
|
8415
|
+
* const res =
|
|
8416
|
+
* await securitycenter.organizations.rapidVulnerabilityDetectionSettings.calculate(
|
|
8417
|
+
* {
|
|
8418
|
+
* // Required. The name of the RapidVulnerabilityDetectionSettings to calculate. Formats: * organizations/{organization\}/rapidVulnerabilityDetectionSettings * folders/{folder\}/rapidVulnerabilityDetectionSettings * projects/{project\}/rapidVulnerabilityDetectionSettings
|
|
8419
|
+
* name: 'organizations/my-organization/rapidVulnerabilityDetectionSettings',
|
|
8420
|
+
* },
|
|
8421
|
+
* );
|
|
8422
|
+
* console.log(res.data);
|
|
8423
|
+
*
|
|
8424
|
+
* // Example response
|
|
8425
|
+
* // {
|
|
8426
|
+
* // "modules": {},
|
|
8427
|
+
* // "name": "my_name",
|
|
8428
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
8429
|
+
* // "updateTime": "my_updateTime"
|
|
8430
|
+
* // }
|
|
8431
|
+
* }
|
|
8432
|
+
*
|
|
8433
|
+
* main().catch(e => {
|
|
8434
|
+
* console.error(e);
|
|
8435
|
+
* throw e;
|
|
8436
|
+
* });
|
|
8437
|
+
*
|
|
8438
|
+
* ```
|
|
6216
8439
|
*
|
|
6217
8440
|
* @param params - Parameters for request
|
|
6218
8441
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6237,6 +8460,61 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6237
8460
|
constructor(context: APIRequestContext);
|
|
6238
8461
|
/**
|
|
6239
8462
|
* Calculates the effective SecurityHealthAnalyticsSettings based on its level in the resource hierarchy and its settings. Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings). The default SCC setting for the detector service defaults can be overridden at organization, folder and project levels. No assumptions should be made about the SCC defaults as it is considered an internal implementation detail.
|
|
8463
|
+
* @example
|
|
8464
|
+
* ```js
|
|
8465
|
+
* // Before running the sample:
|
|
8466
|
+
* // - Enable the API at:
|
|
8467
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
8468
|
+
* // - Login into gcloud by running:
|
|
8469
|
+
* // ```sh
|
|
8470
|
+
* // $ gcloud auth application-default login
|
|
8471
|
+
* // ```
|
|
8472
|
+
* // - Install the npm module by running:
|
|
8473
|
+
* // ```sh
|
|
8474
|
+
* // $ npm install googleapis
|
|
8475
|
+
* // ```
|
|
8476
|
+
*
|
|
8477
|
+
* const {google} = require('googleapis');
|
|
8478
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
8479
|
+
*
|
|
8480
|
+
* async function main() {
|
|
8481
|
+
* const auth = new google.auth.GoogleAuth({
|
|
8482
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8483
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
8484
|
+
* });
|
|
8485
|
+
*
|
|
8486
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
8487
|
+
* const authClient = await auth.getClient();
|
|
8488
|
+
* google.options({auth: authClient});
|
|
8489
|
+
*
|
|
8490
|
+
* // Do the magic
|
|
8491
|
+
* const res =
|
|
8492
|
+
* await securitycenter.organizations.securityHealthAnalyticsSettings.calculate(
|
|
8493
|
+
* {
|
|
8494
|
+
* // Required. The name of the SecurityHealthAnalyticsSettings to calculate. Formats: * organizations/{organization\}/securityHealthAnalyticsSettings * folders/{folder\}/securityHealthAnalyticsSettings * projects/{project\}/securityHealthAnalyticsSettings
|
|
8495
|
+
* name: 'organizations/my-organization/securityHealthAnalyticsSettings',
|
|
8496
|
+
* // Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.
|
|
8497
|
+
* showEligibleModulesOnly: 'placeholder-value',
|
|
8498
|
+
* },
|
|
8499
|
+
* );
|
|
8500
|
+
* console.log(res.data);
|
|
8501
|
+
*
|
|
8502
|
+
* // Example response
|
|
8503
|
+
* // {
|
|
8504
|
+
* // "modules": {},
|
|
8505
|
+
* // "name": "my_name",
|
|
8506
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
8507
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
8508
|
+
* // "updateTime": "my_updateTime"
|
|
8509
|
+
* // }
|
|
8510
|
+
* }
|
|
8511
|
+
*
|
|
8512
|
+
* main().catch(e => {
|
|
8513
|
+
* console.error(e);
|
|
8514
|
+
* throw e;
|
|
8515
|
+
* });
|
|
8516
|
+
*
|
|
8517
|
+
* ```
|
|
6240
8518
|
*
|
|
6241
8519
|
* @param params - Parameters for request
|
|
6242
8520
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6265,6 +8543,61 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6265
8543
|
constructor(context: APIRequestContext);
|
|
6266
8544
|
/**
|
|
6267
8545
|
* Calculates the effective VirtualMachineThreatDetectionSettings based on its level in the resource hierarchy and its settings. Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings). The default SCC setting for the detector service defaults can be overridden at organization, folder and project levels. No assumptions should be made about the SCC defaults as it is considered an internal implementation detail.
|
|
8546
|
+
* @example
|
|
8547
|
+
* ```js
|
|
8548
|
+
* // Before running the sample:
|
|
8549
|
+
* // - Enable the API at:
|
|
8550
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
8551
|
+
* // - Login into gcloud by running:
|
|
8552
|
+
* // ```sh
|
|
8553
|
+
* // $ gcloud auth application-default login
|
|
8554
|
+
* // ```
|
|
8555
|
+
* // - Install the npm module by running:
|
|
8556
|
+
* // ```sh
|
|
8557
|
+
* // $ npm install googleapis
|
|
8558
|
+
* // ```
|
|
8559
|
+
*
|
|
8560
|
+
* const {google} = require('googleapis');
|
|
8561
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
8562
|
+
*
|
|
8563
|
+
* async function main() {
|
|
8564
|
+
* const auth = new google.auth.GoogleAuth({
|
|
8565
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8566
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
8567
|
+
* });
|
|
8568
|
+
*
|
|
8569
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
8570
|
+
* const authClient = await auth.getClient();
|
|
8571
|
+
* google.options({auth: authClient});
|
|
8572
|
+
*
|
|
8573
|
+
* // Do the magic
|
|
8574
|
+
* const res =
|
|
8575
|
+
* await securitycenter.organizations.virtualMachineThreatDetectionSettings.calculate(
|
|
8576
|
+
* {
|
|
8577
|
+
* // Required. The name of the VirtualMachineThreatDetectionSettings to calculate. Formats: * organizations/{organization\}/virtualMachineThreatDetectionSettings * folders/{folder\}/virtualMachineThreatDetectionSettings * projects/{project\}/virtualMachineThreatDetectionSettings
|
|
8578
|
+
* name: 'organizations/my-organization/virtualMachineThreatDetectionSettings',
|
|
8579
|
+
* // Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.
|
|
8580
|
+
* showEligibleModulesOnly: 'placeholder-value',
|
|
8581
|
+
* },
|
|
8582
|
+
* );
|
|
8583
|
+
* console.log(res.data);
|
|
8584
|
+
*
|
|
8585
|
+
* // Example response
|
|
8586
|
+
* // {
|
|
8587
|
+
* // "modules": {},
|
|
8588
|
+
* // "name": "my_name",
|
|
8589
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
8590
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
8591
|
+
* // "updateTime": "my_updateTime"
|
|
8592
|
+
* // }
|
|
8593
|
+
* }
|
|
8594
|
+
*
|
|
8595
|
+
* main().catch(e => {
|
|
8596
|
+
* console.error(e);
|
|
8597
|
+
* throw e;
|
|
8598
|
+
* });
|
|
8599
|
+
*
|
|
8600
|
+
* ```
|
|
6268
8601
|
*
|
|
6269
8602
|
* @param params - Parameters for request
|
|
6270
8603
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6293,6 +8626,58 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6293
8626
|
constructor(context: APIRequestContext);
|
|
6294
8627
|
/**
|
|
6295
8628
|
* Calculates the effective WebSecurityScannerSettings based on its level in the resource hierarchy and its settings. Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings). The default SCC setting for the detector service defaults can be overridden at organization, folder and project levels. No assumptions should be made about the SCC defaults as it is considered an internal implementation detail.
|
|
8629
|
+
* @example
|
|
8630
|
+
* ```js
|
|
8631
|
+
* // Before running the sample:
|
|
8632
|
+
* // - Enable the API at:
|
|
8633
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
8634
|
+
* // - Login into gcloud by running:
|
|
8635
|
+
* // ```sh
|
|
8636
|
+
* // $ gcloud auth application-default login
|
|
8637
|
+
* // ```
|
|
8638
|
+
* // - Install the npm module by running:
|
|
8639
|
+
* // ```sh
|
|
8640
|
+
* // $ npm install googleapis
|
|
8641
|
+
* // ```
|
|
8642
|
+
*
|
|
8643
|
+
* const {google} = require('googleapis');
|
|
8644
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
8645
|
+
*
|
|
8646
|
+
* async function main() {
|
|
8647
|
+
* const auth = new google.auth.GoogleAuth({
|
|
8648
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8649
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
8650
|
+
* });
|
|
8651
|
+
*
|
|
8652
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
8653
|
+
* const authClient = await auth.getClient();
|
|
8654
|
+
* google.options({auth: authClient});
|
|
8655
|
+
*
|
|
8656
|
+
* // Do the magic
|
|
8657
|
+
* const res =
|
|
8658
|
+
* await securitycenter.organizations.webSecurityScannerSettings.calculate({
|
|
8659
|
+
* // Required. The name of the WebSecurityScannerSettings to calculate. Formats: * organizations/{organization\}/webSecurityScannerSettings * folders/{folder\}/webSecurityScannerSettings * projects/{project\}/webSecurityScannerSettings
|
|
8660
|
+
* name: 'organizations/my-organization/webSecurityScannerSettings',
|
|
8661
|
+
* // Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.
|
|
8662
|
+
* showEligibleModulesOnly: 'placeholder-value',
|
|
8663
|
+
* });
|
|
8664
|
+
* console.log(res.data);
|
|
8665
|
+
*
|
|
8666
|
+
* // Example response
|
|
8667
|
+
* // {
|
|
8668
|
+
* // "modules": {},
|
|
8669
|
+
* // "name": "my_name",
|
|
8670
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
8671
|
+
* // "updateTime": "my_updateTime"
|
|
8672
|
+
* // }
|
|
8673
|
+
* }
|
|
8674
|
+
*
|
|
8675
|
+
* main().catch(e => {
|
|
8676
|
+
* console.error(e);
|
|
8677
|
+
* throw e;
|
|
8678
|
+
* });
|
|
8679
|
+
*
|
|
8680
|
+
* ```
|
|
6296
8681
|
*
|
|
6297
8682
|
* @param params - Parameters for request
|
|
6298
8683
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6328,6 +8713,58 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6328
8713
|
constructor(context: APIRequestContext);
|
|
6329
8714
|
/**
|
|
6330
8715
|
* Get the ContainerThreatDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetContainerThreatDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateContainerThreatDetectionSettings for this purpose.
|
|
8716
|
+
* @example
|
|
8717
|
+
* ```js
|
|
8718
|
+
* // Before running the sample:
|
|
8719
|
+
* // - Enable the API at:
|
|
8720
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
8721
|
+
* // - Login into gcloud by running:
|
|
8722
|
+
* // ```sh
|
|
8723
|
+
* // $ gcloud auth application-default login
|
|
8724
|
+
* // ```
|
|
8725
|
+
* // - Install the npm module by running:
|
|
8726
|
+
* // ```sh
|
|
8727
|
+
* // $ npm install googleapis
|
|
8728
|
+
* // ```
|
|
8729
|
+
*
|
|
8730
|
+
* const {google} = require('googleapis');
|
|
8731
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
8732
|
+
*
|
|
8733
|
+
* async function main() {
|
|
8734
|
+
* const auth = new google.auth.GoogleAuth({
|
|
8735
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8736
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
8737
|
+
* });
|
|
8738
|
+
*
|
|
8739
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
8740
|
+
* const authClient = await auth.getClient();
|
|
8741
|
+
* google.options({auth: authClient});
|
|
8742
|
+
*
|
|
8743
|
+
* // Do the magic
|
|
8744
|
+
* const res = await securitycenter.projects.getContainerThreatDetectionSettings(
|
|
8745
|
+
* {
|
|
8746
|
+
* // Required. The name of the ContainerThreatDetectionSettings to retrieve. Formats: * organizations/{organization\}/containerThreatDetectionSettings * folders/{folder\}/containerThreatDetectionSettings * projects/{project\}/containerThreatDetectionSettings * projects/{project\}/locations/{location\}/clusters/{cluster\}/containerThreatDetectionSettings
|
|
8747
|
+
* name: 'projects/my-project/containerThreatDetectionSettings',
|
|
8748
|
+
* },
|
|
8749
|
+
* );
|
|
8750
|
+
* console.log(res.data);
|
|
8751
|
+
*
|
|
8752
|
+
* // Example response
|
|
8753
|
+
* // {
|
|
8754
|
+
* // "modules": {},
|
|
8755
|
+
* // "name": "my_name",
|
|
8756
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
8757
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
8758
|
+
* // "updateTime": "my_updateTime"
|
|
8759
|
+
* // }
|
|
8760
|
+
* }
|
|
8761
|
+
*
|
|
8762
|
+
* main().catch(e => {
|
|
8763
|
+
* console.error(e);
|
|
8764
|
+
* throw e;
|
|
8765
|
+
* });
|
|
8766
|
+
*
|
|
8767
|
+
* ```
|
|
6331
8768
|
*
|
|
6332
8769
|
* @param params - Parameters for request
|
|
6333
8770
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6342,6 +8779,55 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6342
8779
|
getContainerThreatDetectionSettings(callback: BodyResponseCallback<Schema$ContainerThreatDetectionSettings>): void;
|
|
6343
8780
|
/**
|
|
6344
8781
|
* Get the EventThreatDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetEventThreatDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateEventThreatDetectionSettings for this purpose.
|
|
8782
|
+
* @example
|
|
8783
|
+
* ```js
|
|
8784
|
+
* // Before running the sample:
|
|
8785
|
+
* // - Enable the API at:
|
|
8786
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
8787
|
+
* // - Login into gcloud by running:
|
|
8788
|
+
* // ```sh
|
|
8789
|
+
* // $ gcloud auth application-default login
|
|
8790
|
+
* // ```
|
|
8791
|
+
* // - Install the npm module by running:
|
|
8792
|
+
* // ```sh
|
|
8793
|
+
* // $ npm install googleapis
|
|
8794
|
+
* // ```
|
|
8795
|
+
*
|
|
8796
|
+
* const {google} = require('googleapis');
|
|
8797
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
8798
|
+
*
|
|
8799
|
+
* async function main() {
|
|
8800
|
+
* const auth = new google.auth.GoogleAuth({
|
|
8801
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8802
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
8803
|
+
* });
|
|
8804
|
+
*
|
|
8805
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
8806
|
+
* const authClient = await auth.getClient();
|
|
8807
|
+
* google.options({auth: authClient});
|
|
8808
|
+
*
|
|
8809
|
+
* // Do the magic
|
|
8810
|
+
* const res = await securitycenter.projects.getEventThreatDetectionSettings({
|
|
8811
|
+
* // Required. The name of the EventThreatDetectionSettings to retrieve. Formats: * organizations/{organization\}/eventThreatDetectionSettings * folders/{folder\}/eventThreatDetectionSettings * projects/{project\}/eventThreatDetectionSettings
|
|
8812
|
+
* name: 'projects/my-project/eventThreatDetectionSettings',
|
|
8813
|
+
* });
|
|
8814
|
+
* console.log(res.data);
|
|
8815
|
+
*
|
|
8816
|
+
* // Example response
|
|
8817
|
+
* // {
|
|
8818
|
+
* // "modules": {},
|
|
8819
|
+
* // "name": "my_name",
|
|
8820
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
8821
|
+
* // "updateTime": "my_updateTime"
|
|
8822
|
+
* // }
|
|
8823
|
+
* }
|
|
8824
|
+
*
|
|
8825
|
+
* main().catch(e => {
|
|
8826
|
+
* console.error(e);
|
|
8827
|
+
* throw e;
|
|
8828
|
+
* });
|
|
8829
|
+
*
|
|
8830
|
+
* ```
|
|
6345
8831
|
*
|
|
6346
8832
|
* @param params - Parameters for request
|
|
6347
8833
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6356,6 +8842,56 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6356
8842
|
getEventThreatDetectionSettings(callback: BodyResponseCallback<Schema$EventThreatDetectionSettings>): void;
|
|
6357
8843
|
/**
|
|
6358
8844
|
* Get the RapidVulnerabilityDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetRapidVulnerabilityDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateRapidVulnerabilityDetectionSettings for this purpose.
|
|
8845
|
+
* @example
|
|
8846
|
+
* ```js
|
|
8847
|
+
* // Before running the sample:
|
|
8848
|
+
* // - Enable the API at:
|
|
8849
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
8850
|
+
* // - Login into gcloud by running:
|
|
8851
|
+
* // ```sh
|
|
8852
|
+
* // $ gcloud auth application-default login
|
|
8853
|
+
* // ```
|
|
8854
|
+
* // - Install the npm module by running:
|
|
8855
|
+
* // ```sh
|
|
8856
|
+
* // $ npm install googleapis
|
|
8857
|
+
* // ```
|
|
8858
|
+
*
|
|
8859
|
+
* const {google} = require('googleapis');
|
|
8860
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
8861
|
+
*
|
|
8862
|
+
* async function main() {
|
|
8863
|
+
* const auth = new google.auth.GoogleAuth({
|
|
8864
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8865
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
8866
|
+
* });
|
|
8867
|
+
*
|
|
8868
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
8869
|
+
* const authClient = await auth.getClient();
|
|
8870
|
+
* google.options({auth: authClient});
|
|
8871
|
+
*
|
|
8872
|
+
* // Do the magic
|
|
8873
|
+
* const res =
|
|
8874
|
+
* await securitycenter.projects.getRapidVulnerabilityDetectionSettings({
|
|
8875
|
+
* // Required. The name of the RapidVulnerabilityDetectionSettings to retrieve. Formats: * organizations/{organization\}/rapidVulnerabilityDetectionSettings * folders/{folder\}/rapidVulnerabilityDetectionSettings * projects/{project\}/rapidVulnerabilityDetectionSettings
|
|
8876
|
+
* name: 'projects/my-project/rapidVulnerabilityDetectionSettings',
|
|
8877
|
+
* });
|
|
8878
|
+
* console.log(res.data);
|
|
8879
|
+
*
|
|
8880
|
+
* // Example response
|
|
8881
|
+
* // {
|
|
8882
|
+
* // "modules": {},
|
|
8883
|
+
* // "name": "my_name",
|
|
8884
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
8885
|
+
* // "updateTime": "my_updateTime"
|
|
8886
|
+
* // }
|
|
8887
|
+
* }
|
|
8888
|
+
*
|
|
8889
|
+
* main().catch(e => {
|
|
8890
|
+
* console.error(e);
|
|
8891
|
+
* throw e;
|
|
8892
|
+
* });
|
|
8893
|
+
*
|
|
8894
|
+
* ```
|
|
6359
8895
|
*
|
|
6360
8896
|
* @param params - Parameters for request
|
|
6361
8897
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6370,6 +8906,55 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6370
8906
|
getRapidVulnerabilityDetectionSettings(callback: BodyResponseCallback<Schema$RapidVulnerabilityDetectionSettings>): void;
|
|
6371
8907
|
/**
|
|
6372
8908
|
* Get the SecurityCenterSettings resource.
|
|
8909
|
+
* @example
|
|
8910
|
+
* ```js
|
|
8911
|
+
* // Before running the sample:
|
|
8912
|
+
* // - Enable the API at:
|
|
8913
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
8914
|
+
* // - Login into gcloud by running:
|
|
8915
|
+
* // ```sh
|
|
8916
|
+
* // $ gcloud auth application-default login
|
|
8917
|
+
* // ```
|
|
8918
|
+
* // - Install the npm module by running:
|
|
8919
|
+
* // ```sh
|
|
8920
|
+
* // $ npm install googleapis
|
|
8921
|
+
* // ```
|
|
8922
|
+
*
|
|
8923
|
+
* const {google} = require('googleapis');
|
|
8924
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
8925
|
+
*
|
|
8926
|
+
* async function main() {
|
|
8927
|
+
* const auth = new google.auth.GoogleAuth({
|
|
8928
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8929
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
8930
|
+
* });
|
|
8931
|
+
*
|
|
8932
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
8933
|
+
* const authClient = await auth.getClient();
|
|
8934
|
+
* google.options({auth: authClient});
|
|
8935
|
+
*
|
|
8936
|
+
* // Do the magic
|
|
8937
|
+
* const res = await securitycenter.projects.getSecurityCenterSettings({
|
|
8938
|
+
* // Required. The name of the SecurityCenterSettings to retrieve. Format: organizations/{organization\}/securityCenterSettings Format: folders/{folder\}/securityCenterSettings Format: projects/{project\}/securityCenterSettings
|
|
8939
|
+
* name: 'projects/my-project/securityCenterSettings',
|
|
8940
|
+
* });
|
|
8941
|
+
* console.log(res.data);
|
|
8942
|
+
*
|
|
8943
|
+
* // Example response
|
|
8944
|
+
* // {
|
|
8945
|
+
* // "logSinkProject": "my_logSinkProject",
|
|
8946
|
+
* // "name": "my_name",
|
|
8947
|
+
* // "onboardingTime": "my_onboardingTime",
|
|
8948
|
+
* // "orgServiceAccount": "my_orgServiceAccount"
|
|
8949
|
+
* // }
|
|
8950
|
+
* }
|
|
8951
|
+
*
|
|
8952
|
+
* main().catch(e => {
|
|
8953
|
+
* console.error(e);
|
|
8954
|
+
* throw e;
|
|
8955
|
+
* });
|
|
8956
|
+
*
|
|
8957
|
+
* ```
|
|
6373
8958
|
*
|
|
6374
8959
|
* @param params - Parameters for request
|
|
6375
8960
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6384,6 +8969,56 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6384
8969
|
getSecurityCenterSettings(callback: BodyResponseCallback<Schema$SecurityCenterSettings>): void;
|
|
6385
8970
|
/**
|
|
6386
8971
|
* Get the SecurityHealthAnalyticsSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetSecurityHealthAnalyticsSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateSecurityHealthAnalyticsSettings for this purpose.
|
|
8972
|
+
* @example
|
|
8973
|
+
* ```js
|
|
8974
|
+
* // Before running the sample:
|
|
8975
|
+
* // - Enable the API at:
|
|
8976
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
8977
|
+
* // - Login into gcloud by running:
|
|
8978
|
+
* // ```sh
|
|
8979
|
+
* // $ gcloud auth application-default login
|
|
8980
|
+
* // ```
|
|
8981
|
+
* // - Install the npm module by running:
|
|
8982
|
+
* // ```sh
|
|
8983
|
+
* // $ npm install googleapis
|
|
8984
|
+
* // ```
|
|
8985
|
+
*
|
|
8986
|
+
* const {google} = require('googleapis');
|
|
8987
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
8988
|
+
*
|
|
8989
|
+
* async function main() {
|
|
8990
|
+
* const auth = new google.auth.GoogleAuth({
|
|
8991
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8992
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
8993
|
+
* });
|
|
8994
|
+
*
|
|
8995
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
8996
|
+
* const authClient = await auth.getClient();
|
|
8997
|
+
* google.options({auth: authClient});
|
|
8998
|
+
*
|
|
8999
|
+
* // Do the magic
|
|
9000
|
+
* const res = await securitycenter.projects.getSecurityHealthAnalyticsSettings({
|
|
9001
|
+
* // Required. The name of the SecurityHealthAnalyticsSettings to retrieve. Formats: * organizations/{organization\}/securityHealthAnalyticsSettings * folders/{folder\}/securityHealthAnalyticsSettings * projects/{project\}/securityHealthAnalyticsSettings
|
|
9002
|
+
* name: 'projects/my-project/securityHealthAnalyticsSettings',
|
|
9003
|
+
* });
|
|
9004
|
+
* console.log(res.data);
|
|
9005
|
+
*
|
|
9006
|
+
* // Example response
|
|
9007
|
+
* // {
|
|
9008
|
+
* // "modules": {},
|
|
9009
|
+
* // "name": "my_name",
|
|
9010
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
9011
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
9012
|
+
* // "updateTime": "my_updateTime"
|
|
9013
|
+
* // }
|
|
9014
|
+
* }
|
|
9015
|
+
*
|
|
9016
|
+
* main().catch(e => {
|
|
9017
|
+
* console.error(e);
|
|
9018
|
+
* throw e;
|
|
9019
|
+
* });
|
|
9020
|
+
*
|
|
9021
|
+
* ```
|
|
6387
9022
|
*
|
|
6388
9023
|
* @param params - Parameters for request
|
|
6389
9024
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6398,6 +9033,57 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6398
9033
|
getSecurityHealthAnalyticsSettings(callback: BodyResponseCallback<Schema$SecurityHealthAnalyticsSettings>): void;
|
|
6399
9034
|
/**
|
|
6400
9035
|
* Get the VirtualMachineThreatDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetVirtualMachineThreatDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateVirtualMachineThreatDetectionSettings for this purpose.
|
|
9036
|
+
* @example
|
|
9037
|
+
* ```js
|
|
9038
|
+
* // Before running the sample:
|
|
9039
|
+
* // - Enable the API at:
|
|
9040
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
9041
|
+
* // - Login into gcloud by running:
|
|
9042
|
+
* // ```sh
|
|
9043
|
+
* // $ gcloud auth application-default login
|
|
9044
|
+
* // ```
|
|
9045
|
+
* // - Install the npm module by running:
|
|
9046
|
+
* // ```sh
|
|
9047
|
+
* // $ npm install googleapis
|
|
9048
|
+
* // ```
|
|
9049
|
+
*
|
|
9050
|
+
* const {google} = require('googleapis');
|
|
9051
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
9052
|
+
*
|
|
9053
|
+
* async function main() {
|
|
9054
|
+
* const auth = new google.auth.GoogleAuth({
|
|
9055
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
9056
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
9057
|
+
* });
|
|
9058
|
+
*
|
|
9059
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
9060
|
+
* const authClient = await auth.getClient();
|
|
9061
|
+
* google.options({auth: authClient});
|
|
9062
|
+
*
|
|
9063
|
+
* // Do the magic
|
|
9064
|
+
* const res =
|
|
9065
|
+
* await securitycenter.projects.getVirtualMachineThreatDetectionSettings({
|
|
9066
|
+
* // Required. The name of the VirtualMachineThreatDetectionSettings to retrieve. Formats: * organizations/{organization\}/virtualMachineThreatDetectionSettings * folders/{folder\}/virtualMachineThreatDetectionSettings * projects/{project\}/virtualMachineThreatDetectionSettings
|
|
9067
|
+
* name: 'projects/my-project/virtualMachineThreatDetectionSettings',
|
|
9068
|
+
* });
|
|
9069
|
+
* console.log(res.data);
|
|
9070
|
+
*
|
|
9071
|
+
* // Example response
|
|
9072
|
+
* // {
|
|
9073
|
+
* // "modules": {},
|
|
9074
|
+
* // "name": "my_name",
|
|
9075
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
9076
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
9077
|
+
* // "updateTime": "my_updateTime"
|
|
9078
|
+
* // }
|
|
9079
|
+
* }
|
|
9080
|
+
*
|
|
9081
|
+
* main().catch(e => {
|
|
9082
|
+
* console.error(e);
|
|
9083
|
+
* throw e;
|
|
9084
|
+
* });
|
|
9085
|
+
*
|
|
9086
|
+
* ```
|
|
6401
9087
|
*
|
|
6402
9088
|
* @param params - Parameters for request
|
|
6403
9089
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6412,6 +9098,55 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6412
9098
|
getVirtualMachineThreatDetectionSettings(callback: BodyResponseCallback<Schema$VirtualMachineThreatDetectionSettings>): void;
|
|
6413
9099
|
/**
|
|
6414
9100
|
* Get the WebSecurityScannerSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetWebSecurityScannerSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateWebSecurityScannerSettings for this purpose.
|
|
9101
|
+
* @example
|
|
9102
|
+
* ```js
|
|
9103
|
+
* // Before running the sample:
|
|
9104
|
+
* // - Enable the API at:
|
|
9105
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
9106
|
+
* // - Login into gcloud by running:
|
|
9107
|
+
* // ```sh
|
|
9108
|
+
* // $ gcloud auth application-default login
|
|
9109
|
+
* // ```
|
|
9110
|
+
* // - Install the npm module by running:
|
|
9111
|
+
* // ```sh
|
|
9112
|
+
* // $ npm install googleapis
|
|
9113
|
+
* // ```
|
|
9114
|
+
*
|
|
9115
|
+
* const {google} = require('googleapis');
|
|
9116
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
9117
|
+
*
|
|
9118
|
+
* async function main() {
|
|
9119
|
+
* const auth = new google.auth.GoogleAuth({
|
|
9120
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
9121
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
9122
|
+
* });
|
|
9123
|
+
*
|
|
9124
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
9125
|
+
* const authClient = await auth.getClient();
|
|
9126
|
+
* google.options({auth: authClient});
|
|
9127
|
+
*
|
|
9128
|
+
* // Do the magic
|
|
9129
|
+
* const res = await securitycenter.projects.getWebSecurityScannerSettings({
|
|
9130
|
+
* // Required. The name of the WebSecurityScannerSettings to retrieve. Formats: * organizations/{organization\}/webSecurityScannerSettings * folders/{folder\}/webSecurityScannerSettings * projects/{project\}/webSecurityScannerSettings
|
|
9131
|
+
* name: 'projects/my-project/webSecurityScannerSettings',
|
|
9132
|
+
* });
|
|
9133
|
+
* console.log(res.data);
|
|
9134
|
+
*
|
|
9135
|
+
* // Example response
|
|
9136
|
+
* // {
|
|
9137
|
+
* // "modules": {},
|
|
9138
|
+
* // "name": "my_name",
|
|
9139
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
9140
|
+
* // "updateTime": "my_updateTime"
|
|
9141
|
+
* // }
|
|
9142
|
+
* }
|
|
9143
|
+
*
|
|
9144
|
+
* main().catch(e => {
|
|
9145
|
+
* console.error(e);
|
|
9146
|
+
* throw e;
|
|
9147
|
+
* });
|
|
9148
|
+
*
|
|
9149
|
+
* ```
|
|
6415
9150
|
*
|
|
6416
9151
|
* @param params - Parameters for request
|
|
6417
9152
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6426,6 +9161,71 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6426
9161
|
getWebSecurityScannerSettings(callback: BodyResponseCallback<Schema$WebSecurityScannerSettings>): void;
|
|
6427
9162
|
/**
|
|
6428
9163
|
* Update the ContainerThreatDetectionSettings resource.
|
|
9164
|
+
* @example
|
|
9165
|
+
* ```js
|
|
9166
|
+
* // Before running the sample:
|
|
9167
|
+
* // - Enable the API at:
|
|
9168
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
9169
|
+
* // - Login into gcloud by running:
|
|
9170
|
+
* // ```sh
|
|
9171
|
+
* // $ gcloud auth application-default login
|
|
9172
|
+
* // ```
|
|
9173
|
+
* // - Install the npm module by running:
|
|
9174
|
+
* // ```sh
|
|
9175
|
+
* // $ npm install googleapis
|
|
9176
|
+
* // ```
|
|
9177
|
+
*
|
|
9178
|
+
* const {google} = require('googleapis');
|
|
9179
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
9180
|
+
*
|
|
9181
|
+
* async function main() {
|
|
9182
|
+
* const auth = new google.auth.GoogleAuth({
|
|
9183
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
9184
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
9185
|
+
* });
|
|
9186
|
+
*
|
|
9187
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
9188
|
+
* const authClient = await auth.getClient();
|
|
9189
|
+
* google.options({auth: authClient});
|
|
9190
|
+
*
|
|
9191
|
+
* // Do the magic
|
|
9192
|
+
* const res =
|
|
9193
|
+
* await securitycenter.projects.updateContainerThreatDetectionSettings({
|
|
9194
|
+
* // Identifier. The resource name of the ContainerThreatDetectionSettings. Formats: * organizations/{organization\}/containerThreatDetectionSettings * folders/{folder\}/containerThreatDetectionSettings * projects/{project\}/containerThreatDetectionSettings * projects/{project\}/locations/{location\}/clusters/{cluster\}/containerThreatDetectionSettings
|
|
9195
|
+
* name: 'projects/my-project/containerThreatDetectionSettings',
|
|
9196
|
+
* // The list of fields to be updated.
|
|
9197
|
+
* updateMask: 'placeholder-value',
|
|
9198
|
+
*
|
|
9199
|
+
* // Request body metadata
|
|
9200
|
+
* requestBody: {
|
|
9201
|
+
* // request body parameters
|
|
9202
|
+
* // {
|
|
9203
|
+
* // "modules": {},
|
|
9204
|
+
* // "name": "my_name",
|
|
9205
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
9206
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
9207
|
+
* // "updateTime": "my_updateTime"
|
|
9208
|
+
* // }
|
|
9209
|
+
* },
|
|
9210
|
+
* });
|
|
9211
|
+
* console.log(res.data);
|
|
9212
|
+
*
|
|
9213
|
+
* // Example response
|
|
9214
|
+
* // {
|
|
9215
|
+
* // "modules": {},
|
|
9216
|
+
* // "name": "my_name",
|
|
9217
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
9218
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
9219
|
+
* // "updateTime": "my_updateTime"
|
|
9220
|
+
* // }
|
|
9221
|
+
* }
|
|
9222
|
+
*
|
|
9223
|
+
* main().catch(e => {
|
|
9224
|
+
* console.error(e);
|
|
9225
|
+
* throw e;
|
|
9226
|
+
* });
|
|
9227
|
+
*
|
|
9228
|
+
* ```
|
|
6429
9229
|
*
|
|
6430
9230
|
* @param params - Parameters for request
|
|
6431
9231
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6440,6 +9240,68 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6440
9240
|
updateContainerThreatDetectionSettings(callback: BodyResponseCallback<Schema$ContainerThreatDetectionSettings>): void;
|
|
6441
9241
|
/**
|
|
6442
9242
|
* Update the EventThreatDetectionSettings resource.
|
|
9243
|
+
* @example
|
|
9244
|
+
* ```js
|
|
9245
|
+
* // Before running the sample:
|
|
9246
|
+
* // - Enable the API at:
|
|
9247
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
9248
|
+
* // - Login into gcloud by running:
|
|
9249
|
+
* // ```sh
|
|
9250
|
+
* // $ gcloud auth application-default login
|
|
9251
|
+
* // ```
|
|
9252
|
+
* // - Install the npm module by running:
|
|
9253
|
+
* // ```sh
|
|
9254
|
+
* // $ npm install googleapis
|
|
9255
|
+
* // ```
|
|
9256
|
+
*
|
|
9257
|
+
* const {google} = require('googleapis');
|
|
9258
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
9259
|
+
*
|
|
9260
|
+
* async function main() {
|
|
9261
|
+
* const auth = new google.auth.GoogleAuth({
|
|
9262
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
9263
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
9264
|
+
* });
|
|
9265
|
+
*
|
|
9266
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
9267
|
+
* const authClient = await auth.getClient();
|
|
9268
|
+
* google.options({auth: authClient});
|
|
9269
|
+
*
|
|
9270
|
+
* // Do the magic
|
|
9271
|
+
* const res = await securitycenter.projects.updateEventThreatDetectionSettings({
|
|
9272
|
+
* // Identifier. The resource name of the EventThreatDetectionSettings. Formats: * organizations/{organization\}/eventThreatDetectionSettings * folders/{folder\}/eventThreatDetectionSettings * projects/{project\}/eventThreatDetectionSettings
|
|
9273
|
+
* name: 'projects/my-project/eventThreatDetectionSettings',
|
|
9274
|
+
* // The list of fields to be updated.
|
|
9275
|
+
* updateMask: 'placeholder-value',
|
|
9276
|
+
*
|
|
9277
|
+
* // Request body metadata
|
|
9278
|
+
* requestBody: {
|
|
9279
|
+
* // request body parameters
|
|
9280
|
+
* // {
|
|
9281
|
+
* // "modules": {},
|
|
9282
|
+
* // "name": "my_name",
|
|
9283
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
9284
|
+
* // "updateTime": "my_updateTime"
|
|
9285
|
+
* // }
|
|
9286
|
+
* },
|
|
9287
|
+
* });
|
|
9288
|
+
* console.log(res.data);
|
|
9289
|
+
*
|
|
9290
|
+
* // Example response
|
|
9291
|
+
* // {
|
|
9292
|
+
* // "modules": {},
|
|
9293
|
+
* // "name": "my_name",
|
|
9294
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
9295
|
+
* // "updateTime": "my_updateTime"
|
|
9296
|
+
* // }
|
|
9297
|
+
* }
|
|
9298
|
+
*
|
|
9299
|
+
* main().catch(e => {
|
|
9300
|
+
* console.error(e);
|
|
9301
|
+
* throw e;
|
|
9302
|
+
* });
|
|
9303
|
+
*
|
|
9304
|
+
* ```
|
|
6443
9305
|
*
|
|
6444
9306
|
* @param params - Parameters for request
|
|
6445
9307
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6454,6 +9316,69 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6454
9316
|
updateEventThreatDetectionSettings(callback: BodyResponseCallback<Schema$EventThreatDetectionSettings>): void;
|
|
6455
9317
|
/**
|
|
6456
9318
|
* Update the RapidVulnerabilityDetectionSettings resource.
|
|
9319
|
+
* @example
|
|
9320
|
+
* ```js
|
|
9321
|
+
* // Before running the sample:
|
|
9322
|
+
* // - Enable the API at:
|
|
9323
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
9324
|
+
* // - Login into gcloud by running:
|
|
9325
|
+
* // ```sh
|
|
9326
|
+
* // $ gcloud auth application-default login
|
|
9327
|
+
* // ```
|
|
9328
|
+
* // - Install the npm module by running:
|
|
9329
|
+
* // ```sh
|
|
9330
|
+
* // $ npm install googleapis
|
|
9331
|
+
* // ```
|
|
9332
|
+
*
|
|
9333
|
+
* const {google} = require('googleapis');
|
|
9334
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
9335
|
+
*
|
|
9336
|
+
* async function main() {
|
|
9337
|
+
* const auth = new google.auth.GoogleAuth({
|
|
9338
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
9339
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
9340
|
+
* });
|
|
9341
|
+
*
|
|
9342
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
9343
|
+
* const authClient = await auth.getClient();
|
|
9344
|
+
* google.options({auth: authClient});
|
|
9345
|
+
*
|
|
9346
|
+
* // Do the magic
|
|
9347
|
+
* const res =
|
|
9348
|
+
* await securitycenter.projects.updateRapidVulnerabilityDetectionSettings({
|
|
9349
|
+
* // The resource name of the RapidVulnerabilityDetectionSettings. Formats: * organizations/{organization\}/rapidVulnerabilityDetectionSettings * folders/{folder\}/rapidVulnerabilityDetectionSettings * projects/{project\}/rapidVulnerabilityDetectionSettings
|
|
9350
|
+
* name: 'projects/my-project/rapidVulnerabilityDetectionSettings',
|
|
9351
|
+
* // The list of fields to be updated.
|
|
9352
|
+
* updateMask: 'placeholder-value',
|
|
9353
|
+
*
|
|
9354
|
+
* // Request body metadata
|
|
9355
|
+
* requestBody: {
|
|
9356
|
+
* // request body parameters
|
|
9357
|
+
* // {
|
|
9358
|
+
* // "modules": {},
|
|
9359
|
+
* // "name": "my_name",
|
|
9360
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
9361
|
+
* // "updateTime": "my_updateTime"
|
|
9362
|
+
* // }
|
|
9363
|
+
* },
|
|
9364
|
+
* });
|
|
9365
|
+
* console.log(res.data);
|
|
9366
|
+
*
|
|
9367
|
+
* // Example response
|
|
9368
|
+
* // {
|
|
9369
|
+
* // "modules": {},
|
|
9370
|
+
* // "name": "my_name",
|
|
9371
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
9372
|
+
* // "updateTime": "my_updateTime"
|
|
9373
|
+
* // }
|
|
9374
|
+
* }
|
|
9375
|
+
*
|
|
9376
|
+
* main().catch(e => {
|
|
9377
|
+
* console.error(e);
|
|
9378
|
+
* throw e;
|
|
9379
|
+
* });
|
|
9380
|
+
*
|
|
9381
|
+
* ```
|
|
6457
9382
|
*
|
|
6458
9383
|
* @param params - Parameters for request
|
|
6459
9384
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6468,6 +9393,71 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6468
9393
|
updateRapidVulnerabilityDetectionSettings(callback: BodyResponseCallback<Schema$RapidVulnerabilityDetectionSettings>): void;
|
|
6469
9394
|
/**
|
|
6470
9395
|
* Update the SecurityHealthAnalyticsSettings resource.
|
|
9396
|
+
* @example
|
|
9397
|
+
* ```js
|
|
9398
|
+
* // Before running the sample:
|
|
9399
|
+
* // - Enable the API at:
|
|
9400
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
9401
|
+
* // - Login into gcloud by running:
|
|
9402
|
+
* // ```sh
|
|
9403
|
+
* // $ gcloud auth application-default login
|
|
9404
|
+
* // ```
|
|
9405
|
+
* // - Install the npm module by running:
|
|
9406
|
+
* // ```sh
|
|
9407
|
+
* // $ npm install googleapis
|
|
9408
|
+
* // ```
|
|
9409
|
+
*
|
|
9410
|
+
* const {google} = require('googleapis');
|
|
9411
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
9412
|
+
*
|
|
9413
|
+
* async function main() {
|
|
9414
|
+
* const auth = new google.auth.GoogleAuth({
|
|
9415
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
9416
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
9417
|
+
* });
|
|
9418
|
+
*
|
|
9419
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
9420
|
+
* const authClient = await auth.getClient();
|
|
9421
|
+
* google.options({auth: authClient});
|
|
9422
|
+
*
|
|
9423
|
+
* // Do the magic
|
|
9424
|
+
* const res =
|
|
9425
|
+
* await securitycenter.projects.updateSecurityHealthAnalyticsSettings({
|
|
9426
|
+
* // Identifier. The resource name of the SecurityHealthAnalyticsSettings. Formats: * organizations/{organization\}/securityHealthAnalyticsSettings * folders/{folder\}/securityHealthAnalyticsSettings * projects/{project\}/securityHealthAnalyticsSettings
|
|
9427
|
+
* name: 'projects/my-project/securityHealthAnalyticsSettings',
|
|
9428
|
+
* // The list of fields to be updated.
|
|
9429
|
+
* updateMask: 'placeholder-value',
|
|
9430
|
+
*
|
|
9431
|
+
* // Request body metadata
|
|
9432
|
+
* requestBody: {
|
|
9433
|
+
* // request body parameters
|
|
9434
|
+
* // {
|
|
9435
|
+
* // "modules": {},
|
|
9436
|
+
* // "name": "my_name",
|
|
9437
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
9438
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
9439
|
+
* // "updateTime": "my_updateTime"
|
|
9440
|
+
* // }
|
|
9441
|
+
* },
|
|
9442
|
+
* });
|
|
9443
|
+
* console.log(res.data);
|
|
9444
|
+
*
|
|
9445
|
+
* // Example response
|
|
9446
|
+
* // {
|
|
9447
|
+
* // "modules": {},
|
|
9448
|
+
* // "name": "my_name",
|
|
9449
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
9450
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
9451
|
+
* // "updateTime": "my_updateTime"
|
|
9452
|
+
* // }
|
|
9453
|
+
* }
|
|
9454
|
+
*
|
|
9455
|
+
* main().catch(e => {
|
|
9456
|
+
* console.error(e);
|
|
9457
|
+
* throw e;
|
|
9458
|
+
* });
|
|
9459
|
+
*
|
|
9460
|
+
* ```
|
|
6471
9461
|
*
|
|
6472
9462
|
* @param params - Parameters for request
|
|
6473
9463
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6482,6 +9472,71 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6482
9472
|
updateSecurityHealthAnalyticsSettings(callback: BodyResponseCallback<Schema$SecurityHealthAnalyticsSettings>): void;
|
|
6483
9473
|
/**
|
|
6484
9474
|
* Update the VirtualMachineThreatDetectionSettings resource.
|
|
9475
|
+
* @example
|
|
9476
|
+
* ```js
|
|
9477
|
+
* // Before running the sample:
|
|
9478
|
+
* // - Enable the API at:
|
|
9479
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
9480
|
+
* // - Login into gcloud by running:
|
|
9481
|
+
* // ```sh
|
|
9482
|
+
* // $ gcloud auth application-default login
|
|
9483
|
+
* // ```
|
|
9484
|
+
* // - Install the npm module by running:
|
|
9485
|
+
* // ```sh
|
|
9486
|
+
* // $ npm install googleapis
|
|
9487
|
+
* // ```
|
|
9488
|
+
*
|
|
9489
|
+
* const {google} = require('googleapis');
|
|
9490
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
9491
|
+
*
|
|
9492
|
+
* async function main() {
|
|
9493
|
+
* const auth = new google.auth.GoogleAuth({
|
|
9494
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
9495
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
9496
|
+
* });
|
|
9497
|
+
*
|
|
9498
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
9499
|
+
* const authClient = await auth.getClient();
|
|
9500
|
+
* google.options({auth: authClient});
|
|
9501
|
+
*
|
|
9502
|
+
* // Do the magic
|
|
9503
|
+
* const res =
|
|
9504
|
+
* await securitycenter.projects.updateVirtualMachineThreatDetectionSettings({
|
|
9505
|
+
* // Identifier. The resource name of the VirtualMachineThreatDetectionSettings. Formats: * organizations/{organization\}/virtualMachineThreatDetectionSettings * folders/{folder\}/virtualMachineThreatDetectionSettings * projects/{project\}/virtualMachineThreatDetectionSettings
|
|
9506
|
+
* name: 'projects/my-project/virtualMachineThreatDetectionSettings',
|
|
9507
|
+
* // The list of fields to be updated.
|
|
9508
|
+
* updateMask: 'placeholder-value',
|
|
9509
|
+
*
|
|
9510
|
+
* // Request body metadata
|
|
9511
|
+
* requestBody: {
|
|
9512
|
+
* // request body parameters
|
|
9513
|
+
* // {
|
|
9514
|
+
* // "modules": {},
|
|
9515
|
+
* // "name": "my_name",
|
|
9516
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
9517
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
9518
|
+
* // "updateTime": "my_updateTime"
|
|
9519
|
+
* // }
|
|
9520
|
+
* },
|
|
9521
|
+
* });
|
|
9522
|
+
* console.log(res.data);
|
|
9523
|
+
*
|
|
9524
|
+
* // Example response
|
|
9525
|
+
* // {
|
|
9526
|
+
* // "modules": {},
|
|
9527
|
+
* // "name": "my_name",
|
|
9528
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
9529
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
9530
|
+
* // "updateTime": "my_updateTime"
|
|
9531
|
+
* // }
|
|
9532
|
+
* }
|
|
9533
|
+
*
|
|
9534
|
+
* main().catch(e => {
|
|
9535
|
+
* console.error(e);
|
|
9536
|
+
* throw e;
|
|
9537
|
+
* });
|
|
9538
|
+
*
|
|
9539
|
+
* ```
|
|
6485
9540
|
*
|
|
6486
9541
|
* @param params - Parameters for request
|
|
6487
9542
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6496,6 +9551,68 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6496
9551
|
updateVirtualMachineThreatDetectionSettings(callback: BodyResponseCallback<Schema$VirtualMachineThreatDetectionSettings>): void;
|
|
6497
9552
|
/**
|
|
6498
9553
|
* Update the WebSecurityScannerSettings resource.
|
|
9554
|
+
* @example
|
|
9555
|
+
* ```js
|
|
9556
|
+
* // Before running the sample:
|
|
9557
|
+
* // - Enable the API at:
|
|
9558
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
9559
|
+
* // - Login into gcloud by running:
|
|
9560
|
+
* // ```sh
|
|
9561
|
+
* // $ gcloud auth application-default login
|
|
9562
|
+
* // ```
|
|
9563
|
+
* // - Install the npm module by running:
|
|
9564
|
+
* // ```sh
|
|
9565
|
+
* // $ npm install googleapis
|
|
9566
|
+
* // ```
|
|
9567
|
+
*
|
|
9568
|
+
* const {google} = require('googleapis');
|
|
9569
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
9570
|
+
*
|
|
9571
|
+
* async function main() {
|
|
9572
|
+
* const auth = new google.auth.GoogleAuth({
|
|
9573
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
9574
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
9575
|
+
* });
|
|
9576
|
+
*
|
|
9577
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
9578
|
+
* const authClient = await auth.getClient();
|
|
9579
|
+
* google.options({auth: authClient});
|
|
9580
|
+
*
|
|
9581
|
+
* // Do the magic
|
|
9582
|
+
* const res = await securitycenter.projects.updateWebSecurityScannerSettings({
|
|
9583
|
+
* // Identifier. The resource name of the WebSecurityScannerSettings. Formats: * organizations/{organization\}/webSecurityScannerSettings * folders/{folder\}/webSecurityScannerSettings * projects/{project\}/webSecurityScannerSettings
|
|
9584
|
+
* name: 'projects/my-project/webSecurityScannerSettings',
|
|
9585
|
+
* // The list of fields to be updated.
|
|
9586
|
+
* updateMask: 'placeholder-value',
|
|
9587
|
+
*
|
|
9588
|
+
* // Request body metadata
|
|
9589
|
+
* requestBody: {
|
|
9590
|
+
* // request body parameters
|
|
9591
|
+
* // {
|
|
9592
|
+
* // "modules": {},
|
|
9593
|
+
* // "name": "my_name",
|
|
9594
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
9595
|
+
* // "updateTime": "my_updateTime"
|
|
9596
|
+
* // }
|
|
9597
|
+
* },
|
|
9598
|
+
* });
|
|
9599
|
+
* console.log(res.data);
|
|
9600
|
+
*
|
|
9601
|
+
* // Example response
|
|
9602
|
+
* // {
|
|
9603
|
+
* // "modules": {},
|
|
9604
|
+
* // "name": "my_name",
|
|
9605
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
9606
|
+
* // "updateTime": "my_updateTime"
|
|
9607
|
+
* // }
|
|
9608
|
+
* }
|
|
9609
|
+
*
|
|
9610
|
+
* main().catch(e => {
|
|
9611
|
+
* console.error(e);
|
|
9612
|
+
* throw e;
|
|
9613
|
+
* });
|
|
9614
|
+
*
|
|
9615
|
+
* ```
|
|
6499
9616
|
*
|
|
6500
9617
|
* @param params - Parameters for request
|
|
6501
9618
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6640,6 +9757,59 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6640
9757
|
constructor(context: APIRequestContext);
|
|
6641
9758
|
/**
|
|
6642
9759
|
* Calculates the effective ContainerThreatDetectionSettings based on its level in the resource hierarchy and its settings. Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings). The default SCC setting for the detector service defaults can be overridden at organization, folder and project levels. No assumptions should be made about the SCC defaults as it is considered an internal implementation detail.
|
|
9760
|
+
* @example
|
|
9761
|
+
* ```js
|
|
9762
|
+
* // Before running the sample:
|
|
9763
|
+
* // - Enable the API at:
|
|
9764
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
9765
|
+
* // - Login into gcloud by running:
|
|
9766
|
+
* // ```sh
|
|
9767
|
+
* // $ gcloud auth application-default login
|
|
9768
|
+
* // ```
|
|
9769
|
+
* // - Install the npm module by running:
|
|
9770
|
+
* // ```sh
|
|
9771
|
+
* // $ npm install googleapis
|
|
9772
|
+
* // ```
|
|
9773
|
+
*
|
|
9774
|
+
* const {google} = require('googleapis');
|
|
9775
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
9776
|
+
*
|
|
9777
|
+
* async function main() {
|
|
9778
|
+
* const auth = new google.auth.GoogleAuth({
|
|
9779
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
9780
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
9781
|
+
* });
|
|
9782
|
+
*
|
|
9783
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
9784
|
+
* const authClient = await auth.getClient();
|
|
9785
|
+
* google.options({auth: authClient});
|
|
9786
|
+
*
|
|
9787
|
+
* // Do the magic
|
|
9788
|
+
* const res =
|
|
9789
|
+
* await securitycenter.projects.containerThreatDetectionSettings.calculate({
|
|
9790
|
+
* // Required. The name of the ContainerThreatDetectionSettings to calculate. Formats: * organizations/{organization\}/containerThreatDetectionSettings * folders/{folder\}/containerThreatDetectionSettings * projects/{project\}/containerThreatDetectionSettings * projects/{project\}/locations/{location\}/clusters/{cluster\}/containerThreatDetectionSettings
|
|
9791
|
+
* name: 'projects/my-project/containerThreatDetectionSettings',
|
|
9792
|
+
* // Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.
|
|
9793
|
+
* showEligibleModulesOnly: 'placeholder-value',
|
|
9794
|
+
* });
|
|
9795
|
+
* console.log(res.data);
|
|
9796
|
+
*
|
|
9797
|
+
* // Example response
|
|
9798
|
+
* // {
|
|
9799
|
+
* // "modules": {},
|
|
9800
|
+
* // "name": "my_name",
|
|
9801
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
9802
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
9803
|
+
* // "updateTime": "my_updateTime"
|
|
9804
|
+
* // }
|
|
9805
|
+
* }
|
|
9806
|
+
*
|
|
9807
|
+
* main().catch(e => {
|
|
9808
|
+
* console.error(e);
|
|
9809
|
+
* throw e;
|
|
9810
|
+
* });
|
|
9811
|
+
*
|
|
9812
|
+
* ```
|
|
6643
9813
|
*
|
|
6644
9814
|
* @param params - Parameters for request
|
|
6645
9815
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6668,6 +9838,58 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6668
9838
|
constructor(context: APIRequestContext);
|
|
6669
9839
|
/**
|
|
6670
9840
|
* Calculates the effective EventThreatDetectionSettings based on its level in the resource hierarchy and its settings. Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings). The default SCC setting for the detector service defaults can be overridden at organization, folder and project levels. No assumptions should be made about the SCC defaults as it is considered an internal implementation detail.
|
|
9841
|
+
* @example
|
|
9842
|
+
* ```js
|
|
9843
|
+
* // Before running the sample:
|
|
9844
|
+
* // - Enable the API at:
|
|
9845
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
9846
|
+
* // - Login into gcloud by running:
|
|
9847
|
+
* // ```sh
|
|
9848
|
+
* // $ gcloud auth application-default login
|
|
9849
|
+
* // ```
|
|
9850
|
+
* // - Install the npm module by running:
|
|
9851
|
+
* // ```sh
|
|
9852
|
+
* // $ npm install googleapis
|
|
9853
|
+
* // ```
|
|
9854
|
+
*
|
|
9855
|
+
* const {google} = require('googleapis');
|
|
9856
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
9857
|
+
*
|
|
9858
|
+
* async function main() {
|
|
9859
|
+
* const auth = new google.auth.GoogleAuth({
|
|
9860
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
9861
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
9862
|
+
* });
|
|
9863
|
+
*
|
|
9864
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
9865
|
+
* const authClient = await auth.getClient();
|
|
9866
|
+
* google.options({auth: authClient});
|
|
9867
|
+
*
|
|
9868
|
+
* // Do the magic
|
|
9869
|
+
* const res =
|
|
9870
|
+
* await securitycenter.projects.eventThreatDetectionSettings.calculate({
|
|
9871
|
+
* // Required. The name of the EventThreatDetectionSettings to calculate. Formats: * organizations/{organization\}/eventThreatDetectionSettings * folders/{folder\}/eventThreatDetectionSettings * projects/{project\}/eventThreatDetectionSettings
|
|
9872
|
+
* name: 'projects/my-project/eventThreatDetectionSettings',
|
|
9873
|
+
* // Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.
|
|
9874
|
+
* showEligibleModulesOnly: 'placeholder-value',
|
|
9875
|
+
* });
|
|
9876
|
+
* console.log(res.data);
|
|
9877
|
+
*
|
|
9878
|
+
* // Example response
|
|
9879
|
+
* // {
|
|
9880
|
+
* // "modules": {},
|
|
9881
|
+
* // "name": "my_name",
|
|
9882
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
9883
|
+
* // "updateTime": "my_updateTime"
|
|
9884
|
+
* // }
|
|
9885
|
+
* }
|
|
9886
|
+
*
|
|
9887
|
+
* main().catch(e => {
|
|
9888
|
+
* console.error(e);
|
|
9889
|
+
* throw e;
|
|
9890
|
+
* });
|
|
9891
|
+
*
|
|
9892
|
+
* ```
|
|
6671
9893
|
*
|
|
6672
9894
|
* @param params - Parameters for request
|
|
6673
9895
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6702,6 +9924,59 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6702
9924
|
constructor(context: APIRequestContext);
|
|
6703
9925
|
/**
|
|
6704
9926
|
* Get the ContainerThreatDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetContainerThreatDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateContainerThreatDetectionSettings for this purpose.
|
|
9927
|
+
* @example
|
|
9928
|
+
* ```js
|
|
9929
|
+
* // Before running the sample:
|
|
9930
|
+
* // - Enable the API at:
|
|
9931
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
9932
|
+
* // - Login into gcloud by running:
|
|
9933
|
+
* // ```sh
|
|
9934
|
+
* // $ gcloud auth application-default login
|
|
9935
|
+
* // ```
|
|
9936
|
+
* // - Install the npm module by running:
|
|
9937
|
+
* // ```sh
|
|
9938
|
+
* // $ npm install googleapis
|
|
9939
|
+
* // ```
|
|
9940
|
+
*
|
|
9941
|
+
* const {google} = require('googleapis');
|
|
9942
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
9943
|
+
*
|
|
9944
|
+
* async function main() {
|
|
9945
|
+
* const auth = new google.auth.GoogleAuth({
|
|
9946
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
9947
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
9948
|
+
* });
|
|
9949
|
+
*
|
|
9950
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
9951
|
+
* const authClient = await auth.getClient();
|
|
9952
|
+
* google.options({auth: authClient});
|
|
9953
|
+
*
|
|
9954
|
+
* // Do the magic
|
|
9955
|
+
* const res =
|
|
9956
|
+
* await securitycenter.projects.locations.clusters.getContainerThreatDetectionSettings(
|
|
9957
|
+
* {
|
|
9958
|
+
* // Required. The name of the ContainerThreatDetectionSettings to retrieve. Formats: * organizations/{organization\}/containerThreatDetectionSettings * folders/{folder\}/containerThreatDetectionSettings * projects/{project\}/containerThreatDetectionSettings * projects/{project\}/locations/{location\}/clusters/{cluster\}/containerThreatDetectionSettings
|
|
9959
|
+
* name: 'projects/my-project/locations/my-location/clusters/my-cluster/containerThreatDetectionSettings',
|
|
9960
|
+
* },
|
|
9961
|
+
* );
|
|
9962
|
+
* console.log(res.data);
|
|
9963
|
+
*
|
|
9964
|
+
* // Example response
|
|
9965
|
+
* // {
|
|
9966
|
+
* // "modules": {},
|
|
9967
|
+
* // "name": "my_name",
|
|
9968
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
9969
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
9970
|
+
* // "updateTime": "my_updateTime"
|
|
9971
|
+
* // }
|
|
9972
|
+
* }
|
|
9973
|
+
*
|
|
9974
|
+
* main().catch(e => {
|
|
9975
|
+
* console.error(e);
|
|
9976
|
+
* throw e;
|
|
9977
|
+
* });
|
|
9978
|
+
*
|
|
9979
|
+
* ```
|
|
6705
9980
|
*
|
|
6706
9981
|
* @param params - Parameters for request
|
|
6707
9982
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6716,6 +9991,73 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6716
9991
|
getContainerThreatDetectionSettings(callback: BodyResponseCallback<Schema$ContainerThreatDetectionSettings>): void;
|
|
6717
9992
|
/**
|
|
6718
9993
|
* Update the ContainerThreatDetectionSettings resource.
|
|
9994
|
+
* @example
|
|
9995
|
+
* ```js
|
|
9996
|
+
* // Before running the sample:
|
|
9997
|
+
* // - Enable the API at:
|
|
9998
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
9999
|
+
* // - Login into gcloud by running:
|
|
10000
|
+
* // ```sh
|
|
10001
|
+
* // $ gcloud auth application-default login
|
|
10002
|
+
* // ```
|
|
10003
|
+
* // - Install the npm module by running:
|
|
10004
|
+
* // ```sh
|
|
10005
|
+
* // $ npm install googleapis
|
|
10006
|
+
* // ```
|
|
10007
|
+
*
|
|
10008
|
+
* const {google} = require('googleapis');
|
|
10009
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
10010
|
+
*
|
|
10011
|
+
* async function main() {
|
|
10012
|
+
* const auth = new google.auth.GoogleAuth({
|
|
10013
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
10014
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
10015
|
+
* });
|
|
10016
|
+
*
|
|
10017
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
10018
|
+
* const authClient = await auth.getClient();
|
|
10019
|
+
* google.options({auth: authClient});
|
|
10020
|
+
*
|
|
10021
|
+
* // Do the magic
|
|
10022
|
+
* const res =
|
|
10023
|
+
* await securitycenter.projects.locations.clusters.updateContainerThreatDetectionSettings(
|
|
10024
|
+
* {
|
|
10025
|
+
* // Identifier. The resource name of the ContainerThreatDetectionSettings. Formats: * organizations/{organization\}/containerThreatDetectionSettings * folders/{folder\}/containerThreatDetectionSettings * projects/{project\}/containerThreatDetectionSettings * projects/{project\}/locations/{location\}/clusters/{cluster\}/containerThreatDetectionSettings
|
|
10026
|
+
* name: 'projects/my-project/locations/my-location/clusters/my-cluster/containerThreatDetectionSettings',
|
|
10027
|
+
* // The list of fields to be updated.
|
|
10028
|
+
* updateMask: 'placeholder-value',
|
|
10029
|
+
*
|
|
10030
|
+
* // Request body metadata
|
|
10031
|
+
* requestBody: {
|
|
10032
|
+
* // request body parameters
|
|
10033
|
+
* // {
|
|
10034
|
+
* // "modules": {},
|
|
10035
|
+
* // "name": "my_name",
|
|
10036
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
10037
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
10038
|
+
* // "updateTime": "my_updateTime"
|
|
10039
|
+
* // }
|
|
10040
|
+
* },
|
|
10041
|
+
* },
|
|
10042
|
+
* );
|
|
10043
|
+
* console.log(res.data);
|
|
10044
|
+
*
|
|
10045
|
+
* // Example response
|
|
10046
|
+
* // {
|
|
10047
|
+
* // "modules": {},
|
|
10048
|
+
* // "name": "my_name",
|
|
10049
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
10050
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
10051
|
+
* // "updateTime": "my_updateTime"
|
|
10052
|
+
* // }
|
|
10053
|
+
* }
|
|
10054
|
+
*
|
|
10055
|
+
* main().catch(e => {
|
|
10056
|
+
* console.error(e);
|
|
10057
|
+
* throw e;
|
|
10058
|
+
* });
|
|
10059
|
+
*
|
|
10060
|
+
* ```
|
|
6719
10061
|
*
|
|
6720
10062
|
* @param params - Parameters for request
|
|
6721
10063
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6754,6 +10096,61 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6754
10096
|
constructor(context: APIRequestContext);
|
|
6755
10097
|
/**
|
|
6756
10098
|
* Calculates the effective ContainerThreatDetectionSettings based on its level in the resource hierarchy and its settings. Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings). The default SCC setting for the detector service defaults can be overridden at organization, folder and project levels. No assumptions should be made about the SCC defaults as it is considered an internal implementation detail.
|
|
10099
|
+
* @example
|
|
10100
|
+
* ```js
|
|
10101
|
+
* // Before running the sample:
|
|
10102
|
+
* // - Enable the API at:
|
|
10103
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
10104
|
+
* // - Login into gcloud by running:
|
|
10105
|
+
* // ```sh
|
|
10106
|
+
* // $ gcloud auth application-default login
|
|
10107
|
+
* // ```
|
|
10108
|
+
* // - Install the npm module by running:
|
|
10109
|
+
* // ```sh
|
|
10110
|
+
* // $ npm install googleapis
|
|
10111
|
+
* // ```
|
|
10112
|
+
*
|
|
10113
|
+
* const {google} = require('googleapis');
|
|
10114
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
10115
|
+
*
|
|
10116
|
+
* async function main() {
|
|
10117
|
+
* const auth = new google.auth.GoogleAuth({
|
|
10118
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
10119
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
10120
|
+
* });
|
|
10121
|
+
*
|
|
10122
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
10123
|
+
* const authClient = await auth.getClient();
|
|
10124
|
+
* google.options({auth: authClient});
|
|
10125
|
+
*
|
|
10126
|
+
* // Do the magic
|
|
10127
|
+
* const res =
|
|
10128
|
+
* await securitycenter.projects.locations.clusters.containerThreatDetectionSettings.calculate(
|
|
10129
|
+
* {
|
|
10130
|
+
* // Required. The name of the ContainerThreatDetectionSettings to calculate. Formats: * organizations/{organization\}/containerThreatDetectionSettings * folders/{folder\}/containerThreatDetectionSettings * projects/{project\}/containerThreatDetectionSettings * projects/{project\}/locations/{location\}/clusters/{cluster\}/containerThreatDetectionSettings
|
|
10131
|
+
* name: 'projects/my-project/locations/my-location/clusters/my-cluster/containerThreatDetectionSettings',
|
|
10132
|
+
* // Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.
|
|
10133
|
+
* showEligibleModulesOnly: 'placeholder-value',
|
|
10134
|
+
* },
|
|
10135
|
+
* );
|
|
10136
|
+
* console.log(res.data);
|
|
10137
|
+
*
|
|
10138
|
+
* // Example response
|
|
10139
|
+
* // {
|
|
10140
|
+
* // "modules": {},
|
|
10141
|
+
* // "name": "my_name",
|
|
10142
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
10143
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
10144
|
+
* // "updateTime": "my_updateTime"
|
|
10145
|
+
* // }
|
|
10146
|
+
* }
|
|
10147
|
+
*
|
|
10148
|
+
* main().catch(e => {
|
|
10149
|
+
* console.error(e);
|
|
10150
|
+
* throw e;
|
|
10151
|
+
* });
|
|
10152
|
+
*
|
|
10153
|
+
* ```
|
|
6757
10154
|
*
|
|
6758
10155
|
* @param params - Parameters for request
|
|
6759
10156
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6782,6 +10179,58 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6782
10179
|
constructor(context: APIRequestContext);
|
|
6783
10180
|
/**
|
|
6784
10181
|
* Calculates the effective RapidVulnerabilityDetectionSettings based on its level in the resource hierarchy and its settings. Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings). The default SCC setting for the detector service defaults can be overridden at organization, folder and project levels. No assumptions should be made about the SCC defaults as it is considered an internal implementation detail.
|
|
10182
|
+
* @example
|
|
10183
|
+
* ```js
|
|
10184
|
+
* // Before running the sample:
|
|
10185
|
+
* // - Enable the API at:
|
|
10186
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
10187
|
+
* // - Login into gcloud by running:
|
|
10188
|
+
* // ```sh
|
|
10189
|
+
* // $ gcloud auth application-default login
|
|
10190
|
+
* // ```
|
|
10191
|
+
* // - Install the npm module by running:
|
|
10192
|
+
* // ```sh
|
|
10193
|
+
* // $ npm install googleapis
|
|
10194
|
+
* // ```
|
|
10195
|
+
*
|
|
10196
|
+
* const {google} = require('googleapis');
|
|
10197
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
10198
|
+
*
|
|
10199
|
+
* async function main() {
|
|
10200
|
+
* const auth = new google.auth.GoogleAuth({
|
|
10201
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
10202
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
10203
|
+
* });
|
|
10204
|
+
*
|
|
10205
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
10206
|
+
* const authClient = await auth.getClient();
|
|
10207
|
+
* google.options({auth: authClient});
|
|
10208
|
+
*
|
|
10209
|
+
* // Do the magic
|
|
10210
|
+
* const res =
|
|
10211
|
+
* await securitycenter.projects.rapidVulnerabilityDetectionSettings.calculate(
|
|
10212
|
+
* {
|
|
10213
|
+
* // Required. The name of the RapidVulnerabilityDetectionSettings to calculate. Formats: * organizations/{organization\}/rapidVulnerabilityDetectionSettings * folders/{folder\}/rapidVulnerabilityDetectionSettings * projects/{project\}/rapidVulnerabilityDetectionSettings
|
|
10214
|
+
* name: 'projects/my-project/rapidVulnerabilityDetectionSettings',
|
|
10215
|
+
* },
|
|
10216
|
+
* );
|
|
10217
|
+
* console.log(res.data);
|
|
10218
|
+
*
|
|
10219
|
+
* // Example response
|
|
10220
|
+
* // {
|
|
10221
|
+
* // "modules": {},
|
|
10222
|
+
* // "name": "my_name",
|
|
10223
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
10224
|
+
* // "updateTime": "my_updateTime"
|
|
10225
|
+
* // }
|
|
10226
|
+
* }
|
|
10227
|
+
*
|
|
10228
|
+
* main().catch(e => {
|
|
10229
|
+
* console.error(e);
|
|
10230
|
+
* throw e;
|
|
10231
|
+
* });
|
|
10232
|
+
*
|
|
10233
|
+
* ```
|
|
6785
10234
|
*
|
|
6786
10235
|
* @param params - Parameters for request
|
|
6787
10236
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6806,6 +10255,59 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6806
10255
|
constructor(context: APIRequestContext);
|
|
6807
10256
|
/**
|
|
6808
10257
|
* Calculates the effective SecurityHealthAnalyticsSettings based on its level in the resource hierarchy and its settings. Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings). The default SCC setting for the detector service defaults can be overridden at organization, folder and project levels. No assumptions should be made about the SCC defaults as it is considered an internal implementation detail.
|
|
10258
|
+
* @example
|
|
10259
|
+
* ```js
|
|
10260
|
+
* // Before running the sample:
|
|
10261
|
+
* // - Enable the API at:
|
|
10262
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
10263
|
+
* // - Login into gcloud by running:
|
|
10264
|
+
* // ```sh
|
|
10265
|
+
* // $ gcloud auth application-default login
|
|
10266
|
+
* // ```
|
|
10267
|
+
* // - Install the npm module by running:
|
|
10268
|
+
* // ```sh
|
|
10269
|
+
* // $ npm install googleapis
|
|
10270
|
+
* // ```
|
|
10271
|
+
*
|
|
10272
|
+
* const {google} = require('googleapis');
|
|
10273
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
10274
|
+
*
|
|
10275
|
+
* async function main() {
|
|
10276
|
+
* const auth = new google.auth.GoogleAuth({
|
|
10277
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
10278
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
10279
|
+
* });
|
|
10280
|
+
*
|
|
10281
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
10282
|
+
* const authClient = await auth.getClient();
|
|
10283
|
+
* google.options({auth: authClient});
|
|
10284
|
+
*
|
|
10285
|
+
* // Do the magic
|
|
10286
|
+
* const res =
|
|
10287
|
+
* await securitycenter.projects.securityHealthAnalyticsSettings.calculate({
|
|
10288
|
+
* // Required. The name of the SecurityHealthAnalyticsSettings to calculate. Formats: * organizations/{organization\}/securityHealthAnalyticsSettings * folders/{folder\}/securityHealthAnalyticsSettings * projects/{project\}/securityHealthAnalyticsSettings
|
|
10289
|
+
* name: 'projects/my-project/securityHealthAnalyticsSettings',
|
|
10290
|
+
* // Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.
|
|
10291
|
+
* showEligibleModulesOnly: 'placeholder-value',
|
|
10292
|
+
* });
|
|
10293
|
+
* console.log(res.data);
|
|
10294
|
+
*
|
|
10295
|
+
* // Example response
|
|
10296
|
+
* // {
|
|
10297
|
+
* // "modules": {},
|
|
10298
|
+
* // "name": "my_name",
|
|
10299
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
10300
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
10301
|
+
* // "updateTime": "my_updateTime"
|
|
10302
|
+
* // }
|
|
10303
|
+
* }
|
|
10304
|
+
*
|
|
10305
|
+
* main().catch(e => {
|
|
10306
|
+
* console.error(e);
|
|
10307
|
+
* throw e;
|
|
10308
|
+
* });
|
|
10309
|
+
*
|
|
10310
|
+
* ```
|
|
6809
10311
|
*
|
|
6810
10312
|
* @param params - Parameters for request
|
|
6811
10313
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6834,6 +10336,61 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6834
10336
|
constructor(context: APIRequestContext);
|
|
6835
10337
|
/**
|
|
6836
10338
|
* Calculates the effective VirtualMachineThreatDetectionSettings based on its level in the resource hierarchy and its settings. Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings). The default SCC setting for the detector service defaults can be overridden at organization, folder and project levels. No assumptions should be made about the SCC defaults as it is considered an internal implementation detail.
|
|
10339
|
+
* @example
|
|
10340
|
+
* ```js
|
|
10341
|
+
* // Before running the sample:
|
|
10342
|
+
* // - Enable the API at:
|
|
10343
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
10344
|
+
* // - Login into gcloud by running:
|
|
10345
|
+
* // ```sh
|
|
10346
|
+
* // $ gcloud auth application-default login
|
|
10347
|
+
* // ```
|
|
10348
|
+
* // - Install the npm module by running:
|
|
10349
|
+
* // ```sh
|
|
10350
|
+
* // $ npm install googleapis
|
|
10351
|
+
* // ```
|
|
10352
|
+
*
|
|
10353
|
+
* const {google} = require('googleapis');
|
|
10354
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
10355
|
+
*
|
|
10356
|
+
* async function main() {
|
|
10357
|
+
* const auth = new google.auth.GoogleAuth({
|
|
10358
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
10359
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
10360
|
+
* });
|
|
10361
|
+
*
|
|
10362
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
10363
|
+
* const authClient = await auth.getClient();
|
|
10364
|
+
* google.options({auth: authClient});
|
|
10365
|
+
*
|
|
10366
|
+
* // Do the magic
|
|
10367
|
+
* const res =
|
|
10368
|
+
* await securitycenter.projects.virtualMachineThreatDetectionSettings.calculate(
|
|
10369
|
+
* {
|
|
10370
|
+
* // Required. The name of the VirtualMachineThreatDetectionSettings to calculate. Formats: * organizations/{organization\}/virtualMachineThreatDetectionSettings * folders/{folder\}/virtualMachineThreatDetectionSettings * projects/{project\}/virtualMachineThreatDetectionSettings
|
|
10371
|
+
* name: 'projects/my-project/virtualMachineThreatDetectionSettings',
|
|
10372
|
+
* // Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.
|
|
10373
|
+
* showEligibleModulesOnly: 'placeholder-value',
|
|
10374
|
+
* },
|
|
10375
|
+
* );
|
|
10376
|
+
* console.log(res.data);
|
|
10377
|
+
*
|
|
10378
|
+
* // Example response
|
|
10379
|
+
* // {
|
|
10380
|
+
* // "modules": {},
|
|
10381
|
+
* // "name": "my_name",
|
|
10382
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
10383
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
10384
|
+
* // "updateTime": "my_updateTime"
|
|
10385
|
+
* // }
|
|
10386
|
+
* }
|
|
10387
|
+
*
|
|
10388
|
+
* main().catch(e => {
|
|
10389
|
+
* console.error(e);
|
|
10390
|
+
* throw e;
|
|
10391
|
+
* });
|
|
10392
|
+
*
|
|
10393
|
+
* ```
|
|
6837
10394
|
*
|
|
6838
10395
|
* @param params - Parameters for request
|
|
6839
10396
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6862,6 +10419,58 @@ export declare namespace securitycenter_v1beta2 {
|
|
|
6862
10419
|
constructor(context: APIRequestContext);
|
|
6863
10420
|
/**
|
|
6864
10421
|
* Calculates the effective WebSecurityScannerSettings based on its level in the resource hierarchy and its settings. Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings). The default SCC setting for the detector service defaults can be overridden at organization, folder and project levels. No assumptions should be made about the SCC defaults as it is considered an internal implementation detail.
|
|
10422
|
+
* @example
|
|
10423
|
+
* ```js
|
|
10424
|
+
* // Before running the sample:
|
|
10425
|
+
* // - Enable the API at:
|
|
10426
|
+
* // https://console.developers.google.com/apis/api/securitycenter.googleapis.com
|
|
10427
|
+
* // - Login into gcloud by running:
|
|
10428
|
+
* // ```sh
|
|
10429
|
+
* // $ gcloud auth application-default login
|
|
10430
|
+
* // ```
|
|
10431
|
+
* // - Install the npm module by running:
|
|
10432
|
+
* // ```sh
|
|
10433
|
+
* // $ npm install googleapis
|
|
10434
|
+
* // ```
|
|
10435
|
+
*
|
|
10436
|
+
* const {google} = require('googleapis');
|
|
10437
|
+
* const securitycenter = google.securitycenter('v1beta2');
|
|
10438
|
+
*
|
|
10439
|
+
* async function main() {
|
|
10440
|
+
* const auth = new google.auth.GoogleAuth({
|
|
10441
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
10442
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
10443
|
+
* });
|
|
10444
|
+
*
|
|
10445
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
10446
|
+
* const authClient = await auth.getClient();
|
|
10447
|
+
* google.options({auth: authClient});
|
|
10448
|
+
*
|
|
10449
|
+
* // Do the magic
|
|
10450
|
+
* const res =
|
|
10451
|
+
* await securitycenter.projects.webSecurityScannerSettings.calculate({
|
|
10452
|
+
* // Required. The name of the WebSecurityScannerSettings to calculate. Formats: * organizations/{organization\}/webSecurityScannerSettings * folders/{folder\}/webSecurityScannerSettings * projects/{project\}/webSecurityScannerSettings
|
|
10453
|
+
* name: 'projects/my-project/webSecurityScannerSettings',
|
|
10454
|
+
* // Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.
|
|
10455
|
+
* showEligibleModulesOnly: 'placeholder-value',
|
|
10456
|
+
* });
|
|
10457
|
+
* console.log(res.data);
|
|
10458
|
+
*
|
|
10459
|
+
* // Example response
|
|
10460
|
+
* // {
|
|
10461
|
+
* // "modules": {},
|
|
10462
|
+
* // "name": "my_name",
|
|
10463
|
+
* // "serviceEnablementState": "my_serviceEnablementState",
|
|
10464
|
+
* // "updateTime": "my_updateTime"
|
|
10465
|
+
* // }
|
|
10466
|
+
* }
|
|
10467
|
+
*
|
|
10468
|
+
* main().catch(e => {
|
|
10469
|
+
* console.error(e);
|
|
10470
|
+
* throw e;
|
|
10471
|
+
* });
|
|
10472
|
+
*
|
|
10473
|
+
* ```
|
|
6865
10474
|
*
|
|
6866
10475
|
* @param params - Parameters for request
|
|
6867
10476
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|