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:
- resources.media.methods.upload (Total Keys: 16)
- schemas.GoogleChromePolicyV1UploadPolicyFileRequest (Total Keys: 3)
- schemas.GoogleChromePolicyV1UploadPolicyFileResponse (Total Keys: 3)
  • Loading branch information
yoshi-automation committed Jul 19, 2022
1 parent b5bb878 commit df983ba
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/dyn/chromepolicy_v1.html
Expand Up @@ -79,6 +79,11 @@ <h2>Instance Methods</h2>
</p>
<p class="firstline">Returns the customers Resource.</p>

<p class="toc_element">
<code><a href="chromepolicy_v1.media.html">media()</a></code>
</p>
<p class="firstline">Returns the media Resource.</p>

<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
Expand Down
68 changes: 67 additions & 1 deletion googleapiclient/discovery_cache/documents/chromepolicy.v1.json
Expand Up @@ -278,9 +278,53 @@
}
}
}
},
"media": {
"methods": {
"upload": {
"description": "Creates an enterprise file from the content provided by user. Returns a public download url for end user.",
"flatPath": "v1/customers/{customersId}/policies/files:uploadPolicyFile",
"httpMethod": "POST",
"id": "chromepolicy.media.upload",
"mediaUpload": {
"accept": [
"*/*"
],
"protocols": {
"simple": {
"multipart": true,
"path": "/upload/v1/{+customer}/policies/files:uploadPolicyFile"
}
}
},
"parameterOrder": [
"customer"
],
"parameters": {
"customer": {
"description": "Required. The customer for which the file upload will apply.",
"location": "path",
"pattern": "^customers/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+customer}/policies/files:uploadPolicyFile",
"request": {
"$ref": "GoogleChromePolicyV1UploadPolicyFileRequest"
},
"response": {
"$ref": "GoogleChromePolicyV1UploadPolicyFileResponse"
},
"scopes": [
"https://www.googleapis.com/auth/chrome.management.policy"
],
"supportsMediaUpload": true
}
}
}
},
"revision": "20220708",
"revision": "20220718",
"rootUrl": "https://chromepolicy.googleapis.com/",
"schemas": {
"ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle": {
Expand Down Expand Up @@ -736,6 +780,28 @@
},
"type": "object"
},
"GoogleChromePolicyV1UploadPolicyFileRequest": {
"description": "Request message for uploading a file for a policy. Next ID: 5",
"id": "GoogleChromePolicyV1UploadPolicyFileRequest",
"properties": {
"policyField": {
"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.",
"type": "string"
}
},
"type": "object"
},
"GoogleChromePolicyV1UploadPolicyFileResponse": {
"description": "Response message for downloading an uploaded file. Next ID: 2",
"id": "GoogleChromePolicyV1UploadPolicyFileResponse",
"properties": {
"downloadUri": {
"description": "The uri for end user to download the file.",
"type": "string"
}
},
"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

0 comments on commit df983ba

Please sign in to comment.