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.
@@ -39,8 +39,9 @@ class RepositoryIamBindingArgs:
39
39
  * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
40
40
  * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
41
41
  * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
42
+ :param pulumi.Input[str] repository: Used to find the parent resource to bind the IAM policy to
42
43
  :param pulumi.Input[str] role: The role that should be applied. Only one
43
- `pubsub.TopicIAMBinding` can be used per role. Note that custom roles must be of the format
44
+ `sourcerepo.RepositoryIamBinding` can be used per role. Note that custom roles must be of the format
44
45
  `[projects|organizations]/{parent-name}/roles/{role-name}`.
45
46
  :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
46
47
  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.
@@ -78,6 +79,9 @@ class RepositoryIamBindingArgs:
78
79
  @property
79
80
  @pulumi.getter
80
81
  def repository(self) -> pulumi.Input[str]:
82
+ """
83
+ Used to find the parent resource to bind the IAM policy to
84
+ """
81
85
  return pulumi.get(self, "repository")
82
86
 
83
87
  @repository.setter
@@ -89,7 +93,7 @@ class RepositoryIamBindingArgs:
89
93
  def role(self) -> pulumi.Input[str]:
90
94
  """
91
95
  The role that should be applied. Only one
92
- `pubsub.TopicIAMBinding` can be used per role. Note that custom roles must be of the format
96
+ `sourcerepo.RepositoryIamBinding` can be used per role. Note that custom roles must be of the format
93
97
  `[projects|organizations]/{parent-name}/roles/{role-name}`.
94
98
  """
95
99
  return pulumi.get(self, "role")
@@ -146,8 +150,9 @@ class _RepositoryIamBindingState:
146
150
  * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
147
151
  :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
148
152
  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.
153
+ :param pulumi.Input[str] repository: Used to find the parent resource to bind the IAM policy to
149
154
  :param pulumi.Input[str] role: The role that should be applied. Only one
150
- `pubsub.TopicIAMBinding` can be used per role. Note that custom roles must be of the format
155
+ `sourcerepo.RepositoryIamBinding` can be used per role. Note that custom roles must be of the format
151
156
  `[projects|organizations]/{parent-name}/roles/{role-name}`.
152
157
  """
153
158
  if condition is not None:
@@ -222,6 +227,9 @@ class _RepositoryIamBindingState:
222
227
  @property
223
228
  @pulumi.getter
224
229
  def repository(self) -> Optional[pulumi.Input[str]]:
230
+ """
231
+ Used to find the parent resource to bind the IAM policy to
232
+ """
225
233
  return pulumi.get(self, "repository")
226
234
 
227
235
  @repository.setter
@@ -233,7 +241,7 @@ class _RepositoryIamBindingState:
233
241
  def role(self) -> Optional[pulumi.Input[str]]:
234
242
  """
235
243
  The role that should be applied. Only one
236
- `pubsub.TopicIAMBinding` can be used per role. Note that custom roles must be of the format
244
+ `sourcerepo.RepositoryIamBinding` can be used per role. Note that custom roles must be of the format
237
245
  `[projects|organizations]/{parent-name}/roles/{role-name}`.
238
246
  """
239
247
  return pulumi.get(self, "role")
@@ -255,21 +263,21 @@ class RepositoryIamBinding(pulumi.CustomResource):
255
263
  role: Optional[pulumi.Input[str]] = None,
256
264
  __props__=None):
257
265
  """
258
- Three different resources help you manage your IAM policy for Cloud Pub/Sub Topic. Each of these resources serves a different use case:
266
+ Three different resources help you manage your IAM policy for Cloud Source Repositories Repository. Each of these resources serves a different use case:
259
267
 
260
- * `pubsub.TopicIAMPolicy`: Authoritative. Sets the IAM policy for the topic and replaces any existing policy already attached.
261
- * `pubsub.TopicIAMBinding`: 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 topic are preserved.
262
- * `pubsub.TopicIAMMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the topic are preserved.
268
+ * `sourcerepo.RepositoryIamPolicy`: Authoritative. Sets the IAM policy for the repository and replaces any existing policy already attached.
269
+ * `sourcerepo.RepositoryIamBinding`: 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 repository are preserved.
270
+ * `sourcerepo.RepositoryIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the repository are preserved.
263
271
 
264
272
  A data source can be used to retrieve policy data in advent you do not need creation
265
273
 
266
- * `pubsub.TopicIAMPolicy`: Retrieves the IAM policy for the topic
274
+ * `sourcerepo.RepositoryIamPolicy`: Retrieves the IAM policy for the repository
267
275
 
268
- > **Note:** `pubsub.TopicIAMPolicy` **cannot** be used in conjunction with `pubsub.TopicIAMBinding` and `pubsub.TopicIAMMember` or they will fight over what your policy should be.
276
+ > **Note:** `sourcerepo.RepositoryIamPolicy` **cannot** be used in conjunction with `sourcerepo.RepositoryIamBinding` and `sourcerepo.RepositoryIamMember` or they will fight over what your policy should be.
269
277
 
270
- > **Note:** `pubsub.TopicIAMBinding` resources **can be** used in conjunction with `pubsub.TopicIAMMember` resources **only if** they do not grant privilege to the same role.
278
+ > **Note:** `sourcerepo.RepositoryIamBinding` resources **can be** used in conjunction with `sourcerepo.RepositoryIamMember` resources **only if** they do not grant privilege to the same role.
271
279
 
272
- ## pubsub.TopicIAMPolicy
280
+ ## sourcerepo.RepositoryIamPolicy
273
281
 
274
282
  ```python
275
283
  import pulumi
@@ -279,39 +287,39 @@ class RepositoryIamBinding(pulumi.CustomResource):
279
287
  "role": "roles/viewer",
280
288
  "members": ["user:jane@example.com"],
281
289
  }])
282
- policy = gcp.pubsub.TopicIAMPolicy("policy",
283
- project=example["project"],
284
- topic=example["name"],
290
+ policy = gcp.sourcerepo.RepositoryIamPolicy("policy",
291
+ project=my_repo["project"],
292
+ repository=my_repo["name"],
285
293
  policy_data=admin.policy_data)
286
294
  ```
287
295
 
288
- ## pubsub.TopicIAMBinding
296
+ ## sourcerepo.RepositoryIamBinding
289
297
 
290
298
  ```python
291
299
  import pulumi
292
300
  import pulumi_gcp as gcp
293
301
 
294
- binding = gcp.pubsub.TopicIAMBinding("binding",
295
- project=example["project"],
296
- topic=example["name"],
302
+ binding = gcp.sourcerepo.RepositoryIamBinding("binding",
303
+ project=my_repo["project"],
304
+ repository=my_repo["name"],
297
305
  role="roles/viewer",
298
306
  members=["user:jane@example.com"])
299
307
  ```
300
308
 
301
- ## pubsub.TopicIAMMember
309
+ ## sourcerepo.RepositoryIamMember
302
310
 
303
311
  ```python
304
312
  import pulumi
305
313
  import pulumi_gcp as gcp
306
314
 
307
- member = gcp.pubsub.TopicIAMMember("member",
308
- project=example["project"],
309
- topic=example["name"],
315
+ member = gcp.sourcerepo.RepositoryIamMember("member",
316
+ project=my_repo["project"],
317
+ repository=my_repo["name"],
310
318
  role="roles/viewer",
311
319
  member="user:jane@example.com")
312
320
  ```
313
321
 
314
- ## pubsub.TopicIAMPolicy
322
+ ## sourcerepo.RepositoryIamPolicy
315
323
 
316
324
  ```python
317
325
  import pulumi
@@ -321,34 +329,34 @@ class RepositoryIamBinding(pulumi.CustomResource):
321
329
  "role": "roles/viewer",
322
330
  "members": ["user:jane@example.com"],
323
331
  }])
324
- policy = gcp.pubsub.TopicIAMPolicy("policy",
325
- project=example["project"],
326
- topic=example["name"],
332
+ policy = gcp.sourcerepo.RepositoryIamPolicy("policy",
333
+ project=my_repo["project"],
334
+ repository=my_repo["name"],
327
335
  policy_data=admin.policy_data)
328
336
  ```
329
337
 
330
- ## pubsub.TopicIAMBinding
338
+ ## sourcerepo.RepositoryIamBinding
331
339
 
332
340
  ```python
333
341
  import pulumi
334
342
  import pulumi_gcp as gcp
335
343
 
336
- binding = gcp.pubsub.TopicIAMBinding("binding",
337
- project=example["project"],
338
- topic=example["name"],
344
+ binding = gcp.sourcerepo.RepositoryIamBinding("binding",
345
+ project=my_repo["project"],
346
+ repository=my_repo["name"],
339
347
  role="roles/viewer",
340
348
  members=["user:jane@example.com"])
341
349
  ```
342
350
 
343
- ## pubsub.TopicIAMMember
351
+ ## sourcerepo.RepositoryIamMember
344
352
 
345
353
  ```python
346
354
  import pulumi
347
355
  import pulumi_gcp as gcp
348
356
 
349
- member = gcp.pubsub.TopicIAMMember("member",
350
- project=example["project"],
351
- topic=example["name"],
357
+ member = gcp.sourcerepo.RepositoryIamMember("member",
358
+ project=my_repo["project"],
359
+ repository=my_repo["name"],
352
360
  role="roles/viewer",
353
361
  member="user:jane@example.com")
354
362
  ```
@@ -357,32 +365,30 @@ class RepositoryIamBinding(pulumi.CustomResource):
357
365
 
358
366
  For all import syntaxes, the "resource in question" can take any of the following forms:
359
367
 
360
- * projects/{{project}}/topics/{{name}}
361
-
362
- * {{project}}/{{name}}
368
+ * projects/{{project}}/repos/{{name}}
363
369
 
364
370
  * {{name}}
365
371
 
366
372
  Any variables not passed in the import command will be taken from the provider configuration.
367
373
 
368
- Cloud Pub/Sub topic IAM resources can be imported using the resource identifiers, role, and member.
374
+ Cloud Source Repositories repository IAM resources can be imported using the resource identifiers, role, and member.
369
375
 
370
376
  IAM member imports use space-delimited identifiers: the resource in question, the role, and the member identity, e.g.
371
377
 
372
378
  ```sh
373
- $ pulumi import gcp:sourcerepo/repositoryIamBinding:RepositoryIamBinding editor "projects/{{project}}/topics/{{topic}} roles/viewer user:jane@example.com"
379
+ $ pulumi import gcp:sourcerepo/repositoryIamBinding:RepositoryIamBinding editor "projects/{{project}}/repos/{{repository}} roles/viewer user:jane@example.com"
374
380
  ```
375
381
 
376
382
  IAM binding imports use space-delimited identifiers: the resource in question and the role, e.g.
377
383
 
378
384
  ```sh
379
- $ pulumi import gcp:sourcerepo/repositoryIamBinding:RepositoryIamBinding editor "projects/{{project}}/topics/{{topic}} roles/viewer"
385
+ $ pulumi import gcp:sourcerepo/repositoryIamBinding:RepositoryIamBinding editor "projects/{{project}}/repos/{{repository}} roles/viewer"
380
386
  ```
381
387
 
382
388
  IAM policy imports use the identifier of the resource in question, e.g.
383
389
 
384
390
  ```sh
385
- $ pulumi import gcp:sourcerepo/repositoryIamBinding:RepositoryIamBinding editor projects/{{project}}/topics/{{topic}}
391
+ $ pulumi import gcp:sourcerepo/repositoryIamBinding:RepositoryIamBinding editor projects/{{project}}/repos/{{repository}}
386
392
  ```
387
393
 
388
394
  -> **Custom Roles**: If you're importing a IAM resource with a custom role, make sure to use the
@@ -404,8 +410,9 @@ class RepositoryIamBinding(pulumi.CustomResource):
404
410
  * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
405
411
  :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
406
412
  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.
413
+ :param pulumi.Input[str] repository: Used to find the parent resource to bind the IAM policy to
407
414
  :param pulumi.Input[str] role: The role that should be applied. Only one
408
- `pubsub.TopicIAMBinding` can be used per role. Note that custom roles must be of the format
415
+ `sourcerepo.RepositoryIamBinding` can be used per role. Note that custom roles must be of the format
409
416
  `[projects|organizations]/{parent-name}/roles/{role-name}`.
410
417
  """
411
418
  ...
@@ -415,21 +422,21 @@ class RepositoryIamBinding(pulumi.CustomResource):
415
422
  args: RepositoryIamBindingArgs,
416
423
  opts: Optional[pulumi.ResourceOptions] = None):
417
424
  """
418
- Three different resources help you manage your IAM policy for Cloud Pub/Sub Topic. Each of these resources serves a different use case:
425
+ Three different resources help you manage your IAM policy for Cloud Source Repositories Repository. Each of these resources serves a different use case:
419
426
 
420
- * `pubsub.TopicIAMPolicy`: Authoritative. Sets the IAM policy for the topic and replaces any existing policy already attached.
421
- * `pubsub.TopicIAMBinding`: 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 topic are preserved.
422
- * `pubsub.TopicIAMMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the topic are preserved.
427
+ * `sourcerepo.RepositoryIamPolicy`: Authoritative. Sets the IAM policy for the repository and replaces any existing policy already attached.
428
+ * `sourcerepo.RepositoryIamBinding`: 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 repository are preserved.
429
+ * `sourcerepo.RepositoryIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the repository are preserved.
423
430
 
424
431
  A data source can be used to retrieve policy data in advent you do not need creation
425
432
 
426
- * `pubsub.TopicIAMPolicy`: Retrieves the IAM policy for the topic
433
+ * `sourcerepo.RepositoryIamPolicy`: Retrieves the IAM policy for the repository
427
434
 
428
- > **Note:** `pubsub.TopicIAMPolicy` **cannot** be used in conjunction with `pubsub.TopicIAMBinding` and `pubsub.TopicIAMMember` or they will fight over what your policy should be.
435
+ > **Note:** `sourcerepo.RepositoryIamPolicy` **cannot** be used in conjunction with `sourcerepo.RepositoryIamBinding` and `sourcerepo.RepositoryIamMember` or they will fight over what your policy should be.
429
436
 
430
- > **Note:** `pubsub.TopicIAMBinding` resources **can be** used in conjunction with `pubsub.TopicIAMMember` resources **only if** they do not grant privilege to the same role.
437
+ > **Note:** `sourcerepo.RepositoryIamBinding` resources **can be** used in conjunction with `sourcerepo.RepositoryIamMember` resources **only if** they do not grant privilege to the same role.
431
438
 
432
- ## pubsub.TopicIAMPolicy
439
+ ## sourcerepo.RepositoryIamPolicy
433
440
 
434
441
  ```python
435
442
  import pulumi
@@ -439,39 +446,39 @@ class RepositoryIamBinding(pulumi.CustomResource):
439
446
  "role": "roles/viewer",
440
447
  "members": ["user:jane@example.com"],
441
448
  }])
442
- policy = gcp.pubsub.TopicIAMPolicy("policy",
443
- project=example["project"],
444
- topic=example["name"],
449
+ policy = gcp.sourcerepo.RepositoryIamPolicy("policy",
450
+ project=my_repo["project"],
451
+ repository=my_repo["name"],
445
452
  policy_data=admin.policy_data)
446
453
  ```
447
454
 
448
- ## pubsub.TopicIAMBinding
455
+ ## sourcerepo.RepositoryIamBinding
449
456
 
450
457
  ```python
451
458
  import pulumi
452
459
  import pulumi_gcp as gcp
453
460
 
454
- binding = gcp.pubsub.TopicIAMBinding("binding",
455
- project=example["project"],
456
- topic=example["name"],
461
+ binding = gcp.sourcerepo.RepositoryIamBinding("binding",
462
+ project=my_repo["project"],
463
+ repository=my_repo["name"],
457
464
  role="roles/viewer",
458
465
  members=["user:jane@example.com"])
459
466
  ```
460
467
 
461
- ## pubsub.TopicIAMMember
468
+ ## sourcerepo.RepositoryIamMember
462
469
 
463
470
  ```python
464
471
  import pulumi
465
472
  import pulumi_gcp as gcp
466
473
 
467
- member = gcp.pubsub.TopicIAMMember("member",
468
- project=example["project"],
469
- topic=example["name"],
474
+ member = gcp.sourcerepo.RepositoryIamMember("member",
475
+ project=my_repo["project"],
476
+ repository=my_repo["name"],
470
477
  role="roles/viewer",
471
478
  member="user:jane@example.com")
472
479
  ```
473
480
 
474
- ## pubsub.TopicIAMPolicy
481
+ ## sourcerepo.RepositoryIamPolicy
475
482
 
476
483
  ```python
477
484
  import pulumi
@@ -481,34 +488,34 @@ class RepositoryIamBinding(pulumi.CustomResource):
481
488
  "role": "roles/viewer",
482
489
  "members": ["user:jane@example.com"],
483
490
  }])
484
- policy = gcp.pubsub.TopicIAMPolicy("policy",
485
- project=example["project"],
486
- topic=example["name"],
491
+ policy = gcp.sourcerepo.RepositoryIamPolicy("policy",
492
+ project=my_repo["project"],
493
+ repository=my_repo["name"],
487
494
  policy_data=admin.policy_data)
488
495
  ```
489
496
 
490
- ## pubsub.TopicIAMBinding
497
+ ## sourcerepo.RepositoryIamBinding
491
498
 
492
499
  ```python
493
500
  import pulumi
494
501
  import pulumi_gcp as gcp
495
502
 
496
- binding = gcp.pubsub.TopicIAMBinding("binding",
497
- project=example["project"],
498
- topic=example["name"],
503
+ binding = gcp.sourcerepo.RepositoryIamBinding("binding",
504
+ project=my_repo["project"],
505
+ repository=my_repo["name"],
499
506
  role="roles/viewer",
500
507
  members=["user:jane@example.com"])
501
508
  ```
502
509
 
503
- ## pubsub.TopicIAMMember
510
+ ## sourcerepo.RepositoryIamMember
504
511
 
505
512
  ```python
506
513
  import pulumi
507
514
  import pulumi_gcp as gcp
508
515
 
509
- member = gcp.pubsub.TopicIAMMember("member",
510
- project=example["project"],
511
- topic=example["name"],
516
+ member = gcp.sourcerepo.RepositoryIamMember("member",
517
+ project=my_repo["project"],
518
+ repository=my_repo["name"],
512
519
  role="roles/viewer",
513
520
  member="user:jane@example.com")
514
521
  ```
@@ -517,32 +524,30 @@ class RepositoryIamBinding(pulumi.CustomResource):
517
524
 
518
525
  For all import syntaxes, the "resource in question" can take any of the following forms:
519
526
 
520
- * projects/{{project}}/topics/{{name}}
521
-
522
- * {{project}}/{{name}}
527
+ * projects/{{project}}/repos/{{name}}
523
528
 
524
529
  * {{name}}
525
530
 
526
531
  Any variables not passed in the import command will be taken from the provider configuration.
527
532
 
528
- Cloud Pub/Sub topic IAM resources can be imported using the resource identifiers, role, and member.
533
+ Cloud Source Repositories repository IAM resources can be imported using the resource identifiers, role, and member.
529
534
 
530
535
  IAM member imports use space-delimited identifiers: the resource in question, the role, and the member identity, e.g.
531
536
 
532
537
  ```sh
533
- $ pulumi import gcp:sourcerepo/repositoryIamBinding:RepositoryIamBinding editor "projects/{{project}}/topics/{{topic}} roles/viewer user:jane@example.com"
538
+ $ pulumi import gcp:sourcerepo/repositoryIamBinding:RepositoryIamBinding editor "projects/{{project}}/repos/{{repository}} roles/viewer user:jane@example.com"
534
539
  ```
535
540
 
536
541
  IAM binding imports use space-delimited identifiers: the resource in question and the role, e.g.
537
542
 
538
543
  ```sh
539
- $ pulumi import gcp:sourcerepo/repositoryIamBinding:RepositoryIamBinding editor "projects/{{project}}/topics/{{topic}} roles/viewer"
544
+ $ pulumi import gcp:sourcerepo/repositoryIamBinding:RepositoryIamBinding editor "projects/{{project}}/repos/{{repository}} roles/viewer"
540
545
  ```
541
546
 
542
547
  IAM policy imports use the identifier of the resource in question, e.g.
543
548
 
544
549
  ```sh
545
- $ pulumi import gcp:sourcerepo/repositoryIamBinding:RepositoryIamBinding editor projects/{{project}}/topics/{{topic}}
550
+ $ pulumi import gcp:sourcerepo/repositoryIamBinding:RepositoryIamBinding editor projects/{{project}}/repos/{{repository}}
546
551
  ```
547
552
 
548
553
  -> **Custom Roles**: If you're importing a IAM resource with a custom role, make sure to use the
@@ -627,8 +632,9 @@ class RepositoryIamBinding(pulumi.CustomResource):
627
632
  * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
628
633
  :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
629
634
  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.
635
+ :param pulumi.Input[str] repository: Used to find the parent resource to bind the IAM policy to
630
636
  :param pulumi.Input[str] role: The role that should be applied. Only one
631
- `pubsub.TopicIAMBinding` can be used per role. Note that custom roles must be of the format
637
+ `sourcerepo.RepositoryIamBinding` can be used per role. Note that custom roles must be of the format
632
638
  `[projects|organizations]/{parent-name}/roles/{role-name}`.
633
639
  """
634
640
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
@@ -686,6 +692,9 @@ class RepositoryIamBinding(pulumi.CustomResource):
686
692
  @property
687
693
  @pulumi.getter
688
694
  def repository(self) -> pulumi.Output[str]:
695
+ """
696
+ Used to find the parent resource to bind the IAM policy to
697
+ """
689
698
  return pulumi.get(self, "repository")
690
699
 
691
700
  @property
@@ -693,7 +702,7 @@ class RepositoryIamBinding(pulumi.CustomResource):
693
702
  def role(self) -> pulumi.Output[str]:
694
703
  """
695
704
  The role that should be applied. Only one
696
- `pubsub.TopicIAMBinding` can be used per role. Note that custom roles must be of the format
705
+ `sourcerepo.RepositoryIamBinding` can be used per role. Note that custom roles must be of the format
697
706
  `[projects|organizations]/{parent-name}/roles/{role-name}`.
698
707
  """
699
708
  return pulumi.get(self, "role")