![JAR search and dependency download from the Maven repository](/logo.png)
target.apidocs.com.google.api.services.compute.model.Project.html Maven / Gradle / Ivy
Project (Compute Engine API beta-rev20220726-2.0.0)
com.google.api.services.compute.model
Class Project
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.compute.model.Project
-
public final class Project
extends GenericJson
Represents a Project resource. A project is used to organize resources in a Google Cloud Platform
environment. For more information, read about the Resource Hierarchy.
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:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Project()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Project
clone()
Metadata
getCommonInstanceMetadata()
Metadata key/value pairs available to all instances contained in this project.
String
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
String
getDefaultNetworkTier()
This signifies the default network tier used for configuring resources of the project and can
only take the following values: PREMIUM, STANDARD.
String
getDefaultServiceAccount()
[Output Only] Default service account used by VMs running in this project.
String
getDescription()
An optional textual description of the resource.
List<String>
getEnabledFeatures()
Restricted features enabled for use on this project.
BigInteger
getId()
[Output Only] The unique identifier for the resource.
String
getKind()
[Output Only] Type of the resource.
String
getName()
The project ID.
List<Quota>
getQuotas()
[Output Only] Quotas assigned to this project.
String
getSelfLink()
[Output Only] Server-defined URL for the resource.
UsageExportLocation
getUsageExportLocation()
The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are
stored.
String
getXpnProjectStatus()
[Output Only] The role this project has in a shared VPC configuration.
Project
set(String fieldName,
Object value)
Project
setCommonInstanceMetadata(Metadata commonInstanceMetadata)
Metadata key/value pairs available to all instances contained in this project.
Project
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
Project
setDefaultNetworkTier(String defaultNetworkTier)
This signifies the default network tier used for configuring resources of the project and can
only take the following values: PREMIUM, STANDARD.
Project
setDefaultServiceAccount(String defaultServiceAccount)
[Output Only] Default service account used by VMs running in this project.
Project
setDescription(String description)
An optional textual description of the resource.
Project
setEnabledFeatures(List<String> enabledFeatures)
Restricted features enabled for use on this project.
Project
setId(BigInteger id)
[Output Only] The unique identifier for the resource.
Project
setKind(String kind)
[Output Only] Type of the resource.
Project
setName(String name)
The project ID.
Project
setQuotas(List<Quota> quotas)
[Output Only] Quotas assigned to this project.
Project
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
Project
setUsageExportLocation(UsageExportLocation usageExportLocation)
The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are
stored.
Project
setXpnProjectStatus(String xpnProjectStatus)
[Output Only] The role this project has in a shared VPC configuration.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getCommonInstanceMetadata
public Metadata getCommonInstanceMetadata()
Metadata key/value pairs available to all instances contained in this project. See Custom
metadata for more information.
- Returns:
- value or
null
for none
-
setCommonInstanceMetadata
public Project setCommonInstanceMetadata(Metadata commonInstanceMetadata)
Metadata key/value pairs available to all instances contained in this project. See Custom
metadata for more information.
- Parameters:
commonInstanceMetadata
- commonInstanceMetadata or null
for none
-
getCreationTimestamp
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
- Returns:
- value or
null
for none
-
setCreationTimestamp
public Project setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
- Parameters:
creationTimestamp
- creationTimestamp or null
for none
-
getDefaultNetworkTier
public String getDefaultNetworkTier()
This signifies the default network tier used for configuring resources of the project and can
only take the following values: PREMIUM, STANDARD. Initially the default network tier is
PREMIUM.
- Returns:
- value or
null
for none
-
setDefaultNetworkTier
public Project setDefaultNetworkTier(String defaultNetworkTier)
This signifies the default network tier used for configuring resources of the project and can
only take the following values: PREMIUM, STANDARD. Initially the default network tier is
PREMIUM.
- Parameters:
defaultNetworkTier
- defaultNetworkTier or null
for none
-
getDefaultServiceAccount
public String getDefaultServiceAccount()
[Output Only] Default service account used by VMs running in this project.
- Returns:
- value or
null
for none
-
setDefaultServiceAccount
public Project setDefaultServiceAccount(String defaultServiceAccount)
[Output Only] Default service account used by VMs running in this project.
- Parameters:
defaultServiceAccount
- defaultServiceAccount or null
for none
-
getDescription
public String getDescription()
An optional textual description of the resource.
- Returns:
- value or
null
for none
-
setDescription
public Project setDescription(String description)
An optional textual description of the resource.
- Parameters:
description
- description or null
for none
-
getEnabledFeatures
public List<String> getEnabledFeatures()
Restricted features enabled for use on this project.
- Returns:
- value or
null
for none
-
setEnabledFeatures
public Project setEnabledFeatures(List<String> enabledFeatures)
Restricted features enabled for use on this project.
- Parameters:
enabledFeatures
- enabledFeatures or null
for none
-
getId
public BigInteger getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
This is *not* the project ID, and is just a unique ID used by Compute Engine to identify
resources.
- Returns:
- value or
null
for none
-
setId
public Project setId(BigInteger id)
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
This is *not* the project ID, and is just a unique ID used by Compute Engine to identify
resources.
- Parameters:
id
- id or null
for none
-
getKind
public String getKind()
[Output Only] Type of the resource. Always compute#project for projects.
- Returns:
- value or
null
for none
-
setKind
public Project setKind(String kind)
[Output Only] Type of the resource. Always compute#project for projects.
- Parameters:
kind
- kind or null
for none
-
getName
public String getName()
The project ID. For example: my-example-project. Use the project ID to make requests to Compute
Engine.
- Returns:
- value or
null
for none
-
setName
public Project setName(String name)
The project ID. For example: my-example-project. Use the project ID to make requests to Compute
Engine.
- Parameters:
name
- name or null
for none
-
getQuotas
public List<Quota> getQuotas()
[Output Only] Quotas assigned to this project.
- Returns:
- value or
null
for none
-
setQuotas
public Project setQuotas(List<Quota> quotas)
[Output Only] Quotas assigned to this project.
- Parameters:
quotas
- quotas or null
for none
-
getSelfLink
public String getSelfLink()
[Output Only] Server-defined URL for the resource.
- Returns:
- value or
null
for none
-
setSelfLink
public Project setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
- Parameters:
selfLink
- selfLink or null
for none
-
getUsageExportLocation
public UsageExportLocation getUsageExportLocation()
The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are
stored.
- Returns:
- value or
null
for none
-
setUsageExportLocation
public Project setUsageExportLocation(UsageExportLocation usageExportLocation)
The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are
stored.
- Parameters:
usageExportLocation
- usageExportLocation or null
for none
-
getXpnProjectStatus
public String getXpnProjectStatus()
[Output Only] The role this project has in a shared VPC configuration. Currently, only projects
with the host role, which is specified by the value HOST, are differentiated.
- Returns:
- value or
null
for none
-
setXpnProjectStatus
public Project setXpnProjectStatus(String xpnProjectStatus)
[Output Only] The role this project has in a shared VPC configuration. Currently, only projects
with the host role, which is specified by the value HOST, are differentiated.
- Parameters:
xpnProjectStatus
- xpnProjectStatus or null
for none
-
set
public Project set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Project clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy