google-apis-agentregistry_v1alpha 0.8.0 → 0.9.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/agentregistry_v1alpha/classes.rb +414 -0
- data/lib/google/apis/agentregistry_v1alpha/gem_version.rb +2 -2
- data/lib/google/apis/agentregistry_v1alpha/representations.rb +120 -0
- data/lib/google/apis/agentregistry_v1alpha/service.rb +242 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d4ba351912c234d1598d1d4c36cb60b70d2164d73d31aa393c1e1621d26d1160
|
|
4
|
+
data.tar.gz: f2421e7ceb0165b784908ccb4109770fcaa44a86c0781a7885bff7dd50acf783
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3a0249b0c284015def4a6a7ee2a35d658cb410eea6f3d9ee3a51cf22ea6b0c58c503ec26780e93bb3f91d661061f5c6f84e85576b0678d00d670ef24473376ff
|
|
7
|
+
data.tar.gz: 576716045dafebd873ab317e94a477de7a10aad3720fa5b953fff7842ae866907185c8b706dbb0d788d5707bbc2438caea3a17a6028134d9e8aad392e4247c18
|
data/CHANGELOG.md
CHANGED
|
@@ -511,6 +511,60 @@ module Google
|
|
|
511
511
|
end
|
|
512
512
|
end
|
|
513
513
|
|
|
514
|
+
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
|
515
|
+
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
|
516
|
+
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
|
517
|
+
# "Summary size limit" description: "Determines if a summary is less than 100
|
|
518
|
+
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
|
519
|
+
# Requestor is owner" description: "Determines if requestor is the document
|
|
520
|
+
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
|
521
|
+
# Logic): title: "Public documents" description: "Determine whether the document
|
|
522
|
+
# should be publicly visible" expression: "document.type != 'private' &&
|
|
523
|
+
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
|
524
|
+
# string" description: "Create a notification string with a timestamp."
|
|
525
|
+
# expression: "'New message received at ' + string(document.create_time)" The
|
|
526
|
+
# exact variables and functions that may be referenced within an expression are
|
|
527
|
+
# determined by the service that evaluates it. See the service documentation for
|
|
528
|
+
# additional information.
|
|
529
|
+
class Expr
|
|
530
|
+
include Google::Apis::Core::Hashable
|
|
531
|
+
|
|
532
|
+
# Optional. Description of the expression. This is a longer text which describes
|
|
533
|
+
# the expression, e.g. when hovered over it in a UI.
|
|
534
|
+
# Corresponds to the JSON property `description`
|
|
535
|
+
# @return [String]
|
|
536
|
+
attr_accessor :description
|
|
537
|
+
|
|
538
|
+
# Textual representation of an expression in Common Expression Language syntax.
|
|
539
|
+
# Corresponds to the JSON property `expression`
|
|
540
|
+
# @return [String]
|
|
541
|
+
attr_accessor :expression
|
|
542
|
+
|
|
543
|
+
# Optional. String indicating the location of the expression for error reporting,
|
|
544
|
+
# e.g. a file name and a position in the file.
|
|
545
|
+
# Corresponds to the JSON property `location`
|
|
546
|
+
# @return [String]
|
|
547
|
+
attr_accessor :location
|
|
548
|
+
|
|
549
|
+
# Optional. Title for the expression, i.e. a short string describing its purpose.
|
|
550
|
+
# This can be used e.g. in UIs which allow to enter the expression.
|
|
551
|
+
# Corresponds to the JSON property `title`
|
|
552
|
+
# @return [String]
|
|
553
|
+
attr_accessor :title
|
|
554
|
+
|
|
555
|
+
def initialize(**args)
|
|
556
|
+
update!(**args)
|
|
557
|
+
end
|
|
558
|
+
|
|
559
|
+
# Update properties of this object
|
|
560
|
+
def update!(**args)
|
|
561
|
+
@description = args[:description] if args.key?(:description)
|
|
562
|
+
@expression = args[:expression] if args.key?(:expression)
|
|
563
|
+
@location = args[:location] if args.key?(:location)
|
|
564
|
+
@title = args[:title] if args.key?(:title)
|
|
565
|
+
end
|
|
566
|
+
end
|
|
567
|
+
|
|
514
568
|
# Message for response to fetching available Bindings.
|
|
515
569
|
class FetchAvailableBindingsResponse
|
|
516
570
|
include Google::Apis::Core::Hashable
|
|
@@ -607,6 +661,366 @@ module Google
|
|
|
607
661
|
end
|
|
608
662
|
end
|
|
609
663
|
|
|
664
|
+
# Specifies the audit configuration for a service. The configuration determines
|
|
665
|
+
# which permission types are logged, and what identities, if any, are exempted
|
|
666
|
+
# from logging. An AuditConfig must have one or more AuditLogConfigs. If there
|
|
667
|
+
# are AuditConfigs for both `allServices` and a specific service, the union of
|
|
668
|
+
# the two AuditConfigs is used for that service: the log_types specified in each
|
|
669
|
+
# AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
|
|
670
|
+
# exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
|
|
671
|
+
# service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
|
|
672
|
+
# exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
|
|
673
|
+
# ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
|
|
674
|
+
# "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
|
|
675
|
+
# , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
|
|
676
|
+
# this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
|
|
677
|
+
# exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com`
|
|
678
|
+
# from DATA_WRITE logging.
|
|
679
|
+
class GoogleIamV1AuditConfig
|
|
680
|
+
include Google::Apis::Core::Hashable
|
|
681
|
+
|
|
682
|
+
# The configuration for logging of each type of permission.
|
|
683
|
+
# Corresponds to the JSON property `auditLogConfigs`
|
|
684
|
+
# @return [Array<Google::Apis::AgentregistryV1alpha::GoogleIamV1AuditLogConfig>]
|
|
685
|
+
attr_accessor :audit_log_configs
|
|
686
|
+
|
|
687
|
+
# Specifies a service that will be enabled for audit logging. For example, `
|
|
688
|
+
# storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
|
|
689
|
+
# value that covers all services.
|
|
690
|
+
# Corresponds to the JSON property `service`
|
|
691
|
+
# @return [String]
|
|
692
|
+
attr_accessor :service
|
|
693
|
+
|
|
694
|
+
def initialize(**args)
|
|
695
|
+
update!(**args)
|
|
696
|
+
end
|
|
697
|
+
|
|
698
|
+
# Update properties of this object
|
|
699
|
+
def update!(**args)
|
|
700
|
+
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
|
|
701
|
+
@service = args[:service] if args.key?(:service)
|
|
702
|
+
end
|
|
703
|
+
end
|
|
704
|
+
|
|
705
|
+
# Provides the configuration for logging a type of permissions. Example: ` "
|
|
706
|
+
# audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
|
|
707
|
+
# jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
|
|
708
|
+
# DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
|
|
709
|
+
# DATA_READ logging.
|
|
710
|
+
class GoogleIamV1AuditLogConfig
|
|
711
|
+
include Google::Apis::Core::Hashable
|
|
712
|
+
|
|
713
|
+
# Specifies the identities that do not cause logging for this type of permission.
|
|
714
|
+
# Follows the same format of Binding.members.
|
|
715
|
+
# Corresponds to the JSON property `exemptedMembers`
|
|
716
|
+
# @return [Array<String>]
|
|
717
|
+
attr_accessor :exempted_members
|
|
718
|
+
|
|
719
|
+
# The log type that this config enables.
|
|
720
|
+
# Corresponds to the JSON property `logType`
|
|
721
|
+
# @return [String]
|
|
722
|
+
attr_accessor :log_type
|
|
723
|
+
|
|
724
|
+
def initialize(**args)
|
|
725
|
+
update!(**args)
|
|
726
|
+
end
|
|
727
|
+
|
|
728
|
+
# Update properties of this object
|
|
729
|
+
def update!(**args)
|
|
730
|
+
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
|
|
731
|
+
@log_type = args[:log_type] if args.key?(:log_type)
|
|
732
|
+
end
|
|
733
|
+
end
|
|
734
|
+
|
|
735
|
+
# Associates `members`, or principals, with a `role`.
|
|
736
|
+
class GoogleIamV1Binding
|
|
737
|
+
include Google::Apis::Core::Hashable
|
|
738
|
+
|
|
739
|
+
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
|
740
|
+
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
|
741
|
+
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
|
742
|
+
# "Summary size limit" description: "Determines if a summary is less than 100
|
|
743
|
+
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
|
744
|
+
# Requestor is owner" description: "Determines if requestor is the document
|
|
745
|
+
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
|
746
|
+
# Logic): title: "Public documents" description: "Determine whether the document
|
|
747
|
+
# should be publicly visible" expression: "document.type != 'private' &&
|
|
748
|
+
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
|
749
|
+
# string" description: "Create a notification string with a timestamp."
|
|
750
|
+
# expression: "'New message received at ' + string(document.create_time)" The
|
|
751
|
+
# exact variables and functions that may be referenced within an expression are
|
|
752
|
+
# determined by the service that evaluates it. See the service documentation for
|
|
753
|
+
# additional information.
|
|
754
|
+
# Corresponds to the JSON property `condition`
|
|
755
|
+
# @return [Google::Apis::AgentregistryV1alpha::Expr]
|
|
756
|
+
attr_accessor :condition
|
|
757
|
+
|
|
758
|
+
# Specifies the principals requesting access for a Google Cloud resource. `
|
|
759
|
+
# members` can have the following values: * `allUsers`: A special identifier
|
|
760
|
+
# that represents anyone who is on the internet; with or without a Google
|
|
761
|
+
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
|
762
|
+
# anyone who is authenticated with a Google account or a service account. Does
|
|
763
|
+
# not include identities that come from external identity providers (IdPs)
|
|
764
|
+
# through identity federation. * `user:`emailid``: An email address that
|
|
765
|
+
# represents a specific Google account. For example, `alice@example.com` . * `
|
|
766
|
+
# serviceAccount:`emailid``: An email address that represents a Google service
|
|
767
|
+
# account. For example, `my-other-app@appspot.gserviceaccount.com`. * `
|
|
768
|
+
# serviceAccount:`projectid`.svc.id.goog[`namespace`/`kubernetes-sa`]`: An
|
|
769
|
+
# identifier for a [Kubernetes service account](https://cloud.google.com/
|
|
770
|
+
# kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-
|
|
771
|
+
# project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
|
|
772
|
+
# email address that represents a Google group. For example, `admins@example.com`
|
|
773
|
+
# . * `domain:`domain``: The G Suite domain (primary) that represents all the
|
|
774
|
+
# users of that domain. For example, `google.com` or `example.com`. * `principal:
|
|
775
|
+
# //iam.googleapis.com/locations/global/workforcePools/`pool_id`/subject/`
|
|
776
|
+
# subject_attribute_value``: A single identity in a workforce identity pool. * `
|
|
777
|
+
# principalSet://iam.googleapis.com/locations/global/workforcePools/`pool_id`/
|
|
778
|
+
# group/`group_id``: All workforce identities in a group. * `principalSet://iam.
|
|
779
|
+
# googleapis.com/locations/global/workforcePools/`pool_id`/attribute.`
|
|
780
|
+
# attribute_name`/`attribute_value``: All workforce identities with a specific
|
|
781
|
+
# attribute value. * `principalSet://iam.googleapis.com/locations/global/
|
|
782
|
+
# workforcePools/`pool_id`/*`: All identities in a workforce identity pool. * `
|
|
783
|
+
# principal://iam.googleapis.com/projects/`project_number`/locations/global/
|
|
784
|
+
# workloadIdentityPools/`pool_id`/subject/`subject_attribute_value``: A single
|
|
785
|
+
# identity in a workload identity pool. * `principalSet://iam.googleapis.com/
|
|
786
|
+
# projects/`project_number`/locations/global/workloadIdentityPools/`pool_id`/
|
|
787
|
+
# group/`group_id``: A workload identity pool group. * `principalSet://iam.
|
|
788
|
+
# googleapis.com/projects/`project_number`/locations/global/
|
|
789
|
+
# workloadIdentityPools/`pool_id`/attribute.`attribute_name`/`attribute_value``:
|
|
790
|
+
# All identities in a workload identity pool with a certain attribute. * `
|
|
791
|
+
# principalSet://iam.googleapis.com/projects/`project_number`/locations/global/
|
|
792
|
+
# workloadIdentityPools/`pool_id`/*`: All identities in a workload identity pool.
|
|
793
|
+
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
|
|
794
|
+
# identifier) representing a user that has been recently deleted. For example, `
|
|
795
|
+
# alice@example.com?uid=123456789012345678901`. If the user is recovered, this
|
|
796
|
+
# value reverts to `user:`emailid`` and the recovered user retains the role in
|
|
797
|
+
# the binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email
|
|
798
|
+
# address (plus unique identifier) representing a service account that has been
|
|
799
|
+
# recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
|
|
800
|
+
# 123456789012345678901`. If the service account is undeleted, this value
|
|
801
|
+
# reverts to `serviceAccount:`emailid`` and the undeleted service account
|
|
802
|
+
# retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
|
|
803
|
+
# An email address (plus unique identifier) representing a Google group that has
|
|
804
|
+
# been recently deleted. For example, `admins@example.com?uid=
|
|
805
|
+
# 123456789012345678901`. If the group is recovered, this value reverts to `
|
|
806
|
+
# group:`emailid`` and the recovered group retains the role in the binding. * `
|
|
807
|
+
# deleted:principal://iam.googleapis.com/locations/global/workforcePools/`
|
|
808
|
+
# pool_id`/subject/`subject_attribute_value``: Deleted single identity in a
|
|
809
|
+
# workforce identity pool. For example, `deleted:principal://iam.googleapis.com/
|
|
810
|
+
# locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
|
|
811
|
+
# Corresponds to the JSON property `members`
|
|
812
|
+
# @return [Array<String>]
|
|
813
|
+
attr_accessor :members
|
|
814
|
+
|
|
815
|
+
# Role that is assigned to the list of `members`, or principals. For example, `
|
|
816
|
+
# roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM
|
|
817
|
+
# roles and permissions, see the [IAM documentation](https://cloud.google.com/
|
|
818
|
+
# iam/docs/roles-overview). For a list of the available pre-defined roles, see [
|
|
819
|
+
# here](https://cloud.google.com/iam/docs/understanding-roles).
|
|
820
|
+
# Corresponds to the JSON property `role`
|
|
821
|
+
# @return [String]
|
|
822
|
+
attr_accessor :role
|
|
823
|
+
|
|
824
|
+
def initialize(**args)
|
|
825
|
+
update!(**args)
|
|
826
|
+
end
|
|
827
|
+
|
|
828
|
+
# Update properties of this object
|
|
829
|
+
def update!(**args)
|
|
830
|
+
@condition = args[:condition] if args.key?(:condition)
|
|
831
|
+
@members = args[:members] if args.key?(:members)
|
|
832
|
+
@role = args[:role] if args.key?(:role)
|
|
833
|
+
end
|
|
834
|
+
end
|
|
835
|
+
|
|
836
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
|
837
|
+
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
|
838
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
|
839
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
|
840
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
|
841
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
|
842
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
|
843
|
+
# logical expression that allows access to a resource only if the expression
|
|
844
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
|
845
|
+
# the request, the resource, or both. To learn which resources support
|
|
846
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
|
847
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
|
|
848
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
|
849
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
|
850
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
|
851
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
|
852
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
|
853
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
|
854
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
|
|
855
|
+
# example:** ``` bindings: - members: - user:mike@example.com - group:admins@
|
|
856
|
+
# example.com - domain:google.com - serviceAccount:my-project-id@appspot.
|
|
857
|
+
# gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
|
|
858
|
+
# user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
|
|
859
|
+
# title: expirable access description: Does not grant access after Sep 2020
|
|
860
|
+
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
|
|
861
|
+
# BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
|
|
862
|
+
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
|
863
|
+
class GoogleIamV1Policy
|
|
864
|
+
include Google::Apis::Core::Hashable
|
|
865
|
+
|
|
866
|
+
# Specifies cloud audit logging configuration for this policy.
|
|
867
|
+
# Corresponds to the JSON property `auditConfigs`
|
|
868
|
+
# @return [Array<Google::Apis::AgentregistryV1alpha::GoogleIamV1AuditConfig>]
|
|
869
|
+
attr_accessor :audit_configs
|
|
870
|
+
|
|
871
|
+
# Associates a list of `members`, or principals, with a `role`. Optionally, may
|
|
872
|
+
# specify a `condition` that determines how and when the `bindings` are applied.
|
|
873
|
+
# Each of the `bindings` must contain at least one principal. The `bindings` in
|
|
874
|
+
# a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
|
|
875
|
+
# can be Google groups. Each occurrence of a principal counts towards these
|
|
876
|
+
# limits. For example, if the `bindings` grant 50 different roles to `user:alice@
|
|
877
|
+
# example.com`, and not to any other principal, then you can add another 1,450
|
|
878
|
+
# principals to the `bindings` in the `Policy`.
|
|
879
|
+
# Corresponds to the JSON property `bindings`
|
|
880
|
+
# @return [Array<Google::Apis::AgentregistryV1alpha::GoogleIamV1Binding>]
|
|
881
|
+
attr_accessor :bindings
|
|
882
|
+
|
|
883
|
+
# `etag` is used for optimistic concurrency control as a way to help prevent
|
|
884
|
+
# simultaneous updates of a policy from overwriting each other. It is strongly
|
|
885
|
+
# suggested that systems make use of the `etag` in the read-modify-write cycle
|
|
886
|
+
# to perform policy updates in order to avoid race conditions: An `etag` is
|
|
887
|
+
# returned in the response to `getIamPolicy`, and systems are expected to put
|
|
888
|
+
# that etag in the request to `setIamPolicy` to ensure that their change will be
|
|
889
|
+
# applied to the same version of the policy. **Important:** If you use IAM
|
|
890
|
+
# Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
|
|
891
|
+
# If you omit this field, then IAM allows you to overwrite a version `3` policy
|
|
892
|
+
# with a version `1` policy, and all of the conditions in the version `3` policy
|
|
893
|
+
# are lost.
|
|
894
|
+
# Corresponds to the JSON property `etag`
|
|
895
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
896
|
+
# @return [String]
|
|
897
|
+
attr_accessor :etag
|
|
898
|
+
|
|
899
|
+
# Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
|
|
900
|
+
# Requests that specify an invalid value are rejected. Any operation that
|
|
901
|
+
# affects conditional role bindings must specify version `3`. This requirement
|
|
902
|
+
# applies to the following operations: * Getting a policy that includes a
|
|
903
|
+
# conditional role binding * Adding a conditional role binding to a policy *
|
|
904
|
+
# Changing a conditional role binding in a policy * Removing any role binding,
|
|
905
|
+
# with or without a condition, from a policy that includes conditions **
|
|
906
|
+
# Important:** If you use IAM Conditions, you must include the `etag` field
|
|
907
|
+
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
|
|
908
|
+
# to overwrite a version `3` policy with a version `1` policy, and all of the
|
|
909
|
+
# conditions in the version `3` policy are lost. If a policy does not include
|
|
910
|
+
# any conditions, operations on that policy may specify any valid version or
|
|
911
|
+
# leave the field unset. To learn which resources support conditions in their
|
|
912
|
+
# IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
|
|
913
|
+
# conditions/resource-policies).
|
|
914
|
+
# Corresponds to the JSON property `version`
|
|
915
|
+
# @return [Fixnum]
|
|
916
|
+
attr_accessor :version
|
|
917
|
+
|
|
918
|
+
def initialize(**args)
|
|
919
|
+
update!(**args)
|
|
920
|
+
end
|
|
921
|
+
|
|
922
|
+
# Update properties of this object
|
|
923
|
+
def update!(**args)
|
|
924
|
+
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
|
|
925
|
+
@bindings = args[:bindings] if args.key?(:bindings)
|
|
926
|
+
@etag = args[:etag] if args.key?(:etag)
|
|
927
|
+
@version = args[:version] if args.key?(:version)
|
|
928
|
+
end
|
|
929
|
+
end
|
|
930
|
+
|
|
931
|
+
# Request message for `SetIamPolicy` method.
|
|
932
|
+
class GoogleIamV1SetIamPolicyRequest
|
|
933
|
+
include Google::Apis::Core::Hashable
|
|
934
|
+
|
|
935
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
|
936
|
+
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
|
937
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
|
938
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
|
939
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
|
940
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
|
941
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
|
942
|
+
# logical expression that allows access to a resource only if the expression
|
|
943
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
|
944
|
+
# the request, the resource, or both. To learn which resources support
|
|
945
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
|
946
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
|
|
947
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
|
948
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
|
949
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
|
950
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
|
951
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
|
952
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
|
953
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
|
|
954
|
+
# example:** ``` bindings: - members: - user:mike@example.com - group:admins@
|
|
955
|
+
# example.com - domain:google.com - serviceAccount:my-project-id@appspot.
|
|
956
|
+
# gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
|
|
957
|
+
# user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
|
|
958
|
+
# title: expirable access description: Does not grant access after Sep 2020
|
|
959
|
+
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
|
|
960
|
+
# BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
|
|
961
|
+
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
|
962
|
+
# Corresponds to the JSON property `policy`
|
|
963
|
+
# @return [Google::Apis::AgentregistryV1alpha::GoogleIamV1Policy]
|
|
964
|
+
attr_accessor :policy
|
|
965
|
+
|
|
966
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
|
967
|
+
# the fields in the mask will be modified. If no mask is provided, the following
|
|
968
|
+
# default mask is used: `paths: "bindings, etag"`
|
|
969
|
+
# Corresponds to the JSON property `updateMask`
|
|
970
|
+
# @return [String]
|
|
971
|
+
attr_accessor :update_mask
|
|
972
|
+
|
|
973
|
+
def initialize(**args)
|
|
974
|
+
update!(**args)
|
|
975
|
+
end
|
|
976
|
+
|
|
977
|
+
# Update properties of this object
|
|
978
|
+
def update!(**args)
|
|
979
|
+
@policy = args[:policy] if args.key?(:policy)
|
|
980
|
+
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
|
981
|
+
end
|
|
982
|
+
end
|
|
983
|
+
|
|
984
|
+
# Request message for `TestIamPermissions` method.
|
|
985
|
+
class GoogleIamV1TestIamPermissionsRequest
|
|
986
|
+
include Google::Apis::Core::Hashable
|
|
987
|
+
|
|
988
|
+
# The set of permissions to check for the `resource`. Permissions with wildcards
|
|
989
|
+
# (such as `*` or `storage.*`) are not allowed. For more information see [IAM
|
|
990
|
+
# Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
991
|
+
# Corresponds to the JSON property `permissions`
|
|
992
|
+
# @return [Array<String>]
|
|
993
|
+
attr_accessor :permissions
|
|
994
|
+
|
|
995
|
+
def initialize(**args)
|
|
996
|
+
update!(**args)
|
|
997
|
+
end
|
|
998
|
+
|
|
999
|
+
# Update properties of this object
|
|
1000
|
+
def update!(**args)
|
|
1001
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
|
1002
|
+
end
|
|
1003
|
+
end
|
|
1004
|
+
|
|
1005
|
+
# Response message for `TestIamPermissions` method.
|
|
1006
|
+
class GoogleIamV1TestIamPermissionsResponse
|
|
1007
|
+
include Google::Apis::Core::Hashable
|
|
1008
|
+
|
|
1009
|
+
# A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
|
|
1010
|
+
# Corresponds to the JSON property `permissions`
|
|
1011
|
+
# @return [Array<String>]
|
|
1012
|
+
attr_accessor :permissions
|
|
1013
|
+
|
|
1014
|
+
def initialize(**args)
|
|
1015
|
+
update!(**args)
|
|
1016
|
+
end
|
|
1017
|
+
|
|
1018
|
+
# Update properties of this object
|
|
1019
|
+
def update!(**args)
|
|
1020
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
|
1021
|
+
end
|
|
1022
|
+
end
|
|
1023
|
+
|
|
610
1024
|
# Represents the connection details for an Agent or MCP Server.
|
|
611
1025
|
class Interface
|
|
612
1026
|
include Google::Apis::Core::Hashable
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module AgentregistryV1alpha
|
|
18
18
|
# Version of the google-apis-agentregistry_v1alpha gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.9.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.19.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260904"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -94,6 +94,12 @@ module Google
|
|
|
94
94
|
include Google::Apis::Core::JsonObjectSupport
|
|
95
95
|
end
|
|
96
96
|
|
|
97
|
+
class Expr
|
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
99
|
+
|
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
101
|
+
end
|
|
102
|
+
|
|
97
103
|
class FetchAvailableBindingsResponse
|
|
98
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
99
105
|
|
|
@@ -112,6 +118,48 @@ module Google
|
|
|
112
118
|
include Google::Apis::Core::JsonObjectSupport
|
|
113
119
|
end
|
|
114
120
|
|
|
121
|
+
class GoogleIamV1AuditConfig
|
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
123
|
+
|
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
class GoogleIamV1AuditLogConfig
|
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
129
|
+
|
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
class GoogleIamV1Binding
|
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
135
|
+
|
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
class GoogleIamV1Policy
|
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
141
|
+
|
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
class GoogleIamV1SetIamPolicyRequest
|
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
147
|
+
|
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
class GoogleIamV1TestIamPermissionsRequest
|
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
153
|
+
|
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
class GoogleIamV1TestIamPermissionsResponse
|
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
159
|
+
|
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
161
|
+
end
|
|
162
|
+
|
|
115
163
|
class Interface
|
|
116
164
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
117
165
|
|
|
@@ -420,6 +468,16 @@ module Google
|
|
|
420
468
|
end
|
|
421
469
|
end
|
|
422
470
|
|
|
471
|
+
class Expr
|
|
472
|
+
# @private
|
|
473
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
474
|
+
property :description, as: 'description'
|
|
475
|
+
property :expression, as: 'expression'
|
|
476
|
+
property :location, as: 'location'
|
|
477
|
+
property :title, as: 'title'
|
|
478
|
+
end
|
|
479
|
+
end
|
|
480
|
+
|
|
423
481
|
class FetchAvailableBindingsResponse
|
|
424
482
|
# @private
|
|
425
483
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -448,6 +506,68 @@ module Google
|
|
|
448
506
|
end
|
|
449
507
|
end
|
|
450
508
|
|
|
509
|
+
class GoogleIamV1AuditConfig
|
|
510
|
+
# @private
|
|
511
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
512
|
+
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::AgentregistryV1alpha::GoogleIamV1AuditLogConfig, decorator: Google::Apis::AgentregistryV1alpha::GoogleIamV1AuditLogConfig::Representation
|
|
513
|
+
|
|
514
|
+
property :service, as: 'service'
|
|
515
|
+
end
|
|
516
|
+
end
|
|
517
|
+
|
|
518
|
+
class GoogleIamV1AuditLogConfig
|
|
519
|
+
# @private
|
|
520
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
521
|
+
collection :exempted_members, as: 'exemptedMembers'
|
|
522
|
+
property :log_type, as: 'logType'
|
|
523
|
+
end
|
|
524
|
+
end
|
|
525
|
+
|
|
526
|
+
class GoogleIamV1Binding
|
|
527
|
+
# @private
|
|
528
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
529
|
+
property :condition, as: 'condition', class: Google::Apis::AgentregistryV1alpha::Expr, decorator: Google::Apis::AgentregistryV1alpha::Expr::Representation
|
|
530
|
+
|
|
531
|
+
collection :members, as: 'members'
|
|
532
|
+
property :role, as: 'role'
|
|
533
|
+
end
|
|
534
|
+
end
|
|
535
|
+
|
|
536
|
+
class GoogleIamV1Policy
|
|
537
|
+
# @private
|
|
538
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
539
|
+
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::AgentregistryV1alpha::GoogleIamV1AuditConfig, decorator: Google::Apis::AgentregistryV1alpha::GoogleIamV1AuditConfig::Representation
|
|
540
|
+
|
|
541
|
+
collection :bindings, as: 'bindings', class: Google::Apis::AgentregistryV1alpha::GoogleIamV1Binding, decorator: Google::Apis::AgentregistryV1alpha::GoogleIamV1Binding::Representation
|
|
542
|
+
|
|
543
|
+
property :etag, :base64 => true, as: 'etag'
|
|
544
|
+
property :version, as: 'version'
|
|
545
|
+
end
|
|
546
|
+
end
|
|
547
|
+
|
|
548
|
+
class GoogleIamV1SetIamPolicyRequest
|
|
549
|
+
# @private
|
|
550
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
551
|
+
property :policy, as: 'policy', class: Google::Apis::AgentregistryV1alpha::GoogleIamV1Policy, decorator: Google::Apis::AgentregistryV1alpha::GoogleIamV1Policy::Representation
|
|
552
|
+
|
|
553
|
+
property :update_mask, as: 'updateMask'
|
|
554
|
+
end
|
|
555
|
+
end
|
|
556
|
+
|
|
557
|
+
class GoogleIamV1TestIamPermissionsRequest
|
|
558
|
+
# @private
|
|
559
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
560
|
+
collection :permissions, as: 'permissions'
|
|
561
|
+
end
|
|
562
|
+
end
|
|
563
|
+
|
|
564
|
+
class GoogleIamV1TestIamPermissionsResponse
|
|
565
|
+
# @private
|
|
566
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
567
|
+
collection :permissions, as: 'permissions'
|
|
568
|
+
end
|
|
569
|
+
end
|
|
570
|
+
|
|
451
571
|
class Interface
|
|
452
572
|
# @private
|
|
453
573
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -246,6 +246,127 @@ module Google
|
|
|
246
246
|
execute_or_queue_command(command, &block)
|
|
247
247
|
end
|
|
248
248
|
|
|
249
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
|
250
|
+
# resource exists and does not have a policy set.
|
|
251
|
+
# @param [String] resource
|
|
252
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
|
253
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
|
254
|
+
# appropriate value for this field.
|
|
255
|
+
# @param [Fixnum] options_requested_policy_version
|
|
256
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
|
257
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
|
258
|
+
# rejected. Requests for policies with any conditional role bindings must
|
|
259
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
|
260
|
+
# valid value or leave the field unset. The policy in the response might use the
|
|
261
|
+
# policy version that you specified, or it might use a lower policy version. For
|
|
262
|
+
# example, if you specify version 3, but the policy has no conditional role
|
|
263
|
+
# bindings, the response uses version 1. To learn which resources support
|
|
264
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
|
265
|
+
# google.com/iam/help/conditions/resource-policies).
|
|
266
|
+
# @param [String] fields
|
|
267
|
+
# Selector specifying which fields to include in a partial response.
|
|
268
|
+
# @param [String] quota_user
|
|
269
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
270
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
271
|
+
# @param [Google::Apis::RequestOptions] options
|
|
272
|
+
# Request-specific options
|
|
273
|
+
#
|
|
274
|
+
# @yield [result, err] Result & error if block supplied
|
|
275
|
+
# @yieldparam result [Google::Apis::AgentregistryV1alpha::GoogleIamV1Policy] parsed result object
|
|
276
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
277
|
+
#
|
|
278
|
+
# @return [Google::Apis::AgentregistryV1alpha::GoogleIamV1Policy]
|
|
279
|
+
#
|
|
280
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
281
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
282
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
283
|
+
def get_project_location_ai_application_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
284
|
+
command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', options)
|
|
285
|
+
command.response_representation = Google::Apis::AgentregistryV1alpha::GoogleIamV1Policy::Representation
|
|
286
|
+
command.response_class = Google::Apis::AgentregistryV1alpha::GoogleIamV1Policy
|
|
287
|
+
command.params['resource'] = resource unless resource.nil?
|
|
288
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
|
289
|
+
command.query['fields'] = fields unless fields.nil?
|
|
290
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
291
|
+
execute_or_queue_command(command, &block)
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
295
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
|
296
|
+
# PERMISSION_DENIED` errors.
|
|
297
|
+
# @param [String] resource
|
|
298
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
|
299
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
|
300
|
+
# appropriate value for this field.
|
|
301
|
+
# @param [Google::Apis::AgentregistryV1alpha::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
|
|
302
|
+
# @param [String] fields
|
|
303
|
+
# Selector specifying which fields to include in a partial response.
|
|
304
|
+
# @param [String] quota_user
|
|
305
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
306
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
307
|
+
# @param [Google::Apis::RequestOptions] options
|
|
308
|
+
# Request-specific options
|
|
309
|
+
#
|
|
310
|
+
# @yield [result, err] Result & error if block supplied
|
|
311
|
+
# @yieldparam result [Google::Apis::AgentregistryV1alpha::GoogleIamV1Policy] parsed result object
|
|
312
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
313
|
+
#
|
|
314
|
+
# @return [Google::Apis::AgentregistryV1alpha::GoogleIamV1Policy]
|
|
315
|
+
#
|
|
316
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
317
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
318
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
319
|
+
def set_project_location_ai_application_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
320
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', options)
|
|
321
|
+
command.request_representation = Google::Apis::AgentregistryV1alpha::GoogleIamV1SetIamPolicyRequest::Representation
|
|
322
|
+
command.request_object = google_iam_v1_set_iam_policy_request_object
|
|
323
|
+
command.response_representation = Google::Apis::AgentregistryV1alpha::GoogleIamV1Policy::Representation
|
|
324
|
+
command.response_class = Google::Apis::AgentregistryV1alpha::GoogleIamV1Policy
|
|
325
|
+
command.params['resource'] = resource unless resource.nil?
|
|
326
|
+
command.query['fields'] = fields unless fields.nil?
|
|
327
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
328
|
+
execute_or_queue_command(command, &block)
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
# Returns permissions that a caller has on the specified resource. If the
|
|
332
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
|
333
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
|
334
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
|
335
|
+
# This operation may "fail open" without warning.
|
|
336
|
+
# @param [String] resource
|
|
337
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
|
338
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
|
339
|
+
# appropriate value for this field.
|
|
340
|
+
# @param [Google::Apis::AgentregistryV1alpha::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
|
|
341
|
+
# @param [String] fields
|
|
342
|
+
# Selector specifying which fields to include in a partial response.
|
|
343
|
+
# @param [String] quota_user
|
|
344
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
345
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
346
|
+
# @param [Google::Apis::RequestOptions] options
|
|
347
|
+
# Request-specific options
|
|
348
|
+
#
|
|
349
|
+
# @yield [result, err] Result & error if block supplied
|
|
350
|
+
# @yieldparam result [Google::Apis::AgentregistryV1alpha::GoogleIamV1TestIamPermissionsResponse] parsed result object
|
|
351
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
352
|
+
#
|
|
353
|
+
# @return [Google::Apis::AgentregistryV1alpha::GoogleIamV1TestIamPermissionsResponse]
|
|
354
|
+
#
|
|
355
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
356
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
357
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
358
|
+
def test_project_location_ai_application_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
359
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', options)
|
|
360
|
+
command.request_representation = Google::Apis::AgentregistryV1alpha::GoogleIamV1TestIamPermissionsRequest::Representation
|
|
361
|
+
command.request_object = google_iam_v1_test_iam_permissions_request_object
|
|
362
|
+
command.response_representation = Google::Apis::AgentregistryV1alpha::GoogleIamV1TestIamPermissionsResponse::Representation
|
|
363
|
+
command.response_class = Google::Apis::AgentregistryV1alpha::GoogleIamV1TestIamPermissionsResponse
|
|
364
|
+
command.params['resource'] = resource unless resource.nil?
|
|
365
|
+
command.query['fields'] = fields unless fields.nil?
|
|
366
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
367
|
+
execute_or_queue_command(command, &block)
|
|
368
|
+
end
|
|
369
|
+
|
|
249
370
|
# Creates a new Binding in a given project and location.
|
|
250
371
|
# @param [String] parent
|
|
251
372
|
# Required. The project and location to create the Binding in. Expected format: `
|
|
@@ -1265,6 +1386,51 @@ module Google
|
|
|
1265
1386
|
execute_or_queue_command(command, &block)
|
|
1266
1387
|
end
|
|
1267
1388
|
|
|
1389
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
|
1390
|
+
# resource exists and does not have a policy set.
|
|
1391
|
+
# @param [String] resource
|
|
1392
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
|
1393
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
|
1394
|
+
# appropriate value for this field.
|
|
1395
|
+
# @param [Fixnum] options_requested_policy_version
|
|
1396
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
|
1397
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
|
1398
|
+
# rejected. Requests for policies with any conditional role bindings must
|
|
1399
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
|
1400
|
+
# valid value or leave the field unset. The policy in the response might use the
|
|
1401
|
+
# policy version that you specified, or it might use a lower policy version. For
|
|
1402
|
+
# example, if you specify version 3, but the policy has no conditional role
|
|
1403
|
+
# bindings, the response uses version 1. To learn which resources support
|
|
1404
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
|
1405
|
+
# google.com/iam/help/conditions/resource-policies).
|
|
1406
|
+
# @param [String] fields
|
|
1407
|
+
# Selector specifying which fields to include in a partial response.
|
|
1408
|
+
# @param [String] quota_user
|
|
1409
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1410
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1411
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1412
|
+
# Request-specific options
|
|
1413
|
+
#
|
|
1414
|
+
# @yield [result, err] Result & error if block supplied
|
|
1415
|
+
# @yieldparam result [Google::Apis::AgentregistryV1alpha::GoogleIamV1Policy] parsed result object
|
|
1416
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1417
|
+
#
|
|
1418
|
+
# @return [Google::Apis::AgentregistryV1alpha::GoogleIamV1Policy]
|
|
1419
|
+
#
|
|
1420
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1421
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1422
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1423
|
+
def get_project_location_skill_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1424
|
+
command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', options)
|
|
1425
|
+
command.response_representation = Google::Apis::AgentregistryV1alpha::GoogleIamV1Policy::Representation
|
|
1426
|
+
command.response_class = Google::Apis::AgentregistryV1alpha::GoogleIamV1Policy
|
|
1427
|
+
command.params['resource'] = resource unless resource.nil?
|
|
1428
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
|
1429
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1430
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1431
|
+
execute_or_queue_command(command, &block)
|
|
1432
|
+
end
|
|
1433
|
+
|
|
1268
1434
|
# Lists logical Skills available in a project.
|
|
1269
1435
|
# @param [String] parent
|
|
1270
1436
|
# Required. Parent value for ListSkillsRequest
|
|
@@ -1437,6 +1603,82 @@ module Google
|
|
|
1437
1603
|
execute_or_queue_command(command, &block)
|
|
1438
1604
|
end
|
|
1439
1605
|
|
|
1606
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
1607
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
|
1608
|
+
# PERMISSION_DENIED` errors.
|
|
1609
|
+
# @param [String] resource
|
|
1610
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
|
1611
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
|
1612
|
+
# appropriate value for this field.
|
|
1613
|
+
# @param [Google::Apis::AgentregistryV1alpha::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
|
|
1614
|
+
# @param [String] fields
|
|
1615
|
+
# Selector specifying which fields to include in a partial response.
|
|
1616
|
+
# @param [String] quota_user
|
|
1617
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1618
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1619
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1620
|
+
# Request-specific options
|
|
1621
|
+
#
|
|
1622
|
+
# @yield [result, err] Result & error if block supplied
|
|
1623
|
+
# @yieldparam result [Google::Apis::AgentregistryV1alpha::GoogleIamV1Policy] parsed result object
|
|
1624
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1625
|
+
#
|
|
1626
|
+
# @return [Google::Apis::AgentregistryV1alpha::GoogleIamV1Policy]
|
|
1627
|
+
#
|
|
1628
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1629
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1630
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1631
|
+
def set_project_location_skill_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1632
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', options)
|
|
1633
|
+
command.request_representation = Google::Apis::AgentregistryV1alpha::GoogleIamV1SetIamPolicyRequest::Representation
|
|
1634
|
+
command.request_object = google_iam_v1_set_iam_policy_request_object
|
|
1635
|
+
command.response_representation = Google::Apis::AgentregistryV1alpha::GoogleIamV1Policy::Representation
|
|
1636
|
+
command.response_class = Google::Apis::AgentregistryV1alpha::GoogleIamV1Policy
|
|
1637
|
+
command.params['resource'] = resource unless resource.nil?
|
|
1638
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1639
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1640
|
+
execute_or_queue_command(command, &block)
|
|
1641
|
+
end
|
|
1642
|
+
|
|
1643
|
+
# Returns permissions that a caller has on the specified resource. If the
|
|
1644
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
|
1645
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
|
1646
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
|
1647
|
+
# This operation may "fail open" without warning.
|
|
1648
|
+
# @param [String] resource
|
|
1649
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
|
1650
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
|
1651
|
+
# appropriate value for this field.
|
|
1652
|
+
# @param [Google::Apis::AgentregistryV1alpha::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
|
|
1653
|
+
# @param [String] fields
|
|
1654
|
+
# Selector specifying which fields to include in a partial response.
|
|
1655
|
+
# @param [String] quota_user
|
|
1656
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1657
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1658
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1659
|
+
# Request-specific options
|
|
1660
|
+
#
|
|
1661
|
+
# @yield [result, err] Result & error if block supplied
|
|
1662
|
+
# @yieldparam result [Google::Apis::AgentregistryV1alpha::GoogleIamV1TestIamPermissionsResponse] parsed result object
|
|
1663
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1664
|
+
#
|
|
1665
|
+
# @return [Google::Apis::AgentregistryV1alpha::GoogleIamV1TestIamPermissionsResponse]
|
|
1666
|
+
#
|
|
1667
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1668
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1669
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1670
|
+
def test_project_location_skill_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1671
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', options)
|
|
1672
|
+
command.request_representation = Google::Apis::AgentregistryV1alpha::GoogleIamV1TestIamPermissionsRequest::Representation
|
|
1673
|
+
command.request_object = google_iam_v1_test_iam_permissions_request_object
|
|
1674
|
+
command.response_representation = Google::Apis::AgentregistryV1alpha::GoogleIamV1TestIamPermissionsResponse::Representation
|
|
1675
|
+
command.response_class = Google::Apis::AgentregistryV1alpha::GoogleIamV1TestIamPermissionsResponse
|
|
1676
|
+
command.params['resource'] = resource unless resource.nil?
|
|
1677
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1678
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1679
|
+
execute_or_queue_command(command, &block)
|
|
1680
|
+
end
|
|
1681
|
+
|
|
1440
1682
|
# Creates a new immutable revision and triggers validation pipelines.
|
|
1441
1683
|
# @param [String] parent
|
|
1442
1684
|
# Required. Parent logical container name.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-agentregistry_v1alpha
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-agentregistry_v1alpha/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-agentregistry_v1alpha/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-agentregistry_v1alpha/v0.9.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-agentregistry_v1alpha
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|