pulumi-gcp 7.30.0a1719958694__py3-none-any.whl → 7.30.0a1720039709__py3-none-any.whl

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.
@@ -30,6 +30,9 @@ class RegionDiskIamPolicyArgs:
30
30
  :param pulumi.Input[str] name: Used to find the parent resource to bind the IAM policy to
31
31
  :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
32
32
  If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
33
+ :param pulumi.Input[str] region: A reference to the region where the disk resides. Used to find the parent resource to bind the IAM policy to. If not specified,
34
+ the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
35
+ region is specified, it is taken from the provider configuration.
33
36
  """
34
37
  pulumi.set(__self__, "policy_data", policy_data)
35
38
  if name is not None:
@@ -80,6 +83,11 @@ class RegionDiskIamPolicyArgs:
80
83
  @property
81
84
  @pulumi.getter
82
85
  def region(self) -> Optional[pulumi.Input[str]]:
86
+ """
87
+ A reference to the region where the disk resides. Used to find the parent resource to bind the IAM policy to. If not specified,
88
+ the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
89
+ region is specified, it is taken from the provider configuration.
90
+ """
83
91
  return pulumi.get(self, "region")
84
92
 
85
93
  @region.setter
@@ -103,6 +111,9 @@ class _RegionDiskIamPolicyState:
103
111
  a `organizations_get_iam_policy` data source.
104
112
  :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
105
113
  If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
114
+ :param pulumi.Input[str] region: A reference to the region where the disk resides. Used to find the parent resource to bind the IAM policy to. If not specified,
115
+ the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
116
+ region is specified, it is taken from the provider configuration.
106
117
  """
107
118
  if etag is not None:
108
119
  pulumi.set(__self__, "etag", etag)
@@ -168,6 +179,11 @@ class _RegionDiskIamPolicyState:
168
179
  @property
169
180
  @pulumi.getter
170
181
  def region(self) -> Optional[pulumi.Input[str]]:
182
+ """
183
+ A reference to the region where the disk resides. Used to find the parent resource to bind the IAM policy to. If not specified,
184
+ the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
185
+ region is specified, it is taken from the provider configuration.
186
+ """
171
187
  return pulumi.get(self, "region")
172
188
 
173
189
  @region.setter
@@ -186,21 +202,21 @@ class RegionDiskIamPolicy(pulumi.CustomResource):
186
202
  region: Optional[pulumi.Input[str]] = None,
187
203
  __props__=None):
188
204
  """
189
- Three different resources help you manage your IAM policy for Compute Engine Disk. Each of these resources serves a different use case:
205
+ Three different resources help you manage your IAM policy for Compute Engine RegionDisk. Each of these resources serves a different use case:
190
206
 
191
- * `compute.DiskIamPolicy`: Authoritative. Sets the IAM policy for the disk and replaces any existing policy already attached.
192
- * `compute.DiskIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the disk are preserved.
193
- * `compute.DiskIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the disk are preserved.
207
+ * `compute.RegionDiskIamPolicy`: Authoritative. Sets the IAM policy for the regiondisk and replaces any existing policy already attached.
208
+ * `compute.RegionDiskIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the regiondisk are preserved.
209
+ * `compute.RegionDiskIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the regiondisk are preserved.
194
210
 
195
211
  A data source can be used to retrieve policy data in advent you do not need creation
196
212
 
197
- * `compute.DiskIamPolicy`: Retrieves the IAM policy for the disk
213
+ * `compute.RegionDiskIamPolicy`: Retrieves the IAM policy for the regiondisk
198
214
 
199
- > **Note:** `compute.DiskIamPolicy` **cannot** be used in conjunction with `compute.DiskIamBinding` and `compute.DiskIamMember` or they will fight over what your policy should be.
215
+ > **Note:** `compute.RegionDiskIamPolicy` **cannot** be used in conjunction with `compute.RegionDiskIamBinding` and `compute.RegionDiskIamMember` or they will fight over what your policy should be.
200
216
 
201
- > **Note:** `compute.DiskIamBinding` resources **can be** used in conjunction with `compute.DiskIamMember` resources **only if** they do not grant privilege to the same role.
217
+ > **Note:** `compute.RegionDiskIamBinding` resources **can be** used in conjunction with `compute.RegionDiskIamMember` resources **only if** they do not grant privilege to the same role.
202
218
 
203
- ## compute.DiskIamPolicy
219
+ ## compute.RegionDiskIamPolicy
204
220
 
205
221
  ```python
206
222
  import pulumi
@@ -210,42 +226,42 @@ class RegionDiskIamPolicy(pulumi.CustomResource):
210
226
  "role": "roles/viewer",
211
227
  "members": ["user:jane@example.com"],
212
228
  }])
213
- policy = gcp.compute.DiskIamPolicy("policy",
214
- project=default["project"],
215
- zone=default["zone"],
216
- name=default["name"],
229
+ policy = gcp.compute.RegionDiskIamPolicy("policy",
230
+ project=regiondisk["project"],
231
+ region=regiondisk["region"],
232
+ name=regiondisk["name"],
217
233
  policy_data=admin.policy_data)
218
234
  ```
219
235
 
220
- ## compute.DiskIamBinding
236
+ ## compute.RegionDiskIamBinding
221
237
 
222
238
  ```python
223
239
  import pulumi
224
240
  import pulumi_gcp as gcp
225
241
 
226
- binding = gcp.compute.DiskIamBinding("binding",
227
- project=default["project"],
228
- zone=default["zone"],
229
- name=default["name"],
242
+ binding = gcp.compute.RegionDiskIamBinding("binding",
243
+ project=regiondisk["project"],
244
+ region=regiondisk["region"],
245
+ name=regiondisk["name"],
230
246
  role="roles/viewer",
231
247
  members=["user:jane@example.com"])
232
248
  ```
233
249
 
234
- ## compute.DiskIamMember
250
+ ## compute.RegionDiskIamMember
235
251
 
236
252
  ```python
237
253
  import pulumi
238
254
  import pulumi_gcp as gcp
239
255
 
240
- member = gcp.compute.DiskIamMember("member",
241
- project=default["project"],
242
- zone=default["zone"],
243
- name=default["name"],
256
+ member = gcp.compute.RegionDiskIamMember("member",
257
+ project=regiondisk["project"],
258
+ region=regiondisk["region"],
259
+ name=regiondisk["name"],
244
260
  role="roles/viewer",
245
261
  member="user:jane@example.com")
246
262
  ```
247
263
 
248
- ## compute.DiskIamPolicy
264
+ ## compute.RegionDiskIamPolicy
249
265
 
250
266
  ```python
251
267
  import pulumi
@@ -255,37 +271,37 @@ class RegionDiskIamPolicy(pulumi.CustomResource):
255
271
  "role": "roles/viewer",
256
272
  "members": ["user:jane@example.com"],
257
273
  }])
258
- policy = gcp.compute.DiskIamPolicy("policy",
259
- project=default["project"],
260
- zone=default["zone"],
261
- name=default["name"],
274
+ policy = gcp.compute.RegionDiskIamPolicy("policy",
275
+ project=regiondisk["project"],
276
+ region=regiondisk["region"],
277
+ name=regiondisk["name"],
262
278
  policy_data=admin.policy_data)
263
279
  ```
264
280
 
265
- ## compute.DiskIamBinding
281
+ ## compute.RegionDiskIamBinding
266
282
 
267
283
  ```python
268
284
  import pulumi
269
285
  import pulumi_gcp as gcp
270
286
 
271
- binding = gcp.compute.DiskIamBinding("binding",
272
- project=default["project"],
273
- zone=default["zone"],
274
- name=default["name"],
287
+ binding = gcp.compute.RegionDiskIamBinding("binding",
288
+ project=regiondisk["project"],
289
+ region=regiondisk["region"],
290
+ name=regiondisk["name"],
275
291
  role="roles/viewer",
276
292
  members=["user:jane@example.com"])
277
293
  ```
278
294
 
279
- ## compute.DiskIamMember
295
+ ## compute.RegionDiskIamMember
280
296
 
281
297
  ```python
282
298
  import pulumi
283
299
  import pulumi_gcp as gcp
284
300
 
285
- member = gcp.compute.DiskIamMember("member",
286
- project=default["project"],
287
- zone=default["zone"],
288
- name=default["name"],
301
+ member = gcp.compute.RegionDiskIamMember("member",
302
+ project=regiondisk["project"],
303
+ region=regiondisk["region"],
304
+ name=regiondisk["name"],
289
305
  role="roles/viewer",
290
306
  member="user:jane@example.com")
291
307
  ```
@@ -294,34 +310,34 @@ class RegionDiskIamPolicy(pulumi.CustomResource):
294
310
 
295
311
  For all import syntaxes, the "resource in question" can take any of the following forms:
296
312
 
297
- * projects/{{project}}/zones/{{zone}}/disks/{{name}}
313
+ * projects/{{project}}/regions/{{region}}/disks/{{name}}
298
314
 
299
- * {{project}}/{{zone}}/{{name}}
315
+ * {{project}}/{{region}}/{{name}}
300
316
 
301
- * {{zone}}/{{name}}
317
+ * {{region}}/{{name}}
302
318
 
303
319
  * {{name}}
304
320
 
305
321
  Any variables not passed in the import command will be taken from the provider configuration.
306
322
 
307
- Compute Engine disk IAM resources can be imported using the resource identifiers, role, and member.
323
+ Compute Engine regiondisk IAM resources can be imported using the resource identifiers, role, and member.
308
324
 
309
325
  IAM member imports use space-delimited identifiers: the resource in question, the role, and the member identity, e.g.
310
326
 
311
327
  ```sh
312
- $ pulumi import gcp:compute/regionDiskIamPolicy:RegionDiskIamPolicy editor "projects/{{project}}/zones/{{zone}}/disks/{{disk}} roles/viewer user:jane@example.com"
328
+ $ pulumi import gcp:compute/regionDiskIamPolicy:RegionDiskIamPolicy editor "projects/{{project}}/regions/{{region}}/disks/{{region_disk}} roles/viewer user:jane@example.com"
313
329
  ```
314
330
 
315
331
  IAM binding imports use space-delimited identifiers: the resource in question and the role, e.g.
316
332
 
317
333
  ```sh
318
- $ pulumi import gcp:compute/regionDiskIamPolicy:RegionDiskIamPolicy editor "projects/{{project}}/zones/{{zone}}/disks/{{disk}} roles/viewer"
334
+ $ pulumi import gcp:compute/regionDiskIamPolicy:RegionDiskIamPolicy editor "projects/{{project}}/regions/{{region}}/disks/{{region_disk}} roles/viewer"
319
335
  ```
320
336
 
321
337
  IAM policy imports use the identifier of the resource in question, e.g.
322
338
 
323
339
  ```sh
324
- $ pulumi import gcp:compute/regionDiskIamPolicy:RegionDiskIamPolicy editor projects/{{project}}/zones/{{zone}}/disks/{{disk}}
340
+ $ pulumi import gcp:compute/regionDiskIamPolicy:RegionDiskIamPolicy editor projects/{{project}}/regions/{{region}}/disks/{{region_disk}}
325
341
  ```
326
342
 
327
343
  -> **Custom Roles**: If you're importing a IAM resource with a custom role, make sure to use the
@@ -335,6 +351,9 @@ class RegionDiskIamPolicy(pulumi.CustomResource):
335
351
  a `organizations_get_iam_policy` data source.
336
352
  :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
337
353
  If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
354
+ :param pulumi.Input[str] region: A reference to the region where the disk resides. Used to find the parent resource to bind the IAM policy to. If not specified,
355
+ the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
356
+ region is specified, it is taken from the provider configuration.
338
357
  """
339
358
  ...
340
359
  @overload
@@ -343,21 +362,21 @@ class RegionDiskIamPolicy(pulumi.CustomResource):
343
362
  args: RegionDiskIamPolicyArgs,
344
363
  opts: Optional[pulumi.ResourceOptions] = None):
345
364
  """
346
- Three different resources help you manage your IAM policy for Compute Engine Disk. Each of these resources serves a different use case:
365
+ Three different resources help you manage your IAM policy for Compute Engine RegionDisk. Each of these resources serves a different use case:
347
366
 
348
- * `compute.DiskIamPolicy`: Authoritative. Sets the IAM policy for the disk and replaces any existing policy already attached.
349
- * `compute.DiskIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the disk are preserved.
350
- * `compute.DiskIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the disk are preserved.
367
+ * `compute.RegionDiskIamPolicy`: Authoritative. Sets the IAM policy for the regiondisk and replaces any existing policy already attached.
368
+ * `compute.RegionDiskIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the regiondisk are preserved.
369
+ * `compute.RegionDiskIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the regiondisk are preserved.
351
370
 
352
371
  A data source can be used to retrieve policy data in advent you do not need creation
353
372
 
354
- * `compute.DiskIamPolicy`: Retrieves the IAM policy for the disk
373
+ * `compute.RegionDiskIamPolicy`: Retrieves the IAM policy for the regiondisk
355
374
 
356
- > **Note:** `compute.DiskIamPolicy` **cannot** be used in conjunction with `compute.DiskIamBinding` and `compute.DiskIamMember` or they will fight over what your policy should be.
375
+ > **Note:** `compute.RegionDiskIamPolicy` **cannot** be used in conjunction with `compute.RegionDiskIamBinding` and `compute.RegionDiskIamMember` or they will fight over what your policy should be.
357
376
 
358
- > **Note:** `compute.DiskIamBinding` resources **can be** used in conjunction with `compute.DiskIamMember` resources **only if** they do not grant privilege to the same role.
377
+ > **Note:** `compute.RegionDiskIamBinding` resources **can be** used in conjunction with `compute.RegionDiskIamMember` resources **only if** they do not grant privilege to the same role.
359
378
 
360
- ## compute.DiskIamPolicy
379
+ ## compute.RegionDiskIamPolicy
361
380
 
362
381
  ```python
363
382
  import pulumi
@@ -367,42 +386,42 @@ class RegionDiskIamPolicy(pulumi.CustomResource):
367
386
  "role": "roles/viewer",
368
387
  "members": ["user:jane@example.com"],
369
388
  }])
370
- policy = gcp.compute.DiskIamPolicy("policy",
371
- project=default["project"],
372
- zone=default["zone"],
373
- name=default["name"],
389
+ policy = gcp.compute.RegionDiskIamPolicy("policy",
390
+ project=regiondisk["project"],
391
+ region=regiondisk["region"],
392
+ name=regiondisk["name"],
374
393
  policy_data=admin.policy_data)
375
394
  ```
376
395
 
377
- ## compute.DiskIamBinding
396
+ ## compute.RegionDiskIamBinding
378
397
 
379
398
  ```python
380
399
  import pulumi
381
400
  import pulumi_gcp as gcp
382
401
 
383
- binding = gcp.compute.DiskIamBinding("binding",
384
- project=default["project"],
385
- zone=default["zone"],
386
- name=default["name"],
402
+ binding = gcp.compute.RegionDiskIamBinding("binding",
403
+ project=regiondisk["project"],
404
+ region=regiondisk["region"],
405
+ name=regiondisk["name"],
387
406
  role="roles/viewer",
388
407
  members=["user:jane@example.com"])
389
408
  ```
390
409
 
391
- ## compute.DiskIamMember
410
+ ## compute.RegionDiskIamMember
392
411
 
393
412
  ```python
394
413
  import pulumi
395
414
  import pulumi_gcp as gcp
396
415
 
397
- member = gcp.compute.DiskIamMember("member",
398
- project=default["project"],
399
- zone=default["zone"],
400
- name=default["name"],
416
+ member = gcp.compute.RegionDiskIamMember("member",
417
+ project=regiondisk["project"],
418
+ region=regiondisk["region"],
419
+ name=regiondisk["name"],
401
420
  role="roles/viewer",
402
421
  member="user:jane@example.com")
403
422
  ```
404
423
 
405
- ## compute.DiskIamPolicy
424
+ ## compute.RegionDiskIamPolicy
406
425
 
407
426
  ```python
408
427
  import pulumi
@@ -412,37 +431,37 @@ class RegionDiskIamPolicy(pulumi.CustomResource):
412
431
  "role": "roles/viewer",
413
432
  "members": ["user:jane@example.com"],
414
433
  }])
415
- policy = gcp.compute.DiskIamPolicy("policy",
416
- project=default["project"],
417
- zone=default["zone"],
418
- name=default["name"],
434
+ policy = gcp.compute.RegionDiskIamPolicy("policy",
435
+ project=regiondisk["project"],
436
+ region=regiondisk["region"],
437
+ name=regiondisk["name"],
419
438
  policy_data=admin.policy_data)
420
439
  ```
421
440
 
422
- ## compute.DiskIamBinding
441
+ ## compute.RegionDiskIamBinding
423
442
 
424
443
  ```python
425
444
  import pulumi
426
445
  import pulumi_gcp as gcp
427
446
 
428
- binding = gcp.compute.DiskIamBinding("binding",
429
- project=default["project"],
430
- zone=default["zone"],
431
- name=default["name"],
447
+ binding = gcp.compute.RegionDiskIamBinding("binding",
448
+ project=regiondisk["project"],
449
+ region=regiondisk["region"],
450
+ name=regiondisk["name"],
432
451
  role="roles/viewer",
433
452
  members=["user:jane@example.com"])
434
453
  ```
435
454
 
436
- ## compute.DiskIamMember
455
+ ## compute.RegionDiskIamMember
437
456
 
438
457
  ```python
439
458
  import pulumi
440
459
  import pulumi_gcp as gcp
441
460
 
442
- member = gcp.compute.DiskIamMember("member",
443
- project=default["project"],
444
- zone=default["zone"],
445
- name=default["name"],
461
+ member = gcp.compute.RegionDiskIamMember("member",
462
+ project=regiondisk["project"],
463
+ region=regiondisk["region"],
464
+ name=regiondisk["name"],
446
465
  role="roles/viewer",
447
466
  member="user:jane@example.com")
448
467
  ```
@@ -451,34 +470,34 @@ class RegionDiskIamPolicy(pulumi.CustomResource):
451
470
 
452
471
  For all import syntaxes, the "resource in question" can take any of the following forms:
453
472
 
454
- * projects/{{project}}/zones/{{zone}}/disks/{{name}}
473
+ * projects/{{project}}/regions/{{region}}/disks/{{name}}
455
474
 
456
- * {{project}}/{{zone}}/{{name}}
475
+ * {{project}}/{{region}}/{{name}}
457
476
 
458
- * {{zone}}/{{name}}
477
+ * {{region}}/{{name}}
459
478
 
460
479
  * {{name}}
461
480
 
462
481
  Any variables not passed in the import command will be taken from the provider configuration.
463
482
 
464
- Compute Engine disk IAM resources can be imported using the resource identifiers, role, and member.
483
+ Compute Engine regiondisk IAM resources can be imported using the resource identifiers, role, and member.
465
484
 
466
485
  IAM member imports use space-delimited identifiers: the resource in question, the role, and the member identity, e.g.
467
486
 
468
487
  ```sh
469
- $ pulumi import gcp:compute/regionDiskIamPolicy:RegionDiskIamPolicy editor "projects/{{project}}/zones/{{zone}}/disks/{{disk}} roles/viewer user:jane@example.com"
488
+ $ pulumi import gcp:compute/regionDiskIamPolicy:RegionDiskIamPolicy editor "projects/{{project}}/regions/{{region}}/disks/{{region_disk}} roles/viewer user:jane@example.com"
470
489
  ```
471
490
 
472
491
  IAM binding imports use space-delimited identifiers: the resource in question and the role, e.g.
473
492
 
474
493
  ```sh
475
- $ pulumi import gcp:compute/regionDiskIamPolicy:RegionDiskIamPolicy editor "projects/{{project}}/zones/{{zone}}/disks/{{disk}} roles/viewer"
494
+ $ pulumi import gcp:compute/regionDiskIamPolicy:RegionDiskIamPolicy editor "projects/{{project}}/regions/{{region}}/disks/{{region_disk}} roles/viewer"
476
495
  ```
477
496
 
478
497
  IAM policy imports use the identifier of the resource in question, e.g.
479
498
 
480
499
  ```sh
481
- $ pulumi import gcp:compute/regionDiskIamPolicy:RegionDiskIamPolicy editor projects/{{project}}/zones/{{zone}}/disks/{{disk}}
500
+ $ pulumi import gcp:compute/regionDiskIamPolicy:RegionDiskIamPolicy editor projects/{{project}}/regions/{{region}}/disks/{{region_disk}}
482
501
  ```
483
502
 
484
503
  -> **Custom Roles**: If you're importing a IAM resource with a custom role, make sure to use the
@@ -548,6 +567,9 @@ class RegionDiskIamPolicy(pulumi.CustomResource):
548
567
  a `organizations_get_iam_policy` data source.
549
568
  :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
550
569
  If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
570
+ :param pulumi.Input[str] region: A reference to the region where the disk resides. Used to find the parent resource to bind the IAM policy to. If not specified,
571
+ the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
572
+ region is specified, it is taken from the provider configuration.
551
573
  """
552
574
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
553
575
 
@@ -597,5 +619,10 @@ class RegionDiskIamPolicy(pulumi.CustomResource):
597
619
  @property
598
620
  @pulumi.getter
599
621
  def region(self) -> pulumi.Output[str]:
622
+ """
623
+ A reference to the region where the disk resides. Used to find the parent resource to bind the IAM policy to. If not specified,
624
+ the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
625
+ region is specified, it is taken from the provider configuration.
626
+ """
600
627
  return pulumi.get(self, "region")
601
628