Skip to content

Commit 473143f

Browse files
feat(chromepolicy): update the API
#### chromepolicy:v1 The following keys were added: - schemas.Proto2DescriptorProto.properties.visibility.description - schemas.Proto2DescriptorProto.properties.visibility.enum - schemas.Proto2DescriptorProto.properties.visibility.enumDescriptions - schemas.Proto2DescriptorProto.properties.visibility.type - schemas.Proto2EnumDescriptorProto.properties.visibility.description - schemas.Proto2EnumDescriptorProto.properties.visibility.enum - schemas.Proto2EnumDescriptorProto.properties.visibility.enumDescriptions - schemas.Proto2EnumDescriptorProto.properties.visibility.type - schemas.Proto2FileDescriptorProto.properties.optionDependency.description - schemas.Proto2FileDescriptorProto.properties.optionDependency.items.type - schemas.Proto2FileDescriptorProto.properties.optionDependency.type The following keys were changed: - schemas.GoogleChromePolicyVersionsV1NetworkSetting.description
1 parent 27b8141 commit 473143f

File tree

2 files changed

+50
-3
lines changed

2 files changed

+50
-3
lines changed

‎discovery/chromepolicy-v1.json

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@
557557
}
558558
}
559559
},
560-
"revision": "20241118",
560+
"revision": "20250409",
561561
"rootUrl": "https://chromepolicy.googleapis.com/",
562562
"schemas": {
563563
"GoogleChromePolicyVersionsV1AdditionalTargetKeyName": {
@@ -893,7 +893,7 @@
893893
"type": "object"
894894
},
895895
"GoogleChromePolicyVersionsV1NetworkSetting": {
896-
"description": "A network setting contains network configurations.",
896+
"description": "A network setting contains network configurations. It adheres to the PolicyAPI formats defined under the namespace chrome.networks.{wifi/ethernet/cellular/vpn}.Details",
897897
"id": "GoogleChromePolicyVersionsV1NetworkSetting",
898898
"properties": {
899899
"policySchema": {
@@ -1629,6 +1629,20 @@
16291629
"$ref": "Proto2OneofDescriptorProto"
16301630
},
16311631
"type": "array"
1632+
},
1633+
"visibility": {
1634+
"description": "Support for `export` and `local` keywords on enums.",
1635+
"enum": [
1636+
"VISIBILITY_UNSET",
1637+
"VISIBILITY_LOCAL",
1638+
"VISIBILITY_EXPORT"
1639+
],
1640+
"enumDescriptions": [
1641+
"",
1642+
"",
1643+
""
1644+
],
1645+
"type": "string"
16321646
}
16331647
},
16341648
"type": "object"
@@ -1645,6 +1659,20 @@
16451659
"$ref": "Proto2EnumValueDescriptorProto"
16461660
},
16471661
"type": "array"
1662+
},
1663+
"visibility": {
1664+
"description": "Support for `export` and `local` keywords on enums.",
1665+
"enum": [
1666+
"VISIBILITY_UNSET",
1667+
"VISIBILITY_LOCAL",
1668+
"VISIBILITY_EXPORT"
1669+
],
1670+
"enumDescriptions": [
1671+
"",
1672+
"",
1673+
""
1674+
],
1675+
"type": "string"
16481676
}
16491677
},
16501678
"type": "object"
@@ -1781,6 +1809,13 @@
17811809
"description": "file name, relative to root of source tree",
17821810
"type": "string"
17831811
},
1812+
"optionDependency": {
1813+
"description": "Names of files imported by this file purely for the purpose of providing option extensions. These are excluded from the dependency list above.",
1814+
"items": {
1815+
"type": "string"
1816+
},
1817+
"type": "array"
1818+
},
17841819
"package": {
17851820
"description": "e.g. \"foo\", \"foo.bar\", etc.",
17861821
"type": "string"

‎src/apis/chromepolicy/v1.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ export namespace chromepolicy_v1 {
385385
updateMask?: string | null;
386386
}
387387
/**
388-
* A network setting contains network configurations.
388+
* A network setting contains network configurations. It adheres to the PolicyAPI formats defined under the namespace chrome.networks.{wifi/ethernet/cellular/vpn\}.Details
389389
*/
390390
export interface Schema$GoogleChromePolicyVersionsV1NetworkSetting {
391391
/**
@@ -854,13 +854,21 @@ export namespace chromepolicy_v1 {
854854
name?: string | null;
855855
nestedType?: Schema$Proto2DescriptorProto[];
856856
oneofDecl?: Schema$Proto2OneofDescriptorProto[];
857+
/**
858+
* Support for `export` and `local` keywords on enums.
859+
*/
860+
visibility?: string | null;
857861
}
858862
/**
859863
* Describes an enum type.
860864
*/
861865
export interface Schema$Proto2EnumDescriptorProto {
862866
name?: string | null;
863867
value?: Schema$Proto2EnumValueDescriptorProto[];
868+
/**
869+
* Support for `export` and `local` keywords on enums.
870+
*/
871+
visibility?: string | null;
864872
}
865873
/**
866874
* Describes a value within an enum.
@@ -918,6 +926,10 @@ export namespace chromepolicy_v1 {
918926
* file name, relative to root of source tree
919927
*/
920928
name?: string | null;
929+
/**
930+
* Names of files imported by this file purely for the purpose of providing option extensions. These are excluded from the dependency list above.
931+
*/
932+
optionDependency?: string[] | null;
921933
/**
922934
* e.g. "foo", "foo.bar", etc.
923935
*/

0 commit comments

Comments
 (0)