@pulumi/openstack 5.2.0 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.SegmentV2 = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Manages a Neutron network segment resource within OpenStack.
10
+ *
11
+ * > **Note:** This resource is only available if the Neutron service is
12
+ * configured with the `segments` extension.
13
+ *
14
+ * > **Note:** This ussually requires admin privileges to create or manage
15
+ * segments.
16
+ *
17
+ * ## Example Usage
18
+ *
19
+ * ```typescript
20
+ * import * as pulumi from "@pulumi/pulumi";
21
+ * import * as openstack from "@pulumi/openstack";
22
+ *
23
+ * const net1 = new openstack.networking.Network("net_1", {name: "demo-net"});
24
+ * const segment1 = new openstack.networking.SegmentV2("segment_1", {
25
+ * name: "flat-segment",
26
+ * description: "Example flat segment",
27
+ * networkId: net1.id,
28
+ * networkType: "flat",
29
+ * physicalNetwork: "public",
30
+ * });
31
+ * ```
32
+ *
33
+ * ## Import
34
+ *
35
+ * This resource can be imported by specifying the segment ID:
36
+ *
37
+ * ```sh
38
+ * $ pulumi import openstack:networking/segmentV2:SegmentV2 segment1 a5e3a494-26ee-4fde-ad26-2d846c47072e
39
+ * ```
40
+ */
41
+ class SegmentV2 extends pulumi.CustomResource {
42
+ /**
43
+ * Get an existing SegmentV2 resource's state with the given name, ID, and optional extra
44
+ * properties used to qualify the lookup.
45
+ *
46
+ * @param name The _unique_ name of the resulting resource.
47
+ * @param id The _unique_ provider ID of the resource to lookup.
48
+ * @param state Any extra arguments used during the lookup.
49
+ * @param opts Optional settings to control the behavior of the CustomResource.
50
+ */
51
+ static get(name, id, state, opts) {
52
+ return new SegmentV2(name, state, Object.assign(Object.assign({}, opts), { id: id }));
53
+ }
54
+ /**
55
+ * Returns true if the given object is an instance of SegmentV2. This is designed to work even
56
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
57
+ */
58
+ static isInstance(obj) {
59
+ if (obj === undefined || obj === null) {
60
+ return false;
61
+ }
62
+ return obj['__pulumiType'] === SegmentV2.__pulumiType;
63
+ }
64
+ constructor(name, argsOrState, opts) {
65
+ let resourceInputs = {};
66
+ opts = opts || {};
67
+ if (opts.id) {
68
+ const state = argsOrState;
69
+ resourceInputs["createdAt"] = state ? state.createdAt : undefined;
70
+ resourceInputs["description"] = state ? state.description : undefined;
71
+ resourceInputs["name"] = state ? state.name : undefined;
72
+ resourceInputs["networkId"] = state ? state.networkId : undefined;
73
+ resourceInputs["networkType"] = state ? state.networkType : undefined;
74
+ resourceInputs["physicalNetwork"] = state ? state.physicalNetwork : undefined;
75
+ resourceInputs["region"] = state ? state.region : undefined;
76
+ resourceInputs["revisionNumber"] = state ? state.revisionNumber : undefined;
77
+ resourceInputs["segmentationId"] = state ? state.segmentationId : undefined;
78
+ resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
79
+ }
80
+ else {
81
+ const args = argsOrState;
82
+ if ((!args || args.networkId === undefined) && !opts.urn) {
83
+ throw new Error("Missing required property 'networkId'");
84
+ }
85
+ if ((!args || args.networkType === undefined) && !opts.urn) {
86
+ throw new Error("Missing required property 'networkType'");
87
+ }
88
+ resourceInputs["description"] = args ? args.description : undefined;
89
+ resourceInputs["name"] = args ? args.name : undefined;
90
+ resourceInputs["networkId"] = args ? args.networkId : undefined;
91
+ resourceInputs["networkType"] = args ? args.networkType : undefined;
92
+ resourceInputs["physicalNetwork"] = args ? args.physicalNetwork : undefined;
93
+ resourceInputs["region"] = args ? args.region : undefined;
94
+ resourceInputs["segmentationId"] = args ? args.segmentationId : undefined;
95
+ resourceInputs["createdAt"] = undefined /*out*/;
96
+ resourceInputs["revisionNumber"] = undefined /*out*/;
97
+ resourceInputs["updatedAt"] = undefined /*out*/;
98
+ }
99
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
100
+ super(SegmentV2.__pulumiType, name, resourceInputs, opts);
101
+ }
102
+ }
103
+ exports.SegmentV2 = SegmentV2;
104
+ /** @internal */
105
+ SegmentV2.__pulumiType = 'openstack:networking/segmentV2:SegmentV2';
106
+ //# sourceMappingURL=segmentV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"segmentV2.js","sourceRoot":"","sources":["../../networking/segmentV2.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;IA2DD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyC,CAAC;YACxD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YACl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E,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AAzHL,8BA0HC;AA5GG,gBAAgB;AACO,sBAAY,GAAG,0CAA0C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/openstack",
3
- "version": "5.2.0",
3
+ "version": "5.3.0",
4
4
  "description": "A Pulumi package for creating and managing OpenStack cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -22,6 +22,6 @@
22
22
  "pulumi": {
23
23
  "resource": true,
24
24
  "name": "openstack",
25
- "version": "5.2.0"
25
+ "version": "5.3.0"
26
26
  }
27
27
  }
package/types/input.d.ts CHANGED
@@ -624,6 +624,10 @@ export declare namespace loadbalancer {
624
624
  }
625
625
  }
626
626
  export declare namespace networking {
627
+ interface BgpSpeakerV2AdvertisedRoute {
628
+ destination?: pulumi.Input<string>;
629
+ nextHop?: pulumi.Input<string>;
630
+ }
627
631
  interface NetworkSegment {
628
632
  /**
629
633
  * The type of physical network.
@@ -715,6 +719,17 @@ export declare namespace networking {
715
719
  */
716
720
  subnetId?: pulumi.Input<string>;
717
721
  }
722
+ interface RouterRoutesV2Route {
723
+ /**
724
+ * CIDR block to match on the packet’s
725
+ * destination IP.
726
+ */
727
+ destinationCidr: pulumi.Input<string>;
728
+ /**
729
+ * IP address of the next hop gateway.
730
+ */
731
+ nextHop: pulumi.Input<string>;
732
+ }
718
733
  interface RouterVendorOptions {
719
734
  /**
720
735
  * Boolean to control whether
package/types/output.d.ts CHANGED
@@ -722,6 +722,10 @@ export declare namespace loadbalancer {
722
722
  }
723
723
  }
724
724
  export declare namespace networking {
725
+ interface BgpSpeakerV2AdvertisedRoute {
726
+ destination: string;
727
+ nextHop: string;
728
+ }
725
729
  interface GetNetworkSegment {
726
730
  networkType: string;
727
731
  physicalNetwork: string;
@@ -786,6 +790,10 @@ export declare namespace networking {
786
790
  */
787
791
  subnetId?: string;
788
792
  }
793
+ interface GetRouterRoute {
794
+ destinationCidr: string;
795
+ nextHop: string;
796
+ }
789
797
  interface GetSubnetAllocationPool {
790
798
  end: string;
791
799
  start: string;
@@ -897,7 +905,18 @@ export declare namespace networking {
897
905
  /**
898
906
  * Subnet in which the fixed IP belongs to.
899
907
  */
900
- subnetId?: string;
908
+ subnetId: string;
909
+ }
910
+ interface RouterRoutesV2Route {
911
+ /**
912
+ * CIDR block to match on the packet’s
913
+ * destination IP.
914
+ */
915
+ destinationCidr: string;
916
+ /**
917
+ * IP address of the next hop gateway.
918
+ */
919
+ nextHop: string;
901
920
  }
902
921
  interface RouterVendorOptions {
903
922
  /**