google-apis-dns_v1beta2 0.20.0 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d853a82212ade653db082ec5540785f9ee0c832efad318734e0196052c65f1c9
4
- data.tar.gz: abac7612f50f496121c1794c4cbf89b2a14f7ce94a86d94b08b92c3a29b5d4cf
3
+ metadata.gz: d1f588b5667ed070fb935251e5211c057aab1b1d421cf411d834f5c62941d96f
4
+ data.tar.gz: ea45de78c3d3ac494dbeaa7e81048f3aad89ecfb94e67989b393a50a8623e9d3
5
5
  SHA512:
6
- metadata.gz: 2f124ac93b13b739fb29e336824515ac7d924f791b7c3aa59ec15b41f4cb088a1bfee4cfa620dfb2d19b143e3db91ca712c766f8bda3f63aec3f5a5e5dfefa2a
7
- data.tar.gz: d8f6360e18eb5c34f4065de51c792437fe17d6fa74823e408d33402ccebc1ef11dad6cf70a3f29082f8dfe716a97b677675103bea7a803afc01a15ff68a0d1cd
6
+ metadata.gz: a545a3f01bd16adc9e1077a76a25d09204b51f56d800084cc355e0b66801820c3366cd5c170cecdd71d9f86e2ef5c43f2803117b9a755b0065bb5f77c9ebbaed
7
+ data.tar.gz: b26e8de0e471791ff3139f4b1281ecfd403614bbd7fdadaa05cd61998014807de998e32f74e667dab458e831757522eb20649d797bca0f22396b883994ac2867
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-dns_v1beta2
2
2
 
3
+ ### v0.21.0 (2022-05-17)
4
+
5
+ * Regenerated from discovery document revision 20220511
6
+
3
7
  ### v0.20.0 (2022-02-01)
4
8
 
5
9
  * Regenerated from discovery document revision 20220127
@@ -340,6 +340,437 @@ module Google
340
340
  end
341
341
  end
342
342
 
343
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
344
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
345
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
346
+ # "Summary size limit" description: "Determines if a summary is less than 100
347
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
348
+ # Requestor is owner" description: "Determines if requestor is the document
349
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
350
+ # Logic): title: "Public documents" description: "Determine whether the document
351
+ # should be publicly visible" expression: "document.type != 'private' &&
352
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
353
+ # string" description: "Create a notification string with a timestamp."
354
+ # expression: "'New message received at ' + string(document.create_time)" The
355
+ # exact variables and functions that may be referenced within an expression are
356
+ # determined by the service that evaluates it. See the service documentation for
357
+ # additional information.
358
+ class Expr
359
+ include Google::Apis::Core::Hashable
360
+
361
+ # Optional. Description of the expression. This is a longer text which describes
362
+ # the expression, e.g. when hovered over it in a UI.
363
+ # Corresponds to the JSON property `description`
364
+ # @return [String]
365
+ attr_accessor :description
366
+
367
+ # Textual representation of an expression in Common Expression Language syntax.
368
+ # Corresponds to the JSON property `expression`
369
+ # @return [String]
370
+ attr_accessor :expression
371
+
372
+ # Optional. String indicating the location of the expression for error reporting,
373
+ # e.g. a file name and a position in the file.
374
+ # Corresponds to the JSON property `location`
375
+ # @return [String]
376
+ attr_accessor :location
377
+
378
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
379
+ # This can be used e.g. in UIs which allow to enter the expression.
380
+ # Corresponds to the JSON property `title`
381
+ # @return [String]
382
+ attr_accessor :title
383
+
384
+ def initialize(**args)
385
+ update!(**args)
386
+ end
387
+
388
+ # Update properties of this object
389
+ def update!(**args)
390
+ @description = args[:description] if args.key?(:description)
391
+ @expression = args[:expression] if args.key?(:expression)
392
+ @location = args[:location] if args.key?(:location)
393
+ @title = args[:title] if args.key?(:title)
394
+ end
395
+ end
396
+
397
+ # Specifies the audit configuration for a service. The configuration determines
398
+ # which permission types are logged, and what identities, if any, are exempted
399
+ # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
400
+ # are AuditConfigs for both `allServices` and a specific service, the union of
401
+ # the two AuditConfigs is used for that service: the log_types specified in each
402
+ # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
403
+ # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
404
+ # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
405
+ # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
406
+ # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
407
+ # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
408
+ # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
409
+ # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
410
+ # exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com`
411
+ # from DATA_WRITE logging.
412
+ class GoogleIamV1AuditConfig
413
+ include Google::Apis::Core::Hashable
414
+
415
+ # The configuration for logging of each type of permission.
416
+ # Corresponds to the JSON property `auditLogConfigs`
417
+ # @return [Array<Google::Apis::DnsV1beta2::GoogleIamV1AuditLogConfig>]
418
+ attr_accessor :audit_log_configs
419
+
420
+ # Specifies a service that will be enabled for audit logging. For example, `
421
+ # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
422
+ # value that covers all services.
423
+ # Corresponds to the JSON property `service`
424
+ # @return [String]
425
+ attr_accessor :service
426
+
427
+ def initialize(**args)
428
+ update!(**args)
429
+ end
430
+
431
+ # Update properties of this object
432
+ def update!(**args)
433
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
434
+ @service = args[:service] if args.key?(:service)
435
+ end
436
+ end
437
+
438
+ # Provides the configuration for logging a type of permissions. Example: ` "
439
+ # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
440
+ # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
441
+ # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
442
+ # DATA_READ logging.
443
+ class GoogleIamV1AuditLogConfig
444
+ include Google::Apis::Core::Hashable
445
+
446
+ # Specifies the identities that do not cause logging for this type of permission.
447
+ # Follows the same format of Binding.members.
448
+ # Corresponds to the JSON property `exemptedMembers`
449
+ # @return [Array<String>]
450
+ attr_accessor :exempted_members
451
+
452
+ # The log type that this config enables.
453
+ # Corresponds to the JSON property `logType`
454
+ # @return [String]
455
+ attr_accessor :log_type
456
+
457
+ def initialize(**args)
458
+ update!(**args)
459
+ end
460
+
461
+ # Update properties of this object
462
+ def update!(**args)
463
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
464
+ @log_type = args[:log_type] if args.key?(:log_type)
465
+ end
466
+ end
467
+
468
+ # Associates `members`, or principals, with a `role`.
469
+ class GoogleIamV1Binding
470
+ include Google::Apis::Core::Hashable
471
+
472
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
473
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
474
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
475
+ # "Summary size limit" description: "Determines if a summary is less than 100
476
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
477
+ # Requestor is owner" description: "Determines if requestor is the document
478
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
479
+ # Logic): title: "Public documents" description: "Determine whether the document
480
+ # should be publicly visible" expression: "document.type != 'private' &&
481
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
482
+ # string" description: "Create a notification string with a timestamp."
483
+ # expression: "'New message received at ' + string(document.create_time)" The
484
+ # exact variables and functions that may be referenced within an expression are
485
+ # determined by the service that evaluates it. See the service documentation for
486
+ # additional information.
487
+ # Corresponds to the JSON property `condition`
488
+ # @return [Google::Apis::DnsV1beta2::Expr]
489
+ attr_accessor :condition
490
+
491
+ # Specifies the principals requesting access for a Google Cloud resource. `
492
+ # members` can have the following values: * `allUsers`: A special identifier
493
+ # that represents anyone who is on the internet; with or without a Google
494
+ # account. * `allAuthenticatedUsers`: A special identifier that represents
495
+ # anyone who is authenticated with a Google account or a service account. * `
496
+ # user:`emailid``: An email address that represents a specific Google account.
497
+ # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
498
+ # address that represents a service account. For example, `my-other-app@appspot.
499
+ # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
500
+ # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
501
+ # `uniqueid``: An email address (plus unique identifier) representing a user
502
+ # that has been recently deleted. For example, `alice@example.com?uid=
503
+ # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
504
+ # emailid`` and the recovered user retains the role in the binding. * `deleted:
505
+ # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
506
+ # identifier) representing a service account that has been recently deleted. For
507
+ # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
508
+ # If the service account is undeleted, this value reverts to `serviceAccount:`
509
+ # emailid`` and the undeleted service account retains the role in the binding. *
510
+ # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
511
+ # identifier) representing a Google group that has been recently deleted. For
512
+ # example, `admins@example.com?uid=123456789012345678901`. If the group is
513
+ # recovered, this value reverts to `group:`emailid`` and the recovered group
514
+ # retains the role in the binding. * `domain:`domain``: The G Suite domain (
515
+ # primary) that represents all the users of that domain. For example, `google.
516
+ # com` or `example.com`.
517
+ # Corresponds to the JSON property `members`
518
+ # @return [Array<String>]
519
+ attr_accessor :members
520
+
521
+ # Role that is assigned to the list of `members`, or principals. For example, `
522
+ # roles/viewer`, `roles/editor`, or `roles/owner`.
523
+ # Corresponds to the JSON property `role`
524
+ # @return [String]
525
+ attr_accessor :role
526
+
527
+ def initialize(**args)
528
+ update!(**args)
529
+ end
530
+
531
+ # Update properties of this object
532
+ def update!(**args)
533
+ @condition = args[:condition] if args.key?(:condition)
534
+ @members = args[:members] if args.key?(:members)
535
+ @role = args[:role] if args.key?(:role)
536
+ end
537
+ end
538
+
539
+ # Request message for `GetIamPolicy` method.
540
+ class GoogleIamV1GetIamPolicyRequest
541
+ include Google::Apis::Core::Hashable
542
+
543
+ # Encapsulates settings provided to GetIamPolicy.
544
+ # Corresponds to the JSON property `options`
545
+ # @return [Google::Apis::DnsV1beta2::GoogleIamV1GetPolicyOptions]
546
+ attr_accessor :options
547
+
548
+ def initialize(**args)
549
+ update!(**args)
550
+ end
551
+
552
+ # Update properties of this object
553
+ def update!(**args)
554
+ @options = args[:options] if args.key?(:options)
555
+ end
556
+ end
557
+
558
+ # Encapsulates settings provided to GetIamPolicy.
559
+ class GoogleIamV1GetPolicyOptions
560
+ include Google::Apis::Core::Hashable
561
+
562
+ # Optional. The maximum policy version that will be used to format the policy.
563
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
564
+ # rejected. Requests for policies with any conditional role bindings must
565
+ # specify version 3. Policies with no conditional role bindings may specify any
566
+ # valid value or leave the field unset. The policy in the response might use the
567
+ # policy version that you specified, or it might use a lower policy version. For
568
+ # example, if you specify version 3, but the policy has no conditional role
569
+ # bindings, the response uses version 1. To learn which resources support
570
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
571
+ # google.com/iam/help/conditions/resource-policies).
572
+ # Corresponds to the JSON property `requestedPolicyVersion`
573
+ # @return [Fixnum]
574
+ attr_accessor :requested_policy_version
575
+
576
+ def initialize(**args)
577
+ update!(**args)
578
+ end
579
+
580
+ # Update properties of this object
581
+ def update!(**args)
582
+ @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version)
583
+ end
584
+ end
585
+
586
+ # An Identity and Access Management (IAM) policy, which specifies access
587
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
588
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
589
+ # Principals can be user accounts, service accounts, Google groups, and domains (
590
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
591
+ # an IAM predefined role or a user-created custom role. For some types of Google
592
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
593
+ # logical expression that allows access to a resource only if the expression
594
+ # evaluates to `true`. A condition can add constraints based on attributes of
595
+ # the request, the resource, or both. To learn which resources support
596
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
597
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
598
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
599
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
600
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
601
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
602
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
603
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
604
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
605
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
606
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
607
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
608
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
609
+ # access description: Does not grant access after Sep 2020 expression: request.
610
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
611
+ # a description of IAM and its features, see the [IAM documentation](https://
612
+ # cloud.google.com/iam/docs/).
613
+ class GoogleIamV1Policy
614
+ include Google::Apis::Core::Hashable
615
+
616
+ # Specifies cloud audit logging configuration for this policy.
617
+ # Corresponds to the JSON property `auditConfigs`
618
+ # @return [Array<Google::Apis::DnsV1beta2::GoogleIamV1AuditConfig>]
619
+ attr_accessor :audit_configs
620
+
621
+ # Associates a list of `members`, or principals, with a `role`. Optionally, may
622
+ # specify a `condition` that determines how and when the `bindings` are applied.
623
+ # Each of the `bindings` must contain at least one principal. The `bindings` in
624
+ # a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
625
+ # can be Google groups. Each occurrence of a principal counts towards these
626
+ # limits. For example, if the `bindings` grant 50 different roles to `user:alice@
627
+ # example.com`, and not to any other principal, then you can add another 1,450
628
+ # principals to the `bindings` in the `Policy`.
629
+ # Corresponds to the JSON property `bindings`
630
+ # @return [Array<Google::Apis::DnsV1beta2::GoogleIamV1Binding>]
631
+ attr_accessor :bindings
632
+
633
+ # `etag` is used for optimistic concurrency control as a way to help prevent
634
+ # simultaneous updates of a policy from overwriting each other. It is strongly
635
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
636
+ # to perform policy updates in order to avoid race conditions: An `etag` is
637
+ # returned in the response to `getIamPolicy`, and systems are expected to put
638
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
639
+ # applied to the same version of the policy. **Important:** If you use IAM
640
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
641
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
642
+ # with a version `1` policy, and all of the conditions in the version `3` policy
643
+ # are lost.
644
+ # Corresponds to the JSON property `etag`
645
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
646
+ # @return [String]
647
+ attr_accessor :etag
648
+
649
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
650
+ # Requests that specify an invalid value are rejected. Any operation that
651
+ # affects conditional role bindings must specify version `3`. This requirement
652
+ # applies to the following operations: * Getting a policy that includes a
653
+ # conditional role binding * Adding a conditional role binding to a policy *
654
+ # Changing a conditional role binding in a policy * Removing any role binding,
655
+ # with or without a condition, from a policy that includes conditions **
656
+ # Important:** If you use IAM Conditions, you must include the `etag` field
657
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
658
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
659
+ # conditions in the version `3` policy are lost. If a policy does not include
660
+ # any conditions, operations on that policy may specify any valid version or
661
+ # leave the field unset. To learn which resources support conditions in their
662
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
663
+ # conditions/resource-policies).
664
+ # Corresponds to the JSON property `version`
665
+ # @return [Fixnum]
666
+ attr_accessor :version
667
+
668
+ def initialize(**args)
669
+ update!(**args)
670
+ end
671
+
672
+ # Update properties of this object
673
+ def update!(**args)
674
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
675
+ @bindings = args[:bindings] if args.key?(:bindings)
676
+ @etag = args[:etag] if args.key?(:etag)
677
+ @version = args[:version] if args.key?(:version)
678
+ end
679
+ end
680
+
681
+ # Request message for `SetIamPolicy` method.
682
+ class GoogleIamV1SetIamPolicyRequest
683
+ include Google::Apis::Core::Hashable
684
+
685
+ # An Identity and Access Management (IAM) policy, which specifies access
686
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
687
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
688
+ # Principals can be user accounts, service accounts, Google groups, and domains (
689
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
690
+ # an IAM predefined role or a user-created custom role. For some types of Google
691
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
692
+ # logical expression that allows access to a resource only if the expression
693
+ # evaluates to `true`. A condition can add constraints based on attributes of
694
+ # the request, the resource, or both. To learn which resources support
695
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
696
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
697
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
698
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
699
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
700
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
701
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
702
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
703
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
704
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
705
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
706
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
707
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
708
+ # access description: Does not grant access after Sep 2020 expression: request.
709
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
710
+ # a description of IAM and its features, see the [IAM documentation](https://
711
+ # cloud.google.com/iam/docs/).
712
+ # Corresponds to the JSON property `policy`
713
+ # @return [Google::Apis::DnsV1beta2::GoogleIamV1Policy]
714
+ attr_accessor :policy
715
+
716
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
717
+ # the fields in the mask will be modified. If no mask is provided, the following
718
+ # default mask is used: `paths: "bindings, etag"`
719
+ # Corresponds to the JSON property `updateMask`
720
+ # @return [String]
721
+ attr_accessor :update_mask
722
+
723
+ def initialize(**args)
724
+ update!(**args)
725
+ end
726
+
727
+ # Update properties of this object
728
+ def update!(**args)
729
+ @policy = args[:policy] if args.key?(:policy)
730
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
731
+ end
732
+ end
733
+
734
+ # Request message for `TestIamPermissions` method.
735
+ class GoogleIamV1TestIamPermissionsRequest
736
+ include Google::Apis::Core::Hashable
737
+
738
+ # The set of permissions to check for the `resource`. Permissions with wildcards
739
+ # (such as `*` or `storage.*`) are not allowed. For more information see [IAM
740
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
741
+ # Corresponds to the JSON property `permissions`
742
+ # @return [Array<String>]
743
+ attr_accessor :permissions
744
+
745
+ def initialize(**args)
746
+ update!(**args)
747
+ end
748
+
749
+ # Update properties of this object
750
+ def update!(**args)
751
+ @permissions = args[:permissions] if args.key?(:permissions)
752
+ end
753
+ end
754
+
755
+ # Response message for `TestIamPermissions` method.
756
+ class GoogleIamV1TestIamPermissionsResponse
757
+ include Google::Apis::Core::Hashable
758
+
759
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
760
+ # Corresponds to the JSON property `permissions`
761
+ # @return [Array<String>]
762
+ attr_accessor :permissions
763
+
764
+ def initialize(**args)
765
+ update!(**args)
766
+ end
767
+
768
+ # Update properties of this object
769
+ def update!(**args)
770
+ @permissions = args[:permissions] if args.key?(:permissions)
771
+ end
772
+ end
773
+
343
774
  # A zone is a subtree of the DNS namespace under one administrative
344
775
  # responsibility. A ManagedZone is a resource that represents a DNS zone hosted
345
776
  # by the Cloud DNS service.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DnsV1beta2
18
18
  # Version of the google-apis-dns_v1beta2 gem
19
- GEM_VERSION = "0.20.0"
19
+ GEM_VERSION = "0.21.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220127"
25
+ REVISION = "20220511"
26
26
  end
27
27
  end
28
28
  end
@@ -58,6 +58,66 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
+ class Expr
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class GoogleIamV1AuditConfig
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class GoogleIamV1AuditLogConfig
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class GoogleIamV1Binding
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GoogleIamV1GetIamPolicyRequest
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class GoogleIamV1GetPolicyOptions
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class GoogleIamV1Policy
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class GoogleIamV1SetIamPolicyRequest
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class GoogleIamV1TestIamPermissionsRequest
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class GoogleIamV1TestIamPermissionsResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
61
121
  class ManagedZone
62
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
123
 
@@ -409,6 +469,93 @@ module Google
409
469
  end
410
470
  end
411
471
 
472
+ class Expr
473
+ # @private
474
+ class Representation < Google::Apis::Core::JsonRepresentation
475
+ property :description, as: 'description'
476
+ property :expression, as: 'expression'
477
+ property :location, as: 'location'
478
+ property :title, as: 'title'
479
+ end
480
+ end
481
+
482
+ class GoogleIamV1AuditConfig
483
+ # @private
484
+ class Representation < Google::Apis::Core::JsonRepresentation
485
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::DnsV1beta2::GoogleIamV1AuditLogConfig, decorator: Google::Apis::DnsV1beta2::GoogleIamV1AuditLogConfig::Representation
486
+
487
+ property :service, as: 'service'
488
+ end
489
+ end
490
+
491
+ class GoogleIamV1AuditLogConfig
492
+ # @private
493
+ class Representation < Google::Apis::Core::JsonRepresentation
494
+ collection :exempted_members, as: 'exemptedMembers'
495
+ property :log_type, as: 'logType'
496
+ end
497
+ end
498
+
499
+ class GoogleIamV1Binding
500
+ # @private
501
+ class Representation < Google::Apis::Core::JsonRepresentation
502
+ property :condition, as: 'condition', class: Google::Apis::DnsV1beta2::Expr, decorator: Google::Apis::DnsV1beta2::Expr::Representation
503
+
504
+ collection :members, as: 'members'
505
+ property :role, as: 'role'
506
+ end
507
+ end
508
+
509
+ class GoogleIamV1GetIamPolicyRequest
510
+ # @private
511
+ class Representation < Google::Apis::Core::JsonRepresentation
512
+ property :options, as: 'options', class: Google::Apis::DnsV1beta2::GoogleIamV1GetPolicyOptions, decorator: Google::Apis::DnsV1beta2::GoogleIamV1GetPolicyOptions::Representation
513
+
514
+ end
515
+ end
516
+
517
+ class GoogleIamV1GetPolicyOptions
518
+ # @private
519
+ class Representation < Google::Apis::Core::JsonRepresentation
520
+ property :requested_policy_version, as: 'requestedPolicyVersion'
521
+ end
522
+ end
523
+
524
+ class GoogleIamV1Policy
525
+ # @private
526
+ class Representation < Google::Apis::Core::JsonRepresentation
527
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::DnsV1beta2::GoogleIamV1AuditConfig, decorator: Google::Apis::DnsV1beta2::GoogleIamV1AuditConfig::Representation
528
+
529
+ collection :bindings, as: 'bindings', class: Google::Apis::DnsV1beta2::GoogleIamV1Binding, decorator: Google::Apis::DnsV1beta2::GoogleIamV1Binding::Representation
530
+
531
+ property :etag, :base64 => true, as: 'etag'
532
+ property :version, as: 'version'
533
+ end
534
+ end
535
+
536
+ class GoogleIamV1SetIamPolicyRequest
537
+ # @private
538
+ class Representation < Google::Apis::Core::JsonRepresentation
539
+ property :policy, as: 'policy', class: Google::Apis::DnsV1beta2::GoogleIamV1Policy, decorator: Google::Apis::DnsV1beta2::GoogleIamV1Policy::Representation
540
+
541
+ property :update_mask, as: 'updateMask'
542
+ end
543
+ end
544
+
545
+ class GoogleIamV1TestIamPermissionsRequest
546
+ # @private
547
+ class Representation < Google::Apis::Core::JsonRepresentation
548
+ collection :permissions, as: 'permissions'
549
+ end
550
+ end
551
+
552
+ class GoogleIamV1TestIamPermissionsResponse
553
+ # @private
554
+ class Representation < Google::Apis::Core::JsonRepresentation
555
+ collection :permissions, as: 'permissions'
556
+ end
557
+ end
558
+
412
559
  class ManagedZone
413
560
  # @private
414
561
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -468,6 +468,42 @@ module Google
468
468
  execute_or_queue_command(command, &block)
469
469
  end
470
470
 
471
+ # Gets the access control policy for a resource. Returns an empty policy if the
472
+ # resource exists and does not have a policy set.
473
+ # @param [String] resource
474
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
475
+ # names](https://cloud.google.com/apis/design/resource_names) for the
476
+ # appropriate value for this field.
477
+ # @param [Google::Apis::DnsV1beta2::GoogleIamV1GetIamPolicyRequest] google_iam_v1_get_iam_policy_request_object
478
+ # @param [String] fields
479
+ # Selector specifying which fields to include in a partial response.
480
+ # @param [String] quota_user
481
+ # Available to use for quota purposes for server-side applications. Can be any
482
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
483
+ # @param [Google::Apis::RequestOptions] options
484
+ # Request-specific options
485
+ #
486
+ # @yield [result, err] Result & error if block supplied
487
+ # @yieldparam result [Google::Apis::DnsV1beta2::GoogleIamV1Policy] parsed result object
488
+ # @yieldparam err [StandardError] error object if request failed
489
+ #
490
+ # @return [Google::Apis::DnsV1beta2::GoogleIamV1Policy]
491
+ #
492
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
493
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
494
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
495
+ def get_managed_zone_iam_policy(resource, google_iam_v1_get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
496
+ command = make_simple_command(:post, 'dns/v1beta2/{+resource}:getIamPolicy', options)
497
+ command.request_representation = Google::Apis::DnsV1beta2::GoogleIamV1GetIamPolicyRequest::Representation
498
+ command.request_object = google_iam_v1_get_iam_policy_request_object
499
+ command.response_representation = Google::Apis::DnsV1beta2::GoogleIamV1Policy::Representation
500
+ command.response_class = Google::Apis::DnsV1beta2::GoogleIamV1Policy
501
+ command.params['resource'] = resource unless resource.nil?
502
+ command.query['fields'] = fields unless fields.nil?
503
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
504
+ execute_or_queue_command(command, &block)
505
+ end
506
+
471
507
  # Enumerates ManagedZones that have been created but not yet deleted.
472
508
  # @param [String] project
473
509
  # Identifies the project addressed by this request.
@@ -550,6 +586,82 @@ module Google
550
586
  execute_or_queue_command(command, &block)
551
587
  end
552
588
 
589
+ # Sets the access control policy on the specified resource. Replaces any
590
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
591
+ # PERMISSION_DENIED` errors.
592
+ # @param [String] resource
593
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
594
+ # names](https://cloud.google.com/apis/design/resource_names) for the
595
+ # appropriate value for this field.
596
+ # @param [Google::Apis::DnsV1beta2::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
597
+ # @param [String] fields
598
+ # Selector specifying which fields to include in a partial response.
599
+ # @param [String] quota_user
600
+ # Available to use for quota purposes for server-side applications. Can be any
601
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
602
+ # @param [Google::Apis::RequestOptions] options
603
+ # Request-specific options
604
+ #
605
+ # @yield [result, err] Result & error if block supplied
606
+ # @yieldparam result [Google::Apis::DnsV1beta2::GoogleIamV1Policy] parsed result object
607
+ # @yieldparam err [StandardError] error object if request failed
608
+ #
609
+ # @return [Google::Apis::DnsV1beta2::GoogleIamV1Policy]
610
+ #
611
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
612
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
613
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
614
+ def set_managed_zone_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
615
+ command = make_simple_command(:post, 'dns/v1beta2/{+resource}:setIamPolicy', options)
616
+ command.request_representation = Google::Apis::DnsV1beta2::GoogleIamV1SetIamPolicyRequest::Representation
617
+ command.request_object = google_iam_v1_set_iam_policy_request_object
618
+ command.response_representation = Google::Apis::DnsV1beta2::GoogleIamV1Policy::Representation
619
+ command.response_class = Google::Apis::DnsV1beta2::GoogleIamV1Policy
620
+ command.params['resource'] = resource unless resource.nil?
621
+ command.query['fields'] = fields unless fields.nil?
622
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
623
+ execute_or_queue_command(command, &block)
624
+ end
625
+
626
+ # Returns permissions that a caller has on the specified resource. If the
627
+ # resource does not exist, this will return an empty set of permissions, not a `
628
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
629
+ # permission-aware UIs and command-line tools, not for authorization checking.
630
+ # This operation may "fail open" without warning.
631
+ # @param [String] resource
632
+ # REQUIRED: The resource for which the policy detail is being requested. See [
633
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
634
+ # appropriate value for this field.
635
+ # @param [Google::Apis::DnsV1beta2::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
636
+ # @param [String] fields
637
+ # Selector specifying which fields to include in a partial response.
638
+ # @param [String] quota_user
639
+ # Available to use for quota purposes for server-side applications. Can be any
640
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
641
+ # @param [Google::Apis::RequestOptions] options
642
+ # Request-specific options
643
+ #
644
+ # @yield [result, err] Result & error if block supplied
645
+ # @yieldparam result [Google::Apis::DnsV1beta2::GoogleIamV1TestIamPermissionsResponse] parsed result object
646
+ # @yieldparam err [StandardError] error object if request failed
647
+ #
648
+ # @return [Google::Apis::DnsV1beta2::GoogleIamV1TestIamPermissionsResponse]
649
+ #
650
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
651
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
652
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
653
+ def test_managed_zone_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
654
+ command = make_simple_command(:post, 'dns/v1beta2/{+resource}:testIamPermissions', options)
655
+ command.request_representation = Google::Apis::DnsV1beta2::GoogleIamV1TestIamPermissionsRequest::Representation
656
+ command.request_object = google_iam_v1_test_iam_permissions_request_object
657
+ command.response_representation = Google::Apis::DnsV1beta2::GoogleIamV1TestIamPermissionsResponse::Representation
658
+ command.response_class = Google::Apis::DnsV1beta2::GoogleIamV1TestIamPermissionsResponse
659
+ command.params['resource'] = resource unless resource.nil?
660
+ command.query['fields'] = fields unless fields.nil?
661
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
662
+ execute_or_queue_command(command, &block)
663
+ end
664
+
553
665
  # Updates an existing ManagedZone.
554
666
  # @param [String] project
555
667
  # Identifies the project addressed by this request.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dns_v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-07 00:00:00.000000000 Z
11
+ date: 2022-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dns_v1beta2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dns_v1beta2/v0.20.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dns_v1beta2/v0.21.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dns_v1beta2
63
63
  post_install_message:
64
64
  rdoc_options: []