|
| 1 | +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** |
| 2 | +// *** Do not edit by hand unless you're certain you know what you are doing! *** |
| 3 | + |
| 4 | +using System; |
| 5 | +using System.Collections.Generic; |
| 6 | +using System.Collections.Immutable; |
| 7 | +using System.Threading.Tasks; |
| 8 | +using Pulumi.Serialization; |
| 9 | +using Pulumi; |
| 10 | + |
| 11 | +namespace HBJYDev.Netbox |
| 12 | +{ |
| 13 | + [NetboxResourceType("netbox:index/availableIpAddress:AvailableIpAddress")] |
| 14 | + public partial class AvailableIpAddress : global::Pulumi.CustomResource |
| 15 | + { |
| 16 | + [Output("description")] |
| 17 | + public Output<string?> Description { get; private set; } = null!; |
| 18 | + |
| 19 | + [Output("dnsName")] |
| 20 | + public Output<string?> DnsName { get; private set; } = null!; |
| 21 | + |
| 22 | + [Output("interfaceId")] |
| 23 | + public Output<int?> InterfaceId { get; private set; } = null!; |
| 24 | + |
| 25 | + [Output("ipAddress")] |
| 26 | + public Output<string> IpAddress { get; private set; } = null!; |
| 27 | + |
| 28 | + [Output("ipRangeId")] |
| 29 | + public Output<int?> IpRangeId { get; private set; } = null!; |
| 30 | + |
| 31 | + [Output("prefixId")] |
| 32 | + public Output<int?> PrefixId { get; private set; } = null!; |
| 33 | + |
| 34 | + [Output("status")] |
| 35 | + public Output<string?> Status { get; private set; } = null!; |
| 36 | + |
| 37 | + [Output("tags")] |
| 38 | + public Output<ImmutableArray<string>> Tags { get; private set; } = null!; |
| 39 | + |
| 40 | + [Output("tenantId")] |
| 41 | + public Output<int?> TenantId { get; private set; } = null!; |
| 42 | + |
| 43 | + [Output("vrfId")] |
| 44 | + public Output<int?> VrfId { get; private set; } = null!; |
| 45 | + |
| 46 | + |
| 47 | + /// <summary> |
| 48 | + /// Create a AvailableIpAddress resource with the given unique name, arguments, and options. |
| 49 | + /// </summary> |
| 50 | + /// |
| 51 | + /// <param name="name">The unique name of the resource</param> |
| 52 | + /// <param name="args">The arguments used to populate this resource's properties</param> |
| 53 | + /// <param name="options">A bag of options that control this resource's behavior</param> |
| 54 | + public AvailableIpAddress(string name, AvailableIpAddressArgs? args = null, CustomResourceOptions? options = null) |
| 55 | + : base("netbox:index/availableIpAddress:AvailableIpAddress", name, args ?? new AvailableIpAddressArgs(), MakeResourceOptions(options, "")) |
| 56 | + { |
| 57 | + } |
| 58 | + |
| 59 | + private AvailableIpAddress(string name, Input<string> id, AvailableIpAddressState? state = null, CustomResourceOptions? options = null) |
| 60 | + : base("netbox:index/availableIpAddress:AvailableIpAddress", name, state, MakeResourceOptions(options, id)) |
| 61 | + { |
| 62 | + } |
| 63 | + |
| 64 | + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id) |
| 65 | + { |
| 66 | + var defaultOptions = new CustomResourceOptions |
| 67 | + { |
| 68 | + Version = Utilities.Version, |
| 69 | + }; |
| 70 | + var merged = CustomResourceOptions.Merge(defaultOptions, options); |
| 71 | + // Override the ID if one was specified for consistency with other language SDKs. |
| 72 | + merged.Id = id ?? merged.Id; |
| 73 | + return merged; |
| 74 | + } |
| 75 | + /// <summary> |
| 76 | + /// Get an existing AvailableIpAddress resource's state with the given name, ID, and optional extra |
| 77 | + /// properties used to qualify the lookup. |
| 78 | + /// </summary> |
| 79 | + /// |
| 80 | + /// <param name="name">The unique name of the resulting resource.</param> |
| 81 | + /// <param name="id">The unique provider ID of the resource to lookup.</param> |
| 82 | + /// <param name="state">Any extra arguments used during the lookup.</param> |
| 83 | + /// <param name="options">A bag of options that control this resource's behavior</param> |
| 84 | + public static AvailableIpAddress Get(string name, Input<string> id, AvailableIpAddressState? state = null, CustomResourceOptions? options = null) |
| 85 | + { |
| 86 | + return new AvailableIpAddress(name, id, state, options); |
| 87 | + } |
| 88 | + } |
| 89 | + |
| 90 | + public sealed class AvailableIpAddressArgs : global::Pulumi.ResourceArgs |
| 91 | + { |
| 92 | + [Input("description")] |
| 93 | + public Input<string>? Description { get; set; } |
| 94 | + |
| 95 | + [Input("dnsName")] |
| 96 | + public Input<string>? DnsName { get; set; } |
| 97 | + |
| 98 | + [Input("interfaceId")] |
| 99 | + public Input<int>? InterfaceId { get; set; } |
| 100 | + |
| 101 | + [Input("ipRangeId")] |
| 102 | + public Input<int>? IpRangeId { get; set; } |
| 103 | + |
| 104 | + [Input("prefixId")] |
| 105 | + public Input<int>? PrefixId { get; set; } |
| 106 | + |
| 107 | + [Input("status")] |
| 108 | + public Input<string>? Status { get; set; } |
| 109 | + |
| 110 | + [Input("tags")] |
| 111 | + private InputList<string>? _tags; |
| 112 | + public InputList<string> Tags |
| 113 | + { |
| 114 | + get => _tags ?? (_tags = new InputList<string>()); |
| 115 | + set => _tags = value; |
| 116 | + } |
| 117 | + |
| 118 | + [Input("tenantId")] |
| 119 | + public Input<int>? TenantId { get; set; } |
| 120 | + |
| 121 | + [Input("vrfId")] |
| 122 | + public Input<int>? VrfId { get; set; } |
| 123 | + |
| 124 | + public AvailableIpAddressArgs() |
| 125 | + { |
| 126 | + } |
| 127 | + public static new AvailableIpAddressArgs Empty => new AvailableIpAddressArgs(); |
| 128 | + } |
| 129 | + |
| 130 | + public sealed class AvailableIpAddressState : global::Pulumi.ResourceArgs |
| 131 | + { |
| 132 | + [Input("description")] |
| 133 | + public Input<string>? Description { get; set; } |
| 134 | + |
| 135 | + [Input("dnsName")] |
| 136 | + public Input<string>? DnsName { get; set; } |
| 137 | + |
| 138 | + [Input("interfaceId")] |
| 139 | + public Input<int>? InterfaceId { get; set; } |
| 140 | + |
| 141 | + [Input("ipAddress")] |
| 142 | + public Input<string>? IpAddress { get; set; } |
| 143 | + |
| 144 | + [Input("ipRangeId")] |
| 145 | + public Input<int>? IpRangeId { get; set; } |
| 146 | + |
| 147 | + [Input("prefixId")] |
| 148 | + public Input<int>? PrefixId { get; set; } |
| 149 | + |
| 150 | + [Input("status")] |
| 151 | + public Input<string>? Status { get; set; } |
| 152 | + |
| 153 | + [Input("tags")] |
| 154 | + private InputList<string>? _tags; |
| 155 | + public InputList<string> Tags |
| 156 | + { |
| 157 | + get => _tags ?? (_tags = new InputList<string>()); |
| 158 | + set => _tags = value; |
| 159 | + } |
| 160 | + |
| 161 | + [Input("tenantId")] |
| 162 | + public Input<int>? TenantId { get; set; } |
| 163 | + |
| 164 | + [Input("vrfId")] |
| 165 | + public Input<int>? VrfId { get; set; } |
| 166 | + |
| 167 | + public AvailableIpAddressState() |
| 168 | + { |
| 169 | + } |
| 170 | + public static new AvailableIpAddressState Empty => new AvailableIpAddressState(); |
| 171 | + } |
| 172 | +} |
0 commit comments