@pulumi/gcp 7.3.0 → 7.4.0-alpha.1703041340
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/apigateway/apiConfig.d.ts +1 -1
- package/apigateway/apiConfig.js +1 -1
- package/apigateway/gateway.d.ts +1 -1
- package/apigateway/gateway.js +1 -1
- package/certificateauthority/certificate.d.ts +1 -1
- package/certificateauthority/certificate.js +1 -1
- package/compute/regionSslCertificate.d.ts +2 -2
- package/compute/regionSslCertificate.js +2 -2
- package/compute/sslcertificate.d.ts +2 -2
- package/compute/sslcertificate.js +2 -2
- package/endpoints/service.d.ts +1 -1
- package/endpoints/service.js +1 -1
- package/package.json +1 -1
- package/runtimeconfig/variable.d.ts +1 -1
- package/runtimeconfig/variable.js +1 -1
- package/secretmanager/secretVersion.d.ts +1 -1
- package/secretmanager/secretVersion.js +1 -1
|
@@ -27,7 +27,7 @@ import * as outputs from "../types/output";
|
|
|
27
27
|
* openapiDocuments: [{
|
|
28
28
|
* document: {
|
|
29
29
|
* path: "spec.yaml",
|
|
30
|
-
* contents: Buffer.from(fs.readFileSync("test-fixtures/openapi.yaml"
|
|
30
|
+
* contents: Buffer.from(fs.readFileSync("test-fixtures/openapi.yaml", 'binary')).toString('base64'),
|
|
31
31
|
* },
|
|
32
32
|
* }],
|
|
33
33
|
* }, {
|
package/apigateway/apiConfig.js
CHANGED
|
@@ -31,7 +31,7 @@ const utilities = require("../utilities");
|
|
|
31
31
|
* openapiDocuments: [{
|
|
32
32
|
* document: {
|
|
33
33
|
* path: "spec.yaml",
|
|
34
|
-
* contents: Buffer.from(fs.readFileSync("test-fixtures/openapi.yaml"
|
|
34
|
+
* contents: Buffer.from(fs.readFileSync("test-fixtures/openapi.yaml", 'binary')).toString('base64'),
|
|
35
35
|
* },
|
|
36
36
|
* }],
|
|
37
37
|
* }, {
|
package/apigateway/gateway.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
25
25
|
* openapiDocuments: [{
|
|
26
26
|
* document: {
|
|
27
27
|
* path: "spec.yaml",
|
|
28
|
-
* contents: Buffer.from(fs.readFileSync("test-fixtures/openapi.yaml"
|
|
28
|
+
* contents: Buffer.from(fs.readFileSync("test-fixtures/openapi.yaml", 'binary')).toString('base64'),
|
|
29
29
|
* },
|
|
30
30
|
* }],
|
|
31
31
|
* }, {
|
package/apigateway/gateway.js
CHANGED
|
@@ -31,7 +31,7 @@ const utilities = require("../utilities");
|
|
|
31
31
|
* openapiDocuments: [{
|
|
32
32
|
* document: {
|
|
33
33
|
* path: "spec.yaml",
|
|
34
|
-
* contents: Buffer.from(fs.readFileSync("test-fixtures/openapi.yaml"
|
|
34
|
+
* contents: Buffer.from(fs.readFileSync("test-fixtures/openapi.yaml", 'binary')).toString('base64'),
|
|
35
35
|
* },
|
|
36
36
|
* }],
|
|
37
37
|
* }, {
|
|
@@ -273,7 +273,7 @@ import * as outputs from "../types/output";
|
|
|
273
273
|
* },
|
|
274
274
|
* publicKey: {
|
|
275
275
|
* format: "PEM",
|
|
276
|
-
* key: Buffer.from(fs.readFileSync("test-fixtures/rsa_public.pem"
|
|
276
|
+
* key: Buffer.from(fs.readFileSync("test-fixtures/rsa_public.pem", 'binary')).toString('base64'),
|
|
277
277
|
* },
|
|
278
278
|
* },
|
|
279
279
|
* }, {
|
|
@@ -277,7 +277,7 @@ const utilities = require("../utilities");
|
|
|
277
277
|
* },
|
|
278
278
|
* publicKey: {
|
|
279
279
|
* format: "PEM",
|
|
280
|
-
* key: Buffer.from(fs.readFileSync("test-fixtures/rsa_public.pem"
|
|
280
|
+
* key: Buffer.from(fs.readFileSync("test-fixtures/rsa_public.pem", 'binary')).toString('base64'),
|
|
281
281
|
* },
|
|
282
282
|
* },
|
|
283
283
|
* }, {
|
|
@@ -35,8 +35,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
35
35
|
* import * as gcp from "@pulumi/gcp";
|
|
36
36
|
* import * as random from "@pulumi/random";
|
|
37
37
|
*
|
|
38
|
-
* function computeFilebase64sha256(path string) string {
|
|
39
|
-
* const fileData = Buffer.from(fs.readFileSync(path
|
|
38
|
+
* function computeFilebase64sha256(path: string): string {
|
|
39
|
+
* const fileData = Buffer.from(fs.readFileSync(path, 'binary'))
|
|
40
40
|
* return crypto.createHash('sha256').update(fileData).digest('hex')
|
|
41
41
|
* }
|
|
42
42
|
*
|
|
@@ -41,8 +41,8 @@ const utilities = require("../utilities");
|
|
|
41
41
|
* import * as gcp from "@pulumi/gcp";
|
|
42
42
|
* import * as random from "@pulumi/random";
|
|
43
43
|
*
|
|
44
|
-
* function computeFilebase64sha256(path string) string {
|
|
45
|
-
* const fileData = Buffer.from(fs.readFileSync(path
|
|
44
|
+
* function computeFilebase64sha256(path: string): string {
|
|
45
|
+
* const fileData = Buffer.from(fs.readFileSync(path, 'binary'))
|
|
46
46
|
* return crypto.createHash('sha256').update(fileData).digest('hex')
|
|
47
47
|
* }
|
|
48
48
|
*
|
|
@@ -34,8 +34,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
34
34
|
* import * as gcp from "@pulumi/gcp";
|
|
35
35
|
* import * as random from "@pulumi/random";
|
|
36
36
|
*
|
|
37
|
-
* function computeFilebase64sha256(path string) string {
|
|
38
|
-
* const fileData = Buffer.from(fs.readFileSync(path
|
|
37
|
+
* function computeFilebase64sha256(path: string): string {
|
|
38
|
+
* const fileData = Buffer.from(fs.readFileSync(path, 'binary'))
|
|
39
39
|
* return crypto.createHash('sha256').update(fileData).digest('hex')
|
|
40
40
|
* }
|
|
41
41
|
*
|
|
@@ -40,8 +40,8 @@ const utilities = require("../utilities");
|
|
|
40
40
|
* import * as gcp from "@pulumi/gcp";
|
|
41
41
|
* import * as random from "@pulumi/random";
|
|
42
42
|
*
|
|
43
|
-
* function computeFilebase64sha256(path string) string {
|
|
44
|
-
* const fileData = Buffer.from(fs.readFileSync(path
|
|
43
|
+
* function computeFilebase64sha256(path: string): string {
|
|
44
|
+
* const fileData = Buffer.from(fs.readFileSync(path, 'binary'))
|
|
45
45
|
* return crypto.createHash('sha256').update(fileData).digest('hex')
|
|
46
46
|
* }
|
|
47
47
|
*
|
package/endpoints/service.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ import * as outputs from "../types/output";
|
|
|
20
20
|
* serviceName: "api-name.endpoints.project-id.cloud.goog",
|
|
21
21
|
* project: "project-id",
|
|
22
22
|
* grpcConfig: fs.readFileSync("service_spec.yml", "utf8"),
|
|
23
|
-
* protocOutputBase64: Buffer.from(fs.readFileSync("compiled_descriptor_file.pb"
|
|
23
|
+
* protocOutputBase64: Buffer.from(fs.readFileSync("compiled_descriptor_file.pb", 'binary')).toString('base64'),
|
|
24
24
|
* });
|
|
25
25
|
* ```
|
|
26
26
|
*
|
package/endpoints/service.js
CHANGED
|
@@ -24,7 +24,7 @@ const utilities = require("../utilities");
|
|
|
24
24
|
* serviceName: "api-name.endpoints.project-id.cloud.goog",
|
|
25
25
|
* project: "project-id",
|
|
26
26
|
* grpcConfig: fs.readFileSync("service_spec.yml", "utf8"),
|
|
27
|
-
* protocOutputBase64: Buffer.from(fs.readFileSync("compiled_descriptor_file.pb"
|
|
27
|
+
* protocOutputBase64: Buffer.from(fs.readFileSync("compiled_descriptor_file.pb", 'binary')).toString('base64'),
|
|
28
28
|
* });
|
|
29
29
|
* ```
|
|
30
30
|
*
|
package/package.json
CHANGED
|
@@ -28,7 +28,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
28
28
|
* const my_runtime_config = new gcp.runtimeconfig.Config("my-runtime-config", {description: "Runtime configuration values for my service"});
|
|
29
29
|
* const my_secret = new gcp.runtimeconfig.Variable("my-secret", {
|
|
30
30
|
* parent: my_runtime_config.name,
|
|
31
|
-
* value: Buffer.from(fs.readFileSync("my-encrypted-secret.dat"
|
|
31
|
+
* value: Buffer.from(fs.readFileSync("my-encrypted-secret.dat", 'binary')).toString('base64'),
|
|
32
32
|
* });
|
|
33
33
|
* ```
|
|
34
34
|
*
|
|
@@ -34,7 +34,7 @@ const utilities = require("../utilities");
|
|
|
34
34
|
* const my_runtime_config = new gcp.runtimeconfig.Config("my-runtime-config", {description: "Runtime configuration values for my service"});
|
|
35
35
|
* const my_secret = new gcp.runtimeconfig.Variable("my-secret", {
|
|
36
36
|
* parent: my_runtime_config.name,
|
|
37
|
-
* value: Buffer.from(fs.readFileSync("my-encrypted-secret.dat"
|
|
37
|
+
* value: Buffer.from(fs.readFileSync("my-encrypted-secret.dat", 'binary')).toString('base64'),
|
|
38
38
|
* });
|
|
39
39
|
* ```
|
|
40
40
|
*
|
|
@@ -87,7 +87,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
87
87
|
* const secret_version_base64 = new gcp.secretmanager.SecretVersion("secret-version-base64", {
|
|
88
88
|
* secret: secret_basic.id,
|
|
89
89
|
* isSecretDataBase64: true,
|
|
90
|
-
* secretData: Buffer.from(fs.readFileSync("secret-data.pfx"
|
|
90
|
+
* secretData: Buffer.from(fs.readFileSync("secret-data.pfx", 'binary')).toString('base64'),
|
|
91
91
|
* });
|
|
92
92
|
* ```
|
|
93
93
|
*
|
|
@@ -93,7 +93,7 @@ const utilities = require("../utilities");
|
|
|
93
93
|
* const secret_version_base64 = new gcp.secretmanager.SecretVersion("secret-version-base64", {
|
|
94
94
|
* secret: secret_basic.id,
|
|
95
95
|
* isSecretDataBase64: true,
|
|
96
|
-
* secretData: Buffer.from(fs.readFileSync("secret-data.pfx"
|
|
96
|
+
* secretData: Buffer.from(fs.readFileSync("secret-data.pfx", 'binary')).toString('base64'),
|
|
97
97
|
* });
|
|
98
98
|
* ```
|
|
99
99
|
*
|