import * as pulumi from "@pulumi/pulumi"; /** * Creates a new Api in a given project and location. * Auto-naming is currently not supported for this resource. */ export declare class Api extends pulumi.CustomResource { /** * Get an existing Api 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): Api; /** * Returns true if the given object is an instance of Api. 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 Api; /** * Required. Identifier to assign to the API. Must be unique within scope of the parent resource. */ readonly apiId: pulumi.Output; /** * Created time. */ readonly createTime: pulumi.Output; /** * Optional. Display name. */ readonly displayName: pulumi.Output; /** * Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources */ readonly labels: pulumi.Output<{ [key: string]: string; }>; readonly location: pulumi.Output; /** * Optional. Immutable. The name of a Google Managed Service ( https://cloud.google.com/service-infrastructure/docs/glossary#managed). If not specified, a new Service will automatically be created in the same project as this API. */ readonly managedService: pulumi.Output; /** * Resource name of the API. Format: projects/{project}/locations/global/apis/{api} */ readonly name: pulumi.Output; readonly project: pulumi.Output; /** * State of the API. */ readonly state: pulumi.Output; /** * Updated time. */ readonly updateTime: pulumi.Output; /** * Create a Api 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: ApiArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Api resource. */ export interface ApiArgs { /** * Required. Identifier to assign to the API. Must be unique within scope of the parent resource. */ apiId: pulumi.Input; /** * Optional. Display name. */ displayName?: pulumi.Input; /** * Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; location?: pulumi.Input; /** * Optional. Immutable. The name of a Google Managed Service ( https://cloud.google.com/service-infrastructure/docs/glossary#managed). If not specified, a new Service will automatically be created in the same project as this API. */ managedService?: pulumi.Input; project?: pulumi.Input; }