All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.compute.model.InstanceGroupManager Maven / Gradle / Ivy

/*
 * Copyright 2010 Google Inc.
 *
 * 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://code.google.com/p/google-apis-client-generator/
 * (build: 2017-02-15 17:18:02 UTC)
 * on 2017-08-07 at 18:49:37 UTC 
 * Modify at your own risk.
 */

package com.google.api.services.compute.model;

/**
 * An Instance Group Manager resource.
 *
 * 

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 Compute Engine API. For a detailed explanation see: * http://code.google.com/p/google-http-java-client/wiki/JSON *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class InstanceGroupManager extends com.google.api.client.json.GenericJson { /** * The autohealing policy for this managed instance group. You can specify only one value. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List autoHealingPolicies; /** * The base instance name to use for instances in this group. The value must be 1-58 characters * long. Instances are named by appending a hyphen and a random four-character string to the base * instance name. The base instance name must comply with RFC1035. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String baseInstanceName; /** * [Output Only] The creation timestamp for this managed instance group in RFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String creationTimestamp; /** * [Output Only] The list of instance actions and the number of instances in this managed instance * group that are scheduled for each of those actions. * The value may be {@code null}. */ @com.google.api.client.util.Key private InstanceGroupManagerActionsSummary currentActions; /** * An optional description of this resource. Provide this property when you create the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String description; /** * The action to perform in case of zone failure. Only one value is supported, NO_FAILOVER. The * default is NO_FAILOVER. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String failoverAction; /** * [Output Only] The fingerprint of the resource data. You can use this optional field for * optimistic locking when you update the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String fingerprint; /** * [Output Only] A unique identifier for this resource type. The server generates this identifier. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** * [Output Only] The URL of the Instance Group resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String instanceGroup; /** * The URL of the instance template that is specified for this managed instance group. The group * uses this template to create all new instances in the managed instance group. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String instanceTemplate; /** * [Output Only] The resource type, which is always compute#instanceGroupManager for managed * instance groups. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** * The name of the managed instance group. The name must be 1-63 characters long, and comply with * RFC1035. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * Named ports configured for the Instance Groups complementary to this Instance Group Manager. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List namedPorts; /** * [Output Only] The list of instance actions and the number of instances in this managed instance * group that are pending for each of those actions. * The value may be {@code null}. */ @com.google.api.client.util.Key private InstanceGroupManagerPendingActionsSummary pendingActions; /** * [Output Only] The URL of the region where the managed instance group resides (for regional * resources). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String region; /** * [Output Only] The URL for this managed instance group. The server defines this URL. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** * [Output Only] The service account to be used as credentials for all operations performed by the * managed instance group on instances. The service accounts needs all permissions required to * create and delete instances. By default, the service account * {projectNumber}@cloudservices.gserviceaccount.com is used. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String serviceAccount; /** * The URLs for all TargetPool resources to which instances in the instanceGroup field are added. * The target pools automatically apply to all of the instances in the managed instance group. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List targetPools; /** * The target number of running instances for this managed instance group. Deleting or abandoning * instances reduces this number. Resizing the group changes this number. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer targetSize; /** * The update policy for this managed instance group. * The value may be {@code null}. */ @com.google.api.client.util.Key private InstanceGroupManagerUpdatePolicy updatePolicy; /** * Versions supported by this IGM. User should set this field if they need fine-grained control * over how many instances in each version are run by this IGM. Versions are keyed by * instanceTemplate. Every instanceTemplate can appear at most once. This field overrides * instanceTemplate field. If both instanceTemplate and versions are set, the user receives a * warning. "instanceTemplate: X" is semantically equivalent to "versions [ { instanceTemplate: X * } ]". Exactly one version must have targetSize field left unset. Size of such a version will be * calculated automatically. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List versions; /** * [Output Only] The URL of the zone where the managed instance group is located (for zonal * resources). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String zone; /** * The autohealing policy for this managed instance group. You can specify only one value. * @return value or {@code null} for none */ public java.util.List getAutoHealingPolicies() { return autoHealingPolicies; } /** * The autohealing policy for this managed instance group. You can specify only one value. * @param autoHealingPolicies autoHealingPolicies or {@code null} for none */ public InstanceGroupManager setAutoHealingPolicies(java.util.List autoHealingPolicies) { this.autoHealingPolicies = autoHealingPolicies; return this; } /** * The base instance name to use for instances in this group. The value must be 1-58 characters * long. Instances are named by appending a hyphen and a random four-character string to the base * instance name. The base instance name must comply with RFC1035. * @return value or {@code null} for none */ public java.lang.String getBaseInstanceName() { return baseInstanceName; } /** * The base instance name to use for instances in this group. The value must be 1-58 characters * long. Instances are named by appending a hyphen and a random four-character string to the base * instance name. The base instance name must comply with RFC1035. * @param baseInstanceName baseInstanceName or {@code null} for none */ public InstanceGroupManager setBaseInstanceName(java.lang.String baseInstanceName) { this.baseInstanceName = baseInstanceName; return this; } /** * [Output Only] The creation timestamp for this managed instance group in RFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { return creationTimestamp; } /** * [Output Only] The creation timestamp for this managed instance group in RFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InstanceGroupManager setCreationTimestamp(java.lang.String creationTimestamp) { this.creationTimestamp = creationTimestamp; return this; } /** * [Output Only] The list of instance actions and the number of instances in this managed instance * group that are scheduled for each of those actions. * @return value or {@code null} for none */ public InstanceGroupManagerActionsSummary getCurrentActions() { return currentActions; } /** * [Output Only] The list of instance actions and the number of instances in this managed instance * group that are scheduled for each of those actions. * @param currentActions currentActions or {@code null} for none */ public InstanceGroupManager setCurrentActions(InstanceGroupManagerActionsSummary currentActions) { this.currentActions = currentActions; return this; } /** * An optional description of this resource. Provide this property when you create the resource. * @return value or {@code null} for none */ public java.lang.String getDescription() { return description; } /** * An optional description of this resource. Provide this property when you create the resource. * @param description description or {@code null} for none */ public InstanceGroupManager setDescription(java.lang.String description) { this.description = description; return this; } /** * The action to perform in case of zone failure. Only one value is supported, NO_FAILOVER. The * default is NO_FAILOVER. * @return value or {@code null} for none */ public java.lang.String getFailoverAction() { return failoverAction; } /** * The action to perform in case of zone failure. Only one value is supported, NO_FAILOVER. The * default is NO_FAILOVER. * @param failoverAction failoverAction or {@code null} for none */ public InstanceGroupManager setFailoverAction(java.lang.String failoverAction) { this.failoverAction = failoverAction; return this; } /** * [Output Only] The fingerprint of the resource data. You can use this optional field for * optimistic locking when you update the resource. * @see #decodeFingerprint() * @return value or {@code null} for none */ public java.lang.String getFingerprint() { return fingerprint; } /** * [Output Only] The fingerprint of the resource data. You can use this optional field for * optimistic locking when you update the resource. * @see #getFingerprint() * @return Base64 decoded value or {@code null} for none * * @since 1.14 */ public byte[] decodeFingerprint() { return com.google.api.client.util.Base64.decodeBase64(fingerprint); } /** * [Output Only] The fingerprint of the resource data. You can use this optional field for * optimistic locking when you update the resource. * @see #encodeFingerprint() * @param fingerprint fingerprint or {@code null} for none */ public InstanceGroupManager setFingerprint(java.lang.String fingerprint) { this.fingerprint = fingerprint; return this; } /** * [Output Only] The fingerprint of the resource data. You can use this optional field for * optimistic locking when you update the resource. * @see #setFingerprint() * *

* The value is encoded Base64 or {@code null} for none. *

* * @since 1.14 */ public InstanceGroupManager encodeFingerprint(byte[] fingerprint) { this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); return this; } /** * [Output Only] A unique identifier for this resource type. The server generates this identifier. * @return value or {@code null} for none */ public java.math.BigInteger getId() { return id; } /** * [Output Only] A unique identifier for this resource type. The server generates this identifier. * @param id id or {@code null} for none */ public InstanceGroupManager setId(java.math.BigInteger id) { this.id = id; return this; } /** * [Output Only] The URL of the Instance Group resource. * @return value or {@code null} for none */ public java.lang.String getInstanceGroup() { return instanceGroup; } /** * [Output Only] The URL of the Instance Group resource. * @param instanceGroup instanceGroup or {@code null} for none */ public InstanceGroupManager setInstanceGroup(java.lang.String instanceGroup) { this.instanceGroup = instanceGroup; return this; } /** * The URL of the instance template that is specified for this managed instance group. The group * uses this template to create all new instances in the managed instance group. * @return value or {@code null} for none */ public java.lang.String getInstanceTemplate() { return instanceTemplate; } /** * The URL of the instance template that is specified for this managed instance group. The group * uses this template to create all new instances in the managed instance group. * @param instanceTemplate instanceTemplate or {@code null} for none */ public InstanceGroupManager setInstanceTemplate(java.lang.String instanceTemplate) { this.instanceTemplate = instanceTemplate; return this; } /** * [Output Only] The resource type, which is always compute#instanceGroupManager for managed * instance groups. * @return value or {@code null} for none */ public java.lang.String getKind() { return kind; } /** * [Output Only] The resource type, which is always compute#instanceGroupManager for managed * instance groups. * @param kind kind or {@code null} for none */ public InstanceGroupManager setKind(java.lang.String kind) { this.kind = kind; return this; } /** * The name of the managed instance group. The name must be 1-63 characters long, and comply with * RFC1035. * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * The name of the managed instance group. The name must be 1-63 characters long, and comply with * RFC1035. * @param name name or {@code null} for none */ public InstanceGroupManager setName(java.lang.String name) { this.name = name; return this; } /** * Named ports configured for the Instance Groups complementary to this Instance Group Manager. * @return value or {@code null} for none */ public java.util.List getNamedPorts() { return namedPorts; } /** * Named ports configured for the Instance Groups complementary to this Instance Group Manager. * @param namedPorts namedPorts or {@code null} for none */ public InstanceGroupManager setNamedPorts(java.util.List namedPorts) { this.namedPorts = namedPorts; return this; } /** * [Output Only] The list of instance actions and the number of instances in this managed instance * group that are pending for each of those actions. * @return value or {@code null} for none */ public InstanceGroupManagerPendingActionsSummary getPendingActions() { return pendingActions; } /** * [Output Only] The list of instance actions and the number of instances in this managed instance * group that are pending for each of those actions. * @param pendingActions pendingActions or {@code null} for none */ public InstanceGroupManager setPendingActions(InstanceGroupManagerPendingActionsSummary pendingActions) { this.pendingActions = pendingActions; return this; } /** * [Output Only] The URL of the region where the managed instance group resides (for regional * resources). * @return value or {@code null} for none */ public java.lang.String getRegion() { return region; } /** * [Output Only] The URL of the region where the managed instance group resides (for regional * resources). * @param region region or {@code null} for none */ public InstanceGroupManager setRegion(java.lang.String region) { this.region = region; return this; } /** * [Output Only] The URL for this managed instance group. The server defines this URL. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { return selfLink; } /** * [Output Only] The URL for this managed instance group. The server defines this URL. * @param selfLink selfLink or {@code null} for none */ public InstanceGroupManager setSelfLink(java.lang.String selfLink) { this.selfLink = selfLink; return this; } /** * [Output Only] The service account to be used as credentials for all operations performed by the * managed instance group on instances. The service accounts needs all permissions required to * create and delete instances. By default, the service account * {projectNumber}@cloudservices.gserviceaccount.com is used. * @return value or {@code null} for none */ public java.lang.String getServiceAccount() { return serviceAccount; } /** * [Output Only] The service account to be used as credentials for all operations performed by the * managed instance group on instances. The service accounts needs all permissions required to * create and delete instances. By default, the service account * {projectNumber}@cloudservices.gserviceaccount.com is used. * @param serviceAccount serviceAccount or {@code null} for none */ public InstanceGroupManager setServiceAccount(java.lang.String serviceAccount) { this.serviceAccount = serviceAccount; return this; } /** * The URLs for all TargetPool resources to which instances in the instanceGroup field are added. * The target pools automatically apply to all of the instances in the managed instance group. * @return value or {@code null} for none */ public java.util.List getTargetPools() { return targetPools; } /** * The URLs for all TargetPool resources to which instances in the instanceGroup field are added. * The target pools automatically apply to all of the instances in the managed instance group. * @param targetPools targetPools or {@code null} for none */ public InstanceGroupManager setTargetPools(java.util.List targetPools) { this.targetPools = targetPools; return this; } /** * The target number of running instances for this managed instance group. Deleting or abandoning * instances reduces this number. Resizing the group changes this number. * @return value or {@code null} for none */ public java.lang.Integer getTargetSize() { return targetSize; } /** * The target number of running instances for this managed instance group. Deleting or abandoning * instances reduces this number. Resizing the group changes this number. * @param targetSize targetSize or {@code null} for none */ public InstanceGroupManager setTargetSize(java.lang.Integer targetSize) { this.targetSize = targetSize; return this; } /** * The update policy for this managed instance group. * @return value or {@code null} for none */ public InstanceGroupManagerUpdatePolicy getUpdatePolicy() { return updatePolicy; } /** * The update policy for this managed instance group. * @param updatePolicy updatePolicy or {@code null} for none */ public InstanceGroupManager setUpdatePolicy(InstanceGroupManagerUpdatePolicy updatePolicy) { this.updatePolicy = updatePolicy; return this; } /** * Versions supported by this IGM. User should set this field if they need fine-grained control * over how many instances in each version are run by this IGM. Versions are keyed by * instanceTemplate. Every instanceTemplate can appear at most once. This field overrides * instanceTemplate field. If both instanceTemplate and versions are set, the user receives a * warning. "instanceTemplate: X" is semantically equivalent to "versions [ { instanceTemplate: X * } ]". Exactly one version must have targetSize field left unset. Size of such a version will be * calculated automatically. * @return value or {@code null} for none */ public java.util.List getVersions() { return versions; } /** * Versions supported by this IGM. User should set this field if they need fine-grained control * over how many instances in each version are run by this IGM. Versions are keyed by * instanceTemplate. Every instanceTemplate can appear at most once. This field overrides * instanceTemplate field. If both instanceTemplate and versions are set, the user receives a * warning. "instanceTemplate: X" is semantically equivalent to "versions [ { instanceTemplate: X * } ]". Exactly one version must have targetSize field left unset. Size of such a version will be * calculated automatically. * @param versions versions or {@code null} for none */ public InstanceGroupManager setVersions(java.util.List versions) { this.versions = versions; return this; } /** * [Output Only] The URL of the zone where the managed instance group is located (for zonal * resources). * @return value or {@code null} for none */ public java.lang.String getZone() { return zone; } /** * [Output Only] The URL of the zone where the managed instance group is located (for zonal * resources). * @param zone zone or {@code null} for none */ public InstanceGroupManager setZone(java.lang.String zone) { this.zone = zone; return this; } @Override public InstanceGroupManager set(String fieldName, Object value) { return (InstanceGroupManager) super.set(fieldName, value); } @Override public InstanceGroupManager clone() { return (InstanceGroupManager) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy