diff --git a/discovery/chromepolicy-v1.json b/discovery/chromepolicy-v1.json index a8ce972b28..9eaa19041d 100644 --- a/discovery/chromepolicy-v1.json +++ b/discovery/chromepolicy-v1.json @@ -557,7 +557,7 @@ } } }, - "revision": "20240103", + "revision": "20240131", "rootUrl": "https://chromepolicy.googleapis.com/", "schemas": { "GoogleChromePolicyVersionsV1AdditionalTargetKeyName": { @@ -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" @@ -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", diff --git a/src/apis/chromepolicy/v1.ts b/src/apis/chromepolicy/v1.ts index 32873ce9e3..9b35cf2880 100644 --- a/src/apis/chromepolicy/v1.ts +++ b/src/apis/chromepolicy/v1.ts @@ -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. @@ -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. */