Skip to content

Commit dae1c47

Browse files
fix(securityposture): update the API
#### securityposture:v1 The following keys were changed: - schemas.GoogleCloudSecuritypostureV1PolicyRule.properties.parameters.description - schemas.GoogleCloudSecuritypostureV1PolicyRule.properties.resourceTypes.description - schemas.ResourceTypes.description - schemas.ResourceTypes.properties.included.description
1 parent 744a6db commit dae1c47

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

discovery/securityposture-v1.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@
892892
}
893893
}
894894
},
895-
"revision": "20241212",
895+
"revision": "20250226",
896896
"rootUrl": "https://securityposture.googleapis.com/",
897897
"schemas": {
898898
"AssetDetails": {
@@ -1162,12 +1162,12 @@
11621162
"description": "Properties of the object.",
11631163
"type": "any"
11641164
},
1165-
"description": "Optional. Required for GMCs if parameters defined in constraints. Pass parameter values when policy enforcement is enabled. Ensure that parameter value types match those defined in the constraint definition. For example: { \"allowedLocations\" : [\"us-east1\", \"us-west1\"], \"allowAll\" : true }",
1165+
"description": "Optional. Required for managed constraints if parameters are defined. Passes parameter values when policy enforcement is enabled. Ensure that parameter value types match those defined in the constraint definition. For example: { \"allowedLocations\" : [\"us-east1\", \"us-west1\"], \"allowAll\" : true }",
11661166
"type": "object"
11671167
},
11681168
"resourceTypes": {
11691169
"$ref": "ResourceTypes",
1170-
"description": "Optional. The resource types policy can support, only used for Google managed constraint and method type is GOVERN_TAGS."
1170+
"description": "Optional. The resource types policies can support, only used for managed constraints. Method type is `GOVERN_TAGS`."
11711171
},
11721172
"values": {
11731173
"$ref": "GoogleCloudSecuritypostureV1PolicyRuleStringValues",
@@ -1980,11 +1980,11 @@
19801980
"type": "object"
19811981
},
19821982
"ResourceTypes": {
1983-
"description": "Set multiple resource types for one policy, eg: resourceTypes: included: - compute.googleapis.com/Instance - compute.googleapis.com/Disk Constraint definition contains an empty resource type in order to support multiple resource types in the policy. Only support Google managed constriaint and method type is GOVERN_TAGS Refer go/multi-resource-support-force-tags-gmc to get more details.",
1983+
"description": "Set multiple resource types for one policy, for example: resourceTypes: included: - compute.googleapis.com/Instance - compute.googleapis.com/Disk Constraint definition contains an empty resource type in order to support multiple resource types in the policy. Only supports managed constraints. Method type is `GOVERN_TAGS`. Refer go/multi-resource-support-force-tags-gmc to get more details.",
19841984
"id": "ResourceTypes",
19851985
"properties": {
19861986
"included": {
1987-
"description": "Optional. The resource type we currently support. cloud/orgpolicy/customconstraintconfig/prod/resource_types.prototext",
1987+
"description": "Optional. The resource types we currently support. cloud/orgpolicy/customconstraintconfig/prod/resource_types.prototext",
19881988
"items": {
19891989
"type": "string"
19901990
},

src/apis/securityposture/v1.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,11 +320,11 @@ export namespace securityposture_v1 {
320320
*/
321321
enforce?: boolean | null;
322322
/**
323-
* Optional. Required for GMCs if parameters defined in constraints. Pass parameter values when policy enforcement is enabled. Ensure that parameter value types match those defined in the constraint definition. For example: { "allowedLocations" : ["us-east1", "us-west1"], "allowAll" : true \}
323+
* Optional. Required for managed constraints if parameters are defined. Passes parameter values when policy enforcement is enabled. Ensure that parameter value types match those defined in the constraint definition. For example: { "allowedLocations" : ["us-east1", "us-west1"], "allowAll" : true \}
324324
*/
325325
parameters?: {[key: string]: any} | null;
326326
/**
327-
* Optional. The resource types policy can support, only used for Google managed constraint and method type is GOVERN_TAGS.
327+
* Optional. The resource types policies can support, only used for managed constraints. Method type is `GOVERN_TAGS`.
328328
*/
329329
resourceTypes?: Schema$ResourceTypes;
330330
/**
@@ -854,11 +854,11 @@ export namespace securityposture_v1 {
854854
resourceTypes?: string[] | null;
855855
}
856856
/**
857-
* Set multiple resource types for one policy, eg: resourceTypes: included: - compute.googleapis.com/Instance - compute.googleapis.com/Disk Constraint definition contains an empty resource type in order to support multiple resource types in the policy. Only support Google managed constriaint and method type is GOVERN_TAGS Refer go/multi-resource-support-force-tags-gmc to get more details.
857+
* Set multiple resource types for one policy, for example: resourceTypes: included: - compute.googleapis.com/Instance - compute.googleapis.com/Disk Constraint definition contains an empty resource type in order to support multiple resource types in the policy. Only supports managed constraints. Method type is `GOVERN_TAGS`. Refer go/multi-resource-support-force-tags-gmc to get more details.
858858
*/
859859
export interface Schema$ResourceTypes {
860860
/**
861-
* Optional. The resource type we currently support. cloud/orgpolicy/customconstraintconfig/prod/resource_types.prototext
861+
* Optional. The resource types we currently support. cloud/orgpolicy/customconstraintconfig/prod/resource_types.prototext
862862
*/
863863
included?: string[] | null;
864864
}

0 commit comments

Comments
 (0)