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.properties.uploadedFileConstraints.$ref
- schemas.GoogleChromePolicyVersionsV1FieldConstraints.properties.uploadedFileConstraints.description
- schemas.GoogleChromePolicyVersionsV1UploadedFileConstraints.description
- schemas.GoogleChromePolicyVersionsV1UploadedFileConstraints.id
- schemas.GoogleChromePolicyVersionsV1UploadedFileConstraints.properties.sizeLimitBytes.description
- schemas.GoogleChromePolicyVersionsV1UploadedFileConstraints.properties.sizeLimitBytes.format
- schemas.GoogleChromePolicyVersionsV1UploadedFileConstraints.properties.sizeLimitBytes.type
- schemas.GoogleChromePolicyVersionsV1UploadedFileConstraints.properties.supportedContentTypes.description
- schemas.GoogleChromePolicyVersionsV1UploadedFileConstraints.properties.supportedContentTypes.items.enum
- schemas.GoogleChromePolicyVersionsV1UploadedFileConstraints.properties.supportedContentTypes.items.enumDescriptions
- schemas.GoogleChromePolicyVersionsV1UploadedFileConstraints.properties.supportedContentTypes.items.type
- schemas.GoogleChromePolicyVersionsV1UploadedFileConstraints.properties.supportedContentTypes.type
- schemas.GoogleChromePolicyVersionsV1UploadedFileConstraints.type
  • Loading branch information
yoshi-automation authored and bcoe committed Feb 2, 2024
1 parent 9025eed commit 57109aa
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 1 deletion.
53 changes: 52 additions & 1 deletion discovery/chromepolicy-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@
}
}
},
"revision": "20240103",
"revision": "20240131",
"rootUrl": "https://chromepolicy.googleapis.com/",
"schemas": {
"GoogleChromePolicyVersionsV1AdditionalTargetKeyName": {
Expand Down Expand Up @@ -762,6 +762,10 @@
"numericRangeConstraint": {
"$ref": "GoogleChromePolicyVersionsV1NumericRangeConstraint",
"description": "The allowed range for numeric fields."
},
"uploadedFileConstraints": {
"$ref": "GoogleChromePolicyVersionsV1UploadedFileConstraints",
"description": "Constraints on the uploaded file of a file policy. If present, this policy requires a URL that can be fetched by uploading a file with the constraints specified in this proto."
}
},
"type": "object"
Expand Down Expand Up @@ -1520,6 +1524,53 @@
},
"type": "object"
},
"GoogleChromePolicyVersionsV1UploadedFileConstraints": {
"description": "Constraints on the uploaded file of a file policy.",
"id": "GoogleChromePolicyVersionsV1UploadedFileConstraints",
"properties": {
"sizeLimitBytes": {
"description": "The size limit of uploaded files for a setting, in bytes.",
"format": "int64",
"type": "string"
},
"supportedContentTypes": {
"description": "File types that can be uploaded for a setting.",
"items": {
"enum": [
"CONTENT_TYPE_UNSPECIFIED",
"CONTENT_TYPE_PLAIN_TEXT",
"CONTENT_TYPE_HTML",
"CONTENT_TYPE_IMAGE_JPEG",
"CONTENT_TYPE_IMAGE_GIF",
"CONTENT_TYPE_IMAGE_PNG",
"CONTENT_TYPE_JSON",
"CONTENT_TYPE_ZIP",
"CONTENT_TYPE_GZIP",
"CONTENT_TYPE_CSV",
"CONTENT_TYPE_YAML",
"CONTENT_TYPE_IMAGE_WEBP"
],
"enumDescriptions": [
"Unspecified content type.",
"Plain text.",
"HTML.",
"JPEG.",
"GIF.",
"PNG.",
"JSON.",
"ZIP.",
"GZIP.",
"CSV.",
"YAML.",
"WEBP."
],
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"GoogleProtobufEmpty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }",
"id": "GoogleProtobufEmpty",
Expand Down
17 changes: 17 additions & 0 deletions src/apis/chromepolicy/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,10 @@ export namespace chromepolicy_v1 {
* The allowed range for numeric fields.
*/
numericRangeConstraint?: Schema$GoogleChromePolicyVersionsV1NumericRangeConstraint;
/**
* Constraints on the uploaded file of a file policy. If present, this policy requires a URL that can be fetched by uploading a file with the constraints specified in this proto.
*/
uploadedFileConstraints?: Schema$GoogleChromePolicyVersionsV1UploadedFileConstraints;
}
/**
* 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 @@ -789,6 +793,19 @@ export namespace chromepolicy_v1 {
*/
policyTargetKey?: Schema$GoogleChromePolicyVersionsV1PolicyTargetKey;
}
/**
* Constraints on the uploaded file of a file policy.
*/
export interface Schema$GoogleChromePolicyVersionsV1UploadedFileConstraints {
/**
* The size limit of uploaded files for a setting, in bytes.
*/
sizeLimitBytes?: string | null;
/**
* File types that can be uploaded for a setting.
*/
supportedContentTypes?: string[] | null;
}
/**
* Request message for uploading a file for a policy.
*/
Expand Down

0 comments on commit 57109aa

Please sign in to comment.