Skip to content

Commit

Permalink
feat(chromepolicy): update the API
Browse files Browse the repository at this point in the history
#### chromepolicy:v1

The following keys were added:
- schemas.GoogleChromePolicyV1PolicySchema.properties.validTargetResources.description
- schemas.GoogleChromePolicyV1PolicySchema.properties.validTargetResources.items.enum
- schemas.GoogleChromePolicyV1PolicySchema.properties.validTargetResources.items.enumDescriptions
- schemas.GoogleChromePolicyV1PolicySchema.properties.validTargetResources.items.type
- schemas.GoogleChromePolicyV1PolicySchema.properties.validTargetResources.readOnly
- schemas.GoogleChromePolicyV1PolicySchema.properties.validTargetResources.type

The following keys were changed:
- resources.customers.resources.policies.resources.orgunits.methods.batchInherit.description
- resources.customers.resources.policies.resources.orgunits.methods.batchModify.description
- schemas.GoogleChromePolicyV1PolicySchema.description
- schemas.GoogleChromePolicyV1PolicySchema.properties.schemaName.description
- schemas.GoogleChromePolicyV1PolicyTargetKey.properties.targetResource.description
  • Loading branch information
yoshi-automation authored and bcoe committed Oct 18, 2021
1 parent 384ea45 commit f6162a3
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 12 deletions.
30 changes: 24 additions & 6 deletions discovery/chromepolicy-v1.json
Expand Up @@ -146,7 +146,7 @@
"orgunits": {
"methods": {
"batchInherit": {
"description": "Modify multiple policy values that are applied to a specific org unit so that they now inherit the value from a parent (if applicable). All targets must have the same target format. That is to say that they must point to the same target resource and must have the same keys specified in `additionalTargetKeyNames`. On failure the request will return the error details as part of the google.rpc.Status.",
"description": "Modify multiple policy values that are applied to a specific org unit so that they now inherit the value from a parent (if applicable). All targets must have the same target format. That is to say that they must point to the same target resource and must have the same keys specified in `additionalTargetKeyNames`, though the values for those keys may be different. On failure the request will return the error details as part of the google.rpc.Status.",
"flatPath": "v1/customers/{customersId}/policies/orgunits:batchInherit",
"httpMethod": "POST",
"id": "chromepolicy.customers.policies.orgunits.batchInherit",
Expand Down Expand Up @@ -174,7 +174,7 @@
]
},
"batchModify": {
"description": "Modify multiple policy values that are applied to a specific org unit. All targets must have the same target format. That is to say that they must point to the same target resource and must have the same keys specified in `additionalTargetKeyNames`. On failure the request will return the error details as part of the google.rpc.Status.",
"description": "Modify multiple policy values that are applied to a specific org unit. All targets must have the same target format. That is to say that they must point to the same target resource and must have the same keys specified in `additionalTargetKeyNames`, though the values for those keys may be different. On failure the request will return the error details as part of the google.rpc.Status.",
"flatPath": "v1/customers/{customersId}/policies/orgunits:batchModify",
"httpMethod": "POST",
"id": "chromepolicy.customers.policies.orgunits.batchModify",
Expand Down Expand Up @@ -324,7 +324,7 @@
}
}
},
"revision": "20210830",
"revision": "20211014",
"rootUrl": "https://chromepolicy.googleapis.com/",
"schemas": {
"GoogleChromePolicyV1AdditionalTargetKeyName": {
Expand Down Expand Up @@ -424,7 +424,7 @@
"type": "object"
},
"GoogleChromePolicyV1PolicySchema": {
"description": "Resource representing a policy schema. Next ID: 10",
"description": "Resource representing a policy schema. Next ID: 11",
"id": "GoogleChromePolicyV1PolicySchema",
"properties": {
"accessRestrictions": {
Expand Down Expand Up @@ -473,14 +473,32 @@
"type": "string"
},
"schemaName": {
"description": "Output only. The full qualified name of the policy schema. This value is used to fill the field `policy_schema` in PolicyValue when calling BatchInheritOrgUnitPolicies or BatchModifyOrgUnitPolicies.",
"description": "Output only. The full qualified name of the policy schema. This value is used to fill the field `policy_schema` in PolicyValue when calling BatchInheritOrgUnitPolicies BatchModifyOrgUnitPolicies BatchModifyGroupPolicies or BatchDeleteGroupPolicies.",
"readOnly": true,
"type": "string"
},
"supportUri": {
"description": "Output only. URI to related support article for this schema.",
"readOnly": true,
"type": "string"
},
"validTargetResources": {
"description": "Output only. Information about applicable target resources for the policy.",
"items": {
"enum": [
"TARGET_RESOURCE_UNSPECIFIED",
"ORG_UNIT",
"GROUP"
],
"enumDescriptions": [
"Unspecified target resource.",
"Organizational Unit target resource.",
"Group target resource."
],
"type": "string"
},
"readOnly": true,
"type": "array"
}
},
"type": "object"
Expand Down Expand Up @@ -602,7 +620,7 @@
"type": "object"
},
"targetResource": {
"description": "The target resource on which this policy is applied. The following resources are supported: * Organizational Unit (\"orgunits/{orgunit_id}\")",
"description": "The target resource on which this policy is applied. The following resources are supported: * Organizational Unit (\"orgunits/{orgunit_id}\") * Group (\"groups/{group_id}\")",
"type": "string"
}
},
Expand Down
17 changes: 11 additions & 6 deletions src/apis/chromepolicy/v1.ts
Expand Up @@ -202,7 +202,7 @@ export namespace chromepolicy_v1 {
updateMask?: string | null;
}
/**
* Resource representing a policy schema. Next ID: 10
* Resource representing a policy schema. Next ID: 11
*/
export interface Schema$GoogleChromePolicyV1PolicySchema {
/**
Expand Down Expand Up @@ -234,13 +234,17 @@ export namespace chromepolicy_v1 {
*/
policyDescription?: string | null;
/**
* Output only. The full qualified name of the policy schema. This value is used to fill the field `policy_schema` in PolicyValue when calling BatchInheritOrgUnitPolicies or BatchModifyOrgUnitPolicies.
* Output only. The full qualified name of the policy schema. This value is used to fill the field `policy_schema` in PolicyValue when calling BatchInheritOrgUnitPolicies BatchModifyOrgUnitPolicies BatchModifyGroupPolicies or BatchDeleteGroupPolicies.
*/
schemaName?: string | null;
/**
* Output only. URI to related support article for this schema.
*/
supportUri?: string | null;
/**
* Output only. Information about applicable target resources for the policy.
*/
validTargetResources?: string[] | null;
}
/**
* The field and the value it must have for another field to be allowed to be set.
Expand Down Expand Up @@ -327,7 +331,7 @@ export namespace chromepolicy_v1 {
*/
additionalTargetKeys?: {[key: string]: string} | null;
/**
* The target resource on which this policy is applied. The following resources are supported: * Organizational Unit ("orgunits/{orgunit_id\}")
* The target resource on which this policy is applied. The following resources are supported: * Organizational Unit ("orgunits/{orgunit_id\}") * Group ("groups/{group_id\}")
*/
targetResource?: string | null;
}
Expand Down Expand Up @@ -695,7 +699,7 @@ export namespace chromepolicy_v1 {
}

/**
* Modify multiple policy values that are applied to a specific org unit so that they now inherit the value from a parent (if applicable). All targets must have the same target format. That is to say that they must point to the same target resource and must have the same keys specified in `additionalTargetKeyNames`. On failure the request will return the error details as part of the google.rpc.Status.
* Modify multiple policy values that are applied to a specific org unit so that they now inherit the value from a parent (if applicable). All targets must have the same target format. That is to say that they must point to the same target resource and must have the same keys specified in `additionalTargetKeyNames`, though the values for those keys may be different. On failure the request will return the error details as part of the google.rpc.Status.
* @example
* ```js
* // Before running the sample:
Expand Down Expand Up @@ -834,7 +838,7 @@ export namespace chromepolicy_v1 {
}

/**
* Modify multiple policy values that are applied to a specific org unit. All targets must have the same target format. That is to say that they must point to the same target resource and must have the same keys specified in `additionalTargetKeyNames`. On failure the request will return the error details as part of the google.rpc.Status.
* Modify multiple policy values that are applied to a specific org unit. All targets must have the same target format. That is to say that they must point to the same target resource and must have the same keys specified in `additionalTargetKeyNames`, though the values for those keys may be different. On failure the request will return the error details as part of the google.rpc.Status.
* @example
* ```js
* // Before running the sample:
Expand Down Expand Up @@ -1049,7 +1053,8 @@ export namespace chromepolicy_v1 {
* // "notices": [],
* // "policyDescription": "my_policyDescription",
* // "schemaName": "my_schemaName",
* // "supportUri": "my_supportUri"
* // "supportUri": "my_supportUri",
* // "validTargetResources": []
* // }
* }
*
Expand Down

0 comments on commit f6162a3

Please sign in to comment.