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.GoogleChromePolicyVersionsV1FieldConstraints.description
- schemas.GoogleChromePolicyVersionsV1FieldConstraints.id
- schemas.GoogleChromePolicyVersionsV1FieldConstraints.properties.numericRangeConstraint.$ref
- schemas.GoogleChromePolicyVersionsV1FieldConstraints.properties.numericRangeConstraint.description
- schemas.GoogleChromePolicyVersionsV1FieldConstraints.type
- schemas.GoogleChromePolicyVersionsV1NumericRangeConstraint.description
- schemas.GoogleChromePolicyVersionsV1NumericRangeConstraint.id
- schemas.GoogleChromePolicyVersionsV1NumericRangeConstraint.properties.maximum.description
- schemas.GoogleChromePolicyVersionsV1NumericRangeConstraint.properties.maximum.format
- schemas.GoogleChromePolicyVersionsV1NumericRangeConstraint.properties.maximum.type
- schemas.GoogleChromePolicyVersionsV1NumericRangeConstraint.properties.minimum.description
- schemas.GoogleChromePolicyVersionsV1NumericRangeConstraint.properties.minimum.format
- schemas.GoogleChromePolicyVersionsV1NumericRangeConstraint.properties.minimum.type
- schemas.GoogleChromePolicyVersionsV1NumericRangeConstraint.type
- schemas.GoogleChromePolicyVersionsV1PolicySchemaFieldDescription.properties.fieldConstraints.$ref
- schemas.GoogleChromePolicyVersionsV1PolicySchemaFieldDescription.properties.fieldConstraints.description
- schemas.GoogleChromePolicyVersionsV1PolicySchemaFieldDescription.properties.fieldConstraints.readOnly
  • Loading branch information
yoshi-automation authored and sofisl committed Feb 2, 2023
1 parent 76eea6c commit 9c8277a
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 1 deletion.
35 changes: 34 additions & 1 deletion discovery/chromepolicy-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@
}
}
},
"revision": "20221212",
"revision": "20230201",
"rootUrl": "https://chromepolicy.googleapis.com/",
"schemas": {
"ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle": {
Expand Down Expand Up @@ -787,6 +787,17 @@
},
"type": "object"
},
"GoogleChromePolicyVersionsV1FieldConstraints": {
"description": "Information about any range constraints.",
"id": "GoogleChromePolicyVersionsV1FieldConstraints",
"properties": {
"numericRangeConstraint": {
"$ref": "GoogleChromePolicyVersionsV1NumericRangeConstraint",
"description": "The allowed range for numeric fields."
}
},
"type": "object"
},
"GoogleChromePolicyVersionsV1InheritOrgUnitPolicyRequest": {
"description": "Request parameters for inheriting policy value of a specific org unit target from the policy value of its parent org unit.",
"id": "GoogleChromePolicyVersionsV1InheritOrgUnitPolicyRequest",
Expand Down Expand Up @@ -919,6 +930,23 @@
},
"type": "object"
},
"GoogleChromePolicyVersionsV1NumericRangeConstraint": {
"description": "A constraint on upper and/or lower bounds, with at least one being set.",
"id": "GoogleChromePolicyVersionsV1NumericRangeConstraint",
"properties": {
"maximum": {
"description": "Maximum value.",
"format": "int64",
"type": "string"
},
"minimum": {
"description": "Minimum value.",
"format": "int64",
"type": "string"
}
},
"type": "object"
},
"GoogleChromePolicyVersionsV1PolicyModificationFieldError": {
"description": "Error information for a modification request of a specific field on a specific policy.",
"id": "GoogleChromePolicyVersionsV1PolicyModificationFieldError",
Expand Down Expand Up @@ -1062,6 +1090,11 @@
"readOnly": true,
"type": "string"
},
"fieldConstraints": {
"$ref": "GoogleChromePolicyVersionsV1FieldConstraints",
"description": "Output only. Information on any input constraints associated on the values for the field.",
"readOnly": true
},
"fieldDependencies": {
"description": "Output only. Provides a list of fields and values. At least one of the fields must have the corresponding value in order for this field to be allowed to be set.",
"items": {
Expand Down
26 changes: 26 additions & 0 deletions src/apis/chromepolicy/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,15 @@ export namespace chromepolicy_v1 {
*/
policyTargetKey?: Schema$GoogleChromePolicyVersionsV1PolicyTargetKey;
}
/**
* Information about any range constraints.
*/
export interface Schema$GoogleChromePolicyVersionsV1FieldConstraints {
/**
* The allowed range for numeric fields.
*/
numericRangeConstraint?: Schema$GoogleChromePolicyVersionsV1NumericRangeConstraint;
}
/**
* Request parameters for inheriting policy value of a specific org unit target from the policy value of its parent org unit.
*/
Expand Down Expand Up @@ -390,6 +399,19 @@ export namespace chromepolicy_v1 {
*/
value?: {[key: string]: any} | null;
}
/**
* A constraint on upper and/or lower bounds, with at least one being set.
*/
export interface Schema$GoogleChromePolicyVersionsV1NumericRangeConstraint {
/**
* Maximum value.
*/
maximum?: string | null;
/**
* Minimum value.
*/
minimum?: string | null;
}
/**
* Error information for a modification request of a specific field on a specific policy.
*/
Expand Down Expand Up @@ -489,6 +511,10 @@ export namespace chromepolicy_v1 {
* Output only. The name of the field for associated with this description.
*/
field?: string | null;
/**
* Output only. Information on any input constraints associated on the values for the field.
*/
fieldConstraints?: Schema$GoogleChromePolicyVersionsV1FieldConstraints;
/**
* Output only. Provides a list of fields and values. At least one of the fields must have the corresponding value in order for this field to be allowed to be set.
*/
Expand Down

0 comments on commit 9c8277a

Please sign in to comment.