@pulumi/gcp 6.24.0 → 6.25.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.
- package/accesscontextmanager/accessLevelCondition.d.ts +53 -0
- package/accesscontextmanager/accessLevelCondition.js +53 -0
- package/accesscontextmanager/accessLevelCondition.js.map +1 -1
- package/apigee/envGroup.d.ts +31 -0
- package/apigee/envGroup.js +31 -0
- package/apigee/envGroup.js.map +1 -1
- package/apigee/envGroupAttachment.d.ts +64 -0
- package/apigee/envGroupAttachment.js +64 -0
- package/apigee/envGroupAttachment.js.map +1 -1
- package/apigee/environment.d.ts +32 -0
- package/apigee/environment.js +32 -0
- package/apigee/environment.js.map +1 -1
- package/apigee/instance.d.ts +148 -0
- package/apigee/instance.js +148 -0
- package/apigee/instance.js.map +1 -1
- package/apigee/instanceAttachment.d.ts +64 -0
- package/apigee/instanceAttachment.js +64 -0
- package/apigee/instanceAttachment.js.map +1 -1
- package/bigquery/connection.d.ts +34 -21
- package/bigquery/connection.js +18 -21
- package/bigquery/connection.js.map +1 -1
- package/bigquery/reservationAssignment.d.ts +3 -4
- package/bigquery/reservationAssignment.js +3 -4
- package/bigquery/reservationAssignment.js.map +1 -1
- package/bigquery/routine.d.ts +56 -0
- package/bigquery/routine.js +56 -0
- package/bigquery/routine.js.map +1 -1
- package/certificateauthority/authority.d.ts +12 -0
- package/certificateauthority/authority.js +2 -0
- package/certificateauthority/authority.js.map +1 -1
- package/certificateauthority/getAuthority.d.ts +1 -0
- package/certificateauthority/getAuthority.js.map +1 -1
- package/certificatemanager/certificate.d.ts +230 -0
- package/certificatemanager/certificate.js +116 -0
- package/certificatemanager/certificate.js.map +1 -0
- package/certificatemanager/dnsAuthorization.d.ts +175 -0
- package/certificatemanager/dnsAuthorization.js +109 -0
- package/certificatemanager/dnsAuthorization.js.map +1 -0
- package/certificatemanager/index.d.ts +2 -0
- package/certificatemanager/index.js +42 -0
- package/certificatemanager/index.js.map +1 -0
- package/clouddeploy/deliveryPipeline.d.ts +231 -0
- package/clouddeploy/deliveryPipeline.js +130 -0
- package/clouddeploy/deliveryPipeline.js.map +1 -0
- package/clouddeploy/index.d.ts +2 -0
- package/clouddeploy/index.js +42 -0
- package/clouddeploy/index.js.map +1 -0
- package/clouddeploy/target.d.ts +256 -0
- package/clouddeploy/target.js +125 -0
- package/clouddeploy/target.js.map +1 -0
- package/cloudfunctions/function.d.ts +17 -5
- package/cloudfunctions/function.js +4 -2
- package/cloudfunctions/function.js.map +1 -1
- package/cloudfunctions/getFunction.d.ts +1 -0
- package/cloudfunctions/getFunction.js.map +1 -1
- package/compute/globalAddress.d.ts +18 -0
- package/compute/globalAddress.js +18 -0
- package/compute/globalAddress.js.map +1 -1
- package/compute/organizationSecurityPolicy.d.ts +13 -0
- package/compute/organizationSecurityPolicy.js +13 -0
- package/compute/organizationSecurityPolicy.js.map +1 -1
- package/compute/organizationSecurityPolicyAssociation.d.ts +51 -0
- package/compute/organizationSecurityPolicyAssociation.js +51 -0
- package/compute/organizationSecurityPolicyAssociation.js.map +1 -1
- package/compute/organizationSecurityPolicyRule.d.ts +39 -0
- package/compute/organizationSecurityPolicyRule.js +39 -0
- package/compute/organizationSecurityPolicyRule.js.map +1 -1
- package/compute/perInstanceConfig.d.ts +65 -0
- package/compute/perInstanceConfig.js +65 -0
- package/compute/perInstanceConfig.js.map +1 -1
- package/compute/regionNetworkEndpointGroup.d.ts +30 -3
- package/compute/regionNetworkEndpointGroup.js +14 -0
- package/compute/regionNetworkEndpointGroup.js.map +1 -1
- package/compute/regionPerInstanceConfig.d.ts +70 -0
- package/compute/regionPerInstanceConfig.js +70 -0
- package/compute/regionPerInstanceConfig.js.map +1 -1
- package/compute/routerNat.d.ts +21 -0
- package/compute/routerNat.js +2 -0
- package/compute/routerNat.js.map +1 -1
- package/compute/serviceAttachment.d.ts +23 -0
- package/compute/serviceAttachment.js +4 -0
- package/compute/serviceAttachment.js.map +1 -1
- package/config/vars.d.ts +3 -1
- package/config/vars.js +14 -2
- package/config/vars.js.map +1 -1
- package/diagflow/intent.d.ts +46 -0
- package/diagflow/intent.js +46 -0
- package/diagflow/intent.js.map +1 -1
- package/firebase/project.d.ts +16 -0
- package/firebase/project.js +16 -0
- package/firebase/project.js.map +1 -1
- package/firebase/projectLocation.d.ts +22 -0
- package/firebase/projectLocation.js +22 -0
- package/firebase/projectLocation.js.map +1 -1
- package/firebase/webApp.d.ts +43 -0
- package/firebase/webApp.js +43 -0
- package/firebase/webApp.js.map +1 -1
- package/firestore/document.d.ts +2 -2
- package/firestore/document.js +2 -2
- package/iap/brand.d.ts +20 -0
- package/iap/brand.js +20 -0
- package/iap/brand.js.map +1 -1
- package/iap/client.d.ts +24 -0
- package/iap/client.js +24 -0
- package/iap/client.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +6 -2
- package/index.js.map +1 -1
- package/monitoring/uptimeCheckConfig.d.ts +16 -0
- package/monitoring/uptimeCheckConfig.js +3 -0
- package/monitoring/uptimeCheckConfig.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/provider.d.ts +6 -2
- package/provider.js +3 -1
- package/provider.js.map +1 -1
- package/tpu/node.d.ts +36 -0
- package/tpu/node.js +36 -0
- package/tpu/node.js.map +1 -1
- package/types/input.d.ts +160 -4
- package/types/output.d.ts +189 -5
- package/vpcaccess/connector.d.ts +2 -1
- package/vpcaccess/connector.js +2 -1
- package/vpcaccess/connector.js.map +1 -1
package/apigee/instance.js
CHANGED
|
@@ -15,6 +15,154 @@ const utilities = require("../utilities");
|
|
|
15
15
|
* * [Creating a runtime instance](https://cloud.google.com/apigee/docs/api-platform/get-started/create-instance)
|
|
16
16
|
*
|
|
17
17
|
* ## Example Usage
|
|
18
|
+
* ### Apigee Instance Basic
|
|
19
|
+
*
|
|
20
|
+
* ```typescript
|
|
21
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
22
|
+
* import * as gcp from "@pulumi/gcp";
|
|
23
|
+
*
|
|
24
|
+
* const current = gcp.organizations.getClientConfig({});
|
|
25
|
+
* const apigeeNetwork = new gcp.compute.Network("apigeeNetwork", {});
|
|
26
|
+
* const apigeeRange = new gcp.compute.GlobalAddress("apigeeRange", {
|
|
27
|
+
* purpose: "VPC_PEERING",
|
|
28
|
+
* addressType: "INTERNAL",
|
|
29
|
+
* prefixLength: 16,
|
|
30
|
+
* network: apigeeNetwork.id,
|
|
31
|
+
* });
|
|
32
|
+
* const apigeeVpcConnection = new gcp.servicenetworking.Connection("apigeeVpcConnection", {
|
|
33
|
+
* network: apigeeNetwork.id,
|
|
34
|
+
* service: "servicenetworking.googleapis.com",
|
|
35
|
+
* reservedPeeringRanges: [apigeeRange.name],
|
|
36
|
+
* });
|
|
37
|
+
* const apigeeOrg = new gcp.apigee.Organization("apigeeOrg", {
|
|
38
|
+
* analyticsRegion: "us-central1",
|
|
39
|
+
* projectId: current.then(current => current.project),
|
|
40
|
+
* authorizedNetwork: apigeeNetwork.id,
|
|
41
|
+
* }, {
|
|
42
|
+
* dependsOn: [apigeeVpcConnection],
|
|
43
|
+
* });
|
|
44
|
+
* const apigeeInstance = new gcp.apigee.Instance("apigeeInstance", {
|
|
45
|
+
* location: "us-central1",
|
|
46
|
+
* orgId: apigeeOrg.id,
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
* ### Apigee Instance Cidr Range
|
|
50
|
+
*
|
|
51
|
+
* ```typescript
|
|
52
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
53
|
+
* import * as gcp from "@pulumi/gcp";
|
|
54
|
+
*
|
|
55
|
+
* const current = gcp.organizations.getClientConfig({});
|
|
56
|
+
* const apigeeNetwork = new gcp.compute.Network("apigeeNetwork", {});
|
|
57
|
+
* const apigeeRange = new gcp.compute.GlobalAddress("apigeeRange", {
|
|
58
|
+
* purpose: "VPC_PEERING",
|
|
59
|
+
* addressType: "INTERNAL",
|
|
60
|
+
* prefixLength: 22,
|
|
61
|
+
* network: apigeeNetwork.id,
|
|
62
|
+
* });
|
|
63
|
+
* const apigeeVpcConnection = new gcp.servicenetworking.Connection("apigeeVpcConnection", {
|
|
64
|
+
* network: apigeeNetwork.id,
|
|
65
|
+
* service: "servicenetworking.googleapis.com",
|
|
66
|
+
* reservedPeeringRanges: [apigeeRange.name],
|
|
67
|
+
* });
|
|
68
|
+
* const apigeeOrg = new gcp.apigee.Organization("apigeeOrg", {
|
|
69
|
+
* analyticsRegion: "us-central1",
|
|
70
|
+
* projectId: current.then(current => current.project),
|
|
71
|
+
* authorizedNetwork: apigeeNetwork.id,
|
|
72
|
+
* }, {
|
|
73
|
+
* dependsOn: [apigeeVpcConnection],
|
|
74
|
+
* });
|
|
75
|
+
* const apigeeInstance = new gcp.apigee.Instance("apigeeInstance", {
|
|
76
|
+
* location: "us-central1",
|
|
77
|
+
* orgId: apigeeOrg.id,
|
|
78
|
+
* peeringCidrRange: "SLASH_22",
|
|
79
|
+
* });
|
|
80
|
+
* ```
|
|
81
|
+
* ### Apigee Instance Ip Range
|
|
82
|
+
*
|
|
83
|
+
* ```typescript
|
|
84
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
85
|
+
* import * as gcp from "@pulumi/gcp";
|
|
86
|
+
*
|
|
87
|
+
* const current = gcp.organizations.getClientConfig({});
|
|
88
|
+
* const apigeeNetwork = new gcp.compute.Network("apigeeNetwork", {});
|
|
89
|
+
* const apigeeRange = new gcp.compute.GlobalAddress("apigeeRange", {
|
|
90
|
+
* purpose: "VPC_PEERING",
|
|
91
|
+
* addressType: "INTERNAL",
|
|
92
|
+
* prefixLength: 22,
|
|
93
|
+
* network: apigeeNetwork.id,
|
|
94
|
+
* });
|
|
95
|
+
* const apigeeVpcConnection = new gcp.servicenetworking.Connection("apigeeVpcConnection", {
|
|
96
|
+
* network: apigeeNetwork.id,
|
|
97
|
+
* service: "servicenetworking.googleapis.com",
|
|
98
|
+
* reservedPeeringRanges: [apigeeRange.name],
|
|
99
|
+
* });
|
|
100
|
+
* const apigeeOrg = new gcp.apigee.Organization("apigeeOrg", {
|
|
101
|
+
* analyticsRegion: "us-central1",
|
|
102
|
+
* projectId: current.then(current => current.project),
|
|
103
|
+
* authorizedNetwork: apigeeNetwork.id,
|
|
104
|
+
* }, {
|
|
105
|
+
* dependsOn: [apigeeVpcConnection],
|
|
106
|
+
* });
|
|
107
|
+
* const apigeeInstance = new gcp.apigee.Instance("apigeeInstance", {
|
|
108
|
+
* location: "us-central1",
|
|
109
|
+
* orgId: apigeeOrg.id,
|
|
110
|
+
* ipRange: "10.87.8.0/22",
|
|
111
|
+
* });
|
|
112
|
+
* ```
|
|
113
|
+
* ### Apigee Instance Full
|
|
114
|
+
*
|
|
115
|
+
* ```typescript
|
|
116
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
117
|
+
* import * as gcp from "@pulumi/gcp";
|
|
118
|
+
*
|
|
119
|
+
* const current = gcp.organizations.getClientConfig({});
|
|
120
|
+
* const apigeeNetwork = new gcp.compute.Network("apigeeNetwork", {});
|
|
121
|
+
* const apigeeRange = new gcp.compute.GlobalAddress("apigeeRange", {
|
|
122
|
+
* purpose: "VPC_PEERING",
|
|
123
|
+
* addressType: "INTERNAL",
|
|
124
|
+
* prefixLength: 16,
|
|
125
|
+
* network: apigeeNetwork.id,
|
|
126
|
+
* });
|
|
127
|
+
* const apigeeVpcConnection = new gcp.servicenetworking.Connection("apigeeVpcConnection", {
|
|
128
|
+
* network: apigeeNetwork.id,
|
|
129
|
+
* service: "servicenetworking.googleapis.com",
|
|
130
|
+
* reservedPeeringRanges: [apigeeRange.name],
|
|
131
|
+
* });
|
|
132
|
+
* const apigeeKeyring = new gcp.kms.KeyRing("apigeeKeyring", {location: "us-central1"});
|
|
133
|
+
* const apigeeKey = new gcp.kms.CryptoKey("apigeeKey", {keyRing: apigeeKeyring.id});
|
|
134
|
+
* const apigeeSa = new gcp.projects.ServiceIdentity("apigeeSa", {
|
|
135
|
+
* project: google_project.project.project_id,
|
|
136
|
+
* service: google_project_service.apigee.service,
|
|
137
|
+
* }, {
|
|
138
|
+
* provider: google_beta,
|
|
139
|
+
* });
|
|
140
|
+
* const apigeeSaKeyuser = new gcp.kms.CryptoKeyIAMBinding("apigeeSaKeyuser", {
|
|
141
|
+
* cryptoKeyId: apigeeKey.id,
|
|
142
|
+
* role: "roles/cloudkms.cryptoKeyEncrypterDecrypter",
|
|
143
|
+
* members: [pulumi.interpolate`serviceAccount:${apigeeSa.email}`],
|
|
144
|
+
* });
|
|
145
|
+
* const apigeeOrg = new gcp.apigee.Organization("apigeeOrg", {
|
|
146
|
+
* analyticsRegion: "us-central1",
|
|
147
|
+
* displayName: "apigee-org",
|
|
148
|
+
* description: "Auto-provisioned Apigee Org.",
|
|
149
|
+
* projectId: current.then(current => current.project),
|
|
150
|
+
* authorizedNetwork: apigeeNetwork.id,
|
|
151
|
+
* runtimeDatabaseEncryptionKeyName: apigeeKey.id,
|
|
152
|
+
* }, {
|
|
153
|
+
* dependsOn: [
|
|
154
|
+
* apigeeVpcConnection,
|
|
155
|
+
* apigeeSaKeyuser,
|
|
156
|
+
* ],
|
|
157
|
+
* });
|
|
158
|
+
* const apigeeInstance = new gcp.apigee.Instance("apigeeInstance", {
|
|
159
|
+
* location: "us-central1",
|
|
160
|
+
* description: "Auto-managed Apigee Runtime Instance",
|
|
161
|
+
* displayName: "tf-test",
|
|
162
|
+
* orgId: apigeeOrg.id,
|
|
163
|
+
* diskEncryptionKeyName: apigeeKey.id,
|
|
164
|
+
* });
|
|
165
|
+
* ```
|
|
18
166
|
*
|
|
19
167
|
* ## Import
|
|
20
168
|
*
|
package/apigee/instance.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instance.js","sourceRoot":"","sources":["../../apigee/instance.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"instance.js","sourceRoot":"","sources":["../../apigee/instance.ts"],"names":[],"mappings":";AAA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H,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AA1BL,4BA4IC;AA9HG,gBAAgB;AACO,qBAAY,GAAG,8BAA8B,CAAC"}
|
|
@@ -9,6 +9,70 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
9
9
|
* * [Creating an environment](https://cloud.google.com/apigee/docs/api-platform/get-started/create-environment)
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
|
+
* ### Apigee Instance Attachment Basic
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as gcp from "@pulumi/gcp";
|
|
17
|
+
*
|
|
18
|
+
* const project = new gcp.organizations.Project("project", {
|
|
19
|
+
* projectId: "tf-test",
|
|
20
|
+
* orgId: "",
|
|
21
|
+
* billingAccount: "",
|
|
22
|
+
* });
|
|
23
|
+
* const apigee = new gcp.projects.Service("apigee", {
|
|
24
|
+
* project: project.projectId,
|
|
25
|
+
* service: "apigee.googleapis.com",
|
|
26
|
+
* });
|
|
27
|
+
* const compute = new gcp.projects.Service("compute", {
|
|
28
|
+
* project: project.projectId,
|
|
29
|
+
* service: "compute.googleapis.com",
|
|
30
|
+
* });
|
|
31
|
+
* const servicenetworking = new gcp.projects.Service("servicenetworking", {
|
|
32
|
+
* project: project.projectId,
|
|
33
|
+
* service: "servicenetworking.googleapis.com",
|
|
34
|
+
* });
|
|
35
|
+
* const apigeeNetwork = new gcp.compute.Network("apigeeNetwork", {project: project.projectId}, {
|
|
36
|
+
* dependsOn: [compute],
|
|
37
|
+
* });
|
|
38
|
+
* const apigeeRange = new gcp.compute.GlobalAddress("apigeeRange", {
|
|
39
|
+
* purpose: "VPC_PEERING",
|
|
40
|
+
* addressType: "INTERNAL",
|
|
41
|
+
* prefixLength: 16,
|
|
42
|
+
* network: apigeeNetwork.id,
|
|
43
|
+
* project: project.projectId,
|
|
44
|
+
* });
|
|
45
|
+
* const apigeeVpcConnection = new gcp.servicenetworking.Connection("apigeeVpcConnection", {
|
|
46
|
+
* network: apigeeNetwork.id,
|
|
47
|
+
* service: "servicenetworking.googleapis.com",
|
|
48
|
+
* reservedPeeringRanges: [apigeeRange.name],
|
|
49
|
+
* }, {
|
|
50
|
+
* dependsOn: [servicenetworking],
|
|
51
|
+
* });
|
|
52
|
+
* const apigeeOrg = new gcp.apigee.Organization("apigeeOrg", {
|
|
53
|
+
* analyticsRegion: "us-central1",
|
|
54
|
+
* projectId: project.projectId,
|
|
55
|
+
* authorizedNetwork: apigeeNetwork.id,
|
|
56
|
+
* }, {
|
|
57
|
+
* dependsOn: [
|
|
58
|
+
* apigeeVpcConnection,
|
|
59
|
+
* apigee,
|
|
60
|
+
* ],
|
|
61
|
+
* });
|
|
62
|
+
* const apigeeIns = new gcp.apigee.Instance("apigeeIns", {
|
|
63
|
+
* location: "us-central1",
|
|
64
|
+
* orgId: apigeeOrg.id,
|
|
65
|
+
* });
|
|
66
|
+
* const apigeeEnv = new gcp.apigee.Environment("apigeeEnv", {
|
|
67
|
+
* orgId: apigeeOrg.id,
|
|
68
|
+
* description: "Apigee Environment",
|
|
69
|
+
* displayName: "environment-1",
|
|
70
|
+
* });
|
|
71
|
+
* const instanceAttachment = new gcp.apigee.InstanceAttachment("instanceAttachment", {
|
|
72
|
+
* instanceId: google_apigee_instance.apigee_instance.id,
|
|
73
|
+
* environment: apigeeEnv.name,
|
|
74
|
+
* });
|
|
75
|
+
* ```
|
|
12
76
|
*
|
|
13
77
|
* ## Import
|
|
14
78
|
*
|
|
@@ -15,6 +15,70 @@ const utilities = require("../utilities");
|
|
|
15
15
|
* * [Creating an environment](https://cloud.google.com/apigee/docs/api-platform/get-started/create-environment)
|
|
16
16
|
*
|
|
17
17
|
* ## Example Usage
|
|
18
|
+
* ### Apigee Instance Attachment Basic
|
|
19
|
+
*
|
|
20
|
+
* ```typescript
|
|
21
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
22
|
+
* import * as gcp from "@pulumi/gcp";
|
|
23
|
+
*
|
|
24
|
+
* const project = new gcp.organizations.Project("project", {
|
|
25
|
+
* projectId: "tf-test",
|
|
26
|
+
* orgId: "",
|
|
27
|
+
* billingAccount: "",
|
|
28
|
+
* });
|
|
29
|
+
* const apigee = new gcp.projects.Service("apigee", {
|
|
30
|
+
* project: project.projectId,
|
|
31
|
+
* service: "apigee.googleapis.com",
|
|
32
|
+
* });
|
|
33
|
+
* const compute = new gcp.projects.Service("compute", {
|
|
34
|
+
* project: project.projectId,
|
|
35
|
+
* service: "compute.googleapis.com",
|
|
36
|
+
* });
|
|
37
|
+
* const servicenetworking = new gcp.projects.Service("servicenetworking", {
|
|
38
|
+
* project: project.projectId,
|
|
39
|
+
* service: "servicenetworking.googleapis.com",
|
|
40
|
+
* });
|
|
41
|
+
* const apigeeNetwork = new gcp.compute.Network("apigeeNetwork", {project: project.projectId}, {
|
|
42
|
+
* dependsOn: [compute],
|
|
43
|
+
* });
|
|
44
|
+
* const apigeeRange = new gcp.compute.GlobalAddress("apigeeRange", {
|
|
45
|
+
* purpose: "VPC_PEERING",
|
|
46
|
+
* addressType: "INTERNAL",
|
|
47
|
+
* prefixLength: 16,
|
|
48
|
+
* network: apigeeNetwork.id,
|
|
49
|
+
* project: project.projectId,
|
|
50
|
+
* });
|
|
51
|
+
* const apigeeVpcConnection = new gcp.servicenetworking.Connection("apigeeVpcConnection", {
|
|
52
|
+
* network: apigeeNetwork.id,
|
|
53
|
+
* service: "servicenetworking.googleapis.com",
|
|
54
|
+
* reservedPeeringRanges: [apigeeRange.name],
|
|
55
|
+
* }, {
|
|
56
|
+
* dependsOn: [servicenetworking],
|
|
57
|
+
* });
|
|
58
|
+
* const apigeeOrg = new gcp.apigee.Organization("apigeeOrg", {
|
|
59
|
+
* analyticsRegion: "us-central1",
|
|
60
|
+
* projectId: project.projectId,
|
|
61
|
+
* authorizedNetwork: apigeeNetwork.id,
|
|
62
|
+
* }, {
|
|
63
|
+
* dependsOn: [
|
|
64
|
+
* apigeeVpcConnection,
|
|
65
|
+
* apigee,
|
|
66
|
+
* ],
|
|
67
|
+
* });
|
|
68
|
+
* const apigeeIns = new gcp.apigee.Instance("apigeeIns", {
|
|
69
|
+
* location: "us-central1",
|
|
70
|
+
* orgId: apigeeOrg.id,
|
|
71
|
+
* });
|
|
72
|
+
* const apigeeEnv = new gcp.apigee.Environment("apigeeEnv", {
|
|
73
|
+
* orgId: apigeeOrg.id,
|
|
74
|
+
* description: "Apigee Environment",
|
|
75
|
+
* displayName: "environment-1",
|
|
76
|
+
* });
|
|
77
|
+
* const instanceAttachment = new gcp.apigee.InstanceAttachment("instanceAttachment", {
|
|
78
|
+
* instanceId: google_apigee_instance.apigee_instance.id,
|
|
79
|
+
* environment: apigeeEnv.name,
|
|
80
|
+
* });
|
|
81
|
+
* ```
|
|
18
82
|
*
|
|
19
83
|
* ## Import
|
|
20
84
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instanceAttachment.js","sourceRoot":"","sources":["../../apigee/instanceAttachment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"instanceAttachment.js","sourceRoot":"","sources":["../../apigee/instanceAttachment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;IAvED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,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,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;;AA1BL,gDAyEC;AA3DG,gBAAgB;AACO,+BAAY,GAAG,kDAAkD,CAAC"}
|
package/bigquery/connection.d.ts
CHANGED
|
@@ -27,12 +27,8 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
27
27
|
* tier: "db-f1-micro",
|
|
28
28
|
* },
|
|
29
29
|
* deletionProtection: true,
|
|
30
|
-
* }, {
|
|
31
|
-
* provider: google_beta,
|
|
32
|
-
* });
|
|
33
|
-
* const db = new gcp.sql.Database("db", {instance: instance.name}, {
|
|
34
|
-
* provider: google_beta,
|
|
35
30
|
* });
|
|
31
|
+
* const db = new gcp.sql.Database("db", {instance: instance.name});
|
|
36
32
|
* const pwd = new random.RandomPassword("pwd", {
|
|
37
33
|
* length: 16,
|
|
38
34
|
* special: false,
|
|
@@ -40,8 +36,6 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
40
36
|
* const user = new gcp.sql.User("user", {
|
|
41
37
|
* instance: instance.name,
|
|
42
38
|
* password: pwd.result,
|
|
43
|
-
* }, {
|
|
44
|
-
* provider: google_beta,
|
|
45
39
|
* });
|
|
46
40
|
* const connection = new gcp.bigquery.Connection("connection", {
|
|
47
41
|
* friendlyName: "👋",
|
|
@@ -55,8 +49,6 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
55
49
|
* password: user.password,
|
|
56
50
|
* },
|
|
57
51
|
* },
|
|
58
|
-
* }, {
|
|
59
|
-
* provider: google_beta,
|
|
60
52
|
* });
|
|
61
53
|
* ```
|
|
62
54
|
* ### Bigquery Connection Full
|
|
@@ -73,12 +65,8 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
73
65
|
* tier: "db-f1-micro",
|
|
74
66
|
* },
|
|
75
67
|
* deletionProtection: true,
|
|
76
|
-
* }, {
|
|
77
|
-
* provider: google_beta,
|
|
78
|
-
* });
|
|
79
|
-
* const db = new gcp.sql.Database("db", {instance: instance.name}, {
|
|
80
|
-
* provider: google_beta,
|
|
81
68
|
* });
|
|
69
|
+
* const db = new gcp.sql.Database("db", {instance: instance.name});
|
|
82
70
|
* const pwd = new random.RandomPassword("pwd", {
|
|
83
71
|
* length: 16,
|
|
84
72
|
* special: false,
|
|
@@ -86,8 +74,6 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
86
74
|
* const user = new gcp.sql.User("user", {
|
|
87
75
|
* instance: instance.name,
|
|
88
76
|
* password: pwd.result,
|
|
89
|
-
* }, {
|
|
90
|
-
* provider: google_beta,
|
|
91
77
|
* });
|
|
92
78
|
* const connection = new gcp.bigquery.Connection("connection", {
|
|
93
79
|
* connectionId: "my-connection",
|
|
@@ -103,8 +89,20 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
103
89
|
* password: user.password,
|
|
104
90
|
* },
|
|
105
91
|
* },
|
|
106
|
-
* }
|
|
107
|
-
*
|
|
92
|
+
* });
|
|
93
|
+
* ```
|
|
94
|
+
* ### Bigquery Connection Cloud Resource
|
|
95
|
+
*
|
|
96
|
+
* ```typescript
|
|
97
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
98
|
+
* import * as gcp from "@pulumi/gcp";
|
|
99
|
+
*
|
|
100
|
+
* const connection = new gcp.bigquery.Connection("connection", {
|
|
101
|
+
* cloudResource: {},
|
|
102
|
+
* connectionId: "my-connection",
|
|
103
|
+
* description: "a riveting description",
|
|
104
|
+
* friendlyName: "👋",
|
|
105
|
+
* location: "US",
|
|
108
106
|
* });
|
|
109
107
|
* ```
|
|
110
108
|
*
|
|
@@ -140,11 +138,16 @@ export declare class Connection extends pulumi.CustomResource {
|
|
|
140
138
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
141
139
|
*/
|
|
142
140
|
static isInstance(obj: any): obj is Connection;
|
|
141
|
+
/**
|
|
142
|
+
* Cloud Resource properties.
|
|
143
|
+
* Structure is documented below.
|
|
144
|
+
*/
|
|
145
|
+
readonly cloudResource: pulumi.Output<outputs.bigquery.ConnectionCloudResource | undefined>;
|
|
143
146
|
/**
|
|
144
147
|
* Cloud SQL properties.
|
|
145
148
|
* Structure is documented below.
|
|
146
149
|
*/
|
|
147
|
-
readonly cloudSql: pulumi.Output<outputs.bigquery.ConnectionCloudSql>;
|
|
150
|
+
readonly cloudSql: pulumi.Output<outputs.bigquery.ConnectionCloudSql | undefined>;
|
|
148
151
|
/**
|
|
149
152
|
* Optional connection id that should be assigned to the created connection.
|
|
150
153
|
*/
|
|
@@ -185,12 +188,17 @@ export declare class Connection extends pulumi.CustomResource {
|
|
|
185
188
|
* @param args The arguments to use to populate this resource's properties.
|
|
186
189
|
* @param opts A bag of options that control this resource's behavior.
|
|
187
190
|
*/
|
|
188
|
-
constructor(name: string, args
|
|
191
|
+
constructor(name: string, args?: ConnectionArgs, opts?: pulumi.CustomResourceOptions);
|
|
189
192
|
}
|
|
190
193
|
/**
|
|
191
194
|
* Input properties used for looking up and filtering Connection resources.
|
|
192
195
|
*/
|
|
193
196
|
export interface ConnectionState {
|
|
197
|
+
/**
|
|
198
|
+
* Cloud Resource properties.
|
|
199
|
+
* Structure is documented below.
|
|
200
|
+
*/
|
|
201
|
+
cloudResource?: pulumi.Input<inputs.bigquery.ConnectionCloudResource>;
|
|
194
202
|
/**
|
|
195
203
|
* Cloud SQL properties.
|
|
196
204
|
* Structure is documented below.
|
|
@@ -234,11 +242,16 @@ export interface ConnectionState {
|
|
|
234
242
|
* The set of arguments for constructing a Connection resource.
|
|
235
243
|
*/
|
|
236
244
|
export interface ConnectionArgs {
|
|
245
|
+
/**
|
|
246
|
+
* Cloud Resource properties.
|
|
247
|
+
* Structure is documented below.
|
|
248
|
+
*/
|
|
249
|
+
cloudResource?: pulumi.Input<inputs.bigquery.ConnectionCloudResource>;
|
|
237
250
|
/**
|
|
238
251
|
* Cloud SQL properties.
|
|
239
252
|
* Structure is documented below.
|
|
240
253
|
*/
|
|
241
|
-
cloudSql
|
|
254
|
+
cloudSql?: pulumi.Input<inputs.bigquery.ConnectionCloudSql>;
|
|
242
255
|
/**
|
|
243
256
|
* Optional connection id that should be assigned to the created connection.
|
|
244
257
|
*/
|
package/bigquery/connection.js
CHANGED
|
@@ -32,12 +32,8 @@ const utilities = require("../utilities");
|
|
|
32
32
|
* tier: "db-f1-micro",
|
|
33
33
|
* },
|
|
34
34
|
* deletionProtection: true,
|
|
35
|
-
* }, {
|
|
36
|
-
* provider: google_beta,
|
|
37
|
-
* });
|
|
38
|
-
* const db = new gcp.sql.Database("db", {instance: instance.name}, {
|
|
39
|
-
* provider: google_beta,
|
|
40
35
|
* });
|
|
36
|
+
* const db = new gcp.sql.Database("db", {instance: instance.name});
|
|
41
37
|
* const pwd = new random.RandomPassword("pwd", {
|
|
42
38
|
* length: 16,
|
|
43
39
|
* special: false,
|
|
@@ -45,8 +41,6 @@ const utilities = require("../utilities");
|
|
|
45
41
|
* const user = new gcp.sql.User("user", {
|
|
46
42
|
* instance: instance.name,
|
|
47
43
|
* password: pwd.result,
|
|
48
|
-
* }, {
|
|
49
|
-
* provider: google_beta,
|
|
50
44
|
* });
|
|
51
45
|
* const connection = new gcp.bigquery.Connection("connection", {
|
|
52
46
|
* friendlyName: "👋",
|
|
@@ -60,8 +54,6 @@ const utilities = require("../utilities");
|
|
|
60
54
|
* password: user.password,
|
|
61
55
|
* },
|
|
62
56
|
* },
|
|
63
|
-
* }, {
|
|
64
|
-
* provider: google_beta,
|
|
65
57
|
* });
|
|
66
58
|
* ```
|
|
67
59
|
* ### Bigquery Connection Full
|
|
@@ -78,12 +70,8 @@ const utilities = require("../utilities");
|
|
|
78
70
|
* tier: "db-f1-micro",
|
|
79
71
|
* },
|
|
80
72
|
* deletionProtection: true,
|
|
81
|
-
* }, {
|
|
82
|
-
* provider: google_beta,
|
|
83
|
-
* });
|
|
84
|
-
* const db = new gcp.sql.Database("db", {instance: instance.name}, {
|
|
85
|
-
* provider: google_beta,
|
|
86
73
|
* });
|
|
74
|
+
* const db = new gcp.sql.Database("db", {instance: instance.name});
|
|
87
75
|
* const pwd = new random.RandomPassword("pwd", {
|
|
88
76
|
* length: 16,
|
|
89
77
|
* special: false,
|
|
@@ -91,8 +79,6 @@ const utilities = require("../utilities");
|
|
|
91
79
|
* const user = new gcp.sql.User("user", {
|
|
92
80
|
* instance: instance.name,
|
|
93
81
|
* password: pwd.result,
|
|
94
|
-
* }, {
|
|
95
|
-
* provider: google_beta,
|
|
96
82
|
* });
|
|
97
83
|
* const connection = new gcp.bigquery.Connection("connection", {
|
|
98
84
|
* connectionId: "my-connection",
|
|
@@ -108,8 +94,20 @@ const utilities = require("../utilities");
|
|
|
108
94
|
* password: user.password,
|
|
109
95
|
* },
|
|
110
96
|
* },
|
|
111
|
-
* }
|
|
112
|
-
*
|
|
97
|
+
* });
|
|
98
|
+
* ```
|
|
99
|
+
* ### Bigquery Connection Cloud Resource
|
|
100
|
+
*
|
|
101
|
+
* ```typescript
|
|
102
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
103
|
+
* import * as gcp from "@pulumi/gcp";
|
|
104
|
+
*
|
|
105
|
+
* const connection = new gcp.bigquery.Connection("connection", {
|
|
106
|
+
* cloudResource: {},
|
|
107
|
+
* connectionId: "my-connection",
|
|
108
|
+
* description: "a riveting description",
|
|
109
|
+
* friendlyName: "👋",
|
|
110
|
+
* location: "US",
|
|
113
111
|
* });
|
|
114
112
|
* ```
|
|
115
113
|
*
|
|
@@ -135,6 +133,7 @@ class Connection extends pulumi.CustomResource {
|
|
|
135
133
|
opts = opts || {};
|
|
136
134
|
if (opts.id) {
|
|
137
135
|
const state = argsOrState;
|
|
136
|
+
resourceInputs["cloudResource"] = state ? state.cloudResource : undefined;
|
|
138
137
|
resourceInputs["cloudSql"] = state ? state.cloudSql : undefined;
|
|
139
138
|
resourceInputs["connectionId"] = state ? state.connectionId : undefined;
|
|
140
139
|
resourceInputs["description"] = state ? state.description : undefined;
|
|
@@ -146,9 +145,7 @@ class Connection extends pulumi.CustomResource {
|
|
|
146
145
|
}
|
|
147
146
|
else {
|
|
148
147
|
const args = argsOrState;
|
|
149
|
-
|
|
150
|
-
throw new Error("Missing required property 'cloudSql'");
|
|
151
|
-
}
|
|
148
|
+
resourceInputs["cloudResource"] = args ? args.cloudResource : undefined;
|
|
152
149
|
resourceInputs["cloudSql"] = args ? args.cloudSql : undefined;
|
|
153
150
|
resourceInputs["connectionId"] = args ? args.connectionId : undefined;
|
|
154
151
|
resourceInputs["description"] = args ? args.description : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../../bigquery/connection.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../../bigquery/connection.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,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,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;;AA1BL,gCA6GC;AA/FG,gBAAgB;AACO,uBAAY,GAAG,oCAAoC,CAAC"}
|
|
@@ -9,16 +9,15 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
9
9
|
* import * as gcp from "@pulumi/gcp";
|
|
10
10
|
*
|
|
11
11
|
* const basic = new gcp.bigquery.Reservation("basic", {
|
|
12
|
-
* ignoreIdleSlots: false,
|
|
13
|
-
* location: "us-central1",
|
|
14
12
|
* project: "my-project-name",
|
|
13
|
+
* location: "us-central1",
|
|
15
14
|
* slotCapacity: 0,
|
|
15
|
+
* ignoreIdleSlots: false,
|
|
16
16
|
* });
|
|
17
17
|
* const primary = new gcp.bigquery.ReservationAssignment("primary", {
|
|
18
18
|
* assignee: "projects/my-project-name",
|
|
19
|
-
* "google_bigquery_reservation.basic.id": [{}],
|
|
20
19
|
* jobType: "PIPELINE",
|
|
21
|
-
* reservation:
|
|
20
|
+
* reservation: basic.id,
|
|
22
21
|
* });
|
|
23
22
|
* ```
|
|
24
23
|
*
|
|
@@ -15,16 +15,15 @@ const utilities = require("../utilities");
|
|
|
15
15
|
* import * as gcp from "@pulumi/gcp";
|
|
16
16
|
*
|
|
17
17
|
* const basic = new gcp.bigquery.Reservation("basic", {
|
|
18
|
-
* ignoreIdleSlots: false,
|
|
19
|
-
* location: "us-central1",
|
|
20
18
|
* project: "my-project-name",
|
|
19
|
+
* location: "us-central1",
|
|
21
20
|
* slotCapacity: 0,
|
|
21
|
+
* ignoreIdleSlots: false,
|
|
22
22
|
* });
|
|
23
23
|
* const primary = new gcp.bigquery.ReservationAssignment("primary", {
|
|
24
24
|
* assignee: "projects/my-project-name",
|
|
25
|
-
* "google_bigquery_reservation.basic.id": [{}],
|
|
26
25
|
* jobType: "PIPELINE",
|
|
27
|
-
* reservation:
|
|
26
|
+
* reservation: basic.id,
|
|
28
27
|
* });
|
|
29
28
|
* ```
|
|
30
29
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reservationAssignment.js","sourceRoot":"","sources":["../../bigquery/reservationAssignment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"reservationAssignment.js","sourceRoot":"","sources":["../../bigquery/reservationAssignment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAkE5D,YAAY,IAAY,EAAE,WAAoE,EAAE,IAAmC;QAC/H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqD,CAAC;YACpE,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,UAAU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