Skip to content

Commit 5f51350

Browse files
feat(servicecontrol): update the api
#### servicecontrol:v1 The following keys were added: - schemas.AuditLog.properties.policyViolationInfo.$ref (Total Keys: 1) - schemas.OrgPolicyViolationInfo (Total Keys: 7) - schemas.PolicyViolationInfo (Total Keys: 3) - schemas.ViolationInfo (Total Keys: 6) #### servicecontrol:v2 The following keys were added: - schemas.AuditLog.properties.policyViolationInfo.$ref (Total Keys: 1) - schemas.OrgPolicyViolationInfo (Total Keys: 7) - schemas.PolicyViolationInfo (Total Keys: 3) - schemas.ViolationInfo (Total Keys: 6)
1 parent 11eb944 commit 5f51350

File tree

3 files changed

+170
-4
lines changed

3 files changed

+170
-4
lines changed

docs/dyn/servicecontrol_v2.services.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ <h3>Method Details</h3>
214214
&quot;headers&quot;: { # Returns a set of request contexts generated from the `CheckRequest`.
215215
&quot;a_key&quot;: &quot;A String&quot;,
216216
},
217-
&quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Operation is allowed when this field is not set. Any non-&#x27;OK&#x27; status indicates a denial; [google.rpc.Status.details]() would contain additional details about the denial.
217+
&quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Operation is allowed when this field is not set. Any non-&#x27;OK&#x27; status indicates a denial; google.rpc.Status.details would contain additional details about the denial.
218218
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
219219
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
220220
{

googleapiclient/discovery_cache/documents/servicecontrol.v1.json

Lines changed: 84 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
}
198198
}
199199
},
200-
"revision": "20220304",
200+
"revision": "20220318",
201201
"rootUrl": "https://servicecontrol.googleapis.com/",
202202
"schemas": {
203203
"AllocateInfo": {
@@ -332,6 +332,10 @@
332332
"format": "int64",
333333
"type": "string"
334334
},
335+
"policyViolationInfo": {
336+
"$ref": "PolicyViolationInfo",
337+
"description": "Indicates the policy violations for this request. If the request is denied by the policy, violation information will be logged here."
338+
},
335339
"request": {
336340
"additionalProperties": {
337341
"description": "Properties of the object.",
@@ -1252,6 +1256,39 @@
12521256
},
12531257
"type": "object"
12541258
},
1259+
"OrgPolicyViolationInfo": {
1260+
"description": "Represents OrgPolicy Violation information.",
1261+
"id": "OrgPolicyViolationInfo",
1262+
"properties": {
1263+
"payload": {
1264+
"additionalProperties": {
1265+
"description": "Properties of the object.",
1266+
"type": "any"
1267+
},
1268+
"description": "Optional. Resource payload that is currently in scope and is subjected to orgpolicy conditions. This payload may be the subset of the actual Resource that may come in the request. This payload should not contain any core content.",
1269+
"type": "object"
1270+
},
1271+
"resourceTags": {
1272+
"additionalProperties": {
1273+
"type": "string"
1274+
},
1275+
"description": "Optional. Tags referenced on the resource at the time of evaluation. These also include the federated tags, if they are supplied in the CheckOrgPolicy or CheckCustomConstraints Requests. Optional field as of now. These tags are the Cloud tags that are available on the resource during the policy evaluation and will be available as part of the OrgPolicy check response for logging purposes.",
1276+
"type": "object"
1277+
},
1278+
"resourceType": {
1279+
"description": "Optional. Resource type that the orgpolicy is checked against. Example: compute.googleapis.com/Instance, store.googleapis.com/bucket",
1280+
"type": "string"
1281+
},
1282+
"violationInfo": {
1283+
"description": "Optional. Policy violations",
1284+
"items": {
1285+
"$ref": "ViolationInfo"
1286+
},
1287+
"type": "array"
1288+
}
1289+
},
1290+
"type": "object"
1291+
},
12551292
"Peer": {
12561293
"description": "This message defines attributes for a node that handles a network request. The node can be either a service or an application that sends, forwards, or receives the request. Service peers should fill in `principal` and `labels` as appropriate.",
12571294
"id": "Peer",
@@ -1283,6 +1320,17 @@
12831320
},
12841321
"type": "object"
12851322
},
1323+
"PolicyViolationInfo": {
1324+
"description": "Information related to policy violations for this request.",
1325+
"id": "PolicyViolationInfo",
1326+
"properties": {
1327+
"orgPolicyViolationInfo": {
1328+
"$ref": "OrgPolicyViolationInfo",
1329+
"description": "Indicates the orgpolicy violations for this resource."
1330+
}
1331+
},
1332+
"type": "object"
1333+
},
12861334
"QuotaError": {
12871335
"description": "Represents error information for QuotaOperation.",
12881336
"id": "QuotaError",
@@ -2057,6 +2105,41 @@
20572105
}
20582106
},
20592107
"type": "object"
2108+
},
2109+
"ViolationInfo": {
2110+
"description": "Provides information about the Policy violation info for this request.",
2111+
"id": "ViolationInfo",
2112+
"properties": {
2113+
"checkedValue": {
2114+
"description": "Optional. Value that is being checked for the policy. This could be in encrypted form (if pii sensitive). This field will only be emitted in LIST_POLICY types",
2115+
"type": "string"
2116+
},
2117+
"constraint": {
2118+
"description": "Optional. Constraint name",
2119+
"type": "string"
2120+
},
2121+
"errorMessage": {
2122+
"description": "Optional. Error message that policy is indicating.",
2123+
"type": "string"
2124+
},
2125+
"policyType": {
2126+
"description": "Optional. Indicates the type of the policy.",
2127+
"enum": [
2128+
"POLICY_TYPE_UNSPECIFIED",
2129+
"BOOLEAN_CONSTRAINT",
2130+
"LIST_CONSTRAINT",
2131+
"CUSTOM_CONSTRAINT"
2132+
],
2133+
"enumDescriptions": [
2134+
"Default value. This value should not be used.",
2135+
"Indicates boolean policy constraint",
2136+
"Indicates list policy constraint",
2137+
"Indicates custom policy constraint"
2138+
],
2139+
"type": "string"
2140+
}
2141+
},
2142+
"type": "object"
20602143
}
20612144
},
20622145
"servicePath": "",

googleapiclient/discovery_cache/documents/servicecontrol.v2.json

Lines changed: 85 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
}
170170
}
171171
},
172-
"revision": "20220304",
172+
"revision": "20220318",
173173
"rootUrl": "https://servicecontrol.googleapis.com/",
174174
"schemas": {
175175
"Api": {
@@ -273,6 +273,10 @@
273273
"format": "int64",
274274
"type": "string"
275275
},
276+
"policyViolationInfo": {
277+
"$ref": "PolicyViolationInfo",
278+
"description": "Indicates the policy violations for this request. If the request is denied by the policy, violation information will be logged here."
279+
},
276280
"request": {
277281
"additionalProperties": {
278282
"description": "Properties of the object.",
@@ -465,7 +469,7 @@
465469
},
466470
"status": {
467471
"$ref": "Status",
468-
"description": "Operation is allowed when this field is not set. Any non-'OK' status indicates a denial; [google.rpc.Status.details]() would contain additional details about the denial."
472+
"description": "Operation is allowed when this field is not set. Any non-'OK' status indicates a denial; google.rpc.Status.details would contain additional details about the denial."
469473
}
470474
},
471475
"type": "object"
@@ -489,6 +493,39 @@
489493
},
490494
"type": "object"
491495
},
496+
"OrgPolicyViolationInfo": {
497+
"description": "Represents OrgPolicy Violation information.",
498+
"id": "OrgPolicyViolationInfo",
499+
"properties": {
500+
"payload": {
501+
"additionalProperties": {
502+
"description": "Properties of the object.",
503+
"type": "any"
504+
},
505+
"description": "Optional. Resource payload that is currently in scope and is subjected to orgpolicy conditions. This payload may be the subset of the actual Resource that may come in the request. This payload should not contain any core content.",
506+
"type": "object"
507+
},
508+
"resourceTags": {
509+
"additionalProperties": {
510+
"type": "string"
511+
},
512+
"description": "Optional. Tags referenced on the resource at the time of evaluation. These also include the federated tags, if they are supplied in the CheckOrgPolicy or CheckCustomConstraints Requests. Optional field as of now. These tags are the Cloud tags that are available on the resource during the policy evaluation and will be available as part of the OrgPolicy check response for logging purposes.",
513+
"type": "object"
514+
},
515+
"resourceType": {
516+
"description": "Optional. Resource type that the orgpolicy is checked against. Example: compute.googleapis.com/Instance, store.googleapis.com/bucket",
517+
"type": "string"
518+
},
519+
"violationInfo": {
520+
"description": "Optional. Policy violations",
521+
"items": {
522+
"$ref": "ViolationInfo"
523+
},
524+
"type": "array"
525+
}
526+
},
527+
"type": "object"
528+
},
492529
"Peer": {
493530
"description": "This message defines attributes for a node that handles a network request. The node can be either a service or an application that sends, forwards, or receives the request. Service peers should fill in `principal` and `labels` as appropriate.",
494531
"id": "Peer",
@@ -520,6 +557,17 @@
520557
},
521558
"type": "object"
522559
},
560+
"PolicyViolationInfo": {
561+
"description": "Information related to policy violations for this request.",
562+
"id": "PolicyViolationInfo",
563+
"properties": {
564+
"orgPolicyViolationInfo": {
565+
"$ref": "OrgPolicyViolationInfo",
566+
"description": "Indicates the orgpolicy violations for this resource."
567+
}
568+
},
569+
"type": "object"
570+
},
523571
"ReportRequest": {
524572
"description": "Request message for the Report method.",
525573
"id": "ReportRequest",
@@ -1059,6 +1107,41 @@
10591107
}
10601108
},
10611109
"type": "object"
1110+
},
1111+
"ViolationInfo": {
1112+
"description": "Provides information about the Policy violation info for this request.",
1113+
"id": "ViolationInfo",
1114+
"properties": {
1115+
"checkedValue": {
1116+
"description": "Optional. Value that is being checked for the policy. This could be in encrypted form (if pii sensitive). This field will only be emitted in LIST_POLICY types",
1117+
"type": "string"
1118+
},
1119+
"constraint": {
1120+
"description": "Optional. Constraint name",
1121+
"type": "string"
1122+
},
1123+
"errorMessage": {
1124+
"description": "Optional. Error message that policy is indicating.",
1125+
"type": "string"
1126+
},
1127+
"policyType": {
1128+
"description": "Optional. Indicates the type of the policy.",
1129+
"enum": [
1130+
"POLICY_TYPE_UNSPECIFIED",
1131+
"BOOLEAN_CONSTRAINT",
1132+
"LIST_CONSTRAINT",
1133+
"CUSTOM_CONSTRAINT"
1134+
],
1135+
"enumDescriptions": [
1136+
"Default value. This value should not be used.",
1137+
"Indicates boolean policy constraint",
1138+
"Indicates list policy constraint",
1139+
"Indicates custom policy constraint"
1140+
],
1141+
"type": "string"
1142+
}
1143+
},
1144+
"type": "object"
10621145
}
10631146
},
10641147
"servicePath": "",

0 commit comments

Comments
 (0)