From fe72ad1a338f479e121db2ff040787c8bff52c06 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 3 Jan 2025 00:28:43 -0800 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2946) --- .../v1/androidenterprise-api.json | 23 +------------------ androidenterprise/v1/androidenterprise-gen.go | 20 ++-------------- 2 files changed, 3 insertions(+), 40 deletions(-) diff --git a/androidenterprise/v1/androidenterprise-api.json b/androidenterprise/v1/androidenterprise-api.json index 8537d8c269..d926080e50 100644 --- a/androidenterprise/v1/androidenterprise-api.json +++ b/androidenterprise/v1/androidenterprise-api.json @@ -392,22 +392,6 @@ "enterpriseId" ], "parameters": { - "deviceType": { - "deprecated": true, - "description": "Deprecated: Use enrollment_token instead. this field will be removed in the future.", - "enum": [ - "unknown", - "dedicatedDevice", - "knowledgeWorker" - ], - "enumDescriptions": [ - "This value is unused", - "This device is a dedicated device.", - "This device is required to have an authenticated user." - ], - "location": "query", - "type": "string" - }, "enrollmentToken.duration": { "description": "[Optional] The length of time the enrollment token is valid, ranging from 1 minute to [`Durations.MAX_VALUE`](https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately 10,000 years. If not specified, the default duration is 1 hour.", "format": "google-duration", @@ -2681,7 +2665,7 @@ } } }, - "revision": "20241113", + "revision": "20241217", "rootUrl": "https://androidenterprise.googleapis.com/", "schemas": { "Administrator": { @@ -3180,11 +3164,6 @@ "id": "CreateEnrollmentTokenResponse", "properties": { "enrollmentToken": { - "deprecated": true, - "description": "Deprecated: Use token instead. This field will be removed in the future.", - "type": "string" - }, - "token": { "$ref": "EnrollmentToken", "description": "[Required] The created enrollment token." } diff --git a/androidenterprise/v1/androidenterprise-gen.go b/androidenterprise/v1/androidenterprise-gen.go index e0babc488e..9c4d52905e 100644 --- a/androidenterprise/v1/androidenterprise-gen.go +++ b/androidenterprise/v1/androidenterprise-gen.go @@ -992,11 +992,8 @@ func (s ConfigurationVariables) MarshalJSON() ([]byte, error) { // CreateEnrollmentTokenResponse: Response message for create enrollment token. type CreateEnrollmentTokenResponse struct { - // EnrollmentToken: Deprecated: Use token instead. This field will be removed - // in the future. - EnrollmentToken string `json:"enrollmentToken,omitempty"` - // Token: [Required] The created enrollment token. - Token *EnrollmentToken `json:"token,omitempty"` + // EnrollmentToken: [Required] The created enrollment token. + EnrollmentToken *EnrollmentToken `json:"enrollmentToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -4320,19 +4317,6 @@ func (r *EnterprisesService) CreateEnrollmentToken(enterpriseId string) *Enterpr return c } -// DeviceType sets the optional parameter "deviceType": Deprecated: Use -// enrollment_token instead. this field will be removed in the future. -// -// Possible values: -// -// "unknown" - This value is unused -// "dedicatedDevice" - This device is a dedicated device. -// "knowledgeWorker" - This device is required to have an authenticated user. -func (c *EnterprisesCreateEnrollmentTokenCall) DeviceType(deviceType string) *EnterprisesCreateEnrollmentTokenCall { - c.urlParams_.Set("deviceType", deviceType) - return c -} - // EnrollmentTokenDuration sets the optional parameter // "enrollmentToken.duration": [Optional] The length of time the enrollment // token is valid, ranging from 1 minute to `Durations.MAX_VALUE`