com.pulumi.googlenative.compute.v1.GlobalPublicDelegatedPrefix Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.googlenative.compute.v1;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import com.pulumi.googlenative.Utilities;
import com.pulumi.googlenative.compute.v1.GlobalPublicDelegatedPrefixArgs;
import com.pulumi.googlenative.compute.v1.outputs.PublicDelegatedPrefixPublicDelegatedSubPrefixResponse;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Creates a global PublicDelegatedPrefix in the specified project using the parameters that are included in the request.
*
*/
@ResourceType(type="google-native:compute/v1:GlobalPublicDelegatedPrefix")
public class GlobalPublicDelegatedPrefix extends com.pulumi.resources.CustomResource {
/**
* Creation timestamp in RFC3339 text format.
*
*/
@Export(name="creationTimestamp", type=String.class, parameters={})
private Output creationTimestamp;
/**
* @return Creation timestamp in RFC3339 text format.
*
*/
public Output creationTimestamp() {
return this.creationTimestamp;
}
/**
* An optional description of this resource. Provide this property when you create the resource.
*
*/
@Export(name="description", type=String.class, parameters={})
private Output description;
/**
* @return An optional description of this resource. Provide this property when you create the resource.
*
*/
public Output description() {
return this.description;
}
/**
* Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new PublicDelegatedPrefix. An up-to-date fingerprint must be provided in order to update the PublicDelegatedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicDelegatedPrefix.
*
*/
@Export(name="fingerprint", type=String.class, parameters={})
private Output fingerprint;
/**
* @return Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new PublicDelegatedPrefix. An up-to-date fingerprint must be provided in order to update the PublicDelegatedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicDelegatedPrefix.
*
*/
public Output fingerprint() {
return this.fingerprint;
}
/**
* The IPv4 address range, in CIDR format, represented by this public delegated prefix.
*
*/
@Export(name="ipCidrRange", type=String.class, parameters={})
private Output ipCidrRange;
/**
* @return The IPv4 address range, in CIDR format, represented by this public delegated prefix.
*
*/
public Output ipCidrRange() {
return this.ipCidrRange;
}
/**
* If true, the prefix will be live migrated.
*
*/
@Export(name="isLiveMigration", type=Boolean.class, parameters={})
private Output isLiveMigration;
/**
* @return If true, the prefix will be live migrated.
*
*/
public Output isLiveMigration() {
return this.isLiveMigration;
}
/**
* Type of the resource. Always compute#publicDelegatedPrefix for public delegated prefixes.
*
*/
@Export(name="kind", type=String.class, parameters={})
private Output kind;
/**
* @return Type of the resource. Always compute#publicDelegatedPrefix for public delegated prefixes.
*
*/
public Output kind() {
return this.kind;
}
/**
* Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
*
*/
@Export(name="name", type=String.class, parameters={})
private Output name;
/**
* @return Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
*
*/
public Output name() {
return this.name;
}
/**
* The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix.
*
*/
@Export(name="parentPrefix", type=String.class, parameters={})
private Output parentPrefix;
/**
* @return The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix.
*
*/
public Output parentPrefix() {
return this.parentPrefix;
}
@Export(name="project", type=String.class, parameters={})
private Output project;
public Output project() {
return this.project;
}
/**
* The list of sub public delegated prefixes that exist for this public delegated prefix.
*
*/
@Export(name="publicDelegatedSubPrefixs", type=List.class, parameters={PublicDelegatedPrefixPublicDelegatedSubPrefixResponse.class})
private Output> publicDelegatedSubPrefixs;
/**
* @return The list of sub public delegated prefixes that exist for this public delegated prefix.
*
*/
public Output> publicDelegatedSubPrefixs() {
return this.publicDelegatedSubPrefixs;
}
/**
* URL of the region where the public delegated prefix resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
*
*/
@Export(name="region", type=String.class, parameters={})
private Output region;
/**
* @return URL of the region where the public delegated prefix resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
*
*/
public Output region() {
return this.region;
}
/**
* An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
*
*/
@Export(name="requestId", type=String.class, parameters={})
private Output* @Nullable */ String> requestId;
/**
* @return An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
*
*/
public Output> requestId() {
return Codegen.optional(this.requestId);
}
/**
* Server-defined URL for the resource.
*
*/
@Export(name="selfLink", type=String.class, parameters={})
private Output selfLink;
/**
* @return Server-defined URL for the resource.
*
*/
public Output selfLink() {
return this.selfLink;
}
/**
* The status of the public delegated prefix, which can be one of following values: - `INITIALIZING` The public delegated prefix is being initialized and addresses cannot be created yet. - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration prefix and is active. - `ANNOUNCED` The public delegated prefix is active. - `DELETING` The public delegated prefix is being deprovsioned.
*
*/
@Export(name="status", type=String.class, parameters={})
private Output status;
/**
* @return The status of the public delegated prefix, which can be one of following values: - `INITIALIZING` The public delegated prefix is being initialized and addresses cannot be created yet. - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration prefix and is active. - `ANNOUNCED` The public delegated prefix is active. - `DELETING` The public delegated prefix is being deprovsioned.
*
*/
public Output status() {
return this.status;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public GlobalPublicDelegatedPrefix(String name) {
this(name, GlobalPublicDelegatedPrefixArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public GlobalPublicDelegatedPrefix(String name, @Nullable GlobalPublicDelegatedPrefixArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public GlobalPublicDelegatedPrefix(String name, @Nullable GlobalPublicDelegatedPrefixArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("google-native:compute/v1:GlobalPublicDelegatedPrefix", name, args == null ? GlobalPublicDelegatedPrefixArgs.Empty : args, makeResourceOptions(options, Codegen.empty()));
}
private GlobalPublicDelegatedPrefix(String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("google-native:compute/v1:GlobalPublicDelegatedPrefix", name, null, makeResourceOptions(options, id));
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static GlobalPublicDelegatedPrefix get(String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new GlobalPublicDelegatedPrefix(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy