Skip to content

Commit 7f0bbb2

Browse files
feat(accessapproval): update the API
#### accessapproval:v1 The following keys were added: - schemas.AccessApprovalSettings.properties.approvalPolicy.$ref - schemas.AccessApprovalSettings.properties.approvalPolicy.description - schemas.AccessApprovalSettings.properties.effectiveApprovalPolicy.$ref - schemas.AccessApprovalSettings.properties.effectiveApprovalPolicy.description - schemas.AccessApprovalSettings.properties.effectiveApprovalPolicy.readOnly - schemas.ApproveDecision.properties.policyApproved.description - schemas.ApproveDecision.properties.policyApproved.type - schemas.CustomerApprovalApprovalPolicy.description - schemas.CustomerApprovalApprovalPolicy.id - schemas.CustomerApprovalApprovalPolicy.properties.justificationBasedApprovalPolicy.description - schemas.CustomerApprovalApprovalPolicy.properties.justificationBasedApprovalPolicy.enum - schemas.CustomerApprovalApprovalPolicy.properties.justificationBasedApprovalPolicy.enumDescriptions - schemas.CustomerApprovalApprovalPolicy.properties.justificationBasedApprovalPolicy.type - schemas.CustomerApprovalApprovalPolicy.type
1 parent 382cf77 commit 7f0bbb2

File tree

2 files changed

+60
-1
lines changed

2 files changed

+60
-1
lines changed

‎discovery/accessapproval-v1.json

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@
913913
}
914914
}
915915
},
916-
"revision": "20250206",
916+
"revision": "20250411",
917917
"rootUrl": "https://accessapproval.googleapis.com/",
918918
"schemas": {
919919
"AccessApprovalServiceAccount": {
@@ -944,6 +944,15 @@
944944
"readOnly": true,
945945
"type": "boolean"
946946
},
947+
"approvalPolicy": {
948+
"$ref": "CustomerApprovalApprovalPolicy",
949+
"description": "Optional. Policy for approval. This contains all policies."
950+
},
951+
"effectiveApprovalPolicy": {
952+
"$ref": "CustomerApprovalApprovalPolicy",
953+
"description": "Output only. Policy for approval included inherited settings to understand the exact policy applied to this resource. This is a read-only field.",
954+
"readOnly": true
955+
},
947956
"enrolledAncestor": {
948957
"description": "Output only. This field is read only (not settable via UpdateAccessApprovalSettings method). If the field is true, that indicates that at least one service is enrolled for Access Approval in one or more ancestors of the Project or Folder (this field will always be unset for the organization since organizations do not have ancestors).",
949958
"readOnly": true,
@@ -1144,6 +1153,10 @@
11441153
"format": "google-datetime",
11451154
"type": "string"
11461155
},
1156+
"policyApproved": {
1157+
"description": "True when the request has been approved by the customer's defined policy.",
1158+
"type": "boolean"
1159+
},
11471160
"signatureInfo": {
11481161
"$ref": "SignatureInfo",
11491162
"description": "The signature for the ApprovalRequest and details on how it was signed."
@@ -1162,6 +1175,31 @@
11621175
},
11631176
"type": "object"
11641177
},
1178+
"CustomerApprovalApprovalPolicy": {
1179+
"description": "Represents all the policies that can be set for Customer Approval.",
1180+
"id": "CustomerApprovalApprovalPolicy",
1181+
"properties": {
1182+
"justificationBasedApprovalPolicy": {
1183+
"description": "Optional. Policy for approval based on the justification given.",
1184+
"enum": [
1185+
"JUSTIFICATION_BASED_APPROVAL_POLICY_UNSPECIFIED",
1186+
"JUSTIFICATION_BASED_APPROVAL_ENABLED_ALL",
1187+
"JUSTIFICATION_BASED_APPROVAL_ENABLED_EXTERNAL_JUSTIFICATIONS",
1188+
"JUSTIFICATION_BASED_APPROVAL_NOT_ENABLED",
1189+
"JUSTIFICATION_BASED_APPROVAL_INHERITED"
1190+
],
1191+
"enumDescriptions": [
1192+
"Default value for proto.",
1193+
"Instant approval is enabled for all accesses.",
1194+
"Instant approval is enabled for external justifications.",
1195+
"Instant approval is not enabled for any accesses.",
1196+
"Instant approval is inherited from the parent."
1197+
],
1198+
"type": "string"
1199+
}
1200+
},
1201+
"type": "object"
1202+
},
11651203
"DismissApprovalRequestMessage": {
11661204
"description": "Request to dismiss an approval request.",
11671205
"id": "DismissApprovalRequestMessage",

‎src/apis/accessapproval/v1.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,14 @@ export namespace accessapproval_v1 {
153153
* Output only. This field is read only (not settable via UpdateAccessApprovalSettings method). If the field is true, that indicates that an ancestor of this Project or Folder has set active_key_version (this field will always be unset for the organization since organizations do not have ancestors).
154154
*/
155155
ancestorHasActiveKeyVersion?: boolean | null;
156+
/**
157+
* Optional. Policy for approval. This contains all policies.
158+
*/
159+
approvalPolicy?: Schema$CustomerApprovalApprovalPolicy;
160+
/**
161+
* Output only. Policy for approval included inherited settings to understand the exact policy applied to this resource. This is a read-only field.
162+
*/
163+
effectiveApprovalPolicy?: Schema$CustomerApprovalApprovalPolicy;
156164
/**
157165
* Output only. This field is read only (not settable via UpdateAccessApprovalSettings method). If the field is true, that indicates that at least one service is enrolled for Access Approval in one or more ancestors of the Project or Folder (this field will always be unset for the organization since organizations do not have ancestors).
158166
*/
@@ -295,6 +303,10 @@ export namespace accessapproval_v1 {
295303
* If set, denotes the timestamp at which the approval is invalidated.
296304
*/
297305
invalidateTime?: string | null;
306+
/**
307+
* True when the request has been approved by the customer's defined policy.
308+
*/
309+
policyApproved?: boolean | null;
298310
/**
299311
* The signature for the ApprovalRequest and details on how it was signed.
300312
*/
@@ -309,6 +321,15 @@ export namespace accessapproval_v1 {
309321
*/
310322
command?: string | null;
311323
}
324+
/**
325+
* Represents all the policies that can be set for Customer Approval.
326+
*/
327+
export interface Schema$CustomerApprovalApprovalPolicy {
328+
/**
329+
* Optional. Policy for approval based on the justification given.
330+
*/
331+
justificationBasedApprovalPolicy?: string | null;
332+
}
312333
/**
313334
* Request to dismiss an approval request.
314335
*/

0 commit comments

Comments
 (0)