diff --git a/clients/google-api-services-androidmanagement/v1/2.0.0/README.md b/clients/google-api-services-androidmanagement/v1/2.0.0/README.md
index 7b869a6f1a3..9e2f287b427 100644
--- a/clients/google-api-services-androidmanagement/v1/2.0.0/README.md
+++ b/clients/google-api-services-androidmanagement/v1/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Android Management API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DeviceWidePolicies extends com.google.api.client.json.GenericJson { + + /** + * Optional. Covers controls for radio state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DeviceWideRadioState deviceRadioState; + + /** + * Optional. Covers controls for radio state. + * @return value or {@code null} for none + */ + public DeviceWideRadioState getDeviceRadioState() { + return deviceRadioState; + } + + /** + * Optional. Covers controls for radio state. + * @param deviceRadioState deviceRadioState or {@code null} for none + */ + public DeviceWidePolicies setDeviceRadioState(DeviceWideRadioState deviceRadioState) { + this.deviceRadioState = deviceRadioState; + return this; + } + + @Override + public DeviceWidePolicies set(String fieldName, Object value) { + return (DeviceWidePolicies) super.set(fieldName, value); + } + + @Override + public DeviceWidePolicies clone() { + return (DeviceWidePolicies) super.clone(); + } + +} diff --git a/clients/google-api-services-androidmanagement/v1/2.0.0/com/google/api/services/androidmanagement/v1/model/DeviceWideRadioState.java b/clients/google-api-services-androidmanagement/v1/2.0.0/com/google/api/services/androidmanagement/v1/model/DeviceWideRadioState.java new file mode 100644 index 00000000000..8ac2186e9b0 --- /dev/null +++ b/clients/google-api-services-androidmanagement/v1/2.0.0/com/google/api/services/androidmanagement/v1/model/DeviceWideRadioState.java @@ -0,0 +1,73 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.androidmanagement.v1.model; + +/** + * Controls for device radio settings. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Android Management API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DeviceWideRadioState extends com.google.api.client.json.GenericJson { + + /** + * Optional. Controls whether NFC is disabled on the device and if the user can toggle NFC between + * enabled and disabled. This is for work profiles on company-owned devices. To control NFC on + * fully managed devices, use deviceRadioState.nfc instead. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nfc; + + /** + * Optional. Controls whether NFC is disabled on the device and if the user can toggle NFC between + * enabled and disabled. This is for work profiles on company-owned devices. To control NFC on + * fully managed devices, use deviceRadioState.nfc instead. + * @return value or {@code null} for none + */ + public java.lang.String getNfc() { + return nfc; + } + + /** + * Optional. Controls whether NFC is disabled on the device and if the user can toggle NFC between + * enabled and disabled. This is for work profiles on company-owned devices. To control NFC on + * fully managed devices, use deviceRadioState.nfc instead. + * @param nfc nfc or {@code null} for none + */ + public DeviceWideRadioState setNfc(java.lang.String nfc) { + this.nfc = nfc; + return this; + } + + @Override + public DeviceWideRadioState set(String fieldName, Object value) { + return (DeviceWideRadioState) super.set(fieldName, value); + } + + @Override + public DeviceWideRadioState clone() { + return (DeviceWideRadioState) super.clone(); + } + +} diff --git a/clients/google-api-services-androidmanagement/v1/2.0.0/com/google/api/services/androidmanagement/v1/model/Policy.java b/clients/google-api-services-androidmanagement/v1/2.0.0/com/google/api/services/androidmanagement/v1/model/Policy.java index 3abdf0a90a6..1268b8a7b36 100644 --- a/clients/google-api-services-androidmanagement/v1/2.0.0/com/google/api/services/androidmanagement/v1/model/Policy.java +++ b/clients/google-api-services-androidmanagement/v1/2.0.0/com/google/api/services/androidmanagement/v1/model/Policy.java @@ -334,6 +334,13 @@ public final class Policy extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private DeviceRadioState deviceRadioState; + /** + * Optional. Policies controlling the device on company-owned devices. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DeviceWidePolicies deviceWidePolicies; + /** * Optional. Controls for the display settings. * The value may be {@code null}. @@ -1583,6 +1590,23 @@ public Policy setDeviceRadioState(DeviceRadioState deviceRadioState) { return this; } + /** + * Optional. Policies controlling the device on company-owned devices. + * @return value or {@code null} for none + */ + public DeviceWidePolicies getDeviceWidePolicies() { + return deviceWidePolicies; + } + + /** + * Optional. Policies controlling the device on company-owned devices. + * @param deviceWidePolicies deviceWidePolicies or {@code null} for none + */ + public Policy setDeviceWidePolicies(DeviceWidePolicies deviceWidePolicies) { + this.deviceWidePolicies = deviceWidePolicies; + return this; + } + /** * Optional. Controls for the display settings. * @return value or {@code null} for none diff --git a/clients/google-api-services-androidmanagement/v1/2.0.0/pom.xml b/clients/google-api-services-androidmanagement/v1/2.0.0/pom.xml index 7b7726dffc2..56f45f807c7 100644 --- a/clients/google-api-services-androidmanagement/v1/2.0.0/pom.xml +++ b/clients/google-api-services-androidmanagement/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@