Skip to content

Commit 3cedef6

Browse files
yoshi-automationsofisl
authored andcommitted
feat(chromepolicy)!: update the API
BREAKING CHANGE: This release has breaking changes. #### chromepolicy:v1 The following keys were deleted: - schemas.GoogleChromePolicyV1PolicySchemaFieldDescription.properties.description.readOnly - schemas.GoogleChromePolicyV1UploadPolicyFileRequest.description - schemas.GoogleChromePolicyV1UploadPolicyFileRequest.id - schemas.GoogleChromePolicyV1UploadPolicyFileRequest.properties.policyField.description - schemas.GoogleChromePolicyV1UploadPolicyFileRequest.properties.policyField.type - schemas.GoogleChromePolicyV1UploadPolicyFileRequest.type - schemas.GoogleChromePolicyV1UploadPolicyFileResponse.description - schemas.GoogleChromePolicyV1UploadPolicyFileResponse.id - schemas.GoogleChromePolicyV1UploadPolicyFileResponse.properties.downloadUri.description - schemas.GoogleChromePolicyV1UploadPolicyFileResponse.properties.downloadUri.type - schemas.GoogleChromePolicyV1UploadPolicyFileResponse.type The following keys were added: - schemas.GoogleChromePolicyV1PolicySchema.properties.categoryTitle.description - schemas.GoogleChromePolicyV1PolicySchema.properties.categoryTitle.readOnly - schemas.GoogleChromePolicyV1PolicySchema.properties.categoryTitle.type - schemas.GoogleChromePolicyV1PolicySchemaFieldDescription.properties.fieldDescription.description - schemas.GoogleChromePolicyV1PolicySchemaFieldDescription.properties.fieldDescription.readOnly - schemas.GoogleChromePolicyV1PolicySchemaFieldDescription.properties.fieldDescription.type - schemas.GoogleChromePolicyV1PolicySchemaFieldDescription.properties.name.description - schemas.GoogleChromePolicyV1PolicySchemaFieldDescription.properties.name.readOnly - schemas.GoogleChromePolicyV1PolicySchemaFieldDescription.properties.name.type - schemas.GoogleChromePolicyVersionsV1UploadPolicyFileRequest.description - schemas.GoogleChromePolicyVersionsV1UploadPolicyFileRequest.id - schemas.GoogleChromePolicyVersionsV1UploadPolicyFileRequest.properties.policyField.description - schemas.GoogleChromePolicyVersionsV1UploadPolicyFileRequest.properties.policyField.type - schemas.GoogleChromePolicyVersionsV1UploadPolicyFileRequest.type - schemas.GoogleChromePolicyVersionsV1UploadPolicyFileResponse.description - schemas.GoogleChromePolicyVersionsV1UploadPolicyFileResponse.id - schemas.GoogleChromePolicyVersionsV1UploadPolicyFileResponse.properties.downloadUri.description - schemas.GoogleChromePolicyVersionsV1UploadPolicyFileResponse.properties.downloadUri.type - schemas.GoogleChromePolicyVersionsV1UploadPolicyFileResponse.type The following keys were changed: - resources.media.methods.upload.request.$ref - resources.media.methods.upload.response.$ref - schemas.GoogleChromePolicyV1PolicySchema.description - schemas.GoogleChromePolicyV1PolicySchemaFieldDescription.properties.description.description
1 parent 70b92d6 commit 3cedef6

File tree

3 files changed

+54
-27
lines changed

3 files changed

+54
-27
lines changed

discovery/chromepolicy-v1.json

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -428,10 +428,10 @@
428428
},
429429
"path": "v1/{+customer}/policies/files:uploadPolicyFile",
430430
"request": {
431-
"$ref": "GoogleChromePolicyV1UploadPolicyFileRequest"
431+
"$ref": "GoogleChromePolicyVersionsV1UploadPolicyFileRequest"
432432
},
433433
"response": {
434-
"$ref": "GoogleChromePolicyV1UploadPolicyFileResponse"
434+
"$ref": "GoogleChromePolicyVersionsV1UploadPolicyFileResponse"
435435
},
436436
"scopes": [
437437
"https://www.googleapis.com/auth/chrome.management.policy"
@@ -441,7 +441,7 @@
441441
}
442442
}
443443
},
444-
"revision": "20220817",
444+
"revision": "20220919",
445445
"rootUrl": "https://chromepolicy.googleapis.com/",
446446
"schemas": {
447447
"ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle": {
@@ -676,7 +676,7 @@
676676
"type": "object"
677677
},
678678
"GoogleChromePolicyV1PolicySchema": {
679-
"description": "Resource representing a policy schema. Next ID: 13",
679+
"description": "Resource representing a policy schema. Next ID: 14",
680680
"id": "GoogleChromePolicyV1PolicySchema",
681681
"properties": {
682682
"accessRestrictions": {
@@ -695,6 +695,11 @@
695695
"readOnly": true,
696696
"type": "array"
697697
},
698+
"categoryTitle": {
699+
"description": "Output only. Title of the category in which a setting belongs.",
700+
"readOnly": true,
701+
"type": "string"
702+
},
698703
"definition": {
699704
"$ref": "Proto2FileDescriptorProto",
700705
"description": "Schema definition using proto descriptor."
@@ -784,8 +789,7 @@
784789
"id": "GoogleChromePolicyV1PolicySchemaFieldDescription",
785790
"properties": {
786791
"description": {
787-
"description": "Output only. The description for the field.",
788-
"readOnly": true,
792+
"description": "Deprecated. Use name and field_description instead. The description for the field.",
789793
"type": "string"
790794
},
791795
"field": {
@@ -801,6 +805,11 @@
801805
"readOnly": true,
802806
"type": "array"
803807
},
808+
"fieldDescription": {
809+
"description": "Output only. The description of the field.",
810+
"readOnly": true,
811+
"type": "string"
812+
},
804813
"inputConstraint": {
805814
"description": "Output only. Any input constraints associated on the values for the field.",
806815
"readOnly": true,
@@ -814,6 +823,11 @@
814823
"readOnly": true,
815824
"type": "array"
816825
},
826+
"name": {
827+
"description": "Output only. The name of the field.",
828+
"readOnly": true,
829+
"type": "string"
830+
},
817831
"nestedFieldDescriptions": {
818832
"description": "Output only. Provides the description of the fields nested in this field, if the field is a message type that defines multiple fields.",
819833
"items": {
@@ -1026,9 +1040,9 @@
10261040
},
10271041
"type": "object"
10281042
},
1029-
"GoogleChromePolicyV1UploadPolicyFileRequest": {
1043+
"GoogleChromePolicyVersionsV1UploadPolicyFileRequest": {
10301044
"description": "Request message for uploading a file for a policy. Next ID: 5",
1031-
"id": "GoogleChromePolicyV1UploadPolicyFileRequest",
1045+
"id": "GoogleChromePolicyVersionsV1UploadPolicyFileRequest",
10321046
"properties": {
10331047
"policyField": {
10341048
"description": "Required. The fully qualified policy schema and field name this file is uploaded for. This information will be used to validate the content type of the file.",
@@ -1037,9 +1051,9 @@
10371051
},
10381052
"type": "object"
10391053
},
1040-
"GoogleChromePolicyV1UploadPolicyFileResponse": {
1054+
"GoogleChromePolicyVersionsV1UploadPolicyFileResponse": {
10411055
"description": "Response message for downloading an uploaded file. Next ID: 2",
1042-
"id": "GoogleChromePolicyV1UploadPolicyFileResponse",
1056+
"id": "GoogleChromePolicyVersionsV1UploadPolicyFileResponse",
10431057
"properties": {
10441058
"downloadUri": {
10451059
"description": "The uri for end user to download the file.",

src/apis/chromepolicy/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"webpack": "webpack"
2929
},
3030
"dependencies": {
31-
"googleapis-common": "^5.0.1"
31+
"googleapis-common": "^6.0.3"
3232
},
3333
"devDependencies": {
3434
"@microsoft/api-documenter": "^7.8.10",

src/apis/chromepolicy/v1.ts

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ export namespace chromepolicy_v1 {
293293
updateMask?: string | null;
294294
}
295295
/**
296-
* Resource representing a policy schema. Next ID: 13
296+
* Resource representing a policy schema. Next ID: 14
297297
*/
298298
export interface Schema$GoogleChromePolicyV1PolicySchema {
299299
/**
@@ -304,6 +304,10 @@ export namespace chromepolicy_v1 {
304304
* Output only. Additional key names that will be used to identify the target of the policy value. When specifying a `policyTargetKey`, each of the additional keys specified here will have to be included in the `additionalTargetKeys` map.
305305
*/
306306
additionalTargetKeyNames?: Schema$GoogleChromePolicyV1AdditionalTargetKeyName[];
307+
/**
308+
* Output only. Title of the category in which a setting belongs.
309+
*/
310+
categoryTitle?: string | null;
307311
/**
308312
* Schema definition using proto descriptor.
309313
*/
@@ -363,7 +367,7 @@ export namespace chromepolicy_v1 {
363367
*/
364368
export interface Schema$GoogleChromePolicyV1PolicySchemaFieldDescription {
365369
/**
366-
* Output only. The description for the field.
370+
* Deprecated. Use name and field_description instead. The description for the field.
367371
*/
368372
description?: string | null;
369373
/**
@@ -374,6 +378,10 @@ export namespace chromepolicy_v1 {
374378
* 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.
375379
*/
376380
fieldDependencies?: Schema$GoogleChromePolicyV1PolicySchemaFieldDependencies[];
381+
/**
382+
* Output only. The description of the field.
383+
*/
384+
fieldDescription?: string | null;
377385
/**
378386
* Output only. Any input constraints associated on the values for the field.
379387
*/
@@ -382,6 +390,10 @@ export namespace chromepolicy_v1 {
382390
* Output only. If the field has a set of known values, this field will provide a description for these values.
383391
*/
384392
knownValueDescriptions?: Schema$GoogleChromePolicyV1PolicySchemaFieldKnownValueDescription[];
393+
/**
394+
* Output only. The name of the field.
395+
*/
396+
name?: string | null;
385397
/**
386398
* Output only. Provides the description of the fields nested in this field, if the field is a message type that defines multiple fields.
387399
*/
@@ -539,7 +551,7 @@ export namespace chromepolicy_v1 {
539551
/**
540552
* Request message for uploading a file for a policy. Next ID: 5
541553
*/
542-
export interface Schema$GoogleChromePolicyV1UploadPolicyFileRequest {
554+
export interface Schema$GoogleChromePolicyVersionsV1UploadPolicyFileRequest {
543555
/**
544556
* Required. The fully qualified policy schema and field name this file is uploaded for. This information will be used to validate the content type of the file.
545557
*/
@@ -548,7 +560,7 @@ export namespace chromepolicy_v1 {
548560
/**
549561
* Response message for downloading an uploaded file. Next ID: 2
550562
*/
551-
export interface Schema$GoogleChromePolicyV1UploadPolicyFileResponse {
563+
export interface Schema$GoogleChromePolicyVersionsV1UploadPolicyFileResponse {
552564
/**
553565
* The uri for end user to download the file.
554566
*/
@@ -1835,6 +1847,7 @@ export namespace chromepolicy_v1 {
18351847
* // {
18361848
* // "accessRestrictions": [],
18371849
* // "additionalTargetKeyNames": [],
1850+
* // "categoryTitle": "my_categoryTitle",
18381851
* // "definition": {},
18391852
* // "fieldDescriptions": [],
18401853
* // "name": "my_name",
@@ -2196,7 +2209,7 @@ export namespace chromepolicy_v1 {
21962209
upload(
21972210
params?: Params$Resource$Media$Upload,
21982211
options?: MethodOptions
2199-
): GaxiosPromise<Schema$GoogleChromePolicyV1UploadPolicyFileResponse>;
2212+
): GaxiosPromise<Schema$GoogleChromePolicyVersionsV1UploadPolicyFileResponse>;
22002213
upload(
22012214
params: Params$Resource$Media$Upload,
22022215
options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2206,32 +2219,32 @@ export namespace chromepolicy_v1 {
22062219
params: Params$Resource$Media$Upload,
22072220
options:
22082221
| MethodOptions
2209-
| BodyResponseCallback<Schema$GoogleChromePolicyV1UploadPolicyFileResponse>,
2210-
callback: BodyResponseCallback<Schema$GoogleChromePolicyV1UploadPolicyFileResponse>
2222+
| BodyResponseCallback<Schema$GoogleChromePolicyVersionsV1UploadPolicyFileResponse>,
2223+
callback: BodyResponseCallback<Schema$GoogleChromePolicyVersionsV1UploadPolicyFileResponse>
22112224
): void;
22122225
upload(
22132226
params: Params$Resource$Media$Upload,
2214-
callback: BodyResponseCallback<Schema$GoogleChromePolicyV1UploadPolicyFileResponse>
2227+
callback: BodyResponseCallback<Schema$GoogleChromePolicyVersionsV1UploadPolicyFileResponse>
22152228
): void;
22162229
upload(
2217-
callback: BodyResponseCallback<Schema$GoogleChromePolicyV1UploadPolicyFileResponse>
2230+
callback: BodyResponseCallback<Schema$GoogleChromePolicyVersionsV1UploadPolicyFileResponse>
22182231
): void;
22192232
upload(
22202233
paramsOrCallback?:
22212234
| Params$Resource$Media$Upload
2222-
| BodyResponseCallback<Schema$GoogleChromePolicyV1UploadPolicyFileResponse>
2235+
| BodyResponseCallback<Schema$GoogleChromePolicyVersionsV1UploadPolicyFileResponse>
22232236
| BodyResponseCallback<Readable>,
22242237
optionsOrCallback?:
22252238
| MethodOptions
22262239
| StreamMethodOptions
2227-
| BodyResponseCallback<Schema$GoogleChromePolicyV1UploadPolicyFileResponse>
2240+
| BodyResponseCallback<Schema$GoogleChromePolicyVersionsV1UploadPolicyFileResponse>
22282241
| BodyResponseCallback<Readable>,
22292242
callback?:
2230-
| BodyResponseCallback<Schema$GoogleChromePolicyV1UploadPolicyFileResponse>
2243+
| BodyResponseCallback<Schema$GoogleChromePolicyVersionsV1UploadPolicyFileResponse>
22312244
| BodyResponseCallback<Readable>
22322245
):
22332246
| void
2234-
| GaxiosPromise<Schema$GoogleChromePolicyV1UploadPolicyFileResponse>
2247+
| GaxiosPromise<Schema$GoogleChromePolicyVersionsV1UploadPolicyFileResponse>
22352248
| GaxiosPromise<Readable> {
22362249
let params = (paramsOrCallback || {}) as Params$Resource$Media$Upload;
22372250
let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2267,12 +2280,12 @@ export namespace chromepolicy_v1 {
22672280
context: this.context,
22682281
};
22692282
if (callback) {
2270-
createAPIRequest<Schema$GoogleChromePolicyV1UploadPolicyFileResponse>(
2283+
createAPIRequest<Schema$GoogleChromePolicyVersionsV1UploadPolicyFileResponse>(
22712284
parameters,
22722285
callback as BodyResponseCallback<unknown>
22732286
);
22742287
} else {
2275-
return createAPIRequest<Schema$GoogleChromePolicyV1UploadPolicyFileResponse>(
2288+
return createAPIRequest<Schema$GoogleChromePolicyVersionsV1UploadPolicyFileResponse>(
22762289
parameters
22772290
);
22782291
}
@@ -2288,7 +2301,7 @@ export namespace chromepolicy_v1 {
22882301
/**
22892302
* Request body metadata
22902303
*/
2291-
requestBody?: Schema$GoogleChromePolicyV1UploadPolicyFileRequest;
2304+
requestBody?: Schema$GoogleChromePolicyVersionsV1UploadPolicyFileRequest;
22922305

22932306
/**
22942307
* Media metadata

0 commit comments

Comments
 (0)