Skip to content

Commit

Permalink
fix(androidenterprise): update the API
Browse files Browse the repository at this point in the history
#### androidenterprise:v1
The following keys were changed:
- resources.devices.methods.update.description
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Nov 30, 2020
1 parent 886a952 commit 8017ae2
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 78 deletions.
4 changes: 2 additions & 2 deletions discovery/androidenterprise-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@
]
},
"update": {
"description": "Updates the device policy",
"description": "Updates the device policy. To ensure the policy is properly enforced, you need to prevent unmanaged accounts from accessing Google Play by setting the allowed_accounts in the managed configuration for the Google Play package. See restrict accounts in Google Play.",
"flatPath": "androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}",
"httpMethod": "PUT",
"id": "androidenterprise.devices.update",
Expand Down Expand Up @@ -2610,7 +2610,7 @@
}
}
},
"revision": "20201104",
"revision": "20201125",
"rootUrl": "https://androidenterprise.googleapis.com/",
"schemas": {
"Administrator": {
Expand Down
110 changes: 34 additions & 76 deletions src/apis/androidenterprise/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2143,7 +2143,7 @@ export namespace androidenterprise_v1 {
}

/**
* Updates the device policy
* Updates the device policy. To ensure the policy is properly enforced, you need to prevent unmanaged accounts from accessing Google Play by setting the allowed_accounts in the managed configuration for the Google Play package. See restrict accounts in Google Play.
* @example
* ```js
* // Before running the sample:
Expand Down Expand Up @@ -3808,42 +3808,28 @@ export namespace androidenterprise_v1 {
params: Params$Resource$Enterprises$Sendtestpushnotification,
options:
| MethodOptions
| BodyResponseCallback<
Schema$EnterprisesSendTestPushNotificationResponse
>,
callback: BodyResponseCallback<
Schema$EnterprisesSendTestPushNotificationResponse
>
| BodyResponseCallback<Schema$EnterprisesSendTestPushNotificationResponse>,
callback: BodyResponseCallback<Schema$EnterprisesSendTestPushNotificationResponse>
): void;
sendTestPushNotification(
params: Params$Resource$Enterprises$Sendtestpushnotification,
callback: BodyResponseCallback<
Schema$EnterprisesSendTestPushNotificationResponse
>
callback: BodyResponseCallback<Schema$EnterprisesSendTestPushNotificationResponse>
): void;
sendTestPushNotification(
callback: BodyResponseCallback<
Schema$EnterprisesSendTestPushNotificationResponse
>
callback: BodyResponseCallback<Schema$EnterprisesSendTestPushNotificationResponse>
): void;
sendTestPushNotification(
paramsOrCallback?:
| Params$Resource$Enterprises$Sendtestpushnotification
| BodyResponseCallback<
Schema$EnterprisesSendTestPushNotificationResponse
>
| BodyResponseCallback<Schema$EnterprisesSendTestPushNotificationResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<
Schema$EnterprisesSendTestPushNotificationResponse
>
| BodyResponseCallback<Schema$EnterprisesSendTestPushNotificationResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<
Schema$EnterprisesSendTestPushNotificationResponse
>
| BodyResponseCallback<Schema$EnterprisesSendTestPushNotificationResponse>
| BodyResponseCallback<Readable>
):
| void
Expand Down Expand Up @@ -3888,9 +3874,9 @@ export namespace androidenterprise_v1 {
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<
Schema$EnterprisesSendTestPushNotificationResponse
>(parameters);
return createAPIRequest<Schema$EnterprisesSendTestPushNotificationResponse>(
parameters
);
}
}

Expand Down Expand Up @@ -6501,42 +6487,28 @@ export namespace androidenterprise_v1 {
params: Params$Resource$Managedconfigurationsfordevice$List,
options:
| MethodOptions
| BodyResponseCallback<
Schema$ManagedConfigurationsForDeviceListResponse
>,
callback: BodyResponseCallback<
Schema$ManagedConfigurationsForDeviceListResponse
>
| BodyResponseCallback<Schema$ManagedConfigurationsForDeviceListResponse>,
callback: BodyResponseCallback<Schema$ManagedConfigurationsForDeviceListResponse>
): void;
list(
params: Params$Resource$Managedconfigurationsfordevice$List,
callback: BodyResponseCallback<
Schema$ManagedConfigurationsForDeviceListResponse
>
callback: BodyResponseCallback<Schema$ManagedConfigurationsForDeviceListResponse>
): void;
list(
callback: BodyResponseCallback<
Schema$ManagedConfigurationsForDeviceListResponse
>
callback: BodyResponseCallback<Schema$ManagedConfigurationsForDeviceListResponse>
): void;
list(
paramsOrCallback?:
| Params$Resource$Managedconfigurationsfordevice$List
| BodyResponseCallback<
Schema$ManagedConfigurationsForDeviceListResponse
>
| BodyResponseCallback<Schema$ManagedConfigurationsForDeviceListResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<
Schema$ManagedConfigurationsForDeviceListResponse
>
| BodyResponseCallback<Schema$ManagedConfigurationsForDeviceListResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<
Schema$ManagedConfigurationsForDeviceListResponse
>
| BodyResponseCallback<Schema$ManagedConfigurationsForDeviceListResponse>
| BodyResponseCallback<Readable>
):
| void
Expand Down Expand Up @@ -6581,9 +6553,9 @@ export namespace androidenterprise_v1 {
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<
Schema$ManagedConfigurationsForDeviceListResponse
>(parameters);
return createAPIRequest<Schema$ManagedConfigurationsForDeviceListResponse>(
parameters
);
}
}

Expand Down Expand Up @@ -7184,20 +7156,14 @@ export namespace androidenterprise_v1 {
options:
| MethodOptions
| BodyResponseCallback<Schema$ManagedConfigurationsForUserListResponse>,
callback: BodyResponseCallback<
Schema$ManagedConfigurationsForUserListResponse
>
callback: BodyResponseCallback<Schema$ManagedConfigurationsForUserListResponse>
): void;
list(
params: Params$Resource$Managedconfigurationsforuser$List,
callback: BodyResponseCallback<
Schema$ManagedConfigurationsForUserListResponse
>
callback: BodyResponseCallback<Schema$ManagedConfigurationsForUserListResponse>
): void;
list(
callback: BodyResponseCallback<
Schema$ManagedConfigurationsForUserListResponse
>
callback: BodyResponseCallback<Schema$ManagedConfigurationsForUserListResponse>
): void;
list(
paramsOrCallback?:
Expand Down Expand Up @@ -7255,9 +7221,9 @@ export namespace androidenterprise_v1 {
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<
Schema$ManagedConfigurationsForUserListResponse
>(parameters);
return createAPIRequest<Schema$ManagedConfigurationsForUserListResponse>(
parameters
);
}
}

Expand Down Expand Up @@ -7556,23 +7522,15 @@ export namespace androidenterprise_v1 {
params: Params$Resource$Managedconfigurationssettings$List,
options:
| MethodOptions
| BodyResponseCallback<
Schema$ManagedConfigurationsSettingsListResponse
>,
callback: BodyResponseCallback<
Schema$ManagedConfigurationsSettingsListResponse
>
| BodyResponseCallback<Schema$ManagedConfigurationsSettingsListResponse>,
callback: BodyResponseCallback<Schema$ManagedConfigurationsSettingsListResponse>
): void;
list(
params: Params$Resource$Managedconfigurationssettings$List,
callback: BodyResponseCallback<
Schema$ManagedConfigurationsSettingsListResponse
>
callback: BodyResponseCallback<Schema$ManagedConfigurationsSettingsListResponse>
): void;
list(
callback: BodyResponseCallback<
Schema$ManagedConfigurationsSettingsListResponse
>
callback: BodyResponseCallback<Schema$ManagedConfigurationsSettingsListResponse>
): void;
list(
paramsOrCallback?:
Expand Down Expand Up @@ -7630,9 +7588,9 @@ export namespace androidenterprise_v1 {
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<
Schema$ManagedConfigurationsSettingsListResponse
>(parameters);
return createAPIRequest<Schema$ManagedConfigurationsSettingsListResponse>(
parameters
);
}
}
}
Expand Down

0 comments on commit 8017ae2

Please sign in to comment.