@pulumi/gcp 8.0.0-alpha.1 → 8.0.0-alpha.2

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.
Files changed (116) hide show
  1. package/certificateauthority/getAuthority.d.ts +24 -0
  2. package/certificateauthority/getAuthority.js +24 -0
  3. package/certificateauthority/getAuthority.js.map +1 -1
  4. package/certificatemanager/getCertificateMap.d.ts +18 -0
  5. package/certificatemanager/getCertificateMap.js +18 -0
  6. package/certificatemanager/getCertificateMap.js.map +1 -1
  7. package/cloudidentity/getGroupLookup.d.ts +22 -0
  8. package/cloudidentity/getGroupLookup.js +22 -0
  9. package/cloudidentity/getGroupLookup.js.map +1 -1
  10. package/cloudidentity/getGroupMemberships.d.ts +18 -0
  11. package/cloudidentity/getGroupMemberships.js +18 -0
  12. package/cloudidentity/getGroupMemberships.js.map +1 -1
  13. package/cloudidentity/getGroups.d.ts +18 -0
  14. package/cloudidentity/getGroups.js +18 -0
  15. package/cloudidentity/getGroups.js.map +1 -1
  16. package/compute/diskAsyncReplication.d.ts +27 -0
  17. package/compute/diskAsyncReplication.js +27 -0
  18. package/compute/diskAsyncReplication.js.map +1 -1
  19. package/compute/getBackendBucket.d.ts +18 -0
  20. package/compute/getBackendBucket.js +18 -0
  21. package/compute/getBackendBucket.js.map +1 -1
  22. package/compute/getBackendService.d.ts +26 -0
  23. package/compute/getBackendService.js +26 -0
  24. package/compute/getBackendService.js.map +1 -1
  25. package/compute/getCertificate.d.ts +24 -0
  26. package/compute/getCertificate.js +24 -0
  27. package/compute/getCertificate.js.map +1 -1
  28. package/compute/getForwardingRule.d.ts +18 -0
  29. package/compute/getForwardingRule.js +18 -0
  30. package/compute/getForwardingRule.js.map +1 -1
  31. package/compute/getForwardingRules.d.ts +20 -0
  32. package/compute/getForwardingRules.js +20 -0
  33. package/compute/getForwardingRules.js.map +1 -1
  34. package/compute/getGlobalForwardingRule.d.ts +18 -0
  35. package/compute/getGlobalForwardingRule.js +18 -0
  36. package/compute/getGlobalForwardingRule.js.map +1 -1
  37. package/compute/getHcVpnGateway.d.ts +18 -0
  38. package/compute/getHcVpnGateway.js +18 -0
  39. package/compute/getHcVpnGateway.js.map +1 -1
  40. package/compute/getHealthCheck.d.ts +18 -0
  41. package/compute/getHealthCheck.js +18 -0
  42. package/compute/getHealthCheck.js.map +1 -1
  43. package/compute/getLBIPRanges.d.ts +34 -0
  44. package/compute/getLBIPRanges.js +34 -0
  45. package/compute/getLBIPRanges.js.map +1 -1
  46. package/compute/getNetblockIPRanges.d.ts +58 -0
  47. package/compute/getNetblockIPRanges.js +58 -0
  48. package/compute/getNetblockIPRanges.js.map +1 -1
  49. package/compute/getNetwork.d.ts +18 -0
  50. package/compute/getNetwork.js +18 -0
  51. package/compute/getNetwork.js.map +1 -1
  52. package/compute/getNetworks.d.ts +18 -0
  53. package/compute/getNetworks.js +18 -0
  54. package/compute/getNetworks.js.map +1 -1
  55. package/compute/getRegionSslCertificate.d.ts +24 -0
  56. package/compute/getRegionSslCertificate.js +24 -0
  57. package/compute/getRegionSslCertificate.js.map +1 -1
  58. package/compute/getSSLPolicy.d.ts +18 -0
  59. package/compute/getSSLPolicy.js +18 -0
  60. package/compute/getSSLPolicy.js.map +1 -1
  61. package/compute/getVPNGateway.d.ts +18 -0
  62. package/compute/getVPNGateway.js +18 -0
  63. package/compute/getVPNGateway.js.map +1 -1
  64. package/compute/instanceTemplate.d.ts +32 -0
  65. package/compute/instanceTemplate.js +32 -0
  66. package/compute/instanceTemplate.js.map +1 -1
  67. package/container/getCluster.d.ts +28 -0
  68. package/container/getCluster.js +28 -0
  69. package/container/getCluster.js.map +1 -1
  70. package/dataproc/getMetastoreService.d.ts +20 -0
  71. package/dataproc/getMetastoreService.js +20 -0
  72. package/dataproc/getMetastoreService.js.map +1 -1
  73. package/dns/getRecordSet.d.ts +28 -0
  74. package/dns/getRecordSet.js +28 -0
  75. package/dns/getRecordSet.js.map +1 -1
  76. package/filestore/getInstance.d.ts +24 -0
  77. package/filestore/getInstance.js +24 -0
  78. package/filestore/getInstance.js.map +1 -1
  79. package/iam/getWorkloadIdentityPool.d.ts +18 -0
  80. package/iam/getWorkloadIdentityPool.js +18 -0
  81. package/iam/getWorkloadIdentityPool.js.map +1 -1
  82. package/iam/getWorkloadIdentityPoolProvider.d.ts +20 -0
  83. package/iam/getWorkloadIdentityPoolProvider.js +20 -0
  84. package/iam/getWorkloadIdentityPoolProvider.js.map +1 -1
  85. package/iap/getClient.d.ts +26 -0
  86. package/iap/getClient.js +26 -0
  87. package/iap/getClient.js.map +1 -1
  88. package/monitoring/getSecretVersion.d.ts +2 -2
  89. package/monitoring/getSecretVersion.js +2 -2
  90. package/organizations/getActiveFolder.d.ts +20 -0
  91. package/organizations/getActiveFolder.js +20 -0
  92. package/organizations/getActiveFolder.js.map +1 -1
  93. package/organizations/getClientConfig.d.ts +14 -2
  94. package/organizations/getClientConfig.js +14 -2
  95. package/organizations/getClientConfig.js.map +1 -1
  96. package/package.json +2 -2
  97. package/redis/getInstance.d.ts +24 -0
  98. package/redis/getInstance.js +24 -0
  99. package/redis/getInstance.js.map +1 -1
  100. package/secretmanager/getSecretVersion.d.ts +2 -2
  101. package/secretmanager/getSecretVersion.js +2 -2
  102. package/spanner/getInstance.d.ts +18 -0
  103. package/spanner/getInstance.js +18 -0
  104. package/spanner/getInstance.js.map +1 -1
  105. package/tags/getTagKey.d.ts +38 -0
  106. package/tags/getTagKey.js +38 -0
  107. package/tags/getTagKey.js.map +1 -1
  108. package/tags/getTagKeys.d.ts +34 -0
  109. package/tags/getTagKeys.js +34 -0
  110. package/tags/getTagKeys.js.map +1 -1
  111. package/tags/getTagValue.d.ts +20 -0
  112. package/tags/getTagValue.js +20 -0
  113. package/tags/getTagValue.js.map +1 -1
  114. package/tags/getTagValues.d.ts +18 -0
  115. package/tags/getTagValues.js +18 -0
  116. package/tags/getTagValues.js.map +1 -1
@@ -9,6 +9,18 @@ const utilities = require("../utilities");
9
9
  * Get info about a Google Compute SSL Certificate from its name.
10
10
  *
11
11
  * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as gcp from "@pulumi/gcp";
16
+ *
17
+ * const myCert = gcp.compute.getCertificate({
18
+ * name: "my-cert",
19
+ * });
20
+ * export const certificate = myCert.then(myCert => myCert.certificate);
21
+ * export const certificateId = myCert.then(myCert => myCert.certificateId);
22
+ * export const selfLink = myCert.then(myCert => myCert.selfLink);
23
+ * ```
12
24
  */
13
25
  function getCertificate(args, opts) {
14
26
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -22,6 +34,18 @@ exports.getCertificate = getCertificate;
22
34
  * Get info about a Google Compute SSL Certificate from its name.
23
35
  *
24
36
  * ## Example Usage
37
+ *
38
+ * ```typescript
39
+ * import * as pulumi from "@pulumi/pulumi";
40
+ * import * as gcp from "@pulumi/gcp";
41
+ *
42
+ * const myCert = gcp.compute.getCertificate({
43
+ * name: "my-cert",
44
+ * });
45
+ * export const certificate = myCert.then(myCert => myCert.certificate);
46
+ * export const certificateId = myCert.then(myCert => myCert.certificateId);
47
+ * export const selfLink = myCert.then(myCert => myCert.selfLink);
48
+ * ```
25
49
  */
26
50
  function getCertificateOutput(args, opts) {
27
51
  return pulumi.output(args).apply((a) => getCertificate(a, opts));
@@ -1 +1 @@
1
- {"version":3,"file":"getCertificate.js","sourceRoot":"","sources":["../../compute/getCertificate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;GAIG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAEhF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2CAA2C,EAAE;QACtE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,wCAOC;AAsCD;;;;GAIG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAA2B;IAC5F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACzE,CAAC;AAFD,oDAEC"}
1
+ {"version":3,"file":"getCertificate.js","sourceRoot":"","sources":["../../compute/getCertificate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAEhF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2CAA2C,EAAE;QACtE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,wCAOC;AAsCD;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAA2B;IAC5F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACzE,CAAC;AAFD,oDAEC"}
@@ -4,6 +4,15 @@ import * as outputs from "../types/output";
4
4
  * Get a forwarding rule within GCE from its name.
5
5
  *
6
6
  * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as gcp from "@pulumi/gcp";
11
+ *
12
+ * const my-forwarding-rule = gcp.compute.getForwardingRule({
13
+ * name: "forwarding-rule-us-east1",
14
+ * });
15
+ * ```
7
16
  */
8
17
  export declare function getForwardingRule(args: GetForwardingRuleArgs, opts?: pulumi.InvokeOptions): Promise<GetForwardingRuleResult>;
9
18
  /**
@@ -82,6 +91,15 @@ export interface GetForwardingRuleResult {
82
91
  * Get a forwarding rule within GCE from its name.
83
92
  *
84
93
  * ## Example Usage
94
+ *
95
+ * ```typescript
96
+ * import * as pulumi from "@pulumi/pulumi";
97
+ * import * as gcp from "@pulumi/gcp";
98
+ *
99
+ * const my-forwarding-rule = gcp.compute.getForwardingRule({
100
+ * name: "forwarding-rule-us-east1",
101
+ * });
102
+ * ```
85
103
  */
86
104
  export declare function getForwardingRuleOutput(args: GetForwardingRuleOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetForwardingRuleResult>;
87
105
  /**
@@ -9,6 +9,15 @@ const utilities = require("../utilities");
9
9
  * Get a forwarding rule within GCE from its name.
10
10
  *
11
11
  * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as gcp from "@pulumi/gcp";
16
+ *
17
+ * const my-forwarding-rule = gcp.compute.getForwardingRule({
18
+ * name: "forwarding-rule-us-east1",
19
+ * });
20
+ * ```
12
21
  */
13
22
  function getForwardingRule(args, opts) {
14
23
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -23,6 +32,15 @@ exports.getForwardingRule = getForwardingRule;
23
32
  * Get a forwarding rule within GCE from its name.
24
33
  *
25
34
  * ## Example Usage
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as gcp from "@pulumi/gcp";
39
+ *
40
+ * const my-forwarding-rule = gcp.compute.getForwardingRule({
41
+ * name: "forwarding-rule-us-east1",
42
+ * });
43
+ * ```
26
44
  */
27
45
  function getForwardingRuleOutput(args, opts) {
28
46
  return pulumi.output(args).apply((a) => getForwardingRule(a, opts));
@@ -1 +1 @@
1
- {"version":3,"file":"getForwardingRule.js","sourceRoot":"","sources":["../../compute/getForwardingRule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;GAIG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IAEtF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,iDAAiD,EAAE;QAC5E,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,8CAQC;AAqED;;;;GAIG;AACH,SAAgB,uBAAuB,CAAC,IAAiC,EAAE,IAA2B;IAClG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC5E,CAAC;AAFD,0DAEC"}
1
+ {"version":3,"file":"getForwardingRule.js","sourceRoot":"","sources":["../../compute/getForwardingRule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;GAaG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IAEtF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,iDAAiD,EAAE;QAC5E,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,8CAQC;AAqED;;;;;;;;;;;;;GAaG;AACH,SAAgB,uBAAuB,CAAC,IAAiC,EAAE,IAA2B;IAClG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC5E,CAAC;AAFD,0DAEC"}
@@ -4,6 +4,16 @@ import * as outputs from "../types/output";
4
4
  * List all networks in a specified Google Cloud project.
5
5
  *
6
6
  * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as gcp from "@pulumi/gcp";
11
+ *
12
+ * const my-forwarding-rules = gcp.compute.getForwardingRules({
13
+ * project: "my-cloud-project",
14
+ * region: "us-central1",
15
+ * });
16
+ * ```
7
17
  */
8
18
  export declare function getForwardingRules(args?: GetForwardingRulesArgs, opts?: pulumi.InvokeOptions): Promise<GetForwardingRulesResult>;
9
19
  /**
@@ -46,6 +56,16 @@ export interface GetForwardingRulesResult {
46
56
  * List all networks in a specified Google Cloud project.
47
57
  *
48
58
  * ## Example Usage
59
+ *
60
+ * ```typescript
61
+ * import * as pulumi from "@pulumi/pulumi";
62
+ * import * as gcp from "@pulumi/gcp";
63
+ *
64
+ * const my-forwarding-rules = gcp.compute.getForwardingRules({
65
+ * project: "my-cloud-project",
66
+ * region: "us-central1",
67
+ * });
68
+ * ```
49
69
  */
50
70
  export declare function getForwardingRulesOutput(args?: GetForwardingRulesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetForwardingRulesResult>;
51
71
  /**
@@ -9,6 +9,16 @@ const utilities = require("../utilities");
9
9
  * List all networks in a specified Google Cloud project.
10
10
  *
11
11
  * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as gcp from "@pulumi/gcp";
16
+ *
17
+ * const my-forwarding-rules = gcp.compute.getForwardingRules({
18
+ * project: "my-cloud-project",
19
+ * region: "us-central1",
20
+ * });
21
+ * ```
12
22
  */
13
23
  function getForwardingRules(args, opts) {
14
24
  args = args || {};
@@ -23,6 +33,16 @@ exports.getForwardingRules = getForwardingRules;
23
33
  * List all networks in a specified Google Cloud project.
24
34
  *
25
35
  * ## Example Usage
36
+ *
37
+ * ```typescript
38
+ * import * as pulumi from "@pulumi/pulumi";
39
+ * import * as gcp from "@pulumi/gcp";
40
+ *
41
+ * const my-forwarding-rules = gcp.compute.getForwardingRules({
42
+ * project: "my-cloud-project",
43
+ * region: "us-central1",
44
+ * });
45
+ * ```
26
46
  */
27
47
  function getForwardingRulesOutput(args, opts) {
28
48
  return pulumi.output(args).apply((a) => getForwardingRules(a, opts));
@@ -1 +1 @@
1
- {"version":3,"file":"getForwardingRules.js","sourceRoot":"","sources":["../../compute/getForwardingRules.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;GAIG;AACH,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAA2B;IACzF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,mDAAmD,EAAE;QAC9E,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,gDAQC;AAuCD;;;;GAIG;AACH,SAAgB,wBAAwB,CAAC,IAAmC,EAAE,IAA2B;IACrG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC7E,CAAC;AAFD,4DAEC"}
1
+ {"version":3,"file":"getForwardingRules.js","sourceRoot":"","sources":["../../compute/getForwardingRules.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;GAcG;AACH,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAA2B;IACzF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,mDAAmD,EAAE;QAC9E,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,gDAQC;AAuCD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,wBAAwB,CAAC,IAAmC,EAAE,IAA2B;IACrG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC7E,CAAC;AAFD,4DAEC"}
@@ -4,6 +4,15 @@ import * as outputs from "../types/output";
4
4
  * Get a global forwarding rule within GCE from its name.
5
5
  *
6
6
  * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as gcp from "@pulumi/gcp";
11
+ *
12
+ * const my-forwarding-rule = gcp.compute.getGlobalForwardingRule({
13
+ * name: "forwarding-rule-global",
14
+ * });
15
+ * ```
7
16
  */
8
17
  export declare function getGlobalForwardingRule(args: GetGlobalForwardingRuleArgs, opts?: pulumi.InvokeOptions): Promise<GetGlobalForwardingRuleResult>;
9
18
  /**
@@ -65,6 +74,15 @@ export interface GetGlobalForwardingRuleResult {
65
74
  * Get a global forwarding rule within GCE from its name.
66
75
  *
67
76
  * ## Example Usage
77
+ *
78
+ * ```typescript
79
+ * import * as pulumi from "@pulumi/pulumi";
80
+ * import * as gcp from "@pulumi/gcp";
81
+ *
82
+ * const my-forwarding-rule = gcp.compute.getGlobalForwardingRule({
83
+ * name: "forwarding-rule-global",
84
+ * });
85
+ * ```
68
86
  */
69
87
  export declare function getGlobalForwardingRuleOutput(args: GetGlobalForwardingRuleOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetGlobalForwardingRuleResult>;
70
88
  /**
@@ -9,6 +9,15 @@ const utilities = require("../utilities");
9
9
  * Get a global forwarding rule within GCE from its name.
10
10
  *
11
11
  * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as gcp from "@pulumi/gcp";
16
+ *
17
+ * const my-forwarding-rule = gcp.compute.getGlobalForwardingRule({
18
+ * name: "forwarding-rule-global",
19
+ * });
20
+ * ```
12
21
  */
13
22
  function getGlobalForwardingRule(args, opts) {
14
23
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -22,6 +31,15 @@ exports.getGlobalForwardingRule = getGlobalForwardingRule;
22
31
  * Get a global forwarding rule within GCE from its name.
23
32
  *
24
33
  * ## Example Usage
34
+ *
35
+ * ```typescript
36
+ * import * as pulumi from "@pulumi/pulumi";
37
+ * import * as gcp from "@pulumi/gcp";
38
+ *
39
+ * const my-forwarding-rule = gcp.compute.getGlobalForwardingRule({
40
+ * name: "forwarding-rule-global",
41
+ * });
42
+ * ```
25
43
  */
26
44
  function getGlobalForwardingRuleOutput(args, opts) {
27
45
  return pulumi.output(args).apply((a) => getGlobalForwardingRule(a, opts));
@@ -1 +1 @@
1
- {"version":3,"file":"getGlobalForwardingRule.js","sourceRoot":"","sources":["../../compute/getGlobalForwardingRule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;GAIG;AACH,SAAgB,uBAAuB,CAAC,IAAiC,EAAE,IAA2B;IAElG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,6DAA6D,EAAE;QACxF,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0DAOC;AAoDD;;;;GAIG;AACH,SAAgB,6BAA6B,CAAC,IAAuC,EAAE,IAA2B;IAC9G,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,uBAAuB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClF,CAAC;AAFD,sEAEC"}
1
+ {"version":3,"file":"getGlobalForwardingRule.js","sourceRoot":"","sources":["../../compute/getGlobalForwardingRule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;GAaG;AACH,SAAgB,uBAAuB,CAAC,IAAiC,EAAE,IAA2B;IAElG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,6DAA6D,EAAE;QACxF,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0DAOC;AAoDD;;;;;;;;;;;;;GAaG;AACH,SAAgB,6BAA6B,CAAC,IAAuC,EAAE,IAA2B;IAC9G,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,uBAAuB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClF,CAAC;AAFD,sEAEC"}
@@ -4,6 +4,15 @@ import * as outputs from "../types/output";
4
4
  * Get a HA VPN Gateway within GCE from its name.
5
5
  *
6
6
  * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as gcp from "@pulumi/gcp";
11
+ *
12
+ * const gateway = gcp.compute.getHcVpnGateway({
13
+ * name: "foobar",
14
+ * });
15
+ * ```
7
16
  */
8
17
  export declare function getHcVpnGateway(args: GetHcVpnGatewayArgs, opts?: pulumi.InvokeOptions): Promise<GetHcVpnGatewayResult>;
9
18
  /**
@@ -50,6 +59,15 @@ export interface GetHcVpnGatewayResult {
50
59
  * Get a HA VPN Gateway within GCE from its name.
51
60
  *
52
61
  * ## Example Usage
62
+ *
63
+ * ```typescript
64
+ * import * as pulumi from "@pulumi/pulumi";
65
+ * import * as gcp from "@pulumi/gcp";
66
+ *
67
+ * const gateway = gcp.compute.getHcVpnGateway({
68
+ * name: "foobar",
69
+ * });
70
+ * ```
53
71
  */
54
72
  export declare function getHcVpnGatewayOutput(args: GetHcVpnGatewayOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetHcVpnGatewayResult>;
55
73
  /**
@@ -9,6 +9,15 @@ const utilities = require("../utilities");
9
9
  * Get a HA VPN Gateway within GCE from its name.
10
10
  *
11
11
  * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as gcp from "@pulumi/gcp";
16
+ *
17
+ * const gateway = gcp.compute.getHcVpnGateway({
18
+ * name: "foobar",
19
+ * });
20
+ * ```
12
21
  */
13
22
  function getHcVpnGateway(args, opts) {
14
23
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -23,6 +32,15 @@ exports.getHcVpnGateway = getHcVpnGateway;
23
32
  * Get a HA VPN Gateway within GCE from its name.
24
33
  *
25
34
  * ## Example Usage
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as gcp from "@pulumi/gcp";
39
+ *
40
+ * const gateway = gcp.compute.getHcVpnGateway({
41
+ * name: "foobar",
42
+ * });
43
+ * ```
26
44
  */
27
45
  function getHcVpnGatewayOutput(args, opts) {
28
46
  return pulumi.output(args).apply((a) => getHcVpnGateway(a, opts));
@@ -1 +1 @@
1
- {"version":3,"file":"getHcVpnGateway.js","sourceRoot":"","sources":["../../compute/getHcVpnGateway.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;GAIG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAElF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,6CAA6C,EAAE;QACxE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,0CAQC;AA2CD;;;;GAIG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAC9F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC1E,CAAC;AAFD,sDAEC"}
1
+ {"version":3,"file":"getHcVpnGateway.js","sourceRoot":"","sources":["../../compute/getHcVpnGateway.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;GAaG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAElF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,6CAA6C,EAAE;QACxE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,0CAQC;AA2CD;;;;;;;;;;;;;GAaG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAC9F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC1E,CAAC;AAFD,sDAEC"}
@@ -4,6 +4,15 @@ import * as outputs from "../types/output";
4
4
  * Get information about a HealthCheck.
5
5
  *
6
6
  * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as gcp from "@pulumi/gcp";
11
+ *
12
+ * const healthCheck = gcp.compute.getHealthCheck({
13
+ * name: "my-hc",
14
+ * });
15
+ * ```
7
16
  */
8
17
  export declare function getHealthCheck(args: GetHealthCheckArgs, opts?: pulumi.InvokeOptions): Promise<GetHealthCheckResult>;
9
18
  /**
@@ -53,6 +62,15 @@ export interface GetHealthCheckResult {
53
62
  * Get information about a HealthCheck.
54
63
  *
55
64
  * ## Example Usage
65
+ *
66
+ * ```typescript
67
+ * import * as pulumi from "@pulumi/pulumi";
68
+ * import * as gcp from "@pulumi/gcp";
69
+ *
70
+ * const healthCheck = gcp.compute.getHealthCheck({
71
+ * name: "my-hc",
72
+ * });
73
+ * ```
56
74
  */
57
75
  export declare function getHealthCheckOutput(args: GetHealthCheckOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetHealthCheckResult>;
58
76
  /**
@@ -9,6 +9,15 @@ const utilities = require("../utilities");
9
9
  * Get information about a HealthCheck.
10
10
  *
11
11
  * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as gcp from "@pulumi/gcp";
16
+ *
17
+ * const healthCheck = gcp.compute.getHealthCheck({
18
+ * name: "my-hc",
19
+ * });
20
+ * ```
12
21
  */
13
22
  function getHealthCheck(args, opts) {
14
23
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -22,6 +31,15 @@ exports.getHealthCheck = getHealthCheck;
22
31
  * Get information about a HealthCheck.
23
32
  *
24
33
  * ## Example Usage
34
+ *
35
+ * ```typescript
36
+ * import * as pulumi from "@pulumi/pulumi";
37
+ * import * as gcp from "@pulumi/gcp";
38
+ *
39
+ * const healthCheck = gcp.compute.getHealthCheck({
40
+ * name: "my-hc",
41
+ * });
42
+ * ```
25
43
  */
26
44
  function getHealthCheckOutput(args, opts) {
27
45
  return pulumi.output(args).apply((a) => getHealthCheck(a, opts));
@@ -1 +1 @@
1
- {"version":3,"file":"getHealthCheck.js","sourceRoot":"","sources":["../../compute/getHealthCheck.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;GAIG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAEhF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2CAA2C,EAAE;QACtE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,wCAOC;AA8CD;;;;GAIG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAA2B;IAC5F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACzE,CAAC;AAFD,oDAEC"}
1
+ {"version":3,"file":"getHealthCheck.js","sourceRoot":"","sources":["../../compute/getHealthCheck.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;GAaG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAEhF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2CAA2C,EAAE;QACtE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,wCAOC;AA8CD;;;;;;;;;;;;;GAaG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAA2B;IAC5F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACzE,CAAC;AAFD,oDAEC"}
@@ -5,6 +5,23 @@ import * as pulumi from "@pulumi/pulumi";
5
5
  * https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules
6
6
  *
7
7
  * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as gcp from "@pulumi/gcp";
12
+ *
13
+ * const ranges = gcp.compute.getLBIPRanges({});
14
+ * const lb = new gcp.compute.Firewall("lb", {
15
+ * name: "lb-firewall",
16
+ * network: main.name,
17
+ * allows: [{
18
+ * protocol: "tcp",
19
+ * ports: ["80"],
20
+ * }],
21
+ * sourceRanges: ranges.then(ranges => ranges.networks),
22
+ * targetTags: ["InstanceBehindLoadBalancer"],
23
+ * });
24
+ * ```
8
25
  */
9
26
  export declare function getLBIPRanges(opts?: pulumi.InvokeOptions): Promise<GetLBIPRangesResult>;
10
27
  /**
@@ -30,5 +47,22 @@ export interface GetLBIPRangesResult {
30
47
  * https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules
31
48
  *
32
49
  * ## Example Usage
50
+ *
51
+ * ```typescript
52
+ * import * as pulumi from "@pulumi/pulumi";
53
+ * import * as gcp from "@pulumi/gcp";
54
+ *
55
+ * const ranges = gcp.compute.getLBIPRanges({});
56
+ * const lb = new gcp.compute.Firewall("lb", {
57
+ * name: "lb-firewall",
58
+ * network: main.name,
59
+ * allows: [{
60
+ * protocol: "tcp",
61
+ * ports: ["80"],
62
+ * }],
63
+ * sourceRanges: ranges.then(ranges => ranges.networks),
64
+ * targetTags: ["InstanceBehindLoadBalancer"],
65
+ * });
66
+ * ```
33
67
  */
34
68
  export declare function getLBIPRangesOutput(opts?: pulumi.InvokeOptions): pulumi.Output<GetLBIPRangesResult>;
@@ -11,6 +11,23 @@ const utilities = require("../utilities");
11
11
  * https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules
12
12
  *
13
13
  * ## Example Usage
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as gcp from "@pulumi/gcp";
18
+ *
19
+ * const ranges = gcp.compute.getLBIPRanges({});
20
+ * const lb = new gcp.compute.Firewall("lb", {
21
+ * name: "lb-firewall",
22
+ * network: main.name,
23
+ * allows: [{
24
+ * protocol: "tcp",
25
+ * ports: ["80"],
26
+ * }],
27
+ * sourceRanges: ranges.then(ranges => ranges.networks),
28
+ * targetTags: ["InstanceBehindLoadBalancer"],
29
+ * });
30
+ * ```
14
31
  */
15
32
  function getLBIPRanges(opts) {
16
33
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -23,6 +40,23 @@ exports.getLBIPRanges = getLBIPRanges;
23
40
  * https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules
24
41
  *
25
42
  * ## Example Usage
43
+ *
44
+ * ```typescript
45
+ * import * as pulumi from "@pulumi/pulumi";
46
+ * import * as gcp from "@pulumi/gcp";
47
+ *
48
+ * const ranges = gcp.compute.getLBIPRanges({});
49
+ * const lb = new gcp.compute.Firewall("lb", {
50
+ * name: "lb-firewall",
51
+ * network: main.name,
52
+ * allows: [{
53
+ * protocol: "tcp",
54
+ * ports: ["80"],
55
+ * }],
56
+ * sourceRanges: ranges.then(ranges => ranges.networks),
57
+ * targetTags: ["InstanceBehindLoadBalancer"],
58
+ * });
59
+ * ```
26
60
  */
27
61
  function getLBIPRangesOutput(opts) {
28
62
  return pulumi.output(getLBIPRanges(opts));
@@ -1 +1 @@
1
- {"version":3,"file":"getLBIPRanges.js","sourceRoot":"","sources":["../../compute/getLBIPRanges.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;GAMG;AACH,SAAgB,aAAa,CAAC,IAA2B;IAErD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yCAAyC,EAAE,EACvE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,sCAKC;AAmBD;;;;;;GAMG;AACH,SAAgB,mBAAmB,CAAC,IAA2B;IAC3D,OAAO,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAA;AAC7C,CAAC;AAFD,kDAEC"}
1
+ {"version":3,"file":"getLBIPRanges.js","sourceRoot":"","sources":["../../compute/getLBIPRanges.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,aAAa,CAAC,IAA2B;IAErD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yCAAyC,EAAE,EACvE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,sCAKC;AAmBD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,mBAAmB,CAAC,IAA2B;IAC3D,OAAO,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAA;AAC7C,CAAC;AAFD,kDAEC"}
@@ -6,7 +6,36 @@ import * as pulumi from "@pulumi/pulumi";
6
6
  *
7
7
  * ### Cloud Ranges
8
8
  *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as gcp from "@pulumi/gcp";
12
+ *
13
+ * const netblock = gcp.compute.getNetblockIPRanges({});
14
+ * export const cidrBlocks = netblock.then(netblock => netblock.cidrBlocks);
15
+ * export const cidrBlocksIpv4 = netblock.then(netblock => netblock.cidrBlocksIpv4s);
16
+ * export const cidrBlocksIpv6 = netblock.then(netblock => netblock.cidrBlocksIpv6s);
17
+ * ```
18
+ *
9
19
  * ### Allow Health Checks
20
+ *
21
+ * ```typescript
22
+ * import * as pulumi from "@pulumi/pulumi";
23
+ * import * as gcp from "@pulumi/gcp";
24
+ *
25
+ * const legacy-hcs = gcp.compute.getNetblockIPRanges({
26
+ * rangeType: "legacy-health-checkers",
27
+ * });
28
+ * const _default = new gcp.compute.Network("default", {name: "test-network"});
29
+ * const allow_hcs = new gcp.compute.Firewall("allow-hcs", {
30
+ * name: "allow-hcs",
31
+ * network: _default.name,
32
+ * allows: [{
33
+ * protocol: "tcp",
34
+ * ports: ["80"],
35
+ * }],
36
+ * sourceRanges: legacy_hcs.then(legacy_hcs => legacy_hcs.cidrBlocksIpv4s),
37
+ * });
38
+ * ```
10
39
  */
11
40
  export declare function getNetblockIPRanges(args?: GetNetblockIPRangesArgs, opts?: pulumi.InvokeOptions): Promise<GetNetblockIPRangesResult>;
12
41
  /**
@@ -65,7 +94,36 @@ export interface GetNetblockIPRangesResult {
65
94
  *
66
95
  * ### Cloud Ranges
67
96
  *
97
+ * ```typescript
98
+ * import * as pulumi from "@pulumi/pulumi";
99
+ * import * as gcp from "@pulumi/gcp";
100
+ *
101
+ * const netblock = gcp.compute.getNetblockIPRanges({});
102
+ * export const cidrBlocks = netblock.then(netblock => netblock.cidrBlocks);
103
+ * export const cidrBlocksIpv4 = netblock.then(netblock => netblock.cidrBlocksIpv4s);
104
+ * export const cidrBlocksIpv6 = netblock.then(netblock => netblock.cidrBlocksIpv6s);
105
+ * ```
106
+ *
68
107
  * ### Allow Health Checks
108
+ *
109
+ * ```typescript
110
+ * import * as pulumi from "@pulumi/pulumi";
111
+ * import * as gcp from "@pulumi/gcp";
112
+ *
113
+ * const legacy-hcs = gcp.compute.getNetblockIPRanges({
114
+ * rangeType: "legacy-health-checkers",
115
+ * });
116
+ * const _default = new gcp.compute.Network("default", {name: "test-network"});
117
+ * const allow_hcs = new gcp.compute.Firewall("allow-hcs", {
118
+ * name: "allow-hcs",
119
+ * network: _default.name,
120
+ * allows: [{
121
+ * protocol: "tcp",
122
+ * ports: ["80"],
123
+ * }],
124
+ * sourceRanges: legacy_hcs.then(legacy_hcs => legacy_hcs.cidrBlocksIpv4s),
125
+ * });
126
+ * ```
69
127
  */
70
128
  export declare function getNetblockIPRangesOutput(args?: GetNetblockIPRangesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetNetblockIPRangesResult>;
71
129
  /**
@@ -12,7 +12,36 @@ const utilities = require("../utilities");
12
12
  *
13
13
  * ### Cloud Ranges
14
14
  *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as gcp from "@pulumi/gcp";
18
+ *
19
+ * const netblock = gcp.compute.getNetblockIPRanges({});
20
+ * export const cidrBlocks = netblock.then(netblock => netblock.cidrBlocks);
21
+ * export const cidrBlocksIpv4 = netblock.then(netblock => netblock.cidrBlocksIpv4s);
22
+ * export const cidrBlocksIpv6 = netblock.then(netblock => netblock.cidrBlocksIpv6s);
23
+ * ```
24
+ *
15
25
  * ### Allow Health Checks
26
+ *
27
+ * ```typescript
28
+ * import * as pulumi from "@pulumi/pulumi";
29
+ * import * as gcp from "@pulumi/gcp";
30
+ *
31
+ * const legacy-hcs = gcp.compute.getNetblockIPRanges({
32
+ * rangeType: "legacy-health-checkers",
33
+ * });
34
+ * const _default = new gcp.compute.Network("default", {name: "test-network"});
35
+ * const allow_hcs = new gcp.compute.Firewall("allow-hcs", {
36
+ * name: "allow-hcs",
37
+ * network: _default.name,
38
+ * allows: [{
39
+ * protocol: "tcp",
40
+ * ports: ["80"],
41
+ * }],
42
+ * sourceRanges: legacy_hcs.then(legacy_hcs => legacy_hcs.cidrBlocksIpv4s),
43
+ * });
44
+ * ```
16
45
  */
17
46
  function getNetblockIPRanges(args, opts) {
18
47
  args = args || {};
@@ -29,7 +58,36 @@ exports.getNetblockIPRanges = getNetblockIPRanges;
29
58
  *
30
59
  * ### Cloud Ranges
31
60
  *
61
+ * ```typescript
62
+ * import * as pulumi from "@pulumi/pulumi";
63
+ * import * as gcp from "@pulumi/gcp";
64
+ *
65
+ * const netblock = gcp.compute.getNetblockIPRanges({});
66
+ * export const cidrBlocks = netblock.then(netblock => netblock.cidrBlocks);
67
+ * export const cidrBlocksIpv4 = netblock.then(netblock => netblock.cidrBlocksIpv4s);
68
+ * export const cidrBlocksIpv6 = netblock.then(netblock => netblock.cidrBlocksIpv6s);
69
+ * ```
70
+ *
32
71
  * ### Allow Health Checks
72
+ *
73
+ * ```typescript
74
+ * import * as pulumi from "@pulumi/pulumi";
75
+ * import * as gcp from "@pulumi/gcp";
76
+ *
77
+ * const legacy-hcs = gcp.compute.getNetblockIPRanges({
78
+ * rangeType: "legacy-health-checkers",
79
+ * });
80
+ * const _default = new gcp.compute.Network("default", {name: "test-network"});
81
+ * const allow_hcs = new gcp.compute.Firewall("allow-hcs", {
82
+ * name: "allow-hcs",
83
+ * network: _default.name,
84
+ * allows: [{
85
+ * protocol: "tcp",
86
+ * ports: ["80"],
87
+ * }],
88
+ * sourceRanges: legacy_hcs.then(legacy_hcs => legacy_hcs.cidrBlocksIpv4s),
89
+ * });
90
+ * ```
33
91
  */
34
92
  function getNetblockIPRangesOutput(args, opts) {
35
93
  return pulumi.output(args).apply((a) => getNetblockIPRanges(a, opts));
@@ -1 +1 @@
1
- {"version":3,"file":"getNetblockIPRanges.js","sourceRoot":"","sources":["../../compute/getNetblockIPRanges.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;GAQG;AACH,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAA2B;IAC3F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qDAAqD,EAAE;QAChF,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kDAOC;AAoDD;;;;;;;;GAQG;AACH,SAAgB,yBAAyB,CAAC,IAAoC,EAAE,IAA2B;IACvG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC9E,CAAC;AAFD,8DAEC"}
1
+ {"version":3,"file":"getNetblockIPRanges.js","sourceRoot":"","sources":["../../compute/getNetblockIPRanges.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAA2B;IAC3F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qDAAqD,EAAE;QAChF,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kDAOC;AAoDD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,SAAgB,yBAAyB,CAAC,IAAoC,EAAE,IAA2B;IACvG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC9E,CAAC;AAFD,8DAEC"}