import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Manages IOS-XE objects via RESTCONF calls. This resource can only manage a single object. It is able to read the state and therefore reconcile configuration drift. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as iosxe from "@lbrlabs/pulumi-iosxe"; * * const simple = new iosxe.Restconf("simple", { * attributes: { * banner: "My Banner", * }, * path: "Cisco-IOS-XE-native:native/banner/login", * }); * const nestedList = new iosxe.Restconf("nestedList", { * attributes: { * "source-route": "true", * }, * lists: [{ * items: [{ * name: "VRF1", * }], * key: "name", * name: "vrf", * }], * path: "Cisco-IOS-XE-native:native/ip", * }); * ``` * * ## Import * * ```sh * $ pulumi import iosxe:index/restconf:Restconf example "Cisco-IOS-XE-native:native/banner/login" * ``` */ export declare class Restconf extends pulumi.CustomResource { /** * Get an existing Restconf 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 state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: RestconfState, opts?: pulumi.CustomResourceOptions): Restconf; /** * Returns true if the given object is an instance of Restconf. 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 Restconf; /** * Map of key-value pairs which represents the YANG leafs and its values. */ readonly attributes: pulumi.Output<{ [key: string]: string; }>; /** * Delete object during destroy operation. Default value is `true`. */ readonly delete: pulumi.Output; /** * A device name from the provider configuration. */ readonly device: pulumi.Output; /** * YANG lists. */ readonly lists: pulumi.Output; /** * A RESTCONF path, e.g. `openconfig-interfaces:interfaces`. */ readonly path: pulumi.Output; /** * Create a Restconf 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: RestconfArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Restconf resources. */ export interface RestconfState { /** * Map of key-value pairs which represents the YANG leafs and its values. */ attributes?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Delete object during destroy operation. Default value is `true`. */ delete?: pulumi.Input; /** * A device name from the provider configuration. */ device?: pulumi.Input; /** * YANG lists. */ lists?: pulumi.Input[]>; /** * A RESTCONF path, e.g. `openconfig-interfaces:interfaces`. */ path?: pulumi.Input; } /** * The set of arguments for constructing a Restconf resource. */ export interface RestconfArgs { /** * Map of key-value pairs which represents the YANG leafs and its values. */ attributes?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Delete object during destroy operation. Default value is `true`. */ delete?: pulumi.Input; /** * A device name from the provider configuration. */ device?: pulumi.Input; /** * YANG lists. */ lists?: pulumi.Input[]>; /** * A RESTCONF path, e.g. `openconfig-interfaces:interfaces`. */ path: pulumi.Input; }