@pulumi/gcp 6.45.0 → 6.46.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/alloydb/backup.d.ts +248 -0
- package/alloydb/backup.js +150 -0
- package/alloydb/backup.js.map +1 -0
- package/alloydb/index.d.ts +3 -0
- package/alloydb/index.js +6 -1
- package/alloydb/index.js.map +1 -1
- package/bigtable/table.d.ts +18 -0
- package/bigtable/table.js +2 -0
- package/bigtable/table.js.map +1 -1
- package/container/cluster.d.ts +12 -0
- package/container/cluster.js +2 -0
- package/container/cluster.js.map +1 -1
- package/container/getCluster.d.ts +1 -0
- package/container/getCluster.js.map +1 -1
- package/datacatalog/tagTemplate.d.ts +3 -3
- package/filestore/backup.d.ts +263 -0
- package/filestore/backup.js +142 -0
- package/filestore/backup.js.map +1 -0
- package/filestore/index.d.ts +3 -0
- package/filestore/index.js +6 -1
- package/filestore/index.js.map +1 -1
- package/gkehub/featureMembership.d.ts +1 -1
- package/gkehub/featureMembership.js +1 -1
- package/logging/metric.d.ts +47 -10
- package/logging/metric.js +18 -3
- package/logging/metric.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/sql/database.d.ts +3 -3
- package/types/input.d.ts +84 -3
- package/types/output.d.ts +108 -8
|
@@ -91,7 +91,7 @@ export declare class TagTemplate extends pulumi.CustomResource {
|
|
|
91
91
|
*/
|
|
92
92
|
readonly displayName: pulumi.Output<string | undefined>;
|
|
93
93
|
/**
|
|
94
|
-
* Set of tag template field IDs and the settings for the field. This set is an exhaustive list of the allowed fields. This set must contain at least one field and at most 500 fields.
|
|
94
|
+
* Set of tag template field IDs and the settings for the field. This set is an exhaustive list of the allowed fields. This set must contain at least one field and at most 500 fields. The change of fieldId will be resulting in re-creating of field. The change of primitiveType will be resulting in re-creating of field, however if the field is a required, you cannot update it.
|
|
95
95
|
* Structure is documented below.
|
|
96
96
|
*/
|
|
97
97
|
readonly fields: pulumi.Output<outputs.datacatalog.TagTemplateField[]>;
|
|
@@ -135,7 +135,7 @@ export interface TagTemplateState {
|
|
|
135
135
|
*/
|
|
136
136
|
displayName?: pulumi.Input<string>;
|
|
137
137
|
/**
|
|
138
|
-
* Set of tag template field IDs and the settings for the field. This set is an exhaustive list of the allowed fields. This set must contain at least one field and at most 500 fields.
|
|
138
|
+
* Set of tag template field IDs and the settings for the field. This set is an exhaustive list of the allowed fields. This set must contain at least one field and at most 500 fields. The change of fieldId will be resulting in re-creating of field. The change of primitiveType will be resulting in re-creating of field, however if the field is a required, you cannot update it.
|
|
139
139
|
* Structure is documented below.
|
|
140
140
|
*/
|
|
141
141
|
fields?: pulumi.Input<pulumi.Input<inputs.datacatalog.TagTemplateField>[]>;
|
|
@@ -171,7 +171,7 @@ export interface TagTemplateArgs {
|
|
|
171
171
|
*/
|
|
172
172
|
displayName?: pulumi.Input<string>;
|
|
173
173
|
/**
|
|
174
|
-
* Set of tag template field IDs and the settings for the field. This set is an exhaustive list of the allowed fields. This set must contain at least one field and at most 500 fields.
|
|
174
|
+
* Set of tag template field IDs and the settings for the field. This set is an exhaustive list of the allowed fields. This set must contain at least one field and at most 500 fields. The change of fieldId will be resulting in re-creating of field. The change of primitiveType will be resulting in re-creating of field, however if the field is a required, you cannot update it.
|
|
175
175
|
* Structure is documented below.
|
|
176
176
|
*/
|
|
177
177
|
fields: pulumi.Input<pulumi.Input<inputs.datacatalog.TagTemplateField>[]>;
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* A Google Cloud Filestore backup.
|
|
4
|
+
*
|
|
5
|
+
* To get more information about Backup, see:
|
|
6
|
+
*
|
|
7
|
+
* * [API documentation](https://cloud.google.com/filestore/docs/reference/rest/v1/projects.locations.instances.backups)
|
|
8
|
+
* * How-to Guides
|
|
9
|
+
* * [Official Documentation](https://cloud.google.com/filestore/docs/backups)
|
|
10
|
+
* * [Creating Backups](https://cloud.google.com/filestore/docs/create-backups)
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
* ### Filestore Backup Basic
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as gcp from "@pulumi/gcp";
|
|
18
|
+
*
|
|
19
|
+
* const instance = new gcp.filestore.Instance("instance", {
|
|
20
|
+
* location: "us-central1-b",
|
|
21
|
+
* tier: "BASIC_SSD",
|
|
22
|
+
* fileShares: {
|
|
23
|
+
* capacityGb: 2560,
|
|
24
|
+
* name: "share1",
|
|
25
|
+
* },
|
|
26
|
+
* networks: [{
|
|
27
|
+
* network: "default",
|
|
28
|
+
* modes: ["MODE_IPV4"],
|
|
29
|
+
* connectMode: "DIRECT_PEERING",
|
|
30
|
+
* }],
|
|
31
|
+
* });
|
|
32
|
+
* const backup = new gcp.filestore.Backup("backup", {
|
|
33
|
+
* location: "us-central1",
|
|
34
|
+
* sourceInstance: instance.id,
|
|
35
|
+
* sourceFileShare: "share1",
|
|
36
|
+
* description: "This is a filestore backup for the test instance",
|
|
37
|
+
* labels: {
|
|
38
|
+
* files: "label1",
|
|
39
|
+
* "other-label": "label2",
|
|
40
|
+
* },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* ## Import
|
|
45
|
+
*
|
|
46
|
+
* Backup can be imported using any of these accepted formats
|
|
47
|
+
*
|
|
48
|
+
* ```sh
|
|
49
|
+
* $ pulumi import gcp:filestore/backup:Backup default projects/{{project}}/locations/{{location}}/backups/{{name}}
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* ```sh
|
|
53
|
+
* $ pulumi import gcp:filestore/backup:Backup default {{project}}/{{location}}/{{name}}
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* ```sh
|
|
57
|
+
* $ pulumi import gcp:filestore/backup:Backup default {{location}}/{{name}}
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare class Backup extends pulumi.CustomResource {
|
|
61
|
+
/**
|
|
62
|
+
* Get an existing Backup resource's state with the given name, ID, and optional extra
|
|
63
|
+
* properties used to qualify the lookup.
|
|
64
|
+
*
|
|
65
|
+
* @param name The _unique_ name of the resulting resource.
|
|
66
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
67
|
+
* @param state Any extra arguments used during the lookup.
|
|
68
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
69
|
+
*/
|
|
70
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BackupState, opts?: pulumi.CustomResourceOptions): Backup;
|
|
71
|
+
/**
|
|
72
|
+
* Returns true if the given object is an instance of Backup. This is designed to work even
|
|
73
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
74
|
+
*/
|
|
75
|
+
static isInstance(obj: any): obj is Backup;
|
|
76
|
+
/**
|
|
77
|
+
* The amount of bytes needed to allocate a full copy of the snapshot content.
|
|
78
|
+
*/
|
|
79
|
+
readonly capacityGb: pulumi.Output<string>;
|
|
80
|
+
/**
|
|
81
|
+
* The time when the snapshot was created in RFC3339 text format.
|
|
82
|
+
*/
|
|
83
|
+
readonly createTime: pulumi.Output<string>;
|
|
84
|
+
/**
|
|
85
|
+
* A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.
|
|
86
|
+
*/
|
|
87
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
88
|
+
/**
|
|
89
|
+
* Amount of bytes that will be downloaded if the backup is restored.
|
|
90
|
+
*/
|
|
91
|
+
readonly downloadBytes: pulumi.Output<string>;
|
|
92
|
+
/**
|
|
93
|
+
* KMS key name used for data encryption.
|
|
94
|
+
*/
|
|
95
|
+
readonly kmsKeyName: pulumi.Output<string>;
|
|
96
|
+
/**
|
|
97
|
+
* Resource labels to represent user-provided metadata.
|
|
98
|
+
*/
|
|
99
|
+
readonly labels: pulumi.Output<{
|
|
100
|
+
[key: string]: string;
|
|
101
|
+
} | undefined>;
|
|
102
|
+
/**
|
|
103
|
+
* The name of the location of the instance. This can be a region for ENTERPRISE tier instances.
|
|
104
|
+
*/
|
|
105
|
+
readonly location: pulumi.Output<string>;
|
|
106
|
+
/**
|
|
107
|
+
* The resource name of the backup. The name must be unique within the specified instance.
|
|
108
|
+
* The name must be 1-63 characters long, and comply with
|
|
109
|
+
* RFC1035. Specifically, the name must be 1-63 characters long and match
|
|
110
|
+
* the regular expression `a-z?` which means the
|
|
111
|
+
* first character must be a lowercase letter, and all following
|
|
112
|
+
* characters must be a dash, lowercase letter, or digit, except the last
|
|
113
|
+
* character, which cannot be a dash.
|
|
114
|
+
*/
|
|
115
|
+
readonly name: pulumi.Output<string>;
|
|
116
|
+
/**
|
|
117
|
+
* The ID of the project in which the resource belongs.
|
|
118
|
+
* If it is not provided, the provider project is used.
|
|
119
|
+
*/
|
|
120
|
+
readonly project: pulumi.Output<string>;
|
|
121
|
+
/**
|
|
122
|
+
* Name of the file share in the source Cloud Filestore instance that the backup is created from.
|
|
123
|
+
*/
|
|
124
|
+
readonly sourceFileShare: pulumi.Output<string>;
|
|
125
|
+
/**
|
|
126
|
+
* The resource name of the source Cloud Filestore instance, in the format projects/{projectId}/locations/{locationId}/instances/{instanceId}, used to create this backup.
|
|
127
|
+
*/
|
|
128
|
+
readonly sourceInstance: pulumi.Output<string>;
|
|
129
|
+
/**
|
|
130
|
+
* The service tier of the source Cloud Filestore instance that this backup is created from.
|
|
131
|
+
*/
|
|
132
|
+
readonly sourceInstanceTier: pulumi.Output<string>;
|
|
133
|
+
/**
|
|
134
|
+
* The backup state.
|
|
135
|
+
*/
|
|
136
|
+
readonly state: pulumi.Output<string>;
|
|
137
|
+
/**
|
|
138
|
+
* The size of the storage used by the backup. As backups share storage, this number is expected to change with backup
|
|
139
|
+
* creation/deletion.
|
|
140
|
+
*/
|
|
141
|
+
readonly storageBytes: pulumi.Output<string>;
|
|
142
|
+
/**
|
|
143
|
+
* Create a Backup resource with the given unique name, arguments, and options.
|
|
144
|
+
*
|
|
145
|
+
* @param name The _unique_ name of the resource.
|
|
146
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
147
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
148
|
+
*/
|
|
149
|
+
constructor(name: string, args: BackupArgs, opts?: pulumi.CustomResourceOptions);
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Input properties used for looking up and filtering Backup resources.
|
|
153
|
+
*/
|
|
154
|
+
export interface BackupState {
|
|
155
|
+
/**
|
|
156
|
+
* The amount of bytes needed to allocate a full copy of the snapshot content.
|
|
157
|
+
*/
|
|
158
|
+
capacityGb?: pulumi.Input<string>;
|
|
159
|
+
/**
|
|
160
|
+
* The time when the snapshot was created in RFC3339 text format.
|
|
161
|
+
*/
|
|
162
|
+
createTime?: pulumi.Input<string>;
|
|
163
|
+
/**
|
|
164
|
+
* A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.
|
|
165
|
+
*/
|
|
166
|
+
description?: pulumi.Input<string>;
|
|
167
|
+
/**
|
|
168
|
+
* Amount of bytes that will be downloaded if the backup is restored.
|
|
169
|
+
*/
|
|
170
|
+
downloadBytes?: pulumi.Input<string>;
|
|
171
|
+
/**
|
|
172
|
+
* KMS key name used for data encryption.
|
|
173
|
+
*/
|
|
174
|
+
kmsKeyName?: pulumi.Input<string>;
|
|
175
|
+
/**
|
|
176
|
+
* Resource labels to represent user-provided metadata.
|
|
177
|
+
*/
|
|
178
|
+
labels?: pulumi.Input<{
|
|
179
|
+
[key: string]: pulumi.Input<string>;
|
|
180
|
+
}>;
|
|
181
|
+
/**
|
|
182
|
+
* The name of the location of the instance. This can be a region for ENTERPRISE tier instances.
|
|
183
|
+
*/
|
|
184
|
+
location?: pulumi.Input<string>;
|
|
185
|
+
/**
|
|
186
|
+
* The resource name of the backup. The name must be unique within the specified instance.
|
|
187
|
+
* The name must be 1-63 characters long, and comply with
|
|
188
|
+
* RFC1035. Specifically, the name must be 1-63 characters long and match
|
|
189
|
+
* the regular expression `a-z?` which means the
|
|
190
|
+
* first character must be a lowercase letter, and all following
|
|
191
|
+
* characters must be a dash, lowercase letter, or digit, except the last
|
|
192
|
+
* character, which cannot be a dash.
|
|
193
|
+
*/
|
|
194
|
+
name?: pulumi.Input<string>;
|
|
195
|
+
/**
|
|
196
|
+
* The ID of the project in which the resource belongs.
|
|
197
|
+
* If it is not provided, the provider project is used.
|
|
198
|
+
*/
|
|
199
|
+
project?: pulumi.Input<string>;
|
|
200
|
+
/**
|
|
201
|
+
* Name of the file share in the source Cloud Filestore instance that the backup is created from.
|
|
202
|
+
*/
|
|
203
|
+
sourceFileShare?: pulumi.Input<string>;
|
|
204
|
+
/**
|
|
205
|
+
* The resource name of the source Cloud Filestore instance, in the format projects/{projectId}/locations/{locationId}/instances/{instanceId}, used to create this backup.
|
|
206
|
+
*/
|
|
207
|
+
sourceInstance?: pulumi.Input<string>;
|
|
208
|
+
/**
|
|
209
|
+
* The service tier of the source Cloud Filestore instance that this backup is created from.
|
|
210
|
+
*/
|
|
211
|
+
sourceInstanceTier?: pulumi.Input<string>;
|
|
212
|
+
/**
|
|
213
|
+
* The backup state.
|
|
214
|
+
*/
|
|
215
|
+
state?: pulumi.Input<string>;
|
|
216
|
+
/**
|
|
217
|
+
* The size of the storage used by the backup. As backups share storage, this number is expected to change with backup
|
|
218
|
+
* creation/deletion.
|
|
219
|
+
*/
|
|
220
|
+
storageBytes?: pulumi.Input<string>;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* The set of arguments for constructing a Backup resource.
|
|
224
|
+
*/
|
|
225
|
+
export interface BackupArgs {
|
|
226
|
+
/**
|
|
227
|
+
* A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.
|
|
228
|
+
*/
|
|
229
|
+
description?: pulumi.Input<string>;
|
|
230
|
+
/**
|
|
231
|
+
* Resource labels to represent user-provided metadata.
|
|
232
|
+
*/
|
|
233
|
+
labels?: pulumi.Input<{
|
|
234
|
+
[key: string]: pulumi.Input<string>;
|
|
235
|
+
}>;
|
|
236
|
+
/**
|
|
237
|
+
* The name of the location of the instance. This can be a region for ENTERPRISE tier instances.
|
|
238
|
+
*/
|
|
239
|
+
location: pulumi.Input<string>;
|
|
240
|
+
/**
|
|
241
|
+
* The resource name of the backup. The name must be unique within the specified instance.
|
|
242
|
+
* The name must be 1-63 characters long, and comply with
|
|
243
|
+
* RFC1035. Specifically, the name must be 1-63 characters long and match
|
|
244
|
+
* the regular expression `a-z?` which means the
|
|
245
|
+
* first character must be a lowercase letter, and all following
|
|
246
|
+
* characters must be a dash, lowercase letter, or digit, except the last
|
|
247
|
+
* character, which cannot be a dash.
|
|
248
|
+
*/
|
|
249
|
+
name?: pulumi.Input<string>;
|
|
250
|
+
/**
|
|
251
|
+
* The ID of the project in which the resource belongs.
|
|
252
|
+
* If it is not provided, the provider project is used.
|
|
253
|
+
*/
|
|
254
|
+
project?: pulumi.Input<string>;
|
|
255
|
+
/**
|
|
256
|
+
* Name of the file share in the source Cloud Filestore instance that the backup is created from.
|
|
257
|
+
*/
|
|
258
|
+
sourceFileShare: pulumi.Input<string>;
|
|
259
|
+
/**
|
|
260
|
+
* The resource name of the source Cloud Filestore instance, in the format projects/{projectId}/locations/{locationId}/instances/{instanceId}, used to create this backup.
|
|
261
|
+
*/
|
|
262
|
+
sourceInstance: pulumi.Input<string>;
|
|
263
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
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.Backup = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* A Google Cloud Filestore backup.
|
|
10
|
+
*
|
|
11
|
+
* To get more information about Backup, see:
|
|
12
|
+
*
|
|
13
|
+
* * [API documentation](https://cloud.google.com/filestore/docs/reference/rest/v1/projects.locations.instances.backups)
|
|
14
|
+
* * How-to Guides
|
|
15
|
+
* * [Official Documentation](https://cloud.google.com/filestore/docs/backups)
|
|
16
|
+
* * [Creating Backups](https://cloud.google.com/filestore/docs/create-backups)
|
|
17
|
+
*
|
|
18
|
+
* ## Example Usage
|
|
19
|
+
* ### Filestore Backup Basic
|
|
20
|
+
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as gcp from "@pulumi/gcp";
|
|
24
|
+
*
|
|
25
|
+
* const instance = new gcp.filestore.Instance("instance", {
|
|
26
|
+
* location: "us-central1-b",
|
|
27
|
+
* tier: "BASIC_SSD",
|
|
28
|
+
* fileShares: {
|
|
29
|
+
* capacityGb: 2560,
|
|
30
|
+
* name: "share1",
|
|
31
|
+
* },
|
|
32
|
+
* networks: [{
|
|
33
|
+
* network: "default",
|
|
34
|
+
* modes: ["MODE_IPV4"],
|
|
35
|
+
* connectMode: "DIRECT_PEERING",
|
|
36
|
+
* }],
|
|
37
|
+
* });
|
|
38
|
+
* const backup = new gcp.filestore.Backup("backup", {
|
|
39
|
+
* location: "us-central1",
|
|
40
|
+
* sourceInstance: instance.id,
|
|
41
|
+
* sourceFileShare: "share1",
|
|
42
|
+
* description: "This is a filestore backup for the test instance",
|
|
43
|
+
* labels: {
|
|
44
|
+
* files: "label1",
|
|
45
|
+
* "other-label": "label2",
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* ## Import
|
|
51
|
+
*
|
|
52
|
+
* Backup can be imported using any of these accepted formats
|
|
53
|
+
*
|
|
54
|
+
* ```sh
|
|
55
|
+
* $ pulumi import gcp:filestore/backup:Backup default projects/{{project}}/locations/{{location}}/backups/{{name}}
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* ```sh
|
|
59
|
+
* $ pulumi import gcp:filestore/backup:Backup default {{project}}/{{location}}/{{name}}
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* ```sh
|
|
63
|
+
* $ pulumi import gcp:filestore/backup:Backup default {{location}}/{{name}}
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
class Backup extends pulumi.CustomResource {
|
|
67
|
+
/**
|
|
68
|
+
* Get an existing Backup resource's state with the given name, ID, and optional extra
|
|
69
|
+
* properties used to qualify the lookup.
|
|
70
|
+
*
|
|
71
|
+
* @param name The _unique_ name of the resulting resource.
|
|
72
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
73
|
+
* @param state Any extra arguments used during the lookup.
|
|
74
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
75
|
+
*/
|
|
76
|
+
static get(name, id, state, opts) {
|
|
77
|
+
return new Backup(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Returns true if the given object is an instance of Backup. This is designed to work even
|
|
81
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
82
|
+
*/
|
|
83
|
+
static isInstance(obj) {
|
|
84
|
+
if (obj === undefined || obj === null) {
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
return obj['__pulumiType'] === Backup.__pulumiType;
|
|
88
|
+
}
|
|
89
|
+
constructor(name, argsOrState, opts) {
|
|
90
|
+
let resourceInputs = {};
|
|
91
|
+
opts = opts || {};
|
|
92
|
+
if (opts.id) {
|
|
93
|
+
const state = argsOrState;
|
|
94
|
+
resourceInputs["capacityGb"] = state ? state.capacityGb : undefined;
|
|
95
|
+
resourceInputs["createTime"] = state ? state.createTime : undefined;
|
|
96
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
97
|
+
resourceInputs["downloadBytes"] = state ? state.downloadBytes : undefined;
|
|
98
|
+
resourceInputs["kmsKeyName"] = state ? state.kmsKeyName : undefined;
|
|
99
|
+
resourceInputs["labels"] = state ? state.labels : undefined;
|
|
100
|
+
resourceInputs["location"] = state ? state.location : undefined;
|
|
101
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
102
|
+
resourceInputs["project"] = state ? state.project : undefined;
|
|
103
|
+
resourceInputs["sourceFileShare"] = state ? state.sourceFileShare : undefined;
|
|
104
|
+
resourceInputs["sourceInstance"] = state ? state.sourceInstance : undefined;
|
|
105
|
+
resourceInputs["sourceInstanceTier"] = state ? state.sourceInstanceTier : undefined;
|
|
106
|
+
resourceInputs["state"] = state ? state.state : undefined;
|
|
107
|
+
resourceInputs["storageBytes"] = state ? state.storageBytes : undefined;
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
const args = argsOrState;
|
|
111
|
+
if ((!args || args.location === undefined) && !opts.urn) {
|
|
112
|
+
throw new Error("Missing required property 'location'");
|
|
113
|
+
}
|
|
114
|
+
if ((!args || args.sourceFileShare === undefined) && !opts.urn) {
|
|
115
|
+
throw new Error("Missing required property 'sourceFileShare'");
|
|
116
|
+
}
|
|
117
|
+
if ((!args || args.sourceInstance === undefined) && !opts.urn) {
|
|
118
|
+
throw new Error("Missing required property 'sourceInstance'");
|
|
119
|
+
}
|
|
120
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
121
|
+
resourceInputs["labels"] = args ? args.labels : undefined;
|
|
122
|
+
resourceInputs["location"] = args ? args.location : undefined;
|
|
123
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
124
|
+
resourceInputs["project"] = args ? args.project : undefined;
|
|
125
|
+
resourceInputs["sourceFileShare"] = args ? args.sourceFileShare : undefined;
|
|
126
|
+
resourceInputs["sourceInstance"] = args ? args.sourceInstance : undefined;
|
|
127
|
+
resourceInputs["capacityGb"] = undefined /*out*/;
|
|
128
|
+
resourceInputs["createTime"] = undefined /*out*/;
|
|
129
|
+
resourceInputs["downloadBytes"] = undefined /*out*/;
|
|
130
|
+
resourceInputs["kmsKeyName"] = undefined /*out*/;
|
|
131
|
+
resourceInputs["sourceInstanceTier"] = undefined /*out*/;
|
|
132
|
+
resourceInputs["state"] = undefined /*out*/;
|
|
133
|
+
resourceInputs["storageBytes"] = undefined /*out*/;
|
|
134
|
+
}
|
|
135
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
136
|
+
super(Backup.__pulumiType, name, resourceInputs, opts);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
exports.Backup = Backup;
|
|
140
|
+
/** @internal */
|
|
141
|
+
Backup.__pulumiType = 'gcp:filestore/backup:Backup';
|
|
142
|
+
//# sourceMappingURL=backup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backup.js","sourceRoot":"","sources":["../../filestore/backup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,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,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;IA2ED,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB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
|
2
|
+
export type Backup = import("./backup").Backup;
|
|
3
|
+
export declare const Backup: typeof import("./backup").Backup;
|
|
1
4
|
export { InstanceArgs, InstanceState } from "./instance";
|
|
2
5
|
export type Instance = import("./instance").Instance;
|
|
3
6
|
export declare const Instance: typeof import("./instance").Instance;
|
package/filestore/index.js
CHANGED
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.Snapshot = exports.Instance = void 0;
|
|
5
|
+
exports.Snapshot = exports.Instance = exports.Backup = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
|
+
exports.Backup = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["Backup"], () => require("./backup"));
|
|
8
10
|
exports.Instance = null;
|
|
9
11
|
utilities.lazyLoad(exports, ["Instance"], () => require("./instance"));
|
|
10
12
|
exports.Snapshot = null;
|
|
@@ -13,6 +15,8 @@ const _module = {
|
|
|
13
15
|
version: utilities.getVersion(),
|
|
14
16
|
construct: (name, type, urn) => {
|
|
15
17
|
switch (type) {
|
|
18
|
+
case "gcp:filestore/backup:Backup":
|
|
19
|
+
return new exports.Backup(name, undefined, { urn });
|
|
16
20
|
case "gcp:filestore/instance:Instance":
|
|
17
21
|
return new exports.Instance(name, undefined, { urn });
|
|
18
22
|
case "gcp:filestore/snapshot:Snapshot":
|
|
@@ -22,6 +26,7 @@ const _module = {
|
|
|
22
26
|
}
|
|
23
27
|
},
|
|
24
28
|
};
|
|
29
|
+
pulumi.runtime.registerResourceModule("gcp", "filestore/backup", _module);
|
|
25
30
|
pulumi.runtime.registerResourceModule("gcp", "filestore/instance", _module);
|
|
26
31
|
pulumi.runtime.registerResourceModule("gcp", "filestore/snapshot", _module);
|
|
27
32
|
//# sourceMappingURL=index.js.map
|
package/filestore/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../filestore/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC1E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAI1D,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC1E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAGvE,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,iCAAiC;gBAClC,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACtD,KAAK,iCAAiC;gBAClC,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACtD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAA;AAC3E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../filestore/index.ts"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zE,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAA;AAC3E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAA"}
|
package/logging/metric.d.ts
CHANGED
|
@@ -89,6 +89,22 @@ import * as outputs from "../types/output";
|
|
|
89
89
|
* },
|
|
90
90
|
* });
|
|
91
91
|
* ```
|
|
92
|
+
* ### Logging Metric Logging Bucket
|
|
93
|
+
*
|
|
94
|
+
* ```typescript
|
|
95
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
96
|
+
* import * as gcp from "@pulumi/gcp";
|
|
97
|
+
*
|
|
98
|
+
* const loggingMetricProjectBucketConfig = new gcp.logging.ProjectBucketConfig("loggingMetricProjectBucketConfig", {
|
|
99
|
+
* location: "global",
|
|
100
|
+
* project: "my-project-name",
|
|
101
|
+
* bucketId: "_Default",
|
|
102
|
+
* });
|
|
103
|
+
* const loggingMetricMetric = new gcp.logging.Metric("loggingMetricMetric", {
|
|
104
|
+
* filter: "resource.type=gae_app AND severity>=ERROR",
|
|
105
|
+
* bucketName: loggingMetricProjectBucketConfig.id,
|
|
106
|
+
* });
|
|
107
|
+
* ```
|
|
92
108
|
*
|
|
93
109
|
* ## Import
|
|
94
110
|
*
|
|
@@ -118,6 +134,11 @@ export declare class Metric extends pulumi.CustomResource {
|
|
|
118
134
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
119
135
|
*/
|
|
120
136
|
static isInstance(obj: any): obj is Metric;
|
|
137
|
+
/**
|
|
138
|
+
* The resource name of the Log Bucket that owns the Log Metric. Only Log Buckets in projects
|
|
139
|
+
* are supported. The bucket has to be in the same project as the metric.
|
|
140
|
+
*/
|
|
141
|
+
readonly bucketName: pulumi.Output<string | undefined>;
|
|
121
142
|
/**
|
|
122
143
|
* The bucketOptions are required when the logs-based metric is using a DISTRIBUTION value type and it
|
|
123
144
|
* describes the bucket boundaries used to create a histogram of the extracted values.
|
|
@@ -125,8 +146,7 @@ export declare class Metric extends pulumi.CustomResource {
|
|
|
125
146
|
*/
|
|
126
147
|
readonly bucketOptions: pulumi.Output<outputs.logging.MetricBucketOptions | undefined>;
|
|
127
148
|
/**
|
|
128
|
-
* A description
|
|
129
|
-
* description is 8000 characters.
|
|
149
|
+
* A human-readable description for the label.
|
|
130
150
|
*/
|
|
131
151
|
readonly description: pulumi.Output<string | undefined>;
|
|
132
152
|
/**
|
|
@@ -144,7 +164,10 @@ export declare class Metric extends pulumi.CustomResource {
|
|
|
144
164
|
[key: string]: string;
|
|
145
165
|
} | undefined>;
|
|
146
166
|
/**
|
|
147
|
-
* The metric descriptor associated with the logs-based metric.
|
|
167
|
+
* The optional metric descriptor associated with the logs-based metric.
|
|
168
|
+
* If unspecified, it uses a default metric descriptor with a DELTA metric kind,
|
|
169
|
+
* INT64 value type, with no labels and a unit of "1". Such a metric counts the
|
|
170
|
+
* number of log entries matching the filter expression.
|
|
148
171
|
* Structure is documented below.
|
|
149
172
|
*/
|
|
150
173
|
readonly metricDescriptor: pulumi.Output<outputs.logging.MetricMetricDescriptor>;
|
|
@@ -184,6 +207,11 @@ export declare class Metric extends pulumi.CustomResource {
|
|
|
184
207
|
* Input properties used for looking up and filtering Metric resources.
|
|
185
208
|
*/
|
|
186
209
|
export interface MetricState {
|
|
210
|
+
/**
|
|
211
|
+
* The resource name of the Log Bucket that owns the Log Metric. Only Log Buckets in projects
|
|
212
|
+
* are supported. The bucket has to be in the same project as the metric.
|
|
213
|
+
*/
|
|
214
|
+
bucketName?: pulumi.Input<string>;
|
|
187
215
|
/**
|
|
188
216
|
* The bucketOptions are required when the logs-based metric is using a DISTRIBUTION value type and it
|
|
189
217
|
* describes the bucket boundaries used to create a histogram of the extracted values.
|
|
@@ -191,8 +219,7 @@ export interface MetricState {
|
|
|
191
219
|
*/
|
|
192
220
|
bucketOptions?: pulumi.Input<inputs.logging.MetricBucketOptions>;
|
|
193
221
|
/**
|
|
194
|
-
* A description
|
|
195
|
-
* description is 8000 characters.
|
|
222
|
+
* A human-readable description for the label.
|
|
196
223
|
*/
|
|
197
224
|
description?: pulumi.Input<string>;
|
|
198
225
|
/**
|
|
@@ -210,7 +237,10 @@ export interface MetricState {
|
|
|
210
237
|
[key: string]: pulumi.Input<string>;
|
|
211
238
|
}>;
|
|
212
239
|
/**
|
|
213
|
-
* The metric descriptor associated with the logs-based metric.
|
|
240
|
+
* The optional metric descriptor associated with the logs-based metric.
|
|
241
|
+
* If unspecified, it uses a default metric descriptor with a DELTA metric kind,
|
|
242
|
+
* INT64 value type, with no labels and a unit of "1". Such a metric counts the
|
|
243
|
+
* number of log entries matching the filter expression.
|
|
214
244
|
* Structure is documented below.
|
|
215
245
|
*/
|
|
216
246
|
metricDescriptor?: pulumi.Input<inputs.logging.MetricMetricDescriptor>;
|
|
@@ -242,6 +272,11 @@ export interface MetricState {
|
|
|
242
272
|
* The set of arguments for constructing a Metric resource.
|
|
243
273
|
*/
|
|
244
274
|
export interface MetricArgs {
|
|
275
|
+
/**
|
|
276
|
+
* The resource name of the Log Bucket that owns the Log Metric. Only Log Buckets in projects
|
|
277
|
+
* are supported. The bucket has to be in the same project as the metric.
|
|
278
|
+
*/
|
|
279
|
+
bucketName?: pulumi.Input<string>;
|
|
245
280
|
/**
|
|
246
281
|
* The bucketOptions are required when the logs-based metric is using a DISTRIBUTION value type and it
|
|
247
282
|
* describes the bucket boundaries used to create a histogram of the extracted values.
|
|
@@ -249,8 +284,7 @@ export interface MetricArgs {
|
|
|
249
284
|
*/
|
|
250
285
|
bucketOptions?: pulumi.Input<inputs.logging.MetricBucketOptions>;
|
|
251
286
|
/**
|
|
252
|
-
* A description
|
|
253
|
-
* description is 8000 characters.
|
|
287
|
+
* A human-readable description for the label.
|
|
254
288
|
*/
|
|
255
289
|
description?: pulumi.Input<string>;
|
|
256
290
|
/**
|
|
@@ -268,10 +302,13 @@ export interface MetricArgs {
|
|
|
268
302
|
[key: string]: pulumi.Input<string>;
|
|
269
303
|
}>;
|
|
270
304
|
/**
|
|
271
|
-
* The metric descriptor associated with the logs-based metric.
|
|
305
|
+
* The optional metric descriptor associated with the logs-based metric.
|
|
306
|
+
* If unspecified, it uses a default metric descriptor with a DELTA metric kind,
|
|
307
|
+
* INT64 value type, with no labels and a unit of "1". Such a metric counts the
|
|
308
|
+
* number of log entries matching the filter expression.
|
|
272
309
|
* Structure is documented below.
|
|
273
310
|
*/
|
|
274
|
-
metricDescriptor
|
|
311
|
+
metricDescriptor?: pulumi.Input<inputs.logging.MetricMetricDescriptor>;
|
|
275
312
|
/**
|
|
276
313
|
* The client-assigned metric identifier. Examples - "errorCount", "nginx/requests".
|
|
277
314
|
* Metric identifiers are limited to 100 characters and can include only the following
|