import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../../types"; /** * Creates a network in the specified project using the data included in the request. */ export declare class Network extends pulumi.CustomResource { /** * Get an existing Network 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): Network; /** * Returns true if the given object is an instance of Network. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Network; /** * Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created. */ readonly IPv4Range: pulumi.Output; /** * Must be set to create a VPC network. If not set, a legacy network is created. * * When set to true, the VPC network is created in auto mode. When set to false, the VPC network is created in custom mode. * * An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined range as described in Auto mode VPC network IP ranges. * * For custom mode VPC networks, you can add subnets using the subnetworks insert method. */ readonly autoCreateSubnetworks: pulumi.Output; /** * [Output Only] Creation timestamp in RFC3339 text format. */ readonly creationTimestamp: pulumi.Output; /** * An optional description of this resource. Provide this field when you create the resource. */ readonly description: pulumi.Output; /** * [Output Only] URL of the firewall policy the network is associated with. */ readonly firewallPolicy: pulumi.Output; /** * [Output Only] The gateway address for default routing out of the network, selected by GCP. */ readonly gatewayIPv4: pulumi.Output; /** * [Output Only] Type of the resource. Always compute#network for networks. */ readonly kind: pulumi.Output; /** * Maximum Transmission Unit in bytes. The minimum value for this field is 1460 and the maximum value is 1500 bytes. */ readonly mtu: pulumi.Output; /** * 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])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. */ readonly name: pulumi.Output; /** * [Output Only] A list of network peerings for the resource. */ readonly peerings: pulumi.Output; /** * The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce. */ readonly routingConfig: pulumi.Output; /** * [Output Only] Server-defined URL for the resource. */ readonly selfLink: pulumi.Output; /** * [Output Only] Server-defined URL for this resource with the resource id. */ readonly selfLinkWithId: pulumi.Output; /** * [Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network. */ readonly subnetworks: pulumi.Output; /** * Create a Network resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: NetworkArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Network resource. */ export interface NetworkArgs { /** * Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created. */ readonly IPv4Range?: pulumi.Input; /** * Must be set to create a VPC network. If not set, a legacy network is created. * * When set to true, the VPC network is created in auto mode. When set to false, the VPC network is created in custom mode. * * An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined range as described in Auto mode VPC network IP ranges. * * For custom mode VPC networks, you can add subnets using the subnetworks insert method. */ readonly autoCreateSubnetworks?: pulumi.Input; /** * [Output Only] Creation timestamp in RFC3339 text format. */ readonly creationTimestamp?: pulumi.Input; /** * An optional description of this resource. Provide this field when you create the resource. */ readonly description?: pulumi.Input; /** * [Output Only] URL of the firewall policy the network is associated with. */ readonly firewallPolicy?: pulumi.Input; /** * [Output Only] The gateway address for default routing out of the network, selected by GCP. */ readonly gatewayIPv4?: pulumi.Input; /** * [Output Only] The unique identifier for the resource. This identifier is defined by the server. */ readonly id?: pulumi.Input; /** * [Output Only] Type of the resource. Always compute#network for networks. */ readonly kind?: pulumi.Input; /** * Maximum Transmission Unit in bytes. The minimum value for this field is 1460 and the maximum value is 1500 bytes. */ readonly mtu?: pulumi.Input; /** * 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])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. */ readonly name?: pulumi.Input; readonly network: pulumi.Input; /** * [Output Only] A list of network peerings for the resource. */ readonly peerings?: pulumi.Input[]>; readonly project: pulumi.Input; /** * The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce. */ readonly routingConfig?: pulumi.Input; /** * [Output Only] Server-defined URL for the resource. */ readonly selfLink?: pulumi.Input; /** * [Output Only] Server-defined URL for this resource with the resource id. */ readonly selfLinkWithId?: pulumi.Input; /** * [Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network. */ readonly subnetworks?: pulumi.Input[]>; }